Remove SyntaxRewriter usage in insert_use in favor of ted
This commit is contained in:
@@ -598,6 +598,7 @@ pub mod tokens {
|
||||
SOURCE_FILE
|
||||
.tree()
|
||||
.syntax()
|
||||
.clone_for_update()
|
||||
.descendants_with_tokens()
|
||||
.filter_map(|it| it.into_token())
|
||||
.find(|it| it.kind() == WHITESPACE && it.text() == "\n\n")
|
||||
|
||||
Reference in New Issue
Block a user