Enum solang_parser::pt::YulStatement
source · pub enum YulStatement {
Assign(Loc, Vec<YulExpression>, YulExpression),
VariableDeclaration(Loc, Vec<YulTypedIdentifier>, Option<YulExpression>),
If(Loc, YulExpression, YulBlock),
For(YulFor),
Switch(YulSwitch),
Leave(Loc),
Break(Loc),
Continue(Loc),
Block(YulBlock),
FunctionDefinition(Box<YulFunctionDefinition>),
FunctionCall(Box<YulFunctionCall>),
Error(Loc),
}Variants§
Assign(Loc, Vec<YulExpression>, YulExpression)
VariableDeclaration(Loc, Vec<YulTypedIdentifier>, Option<YulExpression>)
If(Loc, YulExpression, YulBlock)
For(YulFor)
Switch(YulSwitch)
Leave(Loc)
Break(Loc)
Continue(Loc)
Block(YulBlock)
FunctionDefinition(Box<YulFunctionDefinition>)
FunctionCall(Box<YulFunctionCall>)
Error(Loc)
Implementations§
Trait Implementations§
source§impl Clone for YulStatement
impl Clone for YulStatement
source§fn clone(&self) -> YulStatement
fn clone(&self) -> YulStatement
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for YulStatement
impl Debug for YulStatement
source§impl PartialEq<YulStatement> for YulStatement
impl PartialEq<YulStatement> for YulStatement
source§fn eq(&self, other: &YulStatement) -> bool
fn eq(&self, other: &YulStatement) -> bool
This method tests for
self and other values to be equal, and is used
by ==.