Skip to content

Commit 8f0b8c4

Browse files
committed
fix(ts): fix empty type error
1 parent c133707 commit 8f0b8c4

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

chapi-ast-typescript/src/main/antlr/TypeScriptParser.g4

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -493,10 +493,10 @@ formalParameterArg
493493
: decoratorList? accessibilityModifier? ReadOnly? identifierName '?'? typeAnnotation? ('=' singleExpression)? // ECMAScript 6: Initialization
494494
| lastFormalParameterArg
495495
// ([key, value]: [string, string[]])
496-
// | arrayLiteral (':' formalParameterList)? // ECMAScript 6: Parameter Context Matching
497-
// | objectLiteral (':' formalParameterList)? // ECMAScript 6: Parameter Context Matching
498-
// `addThing({ payload }, { call }){}`
499-
// | objectLiteral (',' objectLiteral)* // ECMAScript 6: Parameter Context Matching
496+
| arrayLiteral (':' formalParameterList)? // ECMAScript 6: Parameter Context Matching
497+
| objectLiteral (':' formalParameterList)? // ECMAScript 6: Parameter Context Matching
498+
// `addThing({ payload }, { call }){}`
499+
| objectLiteral (',' objectLiteral)* // ECMAScript 6: Parameter Context Matching
500500
;
501501

502502
lastFormalParameterArg // ECMAScript 6: Rest Parameter

0 commit comments

Comments
 (0)