aboutsummaryrefslogtreecommitdiff
path: root/crates/libeditor/src/scope/mod_scope.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/libeditor/src/scope/mod_scope.rs')
-rw-r--r--crates/libeditor/src/scope/mod_scope.rs5
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 @@
1use libsyntax2::{ 1use libsyntax2::{
2 AstNode, SyntaxNode, SmolStr, ast 2 AstNode, SyntaxNode, SyntaxNodeRef, SmolStr, ast
3}; 3};
4 4
5pub struct ModuleScope { 5pub 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
72fn collect_imports(tree: ast::UseTree, acc: &mut Vec<Entry>) { 75fn collect_imports(tree: ast::UseTree, acc: &mut Vec<Entry>) {