drop error from SOurceFile constructor

This commit is contained in:
Aleksey Kladov 2019-05-28 16:34:23 +03:00
parent 1cece9f219
commit afeaea7051
2 changed files with 5 additions and 5 deletions

View file

@ -383,7 +383,7 @@ impl SyntaxNode {
let len = new_children.iter().map(|it| it.text_len()).sum::<TextUnit>();
let new_node = GreenNode::new(rowan::SyntaxKind(self.kind() as u16), new_children);
let new_file_node = self.replace_with(new_node);
let file = SourceFile::new(new_file_node, Vec::new());
let file = SourceFile::new(new_file_node);
// FIXME: use a more elegant way to re-fetch the node (#1185), make
// `range` private afterwards