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(&'a BlockStmt<'a>)

Tuple Fields of Block

0: &'a BlockStmt<'a>
Empty(&'a EmptyStmt<'a>)

Tuple Fields of Empty

0: &'a EmptyStmt<'a>
Debugger(&'a DebuggerStmt<'a>)

Tuple Fields of Debugger

0: &'a DebuggerStmt<'a>
With(&'a WithStmt<'a>)

Tuple Fields of With

0: &'a WithStmt<'a>
Return(&'a ReturnStmt<'a>)

Tuple Fields of Return

0: &'a ReturnStmt<'a>
Labeled(&'a LabeledStmt<'a>)

Tuple Fields of Labeled

0: &'a LabeledStmt<'a>
Break(&'a BreakStmt<'a>)

Tuple Fields of Break

0: &'a BreakStmt<'a>
Continue(&'a ContinueStmt<'a>)

Tuple Fields of Continue

0: &'a ContinueStmt<'a>
If(&'a IfStmt<'a>)

Tuple Fields of If

0: &'a IfStmt<'a>
Switch(&'a SwitchStmt<'a>)

Tuple Fields of Switch

0: &'a SwitchStmt<'a>
Throw(&'a ThrowStmt<'a>)

Tuple Fields of Throw

0: &'a ThrowStmt<'a>
Try(&'a TryStmt<'a>)

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

Tuple Fields of Try

0: &'a TryStmt<'a>
While(&'a WhileStmt<'a>)

Tuple Fields of While

0: &'a WhileStmt<'a>
DoWhile(&'a DoWhileStmt<'a>)

Tuple Fields of DoWhile

0: &'a DoWhileStmt<'a>
For(&'a ForStmt<'a>)

Tuple Fields of For

0: &'a ForStmt<'a>
ForIn(&'a ForInStmt<'a>)

Tuple Fields of ForIn

0: &'a ForInStmt<'a>
ForOf(&'a ForOfStmt<'a>)

Tuple Fields of ForOf

0: &'a ForOfStmt<'a>
Decl(Decl<'a>)

Tuple Fields of Decl

0: Decl<'a>
Expr(&'a ExprStmt<'a>)

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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

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.

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