about summary refs log tree commit diff
path: root/crates/syntax/src/ted.rs
AgeCommit message (Collapse)AuthorLines
2021-10-03Add semicolons for consistencyAramis Razzaghipour-14/+14
`clippy::semicolon_if_nothing_returned`
2021-09-26internal: more reasonable grammar for blocksAleksey Kladov-2/+2
Consider these expples { 92 } async { 92 } 'a: { 92 } #[a] { 92 } Previously the tree for them were BLOCK_EXPR { ... } EFFECT_EXPR async BLOCK_EXPR { ... } EFFECT_EXPR 'a: BLOCK_EXPR { ... } BLOCK_EXPR #[a] { ... } As you see, it gets progressively worse :) The last two items are especially odd. The last one even violates the balanced curleys invariant we have (#10357) The new approach is to say that the stuff in `{}` is stmt_list, and the block is stmt_list + optional modifiers BLOCK_EXPR STMT_LIST { ... } BLOCK_EXPR async STMT_LIST { ... } BLOCK_EXPR 'a: STMT_LIST { ... } BLOCK_EXPR #[a] STMT_LIST { ... }
2021-07-05Update `inline_call` assist doc exampleLukas Wirth-6/+8
2021-07-05Merge #9474bors[bot]-0/+6
9474: fix: Inline parameters in `inline_call` if possible r=Veykril a=Veykril Fixes #9491 Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2021-07-05Fixup emitted whitespace in most casesLukas Wirth-0/+6
2021-07-04minor: untangle complex conditionAleksey Kladov-10/+9
2021-05-22internal: replace AstTransformer with mutable syntax treesAleksey Kladov-0/+3
2021-05-08internal: remove one more syntax rewriterAleksey Kladov-1/+4
2021-04-20Remove SyntaxRewriter usage in insert_use in favor of tedLukas Wirth-2/+15
2021-04-15Switch introduce_named_lifetime assist to use mutable syntax treeDawer-0/+7
2021-03-22rewrite merge use trees assist to use muatable syntax treesAleksey Kladov-4/+24
changelog internal
2021-03-19Make ast editing more ergonomicAleksey Kladov-19/+46
changelog internal
2021-03-17avoid converting types into themselves via .into() (clippy::useless-conversion)Matthias Krüger-1/+1
example: let x: String = String::from("hello world").into();
2021-03-16pit-of-successify tree editorAleksey Kladov-11/+14
2021-03-16Auto-magical whitespaceAleksey Kladov-2/+47
2021-03-16Upgrade rowanAleksey Kladov-0/+78
Notably, new rowan comes with support for mutable syntax trees.