mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
Format again
This commit is contained in:
parent
577f70cc9c
commit
ccb789b94a
1 changed files with 5 additions and 1 deletions
|
@ -122,7 +122,11 @@ fn has_error_to_handle(node: &SyntaxNode) -> bool {
|
||||||
has_error(node) || node.children().any(|c| !can_handle_error(&c) && has_error_to_handle(&c))
|
has_error(node) || node.children().any(|c| !can_handle_error(&c) && has_error_to_handle(&c))
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn reverse_fixups(tt: &mut Subtree, token_map: &TokenMap, undo_info: &SyntaxFixupUndoInfo) {
|
pub(crate) fn reverse_fixups(
|
||||||
|
tt: &mut Subtree,
|
||||||
|
token_map: &TokenMap,
|
||||||
|
undo_info: &SyntaxFixupUndoInfo,
|
||||||
|
) {
|
||||||
tt.token_trees.retain(|tt| match tt {
|
tt.token_trees.retain(|tt| match tt {
|
||||||
tt::TokenTree::Leaf(leaf) => {
|
tt::TokenTree::Leaf(leaf) => {
|
||||||
token_map.synthetic_token_id(leaf.id()).is_none()
|
token_map.synthetic_token_id(leaf.id()).is_none()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue