mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Rename get_outer_macro
to macro_call_for_string_token
This commit is contained in:
parent
3c39668ca4
commit
a807cc3afb
3 changed files with 6 additions and 8 deletions
|
@ -458,7 +458,7 @@ pub fn parse_tt_as_comma_sep_paths(input: ast::TokenTree) -> Option<Vec<ast::Pat
|
|||
Some(paths)
|
||||
}
|
||||
|
||||
pub fn get_outer_macro(string: &ast::String) -> Option<MacroCall> {
|
||||
pub fn macro_call_for_string_token(string: &ast::String) -> Option<MacroCall> {
|
||||
let macro_call = string.syntax().parent_ancestors().find_map(ast::MacroCall::cast)?;
|
||||
Some(macro_call)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue