Skip to content

Commit

Permalink
fix(ts): fix empty type error
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Nov 17, 2022
1 parent c133707 commit 8f0b8c4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions chapi-ast-typescript/src/main/antlr/TypeScriptParser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -493,10 +493,10 @@ formalParameterArg
: decoratorList? accessibilityModifier? ReadOnly? identifierName '?'? typeAnnotation? ('=' singleExpression)? // ECMAScript 6: Initialization
| lastFormalParameterArg
// ([key, value]: [string, string[]])
// | arrayLiteral (':' formalParameterList)? // ECMAScript 6: Parameter Context Matching
// | objectLiteral (':' formalParameterList)? // ECMAScript 6: Parameter Context Matching
// `addThing({ payload }, { call }){}`
// | objectLiteral (',' objectLiteral)* // ECMAScript 6: Parameter Context Matching
| arrayLiteral (':' formalParameterList)? // ECMAScript 6: Parameter Context Matching
| objectLiteral (':' formalParameterList)? // ECMAScript 6: Parameter Context Matching
// `addThing({ payload }, { call }){}`
| objectLiteral (',' objectLiteral)* // ECMAScript 6: Parameter Context Matching
;

lastFormalParameterArg // ECMAScript 6: Rest Parameter
Expand Down

0 comments on commit 8f0b8c4

Please sign in to comment.