Moved function used in declaration emitter to the declaration emitter to break dependency loop.

This commit is contained in:
Daniel Rosenwasser committed 2015-04-22 17:11:24 -07:00
1 parent d5203b9699
commit 5ae26e10bd
2 files changed
+4 -4

No files matched your search

+4
View File
@@ -37,6 +37,10 @@ module ts {
return diagnostics;
}
export function isExternalModuleOrDeclarationFile(sourceFile: SourceFile) {
return isExternalModule(sourceFile) || isDeclarationFile(sourceFile);
}
function emitDeclarations(host: EmitHost, resolver: EmitResolver, diagnostics: Diagnostic[], jsFilePath: string, root?: SourceFile): DeclarationEmit {
let newLine = host.getNewLine();
let compilerOptions = host.getCompilerOptions();
-4
View File
@@ -3,10 +3,6 @@
/* @internal */
module ts {
export function isExternalModuleOrDeclarationFile(sourceFile: SourceFile) {
return isExternalModule(sourceFile) || isDeclarationFile(sourceFile);
}
// Flags enum to track count of temp variables and a few dedicated names
const enum TempFlags {
Auto = 0x00000000, // No preferred name