Trait swc_ecma_transforms_base::ext::PatOrExprExt[][src]

pub trait PatOrExprExt: AsOptExpr {
    fn as_ref(&self) -> &PatOrExpr;
fn as_mut(&mut self) -> &mut PatOrExpr;
fn normalize_expr(self) -> Self;
fn normalize_ident(self) -> Self; fn as_ident(&self) -> Option<&Ident> { ... }
fn as_ident_mut(&mut self) -> Option<&mut Ident> { ... } }

Do not use: This is not a public api and it can be changed without a version bump.

Required methods

fn as_ref(&self) -> &PatOrExpr[src]

fn as_mut(&mut self) -> &mut PatOrExpr[src]

fn normalize_expr(self) -> Self[src]

fn normalize_ident(self) -> Self[src]

Loading content...

Provided methods

fn as_ident(&self) -> Option<&Ident>[src]

fn as_ident_mut(&mut self) -> Option<&mut Ident>[src]

Loading content...

Implementations on Foreign Types

impl PatOrExprExt for PatOrExpr[src]

Loading content...

Implementors

Loading content...