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>,
    },
    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>),
}

Variants

EmptyBlock(Block)Expr(Expr)IfThenElse

Fields

cond: Expr
then_branch: Box<Statement>
else_branch: Option<Box<Statement>>
While

Fields

cond: Expr
body: Box<Statement>
DoWhile

Fields

cond: Expr
body: Box<Statement>
For

Fields

init: ForInit
cond: Option<Expr>
update: Vec<Statement>
body: Box<Statement>
Break(Option<Ident>)Continue(Option<Ident>)Return(Option<Expr>)

Trait Implementations

impl Debug for StatementType
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for StatementType
[src]

fn clone(&self) -> StatementType

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more