Trait swc_ecma_utils::StmtExt
source · pub trait StmtExt {
// Required methods
fn extract_var_ids(&self) -> Vec<Ident>;
fn terminates(&self) -> bool;
// Provided method
fn extract_var_ids_as_var(&self) -> Option<VarDecl> { ... }
}
Required Methods§
sourcefn extract_var_ids(&self) -> Vec<Ident>
fn extract_var_ids(&self) -> Vec<Ident>
Extracts hoisted variables
sourcefn terminates(&self) -> bool
fn terminates(&self) -> bool
stmts contain top level return/break/continue/throw