UNPKG

ng-packagr

Version:

Compile and package Angular libraries in Angular Package Format (APF)

20 lines 627 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AngularDiagnosticsCache = void 0; class AngularDiagnosticsCache { #cache = new Map(); delete(fileName) { this.#cache.delete(fileName); } has(sourceFile) { return this.#cache.has(sourceFile.fileName); } update(sourceFile, diagnostics) { this.#cache.set(sourceFile.fileName, diagnostics); } get(sourceFile) { return this.#cache.get(sourceFile.fileName) ?? []; } } exports.AngularDiagnosticsCache = AngularDiagnosticsCache; //# sourceMappingURL=angular-diagnostics-cache.js.map