mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Rename importcall to importCallExpression
This commit is contained in:
1 parent
bd50ccfa11
commit
7340d84a02
1 file changed
+2
-2
@@ -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 = <ImportCallExpression>createNode(SyntaxKind.ImportCallExpression);
|
||||
parseExpected(SyntaxKind.ImportKeyword);
|
||||
parseExpected(SyntaxKind.OpenParenToken);
|
||||
|
||||
Reference in new issue
Block a user