Trait swc_ecma_utils::StmtExt
source · [−]pub trait StmtExt {
fn extract_var_ids(&self) -> Vec<Ident>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
;
fn terminates(&self) -> bool;
fn extract_var_ids_as_var(&self) -> Option<VarDecl> { ... }
}
Required Methods
Extracts hoisted variables
sourcefn terminates(&self) -> bool
fn terminates(&self) -> bool
stmts contain top level return/break/continue/throw
Provided Methods
source