aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-07-23 14:13:05 +0100
committerGitHub <[email protected]>2020-07-23 14:13:05 +0100
commit83f364523f6874e52ed8db50be00fd28bdb57b94 (patch)
tree4d03e8b3986a89546538a485849c680445a7d40f /crates
parentbb4cb71f8046b9fb3f48adafb79fcdd3fa820b51 (diff)
parent28adb8fe16f6390502aa41d54253cde0b7c17c79 (diff)
Merge #5504
5504: Reduce visibility r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_hir_expand/src/lib.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_hir_expand/src/lib.rs b/crates/ra_hir_expand/src/lib.rs
index 1cf6c1ba9..d9e31ac20 100644
--- a/crates/ra_hir_expand/src/lib.rs
+++ b/crates/ra_hir_expand/src/lib.rs
@@ -262,14 +262,14 @@ pub enum MacroCallKind {
262} 262}
263 263
264impl MacroCallKind { 264impl MacroCallKind {
265 pub fn file_id(&self) -> HirFileId { 265 fn file_id(&self) -> HirFileId {
266 match self { 266 match self {
267 MacroCallKind::FnLike(ast_id) => ast_id.file_id, 267 MacroCallKind::FnLike(ast_id) => ast_id.file_id,
268 MacroCallKind::Attr(ast_id, _) => ast_id.file_id, 268 MacroCallKind::Attr(ast_id, _) => ast_id.file_id,
269 } 269 }
270 } 270 }
271 271
272 pub fn node(&self, db: &dyn db::AstDatabase) -> InFile<SyntaxNode> { 272 fn node(&self, db: &dyn db::AstDatabase) -> InFile<SyntaxNode> {
273 match self { 273 match self {
274 MacroCallKind::FnLike(ast_id) => ast_id.with_value(ast_id.to_node(db).syntax().clone()), 274 MacroCallKind::FnLike(ast_id) => ast_id.with_value(ast_id.to_node(db).syntax().clone()),
275 MacroCallKind::Attr(ast_id, _) => { 275 MacroCallKind::Attr(ast_id, _) => {
@@ -278,7 +278,7 @@ impl MacroCallKind {
278 } 278 }
279 } 279 }
280 280
281 pub fn arg(&self, db: &dyn db::AstDatabase) -> Option<SyntaxNode> { 281 fn arg(&self, db: &dyn db::AstDatabase) -> Option<SyntaxNode> {
282 match self { 282 match self {
283 MacroCallKind::FnLike(ast_id) => { 283 MacroCallKind::FnLike(ast_id) => {
284 Some(ast_id.to_node(db).token_tree()?.syntax().clone()) 284 Some(ast_id.to_node(db).token_tree()?.syntax().clone())