mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Submodule is enum
This commit is contained in:
parent
17a88928f4
commit
44d8919384
3 changed files with 67 additions and 21 deletions
|
@ -22,6 +22,10 @@ impl SyntaxPtr {
|
|||
let local = LocalSyntaxPtr::new(node);
|
||||
SyntaxPtr { file_id, local }
|
||||
}
|
||||
|
||||
pub(crate) fn file_id(self) -> FileId {
|
||||
self.file_id
|
||||
}
|
||||
}
|
||||
|
||||
/// A pionter to a syntax node inside a file.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue