db9689333a
syntax: cleanup param, method, and misc parsing Do some misc cleanup of the parser: - Method and parameter parsing is refactored. - A parser for `const | mut` is introduced that https://github.com/rust-lang/rust/pull/64588 can reuse. - Some other misc parsing. Next up in a different PR: - ~Implementing https://github.com/rust-lang/rust/issues/64252.~ -- maybe some other time... - Heavily restructuring up `item.rs` which is a mess (hopefully, no promises ^^). r? @petrochenkov |
||
---|---|---|
.. | ||
ast | ||
attr | ||
diagnostics | ||
ext | ||
feature_gate | ||
mut_visit | ||
parse | ||
source_map | ||
tokenstream | ||
util | ||
ast.rs | ||
build.rs | ||
Cargo.toml | ||
config.rs | ||
early_buffered_lints.rs | ||
entry.rs | ||
error_codes.rs | ||
json.rs | ||
lib.rs | ||
mut_visit.rs | ||
ptr.rs | ||
README.md | ||
show_span.rs | ||
source_map.rs | ||
tests.rs | ||
tokenstream.rs | ||
visit.rs |
The syntax
crate contains those things concerned purely with syntax
– that is, the AST ("abstract syntax tree"), parser, pretty-printer,
lexer, macro expander, and utilities for traversing ASTs.
For more information about how these things work in rustc, see the rustc guide: