pub enum Statement {
Show 23 variants
VariableDeclaration(VariableDeclaration),
FunctionDeclaration(FunctionDeclaration),
ClassDeclaration(ClassDeclaration),
ExpressionStatement(ExpressionStatement),
ImportDeclaration(ImportDeclaration),
ExportDeclaration(ExportDeclaration),
Interface(InterfaceDeclaration),
TypeAlias(TypeAliasDeclaration),
Enum(EnumDeclaration),
ReturnStatement(ReturnStatement),
IfStatement(IfStatement),
WhileStatement(WhileStatement),
DoWhileStatement(DoWhileStatement),
ForStatement(ForStatement),
ForInStatement(ForInStatement),
ForOfStatement(ForOfStatement),
SwitchStatement(SwitchStatement),
TryStatement(TryStatement),
ThrowStatement(ThrowStatement),
BreakStatement(BreakStatement),
ContinueStatement(ContinueStatement),
BlockStatement(BlockStatement),
Namespace(NamespaceDeclaration),
}Expand description
Represents a TypeScript statement.
Variants§
VariableDeclaration(VariableDeclaration)
Variable declaration.
FunctionDeclaration(FunctionDeclaration)
Function declaration.
ClassDeclaration(ClassDeclaration)
Class declaration.
ExpressionStatement(ExpressionStatement)
Expression statement.
ImportDeclaration(ImportDeclaration)
Import declaration.
ExportDeclaration(ExportDeclaration)
Export declaration.
Interface(InterfaceDeclaration)
Interface declaration.
TypeAlias(TypeAliasDeclaration)
Type alias declaration.
Enum(EnumDeclaration)
Enum declaration.
ReturnStatement(ReturnStatement)
Return statement.
IfStatement(IfStatement)
If statement.
WhileStatement(WhileStatement)
While statement.
DoWhileStatement(DoWhileStatement)
Do-while statement.
ForStatement(ForStatement)
For statement.
ForInStatement(ForInStatement)
For-in statement.
ForOfStatement(ForOfStatement)
For-of statement.
SwitchStatement(SwitchStatement)
Switch statement.
TryStatement(TryStatement)
Try statement.
ThrowStatement(ThrowStatement)
Throw statement.
BreakStatement(BreakStatement)
Break statement.
ContinueStatement(ContinueStatement)
Continue statement.
BlockStatement(BlockStatement)
Block statement.
Namespace(NamespaceDeclaration)
Namespace declaration.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Statement
impl<'de> Deserialize<'de> for Statement
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Statement
impl RefUnwindSafe for Statement
impl Send for Statement
impl Sync for Statement
impl Unpin for Statement
impl UnsafeUnpin for Statement
impl UnwindSafe for Statement
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more