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§

source

fn extract_var_ids(&self) -> Vec<Ident>

Extracts hoisted variables

source

fn terminates(&self) -> bool

stmts contain top level return/break/continue/throw

Provided Methods§

source

fn extract_var_ids_as_var(&self) -> Option<VarDecl>

Implementations on Foreign Types§

source§

impl StmtExt for Box<Stmt>

source§

fn extract_var_ids(&self) -> Vec<Ident>

source§

fn terminates(&self) -> bool

source§

impl StmtExt for Vec<Stmt>

source§

fn extract_var_ids(&self) -> Vec<Ident>

source§

fn terminates(&self) -> bool

source§

impl StmtExt for Stmt

source§

fn extract_var_ids(&self) -> Vec<Ident>

source§

fn terminates(&self) -> bool

Implementors§