diff options
Diffstat (limited to 'crates/ra_analysis/src/syntax_ptr.rs')
-rw-r--r-- | crates/ra_analysis/src/syntax_ptr.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/ra_analysis/src/syntax_ptr.rs b/crates/ra_analysis/src/syntax_ptr.rs index 4db1529c2..4afb1fc93 100644 --- a/crates/ra_analysis/src/syntax_ptr.rs +++ b/crates/ra_analysis/src/syntax_ptr.rs | |||
@@ -22,6 +22,10 @@ impl SyntaxPtr { | |||
22 | let local = LocalSyntaxPtr::new(node); | 22 | let local = LocalSyntaxPtr::new(node); |
23 | SyntaxPtr { file_id, local } | 23 | SyntaxPtr { file_id, local } |
24 | } | 24 | } |
25 | |||
26 | pub(crate) fn file_id(self) -> FileId { | ||
27 | self.file_id | ||
28 | } | ||
25 | } | 29 | } |
26 | 30 | ||
27 | /// A pionter to a syntax node inside a file. | 31 | /// A pionter to a syntax node inside a file. |