Enum dprint_swc_ecma_ast_view::Stmt[][src]

pub enum Stmt<'a> {
Show 19 variants Block(&'a BlockStmt<'a>), Empty(&'a EmptyStmt<'a>), Debugger(&'a DebuggerStmt<'a>), With(&'a WithStmt<'a>), Return(&'a ReturnStmt<'a>), Labeled(&'a LabeledStmt<'a>), Break(&'a BreakStmt<'a>), Continue(&'a ContinueStmt<'a>), If(&'a IfStmt<'a>), Switch(&'a SwitchStmt<'a>), Throw(&'a ThrowStmt<'a>), Try(&'a TryStmt<'a>), While(&'a WhileStmt<'a>), DoWhile(&'a DoWhileStmt<'a>), For(&'a ForStmt<'a>), ForIn(&'a ForInStmt<'a>), ForOf(&'a ForOfStmt<'a>), Decl(Decl<'a>), Expr(&'a ExprStmt<'a>),
}

Variants

Block

Tuple Fields of Block

0: &'a BlockStmt<'a>
Empty

Tuple Fields of Empty

0: &'a EmptyStmt<'a>
Debugger

Tuple Fields of Debugger

0: &'a DebuggerStmt<'a>
With

Tuple Fields of With

0: &'a WithStmt<'a>
Return

Tuple Fields of Return

0: &'a ReturnStmt<'a>
Labeled

Tuple Fields of Labeled

0: &'a LabeledStmt<'a>
Break

Tuple Fields of Break

0: &'a BreakStmt<'a>
Continue

Tuple Fields of Continue

0: &'a ContinueStmt<'a>
If

Tuple Fields of If

0: &'a IfStmt<'a>
Switch

Tuple Fields of Switch

0: &'a SwitchStmt<'a>
Throw

Tuple Fields of Throw

0: &'a ThrowStmt<'a>
Try

A try statement. If handler is null then finalizer must be a BlockStmt.

Tuple Fields of Try

0: &'a TryStmt<'a>
While

Tuple Fields of While

0: &'a WhileStmt<'a>
DoWhile

Tuple Fields of DoWhile

0: &'a DoWhileStmt<'a>
For

Tuple Fields of For

0: &'a ForStmt<'a>
ForIn

Tuple Fields of ForIn

0: &'a ForInStmt<'a>
ForOf

Tuple Fields of ForOf

0: &'a ForOfStmt<'a>
Decl

Tuple Fields of Decl

0: Decl<'a>
Expr

Tuple Fields of Expr

0: &'a ExprStmt<'a>

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Performs the conversion.

Performs the conversion.

Gets the previous siblings in the order they appear in the file.

Gets the next siblings in the order they appear in the file.

Gets the root node.

Gets the root node if the view was created from a Module; otherwise panics.

Gets the root node if the view was created from a Script; otherwise panics.

Gets the previous tokens in the order they appear in the file.

Gets the next tokens in the order they appear in the file.

Get span of self.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.