From 6c2ba945ed331f0ce95eddd5b2183aa6fdf0f94b Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 11 Apr 2019 15:35:38 +0300 Subject: reduce visibility --- crates/ra_ide_api/src/call_info.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/ra_ide_api/src') diff --git a/crates/ra_ide_api/src/call_info.rs b/crates/ra_ide_api/src/call_info.rs index d06876777..1f1d05409 100644 --- a/crates/ra_ide_api/src/call_info.rs +++ b/crates/ra_ide_api/src/call_info.rs @@ -80,7 +80,7 @@ enum FnCallNode<'a> { } impl<'a> FnCallNode<'a> { - pub fn with_node(syntax: &'a SyntaxNode, offset: TextUnit) -> Option> { + fn with_node(syntax: &'a SyntaxNode, offset: TextUnit) -> Option> { if let Some(expr) = find_node_at_offset::(syntax, offset) { return Some(FnCallNode::CallExpr(expr)); } @@ -90,7 +90,7 @@ impl<'a> FnCallNode<'a> { None } - pub fn name_ref(&self) -> Option<&'a ast::NameRef> { + fn name_ref(&self) -> Option<&'a ast::NameRef> { match *self { FnCallNode::CallExpr(call_expr) => Some(match call_expr.expr()?.kind() { ast::ExprKind::PathExpr(path_expr) => path_expr.path()?.segment()?.name_ref()?, @@ -103,7 +103,7 @@ impl<'a> FnCallNode<'a> { } } - pub fn arg_list(&self) -> Option<&'a ast::ArgList> { + fn arg_list(&self) -> Option<&'a ast::ArgList> { match *self { FnCallNode::CallExpr(expr) => expr.arg_list(), FnCallNode::MethodCallExpr(expr) => expr.arg_list(), -- cgit v1.2.3