From 30481808fbfea109f324dfaf93daaaebacc75333 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 13 Apr 2019 09:53:02 +0300 Subject: make stuff private --- crates/ra_hir/src/expr/scope.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/ra_hir/src/expr') diff --git a/crates/ra_hir/src/expr/scope.rs b/crates/ra_hir/src/expr/scope.rs index a9be9fbdb..dcec51a10 100644 --- a/crates/ra_hir/src/expr/scope.rs +++ b/crates/ra_hir/src/expr/scope.rs @@ -110,7 +110,7 @@ impl ExprScopes { #[derive(Debug, Clone, PartialEq, Eq)] pub struct ScopesWithSourceMap { pub(crate) source_map: Arc, - pub scopes: Arc, + pub(crate) scopes: Arc, } #[derive(Debug, Clone, PartialEq, Eq)] @@ -134,7 +134,7 @@ impl ScopesWithSourceMap { generate(self.scope_for(node), move |&scope| self.scopes.scopes[scope].parent) } - pub fn scope_for_offset(&self, offset: TextUnit) -> Option { + pub(crate) fn scope_for_offset(&self, offset: TextUnit) -> Option { self.scopes .scope_for .iter() @@ -211,7 +211,7 @@ impl ScopesWithSourceMap { .collect() } - pub fn scope_for(&self, node: &SyntaxNode) -> Option { + pub(crate) fn scope_for(&self, node: &SyntaxNode) -> Option { node.ancestors() .map(SyntaxNodePtr::new) .filter_map(|ptr| self.source_map.syntax_expr(ptr)) -- cgit v1.2.3