aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_assists/src/utils.rs
Commit message (Collapse)AuthorAgeFilesLines
* 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