From 80a91e6735c62b0fad817fdb651ab06171aa5568 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 2 Jan 2019 22:18:17 +0300 Subject: [PATCH] add kind to LocalSyntaxPtr --- crates/ra_db/src/syntax_ptr.rs | 4 ++++ 1 file changed, 4 insertions(+) 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]