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

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

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

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

pub fn normalize_expr(self) -> Self[src]

pub fn normalize_ident(self) -> Self[src]

Loading content...

Provided methods

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

pub 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...