Enum xswag_syntax_java::ast::block::StatementType [] [src]

pub enum StatementType {
    Empty,
    Block(Block),
    Expr(Expr),
    IfThenElse {
        cond: Expr,
        then_branch: Box<Statement>,
        else_branch: Option<Box<Statement>>,
    },
    While {
        cond: Expr,
        body: Box<Statement>,
    },
    Switch {
        val: Expr,
        arms: Vec<SwitchArm>,
        empty_arms: Vec<SwitchLabel>,
    },
    DoWhile {
        cond: Expr,
        body: Box<Statement>,
    },
    For {
        init: ForInit,
        cond: Option<Expr>,
        update: Vec<Statement>,
        body: Box<Statement>,
    },
    Break(Option<Ident>),
    Continue(Option<Ident>),
    Return(Option<Expr>),
    Throw(Expr),
}

Variants

Fields of IfThenElse

Fields of While

Fields of Switch

Fields of DoWhile

Fields of For

Trait Implementations

impl Clone for StatementType
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for StatementType
[src]

Formats the value using the given formatter.