Module quoted

Source

EnumsΒ§

RulePart πŸ”’
Which part of a macro rule we’re parsing

ConstantsΒ§

VALID_FRAGMENT_NAMES_MSG πŸ”’

FunctionsΒ§

kleene_op πŸ”’
Takes a token and returns Some(KleeneOp) if the token is + * or ?. Otherwise, return None.
maybe_emit_macro_metavar_expr_concat_feature πŸ”’
maybe_emit_macro_metavar_expr_feature πŸ”’
Asks for the macro_metavar_expr feature if it is not enabled
parse πŸ”’
Takes a tokenstream::TokenStream and returns a Vec<self::TokenTree>. Specifically, this takes a generic TokenStream, such as is used in the rest of the compiler, and returns a collection of TokenTree for use in parsing a macro.
parse_kleene_op πŸ”’
Parse the next token tree of the input looking for a KleeneOp. Returns
parse_one_tt πŸ”’
Takes a tokenstream::TokenTree and returns a self::TokenTree. Like parse, but for a single token tree. Emits errors to sess if needed.
parse_sep_and_kleene_op πŸ”’
Attempt to parse a single Kleene star, possibly with a separator.
parse_tree πŸ”’
Takes a tokenstream::TokenTree and returns a self::TokenTree. Specifically, this takes a generic TokenTree, such as is used in the rest of the compiler, and returns a TokenTree for use in parsing a macro.
span_dollar_dollar_or_metavar_in_the_lhs_err πŸ”’