diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2017-11-21 06:49:15 -0800 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2017-11-24 07:34:31 -0800 |
| commit | 7c0387e36a1dab95492de61a2f26262a4526c286 (patch) | |
| tree | 074202e3afa04e46273552fa09b80cb9f41f24ef /src/rustllvm/RustWrapper.cpp | |
| parent | 547873aa54e787cbb7c266fb6e7337ea4e8a9331 (diff) | |
| download | rust-7c0387e36a1dab95492de61a2f26262a4526c286.tar.gz rust-7c0387e36a1dab95492de61a2f26262a4526c286.zip | |
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.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
