swc_core::ecma::ast

Function unsafe_id

pub unsafe fn unsafe_id(
    id: &(Atom, SyntaxContext),
) -> (UnsafeAtom, SyntaxContext)
Available on crate features __ecma and ecma_ast 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.