Module syntax::ext::base
[−]
[src]
rustc_private)Reexports
pub use self::SyntaxExtension::*; |
Structs
| BlockInfo | [Unstable] |
| DummyResult |
[Unstable] Fill-in macro expansion result, to allow compilation to continue after hitting errors. |
| ExtCtxt |
[Unstable] 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 |
[Unstable]
|
| SyntaxEnv |
[Unstable] In order to have some notion of scoping for macros, we want to implement the notion of a transformation environment. |
Enums
| Annotatable | [Unstable] |
| SyntaxExtension |
[Unstable] An enum representing the different kinds of syntax extensions. |
Traits
| IdentMacroExpander | [Unstable] |
| MacResult |
[Unstable] 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 | [Unstable] |
| MultiItemModifier | [Unstable] |
| TTMacroExpander |
[Unstable] Represents a thing that maps token trees to Macro Results |
Functions
| check_zero_tts |
[Unstable] Non-fatally assert that |
| expr_to_string |
[Unstable] Extract a string literal from the macro expanded version of |
| get_exprs_from_tts |
[Unstable] Extract comma-separated expressions from |
| get_single_str_from_tts |
[Unstable] Extract the string literal from the first token of |
Type Definitions
| IdentMacroExpanderFn | [Unstable] |
| MacroExpanderFn | [Unstable] |
| NamedSyntaxExtension | [Unstable] |