Enum swc_ecma_ast::Stmt [−][src]
pub enum Stmt {
Show 19 variants
Block(BlockStmt),
Empty(EmptyStmt),
Debugger(DebuggerStmt),
With(WithStmt),
Return(ReturnStmt),
Labeled(LabeledStmt),
Break(BreakStmt),
Continue(ContinueStmt),
If(IfStmt),
Switch(SwitchStmt),
Throw(ThrowStmt),
Try(TryStmt),
While(WhileStmt),
DoWhile(DoWhileStmt),
For(ForStmt),
ForIn(ForInStmt),
ForOf(ForOfStmt),
Decl(Decl),
Expr(ExprStmt),
}
Variants
Block(BlockStmt)
Tuple Fields
0: BlockStmt
Empty(EmptyStmt)
Tuple Fields
0: EmptyStmt
Debugger(DebuggerStmt)
Tuple Fields
0: DebuggerStmt
With(WithStmt)
Tuple Fields
0: WithStmt
Return(ReturnStmt)
Tuple Fields
0: ReturnStmt
Labeled(LabeledStmt)
Tuple Fields
0: LabeledStmt
Break(BreakStmt)
Tuple Fields
0: BreakStmt
Continue(ContinueStmt)
Tuple Fields
0: ContinueStmt
If(IfStmt)
Tuple Fields
0: IfStmt
Switch(SwitchStmt)
Tuple Fields
0: SwitchStmt
Throw(ThrowStmt)
Tuple Fields
0: ThrowStmt
Try(TryStmt)
Tuple Fields
0: TryStmt
A try statement. If handler is null then finalizer must be a BlockStmt.
While(WhileStmt)
Tuple Fields
0: WhileStmt
DoWhile(DoWhileStmt)
Tuple Fields
0: DoWhileStmt
For(ForStmt)
Tuple Fields
0: ForStmt
ForIn(ForInStmt)
Tuple Fields
0: ForInStmt
ForOf(ForOfStmt)
Tuple Fields
0: ForOfStmt
Decl(Decl)
Tuple Fields
0: Decl
Expr(ExprStmt)
Tuple Fields
0: ExprStmt
Implementations
Returns Some
if self
is of variant Block
, and None
otherwise.
Returns Some
if self
is of variant Empty
, and None
otherwise.
Returns true
if self
is of variant Debugger
.
Returns Some
if self
is of variant Debugger
, and None
otherwise.
Returns Some
if self
is of variant With
, and None
otherwise.
Returns true
if self
is of variant Return
.
Returns Some
if self
is of variant Return
, and None
otherwise.
Returns true
if self
is of variant Labeled
.
Returns Some
if self
is of variant Labeled
, and None
otherwise.
Returns true
if self
is of variant Break
.
Returns Some
if self
is of variant Break
, and None
otherwise.
Returns true
if self
is of variant Continue
.
Returns Some
if self
is of variant Continue
, and None
otherwise.
Returns true
if self
is of variant If
.
Returns Some
if self
is of variant If
, and None
otherwise.
Returns Some
if self
is of variant Switch
, and None
otherwise.
Returns Some
if self
is of variant Throw
, and None
otherwise.
Returns true
if self
is of variant Try
.
Returns Some
if self
is of variant Try
, and None
otherwise.
Returns true
if self
is of variant While
.
Returns Some
if self
is of variant While
, and None
otherwise.
Returns true
if self
is of variant DoWhile
.
Returns Some
if self
is of variant DoWhile
, and None
otherwise.
Returns true
if self
is of variant For
.
Returns Some
if self
is of variant For
, and None
otherwise.
Returns Some
if self
is of variant ForIn
, and None
otherwise.
Returns Some
if self
is of variant ForOf
, and None
otherwise.
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Stmt
impl UnwindSafe for Stmt
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more