Trait swc_core::utils::StmtOrModuleItem
source · [−]pub trait StmtOrModuleItem: Send + Sync {
fn into_stmt(self) -> Result<Stmt, ModuleDecl>;
fn as_stmt(&self) -> Result<&Stmt, &ModuleDecl>;
}
Available on crate feature
__utils
only.Required Methods
source
fn into_stmt(self) -> Result<Stmt, ModuleDecl>
source