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 @@ -600,6 +600,10 @@ fn custom_handlers(node: &Node) -> TokenStream {
600600 } , 
601601 "DefineStmt"  => quote !  { 
602602 tokens. push( TokenProperty :: from( Token :: Create ) ) ; 
603+  if  n. replace { 
604+  tokens. push( TokenProperty :: from( Token :: Or ) ) ; 
605+  tokens. push( TokenProperty :: from( Token :: Replace ) ) ; 
606+  } 
603607 match  n. kind( )  { 
604608 ObjectType :: ObjectAggregate  => tokens. push( TokenProperty :: from( Token :: Aggregate ) ) , 
605609 _ => 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