File tree Expand file tree Collapse file tree
chapi-ast-typescript/src/main/antlr Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -598,6 +598,7 @@ arrayElement
598598bindingElement
599599 : bindingPattern
600600 | Identifier
601+ | singleExpression
601602 ;
602603
603604
@@ -729,7 +730,7 @@ multipleExportElements
729730// Variable Statement
730731
731732variableStatement
732- : accessibilityModifier? ReadOnly? varModifier (bindingPatternBlock | variableDeclarationList) SemiColon ?
733+ : accessibilityModifier? ReadOnly? varModifier (bindingPatternBlock | variableDeclarationList) eos ?
733734 ;
734735
735736varModifier
@@ -747,8 +748,9 @@ variableDeclarationList
747748 ;
748749
749750variableDeclaration
750- // : ( identifierName | arrayLiteral | objectLiteral) typeAnnotation? ('=' typeParameters? singleExpression)? // ECMAScript 6: Array & Object Matching
751- : identifierName typeAnnotation? (' =' typeParameters? singleExpression)? // ECMAScript 6: Array & Object Matching
751+ : identifierName typeAnnotation? (' =' typeParameters? singleExpression)? // ECMAScript 6: Array & Object Matching
752+ | arrayLiteral
753+ | objectLiteral
752754 ;
753755
754756
@@ -1016,6 +1018,8 @@ identifierOrKeyWord
10161018
10171019identifierName
10181020 : reservedWord
1021+ | Lodash
1022+ | Dollar
10191023 | Identifier
10201024 ;
10211025
You can’t perform that action at this time.
0 commit comments