rust/src/libsyntax
Mazdak Farrokhzad db9689333a
Rollup merge of #64910 - Centril:params-cleanup, r=petrochenkov
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
2019-10-01 23:56:21 +02:00
..
ast
attr syntax: Support modern attribute syntax in the meta matcher 2019-09-30 22:58:22 +03:00
diagnostics
ext Rollup merge of #63931 - petrochenkov:stabmac, r=Centril 2019-10-01 09:55:28 +02:00
feature_gate Stabilize macros in extern blocks 2019-09-30 21:59:35 +03:00
mut_visit
parse Rollup merge of #64910 - Centril:params-cleanup, r=petrochenkov 2019-10-01 23:56:21 +02:00
print syntax: Support modern attribute syntax in the meta matcher 2019-09-30 22:58:22 +03:00
source_map
tokenstream
util Rename Expr.node to Expr.kind 2019-09-26 18:21:09 +01:00
ast.rs Address review comments 2019-10-01 01:10:12 +03:00
build.rs
Cargo.toml remove bit_set re-export from rustc_data_structures 2019-09-29 16:11:30 +00:00
config.rs syntax: Support modern attribute syntax in the meta matcher 2019-09-30 22:58:22 +03:00
early_buffered_lints.rs
entry.rs Rename Item.node to Item.kind 2019-09-26 18:21:48 +01:00
error_codes.rs Add long error explanation for E0550 2019-09-30 15:52:47 +02:00
json.rs Don't emit explain with json short messages. 2019-09-24 16:53:33 -07:00
lib.rs remove bit_set re-export from rustc_data_structures 2019-09-29 16:11:30 +00:00
mut_visit.rs syntax: Support modern attribute syntax in the meta matcher 2019-09-30 22:58:22 +03:00
ptr.rs Switch over all StableHash impls to new format 2019-09-28 11:47:36 -04:00
README.md
show_span.rs
source_map.rs Fix backticks in documentation 2019-09-18 23:17:36 -06:00
tests.rs Replace DiagnosticBuilder with Diagnostic when emitting error 2019-09-17 09:29:46 -04:00
tokenstream.rs push TokenTree::parse down 2019-09-22 20:38:02 +03:00
visit.rs Rename ForeignItem.node to ForeignItem.kind 2019-09-26 18:21:48 +01:00

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: