aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_db/src/syntax_ptr.rs
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2019-01-03 09:59:24 +0000
committerbors[bot] <bors[bot]@users.noreply.github.com>2019-01-03 09:59:24 +0000
commite92f2ffe270c6a9fca312fb8a53cd0da0dd01fde (patch)
tree7f72fee435e82c750b321a52c551010d1b7afd09 /crates/ra_db/src/syntax_ptr.rs
parentf673529a3355cdd00062c873cd4fdd100f60a243 (diff)
parent8d6185350953391d0dd405cf790a69bb65d88a36 (diff)
Merge #410
410: Detangle symbols r=matklad a=matklad Previously, we used `FileSymbol` both to represent bytes which are stored in the index and as an API of `ra_analysis`. Mixing internal storage format and an API is not a really bright idea, so we introduce `NavigationTarget` to handle API part. Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_db/src/syntax_ptr.rs')
-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]