aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/ra_hir_expand/src/ast_id_map.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir_expand/src/ast_id_map.rs b/crates/ra_hir_expand/src/ast_id_map.rs
index 919ede0a0..cb464c3ff 100644
--- a/crates/ra_hir_expand/src/ast_id_map.rs
+++ b/crates/ra_hir_expand/src/ast_id_map.rs
@@ -50,7 +50,7 @@ pub struct AstIdMap {
50} 50}
51 51
52impl AstIdMap { 52impl AstIdMap {
53 pub fn from_source(node: &SyntaxNode) -> AstIdMap { 53 pub(crate) fn from_source(node: &SyntaxNode) -> AstIdMap {
54 assert!(node.parent().is_none()); 54 assert!(node.parent().is_none());
55 let mut res = AstIdMap { arena: Arena::default() }; 55 let mut res = AstIdMap { arena: Arena::default() };
56 // By walking the tree in bread-first order we make sure that parents 56 // By walking the tree in bread-first order we make sure that parents
@@ -83,7 +83,7 @@ impl AstIdMap {
83 } 83 }
84 } 84 }
85 85
86 pub fn get<N: AstNode>(&self, id: FileAstId<N>) -> AstPtr<N> { 86 pub(crate) fn get<N: AstNode>(&self, id: FileAstId<N>) -> AstPtr<N> {
87 self.arena[id.raw].cast::<N>().unwrap() 87 self.arena[id.raw].cast::<N>().unwrap()
88 } 88 }
89 89