Enum espr::ast::Statement  [−][src]
pub enum Statement {
    Alias {
        name: String,
        dest: String,
        qualifiers: Vec<Qualifier>,
        statements: Vec<Statement>,
    },
    Assignment {
        name: String,
        qualifiers: Vec<Qualifier>,
        expr: Expression,
    },
    Compound {
        statements: Vec<Statement>,
    },
    If {
        condition: Expression,
        then_branch: Vec<Statement>,
        else_branch: Option<Vec<Statement>>,
    },
    Case {
        selector: Expression,
        actions: Vec<(Vec<Expression>, Statement)>,
        otherwise: Option<Box<Statement>>,
    },
    Repeat {
        control: RepeatControl,
        statements: Vec<Statement>,
    },
    Return {
        value: Option<Expression>,
    },
    ProcedureCall {
        procedure: ProcedureCallName,
        parameters: Option<Vec<Expression>>,
    },
    Skip,
    Escape,
    Null,
}Variants
Fields of Assignment
Fields of Case
Fields of Repeat
control: RepeatControlstatements: Vec<Statement>Fields of Return
value: Option<Expression>Fields of ProcedureCall
procedure: ProcedureCallNameparameters: Option<Vec<Expression>>Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Statement
impl UnwindSafe for Statement
Blanket Implementations
Mutably borrows from an owned value. Read more