@angular/compiler-cli 19.2.0-rc.0 → 19.2.1

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.
@@ -10,7 +10,7 @@ import {
10
10
  tryParseSignalInputMapping,
11
11
  tryParseSignalModelMapping,
12
12
  tryParseSignalQueryFromInitializer
13
- } from "./chunk-HHTMNOE7.js";
13
+ } from "./chunk-J2ZUZS7X.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-E7POVVFX.js.map
539
+ //# sourceMappingURL=chunk-GYTY2X5V.js.map
@@ -7685,20 +7685,16 @@ function parseTemplateAsSourceFile(fileName, template) {
7685
7685
  }
7686
7686
 
7687
7687
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
7688
- var TEMPLATE_ID = Symbol("ngTemplateId");
7689
- var NEXT_TEMPLATE_ID = Symbol("ngNextTemplateId");
7688
+ var TEMPLATE_ID_MAP = Symbol("ngTemplateId");
7690
7689
  function getTemplateId(clazz) {
7691
- const node = clazz;
7692
- if (node[TEMPLATE_ID] === void 0) {
7693
- node[TEMPLATE_ID] = allocateTemplateId(node.getSourceFile());
7690
+ const sf = clazz.getSourceFile();
7691
+ if (sf[TEMPLATE_ID_MAP] === void 0) {
7692
+ sf[TEMPLATE_ID_MAP] = /* @__PURE__ */ new Map();
7694
7693
  }
7695
- return node[TEMPLATE_ID];
7696
- }
7697
- function allocateTemplateId(sf) {
7698
- if (sf[NEXT_TEMPLATE_ID] === void 0) {
7699
- sf[NEXT_TEMPLATE_ID] = 1;
7694
+ if (sf[TEMPLATE_ID_MAP].get(clazz) === void 0) {
7695
+ sf[TEMPLATE_ID_MAP].set(clazz, `tcb${sf[TEMPLATE_ID_MAP].size + 1}`);
7700
7696
  }
7701
- return `tcb${sf[NEXT_TEMPLATE_ID]++}`;
7697
+ return sf[TEMPLATE_ID_MAP].get(clazz);
7702
7698
  }
7703
7699
 
7704
7700
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
@@ -15600,4 +15596,4 @@ export {
15600
15596
  * Use of this source code is governed by an MIT-style license that can be
15601
15597
  * found in the LICENSE file at https://angular.dev/license
15602
15598
  */
15603
- //# sourceMappingURL=chunk-HHTMNOE7.js.map
15599
+ //# sourceMappingURL=chunk-J2ZUZS7X.js.map