aboutsummaryrefslogtreecommitdiff
path: root/crates
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Move Namespace enum closer to usageAleksey Kladov2019-11-049-26/+29
| | |
* | | Appease the linter by dummy doc commentsAleksey Kladov2019-11-042-1/+3
| | |
* | | SimplifyAleksey Kladov2019-11-041-35/+24
| | |
* | | Restore assists testsAleksey Kladov2019-11-043-4/+50
| | |
* | | Rename MockDatabase -> TestDBAleksey Kladov2019-11-046-60/+57
| | | | | | | | | | | | Actually working rename is sooo useful!
* | | remove dead codeAleksey Kladov2019-11-041-26/+7
| | |
* | | Remove more duplication in test fixturesAleksey Kladov2019-11-045-62/+18
| | |
* | | Remove some duplicated test functionsAleksey Kladov2019-11-041-81/+16
| | |
* | | Reduce visibilityAleksey Kladov2019-11-042-6/+10
| |/ |/|
* | Merge #2173bors[bot]2019-11-042-2/+70
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2173: MBE: Add TokenId shift in macro_rules r=matklad a=edwin0cheng As discussed in #2169 , for fixing duplication TokenId during expansion : > What we can do here is to re-number the tokens during expansion. Specifically: > * when we create macro_rules, we note the highest id of the token we have as shift> > * when we expand macro rules, if we need to output a token from definition, we just re-use its id > * if we need to output a token from the argument, we increase its id by shift (so it's guaranteed to not to collide with anything from the definition) > * finally, when we have a HirFileId of the expansion, we can look up the original value of shift and classify node to the arg/def by comparing it's id with shift. > This PR implement first 3 points of above solution. Co-authored-by: Edwin Cheng <[email protected]>
| * Change to add 1 if non zero shiftEdwin Cheng2019-11-041-1/+1
| |
| * Refactor and renameEdwin Cheng2019-11-041-21/+20
| |
| * Change Option<u32> to u32 for shift valueEdwin Cheng2019-11-041-8/+5
| |
| * Change to better namingEdwin Cheng2019-11-041-3/+3
| |
| * Add TokenId Shif in macro_rulesEdwin Cheng2019-11-042-2/+74
| |
* | Merge #2172bors[bot]2019-11-043-138/+25
|\ \ | | | | | | | | | | | | | | | | | | | | | 2172: Use new text DSL instead of crate_graph! macro r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * | Cleanup unused marksAleksey Kladov2019-11-041-10/+0
| | |
| * | Use new text DSL instead of crate_graph! macroAleksey Kladov2019-11-043-128/+25
| | |
* | | Merge #2149bors[bot]2019-11-042-29/+207
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2149: Handle IfLet in convert_to_guarded_return. r=matklad a=krk Fixes https://github.com/rust-analyzer/rust-analyzer/issues/2124 I could not move the cursor position out of `let`: `le<|>t` vs `let<|>`. Also, please suggest extra test cases. Co-authored-by: krk <[email protected]>
| * | Extract common parts of match arms in convert_to_guarded_return assist.krk2019-11-011-50/+37
| | |
| * | Support paths other than "Some".krk2019-11-012-10/+59
| | |
| * | Remove variable pat.krk2019-11-011-2/+1
| | |
| * | Handle IfLet in convert_to_guarded_return.krk2019-10-312-28/+171
| | |
* | | Reexport relative_path from ra_dbAleksey Kladov2019-11-0315-24/+15
| | |
* | | Add small module-level docsAleksey Kladov2019-11-033-0/+9
| | |
* | | Remove last traces of nameres from hirAleksey Kladov2019-11-038-67/+59
| | |
* | | Restore crate_def_map marksAleksey Kladov2019-11-039-26/+41
| | |
* | | move crate_def_map tests to hir_defAleksey Kladov2019-11-0312-195/+308
| | |
* | | Introduce ra_db::fixture fixture moduleAleksey Kladov2019-11-036-11/+96
| | | | | | | | | | | | The goal here is to share more testing infrastructure between crates.
* | | Move CrateDefMap to hir_defAleksey Kladov2019-11-0323-733/+826
| |/ |/|
* | Merge #2160bors[bot]2019-11-034-1/+113
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | 2160: Set `deprecated` field on `CompletionItem`s r=matklad a=martskins This PR aims to address #2042 by setting the deprecated field for completion items. The setting the tags field for LSP 3.15 part still needs fixing, but that one is blocked due to lsp-types not being up to date with 3.15 yet. Co-authored-by: Martin Asquino <[email protected]>
| * | Use `bool` instead of `Option<bool>` and print it's value only when `true`Martin Asquino2019-11-029-79/+6
| | |
| * | Set `deprecated` field on `CompletionItem`sMartin Asquino2019-11-029-1/+186
| | |
* | | Silence some warningsLaurențiu Nicola2019-11-021-2/+2
| | |
* | | Move diagnostics to hir_expandAleksey Kladov2019-11-028-89/+107
| | |
* | | Move Source to hir_expandAleksey Kladov2019-11-024-20/+23
| | |
* | | Upgrade ChalkFlorian Diebold2019-11-021-3/+3
|/ /
* | Change SourceAnalyzer method resoltion APIFlorian Diebold2019-11-014-36/+44
| |
* | Various review fixesFlorian Diebold2019-11-013-17/+13
| |
* | Add some doc commentsFlorian Diebold2019-11-011-0/+6
| |
* | Complete items on traits as wellFlorian Diebold2019-11-011-2/+46
| |
* | Complete trait assoc itemsFlorian Diebold2019-11-015-17/+56
| |
* | Add failing tests for trait assoc method completionFlorian Diebold2019-11-011-0/+60
| |
* | Refactor a bitFlorian Diebold2019-11-011-36/+25
| |
* | Don't do autoderef for path resolutionFlorian Diebold2019-11-011-18/+39
| |
* | Refactor to unify with method resolutionFlorian Diebold2019-11-017-141/+117
| |
* | Record assoc item resolutionFlorian Diebold2019-11-012-1/+58
| |
* | Insert type vars before doing assoc item resolutionFlorian Diebold2019-11-012-12/+15
| |
* | Add another unrelated, currently not working testFlorian Diebold2019-11-011-0/+16
| |
* | Get trait assoc item resolution mostly workingFlorian Diebold2019-11-013-16/+261
| |