Skip to content

Commit b86d867

Browse files
committed
refactor(new_ts): fix body has a more { issues
1 parent 9e4e2ad commit b86d867

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ functionDeclaration
404404
;
405405

406406
functionBody
407-
: '{' statementList? '}'
407+
: statementList?
408408
;
409409

410410

@@ -905,7 +905,7 @@ singleExpression
905905
| singleExpression ('.' | '?''.') identifierName # PropertyAccessExpression
906906
| New (Dot Target| singleExpression ) # NewExpression
907907
// find arguments first, then found the call expression
908-
| singleExpression typeArguments? arguments # ArgumentsExpression
908+
// | singleExpression typeArguments? arguments # ArgumentsExpression
909909
| '(' expressionSequence ')' # ParenthesizedExpression
910910

911911
// TODO:

0 commit comments

Comments
 (0)