Revert "Revert "Revert "perf(compiler): skip type check and emit in bazel in some cases. (#19646)"""

This reverts commit 6b7cead0c5.
This commit is contained in:
Tobias Bosch
2017-10-12 16:09:49 -07:00
parent 522ec9a25b
commit 653a211743
21 changed files with 297 additions and 596 deletions

View File

@ -11,7 +11,6 @@ import * as ts from 'typescript';
import {DEFAULT_ERROR_CODE, Diagnostic, SOURCE} from './api';
export const GENERATED_FILES = /(.*?)\.(ngfactory|shim\.ngstyle|ngstyle|ngsummary)\.(js|d\.ts|ts)$/;
export const EXT = /(\.ts|\.d\.ts|\.js|\.jsx|\.tsx)$/;
export const enum StructureIsReused {Not = 0, SafeModules = 1, Completely = 2}
@ -30,7 +29,3 @@ export function createMessageDiagnostic(messageText: string): ts.Diagnostic&Diag
source: SOURCE,
};
}
export function isGeneratedFile(fileName: string): boolean {
return GENERATED_FILES.test(fileName);
}