Skip to main content

value_macro_uses

Function value_macro_uses 

Source
pub fn value_macro_uses(
    value: &SyntaxNode,
) -> impl Iterator<Item = (String, TextRange)>
Expand description

The bare-macro uses inside a VALUE: each LITERAL piece whose single token is a WORD (an unquoted, unbraced name) is an @string reference. A LITERAL wrapping a NUMBER is a literal number, not a macro use, and is skipped. Yields (name, range) with the range of the LITERAL piece.