Skip to main contentModule render_macro_matchers
Source use rustc_ast::token; π use rustc_ast::token::Delimiter; π use rustc_ast::token::IdentKind; π use rustc_ast::tokenstream::TokenStream; π use rustc_ast::tokenstream::TokenTree; π use rustc_ast_pretty::pprust::PrintState; π use rustc_ast_pretty::pprust::state::State as Printer; π use rustc_middle::ty::TyCtxt; π use rustc_parse::lexer::StripTokens; π use rustc_session::parse::ParseSess; π use rustc_span::symbol::Ident; π use rustc_span::symbol::Symbol; π use rustc_span::symbol::kw; π use rustc_span::FileName; π use rustc_span::Span; π
- print_tt π
- print_tts π
- render_macro_matcher π
- Render a macro matcher in a format suitable for displaying to the user
as part of an item declaration.
- snippet_equal_to_token π
- Find the source snippet for this tokenβs Span, reparse it, and return the
snippet if the reparsed TokenTree matches the argument TokenTree.
- usually_needs_space_between_keyword_and_open_delim π