Module proc_macro::__internal[][src]

🔬 This is a nightly-only experimental API. (proc_macro_internals #27812)

Permanently unstable internal implementation details of this crate. This should not be used.

These methods are used by the rest of the compiler to generate instances of TokenStream to hand to macro definitions, as well as consume the output.

Note that this module is also intentionally separate from the rest of the crate. This allows the #[unstable] directive below to naturally apply to all of the contents.

Re-exports

use std::cell::Cell;
use syntax::ast;
use syntax::ext::base::ExtCtxt;
use syntax::ext::hygiene::Mark;
use syntax::ptr::P;
use syntax::ptr::P;
use syntax::parse;
use syntax::parse::ParseSess;
use syntax::parse::token;
use syntax::parse::token::Token;
use syntax::tokenstream;
use syntax_pos::BytePos;
use syntax_pos::Loc;
use syntax_pos::DUMMY_SP;
use super::TokenStream;
use super::LexError;

Structs

Quoter [
Experimental
]
SpannedSymbol [
Experimental
]

Enums

LiteralKind [
Experimental
]

Constants

CURRENT_SESS [
Experimental
]

Traits

Registry [
Experimental
]

Functions

in_sess [
Experimental
]
lookup_char_pos [
Experimental
]
new_token_stream [
Experimental
]
set_sess [
Experimental
]
token_stream_inner [
Experimental
]
token_stream_parse_items [
Experimental
]
token_stream_wrap [
Experimental
]
unquote [
Experimental
]
with_sess [
Experimental
]