swc_core::ecma::utils

Macro member_expr

macro_rules! member_expr {
    ($ctxt:expr, $span:expr, $first:ident) => { ... };
    ($ctxt:expr, $span:expr, $first:ident . $($rest:tt)+) => { ... };
    (@EXT, $span:expr, $obj:expr, $first:ident . $($rest:tt)* ) => { ... };
    (@EXT, $span:expr, $obj:expr,  $first:ident) => { ... };
}
Available on crate features __ecma and __utils only.
Expand description

Creates a member expression.

§Usage

member_expr!(span, Function.bind.apply);

Returns Box<Expr>.