aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_assists/src/utils.rs
Commit message (Collapse)AuthorAgeFilesLines
* Follow matklad suggestionsVeetaha2020-06-281-1/+10
| | | | | | - Move vis_offset() to utils.rs - Shorten explicit ra_syntax::ast -> ast - Undo refactoring exhaustive pattern to non-exhaustive
* Centralize fixture parsing for assistsAleksey Kladov2020-06-231-2/+1
|
* Expose `find_insert_use_container`Jonas Schievink2020-06-131-1/+1
|
* Fix Some|None order in fill_match_armsAleksey Kladov2020-05-201-7/+28
|
* Use snippets in add_missing_membersAleksey Kladov2020-05-201-9/+22
|
* Moderate cleanup of add_functionAleksey Kladov2020-05-201-1/+7
|
* Use snippets in add functionAleksey Kladov2020-05-201-2/+22
|
* add if let and while let postfix for Option and ResultBenjamin Coenen2020-05-101-2/+2
| | | | Signed-off-by: Benjamin Coenen <[email protected]>
* Rename ImplItem to AssocItemEdwin Cheng2020-05-051-5/+5
|
* Support auto-import in macroEdwin Cheng2020-05-021-1/+1
|
* More principled approach for finding From traitAleksey Kladov2020-04-291-1/+59
|
* Use specific pattern when translating if-let-else to matchAleksey Kladov2020-04-291-10/+47
| | | | | | We *probably* should actually use the same machinery here, as we do for fill match arms, but just special-casing options and results seems to be a good first step.
* Move shared assist code to utilsAleksey Kladov2020-04-291-1/+14
|
* Rename ast::ImplBlock -> ast::ImplDefAleksey Kladov2020-02-291-5/+5
|
* Move insert_use util to utilsAleksey Kladov2020-02-281-0/+3
|
* Refactor primary IDE APIAleksey Kladov2020-02-261-12/+12
| | | | | | | | | | This introduces the new type -- Semantics. Semantics maps SyntaxNodes to various semantic info, such as type, name resolution or macro expansions. To do so, Semantics maintains a HashMap which maps every node it saw to the file from which the node originated. This is enough to get all the necessary hir bits just from syntax.
* Fixing minor suggestions and added module level documentation.Kevin DeLorey2020-02-111-2/+1
|
* Removed doc comments entirely from the changes.Kevin DeLorey2020-02-111-2/+0
|
* Formatted changes.Kevin DeLorey2020-02-111-5/+5
|
* Updated the `add_missing_impl_members` to use the shared utility.Kevin DeLorey2020-02-111-1/+1
|
* Adjusted the hashset buckets to lump functions/consts together as their ↵Kevin DeLorey2020-02-111-9/+10
| | | | names must be unique.
* Added a utility function that can be used to determine the missing impl items.Kevin DeLorey2020-02-091-2/+75
|
* Introduce assists utilsAleksey Kladov2020-02-071-0/+27