From 405508c100934f99d975348015cce735fa10f76c Mon Sep 17 00:00:00 2001 From: Cyrus Najmabadi Date: Thu, 4 Dec 2014 12:32:16 -0800 Subject: [PATCH] CR feedback. --- src/compiler/parser.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/compiler/parser.ts b/src/compiler/parser.ts index f24b07eaf8e..565c79f6e74 100644 --- a/src/compiler/parser.ts +++ b/src/compiler/parser.ts @@ -1173,7 +1173,8 @@ module ts { var saveContextFlags = contextFlags; // If we're only looking ahead, then tell the scanner to only lookahead as well. - // If we're actually speculatively parsing, then tell the scanner to do the same. + // Otherwise, if we're actually speculatively parsing, then tell the scanner to do the + // same. var result = isLookAhead ? scanner.lookAhead(callback) : scanner.tryScan(callback); @@ -3054,9 +3055,7 @@ module ts { var callExpr = createNode(SyntaxKind.CallExpression, expression.pos); callExpr.expression = expression; callExpr.typeArguments = typeArguments; - if (callExpr.typeArguments || token === SyntaxKind.OpenParenToken) { - callExpr.arguments = parseArgumentList(); - } + callExpr.arguments = parseArgumentList(); expression = finishNode(callExpr); continue; }