Skip to content

Commit

Permalink
fix(ts): fix decorator list
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Nov 15, 2022
1 parent 33a35b0 commit 9d8bfe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chapi-ast-typescript/src/main/antlr/TypeScriptParser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ formalParameterList
;

formalParameterArg
: decorator? accessibilityModifier? ReadOnly? identifierOrKeyWord '?'? typeAnnotation? ('=' singleExpression)? // ECMAScript 6: Initialization
: decoratorList? accessibilityModifier? ReadOnly? identifierOrKeyWord '?'? typeAnnotation? ('=' singleExpression)? // ECMAScript 6: Initialization
| lastFormalParameterArg
// ([key, value]: [string, string[]])
| arrayLiteral (':' formalParameterList)? // ECMAScript 6: Parameter Context Matching
Expand Down

0 comments on commit 9d8bfe5

Please sign in to comment.