Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | | drop useless test | Aleksey Kladov | 2019-04-22 | 1 | -28/+0 | |
| | | | ||||||
| * | | move add_missing_members to structured editing API | Aleksey Kladov | 2019-04-22 | 4 | -146/+231 | |
| | | | | | | | | | | | | | | | Currently, this is more code, and we also loose auto-indenting of bodies, but, long-term, this is the right approach | |||||
| * | | fix postfix match indent | Aleksey Kladov | 2019-04-22 | 2 | -4/+4 | |
| | | | ||||||
| * | | more type safety | Aleksey Kladov | 2019-04-22 | 3 | -4/+29 | |
| | | | ||||||
| * | | test short structs | Aleksey Kladov | 2019-04-21 | 3 | -4/+39 | |
| | | | ||||||
| * | | use structured editing API for fill struct assist | Aleksey Kladov | 2019-04-21 | 3 | -119/+138 | |
| | | | ||||||
| * | | start structured editing API | Aleksey Kladov | 2019-04-21 | 6 | -3/+238 | |
| | | | ||||||
* | | | Use map, sum in Subtree::coount instead of fold | Edwin Cheng | 2019-04-22 | 1 | -4/+8 | |
| | | | ||||||
* | | | Change macro stack monitor test to func ptr based | Edwin Cheng | 2019-04-22 | 1 | -40/+25 | |
| | | | ||||||
* | | | Add mbe expand limit and poision macro set | Edwin Cheng | 2019-04-22 | 5 | -18/+216 | |
| |/ |/| | ||||||
* | | Add tests | Edwin Cheng | 2019-04-21 | 1 | -2/+87 | |
| | | ||||||
* | | Fix offset bug in SourceWalker | Edwin Cheng | 2019-04-21 | 1 | -6/+7 | |
| | | ||||||
* | | Handle `*+` case and single token case | Edwin Cheng | 2019-04-21 | 1 | -5/+56 | |
| | | ||||||
* | | fix mbe_parser rhs colon parsing | Edwin Cheng | 2019-04-21 | 1 | -10/+11 | |
| | | ||||||
* | | Add more information on parse_macro fail | Edwin Cheng | 2019-04-21 | 1 | -10/+27 | |
| | | ||||||
* | | Fix lifetime in tt to syntax node conversion | Edwin Cheng | 2019-04-21 | 1 | -1/+6 | |
|/ | ||||||
* | Add HIR for where clauses & ignore impls with where clauses in trait resolution | Florian Diebold | 2019-04-21 | 3 | -5/+63 | |
| | | | | | This prevents any `impl<T> Trait for T where ...` from being treated as a blanket impl while we don't handle where clauses yet. | |||||
* | :arrow_up: lsp | Aleksey Kladov | 2019-04-21 | 1 | -1/+1 | |
| | ||||||
* | Merge #1175 | bors[bot] | 2019-04-21 | 5 | -50/+154 | |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | 1175: Fix bugs and add error log about macro expansion r=matklad a=edwin0cheng This PR fixed / add following things: * Add a fused count which stop recursion of macro expansion in name resolution. * Add some logs when macro expansion fails * Add `$crate` meta variable support in mbe, which create a `$crate` ident token in token tree. * Fixed matching a `$REPEAT` pattern inside a subtree, e.g. `(fn $name:ident {$($i:ident)*} ) => {...}` * Remove composite-able punct token in syntax node to token conversion. Co-authored-by: Edwin Cheng <[email protected]> | |||||
| * | Fix bugs | Edwin Cheng | 2019-04-20 | 5 | -50/+154 | |
| | | ||||||
* | | switch to official extend selection API | Aleksey Kladov | 2019-04-21 | 6 | -4/+73 | |
| | | ||||||
* | | Add a simple test for str method completion | Florian Diebold | 2019-04-20 | 1 | -0/+22 | |
| | | ||||||
* | | Merge #1154 | bors[bot] | 2019-04-20 | 11 | -19/+174 | |
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | 1154: Initial support for lang items (and str completion) r=flodiebold a=marcogroppo This PR adds partial support for lang items. For now, the only supported lang items are the ones that target an impl block. Lang items are now resolved during type inference - this means that `str` completion now works. Fixes #1139. (thanks Florian Diebold for the help!) Co-authored-by: Marco Groppo <[email protected]> | |||||
| * | lang_item_lookup is now a salsa query. | Marco Groppo | 2019-04-19 | 3 | -32/+34 | |
| | | ||||||
| * | New krate() method in Resolver. | Marco Groppo | 2019-04-19 | 5 | -56/+46 | |
| | | | | | | | | Renamed Impl to ImplBlock. | |||||
| * | Initial support for lang items. | Marco Groppo | 2019-04-19 | 11 | -41/+204 | |
| | | ||||||
* | | Disable test_tt_xx | Edwin Cheng | 2019-04-19 | 1 | -23/+23 | |
| | | ||||||
* | | Disable tt matcher | Edwin Cheng | 2019-04-19 | 1 | -4/+8 | |
| | | ||||||
* | | Add back missing assert | Edwin Cheng | 2019-04-19 | 1 | -2/+3 | |
| | | ||||||
* | | Fix bug for ident to lifetime | Edwin Cheng | 2019-04-19 | 1 | -0/+7 | |
| | | ||||||
* | | Add vis matcher | Edwin Cheng | 2019-04-19 | 6 | -1/+33 | |
| | | ||||||
* | | Add literal matcher | Edwin Cheng | 2019-04-19 | 3 | -0/+35 | |
| | | ||||||
* | | Add lifetime matcher | Edwin Cheng | 2019-04-19 | 4 | -2/+25 | |
| | | ||||||
* | | add tt matcher | Edwin Cheng | 2019-04-19 | 2 | -0/+28 | |
| | | ||||||
* | | add block matcher | Edwin Cheng | 2019-04-19 | 6 | -0/+64 | |
| | | ||||||
* | | Add block matcher | Edwin Cheng | 2019-04-19 | 6 | -0/+35 | |
| | | ||||||
* | | Merge #1148 | bors[bot] | 2019-04-19 | 8 | -20/+295 | |
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1148: Add token_tree_to_xxx functions r=matklad a=edwin0cheng <del>As discus in PR #1147 , this PR added a `mbe::MacroKind` . Currently only 2 kind of macro are supported, `SourceFile` and `Block`.</del> Added following functions for `tt::TokenTree` and `ast::Node` conversion: * token_tree_to_expr * token_tree_to_pat * token_tree_to_ty * token_tree_to_macro_stmts * token_tree_to_macro_items And added two new syntax kind: * MACRO_ITEMS * MACRO_STMTS Co-authored-by: Edwin Cheng <[email protected]> | |||||
| * | Return Result for token_tree_to_xx functions | Edwin Cheng | 2019-04-18 | 2 | -14/+24 | |
| | | ||||||
| * | Add expr, pat, ty and macro_stmts | Edwin Cheng | 2019-04-18 | 5 | -15/+156 | |
| | | ||||||
| * | Add MacroItems and MacroStmts in grammer.ron | Edwin Cheng | 2019-04-18 | 7 | -8/+132 | |
| | | ||||||
* | | Fix missing last token in mbe $repeat parsing | Edwin Cheng | 2019-04-18 | 2 | -1/+24 | |
|/ | ||||||
* | Add `item` matcher in mbe | Edwin Cheng | 2019-04-18 | 6 | -0/+70 | |
| | ||||||
* | Merge #1160 | bors[bot] | 2019-04-17 | 1 | -8/+23 | |
|\ | | | | | | | | | | | | | | | 1160: better formatting when adding trait members r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]> | |||||
| * | better formatting when adding trait members | Aleksey Kladov | 2019-04-17 | 1 | -8/+23 | |
| | | | | | | | | | | | | * it's conventional not to use one-liners * new placement is more predictable, b/c it does not depend on header's length | |||||
* | | Merge #1145 | bors[bot] | 2019-04-17 | 2 | -8/+117 | |
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | 1145: Fix #1099, plug self type type parameters in infer_path_expr r=flodiebold a=edwin0cheng As discussed in #1099, this PR try to "plug" a `self type` type parameters in `infer_path_expr`. All the cases in 1099 was fixed and tested. And luckily, this PR fixed bug #1030 again and make the test output correct. Co-authored-by: Edwin Cheng <[email protected]> | |||||
| * | Refactoring | Edwin Cheng | 2019-04-17 | 1 | -51/+46 | |
| | | ||||||
| * | Simpliy code | Edwin Cheng | 2019-04-17 | 1 | -60/+32 | |
| | | ||||||
| * | Bug fix and add more comments | Edwin Cheng | 2019-04-17 | 1 | -22/+60 | |
| | | ||||||
| * | Fix 1099 | Edwin Cheng | 2019-04-17 | 2 | -5/+109 | |
| | | ||||||
* | | cleanup cancellation | Aleksey Kladov | 2019-04-17 | 2 | -13/+6 | |
| | | | | | | | | | | Now that we explicitelly exit the reading loop on exit notification, we can assume that the sender is always alive |