Array and objects can be turned into destructured variable field and now does that if the LHS is = (which hopefully reduces the overhead of the previous implementation which did lookahead)
Added negation to literal type annotations (such as -2)
Added class member typed ondexer thing e.g [x: number]: T
Simplifies declare things
Removed performs annotations (will be replaced in the future with Constant decorator)
ASTNode::get_position returns Span rather than &Span
Removed some temporary things to satisfy the checker
=
(which hopefully reduces the overhead of the previous implementation which did lookahead)-2
)[x: number]: T
declare
thingsperforms
annotations (will be replaced in the future withConstant
decorator)ASTNode::get_position
returnsSpan
rather than&Span