aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/syntax_node.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_syntax/src/syntax_node.rs')
-rw-r--r--crates/ra_syntax/src/syntax_node.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/syntax_node.rs b/crates/ra_syntax/src/syntax_node.rs
index 3a9b3ec2f..ef7a51686 100644
--- a/crates/ra_syntax/src/syntax_node.rs
+++ b/crates/ra_syntax/src/syntax_node.rs
@@ -383,7 +383,7 @@ impl SyntaxNode {
383 let len = new_children.iter().map(|it| it.text_len()).sum::<TextUnit>(); 383 let len = new_children.iter().map(|it| it.text_len()).sum::<TextUnit>();
384 let new_node = GreenNode::new(rowan::SyntaxKind(self.kind() as u16), new_children); 384 let new_node = GreenNode::new(rowan::SyntaxKind(self.kind() as u16), new_children);
385 let new_file_node = self.replace_with(new_node); 385 let new_file_node = self.replace_with(new_node);
386 let file = SourceFile::new(new_file_node, Vec::new()); 386 let file = SourceFile::new(new_file_node);
387 387
388 // FIXME: use a more elegant way to re-fetch the node (#1185), make 388 // FIXME: use a more elegant way to re-fetch the node (#1185), make
389 // `range` private afterwards 389 // `range` private afterwards