Available on crate features
__ecma
and __utils
only.Modules§
- Module for parallel processing
- Utilities for the swc project
Macros§
- Creates a member expression.
- Shortcut for
quote_ident!(span.apply_mark(Mark::fresh(Mark::root())), s)
- As we have multiple identifier types, the expected usage is
quote_ident!("foo").into()
.
Structs§
- Finds all binding idents of variables.
- Finds all binding idents of variables.
- Replacer for Id => ]Id]
- Finds usage of
ident
- A newtype that will ignore Span while doing
eq
orhash
. - Replace
foo
withbar
orbar.baz
- Variable remapper
Enums§
- Type of value.
- Runtime value.
Traits§
- Extension methods for Expr.
- Extension methods for Expr.
- Prepends statements after directive statements.
Functions§
- Used to determine super_class_ident
- Used to determine super_class_ident
- Returns
(ident, aliased)
- Collects binding identifiers.
- Collects binding identifiers, but only if it has a context which is identical to
ctxt
. - This does not recurse into a function if
this
is changed by it. - default_
constructor Deprecated super_call_span
should be the span of the class definition Use value ofClass::span
.- Extracts hoisted variables
- Finds all binding idents of
node
. - Finds all binding idents of
node
. Any nested identifiers in expressions are ignored. - If the stmt is maybe a directive like
"use strict";
- Check if
e
is...arguments
- inject
branch
after directives - inject
stmts
after directives - Similar to
prop_name_to_expr
, but used for value position. - Replace all
from
inexpr
withto
. - Cast to javascript’s int32