mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-25 12:33:33 +00:00
add kind to LocalSyntaxPtr
This commit is contained in:
parent
f673529a33
commit
80a91e6735
1 changed files with 4 additions and 0 deletions
|
@ -31,6 +31,10 @@ impl LocalSyntaxPtr {
|
||||||
pub fn range(self) -> TextRange {
|
pub fn range(self) -> TextRange {
|
||||||
self.range
|
self.range
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn kind(self) -> SyntaxKind {
|
||||||
|
self.kind
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
Loading…
Reference in a new issue