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.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/crates/ra_syntax/src/syntax_node.rs b/crates/ra_syntax/src/syntax_node.rs
index 591855302..7c2b18af3 100644
--- a/crates/ra_syntax/src/syntax_node.rs
+++ b/crates/ra_syntax/src/syntax_node.rs
@@ -45,12 +45,6 @@ pub struct SyntaxTreeBuilder {
45} 45}
46 46
47impl SyntaxTreeBuilder { 47impl SyntaxTreeBuilder {
48 pub fn new(errors: Vec<SyntaxError>) -> Self {
49 Self { errors, inner: GreenNodeBuilder::default() }
50 }
51}
52
53impl SyntaxTreeBuilder {
54 pub(crate) fn finish_raw(self) -> (GreenNode, Vec<SyntaxError>) { 48 pub(crate) fn finish_raw(self) -> (GreenNode, Vec<SyntaxError>) {
55 let green = self.inner.finish(); 49 let green = self.inner.finish();
56 (green, self.errors) 50 (green, self.errors)