File tree 2 files changed +8
-7
lines changed
chapi-ast-typescript/src/main
kotlin/chapi/ast/typescriptast
2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -923,6 +923,7 @@ singleExpression
923
923
| This # ThisExpression
924
924
| Super # SuperExpression
925
925
| typeArguments? identifierName singleExpression? # IdentifierExpression
926
+ | typeArguments expressionSequence? # GenericTypes
926
927
| literal # LiteralExpression
927
928
| arrayLiteral # ArrayLiteralExpression
928
929
| objectLiteral # ObjectLiteralExpression
Original file line number Diff line number Diff line change @@ -622,14 +622,14 @@ class TypeScriptFullIdentListener(node: TSIdentify) : TypeScriptAstListener() {
622
622
when (ctx) {
623
623
is IdentifierExpressionContext -> {
624
624
currentExprIdent = ctx.identifierName().text
625
- //
626
- // if (ctx.singleExpression() != null) {
627
- // parseSingleExpression(ctx.singleExpression())
628
- // }
625
+
626
+ if (ctx.singleExpression() != null ) {
627
+ parseSingleExpression(ctx.singleExpression())
628
+ }
629
+ }
630
+ is TypeScriptParser .GenericTypesContext -> {
631
+ parseExpressionSequence(ctx.expressionSequence())
629
632
}
630
- // is TypeScriptParser.GenericTypesContext -> {
631
- // parseExpressionSequence(ctx.expressionSequence())
632
- // }
633
633
is TypeScriptParser .ArgumentsExpressionContext -> {
634
634
argumentsExpressionToCall(ctx)
635
635
}
You can’t perform that action at this time.
0 commit comments