File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -529,6 +529,10 @@ fn custom_handlers(node: &Node) -> TokenStream {
529529 } , 
530530 "DefineStmt"  => quote !  { 
531531 tokens. push( TokenProperty :: from( Token :: Create ) ) ; 
532+  if  n. replace { 
533+  tokens. push( TokenProperty :: from( Token :: Or ) ) ; 
534+  tokens. push( TokenProperty :: from( Token :: Replace ) ) ; 
535+  } 
532536 match  n. kind( )  { 
533537 protobuf:: ObjectType :: ObjectAggregate  => tokens. push( TokenProperty :: from( Token :: Aggregate ) ) , 
534538 _ => todo!( "Unknown DefineStmt {:#?}" ,  n. kind( ) ) 
Original file line number Diff line number Diff line change @@ -186,6 +186,8 @@ mod tests {
186186 SyntaxKind :: DefineStmt , 
187187 vec ! [ 
188188 TokenProperty :: from( SyntaxKind :: Create ) , 
189+  TokenProperty :: from( SyntaxKind :: Or ) , 
190+  TokenProperty :: from( SyntaxKind :: Replace ) , 
189191 TokenProperty :: from( SyntaxKind :: Aggregate ) , 
190192 TokenProperty :: from( SyntaxKind :: Order ) , 
191193 TokenProperty :: from( SyntaxKind :: By ) , 
                         You can’t perform that action at this time. 
           
                  
0 commit comments