Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/syntax/src/syntax_node.rs')
-rw-r--r--crates/syntax/src/syntax_node.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/syntax/src/syntax_node.rs b/crates/syntax/src/syntax_node.rs
index c95c76c0a8..b96f10c173 100644
--- a/crates/syntax/src/syntax_node.rs
+++ b/crates/syntax/src/syntax_node.rs
@@ -69,7 +69,7 @@ impl SyntaxTreeBuilder {
self.inner.finish_node();
}
- pub fn error(&mut self, error: parser::ParseError, text_pos: TextSize) {
- self.errors.push(SyntaxError::new_at_offset(*error.0, text_pos));
+ pub fn error(&mut self, error: String, text_pos: TextSize) {
+ self.errors.push(SyntaxError::new_at_offset(error, text_pos));
}
}