Skip to content

Commit 3d8da5e

Browse files
committed
fix: wrong node for check token
1 parent db05ac5 commit 3d8da5e

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
@@ -97,7 +97,6 @@ mod tests {
9797
TokenProperty::from(SyntaxKind::Create),
9898
TokenProperty::from(SyntaxKind::DomainP),
9999
TokenProperty::from(SyntaxKind::As),
100-
TokenProperty::from(SyntaxKind::Check),
101100
TokenProperty::from("us_postal_code".to_string()),
102101
],
103102
)

0 commit comments

Comments
 (0)