Remove unused pipe node definitions
The `Pipe` node and its associated logic have been removed from the AST. This commit cleans up the code by removing all references to this defunct node in the analyzer, binder, captures, dumper, lowering, macros, optimizer, and type checker. The parser no longer recognizes the `pipe` keyword.
This commit is contained in:
@@ -154,22 +154,6 @@ impl<E: MacroEvaluator> MacroExpander<E> {
|
||||
})
|
||||
}
|
||||
|
||||
SyntaxKind::Pipe { inputs, lambda } => {
|
||||
let mut expanded_inputs = Vec::with_capacity(inputs.len());
|
||||
for input in inputs {
|
||||
expanded_inputs.push(Rc::new(self.expand_recursive((*input).clone())?));
|
||||
}
|
||||
let expanded_lambda = Rc::new(self.expand_recursive((*lambda).clone())?);
|
||||
Ok(SyntaxNode {
|
||||
identity: node.identity,
|
||||
kind: SyntaxKind::Pipe {
|
||||
inputs: expanded_inputs,
|
||||
lambda: expanded_lambda,
|
||||
},
|
||||
ty: (),
|
||||
})
|
||||
}
|
||||
|
||||
SyntaxKind::Lambda { params, body, .. } => {
|
||||
self.registry.push();
|
||||
let expanded_params = self.expand_recursive((*params).clone())?;
|
||||
@@ -536,22 +520,6 @@ impl<E: MacroEvaluator> MacroExpander<E> {
|
||||
})
|
||||
}
|
||||
|
||||
SyntaxKind::Pipe { inputs, lambda } => {
|
||||
let mut expanded_inputs = Vec::with_capacity(inputs.len());
|
||||
for input in inputs {
|
||||
expanded_inputs.push(Rc::new(self.expand_template((*input).clone(), state)?));
|
||||
}
|
||||
let expanded_lambda = Rc::new(self.expand_template((*lambda).clone(), state)?);
|
||||
Ok(SyntaxNode {
|
||||
identity: node.identity,
|
||||
kind: SyntaxKind::Pipe {
|
||||
inputs: expanded_inputs,
|
||||
lambda: expanded_lambda,
|
||||
},
|
||||
ty: (),
|
||||
})
|
||||
}
|
||||
|
||||
SyntaxKind::Lambda { params, body, .. } => {
|
||||
let expanded_params = self.expand_template((*params).clone(), state)?;
|
||||
let body = self.expand_template((*body).clone(), state)?;
|
||||
|
||||
Reference in New Issue
Block a user