MCPcopy Index your code
hub / github.com/angular/angular-cli / invalidate

Method invalidate

packages/ngtools/webpack/src/ivy/cache.ts:14–20  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

12 private readonly angularDiagnostics = new Map<ts.SourceFile, ts.Diagnostic[]>();
13
14 invalidate(file: string): void {
15 const sourceFile = this.get(file);
16 if (sourceFile) {
17 this.delete(file);
18 this.angularDiagnostics.delete(sourceFile);
19 }
20 }
21
22 updateAngularDiagnostics(sourceFile: ts.SourceFile, diagnostics: ts.Diagnostic[]): void {
23 if (diagnostics.length > 0) {

Callers 1

setupCompilationMethod · 0.80

Calls 2

getMethod · 0.65
deleteMethod · 0.65

Tested by

no test coverage detected