diff options
author | Aleksey Kladov <[email protected]> | 2019-04-11 13:35:38 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-04-11 14:29:33 +0100 |
commit | 6c2ba945ed331f0ce95eddd5b2183aa6fdf0f94b (patch) | |
tree | f9c68892423a362fabc792ec793d623ded3dfe2d /crates/ra_ide_api/src | |
parent | 505acc973b3b865195d7d0aeb47c419c35f6bbbc (diff) |
reduce visibility
Diffstat (limited to 'crates/ra_ide_api/src')
-rw-r--r-- | crates/ra_ide_api/src/call_info.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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> { | |||
80 | } | 80 | } |
81 | 81 | ||
82 | impl<'a> FnCallNode<'a> { | 82 | impl<'a> FnCallNode<'a> { |
83 | pub fn with_node(syntax: &'a SyntaxNode, offset: TextUnit) -> Option<FnCallNode<'a>> { | 83 | fn with_node(syntax: &'a SyntaxNode, offset: TextUnit) -> Option<FnCallNode<'a>> { |
84 | if let Some(expr) = find_node_at_offset::<ast::CallExpr>(syntax, offset) { | 84 | if let Some(expr) = find_node_at_offset::<ast::CallExpr>(syntax, offset) { |
85 | return Some(FnCallNode::CallExpr(expr)); | 85 | return Some(FnCallNode::CallExpr(expr)); |
86 | } | 86 | } |
@@ -90,7 +90,7 @@ impl<'a> FnCallNode<'a> { | |||
90 | None | 90 | None |
91 | } | 91 | } |
92 | 92 | ||
93 | pub fn name_ref(&self) -> Option<&'a ast::NameRef> { | 93 | fn name_ref(&self) -> Option<&'a ast::NameRef> { |
94 | match *self { | 94 | match *self { |
95 | FnCallNode::CallExpr(call_expr) => Some(match call_expr.expr()?.kind() { | 95 | FnCallNode::CallExpr(call_expr) => Some(match call_expr.expr()?.kind() { |
96 | ast::ExprKind::PathExpr(path_expr) => path_expr.path()?.segment()?.name_ref()?, | 96 | ast::ExprKind::PathExpr(path_expr) => path_expr.path()?.segment()?.name_ref()?, |
@@ -103,7 +103,7 @@ impl<'a> FnCallNode<'a> { | |||
103 | } | 103 | } |
104 | } | 104 | } |
105 | 105 | ||
106 | pub fn arg_list(&self) -> Option<&'a ast::ArgList> { | 106 | fn arg_list(&self) -> Option<&'a ast::ArgList> { |
107 | match *self { | 107 | match *self { |
108 | FnCallNode::CallExpr(expr) => expr.arg_list(), | 108 | FnCallNode::CallExpr(expr) => expr.arg_list(), |
109 | FnCallNode::MethodCallExpr(expr) => expr.arg_list(), | 109 | FnCallNode::MethodCallExpr(expr) => expr.arg_list(), |