Files
rust/src/libsyntax
Esteban Küber 7c0387e36a Do not rewind parser and ignore following blocks
When encountering `pub ident`, attempt to identify the code that comes
afterwards, wether it is a brace block (assume it is a struct), a paren
list followed by a colon (assume struct) or a paren list followed by a
block (assume a fn). Consume those blocks to avoid any further parser
errors and return a `Placeholder` item in order to allow the parser to
continue. In the case of unenclosed blocks, the behavior is the same as
it is currently: no further errors are processed.
2017-11-24 07:34:31 -08:00
..
2017-05-24 16:40:03 -04:00
2017-08-30 01:38:54 +03:00
2017-09-22 22:05:18 +02:00
2017-11-20 09:40:55 +01:00
2017-06-07 12:15:39 +09:00
2017-08-30 01:38:54 +03:00
2017-11-20 18:03:20 +00:00
2017-08-30 01:38:54 +03:00
2017-08-30 01:38:54 +03:00

NB: This crate is part of the Rust compiler. For an overview of the compiler as a whole, see the README.md file found in librustc.

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.