aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_analysis
Commit message (Collapse)AuthorAgeFilesLines
...
| * introduce navigation targetAleksey Kladov2019-01-022-8/+23
| |
| * move symbols to ra_analysisAleksey Kladov2019-01-023-8/+124
| |
* | rename MFileId -> HirFileIdAleksey Kladov2019-01-013-4/+4
| |
* | add items from macros to modulesAleksey Kladov2019-01-011-0/+1
| |
* | hard-code expansion of query_groupAleksey Kladov2019-01-011-1/+23
| |
* | renameAleksey Kladov2019-01-011-4/+4
| |
* | move more macros to hirAleksey Kladov2019-01-015-43/+14
| |
* | use macros database in analysisAleksey Kladov2019-01-014-62/+22
|/
* place complete_use_tree_keyword in the same mod with complete_expr_keywordgfreezy2019-01-013-77/+67
|
* move to a seperate complete_use_tree_keyword modgfreezy2019-01-013-64/+77
|
* complete "self" and "super"gfreezy2019-01-011-20/+44
|
* complete "use crate" for "use cr" toogfreezy2019-01-011-2/+14
|
* complete crate in use stmtgfreezy2019-01-011-0/+29
|
* Merge #395bors[bot]2018-12-312-14/+19
|\ | | | | | | | | | | | | | | 395: generalize r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * generalize highlighting to work with nodesAleksey Kladov2018-12-311-2/+2
| |
| * generalize extend selection to work with nodesAleksey Kladov2018-12-311-12/+17
| |
* | Make modules with tests runnableJan Jansen2018-12-315-4/+272
|/ | | | Fixes #154
* Merge #375bors[bot]2018-12-303-3/+123
|\ | | | | | | | | | | | | | | | | | | 375: Move renames into ra_analysis and rename the correct range r=DJMcNab a=DJMcNab Fixes #230. Supersedes #235. TODO: add some tests for this Co-authored-by: DJMcNab <[email protected]>
| * Test renamesDJMcNab2018-12-301-1/+92
| |
| * Move renames into ra_analysisDJMcNab2018-12-302-2/+31
| |
* | refine semi completionAleksey Kladov2018-12-302-16/+34
| |
* | semies after break&continueAleksey Kladov2018-12-301-4/+33
|/
* add `;` to last return in blockAleksey Kladov2018-12-302-15/+46
|
* don't add () in use itemsAleksey Kladov2018-12-303-10/+32
|
* use completion context when creating completionAleksey Kladov2018-12-303-8/+8
|
* Merge #358bors[bot]2018-12-302-0/+6
|\ | | | | | | | | | | | | | | | | | | | | | | 358: Add support for formatting entire document with rustfmt r=matklad a=aleksanb Attempting to format a document when rustfmt isn't installed will result in an error being returned to the frontend. An alternative implementation would be returning zero replacements. Part of https://github.com/rust-analyzer/rust-analyzer/issues/160. Co-authored-by: Aleksander Vognild Burkow <[email protected]>
| * Add support for formatting entire document with rustfmtAleksander Vognild Burkow2018-12-292-0/+6
| | | | | | | | | | | | Attempting to format a document when rustfmt isn't installed will result in an error being returned to the frontend. An alternative implementation would be returning zero replacements.
* | add paramthesis when completing functionsAleksey Kladov2018-12-302-10/+39
|/
* completion for enum variantsAleksey Kladov2018-12-282-9/+31
|
* extend selection works with macrosAleksey Kladov2018-12-283-4/+68
|
* Merge #350bors[bot]2018-12-285-22/+167
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 350: Super simple macro support r=matklad a=matklad Super simple support for macros, mostly for figuring out how to fit them into the current architecture. Expansion is hard-coded and string based (mid-term, we should try to copy-paste macro-by-example expander from rustc). Ideally, we should handle * highlighting inside the macro (done) * extend selection inside the macro * completion inside the macro * indexing structs, produced by the macro Co-authored-by: Aleksey Kladov <[email protected]>
| * move macro to a separate moduleAleksey Kladov2018-12-283-60/+67
| |
| * switch to FileRangeAleksey Kladov2018-12-282-3/+16
| |
| * introduce FileRangeAleksey Kladov2018-12-282-18/+22
| |
| * highlight macro identsAleksey Kladov2018-12-281-1/+1
| |
| * super simplistic macro expansionAleksey Kladov2018-12-281-1/+108
| |
| * add macro-call nodeAleksey Kladov2018-12-281-2/+4
| |
| * move highlightning to a separate fileAleksey Kladov2018-12-282-2/+14
| |
* | :arrow_up: salsaAleksey Kladov2018-12-281-1/+1
|/
* simplifyAleksey Kladov2018-12-271-6/+1
|
* dead codeAleksey Kladov2018-12-272-21/+1
|
* remove FnIdAleksey Kladov2018-12-272-4/+0
|
* use names everywhereAleksey Kladov2018-12-271-18/+16
|
* add function to completion ctxAleksey Kladov2018-12-275-21/+18
|
* Bump parking_lot from 0.6.4 to 0.7.0dependabot[bot]2018-12-271-1/+1
| | | | | | | | Bumps [parking_lot](https://github.com/Amanieu/parking_lot) from 0.6.4 to 0.7.0. - [Release notes](https://github.com/Amanieu/parking_lot/releases) - [Changelog](https://github.com/Amanieu/parking_lot/blob/master/CHANGELOG.md) - [Commits](https://github.com/Amanieu/parking_lot/commits) Signed-off-by: dependabot[bot] <[email protected]>
* Merge #332bors[bot]2018-12-276-24/+177
|\ | | | | | | | | | | | | | | | | | | 332: Struct types r=matklad a=flodiebold Infer types for struct fields, and add basic field completions. There's also some code for enums, but I focused on getting structs working. There's still ways to go before this becomes useful: There's no autoderef (or even reference types) and no inference for `self`, for example. Co-authored-by: Florian Diebold <[email protected]>
| * Resolve field types lazilyFlorian Diebold2018-12-251-0/+1
| | | | | | | | I.e. not already when getting the HIR for the struct.
| * Add a hir::TypeRef as an intermediate between ast::TypeRef and ty::TyFlorian Diebold2018-12-251-1/+1
| |
| * Determine receiver for completion in a more robust wayFlorian Diebold2018-12-252-21/+31
| | | | | | | | Also rename a parameter.
| * Implement basic completion for fieldsFlorian Diebold2018-12-254-8/+133
| |