Functionsยง
- array_
fabric ๐ - Creates an
ArrayLitwith a spread. - create_
array - create_
array_ expression - create_
array_ lit - Creates an
ArrayLitfrom a vector ofExprOrSpread. - create_
arrow_ expression - Creates an arrow expression
() => expr. - create_
big_ int_ lit - Creates a
Lit::BigIntfrom aBigInt. - create_
binding_ ident - Creates a
BindingIdentfrom anIdent. - create_
boolean_ lit - Creates a
Lit::Booleanfrom a boolean. - create_
boolean_ prop - Creates a
PropOrSpreadwith a boolean key and value. - create_
expr_ or_ spread - Wraps an arbitrary expression in
ExprOrSpreadwith no spread. This is the generic counterpart to the typedexpr_or_spread_*_factoryhelpers and eliminates the common boilerplateExprOrSpread { spread: None, expr: Box::new(e) }. - create_
ident - Creates an
Identfrom a string. - create_
ident_ call_ expr - Creates a
CallExprwith an identifier callee (e.g.,func(...args)). - create_
ident_ key_ value_ prop - Creates a
PropOrSpreadwith an unconditionalPropName::Identkey. - create_
ident_ name - Creates an
IdentNamefrom a string. - create_
jsx_ attr - Creates a
JSXAttrfrom a name and value. - create_
jsx_ attr_ or_ spread - Creates a
JSXAttrOrSpread::JSXAttrwrapper. - create_
jsx_ spread_ attr - Creates a
JSXAttrOrSpread::SpreadElementfor JSX attributes. - create_
key_ value_ prop - Creates a
PropOrSpreadfrom a key and value. - create_
key_ value_ prop_ ident - Creates a
KeyValuePropwith anIdentNamekey. - create_
member_ call_ expr - Creates a
CallExprwith a member expression callee (e.g.,obj.method(...args)). - create_
nested_ object_ prop - create_
null_ lit - Creates a
Lit::Nullfrom aNull. - create_
null_ var_ declarator - Creates a
VarDeclaratorinitialized tonull. - create_
number_ expr_ or_ spread - create_
number_ lit - Creates a
Lit::Numberfrom a number. - create_
object_ expression - Creates an
Expr::Objectfrom a vector ofPropOrSpread. - create_
object_ lit - Creates an
ObjectLitfrom a vector ofPropOrSpread. - create_
prop_ from_ name - Creates a
PropOrSpreadfrom an already-constructedPropNameand an expression value. - create_
spread_ element - Creates a
SpreadElementfor spreading an expression. - create_
spread_ prop - Creates a
PropOrSpread::Spreadfor spreading properties in an object literal. - create_
spreaded_ array - Creates an
ArrayLitwith a spread. - create_
string_ array_ prop - create_
string_ expr_ or_ spread - Creates an
ExprOrSpreadwith a string value. - create_
string_ key_ value_ prop - Creates a
PropOrSpreadwith a string key and value. - create_
string_ lit - Creates a
Lit::Strfrom a string. - create_
string_ var_ declarator - Creates a
VarDeclaratorinitialized to a string. - create_
var_ declarator - Creates a
VarDeclaratorwith an identifier name and an expression initializer. - wrap_
in_ paren - Wraps an owned expression in a ParenExpr with DUMMY_SP span. This is commonly used when creating error contexts.
- wrap_
in_ paren_ ref - Wraps a reference to an expression in a ParenExpr with DUMMY_SP span. This clones the expression and is commonly used when creating error contexts.