Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge #4246 | bors[bot] | 2020-05-01 | 1 | -0/+2 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4246: Validate uses of self and super r=matklad a=djrenren This change follows on the validation of the `crate` keyword in paths. It verifies the following things: `super`: - May only be preceded by other `super` segments - If in a `UseItem` then all semantically preceding paths also consist only of `super` `self` - May only be the start of a path Just a note, a couple times while working on this I found myself really wanting a Visitor of some sort so that I could traverse descendants while skipping sub-trees that are unimportant. Iterators don't really work for this, so as you can see I reached for recursion. Considering paths are generally small a fancy debounced visitor probably isn't important but figured I'd say something in case we had something like this lying around and I wasn't using it. Co-authored-by: John Renner <[email protected]> | ||||
| * | Validate uses of self and super | John Renner | 2020-05-01 | 1 | -0/+2 |
| | | |||||
* | | Remove dead code, which elaborately pretends to be alive | Aleksey Kladov | 2020-04-30 | 1 | -35/+2 |
|/ | |||||
* | Fix a bunch of false-positives in join-lines | Aleksey Kladov | 2020-04-30 | 1 | -0/+1 |
| | |||||
* | Validate the location of `crate` in paths | John Renner | 2020-04-29 | 1 | -0/+1 |
| | |||||
* | Group generated ast boilerplate apart from the interesting part | veetaha | 2020-04-18 | 1 | -1462/+1462 |
| | |||||
* | Align grammar for record patterns and literals | Aleksey Kladov | 2020-04-11 | 1 | -1/+1 |
| | | | | | | The grammar now looks like this [name_ref :] pat | ||||
* | Simplify | Aleksey Kladov | 2020-04-10 | 1 | -0/+1 |
| | |||||
* | Better readability | Aleksey Kladov | 2020-04-10 | 2 | -0/+142 |
| | |||||
* | Remove dead code | Aleksey Kladov | 2020-04-10 | 1 | -192/+184 |
| | |||||
* | Generate only minimal set of ineresting tokens | Aleksey Kladov | 2020-04-10 | 1 | -1288/+8 |
| | |||||
* | Scale token generation back | Aleksey Kladov | 2020-04-10 | 2 | -298/+65 |
| | |||||
* | Convert more tokens | Aleksey Kladov | 2020-04-10 | 2 | -217/+13 |
| | |||||
* | Other delimiters | Aleksey Kladov | 2020-04-10 | 1 | -32/+32 |
| | |||||
* | Curley tokens | Aleksey Kladov | 2020-04-10 | 2 | -106/+18 |
| | |||||
* | Start replacing tokens | Aleksey Kladov | 2020-04-10 | 1 | -34/+12 |
| | |||||
* | Semicolon token | Aleksey Kladov | 2020-04-10 | 1 | -11/+33 |
| | |||||
* | More readable ast_src for keywords | Aleksey Kladov | 2020-04-10 | 1 | -69/+77 |
| | |||||
* | Simpler acessors for keywords | Aleksey Kladov | 2020-04-09 | 2 | -983/+73 |
| | |||||
* | Drop needless trait | Aleksey Kladov | 2020-04-09 | 1 | -4/+0 |
| | |||||
* | Be consistent about token accesors | Aleksey Kladov | 2020-04-09 | 1 | -0/+3 |
| | |||||
* | Add _token suffix to token accessors | Aleksey Kladov | 2020-04-09 | 1 | -188/+188 |
| | | | | | I think this makes is more clear which things are : AstNode and which are : AstToken | ||||
* | Put displays at the end | Aleksey Kladov | 2020-04-09 | 1 | -690/+690 |
| | |||||
* | More compact | Aleksey Kladov | 2020-04-09 | 2 | -1428/+238 |
| | |||||
* | More compact generated code | Aleksey Kladov | 2020-04-09 | 2 | -2184/+728 |
| | |||||
* | Move the rest of the tokens to generated/tokens | Aleksey Kladov | 2020-04-09 | 2 | -653/+653 |
| | |||||
* | Move generated tokens to a separate file | Aleksey Kladov | 2020-04-09 | 2 | -3054/+3059 |
| | |||||
* | Start ast/generated/tokens | Aleksey Kladov | 2020-04-09 | 1 | -0/+1 |
| | |||||
* | Prepare for spliting generated into tokens and nodes | Aleksey Kladov | 2020-04-09 | 1 | -0/+9625 |