swc_ecma_ast

Function unsafe_id_from_ident

source
pub unsafe fn unsafe_id_from_ident(id: &Ident) -> UnsafeId
Expand description

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

§Safety

See FastAtom::new for constraints.

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