@angular/compiler-cli 17.1.1 → 17.1.3

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.
Files changed (45) hide show
  1. package/bundles/{chunk-WCD6LVCP.js → chunk-2WQIUGOU.js} +7 -7
  2. package/bundles/{chunk-R4KQI5XI.js → chunk-64JBPJBS.js} +5 -5
  3. package/bundles/{chunk-Q5Y7HH3O.js → chunk-6VEEN3ZS.js} +5 -5
  4. package/bundles/{chunk-TQYIA5ZM.js → chunk-ELKFSTAE.js} +232 -164
  5. package/bundles/chunk-ELKFSTAE.js.map +6 -0
  6. package/bundles/{chunk-LD7OKX22.js → chunk-ENSQEBQC.js} +30 -30
  7. package/bundles/{chunk-VTJUF2MM.js → chunk-H3PIRNUD.js} +5 -5
  8. package/bundles/{chunk-TNWTCE6C.js → chunk-HJWHU6BO.js} +86 -76
  9. package/bundles/{chunk-TNWTCE6C.js.map → chunk-HJWHU6BO.js.map} +1 -1
  10. package/bundles/{chunk-7MBQJYBK.js → chunk-JJ5HCA72.js} +6 -6
  11. package/bundles/{chunk-SBDNBITT.js → chunk-LYJKWJUC.js} +3 -3
  12. package/bundles/{chunk-22WKDIPL.js → chunk-O2GHHXCL.js} +55 -41
  13. package/bundles/chunk-O2GHHXCL.js.map +6 -0
  14. package/bundles/{chunk-QPMYDNZG.js → chunk-UM6JO3VZ.js} +9 -9
  15. package/bundles/{chunk-QPMYDNZG.js.map → chunk-UM6JO3VZ.js.map} +1 -1
  16. package/bundles/index.js +12 -12
  17. package/bundles/linker/babel/index.js +12 -12
  18. package/bundles/linker/index.js +4 -4
  19. package/bundles/ngcc/index.js +1 -1
  20. package/bundles/private/bazel.js +1 -1
  21. package/bundles/private/localize.js +3 -3
  22. package/bundles/private/migrations.js +5 -5
  23. package/bundles/private/tooling.js +5 -5
  24. package/bundles/src/bin/ng_xi18n.js +10 -10
  25. package/bundles/src/bin/ngc.js +8 -8
  26. package/bundles_metadata.json +1 -1
  27. package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
  28. package/package.json +2 -2
  29. package/src/bin/ng_xi18n.d.ts +1 -1
  30. package/src/bin/ngc.d.ts +1 -1
  31. package/src/ngtsc/annotations/component/src/metadata.d.ts +4 -1
  32. package/src/ngtsc/diagnostics/src/error.d.ts +4 -3
  33. package/src/ngtsc/docs/src/entities.d.ts +1 -0
  34. package/src/ngtsc/docs/src/function_extractor.d.ts +3 -2
  35. package/src/ngtsc/reflection/src/typescript.d.ts +1 -2
  36. package/src/ngtsc/typecheck/src/comments.d.ts +2 -1
  37. package/bundles/chunk-22WKDIPL.js.map +0 -6
  38. package/bundles/chunk-TQYIA5ZM.js.map +0 -6
  39. /package/bundles/{chunk-WCD6LVCP.js.map → chunk-2WQIUGOU.js.map} +0 -0
  40. /package/bundles/{chunk-R4KQI5XI.js.map → chunk-64JBPJBS.js.map} +0 -0
  41. /package/bundles/{chunk-Q5Y7HH3O.js.map → chunk-6VEEN3ZS.js.map} +0 -0
  42. /package/bundles/{chunk-LD7OKX22.js.map → chunk-ENSQEBQC.js.map} +0 -0
  43. /package/bundles/{chunk-VTJUF2MM.js.map → chunk-H3PIRNUD.js.map} +0 -0
  44. /package/bundles/{chunk-7MBQJYBK.js.map → chunk-JJ5HCA72.js.map} +0 -0
  45. /package/bundles/{chunk-SBDNBITT.js.map → chunk-LYJKWJUC.js.map} +0 -0
@@ -8,7 +8,7 @@ import {
8
8
  PotentialImportKind,
9
9
  PotentialImportMode,
10
10
  SymbolKind
11
- } from "./chunk-Q5Y7HH3O.js";
11
+ } from "./chunk-6VEEN3ZS.js";
12
12
  import {
13
13
  CompilationMode,
14
14
  ComponentDecoratorHandler,
@@ -38,7 +38,7 @@ import {
38
38
  aliasTransformFactory,
39
39
  declarationTransformFactory,
40
40
  ivyTransformFactory
41
- } from "./chunk-TNWTCE6C.js";
41
+ } from "./chunk-HJWHU6BO.js";
42
42
  import {
43
43
  AbsoluteModuleStrategy,
44
44
  AliasStrategy,
@@ -49,7 +49,6 @@ import {
49
49
  ERROR_DETAILS_PAGE_BASE_URL,
50
50
  ErrorCode,
51
51
  ExtendedTemplateDiagnosticName,
52
- FatalDiagnosticError,
53
52
  ImportFlags,
54
53
  ImportManager,
55
54
  LocalIdentifierStrategy,
@@ -73,6 +72,7 @@ import {
73
72
  getTokenAtPosition,
74
73
  isAssignment,
75
74
  isDtsPath,
75
+ isFatalDiagnosticError,
76
76
  isNamedClassDeclaration,
77
77
  isNonDeclarationTsPath,
78
78
  isSymbolWithValueDeclaration,
@@ -86,14 +86,14 @@ import {
86
86
  toUnredirectedSourceFile,
87
87
  translateExpression,
88
88
  translateType
89
- } from "./chunk-22WKDIPL.js";
89
+ } from "./chunk-O2GHHXCL.js";
90
90
  import {
91
91
  ActivePerfRecorder,
92
92
  DelegatingPerfRecorder,
93
93
  PerfCheckpoint,
94
94
  PerfEvent,
95
95
  PerfPhase
96
- } from "./chunk-R4KQI5XI.js";
96
+ } from "./chunk-64JBPJBS.js";
97
97
  import {
98
98
  LogicalFileSystem,
99
99
  absoluteFrom,
@@ -103,9 +103,9 @@ import {
103
103
  getSourceFileOrError,
104
104
  join,
105
105
  resolve
106
- } from "./chunk-QPMYDNZG.js";
106
+ } from "./chunk-UM6JO3VZ.js";
107
107
 
108
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
108
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
109
109
  var DEFAULT_ERROR_CODE = 100;
110
110
  var UNKNOWN_ERROR_CODE = 500;
111
111
  var SOURCE = "angular";
@@ -123,7 +123,7 @@ var EmitFlags;
123
123
  EmitFlags2[EmitFlags2["All"] = 31] = "All";
124
124
  })(EmitFlags || (EmitFlags = {}));
125
125
 
126
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/compiler_host.mjs
126
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/compiler_host.mjs
127
127
  import ts from "typescript";
128
128
  var wrapHostForTest = null;
129
129
  function createCompilerHost({ options, tsHost = ts.createCompilerHost(options, true) }) {
@@ -133,7 +133,7 @@ function createCompilerHost({ options, tsHost = ts.createCompilerHost(options, t
133
133
  return tsHost;
134
134
  }
135
135
 
136
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/entities.mjs
136
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/entities.mjs
137
137
  var EntryType;
138
138
  (function(EntryType2) {
139
139
  EntryType2["Block"] = "block";
@@ -176,11 +176,11 @@ var MemberTags;
176
176
  MemberTags2["Inherited"] = "override";
177
177
  })(MemberTags || (MemberTags = {}));
178
178
 
179
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
179
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
180
180
  import { HtmlParser, MessageBundle } from "@angular/compiler";
181
181
  import ts37 from "typescript";
182
182
 
183
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
183
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
184
184
  import { Xliff, Xliff2, Xmb } from "@angular/compiler";
185
185
  import * as path from "path";
186
186
  function i18nGetExtension(formatName) {
@@ -231,10 +231,10 @@ function getPathNormalizer(basePath) {
231
231
  };
232
232
  }
233
233
 
234
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
234
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
235
235
  import ts2 from "typescript";
236
236
 
237
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/version_helpers.mjs
237
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/version_helpers.mjs
238
238
  function toNumbers(value) {
239
239
  const suffixIndex = value.lastIndexOf("-");
240
240
  return value.slice(0, suffixIndex === -1 ? value.length : suffixIndex).split(".").map((segment) => {
@@ -269,7 +269,7 @@ function compareVersions(v1, v2) {
269
269
  return compareNumbers(toNumbers(v1), toNumbers(v2));
270
270
  }
271
271
 
272
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
272
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
273
273
  var MIN_TS_VERSION = "5.2.0";
274
274
  var MAX_TS_VERSION = "5.4.0";
275
275
  var tsVersion = ts2.version;
@@ -282,10 +282,10 @@ function verifySupportedTypeScriptVersion() {
282
282
  checkVersion(tsVersion, MIN_TS_VERSION, MAX_TS_VERSION);
283
283
  }
284
284
 
285
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
285
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
286
286
  import ts35 from "typescript";
287
287
 
288
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
288
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
289
289
  var CycleAnalyzer = class {
290
290
  constructor(importGraph) {
291
291
  this.importGraph = importGraph;
@@ -356,7 +356,7 @@ var Cycle = class {
356
356
  }
357
357
  };
358
358
 
359
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/imports.mjs
359
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/imports.mjs
360
360
  import ts3 from "typescript";
361
361
  var ImportGraph = class {
362
362
  constructor(checker, perf) {
@@ -448,23 +448,23 @@ var Found = class {
448
448
  }
449
449
  };
450
450
 
451
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/extractor.mjs
451
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/extractor.mjs
452
452
  import ts9 from "typescript";
453
453
 
454
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/class_extractor.mjs
454
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/class_extractor.mjs
455
455
  import ts6 from "typescript";
456
456
 
457
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/filters.mjs
457
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/filters.mjs
458
458
  function isAngularPrivateName(name) {
459
459
  var _a;
460
460
  const firstChar = (_a = name[0]) != null ? _a : "";
461
461
  return firstChar === "\u0275" || firstChar === "_";
462
462
  }
463
463
 
464
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/function_extractor.mjs
464
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/function_extractor.mjs
465
465
  import ts5 from "typescript";
466
466
 
467
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/generics_extractor.mjs
467
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/generics_extractor.mjs
468
468
  function extractGenerics(declaration) {
469
469
  var _a, _b;
470
470
  return (_b = (_a = declaration.typeParameters) == null ? void 0 : _a.map((typeParam) => {
@@ -477,7 +477,7 @@ function extractGenerics(declaration) {
477
477
  })) != null ? _b : [];
478
478
  }
479
479
 
480
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/jsdoc_extractor.mjs
480
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/jsdoc_extractor.mjs
481
481
  import ts4 from "typescript";
482
482
  var decoratorExpression = /@(?=(Injectable|Component|Directive|Pipe|NgModule|Input|Output|HostBinding|HostListener|Inject|Optional|Self|Host|SkipSelf))/g;
483
483
  function extractJsDocTags(node) {
@@ -521,14 +521,15 @@ function unescapeAngularDecorators(comment) {
521
521
  return comment.replace(/_NG_AT_/g, "@");
522
522
  }
523
523
 
524
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/type_extractor.mjs
524
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/type_extractor.mjs
525
525
  function extractResolvedTypeString(node, checker) {
526
526
  return checker.typeToString(checker.getTypeAtLocation(node));
527
527
  }
528
528
 
529
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/function_extractor.mjs
529
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/function_extractor.mjs
530
530
  var FunctionExtractor = class {
531
- constructor(declaration, typeChecker) {
531
+ constructor(name, declaration, typeChecker) {
532
+ this.name = name;
532
533
  this.declaration = declaration;
533
534
  this.typeChecker = typeChecker;
534
535
  }
@@ -537,7 +538,8 @@ var FunctionExtractor = class {
537
538
  const returnType = signature ? this.typeChecker.typeToString(this.typeChecker.getReturnTypeOfSignature(signature)) : "unknown";
538
539
  return {
539
540
  params: this.extractAllParams(this.declaration.parameters),
540
- name: this.declaration.name.getText(),
541
+ name: this.name,
542
+ isNewType: ts5.isConstructSignatureDeclaration(this.declaration),
541
543
  returnType,
542
544
  entryType: EntryType.Function,
543
545
  generics: extractGenerics(this.declaration),
@@ -580,7 +582,7 @@ var FunctionExtractor = class {
580
582
  }
581
583
  };
582
584
 
583
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/class_extractor.mjs
585
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/class_extractor.mjs
584
586
  var ClassExtractor = class {
585
587
  constructor(declaration, typeChecker) {
586
588
  this.declaration = declaration;
@@ -591,7 +593,7 @@ var ClassExtractor = class {
591
593
  name: this.declaration.name.text,
592
594
  isAbstract: this.isAbstract(),
593
595
  entryType: ts6.isInterfaceDeclaration(this.declaration) ? EntryType.Interface : EntryType.UndecoratedClass,
594
- members: this.extractAllClassMembers(),
596
+ members: this.extractSignatures().concat(this.extractAllClassMembers()),
595
597
  generics: extractGenerics(this.declaration),
596
598
  description: extractJsDocDescription(this.declaration),
597
599
  jsdocTags: extractJsDocTags(this.declaration),
@@ -620,14 +622,25 @@ var ClassExtractor = class {
620
622
  }
621
623
  return void 0;
622
624
  }
625
+ extractSignatures() {
626
+ return this.computeAllSignatureDeclarations().map((s) => this.extractSignature(s));
627
+ }
623
628
  extractMethod(methodDeclaration) {
624
- const functionExtractor = new FunctionExtractor(methodDeclaration, this.typeChecker);
629
+ const functionExtractor = new FunctionExtractor(methodDeclaration.name.getText(), methodDeclaration, this.typeChecker);
625
630
  return {
626
631
  ...functionExtractor.extract(),
627
632
  memberType: MemberType.Method,
628
633
  memberTags: this.getMemberTags(methodDeclaration)
629
634
  };
630
635
  }
636
+ extractSignature(signature) {
637
+ const functionExtractor = new FunctionExtractor(ts6.isConstructSignatureDeclaration(signature) ? "new" : "", signature, this.typeChecker);
638
+ return {
639
+ ...functionExtractor.extract(),
640
+ memberType: MemberType.Method,
641
+ memberTags: []
642
+ };
643
+ }
631
644
  extractClassProperty(propertyDeclaration) {
632
645
  return {
633
646
  name: propertyDeclaration.name.getText(),
@@ -655,6 +668,21 @@ var ClassExtractor = class {
655
668
  }
656
669
  return tags;
657
670
  }
671
+ computeAllSignatureDeclarations() {
672
+ const type = this.typeChecker.getTypeAtLocation(this.declaration);
673
+ const signatures = [
674
+ ...type.getCallSignatures(),
675
+ ...type.getConstructSignatures()
676
+ ];
677
+ const result = [];
678
+ for (const signature of signatures) {
679
+ const decl = signature.getDeclaration();
680
+ if (this.isDocumentableSignature(decl) && this.isDocumentableMember(decl)) {
681
+ result.push(decl);
682
+ }
683
+ }
684
+ return result;
685
+ }
658
686
  getMemberDeclarations() {
659
687
  var _a;
660
688
  const type = this.typeChecker.getTypeAtLocation(this.declaration);
@@ -708,6 +736,9 @@ var ClassExtractor = class {
708
736
  isMethod(member) {
709
737
  return ts6.isMethodDeclaration(member) || ts6.isMethodSignature(member);
710
738
  }
739
+ isDocumentableSignature(signature) {
740
+ return ts6.isConstructSignatureDeclaration(signature) || ts6.isCallSignatureDeclaration(signature);
741
+ }
711
742
  isAbstract() {
712
743
  var _a;
713
744
  const modifiers = (_a = this.declaration.modifiers) != null ? _a : [];
@@ -812,7 +843,7 @@ function extractInterface(declaration, typeChecker) {
812
843
  return extractor.extract();
813
844
  }
814
845
 
815
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/constant_extractor.mjs
846
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/constant_extractor.mjs
816
847
  function extractConstant(declaration, typeChecker) {
817
848
  const resolvedType = typeChecker.getBaseTypeOfLiteralType(typeChecker.getTypeAtLocation(declaration));
818
849
  const variableStatement = declaration.parent.parent;
@@ -830,7 +861,7 @@ function isSyntheticAngularConstant(declaration) {
830
861
  return declaration.name.getText() === "USED_FOR_NG_TYPE_CHECKING";
831
862
  }
832
863
 
833
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/decorator_extractor.mjs
864
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/decorator_extractor.mjs
834
865
  import ts7 from "typescript";
835
866
  function extractorDecorator(declaration, typeChecker) {
836
867
  const documentedNode = getDecoratorJsDocNode(declaration);
@@ -903,7 +934,7 @@ function getDecoratorJsDocNode(declaration) {
903
934
  return callSignature;
904
935
  }
905
936
 
906
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/enum_extractor.mjs
937
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/enum_extractor.mjs
907
938
  import ts8 from "typescript";
908
939
  function extractEnum(declaration, typeChecker) {
909
940
  return {
@@ -934,7 +965,7 @@ function getEnumMemberValue(memberNode) {
934
965
  return (_a = literal == null ? void 0 : literal.getText()) != null ? _a : "";
935
966
  }
936
967
 
937
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/type_alias_extractor.mjs
968
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/type_alias_extractor.mjs
938
969
  function extractTypeAlias(declaration) {
939
970
  return {
940
971
  name: declaration.name.getText(),
@@ -946,7 +977,7 @@ function extractTypeAlias(declaration) {
946
977
  };
947
978
  }
948
979
 
949
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/extractor.mjs
980
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/extractor.mjs
950
981
  var DocsExtractor = class {
951
982
  constructor(typeChecker, metadataReader) {
952
983
  this.typeChecker = typeChecker;
@@ -973,7 +1004,7 @@ var DocsExtractor = class {
973
1004
  return extractInterface(node, this.typeChecker);
974
1005
  }
975
1006
  if (ts9.isFunctionDeclaration(node)) {
976
- const functionExtractor = new FunctionExtractor(node, this.typeChecker);
1007
+ const functionExtractor = new FunctionExtractor(node.name.getText(), node, this.typeChecker);
977
1008
  return functionExtractor.extract();
978
1009
  }
979
1010
  if (ts9.isVariableDeclaration(node) && !isSyntheticAngularConstant(node)) {
@@ -996,7 +1027,7 @@ var DocsExtractor = class {
996
1027
  for (let i = 0; i < declarationCount; i++) {
997
1028
  const [exportName, declaration] = exportedDeclarations[i];
998
1029
  if (ts9.isFunctionDeclaration(declaration)) {
999
- const extractor = new FunctionExtractor(declaration, this.typeChecker);
1030
+ const extractor = new FunctionExtractor(exportName, declaration, this.typeChecker);
1000
1031
  const overloads = extractor.getOverloads().map((overload) => [exportName, overload]);
1001
1032
  exportedDeclarations.push(...overloads);
1002
1033
  }
@@ -1008,7 +1039,7 @@ function isIgnoredInterface(node) {
1008
1039
  return node.name.getText().endsWith("Decorator") || isDecoratorOptionsInterface(node);
1009
1040
  }
1010
1041
 
1011
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
1042
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
1012
1043
  import ts10 from "typescript";
1013
1044
  var FlatIndexGenerator = class {
1014
1045
  constructor(entryPoint, relativeFlatIndexPath, moduleName) {
@@ -1033,7 +1064,7 @@ export * from '${relativeEntryPoint}';
1033
1064
  }
1034
1065
  };
1035
1066
 
1036
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/logic.mjs
1067
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/logic.mjs
1037
1068
  function findFlatIndexEntryPoint(rootFiles) {
1038
1069
  const tsFiles = rootFiles.filter((file) => isNonDeclarationTsPath(file));
1039
1070
  let resolvedEntryPoint = null;
@@ -1049,7 +1080,7 @@ function findFlatIndexEntryPoint(rootFiles) {
1049
1080
  return resolvedEntryPoint;
1050
1081
  }
1051
1082
 
1052
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
1083
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
1053
1084
  import ts11 from "typescript";
1054
1085
  function checkForPrivateExports(entryPoint, checker, refGraph) {
1055
1086
  const diagnostics = [];
@@ -1129,7 +1160,7 @@ function getDescriptorOfDeclaration(decl) {
1129
1160
  }
1130
1161
  }
1131
1162
 
1132
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/reference_graph.mjs
1163
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/reference_graph.mjs
1133
1164
  var ReferenceGraph = class {
1134
1165
  constructor() {
1135
1166
  this.references = /* @__PURE__ */ new Map();
@@ -1183,7 +1214,7 @@ var ReferenceGraph = class {
1183
1214
  }
1184
1215
  };
1185
1216
 
1186
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/api.mjs
1217
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/api.mjs
1187
1218
  var NgOriginalFile = Symbol("NgOriginalFile");
1188
1219
  var UpdateMode;
1189
1220
  (function(UpdateMode2) {
@@ -1191,13 +1222,13 @@ var UpdateMode;
1191
1222
  UpdateMode2[UpdateMode2["Incremental"] = 1] = "Incremental";
1192
1223
  })(UpdateMode || (UpdateMode = {}));
1193
1224
 
1194
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
1225
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
1195
1226
  import ts13 from "typescript";
1196
1227
 
1197
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
1228
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
1198
1229
  import ts12 from "typescript";
1199
1230
 
1200
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/expando.mjs
1231
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/expando.mjs
1201
1232
  var NgExtension = Symbol("NgExtension");
1202
1233
  function isExtended(sf) {
1203
1234
  return sf[NgExtension] !== void 0;
@@ -1257,13 +1288,13 @@ function retagTsFile(sf) {
1257
1288
  }
1258
1289
  }
1259
1290
 
1260
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/util.mjs
1291
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/util.mjs
1261
1292
  var TS_EXTENSIONS = /\.tsx?$/i;
1262
1293
  function makeShimFileName(fileName, suffix) {
1263
1294
  return absoluteFrom(fileName.replace(TS_EXTENSIONS, suffix));
1264
1295
  }
1265
1296
 
1266
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
1297
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
1267
1298
  var ShimAdapter = class {
1268
1299
  constructor(delegate, tsRootFiles, topLevelGenerators, perFileGenerators, oldProgram) {
1269
1300
  this.delegate = delegate;
@@ -1358,7 +1389,7 @@ var ShimAdapter = class {
1358
1389
  }
1359
1390
  };
1360
1391
 
1361
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
1392
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
1362
1393
  var ShimReferenceTagger = class {
1363
1394
  constructor(shimExtensions) {
1364
1395
  this.tagged = /* @__PURE__ */ new Set();
@@ -1392,7 +1423,7 @@ var ShimReferenceTagger = class {
1392
1423
  }
1393
1424
  };
1394
1425
 
1395
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
1426
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
1396
1427
  var DelegatingCompilerHost = class {
1397
1428
  get jsDocParsingMode() {
1398
1429
  return this.delegate.jsDocParsingMode;
@@ -1511,7 +1542,7 @@ var TsCreateProgramDriver = class {
1511
1542
  }
1512
1543
  };
1513
1544
 
1514
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.mjs
1545
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.mjs
1515
1546
  var FileDependencyGraph = class {
1516
1547
  constructor() {
1517
1548
  this.nodes = /* @__PURE__ */ new Map();
@@ -1578,7 +1609,7 @@ function isLogicallyChanged(sf, node, changedTsPaths, deletedTsPaths, changedRes
1578
1609
  return false;
1579
1610
  }
1580
1611
 
1581
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
1612
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
1582
1613
  var IncrementalStateKind;
1583
1614
  (function(IncrementalStateKind2) {
1584
1615
  IncrementalStateKind2[IncrementalStateKind2["Fresh"] = 0] = "Fresh";
@@ -1586,7 +1617,7 @@ var IncrementalStateKind;
1586
1617
  IncrementalStateKind2[IncrementalStateKind2["Analyzed"] = 2] = "Analyzed";
1587
1618
  })(IncrementalStateKind || (IncrementalStateKind = {}));
1588
1619
 
1589
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
1620
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
1590
1621
  var PhaseKind;
1591
1622
  (function(PhaseKind2) {
1592
1623
  PhaseKind2[PhaseKind2["Analysis"] = 0] = "Analysis";
@@ -1787,7 +1818,7 @@ function toOriginalSourceFile(sf) {
1787
1818
  }
1788
1819
  }
1789
1820
 
1790
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
1821
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
1791
1822
  var TrackedIncrementalBuildStrategy = class {
1792
1823
  constructor() {
1793
1824
  this.state = null;
@@ -1823,7 +1854,7 @@ var PatchedProgramIncrementalBuildStrategy = class {
1823
1854
  };
1824
1855
  var SYM_INCREMENTAL_STATE = Symbol("NgIncrementalState");
1825
1856
 
1826
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
1857
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
1827
1858
  var IdentifierKind;
1828
1859
  (function(IdentifierKind2) {
1829
1860
  IdentifierKind2[IdentifierKind2["Property"] = 0] = "Property";
@@ -1841,7 +1872,7 @@ var AbsoluteSourceSpan = class {
1841
1872
  }
1842
1873
  };
1843
1874
 
1844
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/context.mjs
1875
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/context.mjs
1845
1876
  var IndexingContext = class {
1846
1877
  constructor() {
1847
1878
  this.components = /* @__PURE__ */ new Set();
@@ -1851,10 +1882,10 @@ var IndexingContext = class {
1851
1882
  }
1852
1883
  };
1853
1884
 
1854
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
1885
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
1855
1886
  import { ParseSourceFile } from "@angular/compiler";
1856
1887
 
1857
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
1888
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
1858
1889
  import { ASTWithSource, ImplicitReceiver, PropertyRead, PropertyWrite, RecursiveAstVisitor, TmplAstBoundDeferredTrigger, TmplAstElement, TmplAstRecursiveVisitor, TmplAstReference, TmplAstTemplate } from "@angular/compiler";
1859
1890
  var ExpressionVisitor = class extends RecursiveAstVisitor {
1860
1891
  constructor(expressionStr, absoluteOffset, boundTemplate, targetToIdentifier) {
@@ -2136,7 +2167,7 @@ function getTemplateIdentifiers(boundTemplate) {
2136
2167
  return { identifiers: visitor.identifiers, errors: visitor.errors };
2137
2168
  }
2138
2169
 
2139
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
2170
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
2140
2171
  function generateAnalysis(context) {
2141
2172
  const analysis = /* @__PURE__ */ new Map();
2142
2173
  context.components.forEach(({ declaration, selector, boundTemplate, templateMeta }) => {
@@ -2172,7 +2203,7 @@ function generateAnalysis(context) {
2172
2203
  return analysis;
2173
2204
  }
2174
2205
 
2175
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/ng_module_index.mjs
2206
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/ng_module_index.mjs
2176
2207
  var NgModuleIndexImpl = class {
2177
2208
  constructor(metaReader, localReader) {
2178
2209
  this.metaReader = metaReader;
@@ -2261,7 +2292,7 @@ var NgModuleIndexImpl = class {
2261
2292
  }
2262
2293
  };
2263
2294
 
2264
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
2295
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
2265
2296
  import ts14 from "typescript";
2266
2297
  var CSS_PREPROCESSOR_EXT = /(\.scss|\.sass|\.less|\.styl)$/;
2267
2298
  var RESOURCE_MARKER = ".$ngresource$";
@@ -2407,7 +2438,7 @@ function createLookupResolutionHost(adapter) {
2407
2438
  };
2408
2439
  }
2409
2440
 
2410
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/standalone.mjs
2441
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/standalone.mjs
2411
2442
  var StandaloneComponentScopeReader = class {
2412
2443
  constructor(metaReader, localModuleReader, dtsModuleReader) {
2413
2444
  this.metaReader = metaReader;
@@ -2503,10 +2534,10 @@ var StandaloneComponentScopeReader = class {
2503
2534
  }
2504
2535
  };
2505
2536
 
2506
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
2537
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
2507
2538
  import { CssSelector as CssSelector2, DomElementSchemaRegistry as DomElementSchemaRegistry2, ExternalExpr as ExternalExpr2, WrappedNodeExpr as WrappedNodeExpr2 } from "@angular/compiler";
2508
2539
 
2509
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
2540
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
2510
2541
  import ts15 from "typescript";
2511
2542
  function makeTemplateDiagnostic(templateId, mapping, span, category, code, messageText, relatedMessages) {
2512
2543
  var _a;
@@ -2613,7 +2644,7 @@ function parseTemplateAsSourceFile(fileName, template) {
2613
2644
  return ts15.createSourceFile(fileName, template, ts15.ScriptTarget.Latest, false, ts15.ScriptKind.JSX);
2614
2645
  }
2615
2646
 
2616
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
2647
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
2617
2648
  var TEMPLATE_ID = Symbol("ngTemplateId");
2618
2649
  var NEXT_TEMPLATE_ID = Symbol("ngNextTemplateId");
2619
2650
  function getTemplateId(clazz) {
@@ -2630,11 +2661,11 @@ function allocateTemplateId(sf) {
2630
2661
  return `tcb${sf[NEXT_TEMPLATE_ID]++}`;
2631
2662
  }
2632
2663
 
2633
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
2664
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
2634
2665
  import { EmptyExpr, ImplicitReceiver as ImplicitReceiver2, PropertyRead as PropertyRead2, PropertyWrite as PropertyWrite2, SafePropertyRead, TmplAstReference as TmplAstReference2, TmplAstTextAttribute } from "@angular/compiler";
2635
2666
  import ts17 from "typescript";
2636
2667
 
2637
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
2668
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
2638
2669
  import { AbsoluteSourceSpan as AbsoluteSourceSpan2 } from "@angular/compiler";
2639
2670
  import ts16 from "typescript";
2640
2671
  var parseSpanComment = /^(\d+),(\d+)$/;
@@ -2661,6 +2692,7 @@ var ExpressionIdentifier;
2661
2692
  ExpressionIdentifier2["DIRECTIVE"] = "DIR";
2662
2693
  ExpressionIdentifier2["COMPONENT_COMPLETION"] = "COMPCOMP";
2663
2694
  ExpressionIdentifier2["EVENT_PARAMETER"] = "EP";
2695
+ ExpressionIdentifier2["VARIABLE_AS_EXPRESSION"] = "VAE";
2664
2696
  })(ExpressionIdentifier || (ExpressionIdentifier = {}));
2665
2697
  function addExpressionIdentifier(node, identifier) {
2666
2698
  ts16.addSyntheticTrailingComment(
@@ -2764,7 +2796,7 @@ function hasExpressionIdentifier(sourceFile, node, identifier) {
2764
2796
  }) || false;
2765
2797
  }
2766
2798
 
2767
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
2799
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
2768
2800
  var CompletionEngine = class {
2769
2801
  constructor(tcb, data, tcbPath, tcbIsShim) {
2770
2802
  this.tcb = tcb;
@@ -2921,10 +2953,10 @@ var CompletionEngine = class {
2921
2953
  }
2922
2954
  };
2923
2955
 
2924
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
2956
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
2925
2957
  import ts30 from "typescript";
2926
2958
 
2927
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
2959
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
2928
2960
  import { DomElementSchemaRegistry } from "@angular/compiler";
2929
2961
  import ts18 from "typescript";
2930
2962
  var REGISTRY = new DomElementSchemaRegistry();
@@ -2977,10 +3009,10 @@ var RegistryDomSchemaChecker = class {
2977
3009
  }
2978
3010
  };
2979
3011
 
2980
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
3012
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
2981
3013
  import ts23 from "typescript";
2982
3014
 
2983
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/reference_emit_environment.mjs
3015
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/reference_emit_environment.mjs
2984
3016
  import { ExpressionType, ExternalExpr, TypeModifier } from "@angular/compiler";
2985
3017
  var ReferenceEmitEnvironment = class {
2986
3018
  constructor(importManager, refEmitter, reflector, contextFile) {
@@ -3011,7 +3043,7 @@ var ReferenceEmitEnvironment = class {
3011
3043
  }
3012
3044
  };
3013
3045
 
3014
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
3046
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
3015
3047
  import ts19 from "typescript";
3016
3048
  var SAFE_TO_CAST_WITHOUT_PARENS = /* @__PURE__ */ new Set([
3017
3049
  ts19.SyntaxKind.ParenthesizedExpression,
@@ -3047,14 +3079,12 @@ function tsCreateElement(tagName) {
3047
3079
  );
3048
3080
  }
3049
3081
  function tsDeclareVariable(id, type) {
3050
- let initializer = ts19.factory.createNonNullExpression(ts19.factory.createNull());
3051
- if (type.kind === ts19.SyntaxKind.BooleanKeyword) {
3052
- initializer = ts19.factory.createAsExpression(initializer, ts19.factory.createKeywordTypeNode(ts19.SyntaxKind.BooleanKeyword));
3053
- }
3082
+ addExpressionIdentifier(type, ExpressionIdentifier.VARIABLE_AS_EXPRESSION);
3083
+ const initializer = ts19.factory.createAsExpression(ts19.factory.createNonNullExpression(ts19.factory.createNull()), type);
3054
3084
  const decl = ts19.factory.createVariableDeclaration(
3055
3085
  id,
3056
3086
  void 0,
3057
- type,
3087
+ void 0,
3058
3088
  initializer
3059
3089
  );
3060
3090
  return ts19.factory.createVariableStatement(
@@ -3096,15 +3126,15 @@ function tsNumericExpression(value) {
3096
3126
  return ts19.factory.createNumericLiteral(value);
3097
3127
  }
3098
3128
 
3099
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
3129
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
3100
3130
  import { ExpressionType as ExpressionType2, R3Identifiers as R3Identifiers2, WrappedNodeExpr } from "@angular/compiler";
3101
3131
  import ts22 from "typescript";
3102
3132
 
3103
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
3133
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
3104
3134
  import { R3Identifiers } from "@angular/compiler";
3105
3135
  import ts21 from "typescript";
3106
3136
 
3107
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
3137
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
3108
3138
  import ts20 from "typescript";
3109
3139
  var TypeParameterEmitter = class {
3110
3140
  constructor(typeParameters, reflector) {
@@ -3182,7 +3212,7 @@ var TypeParameterEmitter = class {
3182
3212
  }
3183
3213
  };
3184
3214
 
3185
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
3215
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
3186
3216
  var TCB_FILE_IMPORT_GRAPH_PREPARE_MODULES = [
3187
3217
  R3Identifiers.InputSignalBrandWriteType.moduleName
3188
3218
  ];
@@ -3270,7 +3300,7 @@ function checkIfGenericTypeBoundsCanBeEmitted(node, reflector, env) {
3270
3300
  return emitter.canEmit((ref) => env.canReferenceType(ref));
3271
3301
  }
3272
3302
 
3273
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
3303
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
3274
3304
  function generateTypeCtorDeclarationFn(env, meta, nodeTypeRef, typeParams) {
3275
3305
  const rawTypeArgs = typeParams !== void 0 ? generateGenericArgs(typeParams) : void 0;
3276
3306
  const rawType = ts22.factory.createTypeReferenceNode(nodeTypeRef, rawTypeArgs);
@@ -3393,7 +3423,7 @@ function typeParametersWithDefaultTypes(params) {
3393
3423
  });
3394
3424
  }
3395
3425
 
3396
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
3426
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
3397
3427
  var Environment = class extends ReferenceEmitEnvironment {
3398
3428
  constructor(config, importManager, refEmitter, reflector, contextFile) {
3399
3429
  super(importManager, refEmitter, reflector, contextFile);
@@ -3468,7 +3498,7 @@ var Environment = class extends ReferenceEmitEnvironment {
3468
3498
  }
3469
3499
  };
3470
3500
 
3471
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
3501
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
3472
3502
  import { AbsoluteSourceSpan as AbsoluteSourceSpan3, TmplAstElement as TmplAstElement2, TmplAstForLoopBlock, TmplAstForLoopBlockEmpty } from "@angular/compiler";
3473
3503
  import ts24 from "typescript";
3474
3504
  var OutOfBandDiagnosticRecorderImpl = class {
@@ -3670,7 +3700,7 @@ function makeInlineDiagnostic(templateId, code, node, messageText, relatedInform
3670
3700
  };
3671
3701
  }
3672
3702
 
3673
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
3703
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
3674
3704
  import ts25 from "typescript";
3675
3705
  var TypeCheckShimGenerator = class {
3676
3706
  constructor() {
@@ -3688,11 +3718,11 @@ var TypeCheckShimGenerator = class {
3688
3718
  }
3689
3719
  };
3690
3720
 
3691
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
3721
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
3692
3722
  import { BindingPipe, Call as Call2, createCssSelectorFromNode, CssSelector, DYNAMIC_TYPE, ImplicitReceiver as ImplicitReceiver4, PropertyRead as PropertyRead4, PropertyWrite as PropertyWrite3, R3Identifiers as R3Identifiers3, SafeCall, SafePropertyRead as SafePropertyRead3, SelectorMatcher, ThisReceiver, TmplAstBoundAttribute, TmplAstBoundText, TmplAstDeferredBlock, TmplAstElement as TmplAstElement3, TmplAstForLoopBlock as TmplAstForLoopBlock2, TmplAstIcu, TmplAstIfBlock, TmplAstIfBlockBranch, TmplAstReference as TmplAstReference3, TmplAstSwitchBlock, TmplAstTemplate as TmplAstTemplate2, TmplAstText, TmplAstTextAttribute as TmplAstTextAttribute2, TmplAstVariable as TmplAstVariable2, TransplantedType } from "@angular/compiler";
3693
3723
  import ts28 from "typescript";
3694
3724
 
3695
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
3725
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
3696
3726
  import { AbsoluteSourceSpan as AbsoluteSourceSpan4 } from "@angular/compiler";
3697
3727
  import ts26 from "typescript";
3698
3728
  function wrapForDiagnostics(expr) {
@@ -3738,7 +3768,7 @@ function translateDiagnostic(diagnostic, resolver) {
3738
3768
  return makeTemplateDiagnostic(sourceLocation.id, templateSourceMapping, span, diagnostic.category, diagnostic.code, diagnostic.messageText);
3739
3769
  }
3740
3770
 
3741
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
3771
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
3742
3772
  import { ASTWithSource as ASTWithSource2, Call, EmptyExpr as EmptyExpr2, PropertyRead as PropertyRead3, SafeKeyedRead, SafePropertyRead as SafePropertyRead2 } from "@angular/compiler";
3743
3773
  import ts27 from "typescript";
3744
3774
  var NULL_AS_ANY = ts27.factory.createAsExpression(ts27.factory.createNull(), ts27.factory.createKeywordTypeNode(ts27.SyntaxKind.AnyKeyword));
@@ -4071,7 +4101,7 @@ var VeSafeLhsInferenceBugDetector = _VeSafeLhsInferenceBugDetector;
4071
4101
  _VeSafeLhsInferenceBugDetector.SINGLETON = new _VeSafeLhsInferenceBugDetector();
4072
4102
  })();
4073
4103
 
4074
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_semantics.mjs
4104
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_semantics.mjs
4075
4105
  import { ImplicitReceiver as ImplicitReceiver3, RecursiveAstVisitor as RecursiveAstVisitor2, TmplAstVariable } from "@angular/compiler";
4076
4106
  var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
4077
4107
  constructor(templateId, boundTarget, oob) {
@@ -4095,7 +4125,7 @@ var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
4095
4125
  }
4096
4126
  };
4097
4127
 
4098
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
4128
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
4099
4129
  var TcbGenericContextBehavior;
4100
4130
  (function(TcbGenericContextBehavior2) {
4101
4131
  TcbGenericContextBehavior2[TcbGenericContextBehavior2["UseEmitter"] = 0] = "UseEmitter";
@@ -4320,8 +4350,8 @@ var TcbDirectiveTypeOpBase = class extends TcbOp {
4320
4350
  type = ts28.factory.createTypeReferenceNode(rawType.typeName, typeArguments);
4321
4351
  }
4322
4352
  const id = this.tcb.allocateId();
4323
- addExpressionIdentifier(type, ExpressionIdentifier.DIRECTIVE);
4324
- addParseSpanInfo(type, this.node.startSourceSpan || this.node.sourceSpan);
4353
+ addExpressionIdentifier(id, ExpressionIdentifier.DIRECTIVE);
4354
+ addParseSpanInfo(id, this.node.startSourceSpan || this.node.sourceSpan);
4325
4355
  this.scope.addStatement(tsDeclareVariable(id, type));
4326
4356
  return id;
4327
4357
  }
@@ -4558,14 +4588,13 @@ var TcbDomSchemaCheckerOp = class extends TcbOp {
4558
4588
  this.tcb.domSchemaChecker.checkElement(this.tcb.id, this.element, this.tcb.schemas, this.tcb.hostIsStandalone);
4559
4589
  }
4560
4590
  for (const binding of this.element.inputs) {
4561
- if (binding.type === 0 && this.claimedInputs.has(binding.name)) {
4591
+ const isPropertyBinding = binding.type === 0 || binding.type === 5;
4592
+ if (isPropertyBinding && this.claimedInputs.has(binding.name)) {
4562
4593
  continue;
4563
4594
  }
4564
- if (binding.type === 0) {
4565
- if (binding.name !== "style" && binding.name !== "class") {
4566
- const propertyName = (_a = ATTR_TO_PROP.get(binding.name)) != null ? _a : binding.name;
4567
- this.tcb.domSchemaChecker.checkProperty(this.tcb.id, this.element, propertyName, binding.sourceSpan, this.tcb.schemas, this.tcb.hostIsStandalone);
4568
- }
4595
+ if (isPropertyBinding && binding.name !== "style" && binding.name !== "class") {
4596
+ const propertyName = (_a = ATTR_TO_PROP.get(binding.name)) != null ? _a : binding.name;
4597
+ this.tcb.domSchemaChecker.checkProperty(this.tcb.id, this.element, propertyName, binding.sourceSpan, this.tcb.schemas, this.tcb.hostIsStandalone);
4569
4598
  }
4570
4599
  }
4571
4600
  return null;
@@ -4667,11 +4696,12 @@ var TcbUnclaimedInputsOp = class extends TcbOp {
4667
4696
  var _a;
4668
4697
  let elId = null;
4669
4698
  for (const binding of this.element.inputs) {
4670
- if (binding.type === 0 && this.claimedInputs.has(binding.name)) {
4699
+ const isPropertyBinding = binding.type === 0 || binding.type === 5;
4700
+ if (isPropertyBinding && this.claimedInputs.has(binding.name)) {
4671
4701
  continue;
4672
4702
  }
4673
4703
  const expr = widenBinding(tcbExpression(binding.value, this.tcb, this.scope), this.tcb);
4674
- if (this.tcb.env.config.checkTypeOfDomBindings && binding.type === 0) {
4704
+ if (this.tcb.env.config.checkTypeOfDomBindings && isPropertyBinding) {
4675
4705
  if (binding.name !== "style" && binding.name !== "class") {
4676
4706
  if (elId === null) {
4677
4707
  elId = this.scope.resolve(this.element);
@@ -4706,7 +4736,7 @@ var TcbDirectiveOutputsOp = class extends TcbOp {
4706
4736
  let dirId = null;
4707
4737
  const outputs = this.dir.outputs;
4708
4738
  for (const output of this.node.outputs) {
4709
- if (output.type !== 0 || !outputs.hasBindingPropertyName(output.name)) {
4739
+ if (output.type === 1 || !outputs.hasBindingPropertyName(output.name)) {
4710
4740
  continue;
4711
4741
  }
4712
4742
  if (this.tcb.env.config.checkTypeOfOutputEvents && output.name.endsWith("Change")) {
@@ -4814,7 +4844,9 @@ var TcbBlockVariableOp = class extends TcbOp {
4814
4844
  execute() {
4815
4845
  const id = this.tcb.allocateId();
4816
4846
  addParseSpanInfo(id, this.variable.keySpan);
4817
- this.scope.addStatement(tsCreateVariable(id, this.initializer));
4847
+ const variable = tsCreateVariable(id, wrapForTypeChecker(this.initializer));
4848
+ addParseSpanInfo(variable.declarationList.declarations[0], this.variable.sourceSpan);
4849
+ this.scope.addStatement(variable);
4818
4850
  return id;
4819
4851
  }
4820
4852
  };
@@ -4830,7 +4862,9 @@ var TcbBlockImplicitVariableOp = class extends TcbOp {
4830
4862
  execute() {
4831
4863
  const id = this.tcb.allocateId();
4832
4864
  addParseSpanInfo(id, this.variable.keySpan);
4833
- this.scope.addStatement(tsDeclareVariable(id, this.type));
4865
+ const variable = tsDeclareVariable(id, this.type);
4866
+ addParseSpanInfo(variable.declarationList.declarations[0], this.variable.sourceSpan);
4867
+ this.scope.addStatement(variable);
4834
4868
  return id;
4835
4869
  }
4836
4870
  };
@@ -4966,6 +5000,7 @@ var TcbForOfOp = class extends TcbOp {
4966
5000
  throw new Error(`Could not resolve for loop variable ${this.block.item.name} to an identifier`);
4967
5001
  }
4968
5002
  const initializer = ts28.factory.createVariableDeclarationList([ts28.factory.createVariableDeclaration(initializerId)], ts28.NodeFlags.Const);
5003
+ addParseSpanInfo(initializer, this.block.item.keySpan);
4969
5004
  const expression = ts28.factory.createNonNullExpression(tcbExpression(this.block.expression, this.tcb, loopScope));
4970
5005
  const trackTranslator = new TcbForLoopTrackTranslator(this.tcb, loopScope, this.block);
4971
5006
  const trackExpression = trackTranslator.translate(this.block.trackBy);
@@ -5468,7 +5503,7 @@ function tcbCallTypeCtor(dir, tcb, inputs) {
5468
5503
  function getBoundAttributes(directive, node) {
5469
5504
  const boundInputs = [];
5470
5505
  const processAttribute = (attr) => {
5471
- if (attr instanceof TmplAstBoundAttribute && attr.type !== 0) {
5506
+ if (attr instanceof TmplAstBoundAttribute && attr.type !== 0 && attr.type !== 5) {
5472
5507
  return;
5473
5508
  }
5474
5509
  const inputs = directive.inputs.getByBindingPropertyName(attr.name);
@@ -5596,7 +5631,7 @@ var TcbForLoopTrackTranslator = class extends TcbExpressionTranslator {
5596
5631
  }
5597
5632
  };
5598
5633
 
5599
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
5634
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
5600
5635
  import ts29 from "typescript";
5601
5636
  var TypeCheckFile = class extends Environment {
5602
5637
  constructor(fileName, config, refEmitter, reflector, compilerHost) {
@@ -5633,7 +5668,7 @@ var TypeCheckFile = class extends Environment {
5633
5668
  }
5634
5669
  };
5635
5670
 
5636
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
5671
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
5637
5672
  var InliningMode;
5638
5673
  (function(InliningMode2) {
5639
5674
  InliningMode2[InliningMode2["InlineOps"] = 0] = "InlineOps";
@@ -5873,10 +5908,10 @@ function splitStringAtPoints(str, points) {
5873
5908
  return splits;
5874
5909
  }
5875
5910
 
5876
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
5911
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
5877
5912
  import { ParseLocation, ParseSourceSpan } from "@angular/compiler";
5878
5913
 
5879
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/line_mappings.mjs
5914
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/line_mappings.mjs
5880
5915
  var LF_CHAR = 10;
5881
5916
  var CR_CHAR = 13;
5882
5917
  var LINE_SEP_CHAR = 8232;
@@ -5917,7 +5952,7 @@ function findClosestLineStartPosition(linesMap, position, low = 0, high = linesM
5917
5952
  return low - 1;
5918
5953
  }
5919
5954
 
5920
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
5955
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
5921
5956
  var TemplateSource = class {
5922
5957
  constructor(mapping, file) {
5923
5958
  this.mapping = mapping;
@@ -5968,8 +6003,8 @@ var TemplateSourceManager = class {
5968
6003
  }
5969
6004
  };
5970
6005
 
5971
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
5972
- import { AST, ASTWithSource as ASTWithSource3, BindingPipe as BindingPipe2, PropertyRead as PropertyRead5, PropertyWrite as PropertyWrite4, SafePropertyRead as SafePropertyRead4, TmplAstBoundAttribute as TmplAstBoundAttribute2, TmplAstBoundEvent, TmplAstElement as TmplAstElement4, TmplAstReference as TmplAstReference4, TmplAstTemplate as TmplAstTemplate3, TmplAstTextAttribute as TmplAstTextAttribute3, TmplAstVariable as TmplAstVariable3 } from "@angular/compiler";
6006
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
6007
+ import { AST, ASTWithSource as ASTWithSource3, BindingPipe as BindingPipe2, PropertyRead as PropertyRead5, PropertyWrite as PropertyWrite4, R3Identifiers as R3Identifiers4, SafePropertyRead as SafePropertyRead4, TmplAstBoundAttribute as TmplAstBoundAttribute2, TmplAstBoundEvent, TmplAstElement as TmplAstElement4, TmplAstReference as TmplAstReference4, TmplAstTemplate as TmplAstTemplate3, TmplAstTextAttribute as TmplAstTextAttribute3, TmplAstVariable as TmplAstVariable3 } from "@angular/compiler";
5973
6008
  import ts31 from "typescript";
5974
6009
  var SymbolBuilder = class {
5975
6010
  constructor(tcbPath, tcbIsShim, typeCheckBlock, templateData, componentScopeReader, getTypeChecker) {
@@ -6205,6 +6240,7 @@ var SymbolBuilder = class {
6205
6240
  return { kind: SymbolKind.Output, bindings };
6206
6241
  }
6207
6242
  getSymbolOfInputBinding(binding) {
6243
+ var _a;
6208
6244
  const consumer = this.templateData.boundTarget.getConsumerOfBinding(binding);
6209
6245
  if (consumer === null) {
6210
6246
  return null;
@@ -6219,11 +6255,23 @@ var SymbolBuilder = class {
6219
6255
  if (!isAccessExpression(node.left)) {
6220
6256
  continue;
6221
6257
  }
6222
- const symbolInfo = this.getSymbolOfTsNode(node.left);
6258
+ const signalInputAssignment = unwrapSignalInputWriteTAccessor(node.left);
6259
+ let symbolInfo = null;
6260
+ if (signalInputAssignment !== null) {
6261
+ const fieldSymbol = this.getSymbolOfTsNode(signalInputAssignment.fieldExpr);
6262
+ const typeSymbol = this.getSymbolOfTsNode(signalInputAssignment.typeExpr);
6263
+ symbolInfo = fieldSymbol === null || typeSymbol === null ? null : {
6264
+ tcbLocation: fieldSymbol.tcbLocation,
6265
+ tsSymbol: fieldSymbol.tsSymbol,
6266
+ tsType: typeSymbol.tsType
6267
+ };
6268
+ } else {
6269
+ symbolInfo = this.getSymbolOfTsNode(node.left);
6270
+ }
6223
6271
  if (symbolInfo === null || symbolInfo.tsSymbol === null) {
6224
6272
  continue;
6225
6273
  }
6226
- const target = this.getDirectiveSymbolForAccessExpression(node.left, consumer);
6274
+ const target = this.getDirectiveSymbolForAccessExpression((_a = signalInputAssignment == null ? void 0 : signalInputAssignment.fieldExpr) != null ? _a : node.left, consumer);
6227
6275
  if (target === null) {
6228
6276
  continue;
6229
6277
  }
@@ -6239,9 +6287,9 @@ var SymbolBuilder = class {
6239
6287
  }
6240
6288
  return { kind: SymbolKind.Input, bindings };
6241
6289
  }
6242
- getDirectiveSymbolForAccessExpression(node, { isComponent, selector, isStructural }) {
6290
+ getDirectiveSymbolForAccessExpression(fieldAccessExpr, { isComponent, selector, isStructural }) {
6243
6291
  var _a;
6244
- const tsSymbol = this.getTypeChecker().getSymbolAtLocation(node.expression);
6292
+ const tsSymbol = this.getTypeChecker().getSymbolAtLocation(fieldAccessExpr.expression);
6245
6293
  if ((tsSymbol == null ? void 0 : tsSymbol.declarations) === void 0 || tsSymbol.declarations.length === 0 || selector === null) {
6246
6294
  return null;
6247
6295
  }
@@ -6275,17 +6323,22 @@ var SymbolBuilder = class {
6275
6323
  }
6276
6324
  getSymbolOfVariable(variable) {
6277
6325
  const node = findFirstMatchingNode(this.typeCheckBlock, { withSpan: variable.sourceSpan, filter: ts31.isVariableDeclaration });
6278
- if (node === null || node.initializer === void 0) {
6326
+ if (node === null) {
6279
6327
  return null;
6280
6328
  }
6281
- const expressionSymbol = this.getSymbolOfTsNode(node.initializer);
6282
- if (expressionSymbol === null) {
6329
+ let nodeValueSymbol = null;
6330
+ if (ts31.isForOfStatement(node.parent.parent)) {
6331
+ nodeValueSymbol = this.getSymbolOfTsNode(node);
6332
+ } else if (node.initializer !== void 0) {
6333
+ nodeValueSymbol = this.getSymbolOfTsNode(node.initializer);
6334
+ }
6335
+ if (nodeValueSymbol === null) {
6283
6336
  return null;
6284
6337
  }
6285
6338
  return {
6286
- tsType: expressionSymbol.tsType,
6287
- tsSymbol: expressionSymbol.tsSymbol,
6288
- initializerLocation: expressionSymbol.tcbLocation,
6339
+ tsType: nodeValueSymbol.tsType,
6340
+ tsSymbol: nodeValueSymbol.tsSymbol,
6341
+ initializerLocation: nodeValueSymbol.tcbLocation,
6289
6342
  kind: SymbolKind.Variable,
6290
6343
  declaration: variable,
6291
6344
  localVarLocation: {
@@ -6414,8 +6467,6 @@ var SymbolBuilder = class {
6414
6467
  let tsSymbol;
6415
6468
  if (ts31.isPropertyAccessExpression(node)) {
6416
6469
  tsSymbol = this.getTypeChecker().getSymbolAtLocation(node.name);
6417
- } else if (ts31.isElementAccessExpression(node)) {
6418
- tsSymbol = this.getTypeChecker().getSymbolAtLocation(node.argumentExpression);
6419
6470
  } else {
6420
6471
  tsSymbol = this.getTypeChecker().getSymbolAtLocation(node);
6421
6472
  }
@@ -6451,8 +6502,23 @@ function anyNodeFilter(n) {
6451
6502
  function sourceSpanEqual(a, b) {
6452
6503
  return a.start.offset === b.start.offset && a.end.offset === b.end.offset;
6453
6504
  }
6505
+ function unwrapSignalInputWriteTAccessor(expr) {
6506
+ if (!ts31.isElementAccessExpression(expr) || !ts31.isPropertyAccessExpression(expr.argumentExpression)) {
6507
+ return null;
6508
+ }
6509
+ if (!ts31.isIdentifier(expr.argumentExpression.name) || expr.argumentExpression.name.text !== R3Identifiers4.InputSignalBrandWriteType.name) {
6510
+ return null;
6511
+ }
6512
+ if (!ts31.isPropertyAccessExpression(expr.expression) && !ts31.isElementAccessExpression(expr.expression)) {
6513
+ throw new Error("Unexpected expression for signal input write type.");
6514
+ }
6515
+ return {
6516
+ fieldExpr: expr.expression,
6517
+ typeExpr: expr
6518
+ };
6519
+ }
6454
6520
 
6455
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
6521
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
6456
6522
  var REGISTRY2 = new DomElementSchemaRegistry2();
6457
6523
  var TemplateTypeCheckerImpl = class {
6458
6524
  constructor(originalProgram, programDriver, typeCheckAdapter, config, refEmitter, reflector, compilerHost, priorBuild, metaReader, localMetaReader, ngModuleIndex, componentScopeReader, typeCheckScopeRegistry, perf) {
@@ -7149,10 +7215,10 @@ var SingleShimTypeCheckingHost = class extends SingleFileTypeCheckingHost {
7149
7215
  }
7150
7216
  };
7151
7217
 
7152
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.mjs
7218
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.mjs
7153
7219
  import { Interpolation, PropertyRead as PropertyRead6 } from "@angular/compiler";
7154
7220
 
7155
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
7221
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
7156
7222
  import { ASTWithSource as ASTWithSource4, RecursiveAstVisitor as RecursiveAstVisitor3, TmplAstBoundDeferredTrigger as TmplAstBoundDeferredTrigger2 } from "@angular/compiler";
7157
7223
  var TemplateCheckWithVisitor = class {
7158
7224
  run(ctx, component, template) {
@@ -7276,7 +7342,7 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor3 {
7276
7342
  }
7277
7343
  };
7278
7344
 
7279
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.mjs
7345
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.mjs
7280
7346
  var InterpolatedSignalCheck = class extends TemplateCheckWithVisitor {
7281
7347
  constructor() {
7282
7348
  super(...arguments);
@@ -7295,7 +7361,7 @@ var InterpolatedSignalCheck = class extends TemplateCheckWithVisitor {
7295
7361
  }
7296
7362
  };
7297
7363
  function isSignal(symbol) {
7298
- return ((symbol == null ? void 0 : symbol.escapedName) === "WritableSignal" || (symbol == null ? void 0 : symbol.escapedName) === "Signal" || (symbol == null ? void 0 : symbol.escapedName) === "InputSignal") && symbol.parent.escapedName.includes("@angular/core");
7364
+ return ((symbol == null ? void 0 : symbol.escapedName) === "WritableSignal" || (symbol == null ? void 0 : symbol.escapedName) === "Signal" || (symbol == null ? void 0 : symbol.escapedName) === "InputSignal" || (symbol == null ? void 0 : symbol.escapedName) === "InputSignalWithTransform") && symbol.parent.escapedName.includes("@angular/core");
7299
7365
  }
7300
7366
  function buildDiagnosticForSignal(ctx, node, component) {
7301
7367
  const symbol = ctx.templateTypeChecker.getSymbolOfNode(node, component);
@@ -7313,7 +7379,7 @@ var factory = {
7313
7379
  create: () => new InterpolatedSignalCheck()
7314
7380
  };
7315
7381
 
7316
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
7382
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
7317
7383
  import { TmplAstBoundEvent as TmplAstBoundEvent2 } from "@angular/compiler";
7318
7384
  var InvalidBananaInBoxCheck = class extends TemplateCheckWithVisitor {
7319
7385
  constructor() {
@@ -7339,7 +7405,7 @@ var factory2 = {
7339
7405
  create: () => new InvalidBananaInBoxCheck()
7340
7406
  };
7341
7407
 
7342
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.mjs
7408
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.mjs
7343
7409
  import { TmplAstTemplate as TmplAstTemplate4 } from "@angular/compiler";
7344
7410
  var KNOWN_CONTROL_FLOW_DIRECTIVES = /* @__PURE__ */ new Map([
7345
7411
  ["ngIf", { directive: "NgIf", builtIn: "@if" }],
@@ -7384,7 +7450,7 @@ var factory3 = {
7384
7450
  }
7385
7451
  };
7386
7452
 
7387
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.mjs
7453
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.mjs
7388
7454
  import { TmplAstTemplate as TmplAstTemplate5 } from "@angular/compiler";
7389
7455
  var MissingNgForOfLetCheck = class extends TemplateCheckWithVisitor {
7390
7456
  constructor() {
@@ -7417,7 +7483,7 @@ var factory4 = {
7417
7483
  create: () => new MissingNgForOfLetCheck()
7418
7484
  };
7419
7485
 
7420
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
7486
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
7421
7487
  import { Binary } from "@angular/compiler";
7422
7488
  import ts32 from "typescript";
7423
7489
  var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
@@ -7462,7 +7528,7 @@ var factory5 = {
7462
7528
  }
7463
7529
  };
7464
7530
 
7465
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.mjs
7531
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.mjs
7466
7532
  import { SafeCall as SafeCall2, SafeKeyedRead as SafeKeyedRead2, SafePropertyRead as SafePropertyRead5 } from "@angular/compiler";
7467
7533
  import ts33 from "typescript";
7468
7534
  var OptionalChainNotNullableCheck = class extends TemplateCheckWithVisitor {
@@ -7508,7 +7574,7 @@ var factory6 = {
7508
7574
  }
7509
7575
  };
7510
7576
 
7511
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.mjs
7577
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.mjs
7512
7578
  import { TmplAstBoundAttribute as TmplAstBoundAttribute3 } from "@angular/compiler";
7513
7579
  var STYLE_SUFFIXES = ["px", "%", "em"];
7514
7580
  var SuffixNotSupportedCheck = class extends TemplateCheckWithVisitor {
@@ -7532,7 +7598,7 @@ var factory7 = {
7532
7598
  create: () => new SuffixNotSupportedCheck()
7533
7599
  };
7534
7600
 
7535
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.mjs
7601
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.mjs
7536
7602
  import { TmplAstTextAttribute as TmplAstTextAttribute4 } from "@angular/compiler";
7537
7603
  var TextAttributeNotBindingSpec = class extends TemplateCheckWithVisitor {
7538
7604
  constructor() {
@@ -7571,10 +7637,10 @@ var factory8 = {
7571
7637
  create: () => new TextAttributeNotBindingSpec()
7572
7638
  };
7573
7639
 
7574
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
7640
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
7575
7641
  import ts34 from "typescript";
7576
7642
 
7577
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
7643
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
7578
7644
  var DiagnosticCategoryLabel;
7579
7645
  (function(DiagnosticCategoryLabel2) {
7580
7646
  DiagnosticCategoryLabel2["Warning"] = "warning";
@@ -7582,7 +7648,7 @@ var DiagnosticCategoryLabel;
7582
7648
  DiagnosticCategoryLabel2["Suppress"] = "suppress";
7583
7649
  })(DiagnosticCategoryLabel || (DiagnosticCategoryLabel = {}));
7584
7650
 
7585
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
7651
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
7586
7652
  var ExtendedTemplateCheckerImpl = class {
7587
7653
  constructor(templateTypeChecker, typeChecker, templateCheckFactories, options) {
7588
7654
  var _a, _b, _c, _d, _e;
@@ -7635,7 +7701,7 @@ function assertNever(value) {
7635
7701
  ${value}`);
7636
7702
  }
7637
7703
 
7638
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
7704
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
7639
7705
  var ALL_DIAGNOSTIC_FACTORIES = [
7640
7706
  factory2,
7641
7707
  factory5,
@@ -7651,7 +7717,7 @@ var SUPPORTED_DIAGNOSTIC_NAMES = /* @__PURE__ */ new Set([
7651
7717
  ...ALL_DIAGNOSTIC_FACTORIES.map((factory9) => factory9.name)
7652
7718
  ]);
7653
7719
 
7654
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
7720
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
7655
7721
  var CompilationTicketKind;
7656
7722
  (function(CompilationTicketKind2) {
7657
7723
  CompilationTicketKind2[CompilationTicketKind2["Fresh"] = 0] = "Fresh";
@@ -7798,10 +7864,19 @@ var NgCompiler = class {
7798
7864
  return this.incrementalCompilation.depGraph.getResourceDependencies(file);
7799
7865
  }
7800
7866
  getDiagnostics() {
7801
- const diagnostics = [];
7802
- diagnostics.push(...this.getNonTemplateDiagnostics(), ...this.getTemplateDiagnostics());
7803
- if (this.options.strictTemplates) {
7804
- diagnostics.push(...this.getExtendedTemplateDiagnostics());
7867
+ const diagnostics = [
7868
+ ...this.getNonTemplateDiagnostics()
7869
+ ];
7870
+ try {
7871
+ diagnostics.push(...this.getTemplateDiagnostics());
7872
+ if (this.options.strictTemplates) {
7873
+ diagnostics.push(...this.getExtendedTemplateDiagnostics());
7874
+ }
7875
+ } catch (err) {
7876
+ if (!isFatalDiagnosticError(err)) {
7877
+ throw err;
7878
+ }
7879
+ diagnostics.push(err.toDiagnostic());
7805
7880
  }
7806
7881
  return this.addMessageTextDetails(diagnostics);
7807
7882
  }
@@ -7812,11 +7887,11 @@ var NgCompiler = class {
7812
7887
  if (this.options.strictTemplates) {
7813
7888
  diagnostics.push(...this.getExtendedTemplateDiagnostics(file));
7814
7889
  }
7815
- } catch (e) {
7816
- if (e instanceof FatalDiagnosticError) {
7817
- diagnostics.push(e.toDiagnostic());
7890
+ } catch (err) {
7891
+ if (!isFatalDiagnosticError(err)) {
7892
+ throw err;
7818
7893
  }
7819
- throw e;
7894
+ diagnostics.push(err.toDiagnostic());
7820
7895
  }
7821
7896
  return this.addMessageTextDetails(diagnostics);
7822
7897
  }
@@ -7831,7 +7906,7 @@ var NgCompiler = class {
7831
7906
  diagnostics.push(...extendedTemplateChecker.getDiagnosticsForComponent(component));
7832
7907
  }
7833
7908
  } catch (err) {
7834
- if (!(err instanceof FatalDiagnosticError)) {
7909
+ if (!isFatalDiagnosticError(err)) {
7835
7910
  throw err;
7836
7911
  }
7837
7912
  diagnostics.push(err.toDiagnostic());
@@ -8091,14 +8166,7 @@ var NgCompiler = class {
8091
8166
  if (sf.isDeclarationFile || this.adapter.isShim(sf)) {
8092
8167
  continue;
8093
8168
  }
8094
- try {
8095
- diagnostics.push(...compilation.templateTypeChecker.getDiagnosticsForFile(sf, OptimizeFor.WholeProgram));
8096
- } catch (err) {
8097
- if (!(err instanceof FatalDiagnosticError)) {
8098
- throw err;
8099
- }
8100
- diagnostics.push(err.toDiagnostic());
8101
- }
8169
+ diagnostics.push(...compilation.templateTypeChecker.getDiagnosticsForFile(sf, OptimizeFor.WholeProgram));
8102
8170
  }
8103
8171
  const program = this.programDriver.getProgram();
8104
8172
  this.incrementalStrategy.setIncrementalState(this.incrementalCompilation.state, program);
@@ -8416,7 +8484,7 @@ function versionMapFromProgram(program, driver) {
8416
8484
  return versions;
8417
8485
  }
8418
8486
 
8419
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
8487
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
8420
8488
  import ts36 from "typescript";
8421
8489
  var DelegatingCompilerHost2 = class {
8422
8490
  get jsDocParsingMode() {
@@ -8555,7 +8623,7 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
8555
8623
  }
8556
8624
  };
8557
8625
 
8558
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
8626
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
8559
8627
  var NgtscProgram = class {
8560
8628
  constructor(rootNames, options, delegateHost, oldProgram) {
8561
8629
  this.options = options;
@@ -8782,15 +8850,15 @@ function mergeEmitResults(emitResults) {
8782
8850
  return { diagnostics, emitSkipped, emittedFiles };
8783
8851
  }
8784
8852
 
8785
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
8853
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
8786
8854
  function createProgram({ rootNames, options, host, oldProgram }) {
8787
8855
  return new NgtscProgram(rootNames, options, host, oldProgram);
8788
8856
  }
8789
8857
 
8790
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
8858
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
8791
8859
  import ts39 from "typescript";
8792
8860
 
8793
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
8861
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
8794
8862
  import ts38 from "typescript";
8795
8863
  function createMessageDiagnostic(messageText) {
8796
8864
  return {
@@ -8804,7 +8872,7 @@ function createMessageDiagnostic(messageText) {
8804
8872
  };
8805
8873
  }
8806
8874
 
8807
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
8875
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
8808
8876
  var defaultFormatHost = {
8809
8877
  getCurrentDirectory: () => ts39.sys.getCurrentDirectory(),
8810
8878
  getCanonicalFileName: (fileName) => fileName,
@@ -9017,4 +9085,4 @@ export {
9017
9085
  * Use of this source code is governed by an MIT-style license that can be
9018
9086
  * found in the LICENSE file at https://angular.io/license
9019
9087
  */
9020
- //# sourceMappingURL=chunk-TQYIA5ZM.js.map
9088
+ //# sourceMappingURL=chunk-ELKFSTAE.js.map