pub enum ExprValue<'c> {
Constant(ExprConstant<'c>),
Name(&'c str),
AssignName(&'c str),
Array(Vec<Expr<'c>>),
Hash(Vec<(Expr<'c>, Expr<'c>)>),
UnaryOperator {
value: &'c str,
expr: Box<Expr<'c>>,
},
BinaryOperator {
value: &'c str,
left: Box<Expr<'c>>,
right: Box<Expr<'c>>,
},
Concat {
left: Box<Expr<'c>>,
right: Box<Expr<'c>>,
},
Conditional {
expr: Box<Expr<'c>>,
yay: Box<Expr<'c>>,
nay: Box<Expr<'c>>,
},
GetAttr {
node: Box<Expr<'c>>,
arg: Box<Expr<'c>>,
arguments: Vec<Expr<'c>>,
call_type: ExprCallType,
},
ImportedFunctionCall {
uuid: Uuid,
alias: &'c str,
arguments: Vec<Expr<'c>>,
},
FunctionCall {
name: &'c str,
arguments: Vec<(Option<&'c str>, Expr<'c>)>,
},
}
Variants
Constant | |
Name | |
AssignName | |
Array | |
Hash | |
UnaryOperator | Fields
|
BinaryOperator | Fields
|
Concat | Fields
|
Conditional | Fields
|
GetAttr | Fields
node | | arg | | arguments | | call_type | |
|
ImportedFunctionCall | Fields
|
FunctionCall | Fields
|
Trait Implementations
Derived Implementations