Skip to content

Commit 7db47a7

Browse files
committed
fix: wrong node for check token
1 parent ddff86e commit 7db47a7

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

crates/codegen/src/get_node_properties.rs

-3
Original file line numberDiff line numberDiff line change
@@ -535,9 +535,6 @@ fn custom_handlers(node: &Node) -> TokenStream {
535535
if n.type_name.is_some() {
536536
tokens.push(TokenProperty::from(Token::As));
537537
}
538-
if n.constraints.len() > 0 {
539-
tokens.push(TokenProperty::from(Token::Check));
540-
}
541538
},
542539
_ => quote! {},
543540
}

crates/parser/src/codegen.rs

-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ mod tests {
101101
TokenProperty::from(SyntaxKind::Create),
102102
TokenProperty::from(SyntaxKind::DomainP),
103103
TokenProperty::from(SyntaxKind::As),
104-
TokenProperty::from(SyntaxKind::Check),
105104
TokenProperty::from("us_postal_code".to_string()),
106105
],
107106
)

0 commit comments

Comments
 (0)