Enum solang_parser::pt::Statement [−][src]
pub enum Statement {
Show 15 variants
Block {
loc: Loc,
unchecked: bool,
statements: Vec<Statement>,
},
Assembly {
loc: Loc,
assembly: Vec<AssemblyStatement>,
},
Args(Loc, Vec<NamedArgument>),
If(Loc, Expression, Box<Statement>, Option<Box<Statement>>),
While(Loc, Expression, Box<Statement>),
Expression(Loc, Expression),
VariableDefinition(Loc, VariableDeclaration, Option<Expression>),
For(Loc, Option<Box<Statement>>, Option<Box<Expression>>, Option<Box<Statement>>, Option<Box<Statement>>),
DoWhile(Loc, Box<Statement>, Expression),
Continue(Loc),
Break(Loc),
Return(Loc, Option<Expression>),
Emit(Loc, Expression),
Try(Loc, Expression, Option<(Vec<(Loc, Option<Parameter>)>, Box<Statement>)>, Option<Box<(Identifier, Parameter, Statement)>>, Box<(Option<Parameter>, Statement)>),
DocComment(Loc, CommentType, String),
}
Variants
Block
Assembly
Args(Loc, Vec<NamedArgument>)
If(Loc, Expression, Box<Statement>, Option<Box<Statement>>)
While(Loc, Expression, Box<Statement>)
Expression(Loc, Expression)
VariableDefinition(Loc, VariableDeclaration, Option<Expression>)
For(Loc, Option<Box<Statement>>, Option<Box<Expression>>, Option<Box<Statement>>, Option<Box<Statement>>)
DoWhile(Loc, Box<Statement>, Expression)
Continue(Loc)
Tuple Fields
0: Loc
Break(Loc)
Tuple Fields
0: Loc
Return(Loc, Option<Expression>)
Emit(Loc, Expression)
Try(Loc, Expression, Option<(Vec<(Loc, Option<Parameter>)>, Box<Statement>)>, Option<Box<(Identifier, Parameter, Statement)>>, Box<(Option<Parameter>, Statement)>)
DocComment(Loc, CommentType, String)
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Statement
impl UnwindSafe for Statement
Blanket Implementations
Mutably borrows from an owned value. Read more