[][src]Module resast::expr

Structs

ArrowFunctionExpr

An arrow function

AssignmentExpr

An assignment or update + assignment operation

BinaryExpr

An operation that requires 2 arguments

CallExpr

Calling a function or method

ConditionalExpr

A ternery Expr

LogicalExpr

A specialized BinaryExpr for logical evaluation

MemberExpr

Accessing the member of a value

MetaProperty

pretty much just new.target

NewExpr

Calling a constructor

Property

A single part of an object literal or class

RegEx

A regular Expr literal

TaggedTemplateExpr

A Template literal preceded by a function identifier see MDN for more details

TemplateElement

The text part of a TemplateLiteral

TemplateLiteral

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

ArrowFunctionBody

The body portion of an arrow function can be either an Expr or a block of statements

AssignmentLeft

The value being assigned to

AssignmentOperator

The available operators for assignment Exprs

BinaryOperator

The available operations for Binary Exprs

Expr

A slightly more granular program part that a statement

Literal

A literal value

LogicalOperator

The available logical operators

ObjectProperty

A single part of an object literal

PropertyKey

An object literal or class property identifier

PropertyKind

A flag for determining what kind of property

PropertyValue

The value of an object literal or class property

UnaryOperator

The allowed operators for an Expr to be Unary

UpdateOperator

++ or --

Type Definitions

ArrayExpr

[a, b, c]

ObjectExpr

{a: 'b', c, ...d}

SequenceExpr

A collection of Exprs separated by commas