[−][src]Crate proc_macro2_impersonated
Adapted from
proc-macro2
Removed wrap proc-macro for correct span outside rust sources Not use in proc-macro context if you don't know what you do
A substitute implementation of the compiler's proc_macro
API
Thread-Safety
Most types in this crate are !Sync
because the underlying compiler
types make use of thread-local memory, meaning they cannot be accessed from
a different thread.
Modules
token_stream | Public implementation details for the |
Structs
Group | A delimited token stream. |
Ident | A word of Rust code, which may be a keyword or legal variable name. |
LexError | Error returned from |
LineColumn | A line-column pair representing the start or end of a |
Literal | A literal string ( |
Punct | An |
SourceFile | The source file of a given |
Span | A region of source code, along with macro expansion information. |
TokenStream | An abstract stream of tokens, or more concretely a sequence of token trees. |
Enums
Delimiter | Describes how a sequence of token trees is delimited. |
Spacing | Whether an |
TokenTree | A single token or a delimited sequence of token trees (e.g. |