Trait swc_ecma_utils::StmtLike
source · [−]pub trait StmtLike: Sized + 'static + Send + Sync {
fn try_into_stmt(self) -> Result<Stmt, Self>;
fn as_stmt(&self) -> Option<&Stmt>;
fn as_stmt_mut(&mut self) -> Option<&mut Stmt>;
fn from_stmt(stmt: Stmt) -> Self;
}
Required Methods
source
fn try_into_stmt(self) -> Result<Stmt, Self>
source