From 300c059d1f0526039e6cce33e7ca7f5da4e49e5f Mon Sep 17 00:00:00 2001 From: Yui T Date: Mon, 27 Oct 2014 17:03:06 -0700 Subject: [PATCH] Remove diagnostic from pre-processing of files --- src/services/services.ts | 3 +-- tests/cases/unittests/services/preProcessFile.ts | 5 ----- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/services/services.ts b/src/services/services.ts index 0fccd268469..230fe4bebcb 100644 --- a/src/services/services.ts +++ b/src/services/services.ts @@ -92,7 +92,6 @@ module ts { export interface PreProcessedFileInfo { referencedFiles: IFileReference[]; importedFiles: IFileReference[]; - diagnostics: TypeScript.Diagnostic[]; isLibFile: boolean } @@ -1980,7 +1979,7 @@ module ts { } processTripleSlashDirectives(); // TODO (yuisu) : remove diagnostics array - return { referencedFiles: referencedFiles, importedFiles: importedFiles, isLibFile: isNoDefaultLib, diagnostics: [] }; + return { referencedFiles: referencedFiles, importedFiles: importedFiles, isLibFile: isNoDefaultLib }; } /// Helpers diff --git a/tests/cases/unittests/services/preProcessFile.ts b/tests/cases/unittests/services/preProcessFile.ts index 29811f8270a..8fbab29b7b9 100644 --- a/tests/cases/unittests/services/preProcessFile.ts +++ b/tests/cases/unittests/services/preProcessFile.ts @@ -51,7 +51,6 @@ describe('PreProcessFile:', function () { referencedFiles: [{ path: "refFile1.ts", position: 0, length: 37 }, { path: "refFile2.ts", position: 38, length: 35 }, { path: "refFile3.ts", position: 74, length: 35 }, { path: "refFile4d.ts", position: 110, length: 37 }], importedFiles: [], - diagnostics: [], isLibFile: false }); }), @@ -61,7 +60,6 @@ describe('PreProcessFile:', function () { { referencedFiles: [], importedFiles: [], - diagnostics: [], isLibFile: false }); }); @@ -72,7 +70,6 @@ describe('PreProcessFile:', function () { referencedFiles: [], importedFiles: [{ path: "r1.ts", position: 20, length: 5 }, { path: "r2.ts", position: 49, length: 5 }, { path: "r3.ts", position: 78, length: 5 }, { path: "r4.ts", position: 106, length: 5 }, { path: "r5.ts", position: 138, length: 5 }], - diagnostics: [], isLibFile: false }); }); @@ -82,7 +79,6 @@ describe('PreProcessFile:', function () { { referencedFiles: [], importedFiles: [], - diagnostics: [], isLibFile: false }); }); @@ -92,7 +88,6 @@ describe('PreProcessFile:', function () { { referencedFiles: [{ path: "refFile1.ts", position: 0, length: 35 }, { path: "refFile2.ts", position: 36, length: 35 }], importedFiles: [{ path: "r1.ts", position: 92, length: 5 }, { path: "r2.ts", position: 121, length: 5 }], - diagnostics: [], isLibFile: false }); });