[][src]Crate rustc_ap_syntax

The Rust parser and macro expander.

Note

This API is completely unstable and subject to change.

Re-exports

pub use errors;

Modules

ast

The Rust abstract syntax tree module.

attr

Functions dealing with attributes and meta items.

diagnostics
early_buffered_lints

Allows the buffering of lints for later.

entry
expand

Definitions shared by macros / syntax extensions and e.g. librustc.

feature_gate
mut_visit

A MutVisitor represents an AST modification; it accepts an AST piece and and mutates it in place. So, for instance, macro expansion is a MutVisitor that walks over an AST and modifies it.

print
ptr

The AST pointer.

sess

Contains ParseSess which holds state living beyond what one Parser might. It also serves as an input to the parser itself.

show_span

Span debugger

token
tokenstream

Token Streams

util
visit

AST walker. Each overridden visit method has full control over what happens with its node, it can do its own traversal of the node's children, call visit::walk_* to apply the default traversal algorithm, or prevent deeper traversal by doing nothing.

Macros

diagnostic_used
help
span_err
span_err_or_warn
span_fatal
span_help
span_note
span_warn
stringify_error_code
struct_err
struct_span_err
struct_span_err_or_warn
struct_span_fatal
struct_span_warn
type_error_struct
unwrap_or
walk_list

Structs

Globals

Statics

GLOBALS

Traits

HashStableContext

Requirements for a StableHashingContext to be used in this crate. This is a hack to allow using the HashStable_Generic derive macro instead of implementing everything in librustc.

Functions

with_default_globals
with_globals