pub trait ExpressionConsumer {
type Output;
Show 15 methods
// Required methods
fn consume_access(&mut self, _input: AccessExpression) -> Self::Output;
fn consume_array(&mut self, _input: ArrayExpression) -> Self::Output;
fn consume_binary(&mut self, _input: BinaryExpression) -> Self::Output;
fn consume_call(&mut self, _input: CallExpression) -> Self::Output;
fn consume_cast(&mut self, _input: CastExpression) -> Self::Output;
fn consume_struct_init(&mut self, _input: StructExpression) -> Self::Output;
fn consume_identifier(&mut self, _input: Identifier) -> Self::Output;
fn consume_literal(&mut self, _input: Literal) -> Self::Output;
fn consume_locator(&mut self, _input: LocatorExpression) -> Self::Output;
fn consume_ternary(&mut self, _input: TernaryExpression) -> Self::Output;
fn consume_tuple(&mut self, _input: TupleExpression) -> Self::Output;
fn consume_unary(&mut self, _input: UnaryExpression) -> Self::Output;
fn consume_unit(&mut self, _input: UnitExpression) -> Self::Output;
// Provided methods
fn consume_expression(&mut self, input: Expression) -> Self::Output { ... }
fn consume_err(&mut self, _input: ErrExpression) -> Self::Output { ... }
}
Expand description
A Consumer trait for expressions in the AST.