Skip to content

Commit 03e61c2

Browse files
committed
rebase
1 parent 4ed0fc0 commit 03e61c2

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

crates/codegen/src/get_node_properties.rs

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,9 @@ fn custom_handlers(node: &Node) -> TokenStream {
562562
} }
563563
// if its a list, we handle it in the handler for `List`
564564
},
565+
protobuf::ObjectType::ObjectOperator => {
566+
tokens.push(TokenProperty::from(Token::Operator));
567+
},
565568
_ => panic!("Unknown DefineStmt {:#?}", n.kind()),
566569
}
567570
},
@@ -664,19 +667,6 @@ fn custom_handlers(node: &Node) -> TokenStream {
664667
_ => panic!("Unknown IndexElem {:#?}", n.nulls_ordering()),
665668
}
666669
},
667-
"DefineStmt" => quote! {
668-
tokens.push(TokenProperty::from(Token::Create));
669-
if n.replace {
670-
tokens.push(TokenProperty::from(Token::Or));
671-
tokens.push(TokenProperty::from(Token::Replace));
672-
}
673-
match n.kind() {
674-
protobuf::ObjectType::ObjectOperator => {
675-
tokens.push(TokenProperty::from(Token::Operator));
676-
},
677-
_ => todo!("Unknown DefineStmt {:#?}", n.kind())
678-
}
679-
},
680670
_ => quote! {},
681671
}
682672
}

0 commit comments

Comments
 (0)