@angular/compiler-cli 19.2.11 → 19.2.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@
4
4
 
5
5
  import {
6
6
  angularJitApplicationTransform
7
- } from "./chunk-YBCHZNNP.js";
7
+ } from "./chunk-CV2U5QH5.js";
8
8
 
9
9
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/private/tooling.mjs
10
10
  var GLOBAL_DEFS_FOR_TERSER = {
@@ -31,4 +31,4 @@ export {
31
31
  * Use of this source code is governed by an MIT-style license that can be
32
32
  * found in the LICENSE file at https://angular.dev/license
33
33
  */
34
- //# sourceMappingURL=chunk-OWM3CFGF.js.map
34
+ //# sourceMappingURL=chunk-65ENP3XI.js.map
@@ -311,7 +311,7 @@ import { compileDirectiveFromMetadata, makeBindingParser, ParseLocation, ParseSo
311
311
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/util.mjs
312
312
  import { createMayBeForwardRefExpression, outputAst as o2 } from "@angular/compiler";
313
313
  import semver from "semver";
314
- var PLACEHOLDER_VERSION = "19.2.11";
314
+ var PLACEHOLDER_VERSION = "19.2.12";
315
315
  function wrapReference(wrapped) {
316
316
  return { value: wrapped, type: wrapped };
317
317
  }
@@ -4,7 +4,7 @@
4
4
 
5
5
  import {
6
6
  angularJitApplicationTransform
7
- } from "./chunk-YBCHZNNP.js";
7
+ } from "./chunk-CV2U5QH5.js";
8
8
  import {
9
9
  CompilationMode,
10
10
  ComponentDecoratorHandler,
@@ -51,7 +51,7 @@ import {
51
51
  retagAllTsFiles,
52
52
  tryParseInitializerApi,
53
53
  untagAllTsFiles
54
- } from "./chunk-EGTPNAWG.js";
54
+ } from "./chunk-EUDTP5KR.js";
55
55
  import {
56
56
  AbsoluteModuleStrategy,
57
57
  AliasStrategy,
@@ -5111,4 +5111,4 @@ export {
5111
5111
  * Use of this source code is governed by an MIT-style license that can be
5112
5112
  * found in the LICENSE file at https://angular.dev/license
5113
5113
  */
5114
- //# sourceMappingURL=chunk-PLOJWHUQ.js.map
5114
+ //# sourceMappingURL=chunk-BGTUPMWP.js.map
@@ -10,7 +10,7 @@ import {
10
10
  tryParseSignalInputMapping,
11
11
  tryParseSignalModelMapping,
12
12
  tryParseSignalQueryFromInitializer
13
- } from "./chunk-EGTPNAWG.js";
13
+ } from "./chunk-EUDTP5KR.js";
14
14
  import {
15
15
  ImportManager,
16
16
  ImportedSymbolsTracker,
@@ -536,4 +536,4 @@ export {
536
536
  * Use of this source code is governed by an MIT-style license that can be
537
537
  * found in the LICENSE file at https://angular.dev/license
538
538
  */
539
- //# sourceMappingURL=chunk-YBCHZNNP.js.map
539
+ //# sourceMappingURL=chunk-CV2U5QH5.js.map
@@ -3643,7 +3643,7 @@ function extractClassMetadata(clazz, reflection, isCore, annotateForClosureCompi
3643
3643
  metaCtorParameters = new ArrowFunctionExpr([], new LiteralArrayExpr(ctorParameters));
3644
3644
  }
3645
3645
  let metaPropDecorators = null;
3646
- const classMembers = reflection.getMembersOfClass(clazz).filter((member) => !member.isStatic && member.decorators !== null && member.decorators.length > 0);
3646
+ const classMembers = reflection.getMembersOfClass(clazz).filter((member) => !member.isStatic && member.decorators !== null && member.decorators.length > 0 && member.accessLevel !== ClassMemberAccessLevel.EcmaScriptPrivate);
3647
3647
  const duplicateDecoratedMembers = classMembers.filter((member, i, arr) => arr.findIndex((arrayMember) => arrayMember.name === member.name) < i);
3648
3648
  if (duplicateDecoratedMembers.length > 0) {
3649
3649
  throw new FatalDiagnosticError(ErrorCode.DUPLICATE_DECORATED_PROPERTIES, (_a = duplicateDecoratedMembers[0].nameNode) != null ? _a : clazz, `Duplicate decorated properties found on class '${clazz.name.text}': ` + duplicateDecoratedMembers.map((member) => member.name).join(", "));
@@ -12980,6 +12980,7 @@ var TemplateTypeCheckerImpl = class {
12980
12980
  scopeCache = /* @__PURE__ */ new Map();
12981
12981
  elementTagCache = /* @__PURE__ */ new Map();
12982
12982
  isComplete = false;
12983
+ priorResultsAdopted = false;
12983
12984
  constructor(originalProgram, programDriver, typeCheckAdapter, config, refEmitter, reflector, compilerHost, priorBuild, metaReader, localMetaReader, ngModuleIndex, componentScopeReader, typeCheckScopeRegistry, perf) {
12984
12985
  this.originalProgram = originalProgram;
12985
12986
  this.programDriver = programDriver;
@@ -13214,25 +13215,35 @@ var TemplateTypeCheckerImpl = class {
13214
13215
  this.completionCache.set(component, engine);
13215
13216
  return engine;
13216
13217
  }
13217
- maybeAdoptPriorResultsForFile(sf) {
13218
- const sfPath = absoluteFromSourceFile(sf);
13219
- if (this.state.has(sfPath)) {
13220
- const existingResults = this.state.get(sfPath);
13221
- if (existingResults.isComplete) {
13222
- return;
13223
- }
13224
- }
13225
- const previousResults = this.priorBuild.priorTypeCheckingResultsFor(sf);
13226
- if (previousResults === null || !previousResults.isComplete) {
13218
+ maybeAdoptPriorResults() {
13219
+ if (this.priorResultsAdopted) {
13227
13220
  return;
13228
13221
  }
13229
- this.perf.eventCount(PerfEvent.ReuseTypeCheckFile);
13230
- this.state.set(sfPath, previousResults);
13222
+ for (const sf of this.originalProgram.getSourceFiles()) {
13223
+ if (sf.isDeclarationFile || isShim(sf)) {
13224
+ continue;
13225
+ }
13226
+ const sfPath = absoluteFromSourceFile(sf);
13227
+ if (this.state.has(sfPath)) {
13228
+ const existingResults = this.state.get(sfPath);
13229
+ if (existingResults.isComplete) {
13230
+ continue;
13231
+ }
13232
+ }
13233
+ const previousResults = this.priorBuild.priorTypeCheckingResultsFor(sf);
13234
+ if (previousResults === null || !previousResults.isComplete) {
13235
+ continue;
13236
+ }
13237
+ this.perf.eventCount(PerfEvent.ReuseTypeCheckFile);
13238
+ this.state.set(sfPath, previousResults);
13239
+ }
13240
+ this.priorResultsAdopted = true;
13231
13241
  }
13232
13242
  ensureAllShimsForAllFiles() {
13233
13243
  if (this.isComplete) {
13234
13244
  return;
13235
13245
  }
13246
+ this.maybeAdoptPriorResults();
13236
13247
  this.perf.inPhase(PerfPhase.TcbGeneration, () => {
13237
13248
  const host = new WholeProgramTypeCheckingHost(this);
13238
13249
  const ctx = this.newContext(host);
@@ -13240,7 +13251,6 @@ var TemplateTypeCheckerImpl = class {
13240
13251
  if (sf.isDeclarationFile || isShim(sf)) {
13241
13252
  continue;
13242
13253
  }
13243
- this.maybeAdoptPriorResultsForFile(sf);
13244
13254
  const sfPath = absoluteFromSourceFile(sf);
13245
13255
  const fileData = this.getFileData(sfPath);
13246
13256
  if (fileData.isComplete) {
@@ -13254,8 +13264,8 @@ var TemplateTypeCheckerImpl = class {
13254
13264
  });
13255
13265
  }
13256
13266
  ensureAllShimsForOneFile(sf) {
13267
+ this.maybeAdoptPriorResults();
13257
13268
  this.perf.inPhase(PerfPhase.TcbGeneration, () => {
13258
- this.maybeAdoptPriorResultsForFile(sf);
13259
13269
  const sfPath = absoluteFromSourceFile(sf);
13260
13270
  const fileData = this.getFileData(sfPath);
13261
13271
  if (fileData.isComplete) {
@@ -13269,10 +13279,10 @@ var TemplateTypeCheckerImpl = class {
13269
13279
  });
13270
13280
  }
13271
13281
  ensureShimForComponent(component) {
13282
+ this.maybeAdoptPriorResults();
13272
13283
  const sf = component.getSourceFile();
13273
13284
  const sfPath = absoluteFromSourceFile(sf);
13274
13285
  const shimPath = TypeCheckShimGenerator.shimFor(sfPath);
13275
- this.maybeAdoptPriorResultsForFile(sf);
13276
13286
  const fileData = this.getFileData(sfPath);
13277
13287
  if (fileData.shimData.has(shimPath)) {
13278
13288
  return;
@@ -15631,4 +15641,4 @@ export {
15631
15641
  * Use of this source code is governed by an MIT-style license that can be
15632
15642
  * found in the LICENSE file at https://angular.dev/license
15633
15643
  */
15634
- //# sourceMappingURL=chunk-EGTPNAWG.js.map
15644
+ //# sourceMappingURL=chunk-EUDTP5KR.js.map