diff options
Diffstat (limited to 'crates/libeditor/src/scope/mod_scope.rs')
-rw-r--r-- | crates/libeditor/src/scope/mod_scope.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crates/libeditor/src/scope/mod_scope.rs b/crates/libeditor/src/scope/mod_scope.rs index 052f70569..67baa8678 100644 --- a/crates/libeditor/src/scope/mod_scope.rs +++ b/crates/libeditor/src/scope/mod_scope.rs | |||
@@ -1,5 +1,5 @@ | |||
1 | use libsyntax2::{ | 1 | use libsyntax2::{ |
2 | AstNode, SyntaxNode, SmolStr, ast | 2 | AstNode, SyntaxNode, SyntaxNodeRef, SmolStr, ast |
3 | }; | 3 | }; |
4 | 4 | ||
5 | pub struct ModuleScope { | 5 | pub struct ModuleScope { |
@@ -67,6 +67,9 @@ impl Entry { | |||
67 | .text(), | 67 | .text(), |
68 | } | 68 | } |
69 | } | 69 | } |
70 | pub fn syntax(&self) -> SyntaxNodeRef { | ||
71 | self.node.borrowed() | ||
72 | } | ||
70 | } | 73 | } |
71 | 74 | ||
72 | fn collect_imports(tree: ast::UseTree, acc: &mut Vec<Entry>) { | 75 | fn collect_imports(tree: ast::UseTree, acc: &mut Vec<Entry>) { |