Module syntax::ext::quote::rt[][src]

Quasiquoting works via token trees.

This is registered as a set of expression syntax extension called quote! that lifts its argument token-tree to an AST representing the construction of the same token tree, with token::SubstNt interpreted as antiquotes (splices).

Re-exports

pub use parse::new_parser_from_tts;
pub use codemap::dummy_spanned;

Structs

BytePos

A byte offset. Keep this small (currently 32-bits), as AST contains a lot of them.

Span

A compressed span. Contains either fields of SpanData inline if they are small, or index into span interner. The primary goal of Span is to be as small as possible and fit into other structures (that's why it uses packed as well). Decoding speed is the second priority. See SpanData for the info on span fields in decoded representation.

Enums

FileName

Differentiates between real files and common virtual files

Constants

DUMMY_SP

Dummy span, both position and length are zero, syntax context is zero as well. This span is kept inline and encoded with format 0.

Traits

ExtParseUtils
ToTokens