From 7340d84a0288b1f89e4167196cd1d62cf101dcc2 Mon Sep 17 00:00:00 2001 From: Kanchalai Tanglertsampan Date: Mon, 13 Mar 2017 14:47:54 -0700 Subject: [PATCH] Rename importcall to importCallExpression --- src/compiler/parser.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler/parser.ts b/src/compiler/parser.ts index 5eb0bc60e68..fbcbfae0bdf 100644 --- a/src/compiler/parser.ts +++ b/src/compiler/parser.ts @@ -3694,7 +3694,7 @@ namespace ts { // For example: // var foo3 = require("subfolder // import * as foo1 from "module-from-node -> we want this import to be a statement rather than import call expression - const importCall = parseImportCall(); + const importCall = parseImportCallExpression(); if (importCall.specifier.kind === SyntaxKind.StringLiteral) { (sourceFile.imports || (sourceFile.imports = [])).push(importCall.specifier as StringLiteral); } @@ -3774,7 +3774,7 @@ namespace ts { return finishNode(node); } - function parseImportCall(): ImportCallExpression { + function parseImportCallExpression(): ImportCallExpression { const importCallExpr = createNode(SyntaxKind.ImportCallExpression); parseExpected(SyntaxKind.ImportKeyword); parseExpected(SyntaxKind.OpenParenToken);