Function swc_core::transforms::optimization::inline_globals2
[−]pub fn inline_globals2(
envs: Arc<HashMap<Atom<JsWordStaticSet>, Expr, BuildHasherDefault<FxHasher>>>,
globals: Arc<HashMap<Atom<JsWordStaticSet>, Expr, BuildHasherDefault<FxHasher>>>,
global_exprs: Arc<Vec<(Expr, Expr), Global>>,
typeofs: Arc<HashMap<Atom<JsWordStaticSet>, Atom<JsWordStaticSet>, BuildHasherDefault<FxHasher>>>
) -> impl Fold + VisitMut
Available on crate feature
__transforms
only.Expand description
Create a global inlining pass, which replaces expressions with the specified value.
See GlobalExprMap for description.
Note: Values specified in global_exprs
have higher precedence than