diff --git a/crates/ra_db/src/syntax_ptr.rs b/crates/ra_db/src/syntax_ptr.rs index dac94dd36d..744cb23523 100644 --- a/crates/ra_db/src/syntax_ptr.rs +++ b/crates/ra_db/src/syntax_ptr.rs @@ -31,6 +31,10 @@ impl LocalSyntaxPtr { pub fn range(self) -> TextRange { self.range } + + pub fn kind(self) -> SyntaxKind { + self.kind + } } #[test]