Trait swc_ecma_utils::ExprFactory [−][src]
Extension methods for Expr.
Provided methods
fn as_arg(self) -> ExprOrSpread
[src]
fn into_stmt(self) -> Stmt
[src]
Creates an expression statement with self
.
fn as_callee(self) -> ExprOrSuper
[src]
fn as_obj(self) -> ExprOrSuper
[src]
fn apply(self, span: Span, this: Box<Expr>, args: Vec<ExprOrSpread>) -> Expr
[src]
fn wrap_with_paren(self) -> Expr
[src]
fn make_eq<T>(self, right: T) -> Expr where
T: Into<Expr>,
[src]
T: Into<Expr>,
Creates a binrary expr $self ===
fn make_bin<T>(self, op: BinaryOp, right: T) -> Expr where
T: Into<Expr>,
[src]
T: Into<Expr>,
Creates a binrary expr $self $op $rhs
fn make_member<T>(self, prop: T) -> Expr where
T: Into<Expr>,
[src]
T: Into<Expr>,
fn computed_member<T>(self, prop: T) -> Expr where
T: Into<Expr>,
[src]
T: Into<Expr>,