aboutsummaryrefslogtreecommitdiff
path: root/crates/syntax/src/algo.rs
Commit message (Collapse)AuthorAgeFilesLines
* Fix accidently quadratic syntax rewriterAleksey Kladov2020-12-101-8/+14
| | | | | | Switching from SyntaxNode to GreenNode is a costly operation (b/c dereferencing a synax ptr in `with_green` is linear), so we should avoid that.
* Profile completions betterKirill Bulatov2020-11-271-0/+13
|
* Merge #6512bors[bot]2020-11-091-36/+89
|\ | | | | | | | | | | | | | | | | | | | | 6512: Don't replace parent node when inserting as first child in algo::diff r=SomeoneToIgnore a=Veykril This makes the diff a bit more detailed. See https://github.com/rust-analyzer/rust-analyzer/pull/6287#issuecomment-723889267 for context cc @SomeoneToIgnore Co-authored-by: Lukas Wirth <[email protected]>
| * Don't replace parent node when inserting as first child in algo::diffLukas Wirth2020-11-091-36/+89
| |
* | Fix debug for SyntaxRewriterAleksey Kladov2020-11-091-1/+4
|/
* Do insertion lookahead in algo::diffLukas Wirth2020-10-261-40/+120
|
* Remove InsertPos::Before variant in Syntax RewriterLukas Wirth2020-10-241-13/+20
|
* Support insertion in SyntaxRewriterLukas Wirth2020-10-241-24/+134
|
* algo::diff testsLukas Wirth2020-10-221-2/+326
|
* Rewrite algo::diff to support insertion and deletionLukas Wirth2020-10-221-23/+64
|
* Omit lenses for not runnable doctestsKirill Bulatov2020-08-221-1/+1
|
* Rename ra_syntax -> syntaxAleksey Kladov2020-08-121-0/+406