Enum analisar::ast::Statement[][src]

pub enum Statement<'a> {
    Empty,
    Expression(Expression<'a>),
    Assignment {
        local: bool,
        targets: Vec<Expression<'a>>,
        values: Vec<Expression<'a>>,
    },
    Label(Name<'a>),
    Break,
    GoTo(Name<'a>),
    Do {
        block: Block<'a>,
    },
    While {
        exp: Expression<'a>,
        block: Block<'a>,
    },
    Repeat {
        block: Block<'a>,
        exp: Expression<'a>,
    },
    If(If<'a>),
    For(ForLoop<'a>),
    ForIn(ForInLoop<'a>),
    Function {
        local: bool,
        name: FuncName<'a>,
        body: FuncBody<'a>,
    },
    Return(RetStatement<'a>),
}

Variants

Empty
Expression(Expression<'a>)
Assignment

Fields of Assignment

local: booltargets: Vec<Expression<'a>>values: Vec<Expression<'a>>
Label(Name<'a>)
Break
GoTo(Name<'a>)
Do

Fields of Do

block: Block<'a>
While

Fields of While

exp: Expression<'a>block: Block<'a>
Repeat

Fields of Repeat

block: Block<'a>exp: Expression<'a>
If(If<'a>)
For(ForLoop<'a>)
ForIn(ForInLoop<'a>)
Function

Fields of Function

local: boolname: FuncName<'a>body: FuncBody<'a>
Return(RetStatement<'a>)

Implementations

impl<'a> Statement<'a>[src]

pub fn func_call(subject: Expression<'a>, args: Args<'a>) -> Self[src]

pub fn method_call(subject: Expression<'a>, args: Args<'a>) -> Self[src]

Trait Implementations

impl<'a> Debug for Statement<'a>[src]

impl<'a> PartialEq<Statement<'a>> for Statement<'a>[src]

impl<'a> StructuralPartialEq for Statement<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Statement<'a>[src]

impl<'a> Send for Statement<'a>[src]

impl<'a> Sync for Statement<'a>[src]

impl<'a> Unpin for Statement<'a>[src]

impl<'a> UnwindSafe for Statement<'a>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.