Skip to content

Commit

Permalink
fix(ts): align erros
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Nov 17, 2022
1 parent 1d6feaa commit 9a8d927
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions chapi-ast-typescript/src/main/antlr/TypeScriptParser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -923,6 +923,7 @@ singleExpression
| This # ThisExpression
| Super # SuperExpression
| typeArguments? identifierName singleExpression? # IdentifierExpression
| typeArguments expressionSequence? # GenericTypes
| literal # LiteralExpression
| arrayLiteral # ArrayLiteralExpression
| objectLiteral # ObjectLiteralExpression
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -622,14 +622,14 @@ class TypeScriptFullIdentListener(node: TSIdentify) : TypeScriptAstListener() {
when (ctx) {
is IdentifierExpressionContext -> {
currentExprIdent = ctx.identifierName().text
//
// if (ctx.singleExpression() != null) {
// parseSingleExpression(ctx.singleExpression())
// }

if (ctx.singleExpression() != null) {
parseSingleExpression(ctx.singleExpression())
}
}
is TypeScriptParser.GenericTypesContext -> {
parseExpressionSequence(ctx.expressionSequence())
}
// is TypeScriptParser.GenericTypesContext -> {
// parseExpressionSequence(ctx.expressionSequence())
// }
is TypeScriptParser.ArgumentsExpressionContext -> {
argumentsExpressionToCall(ctx)
}
Expand Down

0 comments on commit 9a8d927

Please sign in to comment.