aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api
Commit message (Collapse)AuthorAgeFilesLines
* Merge #1853bors[bot]2019-09-197-27/+47
|\ | | | | | | | | | | | | | | | | 1853: Introduce FromSource trait r=matklad a=viorina The idea is to provide an ability to get HIR from AST in a more general way than it's possible using `source_binder`. It also could help with #1622 fixing. Co-authored-by: Ekaterina Babshukova <[email protected]>
| * introduce FromSource traitEkaterina Babshukova2019-09-197-27/+47
| |
* | Pacify rustfmt.Mazdak Farrokhzad2019-09-191-4/+1
| |
* | `fold_kind`: `MATCH_ARM_LIST => FoldKind::Block`Mazdak Farrokhzad2019-09-191-0/+18
|/
* Remove TraitItem and ImplItem in favor of AssocItemFlorian Diebold2019-09-171-3/+3
|
* Refactor a bit to prepare for resolving trait assoc itemsFlorian Diebold2019-09-175-14/+17
|
* Remove a dbg!Florian Diebold2019-09-141-1/+1
|
* rename add_resolution -> add_scope_defAleksey Kladov2019-09-131-18/+0
|
* Specify desirable namespace when calling resolveAleksey Kladov2019-09-135-56/+76
| | | | That way, we are able to get rid of a number of unreachable statements
* rename AdtDef -> AdtAleksey Kladov2019-09-128-30/+24
|
* make various enums "inherit" from AdtDefAleksey Kladov2019-09-126-23/+24
|
* Complete vec macros with square bracketsKirill Bulatov2019-09-122-3/+36
|
* Add `!` to the macro completion labelKirill Bulatov2019-09-124-20/+24
|
* Complete macros parenthesisKirill Bulatov2019-09-124-9/+9
|
* Split out `complete_macro_in_item_position`uHOOCCOOHu2019-09-113-37/+52
|
* Fix typouHOOCCOOHu2019-09-111-1/+1
|
* Show macro definition in hover textuHOOCCOOHu2019-09-101-3/+21
|
* Support completion for macrosuHOOCCOOHu2019-09-104-2/+295
|
* introduce hir debugging infraAleksey Kladov2019-09-092-3/+43
| | | | | | | | | | | | This is to make debugging rust-analyzer easier. The idea is that `dbg!(krate.debug(db))` will print the actual, fuzzy crate name, instead of precise ID. Debug printing infra is a separate thing, to make sure that the actual hir doesn't have access to global information. Do not use `.debug` for `log::` logging: debugging executes queries, and might introduce unneded dependencies to the crate graph
* simplifyAleksey Kladov2019-09-061-38/+40
|
* make source_root API more abstractAleksey Kladov2019-09-062-3/+3
|
* fix renaming of modulesAleksey Kladov2019-09-052-72/+86
|
* always use \n newlinesAleksey Kladov2019-09-051-357/+357
|
* Make type walking infrastructure a bit nicerFlorian Diebold2019-09-031-1/+1
| | | | | If/when we switch to using Chalk's Ty, we'll need to replace this by its `Fold` trait, but I didn't want to import the whole thing just yet.
* fix assistsAleksey Kladov2019-09-021-42/+49
|
* fix hir for new block syntaxAleksey Kladov2019-09-021-1/+1
|
* :arrow_up: instaAleksey Kladov2019-08-2917-105/+105
|
* Strip indents and empty lines in check_apply_diagnostic_fix_from_positionPhil Ellison2019-08-251-36/+55
|
* Specify cursor position in ok-wrapping tests, and switch to using ↵Phil Ellison2019-08-252-35/+31
| | | | analysis_and_position function
* Simplify checking return type, add new testPhil Ellison2019-08-251-2/+28
|
* cargo formatPhil Ellison2019-08-251-10/+11
|
* Change test to not rely on trait inferencePhil Ellison2019-08-251-12/+7
|
* Check type rather than just name in ok-wrapping diagnostic. Add test for ↵Phil Ellison2019-08-251-0/+37
| | | | handling generic functions (which currently fails)
* Add test that ok-wrapping handles type aliasesPhil Ellison2019-08-251-0/+38
|
* Mock std String and Result types in tests for ok-wrapping diagnosticPhil Ellison2019-08-252-14/+65
|
* Initial implementation of Ok-wrappingPhil Ellison2019-08-251-0/+50
|
* rename struct -> record, pos -> tupleAleksey Kladov2019-08-2318-64/+70
|
* Merge #1715bors[bot]2019-08-224-7/+90
|\ | | | | | | | | | | | | | | 1715: Feature flags r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * implement feature flagsAleksey Kladov2019-08-224-7/+90
| |
* | Update snapshots/highlighting.html to use correct highlightingcynecx2019-08-221-2/+2
| |
* | Fix syntax-highlighting for fields (`NAMED_FIELD_DEF`)cynecx2019-08-211-14/+10
|/
* qualify ast types with `ast::`Aleksey Kladov2019-08-191-11/+8
| | | | | By convention, ast nodes should always be used as `ast::FnDef`. This is to avoid confusion with similarly-named hir types.
* remove ast::*Kind from ra_ide_apiAleksey Kladov2019-08-195-21/+19
|
* Merge #1691bors[bot]2019-08-161-2/+35
|\ | | | | | | | | | | | | | | 1691: Show inherent and trait impls of structs and enums r=viorina a=viorina Co-authored-by: Ekaterina Babshukova <[email protected]>
| * show inherent and trait impls of structs and enumsEkaterina Babshukova2019-08-161-2/+35
| |
* | implement durabilityAleksey Kladov2019-08-153-18/+46
|/
* Use Source in Diagnostic and implementEvgenii P2019-08-121-1/+1
|
* implement while let desugaringAleksey Kladov2019-08-071-7/+29
|
* Style and test fixesKirill Bulatov2019-08-041-28/+28
|
* Use proper inlay kindsKirill Bulatov2019-08-041-29/+13
|