aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-10-29 13:08:06 +0000
committerAleksey Kladov <[email protected]>2019-10-29 13:08:06 +0000
commit3260639608112738089d134c47c1d575515c9cb7 (patch)
tree7d5569b9f3551abffc5f715c99b1ee5fc10aee18 /crates
parent1ec418c3b8af987e1531c5cfd5bc1e817f237036 (diff)
reduce visibility
Diffstat (limited to 'crates')
-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