Crate syntax [−] [src]
Re-exports
pub extern crate rustc_errors as errors; |
Modules
abi | |
ast | |
attr | |
codemap |
The CodeMap tracks all the source code used within a single crate, mapping
from integer byte positions to the original source code location. Each bit
of source parsed during crate parsing (typically files, in-memory strings,
or various bits of macro expansion) cover a continuous range of bytes in the
CodeMap and are represented by FileMaps. Byte positions are stored in
|
config | |
diagnostic_list | |
diagnostics | |
entry | |
ext | |
feature_gate |
Feature gating |
fold |
A Folder represents an AST->AST fold; it accepts an AST piece, and returns a piece of the same type. So, for instance, macro expansion is a Folder that walks over an AST and produces another AST. |
json |
A JSON emitter for errors. |
parse |
The main parser interface |
ptr |
The AST pointer |
show_span |
Span debugger |
std_inject | |
str | |
symbol |
An "interner" is a data structure that associates values with usize tags and allows bidirectional lookup; i.e. given a value, one can easily find the type, and vice versa. |
syntax | |
test | |
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 |