Module expr

Source

Structs§

ArrowFuncExpr
An arrow function
AssignExpr
An assignment or update + assignment operation
BinaryExpr
An operation that requires 2 arguments
CallExpr
Calling a function or method
ConditionalExpr
A ternery expression
LogicalExpr
A specialized BinaryExpr for logical evaluation
MemberExpr
Accessing the member of a value
MetaProp
pretty much just new.target
NewExpr
Calling a constructor
Prop
A single part of an object literal or class
RegEx
A regular expression literal
TaggedTemplateExpr
A Template literal preceded by a function identifier see MDN for more details
TemplateElement
The text part of a TemplateLiteral
TemplateLit
A template string literal
UnaryExpr
An operation that takes one argument
UpdateExpr
Increment or decrementing a value
YieldExpr
yield a value from inside of a generator function

Enums§

ArrowFuncBody
The body portion of an arrow function can be either an expression or a block of statements
AssignLeft
The value being assigned to
Expr
A slightly more granular program part that a statement
Lit
A literal value
ObjProp
A single part of an object literal
PropKey
An object literal or class property identifier
PropValue
The value of an object literal or class property
StringLit

Type Aliases§

ArrayExpr
[a, b, c]
ObjExpr
{a: 'b', c, ...d}
SequenceExpr
A collection of Exprs separated by commas