diff options
author | Lukas Wirth <[email protected]> | 2021-04-20 01:05:22 +0100 |
---|---|---|
committer | Lukas Wirth <[email protected]> | 2021-04-20 01:09:12 +0100 |
commit | fa20a5064be85349d2d05abcd66f5662d3aecb0c (patch) | |
tree | 578e0f5f9208d607969b084921e174a1cebe1f44 /crates/syntax/src/ast | |
parent | e8744ed9bb3e139e5d427db1f4f219f1fdeee13e (diff) |
Remove SyntaxRewriter usage in insert_use in favor of ted
Diffstat (limited to 'crates/syntax/src/ast')
-rw-r--r-- | crates/syntax/src/ast/make.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/syntax/src/ast/make.rs b/crates/syntax/src/ast/make.rs index 94d4f2cf0..882e9fa09 100644 --- a/crates/syntax/src/ast/make.rs +++ b/crates/syntax/src/ast/make.rs | |||
@@ -598,6 +598,7 @@ pub mod tokens { | |||
598 | SOURCE_FILE | 598 | SOURCE_FILE |
599 | .tree() | 599 | .tree() |
600 | .syntax() | 600 | .syntax() |
601 | .clone_for_update() | ||
601 | .descendants_with_tokens() | 602 | .descendants_with_tokens() |
602 | .filter_map(|it| it.into_token()) | 603 | .filter_map(|it| it.into_token()) |
603 | .find(|it| it.kind() == WHITESPACE && it.text() == "\n\n") | 604 | .find(|it| it.kind() == WHITESPACE && it.text() == "\n\n") |