diff --git a/src/compiler/parser.ts b/src/compiler/parser.ts index 1121eb67fdb..5487d1a47c3 100644 --- a/src/compiler/parser.ts +++ b/src/compiler/parser.ts @@ -407,6 +407,10 @@ namespace ts { return result; } + export function isExternalModule(file: SourceFile): boolean { + return file.externalModuleIndicator !== undefined; + } + // Produces a new SourceFile for the 'newText' provided. The 'textChangeRange' parameter // indicates what changed between the 'text' that this SourceFile has and the 'newText'. // The SourceFile will be created with the compiler attempting to reuse as many nodes from diff --git a/src/compiler/utilities.ts b/src/compiler/utilities.ts index 9c598da9069..3916d0022c8 100644 --- a/src/compiler/utilities.ts +++ b/src/compiler/utilities.ts @@ -407,10 +407,6 @@ namespace ts { return createTextSpanFromBounds(pos, errorNode.end); } - export function isExternalModule(file: SourceFile): boolean { - return file.externalModuleIndicator !== undefined; - } - export function isExternalOrCommonJsModule(file: SourceFile): boolean { return (file.externalModuleIndicator || file.commonJsModuleIndicator) !== undefined; }