Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Mark unused mbe variable as `Binding::Empty` | Edwin Cheng | 2019-05-03 | 2 | -13/+61 |
| | |||||
* | By pass unbind $var while mbe expanding | Edwin Cheng | 2019-05-03 | 3 | -7/+39 |
| | |||||
* | Refactor out tests module and remove empty subtree | Edwin Cheng | 2019-05-03 | 3 | -1137/+1372 |
| | |||||
* | Merge #1227 | bors[bot] | 2019-05-03 | 3 | -1/+8 |
|\ | | | | | | | | | | | | | | | 1227: Add `default_type` method in `TypeParam` Node r=matklad a=edwin0cheng This PR add a `default_type` method in `TypeParam` Node which allow future PR to handle #1099 case. Co-authored-by: Edwin Cheng <[email protected]> | ||||
| * | Add default type param in TypeParam Node | Edwin Cheng | 2019-05-03 | 3 | -1/+8 |
| | | |||||
* | | Fixed old incorrect test | Edwin Cheng | 2019-05-02 | 1 | -1/+1 |
| | | |||||
* | | Fix typo | Edwin Cheng | 2019-05-02 | 1 | -3/+3 |
| | | |||||
* | | Compare text instead | Edwin Cheng | 2019-05-02 | 1 | -2/+2 |
| | | |||||
* | | Add empty bindings and some refactoring | Edwin Cheng | 2019-05-02 | 2 | -22/+41 |
|/ | |||||
* | Make `vis` matcher optional and fix typo | Edwin Cheng | 2019-05-02 | 3 | -5/+28 |
| | |||||
* | Remove unused code in subtree_source | Edwin Cheng | 2019-05-02 | 1 | -182/+41 |
| | |||||
* | Formating | Edwin Cheng | 2019-05-02 | 1 | -1/+1 |
| | |||||
* | Remove unused code and add space bewteen tt | Edwin Cheng | 2019-05-02 | 2 | -32/+80 |
| | |||||
* | Merge #1222 | bors[bot] | 2019-05-01 | 1 | -1/+9 |
|\ | | | | | | | | | | | | | | | 1222: Skip Dollars when bump raw token r=matklad a=edwin0cheng This PR fixed a bug while parsing token_tree, it should skip all L_DOLLAR AND R_DOLLAR. Co-authored-by: Edwin Cheng <[email protected]> | ||||
| * | Skip Dollars when bump raw token | Edwin Cheng | 2019-05-01 | 1 | -1/+9 |
| | | |||||
* | | Merge #1223 | bors[bot] | 2019-05-01 | 2 | -0/+117 |
|\ \ | |/ |/| | | | | | | | | | | | 1223: Move guard to arm body assist r=matklad a=unrealhoang This is my attempt at #1206 Co-authored-by: Unreal Hoang <[email protected]> | ||||
| * | add complex match case and documentation | Unreal Hoang | 2019-05-01 | 1 | -13/+29 |
| | | |||||
| * | move guard to arm body assist. | Unreal Hoang | 2019-05-01 | 2 | -0/+101 |
| | | |||||
* | | Merge #1220 | bors[bot] | 2019-05-01 | 3 | -1/+49 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1220: Add macro pat parsing r=matklad a=edwin0cheng This PR add support to parsing macro call in pattern , e.g : ``` let m!(x) = 0; ``` Co-authored-by: Edwin Cheng <[email protected]> | ||||
| * | | Add macro pat parsing | Edwin Cheng | 2019-04-30 | 3 | -1/+49 |
| | | | |||||
* | | | Use correct FileId when expanding macros in expressions | Aleksey Kladov | 2019-05-01 | 2 | -33/+44 |
| |/ |/| | |||||
* | | Sidestep two-phase borrow violation signaled by ↵ | Felix S. Klock II | 2019-04-29 | 1 | -2/+3 |
|/ | | | | | | mutable_borrow_reservation_conflict. See rust-lang/rust#59159 for further information/discussion. | ||||
* | Merge #1213 | bors[bot] | 2019-04-28 | 9 | -132/+185 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1213: Make lexer produce only single character puncts r=matklad a=edwin0cheng As discussed in Zulip, this PR change `lexer` to produce only single char punct. * Remove producing `DOTDOTDOT, DOTDOTEQ, DOTDOT, COLONCOLON, EQEQ, FAT_ARROW, NEQ, THIN_ARROW` in lexer. * Add required code in parser to make sure everythings works fine. * Change some tests (Mainly because the `ast::token_tree` is different) Note: i think the use of `COLON` in rust is too overloaded :) Co-authored-by: Edwin Cheng <[email protected]> | ||||
| * | Refactor parser handle mult-char punct internally | Edwin Cheng | 2019-04-28 | 9 | -132/+185 |
| | | |||||
* | | Fix hover on the beginning of a nested expression | Florian Diebold | 2019-04-28 | 3 | -10/+33 |
|/ | | | | | | | | | | | | | | | | E.g. in ``` let foo = 1u32; if true { <|>foo; } ``` the hover shows `()`, the type of the whole if expression, instead of the more sensible `u32`. The reason for this was that the search for an expression was slightly left-biased: When on the edge between two tokens, it first looked at all ancestors of the left token and then of the right token. Instead merge the ancestors in ascending order, so that we get the smaller of the two possible expressions. | ||||
* | Simplify | kjeremy | 2019-04-26 | 2 | -13/+10 |
| | |||||
* | Add is_empty to Arena | kjeremy | 2019-04-26 | 1 | -0/+3 |
| | |||||
* | Pass in char instead of single-char string | kjeremy | 2019-04-26 | 1 | -3/+3 |
| | |||||
* | Elide lifetime | kjeremy | 2019-04-26 | 1 | -1/+1 |
| | |||||
* | Use panic instead of unwrap | Edwin Cheng | 2019-04-25 | 1 | -8/+6 |
| | |||||
* | Fix more bugs | Edwin Cheng | 2019-04-25 | 7 | -24/+202 |
| | |||||
* | Add handling `token` seperator in mbe | Edwin Cheng | 2019-04-25 | 7 | -226/+218 |
| | |||||
* | Add more information on macro rules fail to parse | Edwin Cheng | 2019-04-25 | 1 | -2/+8 |
| | |||||
* | Fix incorrect repeat sep eating | Edwin Cheng | 2019-04-25 | 3 | -24/+304 |
| | |||||
* | drop empty file | Aleksey Kladov | 2019-04-25 | 1 | -0/+0 |
| | |||||
* | simplify match | kjeremy | 2019-04-24 | 1 | -4/+1 |
| | |||||
* | See through references | kjeremy | 2019-04-24 | 1 | -2/+20 |
| | |||||
* | Merge #1200 | bors[bot] | 2019-04-23 | 1 | -18/+70 |
|\ | | | | | | | | | | | | | | | 1200: Allows searching for case-equivalent symbols (fixes #1151) r=matklad a=jrvidal I couldn't find a nice, functional way of calculating the ranges in one pass so I resorted to a plain old `for` loop. Co-authored-by: Roberto Vidal <[email protected]> | ||||
| * | CR corrections | Roberto Vidal | 2019-04-23 | 1 | -2/+2 |
| | | |||||
| * | Allows searching for case-equivalent symbols (fixes #1151) | Roberto Vidal | 2019-04-23 | 1 | -18/+70 |
| | | |||||
* | | Simplify | kjeremy | 2019-04-23 | 1 | -5/+3 |
| | | |||||
* | | Basic resolution for ADT | kjeremy | 2019-04-23 | 5 | -2/+99 |
|/ | |||||
* | Merge #1147 | bors[bot] | 2019-04-23 | 6 | -15/+133 |
|\ | | | | | | | | | | | | | | | 1147: Handle macros in type checking / HIR r=matklad a=Lapz An other attempt at #1102. I will need to flatten the nested if statements and im also not sure if the way that i get the resolver and module will always work Co-authored-by: Lenard Pratt <[email protected]> | ||||
| * | Introduced resolve_macro_call on resolver | Lenard Pratt | 2019-04-23 | 5 | -55/+112 |
| | | | | | | | | | | | | changed to manual expansion fix for nested macros | ||||
| * | Added macro resolution and expansion | Lenard Pratt | 2019-04-22 | 7 | -106/+135 |
| | | |||||
| * | Addeded resolver and db | Lenard Pratt | 2019-04-22 | 2 | -60/+92 |
| | | |||||
* | | Add `...` parsing for fn pointer type | Edwin Cheng | 2019-04-23 | 4 | -3/+47 |
|/ | |||||
* | Add cached for SubtreeSource | Edwin Cheng | 2019-04-22 | 1 | -4/+20 |
| | |||||
* | Merge #1194 | bors[bot] | 2019-04-22 | 7 | -77/+271 |
|\ | | | | | | | | | | | | | | | | | 1194: Pr 1190 r=matklad a=matklad Co-authored-by: Andrea Pretto <[email protected]> Co-authored-by: Aleksey Kladov <[email protected]> | ||||
| * | unused import | Aleksey Kladov | 2019-04-22 | 1 | -2/+0 |
| | |