aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/ast/edit.rs
Commit message (Collapse)AuthorAgeFilesLines
* Rename TypeArgList -> GenericArgListAleksey Kladov2020-07-311-4/+4
|
* Rename RecordLit -> RecordExprAleksey Kladov2020-07-301-5/+5
|
* Rename TypeAliasDef -> TypeAliasAleksey Kladov2020-07-301-2/+2
|
* Rename FnDef -> FnAleksey Kladov2020-07-301-2/+2
|
* Rename UseItem -> UseAleksey Kladov2020-07-301-2/+2
|
* Update testsAleksey Kladov2020-07-301-2/+6
|
* Rename RenameAleksey Kladov2020-07-301-1/+1
|
* Split ItemList & AssocItemListAleksey Kladov2020-07-301-3/+6
|
* Move remove_bounds to edit.rsJonas Schievink2020-07-141-0/+15
|
* Clippy perf warningskjeremy2020-07-061-6/+2
| | | | Removes redundant clones
* Use correct indent when replacing with matchAleksey Kladov2020-06-091-4/+9
|
* Moderate cleanup of add_functionAleksey Kladov2020-05-201-8/+36
|
* unindent -> dedentAleksey Kladov2020-05-091-1/+1
|
* More fluent indent APIAleksey Kladov2020-05-091-13/+13
|
* Rename ImplItem to AssocItemEdwin Cheng2020-05-051-3/+3
|
* Introduce EffectExprAleksey Kladov2020-05-021-1/+1
|
* Fix panic in split_imports assistAleksey Kladov2020-04-201-1/+5
| | | | | | | | | | | | | | | The fix is admittedly quit literally just papering over. Long-term, I see two more principled approaches: * we switch to a fully tree-based impl, without parse . to_string step; with this approach, there shouldn't be any panics. The results might be nonsensical, but so was the original input. * we preserve the invariant that re-parsing constructed node is an identity, and make all the `make_xxx` method return an `Option`. closes #4044
* Generate only minimal set of ineresting tokensAleksey Kladov2020-04-101-3/+3
|
* Curley tokensAleksey Kladov2020-04-101-2/+2
|
* Semicolon tokenAleksey Kladov2020-04-101-2/+2
|
* Remove code duplicationAleksey Kladov2020-04-091-2/+1
|
* Be consistent about token accesorsAleksey Kladov2020-04-091-2/+2
|
* Add _token suffix to token accessorsAleksey Kladov2020-04-091-3/+3
| | | | | I think this makes is more clear which things are : AstNode and which are : AstToken
* Provide more complete AST accessors to support usage in rustcLuca Barbieri2020-04-091-15/+11
|
* When adding match arm, don't let the floating commaAleksey Kladov2020-03-311-9/+20
|
* Use IntoIterAleksey Kladov2020-03-301-4/+4
|
* Tidy up insertion position logicMatthew Hall2020-03-291-20/+6
|
* Remove unneeded variablesMatthew Hall2020-03-291-4/+2
|
* Append new match arms rather than replacing all of themMatthew Hall2020-03-281-30/+112
| | | | This means we now retain comments when filling in match arms.
* Fix merge-imports assist for wildcard importsPiotr Szpetkowski2020-03-271-2/+3
|
* Replace if with if-letAleksey Kladov2020-03-271-3/+8
|
* Merge #3708bors[bot]2020-03-241-38/+65
|\ | | | | | | | | | | | | | | | | | | | | 3708: Generalise syntax rewriting infrastructure to allow removal of nodes r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
| * Generalise syntax rewriting infrastructure to allow removal of nodesAleksey Kladov2020-03-241-38/+65
| |
* | Align namingAleksey Kladov2020-03-241-3/+3
|/
* Merge imports assistAleksey Kladov2020-03-181-0/+20
| | | | Work towards #2220
* Strongly-typed generic methods for editing nodesAleksey Kladov2020-03-181-47/+49
|
* Simplify creation of `T[,]`Aleksey Kladov2020-03-061-2/+2
|
* Rerail split_import API onto ASTAleksey Kladov2020-03-061-0/+18
| | | | | The code is more verbose and less efficient now, but should be reusable in add_import context as well
* Add with_use_treeAleksey Kladov2020-03-051-0/+10
|
* Cleanup editing APIAleksey Kladov2020-02-291-6/+5
|
* More orthogonal path editingAleksey Kladov2020-01-151-0/+42
|
* More fluent APIAleksey Kladov2020-01-151-10/+12
|
* Slightly more fluent APIAleksey Kladov2020-01-151-1/+1
|
* SimplifyAleksey Kladov2020-01-151-5/+8
|
* SimplifyAleksey Kladov2020-01-151-7/+5
|
* Fix ordering problem between qualifying paths and substituting paramsFlorian Diebold2020-01-111-4/+4
|
* Use unwrap_or_defaultkjeremy2019-12-201-2/+2
|
* do refact and fix some issuebravomikekilo2019-11-241-1/+11
|
* Make make:: builders slightly more convenientAleksey Kladov2019-11-131-1/+1
|
* Adds "replace with guarded return" assistMikhail Modin2019-10-201-0/+28
|