Module syntex_syntax::ext::proc_macro_shim::prelude
[−]
[src]
Reexports
pub use super::build_block_emitter; |
pub use ast::Ident; |
pub use ext::base::{ExtCtxt, MacResult}; |
pub use parse::token::{self, Token, DelimToken, keywords, str_to_ident}; |
pub use tokenstream::{TokenTree, TokenStream}; |
Structs
Span |
Spans represent a region of code, used for error reporting. Positions in spans are absolute positions from the beginning of the codemap, not positions relative to FileMaps. Methods on the CodeMap can be used to relate spans back to the original source. You must be careful if the span crosses more than one file - you will not be able to use many of the functions on spans in codemap and you cannot assume that the length of the span = hi - lo; there may be space in the BytePos range between files. |
Constants
DUMMY_SP |