pub fn root_macro_call(span: Span) -> Option<MacroCall>
Expand description
If the macro backtrace of span
has a macro call at the root expansion
(i.e. not a nested macro call), returns Some
with the MacroCall
If you only want to check whether the root macro has a specific name,
consider using matching_root_macro_call
instead.