Skip to content

Commit d31301c

Browse files
committed
refactor: Reduce codegen burden for SyntaxNode and SyntaxToken
1 parent d6dc1bf commit d31301c

File tree

4 files changed

+2771
-430
lines changed

4 files changed

+2771
-430
lines changed

crates/parser/src/syntax_kind/generated.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1008,7 +1008,7 @@ impl ::core::cmp::Eq for SyntaxKind {}
10081008
impl ::core::cmp::PartialOrd for SyntaxKind {
10091009
#[inline]
10101010
fn partial_cmp(&self, other: &Self) -> core::option::Option<core::cmp::Ordering> {
1011-
(*self as u16).partial_cmp(&(*other as u16))
1011+
Some(self.cmp(other))
10121012
}
10131013
}
10141014
impl ::core::cmp::Ord for SyntaxKind {

0 commit comments

Comments
 (0)