Module syntax::ext::base
[−]
[src]
rustc_private
)Reexports
pub use self::SyntaxExtension::MultiDecorator; |
pub use self::SyntaxExtension::MultiModifier; |
pub use self::SyntaxExtension::NormalTT; |
pub use self::SyntaxExtension::IdentTT; |
Structs
ChangeSpan |
[ Experimental ]
|
DummyResolver |
[ Experimental ]
|
DummyResult |
[ Experimental ] Fill-in macro expansion result, to allow compilation to continue after hitting errors. |
ExpansionData |
[ Experimental ]
|
ExtCtxt |
[ Experimental ] One of these is made during expansion and incrementally updated as we go; when a macro expansion occurs, the resulting nodes have the backtrace() -> expn_info of their expansion context stored into their span. |
MacEager |
[ Experimental ]
|
ModuleData |
[ Experimental ]
|
Enums
Annotatable |
[ Experimental ]
|
Determinacy |
[ Experimental ]
|
MacroKind |
[ Experimental ] Represents different kinds of macro invocations that can be resolved. |
SyntaxExtension |
[ Experimental ] An enum representing the different kinds of syntax extensions. |
Traits
AttrProcMacro |
[ Experimental ]
|
IdentMacroExpander |
[ Experimental ]
|
MacResult |
[ Experimental ] The result of a macro expansion. The return values of the various methods are spliced into the AST at the callsite of the macro. |
MultiItemDecorator |
[ Experimental ]
|
MultiItemModifier |
[ Experimental ]
|
ProcMacro |
[ Experimental ]
|
Resolver |
[ Experimental ]
|
TTMacroExpander |
[ Experimental ] Represents a thing that maps token trees to Macro Results |
Functions
check_zero_tts |
[ Experimental ] Non-fatally assert that |
expr_to_spanned_string |
[ Experimental ] Extract a string literal from the macro expanded version of |
expr_to_string |
[ Experimental ]
|
get_exprs_from_tts |
[ Experimental ] Extract comma-separated expressions from |
get_single_str_from_tts |
[ Experimental ] Extract the string literal from the first token of |
Type Definitions
BuiltinDeriveFn |
[ Experimental ]
|
IdentMacroExpanderFn |
[ Experimental ]
|
MacroExpanderFn |
[ Experimental ]
|
NamedSyntaxExtension |
[ Experimental ]
|