@@ -356,7 +356,7 @@ constructSignature
356
356
;
357
357
358
358
callSignature
359
- : typeParameters? ' (' parameterList? ' ,' ? ' )' (' :' (typePredicateWithOperatorTypeRef | typeRef))?
359
+ : typeParameters? ' (' parameterList? ' ,' ? ' )' (' :' (typePredicateWithOperatorTypeRef | typeRef))? eos?
360
360
;
361
361
362
362
indexSignature
@@ -401,7 +401,7 @@ enumMember
401
401
// Function Declaration
402
402
403
403
functionDeclaration
404
- : propertyMemberBase? Function ' *' ? identifierName callSignature functionBody? SemiColon ?
404
+ : propertyMemberBase? Function ' *' ? identifierName callSignature ' { ' functionBody ' } ' eos ?
405
405
;
406
406
407
407
functionBody
@@ -831,7 +831,7 @@ breakStatement
831
831
832
832
833
833
returnStatement
834
- : Return ({this.notLineTerminator()} ? expressionSequence)? eos
834
+ : Return ({this.notLineTerminator()} ? expressionSequence)? eos?
835
835
// | Return '(' htmlElements ')' eos
836
836
;
837
837
@@ -857,7 +857,7 @@ debuggerStatement
857
857
858
858
859
859
expressionStatement
860
- : {this.notOpenBraceAndNotFunction()} ? expressionSequence eos
860
+ : {this.notOpenBraceAndNotFunction()} ? expressionSequence eos?
861
861
;
862
862
863
863
@@ -923,6 +923,7 @@ singleExpression
923
923
| yieldStatement # YieldExpression // ECMAScript 6
924
924
| Await singleExpression # AwaitExpression
925
925
| typeArguments? identifierName singleExpression? # IdentifierExpression
926
+
926
927
| typeArguments expressionSequence? # GenericTypes
927
928
| literal # LiteralExpression
928
929
| arrayLiteral # ArrayLiteralExpression
@@ -981,7 +982,7 @@ unaryOperator
981
982
982
983
983
984
generatorFunctionDeclaration
984
- : Function ' *' Identifier? ' (' formalParameterList? ' )' ' {' functionBody ' }'
985
+ : Function ' *' Identifier? ' (' formalParameterList? ' )' ' {' functionBody? ' }'
985
986
;
986
987
987
988
generatorBlock
0 commit comments