aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_db
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-01-02 19:18:17 +0000
committerAleksey Kladov <[email protected]>2019-01-03 09:26:40 +0000
commit80a91e6735c62b0fad817fdb651ab06171aa5568 (patch)
tree0970021ba54a0b9e1ee8b925f279345443ad6abe /crates/ra_db
parentf673529a3355cdd00062c873cd4fdd100f60a243 (diff)
add kind to LocalSyntaxPtr
Diffstat (limited to 'crates/ra_db')
-rw-r--r--crates/ra_db/src/syntax_ptr.rs4
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]