Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Use GenericParam in ScopeDef | Aleksey Kladov | 2019-11-21 | 2 | -4/+10 | |
| | ||||||
* | Move ScopeDef | Aleksey Kladov | 2019-11-21 | 4 | -31/+31 | |
| | ||||||
* | Decouple | Aleksey Kladov | 2019-11-21 | 6 | -75/+105 | |
| | ||||||
* | Decouple | Aleksey Kladov | 2019-11-21 | 5 | -43/+59 | |
| | ||||||
* | Move expr resolver to resolve | Aleksey Kladov | 2019-11-21 | 4 | -33/+35 | |
| | ||||||
* | Decouple Resolver | Aleksey Kladov | 2019-11-21 | 10 | -108/+188 | |
| | ||||||
* | Merge #2332 | bors[bot] | 2019-11-20 | 9 | -141/+126 | |
|\ | | | | | | | | | | | | | | | 2332: Add HasResolver trait r=matklad a=matklad bors merge Co-authored-by: Aleksey Kladov <[email protected]> | |||||
| * | Simplify | Aleksey Kladov | 2019-11-20 | 2 | -41/+15 | |
| | | ||||||
| * | Add HasResolver trait | Aleksey Kladov | 2019-11-20 | 9 | -134/+145 | |
| | | ||||||
* | | Merge #2330 | bors[bot] | 2019-11-20 | 9 | -105/+81 | |
|\| | | | | | | | | | | | | | | | 2330: Remove hir/adt.rs r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]> | |||||
| * | Remove hir/adt.rs | Aleksey Kladov | 2019-11-20 | 6 | -66/+47 | |
| | | ||||||
| * | Simplify generic params | Aleksey Kladov | 2019-11-20 | 4 | -39/+34 | |
| | | ||||||
* | | fix 2190; add test for "replace if let with match" | Felix Kohlgrüber | 2019-11-20 | 3 | -5/+58 | |
|/ | ||||||
* | Move generic_params query to HIR | Aleksey Kladov | 2019-11-20 | 4 | -27/+37 | |
| | ||||||
* | Move constants to new ID | Aleksey Kladov | 2019-11-20 | 16 | -89/+119 | |
| | | | | This allows us to get rid of trait item index | |||||
* | Don't duplicate ContainerId type | Aleksey Kladov | 2019-11-20 | 5 | -42/+35 | |
| | ||||||
* | Switch type aliases to new sources | Aleksey Kladov | 2019-11-20 | 9 | -73/+162 | |
| | ||||||
* | Merge #2326 | bors[bot] | 2019-11-20 | 1 | -132/+0 | |
|\ | | | | | | | | | | | | | | | 2326: Remove duplicate tests r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]> | |||||
| * | Remove duplicate tests | Aleksey Kladov | 2019-11-20 | 1 | -132/+0 | |
| | | ||||||
* | | Fix expand macro | Edwin Cheng | 2019-11-20 | 3 | -9/+16 | |
| | | ||||||
* | | Next gen IDs for functions | Aleksey Kladov | 2019-11-20 | 12 | -42/+190 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current system with AstIds has two primaraly drawbacks: * It is possible to manufacture IDs out of thin air. For example, it's possible to create IDs for items which are not considered in CrateDefMap due to cfg. Or it is possible to mixup structs and unions, because they share ID space. * Getting the ID of a parent requires a secondary index. Instead, the plan is to pursue the more traditional approach, where each items stores the id of the parent declaration. This makes `FromSource` more awkward, but also more correct: now, to get from an AST to HIR, we first do this recursively for the parent item, and the just search the children of the parent for the matching def | |||||
* | | Move traits to hir_def | Aleksey Kladov | 2019-11-20 | 10 | -117/+103 | |
|/ | ||||||
* | Rename with_ast -> with_value | Aleksey Kladov | 2019-11-20 | 8 | -51/+51 | |
| | ||||||
* | Move Generics to hir_def | Aleksey Kladov | 2019-11-20 | 6 | -170/+247 | |
| | ||||||
* | Allow non-path default type parameters | Aleksey Kladov | 2019-11-20 | 6 | -19/+38 | |
| | ||||||
* | Rename Source::ast -> Source::value | Aleksey Kladov | 2019-11-20 | 43 | -214/+226 | |
| | ||||||
* | Merge pull request #2297 from kiljacken/master | Aleksey Kladov | 2019-11-20 | 8 | -22/+132 | |
|\ | | | | | Add fancy truncation of type hints. | |||||
| * | Add test for inlay hint truncation | Emil Lauridsen | 2019-11-19 | 1 | -0/+37 | |
| | | ||||||
| * | Move type inlay hint truncation to language server | Emil Lauridsen | 2019-11-19 | 8 | -22/+95 | |
| | | | | | | | | | | | | | | | | | | | | | | | | This commit implements a general truncation framework for HirFormatter that keeps track of how much has been output so far. This information can then be used to perform truncation inside the language server, instead of relying on the client. Initial support is implemented for truncating types hints using the maxInlayHintLength server config option. The existing solution in the VSCode extension has been removed in favor of letting the server truncate type hints. | |||||
* | | :arrow_up: rowan | Aleksey Kladov | 2019-11-19 | 3 | -19/+18 | |
| | | ||||||
* | | Add shot doc for expand_macro module | Edwin Cheng | 2019-11-19 | 1 | -1/+1 | |
| | | ||||||
* | | Improve insert_whitespaces | Edwin Cheng | 2019-11-19 | 1 | -17/+77 | |
| | | ||||||
* | | Change return type of expand_macro | Edwin Cheng | 2019-11-19 | 4 | -8/+25 | |
| | | ||||||
* | | Change to use Expansion::file_id and reordering | Edwin Cheng | 2019-11-19 | 2 | -46/+40 | |
| | | ||||||
* | | Rebase | Edwin Cheng | 2019-11-19 | 2 | -3/+9 | |
| | | ||||||
* | | Add recursive expand in vscode | Edwin Cheng | 2019-11-19 | 5 | -0/+148 | |
| | | ||||||
* | | Fixed a bug for string lit in quote | Edwin Cheng | 2019-11-19 | 1 | -4/+4 | |
|/ | ||||||
* | Merge #2309 | bors[bot] | 2019-11-18 | 1 | -7/+29 | |
|\ | | | | | | | | | | | | | | | 2309: Goto type def through macros r=matklad a=kjeremy Co-authored-by: kjeremy <[email protected]> | |||||
| * | Goto type def through macros | kjeremy | 2019-11-18 | 1 | -7/+29 | |
| | | ||||||
* | | Merge #2307 | bors[bot] | 2019-11-18 | 1 | -42/+62 | |
|\ \ | | | | | | | | | | | | | | | | | | | | | | 2307: Support hover through macro r=matklad a=kjeremy Allows hover to work through macros like `match_ast!`. Co-authored-by: kjeremy <[email protected]> | |||||
| * | | Fix test | kjeremy | 2019-11-18 | 1 | -10/+6 | |
| | | | ||||||
| * | | Support hover through macro | kjeremy | 2019-11-18 | 1 | -42/+66 | |
| |/ | ||||||
* / | Remove the custom impl of AttrsOwner for ImplItem | DJMcNab | 2019-11-18 | 3 | -12/+4 | |
|/ | | | | | | The default impl should have the same behaviour, and it can be generated by codegen. See also `ModuleItem` and `NominalDef` | |||||
* | Use Source<&ast::Name> in classify_name | kjeremy | 2019-11-18 | 4 | -25/+22 | |
| | ||||||
* | Collapse TokenMap and RevTokenMap | Aleksey Kladov | 2019-11-18 | 4 | -119/+105 | |
| | ||||||
* | Token-based reverse-mapping | Aleksey Kladov | 2019-11-18 | 3 | -38/+52 | |
| | ||||||
* | More sources | Aleksey Kladov | 2019-11-18 | 2 | -41/+32 | |
| | ||||||
* | Add ra_ide_api::expand | Aleksey Kladov | 2019-11-18 | 4 | -55/+69 | |
| | | | | | This module should handle all tricky bits with mapping macro-expanded HirFileId to original files the user actually can see in the editor | |||||
* | More Source | Aleksey Kladov | 2019-11-18 | 1 | -19/+18 | |
| | ||||||
* | Publicise GenericParams | Aleksey Kladov | 2019-11-18 | 1 | -3/+3 | |
| | | | | See https://rust-lang.zulipchat.com/#narrow/stream/185405-t-compiler.2Fwg-rls-2.2E0/topic/Exposing.20GenericParam.2Ename |