about summary refs log tree commit diff
path: root/crates/syntax/src/algo.rs
AgeCommit message (Collapse)AuthorLines
2022-06-10internal: Bump DependenciesLukas Wirth-1/+1
2021-10-12Make selections in assists with trailing/leading whitespace more forgivingLukas Wirth-0/+10
2021-10-03Fix miscellaneous Clippy lintsAramis Razzaghipour-4/+3
2021-10-03Add semicolons for consistencyAramis Razzaghipour-2/+2
`clippy::semicolon_if_nothing_returned`
2021-09-19SimplifyLukas Wirth-1/+1
2021-08-14internal: remove dead codeAleksey Kladov-91/+2
2021-08-14internal: remove one more usage of old editing API.Aleksey Kladov-36/+1
2021-07-27fix: TyposAlexander Gonzalez-1/+1
2021-05-22Add more docsAleksey Kladov-1/+1
2021-05-14internal: remove SyntaxRewriterAleksey Kladov-105/+1
2021-05-14internal: remove one more immutable treeAleksey Kladov-31/+4
2021-05-08dead codeAleksey Kladov-121/+1
2021-05-06Adapt to a new rowan borrowing node API.Dawer-1/+1
2021-04-23Remove SyntaxRewriter::from_fnLukas Wirth-16/+3
2021-03-21remove more redundant clones (clippy::redundant_clone())Matthias Krüger-2/+2
2021-03-16Upgrade rowanAleksey Kladov-17/+18
Notably, new rowan comes with support for mutable syntax trees.
2021-03-08Use upstream cov-markLaurențiu Nicola-14/+12
2021-01-19:arrow_up: rowanAleksey Kladov-3/+4
2021-01-15Merge #7288bors[bot]-1/+1
7288: Handle self/super/crate in PathSegment as NameRef r=matklad a=Veykril Wrapping self/super/crate in NameRef as per https://github.com/rust-analyzer/rust-analyzer/pull/7261#issuecomment-760023172 Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2021-01-15Handle self/super/crate in PathSegment as NameRefLukas Wirth-1/+1
2021-01-15Remove useless wrapperAleksey Kladov-5/+1
2021-01-09Fixed typos in local bindingsVincent Esche-2/+2
2021-01-07Change <|> to $0 - RebaseKevaundray Wedderburn-1/+1
2020-12-10Fix accidently quadratic syntax rewriterAleksey Kladov-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.
2020-11-27Profile completions betterKirill Bulatov-0/+13
2020-11-09Merge #6512bors[bot]-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 <lukastw97@gmail.com>
2020-11-09Don't replace parent node when inserting as first child in algo::diffLukas Wirth-36/+89
2020-11-09Fix debug for SyntaxRewriterAleksey Kladov-1/+4
2020-10-26Do insertion lookahead in algo::diffLukas Wirth-40/+120
2020-10-24Remove InsertPos::Before variant in Syntax RewriterLukas Wirth-13/+20
2020-10-24Support insertion in SyntaxRewriterLukas Wirth-24/+134
2020-10-22algo::diff testsLukas Wirth-2/+326
2020-10-22Rewrite algo::diff to support insertion and deletionLukas Wirth-23/+64
2020-08-22Omit lenses for not runnable doctestsKirill Bulatov-1/+1
2020-08-12Rename ra_syntax -> syntaxAleksey Kladov-0/+406