From 80a91e6735c62b0fad817fdb651ab06171aa5568 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 2 Jan 2019 22:18:17 +0300 Subject: add kind to LocalSyntaxPtr --- crates/ra_db/src/syntax_ptr.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crates/ra_db') diff --git a/crates/ra_db/src/syntax_ptr.rs b/crates/ra_db/src/syntax_ptr.rs index dac94dd36..744cb2352 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] -- cgit v1.2.3