@angular/compiler-cli 19.0.0-rc.0 → 19.0.0-rc.2

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 (47) hide show
  1. package/bundles/{chunk-STORTTKY.js → chunk-37JMVF7H.js} +8 -8
  2. package/bundles/{chunk-V2Z4WDVR.js → chunk-6RLW23PZ.js} +3 -3
  3. package/bundles/{chunk-5UDS2TPQ.js → chunk-77D5CI2U.js} +7 -7
  4. package/bundles/{chunk-4W4CWRSP.js → chunk-F33AEX64.js} +5 -5
  5. package/bundles/{chunk-GBKXY6BH.js → chunk-FKXFEX7K.js} +3 -3
  6. package/bundles/{chunk-TRCFFQ47.js → chunk-NC4E5UYB.js} +73 -64
  7. package/bundles/chunk-NC4E5UYB.js.map +6 -0
  8. package/bundles/{chunk-S2JI2WY5.js → chunk-OM3GHCE5.js} +193 -159
  9. package/bundles/chunk-OM3GHCE5.js.map +6 -0
  10. package/bundles/{chunk-PXQLBKVP.js → chunk-P6YTDBL7.js} +31 -31
  11. package/bundles/{chunk-I6R3GL3L.js → chunk-Q2WE7ECN.js} +5 -5
  12. package/bundles/{chunk-NS33RCEE.js → chunk-RJMMB5HJ.js} +12 -12
  13. package/bundles/{chunk-TQQOHNLL.js → chunk-WLQBAON6.js} +108 -94
  14. package/bundles/chunk-WLQBAON6.js.map +6 -0
  15. package/bundles/index.js +12 -12
  16. package/bundles/linker/babel/index.js +12 -12
  17. package/bundles/linker/index.js +4 -4
  18. package/bundles/ngcc/index.js +1 -1
  19. package/bundles/private/bazel.js +1 -1
  20. package/bundles/private/localize.js +3 -3
  21. package/bundles/private/migrations.js +4 -4
  22. package/bundles/private/tooling.js +6 -6
  23. package/bundles/src/bin/ng_xi18n.js +10 -10
  24. package/bundles/src/bin/ngc.js +8 -8
  25. package/bundles_metadata.json +1 -1
  26. package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
  27. package/package.json +3 -3
  28. package/src/ngtsc/docs/src/entities.d.ts +4 -2
  29. package/src/ngtsc/docs/src/type_alias_extractor.d.ts +1 -0
  30. package/src/ngtsc/imports/src/emitter.d.ts +1 -1
  31. package/src/ngtsc/metadata/src/api.d.ts +5 -0
  32. package/src/ngtsc/metadata/src/util.d.ts +5 -2
  33. package/src/ngtsc/reflection/src/typescript.d.ts +6 -0
  34. package/src/ngtsc/typecheck/api/checker.d.ts +1 -1
  35. package/src/ngtsc/typecheck/src/checker.d.ts +1 -1
  36. package/src/ngtsc/validation/src/rules/unused_standalone_imports_rule.d.ts +4 -4
  37. package/bundles/chunk-S2JI2WY5.js.map +0 -6
  38. package/bundles/chunk-TQQOHNLL.js.map +0 -6
  39. package/bundles/chunk-TRCFFQ47.js.map +0 -6
  40. /package/bundles/{chunk-STORTTKY.js.map → chunk-37JMVF7H.js.map} +0 -0
  41. /package/bundles/{chunk-V2Z4WDVR.js.map → chunk-6RLW23PZ.js.map} +0 -0
  42. /package/bundles/{chunk-5UDS2TPQ.js.map → chunk-77D5CI2U.js.map} +0 -0
  43. /package/bundles/{chunk-4W4CWRSP.js.map → chunk-F33AEX64.js.map} +0 -0
  44. /package/bundles/{chunk-GBKXY6BH.js.map → chunk-FKXFEX7K.js.map} +0 -0
  45. /package/bundles/{chunk-PXQLBKVP.js.map → chunk-P6YTDBL7.js.map} +0 -0
  46. /package/bundles/{chunk-I6R3GL3L.js.map → chunk-Q2WE7ECN.js.map} +0 -0
  47. /package/bundles/{chunk-NS33RCEE.js.map → chunk-RJMMB5HJ.js.map} +0 -0
@@ -4,7 +4,7 @@
4
4
 
5
5
  import {
6
6
  angularJitApplicationTransform
7
- } from "./chunk-NS33RCEE.js";
7
+ } from "./chunk-RJMMB5HJ.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-S2JI2WY5.js";
54
+ } from "./chunk-OM3GHCE5.js";
55
55
  import {
56
56
  AbsoluteModuleStrategy,
57
57
  AliasStrategy,
@@ -82,20 +82,19 @@ import {
82
82
  isNamedClassDeclaration,
83
83
  isNonDeclarationTsPath,
84
84
  makeDiagnostic,
85
- makeRelatedInformation,
86
85
  ngErrorCode,
87
86
  normalizeSeparators,
88
87
  relativePathBetween,
89
88
  replaceTsWithNgInErrors,
90
89
  toUnredirectedSourceFile
91
- } from "./chunk-TRCFFQ47.js";
90
+ } from "./chunk-NC4E5UYB.js";
92
91
  import {
93
92
  ActivePerfRecorder,
94
93
  DelegatingPerfRecorder,
95
94
  PerfCheckpoint,
96
95
  PerfEvent,
97
96
  PerfPhase
98
- } from "./chunk-I6R3GL3L.js";
97
+ } from "./chunk-Q2WE7ECN.js";
99
98
  import {
100
99
  LogicalFileSystem,
101
100
  absoluteFrom,
@@ -105,9 +104,9 @@ import {
105
104
  getFileSystem,
106
105
  join,
107
106
  resolve
108
- } from "./chunk-STORTTKY.js";
107
+ } from "./chunk-37JMVF7H.js";
109
108
 
110
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
109
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
111
110
  var DEFAULT_ERROR_CODE = 100;
112
111
  var UNKNOWN_ERROR_CODE = 500;
113
112
  var SOURCE = "angular";
@@ -125,7 +124,7 @@ var EmitFlags;
125
124
  EmitFlags2[EmitFlags2["All"] = 31] = "All";
126
125
  })(EmitFlags || (EmitFlags = {}));
127
126
 
128
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/compiler_host.mjs
127
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/compiler_host.mjs
129
128
  import ts from "typescript";
130
129
  var wrapHostForTest = null;
131
130
  function createCompilerHost({ options, tsHost = ts.createCompilerHost(options, true) }) {
@@ -135,7 +134,7 @@ function createCompilerHost({ options, tsHost = ts.createCompilerHost(options, t
135
134
  return tsHost;
136
135
  }
137
136
 
138
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/entities.mjs
137
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/entities.mjs
139
138
  var EntryType;
140
139
  (function(EntryType2) {
141
140
  EntryType2["Block"] = "block";
@@ -182,23 +181,23 @@ function isDocEntryWithSourceInfo(entry) {
182
181
  return "source" in entry;
183
182
  }
184
183
 
185
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/extractor.mjs
184
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/extractor.mjs
186
185
  import ts11 from "typescript";
187
186
 
188
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/class_extractor.mjs
187
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/class_extractor.mjs
189
188
  import ts5 from "typescript";
190
189
 
191
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/filters.mjs
190
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/filters.mjs
192
191
  function isAngularPrivateName(name) {
193
192
  var _a;
194
193
  const firstChar = (_a = name[0]) != null ? _a : "";
195
194
  return firstChar === "\u0275" || firstChar === "_";
196
195
  }
197
196
 
198
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/function_extractor.mjs
197
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/function_extractor.mjs
199
198
  import ts3 from "typescript";
200
199
 
201
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/generics_extractor.mjs
200
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/generics_extractor.mjs
202
201
  function extractGenerics(declaration) {
203
202
  var _a, _b;
204
203
  return (_b = (_a = declaration.typeParameters) == null ? void 0 : _a.map((typeParam) => {
@@ -211,7 +210,7 @@ function extractGenerics(declaration) {
211
210
  })) != null ? _b : [];
212
211
  }
213
212
 
214
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/jsdoc_extractor.mjs
213
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/jsdoc_extractor.mjs
215
214
  import ts2 from "typescript";
216
215
  var decoratorExpression = /@(?=(Injectable|Component|Directive|Pipe|NgModule|Input|Output|HostBinding|HostListener|Inject|Optional|Self|Host|SkipSelf|ViewChild|ViewChildren|ContentChild|ContentChildren))/g;
217
216
  function extractJsDocTags(node) {
@@ -255,12 +254,12 @@ function unescapeAngularDecorators(comment) {
255
254
  return comment.replace(/_NG_AT_/g, "@");
256
255
  }
257
256
 
258
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/type_extractor.mjs
257
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/type_extractor.mjs
259
258
  function extractResolvedTypeString(node, checker) {
260
259
  return checker.typeToString(checker.getTypeAtLocation(node));
261
260
  }
262
261
 
263
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/function_extractor.mjs
262
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/function_extractor.mjs
264
263
  var FunctionExtractor = class {
265
264
  name;
266
265
  exportDeclaration;
@@ -351,7 +350,7 @@ function findImplementationOfFunction(node, typeChecker) {
351
350
  return implementation;
352
351
  }
353
352
 
354
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/internal.mjs
353
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/internal.mjs
355
354
  import ts4 from "typescript";
356
355
  function isInternal(member) {
357
356
  return extractJsDocTags(member).some((tag) => tag.name === "internal") || hasLeadingInternalComment(member);
@@ -370,7 +369,7 @@ function hasLeadingInternalComment(member) {
370
369
  )) != null ? _a : false;
371
370
  }
372
371
 
373
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/class_extractor.mjs
372
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/class_extractor.mjs
374
373
  var ClassExtractor = class {
375
374
  declaration;
376
375
  typeChecker;
@@ -513,12 +512,9 @@ var ClassExtractor = class {
513
512
  return declarations.filter((declaration, index) => {
514
513
  var _a;
515
514
  if (ts5.isFunctionDeclaration(declaration) || ts5.isMethodDeclaration(declaration)) {
516
- if (ts5.getCombinedModifierFlags(declaration) & ts5.ModifierFlags.Abstract) {
517
- const previousDeclaration = declarations[index - 1];
518
- const samePreviousAbstractMethod = previousDeclaration && ts5.isMethodDeclaration(previousDeclaration) && ts5.getCombinedModifierFlags(previousDeclaration) & ts5.ModifierFlags.Abstract && previousDeclaration.name.getText() === ((_a = declaration.name) == null ? void 0 : _a.getText());
519
- return !samePreviousAbstractMethod;
520
- }
521
- return !!declaration.body;
515
+ const nextDeclaration = declarations[index + 1];
516
+ const isNextAbstractMethodWithSameName = nextDeclaration && ts5.isMethodDeclaration(nextDeclaration) && nextDeclaration.name.getText() === ((_a = declaration.name) == null ? void 0 : _a.getText());
517
+ return !isNextAbstractMethodWithSameName;
522
518
  }
523
519
  return true;
524
520
  });
@@ -675,7 +671,7 @@ function extractInterface(declaration, typeChecker) {
675
671
  return extractor.extract();
676
672
  }
677
673
 
678
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/constant_extractor.mjs
674
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/constant_extractor.mjs
679
675
  import ts6 from "typescript";
680
676
  var LITERAL_AS_ENUM_TAG = "object-literal-as-enum";
681
677
  function extractConstant(declaration, typeChecker) {
@@ -733,7 +729,7 @@ function extractLiteralPropertiesAsEnumMembers(declaration) {
733
729
  });
734
730
  }
735
731
 
736
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/decorator_extractor.mjs
732
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/decorator_extractor.mjs
737
733
  import ts7 from "typescript";
738
734
  function extractorDecorator(declaration, typeChecker) {
739
735
  const documentedNode = getDecoratorJsDocNode(declaration);
@@ -806,7 +802,7 @@ function getDecoratorJsDocNode(declaration) {
806
802
  return callSignature;
807
803
  }
808
804
 
809
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/enum_extractor.mjs
805
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/enum_extractor.mjs
810
806
  import ts8 from "typescript";
811
807
  function extractEnum(declaration, typeChecker) {
812
808
  return {
@@ -837,7 +833,7 @@ function getEnumMemberValue(memberNode) {
837
833
  return (_a = literal == null ? void 0 : literal.getText()) != null ? _a : "";
838
834
  }
839
835
 
840
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/initializer_api_function_extractor.mjs
836
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/initializer_api_function_extractor.mjs
841
837
  import ts9 from "typescript";
842
838
  var initializerApiTag = "initializerApiFunction";
843
839
  function isInitializerApiFunction(node, typeChecker) {
@@ -946,19 +942,20 @@ function extractFunctionWithOverloads(name, type, typeChecker) {
946
942
  };
947
943
  }
948
944
 
949
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/type_alias_extractor.mjs
945
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/type_alias_extractor.mjs
950
946
  function extractTypeAlias(declaration) {
951
947
  return {
952
948
  name: declaration.name.getText(),
953
949
  type: declaration.type.getText(),
954
950
  entryType: EntryType.TypeAlias,
951
+ generics: extractGenerics(declaration),
955
952
  rawComment: extractRawJsDoc(declaration),
956
953
  description: extractJsDocDescription(declaration),
957
954
  jsdocTags: extractJsDocTags(declaration)
958
955
  };
959
956
  }
960
957
 
961
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/import_extractor.mjs
958
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/import_extractor.mjs
962
959
  import ts10 from "typescript";
963
960
  function getImportedSymbols(sourceFile) {
964
961
  const importSpecifiers = /* @__PURE__ */ new Map();
@@ -983,7 +980,7 @@ function getImportedSymbols(sourceFile) {
983
980
  return importSpecifiers;
984
981
  }
985
982
 
986
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/extractor.mjs
983
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/extractor.mjs
987
984
  var DocsExtractor = class {
988
985
  typeChecker;
989
986
  metadataReader;
@@ -1071,11 +1068,11 @@ function getRelativeFilePath(sourceFile, rootDir) {
1071
1068
  return relativePath;
1072
1069
  }
1073
1070
 
1074
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
1071
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
1075
1072
  import { HtmlParser, MessageBundle } from "@angular/compiler";
1076
1073
  import ts26 from "typescript";
1077
1074
 
1078
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
1075
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
1079
1076
  import { Xliff, Xliff2, Xmb } from "@angular/compiler";
1080
1077
  import * as path from "path";
1081
1078
  function i18nGetExtension(formatName) {
@@ -1126,10 +1123,10 @@ function getPathNormalizer(basePath) {
1126
1123
  };
1127
1124
  }
1128
1125
 
1129
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
1126
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
1130
1127
  import ts12 from "typescript";
1131
1128
 
1132
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/version_helpers.mjs
1129
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/version_helpers.mjs
1133
1130
  function toNumbers(value) {
1134
1131
  const suffixIndex = value.lastIndexOf("-");
1135
1132
  return value.slice(0, suffixIndex === -1 ? value.length : suffixIndex).split(".").map((segment) => {
@@ -1164,7 +1161,7 @@ function compareVersions(v1, v2) {
1164
1161
  return compareNumbers(toNumbers(v1), toNumbers(v2));
1165
1162
  }
1166
1163
 
1167
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
1164
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
1168
1165
  var MIN_TS_VERSION = "5.5.0";
1169
1166
  var MAX_TS_VERSION = "5.7.0";
1170
1167
  var tsVersion = ts12.version;
@@ -1177,11 +1174,11 @@ function verifySupportedTypeScriptVersion() {
1177
1174
  checkVersion(tsVersion, MIN_TS_VERSION, MAX_TS_VERSION);
1178
1175
  }
1179
1176
 
1180
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
1177
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
1181
1178
  import { R3Identifiers } from "@angular/compiler";
1182
1179
  import ts24 from "typescript";
1183
1180
 
1184
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
1181
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
1185
1182
  var CycleAnalyzer = class {
1186
1183
  importGraph;
1187
1184
  cachedResults = null;
@@ -1258,7 +1255,7 @@ var Cycle = class {
1258
1255
  }
1259
1256
  };
1260
1257
 
1261
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/imports.mjs
1258
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/imports.mjs
1262
1259
  import ts13 from "typescript";
1263
1260
  var ImportGraph = class {
1264
1261
  checker;
@@ -1354,7 +1351,7 @@ var Found = class {
1354
1351
  }
1355
1352
  };
1356
1353
 
1357
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
1354
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
1358
1355
  import ts14 from "typescript";
1359
1356
  var FlatIndexGenerator = class {
1360
1357
  entryPoint;
@@ -1382,7 +1379,7 @@ export * from '${relativeEntryPoint}';
1382
1379
  }
1383
1380
  };
1384
1381
 
1385
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/logic.mjs
1382
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/logic.mjs
1386
1383
  function findFlatIndexEntryPoint(rootFiles) {
1387
1384
  const tsFiles = rootFiles.filter((file) => isNonDeclarationTsPath(file));
1388
1385
  let resolvedEntryPoint = null;
@@ -1398,7 +1395,7 @@ function findFlatIndexEntryPoint(rootFiles) {
1398
1395
  return resolvedEntryPoint;
1399
1396
  }
1400
1397
 
1401
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
1398
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
1402
1399
  import ts15 from "typescript";
1403
1400
  function checkForPrivateExports(entryPoint, checker, refGraph) {
1404
1401
  const diagnostics = [];
@@ -1478,7 +1475,7 @@ function getDescriptorOfDeclaration(decl) {
1478
1475
  }
1479
1476
  }
1480
1477
 
1481
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/reference_graph.mjs
1478
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/reference_graph.mjs
1482
1479
  var ReferenceGraph = class {
1483
1480
  references = /* @__PURE__ */ new Map();
1484
1481
  add(from, to) {
@@ -1530,7 +1527,7 @@ var ReferenceGraph = class {
1530
1527
  }
1531
1528
  };
1532
1529
 
1533
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.mjs
1530
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.mjs
1534
1531
  var FileDependencyGraph = class {
1535
1532
  nodes = /* @__PURE__ */ new Map();
1536
1533
  addDependency(from, on) {
@@ -1595,7 +1592,7 @@ function isLogicallyChanged(sf, node, changedTsPaths, deletedTsPaths, changedRes
1595
1592
  return false;
1596
1593
  }
1597
1594
 
1598
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
1595
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
1599
1596
  var IncrementalStateKind;
1600
1597
  (function(IncrementalStateKind2) {
1601
1598
  IncrementalStateKind2[IncrementalStateKind2["Fresh"] = 0] = "Fresh";
@@ -1603,7 +1600,7 @@ var IncrementalStateKind;
1603
1600
  IncrementalStateKind2[IncrementalStateKind2["Analyzed"] = 2] = "Analyzed";
1604
1601
  })(IncrementalStateKind || (IncrementalStateKind = {}));
1605
1602
 
1606
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
1603
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
1607
1604
  var PhaseKind;
1608
1605
  (function(PhaseKind2) {
1609
1606
  PhaseKind2[PhaseKind2["Analysis"] = 0] = "Analysis";
@@ -1809,7 +1806,7 @@ function toOriginalSourceFile(sf) {
1809
1806
  }
1810
1807
  }
1811
1808
 
1812
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
1809
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
1813
1810
  var TrackedIncrementalBuildStrategy = class {
1814
1811
  state = null;
1815
1812
  isSet = false;
@@ -1843,7 +1840,7 @@ var PatchedProgramIncrementalBuildStrategy = class {
1843
1840
  };
1844
1841
  var SYM_INCREMENTAL_STATE = Symbol("NgIncrementalState");
1845
1842
 
1846
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
1843
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
1847
1844
  var IdentifierKind;
1848
1845
  (function(IdentifierKind2) {
1849
1846
  IdentifierKind2[IdentifierKind2["Property"] = 0] = "Property";
@@ -1864,7 +1861,7 @@ var AbsoluteSourceSpan = class {
1864
1861
  }
1865
1862
  };
1866
1863
 
1867
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/context.mjs
1864
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/context.mjs
1868
1865
  var IndexingContext = class {
1869
1866
  components = /* @__PURE__ */ new Set();
1870
1867
  addComponent(info) {
@@ -1872,10 +1869,10 @@ var IndexingContext = class {
1872
1869
  }
1873
1870
  };
1874
1871
 
1875
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
1872
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
1876
1873
  import { ParseSourceFile } from "@angular/compiler";
1877
1874
 
1878
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
1875
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
1879
1876
  import { ASTWithSource, ImplicitReceiver, PropertyRead, PropertyWrite, RecursiveAstVisitor, TmplAstBoundDeferredTrigger, TmplAstElement, TmplAstRecursiveVisitor, TmplAstReference, TmplAstTemplate, TmplAstVariable } from "@angular/compiler";
1880
1877
  var ExpressionVisitor = class extends RecursiveAstVisitor {
1881
1878
  expressionStr;
@@ -2175,7 +2172,7 @@ function getTemplateIdentifiers(boundTemplate) {
2175
2172
  return { identifiers: visitor.identifiers, errors: visitor.errors };
2176
2173
  }
2177
2174
 
2178
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
2175
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
2179
2176
  function generateAnalysis(context) {
2180
2177
  const analysis = /* @__PURE__ */ new Map();
2181
2178
  context.components.forEach(({ declaration, selector, boundTemplate, templateMeta }) => {
@@ -2211,7 +2208,7 @@ function generateAnalysis(context) {
2211
2208
  return analysis;
2212
2209
  }
2213
2210
 
2214
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/ng_module_index.mjs
2211
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/ng_module_index.mjs
2215
2212
  var NgModuleIndexImpl = class {
2216
2213
  metaReader;
2217
2214
  localReader;
@@ -2302,7 +2299,7 @@ var NgModuleIndexImpl = class {
2302
2299
  }
2303
2300
  };
2304
2301
 
2305
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
2302
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
2306
2303
  import ts16 from "typescript";
2307
2304
  var CSS_PREPROCESSOR_EXT = /(\.scss|\.sass|\.less|\.styl)$/;
2308
2305
  var RESOURCE_MARKER = ".$ngresource$";
@@ -2460,7 +2457,7 @@ function createLookupResolutionHost(adapter) {
2460
2457
  };
2461
2458
  }
2462
2459
 
2463
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/standalone.mjs
2460
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/standalone.mjs
2464
2461
  var StandaloneComponentScopeReader = class {
2465
2462
  metaReader;
2466
2463
  localModuleReader;
@@ -2559,10 +2556,10 @@ var StandaloneComponentScopeReader = class {
2559
2556
  }
2560
2557
  };
2561
2558
 
2562
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.mjs
2559
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.mjs
2563
2560
  import { ASTWithSource as ASTWithSource3, BindingType, Interpolation, PropertyRead as PropertyRead2, TmplAstBoundAttribute } from "@angular/compiler";
2564
2561
 
2565
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/symbol_util.mjs
2562
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/symbol_util.mjs
2566
2563
  import ts17 from "typescript";
2567
2564
  var SIGNAL_FNS = /* @__PURE__ */ new Set([
2568
2565
  "WritableSignal",
@@ -2582,7 +2579,7 @@ function isSignalSymbol(symbol) {
2582
2579
  });
2583
2580
  }
2584
2581
 
2585
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
2582
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
2586
2583
  import { ASTWithSource as ASTWithSource2, RecursiveAstVisitor as RecursiveAstVisitor2, TmplAstBoundDeferredTrigger as TmplAstBoundDeferredTrigger2 } from "@angular/compiler";
2587
2584
  var TemplateCheckWithVisitor = class {
2588
2585
  canVisitStructuralAttributes = true;
@@ -2719,7 +2716,7 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor2 {
2719
2716
  }
2720
2717
  };
2721
2718
 
2722
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.mjs
2719
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.mjs
2723
2720
  var SIGNAL_INSTANCE_PROPERTIES = /* @__PURE__ */ new Set(["set", "update", "asReadonly"]);
2724
2721
  var FUNCTION_INSTANCE_PROPERTIES = /* @__PURE__ */ new Set(["name", "length", "prototype"]);
2725
2722
  var InterpolatedSignalCheck = class extends TemplateCheckWithVisitor {
@@ -2768,7 +2765,7 @@ var factory = {
2768
2765
  create: () => new InterpolatedSignalCheck()
2769
2766
  };
2770
2767
 
2771
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
2768
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
2772
2769
  import { TmplAstBoundEvent } from "@angular/compiler";
2773
2770
  var InvalidBananaInBoxCheck = class extends TemplateCheckWithVisitor {
2774
2771
  code = ErrorCode.INVALID_BANANA_IN_BOX;
@@ -2791,7 +2788,7 @@ var factory2 = {
2791
2788
  create: () => new InvalidBananaInBoxCheck()
2792
2789
  };
2793
2790
 
2794
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.mjs
2791
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.mjs
2795
2792
  import { TmplAstTemplate as TmplAstTemplate2 } from "@angular/compiler";
2796
2793
  var KNOWN_CONTROL_FLOW_DIRECTIVES = /* @__PURE__ */ new Map([
2797
2794
  ["ngIf", { directive: "NgIf", builtIn: "@if" }],
@@ -2833,7 +2830,7 @@ var factory3 = {
2833
2830
  }
2834
2831
  };
2835
2832
 
2836
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.mjs
2833
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.mjs
2837
2834
  import { TmplAstTemplate as TmplAstTemplate3 } from "@angular/compiler";
2838
2835
  var MissingNgForOfLetCheck = class extends TemplateCheckWithVisitor {
2839
2836
  code = ErrorCode.MISSING_NGFOROF_LET;
@@ -2863,7 +2860,7 @@ var factory4 = {
2863
2860
  create: () => new MissingNgForOfLetCheck()
2864
2861
  };
2865
2862
 
2866
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
2863
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
2867
2864
  import { Binary } from "@angular/compiler";
2868
2865
  import ts18 from "typescript";
2869
2866
  var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
@@ -2906,7 +2903,7 @@ var factory5 = {
2906
2903
  }
2907
2904
  };
2908
2905
 
2909
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.mjs
2906
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.mjs
2910
2907
  import { SafeCall, SafeKeyedRead, SafePropertyRead } from "@angular/compiler";
2911
2908
  import ts19 from "typescript";
2912
2909
  var OptionalChainNotNullableCheck = class extends TemplateCheckWithVisitor {
@@ -2950,7 +2947,7 @@ var factory6 = {
2950
2947
  }
2951
2948
  };
2952
2949
 
2953
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.mjs
2950
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.mjs
2954
2951
  import { TmplAstBoundAttribute as TmplAstBoundAttribute2 } from "@angular/compiler";
2955
2952
  var STYLE_SUFFIXES = ["px", "%", "em"];
2956
2953
  var SuffixNotSupportedCheck = class extends TemplateCheckWithVisitor {
@@ -2971,7 +2968,7 @@ var factory7 = {
2971
2968
  create: () => new SuffixNotSupportedCheck()
2972
2969
  };
2973
2970
 
2974
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.mjs
2971
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.mjs
2975
2972
  import { TmplAstTextAttribute } from "@angular/compiler";
2976
2973
  var TextAttributeNotBindingSpec = class extends TemplateCheckWithVisitor {
2977
2974
  code = ErrorCode.TEXT_ATTRIBUTE_NOT_BINDING;
@@ -3007,7 +3004,7 @@ var factory8 = {
3007
3004
  create: () => new TextAttributeNotBindingSpec()
3008
3005
  };
3009
3006
 
3010
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/uninvoked_function_in_event_binding/index.mjs
3007
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/uninvoked_function_in_event_binding/index.mjs
3011
3008
  import { ASTWithSource as ASTWithSource4, Call, Chain, Conditional, ParsedEventType, PropertyRead as PropertyRead3, SafeCall as SafeCall2, SafePropertyRead as SafePropertyRead2, TmplAstBoundEvent as TmplAstBoundEvent2 } from "@angular/compiler";
3012
3009
  var UninvokedFunctionInEventBindingSpec = class extends TemplateCheckWithVisitor {
3013
3010
  code = ErrorCode.UNINVOKED_FUNCTION_IN_EVENT_BINDING;
@@ -3056,7 +3053,7 @@ var factory9 = {
3056
3053
  create: () => new UninvokedFunctionInEventBindingSpec()
3057
3054
  };
3058
3055
 
3059
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/unused_let_declaration/index.mjs
3056
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/unused_let_declaration/index.mjs
3060
3057
  import { AST, ASTWithSource as ASTWithSource5, TmplAstLetDeclaration } from "@angular/compiler";
3061
3058
  var UnusedLetDeclarationCheck = class extends TemplateCheckWithVisitor {
3062
3059
  code = ErrorCode.UNUSED_LET_DECLARATION;
@@ -3098,10 +3095,10 @@ var factory10 = {
3098
3095
  create: () => new UnusedLetDeclarationCheck()
3099
3096
  };
3100
3097
 
3101
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
3098
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
3102
3099
  import ts20 from "typescript";
3103
3100
 
3104
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
3101
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
3105
3102
  var DiagnosticCategoryLabel;
3106
3103
  (function(DiagnosticCategoryLabel2) {
3107
3104
  DiagnosticCategoryLabel2["Warning"] = "warning";
@@ -3109,7 +3106,7 @@ var DiagnosticCategoryLabel;
3109
3106
  DiagnosticCategoryLabel2["Suppress"] = "suppress";
3110
3107
  })(DiagnosticCategoryLabel || (DiagnosticCategoryLabel = {}));
3111
3108
 
3112
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
3109
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
3113
3110
  var ExtendedTemplateCheckerImpl = class {
3114
3111
  partialCtx;
3115
3112
  templateChecks;
@@ -3164,7 +3161,7 @@ function assertNever(value) {
3164
3161
  ${value}`);
3165
3162
  }
3166
3163
 
3167
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
3164
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
3168
3165
  var ALL_DIAGNOSTIC_FACTORIES = [
3169
3166
  factory2,
3170
3167
  factory5,
@@ -3183,7 +3180,7 @@ var SUPPORTED_DIAGNOSTIC_NAMES = /* @__PURE__ */ new Set([
3183
3180
  ...ALL_DIAGNOSTIC_FACTORIES.map((factory11) => factory11.name)
3184
3181
  ]);
3185
3182
 
3186
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/template_semantics/src/template_semantics_checker.mjs
3183
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/template_semantics/src/template_semantics_checker.mjs
3187
3184
  import { ASTWithSource as ASTWithSource6, ImplicitReceiver as ImplicitReceiver2, ParsedEventType as ParsedEventType2, RecursiveAstVisitor as RecursiveAstVisitor3, TmplAstBoundEvent as TmplAstBoundEvent3, TmplAstLetDeclaration as TmplAstLetDeclaration2, TmplAstRecursiveVisitor as TmplAstRecursiveVisitor2, TmplAstVariable as TmplAstVariable2 } from "@angular/compiler";
3188
3185
  import ts21 from "typescript";
3189
3186
  var TemplateSemanticsCheckerImpl = class {
@@ -3279,7 +3276,7 @@ function unwrapAstWithSource(ast) {
3279
3276
  return ast instanceof ASTWithSource6 ? ast.ast : ast;
3280
3277
  }
3281
3278
 
3282
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/validation/src/rules/initializer_api_usage_rule.mjs
3279
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/validation/src/rules/initializer_api_usage_rule.mjs
3283
3280
  import ts22 from "typescript";
3284
3281
  var APIS_TO_CHECK = [
3285
3282
  INPUT_INITIALIZER_FN,
@@ -3332,7 +3329,7 @@ var InitializerApiUsageRule = class {
3332
3329
  }
3333
3330
  };
3334
3331
 
3335
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/validation/src/rules/unused_standalone_imports_rule.mjs
3332
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/validation/src/rules/unused_standalone_imports_rule.mjs
3336
3333
  import ts23 from "typescript";
3337
3334
  var UnusedStandaloneImportsRule = class {
3338
3335
  templateTypeChecker;
@@ -3363,11 +3360,15 @@ var UnusedStandaloneImportsRule = class {
3363
3360
  if (unused === null) {
3364
3361
  return null;
3365
3362
  }
3363
+ const propertyAssignment = closestNode(metadata.rawImports, ts23.isPropertyAssignment);
3366
3364
  const category = this.typeCheckingConfig.unusedStandaloneImports === "error" ? ts23.DiagnosticCategory.Error : ts23.DiagnosticCategory.Warning;
3367
- if (unused.length === metadata.imports.length) {
3368
- return makeDiagnostic(ErrorCode.UNUSED_STANDALONE_IMPORTS, metadata.rawImports, "All imports are unused", void 0, category);
3365
+ if (unused.length === metadata.imports.length && propertyAssignment !== null) {
3366
+ return makeDiagnostic(ErrorCode.UNUSED_STANDALONE_IMPORTS, propertyAssignment.name, "All imports are unused", void 0, category);
3369
3367
  }
3370
- return makeDiagnostic(ErrorCode.UNUSED_STANDALONE_IMPORTS, metadata.rawImports, "Imports array contains unused imports", unused.map(([ref, type, name]) => makeRelatedInformation(ref.getOriginForDiagnostics(metadata.rawImports), `${type} "${name}" is not used within the template`)), category);
3368
+ return unused.map((ref) => {
3369
+ const diagnosticNode = ref.getIdentityInExpression(metadata.rawImports) || ref.getIdentityIn(node.getSourceFile()) || metadata.rawImports;
3370
+ return makeDiagnostic(ErrorCode.UNUSED_STANDALONE_IMPORTS, diagnosticNode, `${ref.node.name.text} is not used within the template of ${metadata.name}`, void 0, category);
3371
+ });
3371
3372
  }
3372
3373
  getUnusedSymbols(metadata, usedDirectives, usedPipes) {
3373
3374
  const { imports, rawImports } = metadata;
@@ -3381,14 +3382,14 @@ var UnusedStandaloneImportsRule = class {
3381
3382
  if (dirMeta !== null) {
3382
3383
  if (dirMeta.isStandalone && !usedDirectives.has(currentNode) && !this.isPotentialSharedReference(current, rawImports)) {
3383
3384
  unused != null ? unused : unused = [];
3384
- unused.push([current, dirMeta.isComponent ? "Component" : "Directive", dirMeta.name]);
3385
+ unused.push(current);
3385
3386
  }
3386
3387
  continue;
3387
3388
  }
3388
3389
  const pipeMeta = this.templateTypeChecker.getPipeMetadata(currentNode);
3389
3390
  if (pipeMeta !== null && pipeMeta.isStandalone && !usedPipes.has(pipeMeta.name) && !this.isPotentialSharedReference(current, rawImports)) {
3390
3391
  unused != null ? unused : unused = [];
3391
- unused.push([current, "Pipe", pipeMeta.ref.node.name.text]);
3392
+ unused.push(current);
3392
3393
  }
3393
3394
  }
3394
3395
  return unused;
@@ -3408,11 +3409,22 @@ var UnusedStandaloneImportsRule = class {
3408
3409
  return true;
3409
3410
  }
3410
3411
  };
3412
+ function closestNode(start, predicate) {
3413
+ let current = start.parent;
3414
+ while (current) {
3415
+ if (predicate(current)) {
3416
+ return current;
3417
+ } else {
3418
+ current = current.parent;
3419
+ }
3420
+ }
3421
+ return null;
3422
+ }
3411
3423
 
3412
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/validation/src/config.mjs
3424
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/validation/src/config.mjs
3413
3425
  var UNUSED_STANDALONE_IMPORTS_RULE_ENABLED = true;
3414
3426
 
3415
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/validation/src/source_file_validator.mjs
3427
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/validation/src/source_file_validator.mjs
3416
3428
  var SourceFileValidator = class {
3417
3429
  rules;
3418
3430
  constructor(reflector, importedSymbolsTracker, templateTypeChecker, typeCheckingConfig) {
@@ -3454,7 +3466,7 @@ var SourceFileValidator = class {
3454
3466
  }
3455
3467
  };
3456
3468
 
3457
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/core_version.mjs
3469
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/core_version.mjs
3458
3470
  function coreHasSymbol(program, symbol) {
3459
3471
  const checker = program.getTypeChecker();
3460
3472
  for (const sf of program.getSourceFiles().filter(isMaybeCore)) {
@@ -3473,7 +3485,7 @@ function isMaybeCore(sf) {
3473
3485
  return sf.isDeclarationFile && sf.fileName.includes("@angular/core") && sf.fileName.endsWith("index.d.ts");
3474
3486
  }
3475
3487
 
3476
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/feature_detection.mjs
3488
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/feature_detection.mjs
3477
3489
  import semver from "semver";
3478
3490
  function coreVersionSupportsFeature(coreVersion, minVersion) {
3479
3491
  if (coreVersion === `0.0.0-${"PLACEHOLDER"}`) {
@@ -3482,7 +3494,7 @@ function coreVersionSupportsFeature(coreVersion, minVersion) {
3482
3494
  return semver.satisfies(coreVersion, minVersion);
3483
3495
  }
3484
3496
 
3485
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
3497
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
3486
3498
  var CompilationTicketKind;
3487
3499
  (function(CompilationTicketKind2) {
3488
3500
  CompilationTicketKind2[CompilationTicketKind2["Fresh"] = 0] = "Fresh";
@@ -4359,7 +4371,7 @@ function versionMapFromProgram(program, driver) {
4359
4371
  return versions;
4360
4372
  }
4361
4373
 
4362
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
4374
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
4363
4375
  import ts25 from "typescript";
4364
4376
  var DelegatingCompilerHost = class {
4365
4377
  delegate;
@@ -4533,7 +4545,7 @@ var NgCompilerHost = class extends DelegatingCompilerHost {
4533
4545
  }
4534
4546
  };
4535
4547
 
4536
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
4548
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
4537
4549
  var NgtscProgram = class {
4538
4550
  options;
4539
4551
  compiler;
@@ -4764,15 +4776,15 @@ function mergeEmitResults(emitResults) {
4764
4776
  return { diagnostics, emitSkipped, emittedFiles };
4765
4777
  }
4766
4778
 
4767
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
4779
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
4768
4780
  function createProgram({ rootNames, options, host, oldProgram }) {
4769
4781
  return new NgtscProgram(rootNames, options, host, oldProgram);
4770
4782
  }
4771
4783
 
4772
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
4784
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
4773
4785
  import ts28 from "typescript";
4774
4786
 
4775
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
4787
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
4776
4788
  import ts27 from "typescript";
4777
4789
  function createMessageDiagnostic(messageText) {
4778
4790
  return {
@@ -4786,7 +4798,7 @@ function createMessageDiagnostic(messageText) {
4786
4798
  };
4787
4799
  }
4788
4800
 
4789
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
4801
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
4790
4802
  var defaultFormatHost = {
4791
4803
  getCurrentDirectory: () => ts28.sys.getCurrentDirectory(),
4792
4804
  getCanonicalFileName: (fileName) => fileName,
@@ -4813,11 +4825,13 @@ function readConfiguration(project, existingOptions, host = getFileSystem()) {
4813
4825
  const fs = getFileSystem();
4814
4826
  const readConfigFile = (configFile) => ts28.readConfigFile(configFile, (file) => host.readFile(host.resolve(file)));
4815
4827
  const readAngularCompilerOptions = (configFile, parentOptions = {}) => {
4828
+ var _a2, _b;
4816
4829
  const { config: config2, error: error2 } = readConfigFile(configFile);
4817
4830
  if (error2) {
4818
4831
  return parentOptions;
4819
4832
  }
4820
- let existingNgCompilerOptions = { ...config2.angularCompilerOptions, ...parentOptions };
4833
+ const angularCompilerOptions = (_b = config2.angularCompilerOptions) != null ? _b : (_a2 = config2.bazelOptions) == null ? void 0 : _a2.angularCompilerOptions;
4834
+ let existingNgCompilerOptions = { ...angularCompilerOptions, ...parentOptions };
4821
4835
  if (!config2.extends) {
4822
4836
  return existingNgCompilerOptions;
4823
4837
  }
@@ -5017,4 +5031,4 @@ export {
5017
5031
  * Use of this source code is governed by an MIT-style license that can be
5018
5032
  * found in the LICENSE file at https://angular.dev/license
5019
5033
  */
5020
- //# sourceMappingURL=chunk-TQQOHNLL.js.map
5034
+ //# sourceMappingURL=chunk-WLQBAON6.js.map