Enum lunarity_ast::Statement
source · pub enum Statement<'ast> {
Show 14 variants
Placeholder,
IfStatement(IfStatement<'ast>),
WhileStatement(WhileStatement<'ast>),
ForStatement(ForStatement<'ast>),
BlockStatement(Block<'ast>),
InlineAssemblyStatement(InlineAssemblyStatement<'ast>),
DoWhileStatement(DoWhileStatement<'ast>),
ContinueStatement,
BreakStatement,
ReturnStatement(ReturnStatement<'ast>),
ThrowStatement,
VariableDefinitionStatement(VariableDefinitionStatement<'ast>),
InferredDefinitionStatement(InferredDefinitionStatement<'ast>),
ExpressionStatement(ExpressionNode<'ast>),
}
Variants§
Placeholder
Only available in modifiers
IfStatement(IfStatement<'ast>)
WhileStatement(WhileStatement<'ast>)
ForStatement(ForStatement<'ast>)
BlockStatement(Block<'ast>)
InlineAssemblyStatement(InlineAssemblyStatement<'ast>)
DoWhileStatement(DoWhileStatement<'ast>)
ContinueStatement
BreakStatement
ReturnStatement(ReturnStatement<'ast>)
ThrowStatement
VariableDefinitionStatement(VariableDefinitionStatement<'ast>)
InferredDefinitionStatement(InferredDefinitionStatement<'ast>)
ExpressionStatement(ExpressionNode<'ast>)
Trait Implementations§
source§impl<'ast> From<DoWhileStatement<'ast>> for Statement<'ast>
impl<'ast> From<DoWhileStatement<'ast>> for Statement<'ast>
source§fn from(val: DoWhileStatement<'ast>) -> Self
fn from(val: DoWhileStatement<'ast>) -> Self
Converts to this type from the input type.
source§impl<'ast> From<ForStatement<'ast>> for Statement<'ast>
impl<'ast> From<ForStatement<'ast>> for Statement<'ast>
source§fn from(val: ForStatement<'ast>) -> Self
fn from(val: ForStatement<'ast>) -> Self
Converts to this type from the input type.
source§impl<'ast> From<IfStatement<'ast>> for Statement<'ast>
impl<'ast> From<IfStatement<'ast>> for Statement<'ast>
source§fn from(val: IfStatement<'ast>) -> Self
fn from(val: IfStatement<'ast>) -> Self
Converts to this type from the input type.
source§impl<'ast> From<InferredDefinitionStatement<'ast>> for Statement<'ast>
impl<'ast> From<InferredDefinitionStatement<'ast>> for Statement<'ast>
source§fn from(val: InferredDefinitionStatement<'ast>) -> Self
fn from(val: InferredDefinitionStatement<'ast>) -> Self
Converts to this type from the input type.
source§impl<'ast> From<InlineAssemblyStatement<'ast>> for Statement<'ast>
impl<'ast> From<InlineAssemblyStatement<'ast>> for Statement<'ast>
source§fn from(val: InlineAssemblyStatement<'ast>) -> Self
fn from(val: InlineAssemblyStatement<'ast>) -> Self
Converts to this type from the input type.
source§impl<'ast> From<Node<'ast, Expression<'ast>>> for Statement<'ast>
impl<'ast> From<Node<'ast, Expression<'ast>>> for Statement<'ast>
source§fn from(val: ExpressionNode<'ast>) -> Self
fn from(val: ExpressionNode<'ast>) -> Self
Converts to this type from the input type.
source§impl<'ast> From<ReturnStatement<'ast>> for Statement<'ast>
impl<'ast> From<ReturnStatement<'ast>> for Statement<'ast>
source§fn from(val: ReturnStatement<'ast>) -> Self
fn from(val: ReturnStatement<'ast>) -> Self
Converts to this type from the input type.
source§impl<'ast> From<VariableDefinitionStatement<'ast>> for Statement<'ast>
impl<'ast> From<VariableDefinitionStatement<'ast>> for Statement<'ast>
source§fn from(val: VariableDefinitionStatement<'ast>) -> Self
fn from(val: VariableDefinitionStatement<'ast>) -> Self
Converts to this type from the input type.
source§impl<'ast> From<WhileStatement<'ast>> for Statement<'ast>
impl<'ast> From<WhileStatement<'ast>> for Statement<'ast>
source§fn from(val: WhileStatement<'ast>) -> Self
fn from(val: WhileStatement<'ast>) -> Self
Converts to this type from the input type.