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§
- constructor
- function
- ident
- number
- parallel
- Module for parallel processing
- stack_
size - var
Macros§
- member_
expr - Creates a member expression.
- private_
ident - Shortcut for
quote_ident!(span.apply_mark(Mark::fresh(Mark::root())), s)
- quote_
expr - quote_
ident - As we have multiple identifier types, the expected usage is
quote_ident!("foo").into()
. - quote_
str
Structs§
- Arguments
Finder - Binding
Collector - Binding
Identifier Visitor - Finds all binding idents of variables.
- Destructuring
Finder - Finds all binding idents of variables.
- Drop
Span - ExprCtx
- Hoister
- Ident
RefFinder - Ident
Renamer - Replacer for [Id] => ]Id]
- Ident
Replacer - Ident
Usage Finder - Finds usage of
ident
- Literal
Visitor - Node
Ignoring Span - A newtype that will ignore Span while doing
eq
orhash
. - RefRewriter
- Replace
foo
withbar
orbar.baz
- Remapper
- Variable remapper
- Rest
PatVisitor - This
Visitor - TopLevel
Await
Enums§
Traits§
- ExprExt
- Extension methods for [Expr].
- Expr
Factory - Extension methods for [Expr].
- Function
Factory - Into
Indirect Call - IsDirective
- IsEmpty
- Merge
- Module
Item Like - Query
Ref - StmtExt
- Stmt
Like - Stmt
Like Injector - Prepends statements after directive statements.
- Stmt
OrModule Item
Functions§
- alias_
ident_ for - Used to determine super_class_ident
- alias_
ident_ for_ simple_ assign_ tatget - Used to determine super_class_ident
- alias_
if_ required - Returns
(ident, aliased)
- calc_
literal_ cost - class_
has_ side_ effect - collect_
decls - Collects binding identifiers.
- collect_
decls_ with_ ctxt - Collects binding identifiers, but only if it has a context which is
identical to
ctxt
. - contains_
arguments - contains_
ident_ ref - contains_
this_ expr - This does not recurse into a function if
this
is changed by it. - contains_
top_ level_ await - default_
constructor_ with_ span super_call_span
should be the span of the class definition Use value of [Class::span
].- drop_
span - extract_
var_ ids - Extracts hoisted variables
- find_
pat_ ids - Finds all binding idents of
node
. - for_
each_ binding_ ident - Finds all binding idents of
node
. Any nested identifiers in expressions are ignored. - has_
rest_ pat - is_
literal - is_
maybe_ branch_ directive - If the stmt is maybe a directive like
"use strict";
- is_
rest_ arguments - Check if
e
is...arguments
- is_
simple_ pure_ expr - is_
simple_ pure_ member_ expr - is_
valid_ ident - is_
valid_ prop_ ident - num_
from_ str - opt_
chain_ test - prepend_
stmt - inject
branch
after directives - prepend_
stmts - inject
stmts
after directives - prop_
name_ eq - prop_
name_ to_ expr - prop_
name_ to_ expr_ value - Similar to
prop_name_to_expr
, but used for value position. - prop_
name_ to_ member_ prop - replace_
ident - Replace all
from
inexpr
withto
. - to_
int32 - Cast to javascript’s int32