diff options
author | Aleksey Kladov <[email protected]> | 2019-01-02 19:18:17 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-01-03 09:26:40 +0000 |
commit | 80a91e6735c62b0fad817fdb651ab06171aa5568 (patch) | |
tree | 0970021ba54a0b9e1ee8b925f279345443ad6abe /crates/ra_db | |
parent | f673529a3355cdd00062c873cd4fdd100f60a243 (diff) |
add kind to LocalSyntaxPtr
Diffstat (limited to 'crates/ra_db')
-rw-r--r-- | crates/ra_db/src/syntax_ptr.rs | 4 |
1 files changed, 4 insertions, 0 deletions
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 { | |||
31 | pub fn range(self) -> TextRange { | 31 | pub fn range(self) -> TextRange { |
32 | self.range | 32 | self.range |
33 | } | 33 | } |
34 | |||
35 | pub fn kind(self) -> SyntaxKind { | ||
36 | self.kind | ||
37 | } | ||
34 | } | 38 | } |
35 | 39 | ||
36 | #[test] | 40 | #[test] |