File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -262,14 +262,14 @@ pub enum MacroCallKind {
262
262
}
263
263
264
264
impl MacroCallKind {
265
- pub fn file_id ( & self ) -> HirFileId {
265
+ fn file_id ( & self ) -> HirFileId {
266
266
match self {
267
267
MacroCallKind :: FnLike ( ast_id) => ast_id. file_id ,
268
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
273
match self {
274
274
MacroCallKind :: FnLike ( ast_id) => ast_id. with_value ( ast_id. to_node ( db) . syntax ( ) . clone ( ) ) ,
275
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
282
match self {
283
283
MacroCallKind :: FnLike ( ast_id) => {
284
284
Some ( ast_id. to_node ( db) . token_tree ( ) ?. syntax ( ) . clone ( ) )
You can’t perform that action at this time.
0 commit comments