Crate resast
Source - decl
- expr
- pat
- prelude
- spanned
- stmt
- Class
- A way to declare object templates
- ClassBody
- Dir
- pretty much always
'use strict'
, this can appear at the
top of a file or function - Func
- A function, this will be part of either a function
declaration (ID is required) or a function expression
(ID is optional)
- FuncBody
- The block statement that makes up the function’s body
- Ident
- AssignOp
- The available operators for assignment Exprs
- BinaryOp
- The available operations for
Binary
Exprs - FuncArg
- A single function argument from a function signature
- LogicalOp
- The available logical operators
- Program
- A fully parsed javascript program.
- ProgramPart
- A single part of a Javascript program.
This will be either a Directive, Decl or a Stmt
- PropKind
- A flag for determining what kind of property
- UnaryOp
- The allowed operators for an Expr
to be
Unary
- UpdateOp
++
or --
- VarKind
- The kind of variable being defined (
var
/let
/const
)