Submodule is enum
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user