swc_core::ecma::visit::swc_ecma_ast

Function unsafe_id_from_ident

pub unsafe fn unsafe_id_from_ident(id: &Ident) -> (UnsafeAtom, SyntaxContext)
Available on crate features __ecma and __visit only.
Expand description

This is extremely unsafe so don’t use it unless you know what you are doing.

§Safety

See UnsafeAtom::new for constraints.

Currently, it’s considered as a unstable API and may be changed in the future without a semver bump.