refactor: Reduce codegen burden for SyntaxNode and SyntaxToken

This commit is contained in:
Lukas Wirth 2025-03-21 10:54:38 +01:00
parent d6dc1bf05e
commit d31301cbe7
4 changed files with 2767 additions and 426 deletions

View file

@ -1008,7 +1008,7 @@ impl ::core::cmp::Eq for SyntaxKind {}
impl ::core::cmp::PartialOrd for SyntaxKind {
#[inline]
fn partial_cmp(&self, other: &Self) -> core::option::Option<core::cmp::Ordering> {
(*self as u16).partial_cmp(&(*other as u16))
Some(self.cmp(other))
}
}
impl ::core::cmp::Ord for SyntaxKind {