swc_core::ecma::utils

Macro quote_ident

macro_rules! quote_ident {
    ($s:expr) => { ... };
    ($ctxt:expr, $s:expr) => { ... };
    ($ctxt:expr, $span:expr, $s:expr) => { ... };
}
Available on crate features __ecma and __utils only.
Expand description

As we have multiple identifier types, the expected usage is quote_ident!("foo").into().