Crate swc_ecma_utils
source ·Re-exports
pub use self::value::Type::Bool as BoolType;pub use self::value::Type::Null as NullType;pub use self::value::Type::Num as NumberType;pub use self::value::Type::Obj as ObjectType;pub use self::value::Type::Str as StringType;pub use self::value::Type::Symbol as SymbolType;pub use self::value::Type::Undefined as UndefinedType;pub use self::value::Value::Known;pub use self::value::Value::Unknown;pub use self::Purity::MayBeImpure;pub use self::Purity::Pure;
Modules
- Module for parallel processing
Macros
- Creates a member expression.
- Shortcut for
quote_ident!(span.apply_mark(Mark::fresh(Mark::root())), s)
Structs
- Finds all binding idents of variables.
- Replacer for Id => ]Id]
- Finds usage of
ident - A newtype that will ignore Span while doing
eqorhash. - Replace
foowithbarorbar.baz - Variable remapper
Enums
- Type of value.
- Runtime value.
Traits
Functions
- 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
thisis changed by it. - Extracts hoisted variables
- Finds all binding idents of
node. - Check if
eis...arguments - inject
branchafter directives - inject
stmtsafter directives - Similar to
prop_name_to_expr, but used for value position. - Replace all
frominexprwithto. - Cast to javascript’s int32
- Creates
void 0.