@angular/compiler-cli 17.2.1 → 17.3.0-next.0

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 (43) hide show
  1. package/bundles/{chunk-UM6JO3VZ.js → chunk-75YFKYUJ.js} +7 -7
  2. package/bundles/{chunk-KMYUI7UU.js → chunk-GWFFFWTW.js} +562 -525
  3. package/bundles/chunk-GWFFFWTW.js.map +6 -0
  4. package/bundles/{chunk-QLLRERNV.js → chunk-JKNKVO7U.js} +5 -5
  5. package/bundles/{chunk-KYE5EYIK.js → chunk-NZQBYQYJ.js} +13 -13
  6. package/bundles/{chunk-PQBKKYRL.js → chunk-OW77LBBK.js} +82 -81
  7. package/bundles/{chunk-PQBKKYRL.js.map → chunk-OW77LBBK.js.map} +1 -1
  8. package/bundles/{chunk-6VEEN3ZS.js → chunk-Q5Y7HH3O.js} +5 -5
  9. package/bundles/{chunk-64JBPJBS.js → chunk-R4KQI5XI.js} +5 -5
  10. package/bundles/{chunk-LYJKWJUC.js → chunk-SBDNBITT.js} +3 -3
  11. package/bundles/{chunk-63UQIYTZ.js → chunk-VPKIGOWE.js} +33 -30
  12. package/bundles/{chunk-63UQIYTZ.js.map → chunk-VPKIGOWE.js.map} +1 -1
  13. package/bundles/{chunk-2WQIUGOU.js → chunk-WCD6LVCP.js} +7 -7
  14. package/bundles/{chunk-CVK4HV4K.js → chunk-XLXSE3QH.js} +319 -315
  15. package/bundles/chunk-XLXSE3QH.js.map +6 -0
  16. package/bundles/index.js +15 -12
  17. package/bundles/index.js.map +1 -1
  18. package/bundles/linker/babel/index.js +12 -12
  19. package/bundles/linker/index.js +4 -4
  20. package/bundles/ngcc/index.js +1 -1
  21. package/bundles/private/bazel.js +1 -1
  22. package/bundles/private/localize.js +3 -3
  23. package/bundles/private/migrations.js +5 -5
  24. package/bundles/private/tooling.js +5 -5
  25. package/bundles/src/bin/ng_xi18n.js +10 -10
  26. package/bundles/src/bin/ngc.js +8 -8
  27. package/bundles_metadata.json +1 -1
  28. package/index.d.ts +1 -0
  29. package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
  30. package/package.json +2 -2
  31. package/src/ngtsc/diagnostics/index.d.ts +1 -1
  32. package/src/ngtsc/diagnostics/src/error.d.ts +7 -0
  33. package/src/ngtsc/diagnostics/src/error_code.d.ts +9 -3
  34. package/src/ngtsc/docs/src/constant_extractor.d.ts +2 -2
  35. package/bundles/chunk-CVK4HV4K.js.map +0 -6
  36. package/bundles/chunk-KMYUI7UU.js.map +0 -6
  37. /package/bundles/{chunk-UM6JO3VZ.js.map → chunk-75YFKYUJ.js.map} +0 -0
  38. /package/bundles/{chunk-QLLRERNV.js.map → chunk-JKNKVO7U.js.map} +0 -0
  39. /package/bundles/{chunk-KYE5EYIK.js.map → chunk-NZQBYQYJ.js.map} +0 -0
  40. /package/bundles/{chunk-6VEEN3ZS.js.map → chunk-Q5Y7HH3O.js.map} +0 -0
  41. /package/bundles/{chunk-64JBPJBS.js.map → chunk-R4KQI5XI.js.map} +0 -0
  42. /package/bundles/{chunk-LYJKWJUC.js.map → chunk-SBDNBITT.js.map} +0 -0
  43. /package/bundles/{chunk-2WQIUGOU.js.map → chunk-WCD6LVCP.js.map} +0 -0
@@ -12,15 +12,210 @@ import {
12
12
  resolve,
13
13
  stripExtension,
14
14
  toRelativeImport
15
- } from "./chunk-UM6JO3VZ.js";
15
+ } from "./chunk-75YFKYUJ.js";
16
16
 
17
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
18
- import ts4 from "typescript";
19
-
20
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/host.mjs
17
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
21
18
  import ts from "typescript";
19
+
20
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_code.mjs
21
+ var ErrorCode;
22
+ (function(ErrorCode2) {
23
+ ErrorCode2[ErrorCode2["DECORATOR_ARG_NOT_LITERAL"] = 1001] = "DECORATOR_ARG_NOT_LITERAL";
24
+ ErrorCode2[ErrorCode2["DECORATOR_ARITY_WRONG"] = 1002] = "DECORATOR_ARITY_WRONG";
25
+ ErrorCode2[ErrorCode2["DECORATOR_NOT_CALLED"] = 1003] = "DECORATOR_NOT_CALLED";
26
+ ErrorCode2[ErrorCode2["DECORATOR_UNEXPECTED"] = 1005] = "DECORATOR_UNEXPECTED";
27
+ ErrorCode2[ErrorCode2["DECORATOR_COLLISION"] = 1006] = "DECORATOR_COLLISION";
28
+ ErrorCode2[ErrorCode2["VALUE_HAS_WRONG_TYPE"] = 1010] = "VALUE_HAS_WRONG_TYPE";
29
+ ErrorCode2[ErrorCode2["VALUE_NOT_LITERAL"] = 1011] = "VALUE_NOT_LITERAL";
30
+ ErrorCode2[ErrorCode2["INITIALIZER_API_WITH_DISALLOWED_DECORATOR"] = 1050] = "INITIALIZER_API_WITH_DISALLOWED_DECORATOR";
31
+ ErrorCode2[ErrorCode2["INITIALIZER_API_DECORATOR_METADATA_COLLISION"] = 1051] = "INITIALIZER_API_DECORATOR_METADATA_COLLISION";
32
+ ErrorCode2[ErrorCode2["INITIALIZER_API_NO_REQUIRED_FUNCTION"] = 1052] = "INITIALIZER_API_NO_REQUIRED_FUNCTION";
33
+ ErrorCode2[ErrorCode2["INCORRECTLY_DECLARED_ON_STATIC_MEMBER"] = 1100] = "INCORRECTLY_DECLARED_ON_STATIC_MEMBER";
34
+ ErrorCode2[ErrorCode2["COMPONENT_MISSING_TEMPLATE"] = 2001] = "COMPONENT_MISSING_TEMPLATE";
35
+ ErrorCode2[ErrorCode2["PIPE_MISSING_NAME"] = 2002] = "PIPE_MISSING_NAME";
36
+ ErrorCode2[ErrorCode2["PARAM_MISSING_TOKEN"] = 2003] = "PARAM_MISSING_TOKEN";
37
+ ErrorCode2[ErrorCode2["DIRECTIVE_MISSING_SELECTOR"] = 2004] = "DIRECTIVE_MISSING_SELECTOR";
38
+ ErrorCode2[ErrorCode2["UNDECORATED_PROVIDER"] = 2005] = "UNDECORATED_PROVIDER";
39
+ ErrorCode2[ErrorCode2["DIRECTIVE_INHERITS_UNDECORATED_CTOR"] = 2006] = "DIRECTIVE_INHERITS_UNDECORATED_CTOR";
40
+ ErrorCode2[ErrorCode2["UNDECORATED_CLASS_USING_ANGULAR_FEATURES"] = 2007] = "UNDECORATED_CLASS_USING_ANGULAR_FEATURES";
41
+ ErrorCode2[ErrorCode2["COMPONENT_RESOURCE_NOT_FOUND"] = 2008] = "COMPONENT_RESOURCE_NOT_FOUND";
42
+ ErrorCode2[ErrorCode2["COMPONENT_INVALID_SHADOW_DOM_SELECTOR"] = 2009] = "COMPONENT_INVALID_SHADOW_DOM_SELECTOR";
43
+ ErrorCode2[ErrorCode2["COMPONENT_NOT_STANDALONE"] = 2010] = "COMPONENT_NOT_STANDALONE";
44
+ ErrorCode2[ErrorCode2["COMPONENT_IMPORT_NOT_STANDALONE"] = 2011] = "COMPONENT_IMPORT_NOT_STANDALONE";
45
+ ErrorCode2[ErrorCode2["COMPONENT_UNKNOWN_IMPORT"] = 2012] = "COMPONENT_UNKNOWN_IMPORT";
46
+ ErrorCode2[ErrorCode2["HOST_DIRECTIVE_INVALID"] = 2013] = "HOST_DIRECTIVE_INVALID";
47
+ ErrorCode2[ErrorCode2["HOST_DIRECTIVE_NOT_STANDALONE"] = 2014] = "HOST_DIRECTIVE_NOT_STANDALONE";
48
+ ErrorCode2[ErrorCode2["HOST_DIRECTIVE_COMPONENT"] = 2015] = "HOST_DIRECTIVE_COMPONENT";
49
+ ErrorCode2[ErrorCode2["INJECTABLE_INHERITS_INVALID_CONSTRUCTOR"] = 2016] = "INJECTABLE_INHERITS_INVALID_CONSTRUCTOR";
50
+ ErrorCode2[ErrorCode2["HOST_DIRECTIVE_UNDEFINED_BINDING"] = 2017] = "HOST_DIRECTIVE_UNDEFINED_BINDING";
51
+ ErrorCode2[ErrorCode2["HOST_DIRECTIVE_CONFLICTING_ALIAS"] = 2018] = "HOST_DIRECTIVE_CONFLICTING_ALIAS";
52
+ ErrorCode2[ErrorCode2["HOST_DIRECTIVE_MISSING_REQUIRED_BINDING"] = 2019] = "HOST_DIRECTIVE_MISSING_REQUIRED_BINDING";
53
+ ErrorCode2[ErrorCode2["CONFLICTING_INPUT_TRANSFORM"] = 2020] = "CONFLICTING_INPUT_TRANSFORM";
54
+ ErrorCode2[ErrorCode2["COMPONENT_INVALID_STYLE_URLS"] = 2021] = "COMPONENT_INVALID_STYLE_URLS";
55
+ ErrorCode2[ErrorCode2["COMPONENT_UNKNOWN_DEFERRED_IMPORT"] = 2022] = "COMPONENT_UNKNOWN_DEFERRED_IMPORT";
56
+ ErrorCode2[ErrorCode2["SYMBOL_NOT_EXPORTED"] = 3001] = "SYMBOL_NOT_EXPORTED";
57
+ ErrorCode2[ErrorCode2["IMPORT_CYCLE_DETECTED"] = 3003] = "IMPORT_CYCLE_DETECTED";
58
+ ErrorCode2[ErrorCode2["IMPORT_GENERATION_FAILURE"] = 3004] = "IMPORT_GENERATION_FAILURE";
59
+ ErrorCode2[ErrorCode2["CONFIG_FLAT_MODULE_NO_INDEX"] = 4001] = "CONFIG_FLAT_MODULE_NO_INDEX";
60
+ ErrorCode2[ErrorCode2["CONFIG_STRICT_TEMPLATES_IMPLIES_FULL_TEMPLATE_TYPECHECK"] = 4002] = "CONFIG_STRICT_TEMPLATES_IMPLIES_FULL_TEMPLATE_TYPECHECK";
61
+ ErrorCode2[ErrorCode2["CONFIG_EXTENDED_DIAGNOSTICS_IMPLIES_STRICT_TEMPLATES"] = 4003] = "CONFIG_EXTENDED_DIAGNOSTICS_IMPLIES_STRICT_TEMPLATES";
62
+ ErrorCode2[ErrorCode2["CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CATEGORY_LABEL"] = 4004] = "CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CATEGORY_LABEL";
63
+ ErrorCode2[ErrorCode2["CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CHECK"] = 4005] = "CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CHECK";
64
+ ErrorCode2[ErrorCode2["HOST_BINDING_PARSE_ERROR"] = 5001] = "HOST_BINDING_PARSE_ERROR";
65
+ ErrorCode2[ErrorCode2["TEMPLATE_PARSE_ERROR"] = 5002] = "TEMPLATE_PARSE_ERROR";
66
+ ErrorCode2[ErrorCode2["NGMODULE_INVALID_DECLARATION"] = 6001] = "NGMODULE_INVALID_DECLARATION";
67
+ ErrorCode2[ErrorCode2["NGMODULE_INVALID_IMPORT"] = 6002] = "NGMODULE_INVALID_IMPORT";
68
+ ErrorCode2[ErrorCode2["NGMODULE_INVALID_EXPORT"] = 6003] = "NGMODULE_INVALID_EXPORT";
69
+ ErrorCode2[ErrorCode2["NGMODULE_INVALID_REEXPORT"] = 6004] = "NGMODULE_INVALID_REEXPORT";
70
+ ErrorCode2[ErrorCode2["NGMODULE_MODULE_WITH_PROVIDERS_MISSING_GENERIC"] = 6005] = "NGMODULE_MODULE_WITH_PROVIDERS_MISSING_GENERIC";
71
+ ErrorCode2[ErrorCode2["NGMODULE_REEXPORT_NAME_COLLISION"] = 6006] = "NGMODULE_REEXPORT_NAME_COLLISION";
72
+ ErrorCode2[ErrorCode2["NGMODULE_DECLARATION_NOT_UNIQUE"] = 6007] = "NGMODULE_DECLARATION_NOT_UNIQUE";
73
+ ErrorCode2[ErrorCode2["NGMODULE_DECLARATION_IS_STANDALONE"] = 6008] = "NGMODULE_DECLARATION_IS_STANDALONE";
74
+ ErrorCode2[ErrorCode2["NGMODULE_BOOTSTRAP_IS_STANDALONE"] = 6009] = "NGMODULE_BOOTSTRAP_IS_STANDALONE";
75
+ ErrorCode2[ErrorCode2["WARN_NGMODULE_ID_UNNECESSARY"] = 6100] = "WARN_NGMODULE_ID_UNNECESSARY";
76
+ ErrorCode2[ErrorCode2["SCHEMA_INVALID_ELEMENT"] = 8001] = "SCHEMA_INVALID_ELEMENT";
77
+ ErrorCode2[ErrorCode2["SCHEMA_INVALID_ATTRIBUTE"] = 8002] = "SCHEMA_INVALID_ATTRIBUTE";
78
+ ErrorCode2[ErrorCode2["MISSING_REFERENCE_TARGET"] = 8003] = "MISSING_REFERENCE_TARGET";
79
+ ErrorCode2[ErrorCode2["MISSING_PIPE"] = 8004] = "MISSING_PIPE";
80
+ ErrorCode2[ErrorCode2["WRITE_TO_READ_ONLY_VARIABLE"] = 8005] = "WRITE_TO_READ_ONLY_VARIABLE";
81
+ ErrorCode2[ErrorCode2["DUPLICATE_VARIABLE_DECLARATION"] = 8006] = "DUPLICATE_VARIABLE_DECLARATION";
82
+ ErrorCode2[ErrorCode2["SPLIT_TWO_WAY_BINDING"] = 8007] = "SPLIT_TWO_WAY_BINDING";
83
+ ErrorCode2[ErrorCode2["MISSING_REQUIRED_INPUTS"] = 8008] = "MISSING_REQUIRED_INPUTS";
84
+ ErrorCode2[ErrorCode2["ILLEGAL_FOR_LOOP_TRACK_ACCESS"] = 8009] = "ILLEGAL_FOR_LOOP_TRACK_ACCESS";
85
+ ErrorCode2[ErrorCode2["INACCESSIBLE_DEFERRED_TRIGGER_ELEMENT"] = 8010] = "INACCESSIBLE_DEFERRED_TRIGGER_ELEMENT";
86
+ ErrorCode2[ErrorCode2["CONTROL_FLOW_PREVENTING_CONTENT_PROJECTION"] = 8011] = "CONTROL_FLOW_PREVENTING_CONTENT_PROJECTION";
87
+ ErrorCode2[ErrorCode2["DEFERRED_PIPE_USED_EAGERLY"] = 8012] = "DEFERRED_PIPE_USED_EAGERLY";
88
+ ErrorCode2[ErrorCode2["DEFERRED_DIRECTIVE_USED_EAGERLY"] = 8013] = "DEFERRED_DIRECTIVE_USED_EAGERLY";
89
+ ErrorCode2[ErrorCode2["DEFERRED_DEPENDENCY_IMPORTED_EAGERLY"] = 8014] = "DEFERRED_DEPENDENCY_IMPORTED_EAGERLY";
90
+ ErrorCode2[ErrorCode2["INVALID_BANANA_IN_BOX"] = 8101] = "INVALID_BANANA_IN_BOX";
91
+ ErrorCode2[ErrorCode2["NULLISH_COALESCING_NOT_NULLABLE"] = 8102] = "NULLISH_COALESCING_NOT_NULLABLE";
92
+ ErrorCode2[ErrorCode2["MISSING_CONTROL_FLOW_DIRECTIVE"] = 8103] = "MISSING_CONTROL_FLOW_DIRECTIVE";
93
+ ErrorCode2[ErrorCode2["TEXT_ATTRIBUTE_NOT_BINDING"] = 8104] = "TEXT_ATTRIBUTE_NOT_BINDING";
94
+ ErrorCode2[ErrorCode2["MISSING_NGFOROF_LET"] = 8105] = "MISSING_NGFOROF_LET";
95
+ ErrorCode2[ErrorCode2["SUFFIX_NOT_SUPPORTED"] = 8106] = "SUFFIX_NOT_SUPPORTED";
96
+ ErrorCode2[ErrorCode2["OPTIONAL_CHAIN_NOT_NULLABLE"] = 8107] = "OPTIONAL_CHAIN_NOT_NULLABLE";
97
+ ErrorCode2[ErrorCode2["SKIP_HYDRATION_NOT_STATIC"] = 8108] = "SKIP_HYDRATION_NOT_STATIC";
98
+ ErrorCode2[ErrorCode2["INTERPOLATED_SIGNAL_NOT_INVOKED"] = 8109] = "INTERPOLATED_SIGNAL_NOT_INVOKED";
99
+ ErrorCode2[ErrorCode2["INLINE_TCB_REQUIRED"] = 8900] = "INLINE_TCB_REQUIRED";
100
+ ErrorCode2[ErrorCode2["INLINE_TYPE_CTOR_REQUIRED"] = 8901] = "INLINE_TYPE_CTOR_REQUIRED";
101
+ ErrorCode2[ErrorCode2["INJECTABLE_DUPLICATE_PROV"] = 9001] = "INJECTABLE_DUPLICATE_PROV";
102
+ ErrorCode2[ErrorCode2["SUGGEST_STRICT_TEMPLATES"] = 10001] = "SUGGEST_STRICT_TEMPLATES";
103
+ ErrorCode2[ErrorCode2["SUGGEST_SUBOPTIMAL_TYPE_INFERENCE"] = 10002] = "SUGGEST_SUBOPTIMAL_TYPE_INFERENCE";
104
+ ErrorCode2[ErrorCode2["LOCAL_COMPILATION_UNRESOLVED_CONST"] = 11001] = "LOCAL_COMPILATION_UNRESOLVED_CONST";
105
+ ErrorCode2[ErrorCode2["LOCAL_COMPILATION_UNSUPPORTED_EXPRESSION"] = 11003] = "LOCAL_COMPILATION_UNSUPPORTED_EXPRESSION";
106
+ })(ErrorCode || (ErrorCode = {}));
107
+
108
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/util.mjs
109
+ var ERROR_CODE_MATCHER = /(\u001b\[\d+m ?)TS-99(\d+: ?\u001b\[\d+m)/g;
110
+ function replaceTsWithNgInErrors(errors) {
111
+ return errors.replace(ERROR_CODE_MATCHER, "$1NG$2");
112
+ }
113
+ function ngErrorCode(code) {
114
+ return parseInt("-99" + code);
115
+ }
116
+
117
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
118
+ var FatalDiagnosticError = class extends Error {
119
+ constructor(code, node, diagnosticMessage, relatedInformation) {
120
+ super(`FatalDiagnosticError #${code}: ${diagnosticMessage}`);
121
+ this.code = code;
122
+ this.node = node;
123
+ this.diagnosticMessage = diagnosticMessage;
124
+ this.relatedInformation = relatedInformation;
125
+ this.message = null;
126
+ this._isFatalDiagnosticError = true;
127
+ Object.setPrototypeOf(this, new.target.prototype);
128
+ }
129
+ toDiagnostic() {
130
+ return makeDiagnostic(this.code, this.node, this.diagnosticMessage, this.relatedInformation);
131
+ }
132
+ };
133
+ function makeDiagnostic(code, node, messageText, relatedInformation) {
134
+ node = ts.getOriginalNode(node);
135
+ return {
136
+ category: ts.DiagnosticCategory.Error,
137
+ code: ngErrorCode(code),
138
+ file: ts.getOriginalNode(node).getSourceFile(),
139
+ start: node.getStart(void 0, false),
140
+ length: node.getWidth(),
141
+ messageText,
142
+ relatedInformation
143
+ };
144
+ }
145
+ function makeDiagnosticChain(messageText, next) {
146
+ return {
147
+ category: ts.DiagnosticCategory.Message,
148
+ code: 0,
149
+ messageText,
150
+ next
151
+ };
152
+ }
153
+ function makeRelatedInformation(node, messageText) {
154
+ node = ts.getOriginalNode(node);
155
+ return {
156
+ category: ts.DiagnosticCategory.Message,
157
+ code: 0,
158
+ file: node.getSourceFile(),
159
+ start: node.getStart(),
160
+ length: node.getWidth(),
161
+ messageText
162
+ };
163
+ }
164
+ function addDiagnosticChain(messageText, add) {
165
+ if (typeof messageText === "string") {
166
+ return makeDiagnosticChain(messageText, add);
167
+ }
168
+ if (messageText.next === void 0) {
169
+ messageText.next = add;
170
+ } else {
171
+ messageText.next.push(...add);
172
+ }
173
+ return messageText;
174
+ }
175
+ function isFatalDiagnosticError(err) {
176
+ return err._isFatalDiagnosticError === true;
177
+ }
178
+ function isLocalCompilationDiagnostics(diagnostic) {
179
+ return diagnostic.code === ngErrorCode(ErrorCode.LOCAL_COMPILATION_UNRESOLVED_CONST) || diagnostic.code === ngErrorCode(ErrorCode.LOCAL_COMPILATION_UNSUPPORTED_EXPRESSION);
180
+ }
181
+
182
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/docs.mjs
183
+ var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
184
+ ErrorCode.DECORATOR_ARG_NOT_LITERAL,
185
+ ErrorCode.IMPORT_CYCLE_DETECTED,
186
+ ErrorCode.PARAM_MISSING_TOKEN,
187
+ ErrorCode.SCHEMA_INVALID_ELEMENT,
188
+ ErrorCode.SCHEMA_INVALID_ATTRIBUTE,
189
+ ErrorCode.MISSING_REFERENCE_TARGET,
190
+ ErrorCode.COMPONENT_INVALID_SHADOW_DOM_SELECTOR,
191
+ ErrorCode.WARN_NGMODULE_ID_UNNECESSARY
192
+ ]);
193
+
194
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.mjs
195
+ var ERROR_DETAILS_PAGE_BASE_URL = "https://angular.io/errors";
196
+
197
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.mjs
198
+ var ExtendedTemplateDiagnosticName;
199
+ (function(ExtendedTemplateDiagnosticName2) {
200
+ ExtendedTemplateDiagnosticName2["INVALID_BANANA_IN_BOX"] = "invalidBananaInBox";
201
+ ExtendedTemplateDiagnosticName2["NULLISH_COALESCING_NOT_NULLABLE"] = "nullishCoalescingNotNullable";
202
+ ExtendedTemplateDiagnosticName2["OPTIONAL_CHAIN_NOT_NULLABLE"] = "optionalChainNotNullable";
203
+ ExtendedTemplateDiagnosticName2["MISSING_CONTROL_FLOW_DIRECTIVE"] = "missingControlFlowDirective";
204
+ ExtendedTemplateDiagnosticName2["TEXT_ATTRIBUTE_NOT_BINDING"] = "textAttributeNotBinding";
205
+ ExtendedTemplateDiagnosticName2["MISSING_NGFOROF_LET"] = "missingNgForOfLet";
206
+ ExtendedTemplateDiagnosticName2["SUFFIX_NOT_SUPPORTED"] = "suffixNotSupported";
207
+ ExtendedTemplateDiagnosticName2["SKIP_HYDRATION_NOT_STATIC"] = "skipHydrationNotStatic";
208
+ ExtendedTemplateDiagnosticName2["INTERPOLATED_SIGNAL_NOT_INVOKED"] = "interpolatedSignalNotInvoked";
209
+ ExtendedTemplateDiagnosticName2["CONTROL_FLOW_PREVENTING_CONTENT_PROJECTION"] = "controlFlowPreventingContentProjection";
210
+ })(ExtendedTemplateDiagnosticName || (ExtendedTemplateDiagnosticName = {}));
211
+
212
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
213
+ import ts5 from "typescript";
214
+
215
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/host.mjs
216
+ import ts2 from "typescript";
22
217
  function isDecoratorIdentifier(exp) {
23
- return ts.isIdentifier(exp) || ts.isPropertyAccessExpression(exp) && ts.isIdentifier(exp.expression) && ts.isIdentifier(exp.name);
218
+ return ts2.isIdentifier(exp) || ts2.isPropertyAccessExpression(exp) && ts2.isIdentifier(exp.expression) && ts2.isIdentifier(exp.name);
24
219
  }
25
220
  var ClassMemberKind;
26
221
  (function(ClassMemberKind2) {
@@ -32,14 +227,14 @@ var ClassMemberKind;
32
227
  })(ClassMemberKind || (ClassMemberKind = {}));
33
228
  var AmbientImport = {};
34
229
 
35
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/type_to_value.mjs
36
- import ts2 from "typescript";
230
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/type_to_value.mjs
231
+ import ts3 from "typescript";
37
232
  function typeToValue(typeNode, checker, isLocalCompilation) {
38
233
  var _a, _b;
39
234
  if (typeNode === null) {
40
235
  return missingType();
41
236
  }
42
- if (!ts2.isTypeReferenceNode(typeNode)) {
237
+ if (!ts3.isTypeReferenceNode(typeNode)) {
43
238
  return unsupportedType(typeNode);
44
239
  }
45
240
  const symbols = resolveTypeSymbols(typeNode, checker);
@@ -47,22 +242,22 @@ function typeToValue(typeNode, checker, isLocalCompilation) {
47
242
  return unknownReference(typeNode);
48
243
  }
49
244
  const { local, decl } = symbols;
50
- if (decl.valueDeclaration === void 0 || decl.flags & ts2.SymbolFlags.ConstEnum) {
245
+ if (decl.valueDeclaration === void 0 || decl.flags & ts3.SymbolFlags.ConstEnum) {
51
246
  let typeOnlyDecl = null;
52
247
  if (decl.declarations !== void 0 && decl.declarations.length > 0) {
53
248
  typeOnlyDecl = decl.declarations[0];
54
249
  }
55
250
  if (!isLocalCompilation || typeOnlyDecl && [
56
- ts2.SyntaxKind.TypeParameter,
57
- ts2.SyntaxKind.TypeAliasDeclaration,
58
- ts2.SyntaxKind.InterfaceDeclaration
251
+ ts3.SyntaxKind.TypeParameter,
252
+ ts3.SyntaxKind.TypeAliasDeclaration,
253
+ ts3.SyntaxKind.InterfaceDeclaration
59
254
  ].includes(typeOnlyDecl.kind)) {
60
255
  return noValueDeclaration(typeNode, typeOnlyDecl);
61
256
  }
62
257
  }
63
258
  const firstDecl = local.declarations && local.declarations[0];
64
259
  if (firstDecl !== void 0) {
65
- if (ts2.isImportClause(firstDecl) && firstDecl.name !== void 0) {
260
+ if (ts3.isImportClause(firstDecl) && firstDecl.name !== void 0) {
66
261
  if (firstDecl.isTypeOnly) {
67
262
  return typeOnlyImport(typeNode, firstDecl);
68
263
  }
@@ -71,7 +266,7 @@ function typeToValue(typeNode, checker, isLocalCompilation) {
71
266
  expression: firstDecl.name,
72
267
  defaultImportStatement: firstDecl.parent
73
268
  };
74
- } else if (ts2.isImportSpecifier(firstDecl)) {
269
+ } else if (ts3.isImportSpecifier(firstDecl)) {
75
270
  if (firstDecl.isTypeOnly) {
76
271
  return typeOnlyImport(typeNode, firstDecl);
77
272
  }
@@ -88,7 +283,7 @@ function typeToValue(typeNode, checker, isLocalCompilation) {
88
283
  importedName,
89
284
  nestedPath
90
285
  };
91
- } else if (ts2.isNamespaceImport(firstDecl)) {
286
+ } else if (ts3.isNamespaceImport(firstDecl)) {
92
287
  if (firstDecl.parent.isTypeOnly) {
93
288
  return typeOnlyImport(typeNode, firstDecl.parent);
94
289
  }
@@ -154,7 +349,7 @@ function missingType() {
154
349
  };
155
350
  }
156
351
  function typeNodeToValueExpr(node) {
157
- if (ts2.isTypeReferenceNode(node)) {
352
+ if (ts3.isTypeReferenceNode(node)) {
158
353
  return entityNameToValue(node.typeName);
159
354
  } else {
160
355
  return null;
@@ -169,7 +364,7 @@ function resolveTypeSymbols(typeRef, checker) {
169
364
  let local = typeRefSymbol;
170
365
  let leftMost = typeName;
171
366
  const symbolNames = [];
172
- while (ts2.isQualifiedName(leftMost)) {
367
+ while (ts3.isQualifiedName(leftMost)) {
173
368
  symbolNames.unshift(leftMost.right.text);
174
369
  leftMost = leftMost.left;
175
370
  }
@@ -181,17 +376,17 @@ function resolveTypeSymbols(typeRef, checker) {
181
376
  }
182
377
  }
183
378
  let decl = typeRefSymbol;
184
- if (typeRefSymbol.flags & ts2.SymbolFlags.Alias) {
379
+ if (typeRefSymbol.flags & ts3.SymbolFlags.Alias) {
185
380
  decl = checker.getAliasedSymbol(typeRefSymbol);
186
381
  }
187
382
  return { local, decl, symbolNames };
188
383
  }
189
384
  function entityNameToValue(node) {
190
- if (ts2.isQualifiedName(node)) {
385
+ if (ts3.isQualifiedName(node)) {
191
386
  const left = entityNameToValue(node.left);
192
- return left !== null ? ts2.factory.createPropertyAccessExpression(left, node.right) : null;
193
- } else if (ts2.isIdentifier(node)) {
194
- const clone = ts2.setOriginalNode(ts2.factory.createIdentifier(node.text), node);
387
+ return left !== null ? ts3.factory.createPropertyAccessExpression(left, node.right) : null;
388
+ } else if (ts3.isIdentifier(node)) {
389
+ const clone = ts3.setOriginalNode(ts3.factory.createIdentifier(node.text), node);
195
390
  clone.parent = node.parent;
196
391
  return clone;
197
392
  } else {
@@ -199,29 +394,29 @@ function entityNameToValue(node) {
199
394
  }
200
395
  }
201
396
  function extractModuleName(node) {
202
- if (!ts2.isStringLiteral(node.moduleSpecifier)) {
397
+ if (!ts3.isStringLiteral(node.moduleSpecifier)) {
203
398
  throw new Error("not a module specifier");
204
399
  }
205
400
  return node.moduleSpecifier.text;
206
401
  }
207
402
 
208
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/util.mjs
209
- import ts3 from "typescript";
403
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/util.mjs
404
+ import ts4 from "typescript";
210
405
  function isNamedClassDeclaration(node) {
211
- return ts3.isClassDeclaration(node) && isIdentifier(node.name);
406
+ return ts4.isClassDeclaration(node) && isIdentifier(node.name);
212
407
  }
213
408
  function isIdentifier(node) {
214
- return node !== void 0 && ts3.isIdentifier(node);
409
+ return node !== void 0 && ts4.isIdentifier(node);
215
410
  }
216
411
 
217
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
412
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
218
413
  var TypeScriptReflectionHost = class {
219
414
  constructor(checker, isLocalCompilation = false) {
220
415
  this.checker = checker;
221
416
  this.isLocalCompilation = isLocalCompilation;
222
417
  }
223
418
  getDecoratorsOfDeclaration(declaration) {
224
- const decorators = ts4.canHaveDecorators(declaration) ? ts4.getDecorators(declaration) : void 0;
419
+ const decorators = ts5.canHaveDecorators(declaration) ? ts5.getDecorators(declaration) : void 0;
225
420
  return decorators !== void 0 && decorators.length ? decorators.map((decorator) => this._reflectDecorator(decorator)).filter((dec) => dec !== null) : null;
226
421
  }
227
422
  getMembersOfClass(clazz) {
@@ -231,7 +426,7 @@ var TypeScriptReflectionHost = class {
231
426
  getConstructorParameters(clazz) {
232
427
  const tsClazz = castDeclarationToClassOrDie(clazz);
233
428
  const isDeclaration2 = tsClazz.getSourceFile().isDeclarationFile;
234
- const ctor = tsClazz.members.find((member) => ts4.isConstructorDeclaration(member) && (isDeclaration2 || member.body !== void 0));
429
+ const ctor = tsClazz.members.find((member) => ts5.isConstructorDeclaration(member) && (isDeclaration2 || member.body !== void 0));
235
430
  if (ctor === void 0) {
236
431
  return null;
237
432
  }
@@ -240,8 +435,8 @@ var TypeScriptReflectionHost = class {
240
435
  const decorators = this.getDecoratorsOfDeclaration(node);
241
436
  let originalTypeNode = node.type || null;
242
437
  let typeNode = originalTypeNode;
243
- if (typeNode && ts4.isUnionTypeNode(typeNode)) {
244
- let childTypeNodes = typeNode.types.filter((childTypeNode) => !(ts4.isLiteralTypeNode(childTypeNode) && childTypeNode.literal.kind === ts4.SyntaxKind.NullKeyword));
438
+ if (typeNode && ts5.isUnionTypeNode(typeNode)) {
439
+ let childTypeNodes = typeNode.types.filter((childTypeNode) => !(ts5.isLiteralTypeNode(childTypeNode) && childTypeNode.literal.kind === ts5.SyntaxKind.NullKeyword));
245
440
  if (childTypeNodes.length === 1) {
246
441
  typeNode = childTypeNodes[0];
247
442
  }
@@ -260,16 +455,16 @@ var TypeScriptReflectionHost = class {
260
455
  const directImport = this.getDirectImportOfIdentifier(id);
261
456
  if (directImport !== null) {
262
457
  return directImport;
263
- } else if (ts4.isQualifiedName(id.parent) && id.parent.right === id) {
458
+ } else if (ts5.isQualifiedName(id.parent) && id.parent.right === id) {
264
459
  return this.getImportOfNamespacedIdentifier(id, getQualifiedNameRoot(id.parent));
265
- } else if (ts4.isPropertyAccessExpression(id.parent) && id.parent.name === id) {
460
+ } else if (ts5.isPropertyAccessExpression(id.parent) && id.parent.name === id) {
266
461
  return this.getImportOfNamespacedIdentifier(id, getFarLeftIdentifier(id.parent));
267
462
  } else {
268
463
  return null;
269
464
  }
270
465
  }
271
466
  getExportsOfModule(node) {
272
- if (!ts4.isSourceFile(node)) {
467
+ if (!ts5.isSourceFile(node)) {
273
468
  throw new Error(`getExportsOfModule() called on non-SourceFile in TS code`);
274
469
  }
275
470
  const symbol = this.checker.getSymbolAtLocation(node);
@@ -292,10 +487,10 @@ var TypeScriptReflectionHost = class {
292
487
  return this.getBaseClassExpression(clazz) !== null;
293
488
  }
294
489
  getBaseClassExpression(clazz) {
295
- if (!(ts4.isClassDeclaration(clazz) || ts4.isClassExpression(clazz)) || clazz.heritageClauses === void 0) {
490
+ if (!(ts5.isClassDeclaration(clazz) || ts5.isClassExpression(clazz)) || clazz.heritageClauses === void 0) {
296
491
  return null;
297
492
  }
298
- const extendsClause = clazz.heritageClauses.find((clause) => clause.token === ts4.SyntaxKind.ExtendsKeyword);
493
+ const extendsClause = clazz.heritageClauses.find((clause) => clause.token === ts5.SyntaxKind.ExtendsKeyword);
299
494
  if (extendsClause === void 0) {
300
495
  return null;
301
496
  }
@@ -313,15 +508,15 @@ var TypeScriptReflectionHost = class {
313
508
  return this.getDeclarationOfSymbol(symbol, id);
314
509
  }
315
510
  getDefinitionOfFunction(node) {
316
- if (!ts4.isFunctionDeclaration(node) && !ts4.isMethodDeclaration(node) && !ts4.isFunctionExpression(node) && !ts4.isArrowFunction(node)) {
511
+ if (!ts5.isFunctionDeclaration(node) && !ts5.isMethodDeclaration(node) && !ts5.isFunctionExpression(node) && !ts5.isArrowFunction(node)) {
317
512
  return null;
318
513
  }
319
514
  let body = null;
320
515
  if (node.body !== void 0) {
321
- body = ts4.isBlock(node.body) ? Array.from(node.body.statements) : [ts4.factory.createReturnStatement(node.body)];
516
+ body = ts5.isBlock(node.body) ? Array.from(node.body.statements) : [ts5.factory.createReturnStatement(node.body)];
322
517
  }
323
518
  const type = this.checker.getTypeAtLocation(node);
324
- const signatures = this.checker.getSignaturesOfType(type, ts4.SignatureKind.Call);
519
+ const signatures = this.checker.getSignaturesOfType(type, ts5.SignatureKind.Call);
325
520
  return {
326
521
  node,
327
522
  body,
@@ -335,7 +530,7 @@ var TypeScriptReflectionHost = class {
335
530
  };
336
531
  }
337
532
  getGenericArityOfClass(clazz) {
338
- if (!ts4.isClassDeclaration(clazz)) {
533
+ if (!ts5.isClassDeclaration(clazz)) {
339
534
  return null;
340
535
  }
341
536
  return clazz.typeParameters !== void 0 ? clazz.typeParameters.length : 0;
@@ -345,14 +540,14 @@ var TypeScriptReflectionHost = class {
345
540
  }
346
541
  isStaticallyExported(decl) {
347
542
  let topLevel = decl;
348
- if (ts4.isVariableDeclaration(decl) && ts4.isVariableDeclarationList(decl.parent)) {
543
+ if (ts5.isVariableDeclaration(decl) && ts5.isVariableDeclarationList(decl.parent)) {
349
544
  topLevel = decl.parent.parent;
350
545
  }
351
- const modifiers = ts4.canHaveModifiers(topLevel) ? ts4.getModifiers(topLevel) : void 0;
352
- if (modifiers !== void 0 && modifiers.some((modifier) => modifier.kind === ts4.SyntaxKind.ExportKeyword)) {
546
+ const modifiers = ts5.canHaveModifiers(topLevel) ? ts5.getModifiers(topLevel) : void 0;
547
+ if (modifiers !== void 0 && modifiers.some((modifier) => modifier.kind === ts5.SyntaxKind.ExportKeyword)) {
353
548
  return true;
354
549
  }
355
- if (topLevel.parent === void 0 || !ts4.isSourceFile(topLevel.parent)) {
550
+ if (topLevel.parent === void 0 || !ts5.isSourceFile(topLevel.parent)) {
356
551
  return false;
357
552
  }
358
553
  const localExports = this.getLocalExportedDeclarationsOfSourceFile(decl.getSourceFile());
@@ -368,7 +563,7 @@ var TypeScriptReflectionHost = class {
368
563
  if (importDecl === null) {
369
564
  return null;
370
565
  }
371
- if (!ts4.isStringLiteral(importDecl.moduleSpecifier)) {
566
+ if (!ts5.isStringLiteral(importDecl.moduleSpecifier)) {
372
567
  return null;
373
568
  }
374
569
  return {
@@ -389,12 +584,12 @@ var TypeScriptReflectionHost = class {
389
584
  if (!declaration) {
390
585
  return null;
391
586
  }
392
- const namespaceDeclaration = ts4.isNamespaceImport(declaration) ? declaration : null;
587
+ const namespaceDeclaration = ts5.isNamespaceImport(declaration) ? declaration : null;
393
588
  if (!namespaceDeclaration) {
394
589
  return null;
395
590
  }
396
591
  const importDeclaration = namespaceDeclaration.parent.parent;
397
- if (!ts4.isStringLiteral(importDeclaration.moduleSpecifier)) {
592
+ if (!ts5.isStringLiteral(importDeclaration.moduleSpecifier)) {
398
593
  return null;
399
594
  }
400
595
  return {
@@ -410,13 +605,13 @@ var TypeScriptReflectionHost = class {
410
605
  } else if (symbol.declarations !== void 0 && symbol.declarations.length > 0) {
411
606
  valueDeclaration = symbol.declarations[0];
412
607
  }
413
- if (valueDeclaration !== void 0 && ts4.isShorthandPropertyAssignment(valueDeclaration)) {
608
+ if (valueDeclaration !== void 0 && ts5.isShorthandPropertyAssignment(valueDeclaration)) {
414
609
  const shorthandSymbol = this.checker.getShorthandAssignmentValueSymbol(valueDeclaration);
415
610
  if (shorthandSymbol === void 0) {
416
611
  return null;
417
612
  }
418
613
  return this.getDeclarationOfSymbol(shorthandSymbol, originalId);
419
- } else if (valueDeclaration !== void 0 && ts4.isExportSpecifier(valueDeclaration)) {
614
+ } else if (valueDeclaration !== void 0 && ts5.isExportSpecifier(valueDeclaration)) {
420
615
  const targetSymbol = this.checker.getExportSpecifierLocalTargetSymbol(valueDeclaration);
421
616
  if (targetSymbol === void 0) {
422
617
  return null;
@@ -424,7 +619,7 @@ var TypeScriptReflectionHost = class {
424
619
  return this.getDeclarationOfSymbol(targetSymbol, originalId);
425
620
  }
426
621
  const importInfo = originalId && this.getImportOfIdentifier(originalId);
427
- while (symbol.flags & ts4.SymbolFlags.Alias) {
622
+ while (symbol.flags & ts5.SymbolFlags.Alias) {
428
623
  symbol = this.checker.getAliasedSymbol(symbol);
429
624
  }
430
625
  if (symbol.valueDeclaration !== void 0) {
@@ -444,14 +639,14 @@ var TypeScriptReflectionHost = class {
444
639
  _reflectDecorator(node) {
445
640
  let decoratorExpr = node.expression;
446
641
  let args = null;
447
- if (ts4.isCallExpression(decoratorExpr)) {
642
+ if (ts5.isCallExpression(decoratorExpr)) {
448
643
  args = Array.from(decoratorExpr.arguments);
449
644
  decoratorExpr = decoratorExpr.expression;
450
645
  }
451
646
  if (!isDecoratorIdentifier(decoratorExpr)) {
452
647
  return null;
453
648
  }
454
- const decoratorIdentifier = ts4.isIdentifier(decoratorExpr) ? decoratorExpr : decoratorExpr.name;
649
+ const decoratorIdentifier = ts5.isIdentifier(decoratorExpr) ? decoratorExpr : decoratorExpr.name;
455
650
  const importDecl = this.getImportOfIdentifier(decoratorIdentifier);
456
651
  return {
457
652
  name: decoratorIdentifier.text,
@@ -466,34 +661,34 @@ var TypeScriptReflectionHost = class {
466
661
  let value = null;
467
662
  let name = null;
468
663
  let nameNode = null;
469
- if (ts4.isPropertyDeclaration(node)) {
664
+ if (ts5.isPropertyDeclaration(node)) {
470
665
  kind = ClassMemberKind.Property;
471
666
  value = node.initializer || null;
472
- } else if (ts4.isGetAccessorDeclaration(node)) {
667
+ } else if (ts5.isGetAccessorDeclaration(node)) {
473
668
  kind = ClassMemberKind.Getter;
474
- } else if (ts4.isSetAccessorDeclaration(node)) {
669
+ } else if (ts5.isSetAccessorDeclaration(node)) {
475
670
  kind = ClassMemberKind.Setter;
476
- } else if (ts4.isMethodDeclaration(node)) {
671
+ } else if (ts5.isMethodDeclaration(node)) {
477
672
  kind = ClassMemberKind.Method;
478
- } else if (ts4.isConstructorDeclaration(node)) {
673
+ } else if (ts5.isConstructorDeclaration(node)) {
479
674
  kind = ClassMemberKind.Constructor;
480
675
  } else {
481
676
  return null;
482
677
  }
483
- if (ts4.isConstructorDeclaration(node)) {
678
+ if (ts5.isConstructorDeclaration(node)) {
484
679
  name = "constructor";
485
- } else if (ts4.isIdentifier(node.name)) {
680
+ } else if (ts5.isIdentifier(node.name)) {
486
681
  name = node.name.text;
487
682
  nameNode = node.name;
488
- } else if (ts4.isStringLiteral(node.name)) {
683
+ } else if (ts5.isStringLiteral(node.name)) {
489
684
  name = node.name.text;
490
685
  nameNode = node.name;
491
686
  } else {
492
687
  return null;
493
688
  }
494
689
  const decorators = this.getDecoratorsOfDeclaration(node);
495
- const modifiers = ts4.getModifiers(node);
496
- const isStatic = modifiers !== void 0 && modifiers.some((mod) => mod.kind === ts4.SyntaxKind.StaticKeyword);
690
+ const modifiers = ts5.getModifiers(node);
691
+ const isStatic = modifiers !== void 0 && modifiers.some((mod) => mod.kind === ts5.SyntaxKind.StaticKeyword);
497
692
  return {
498
693
  node,
499
694
  implementation: node,
@@ -521,7 +716,7 @@ var TypeScriptReflectionHost = class {
521
716
  let item = iter.next();
522
717
  while (item.done !== true) {
523
718
  let exportedSymbol = item.value;
524
- if (exportedSymbol.flags & ts4.SymbolFlags.Alias) {
719
+ if (exportedSymbol.flags & ts5.SymbolFlags.Alias) {
525
720
  exportedSymbol = this.checker.getAliasedSymbol(exportedSymbol);
526
721
  }
527
722
  if (exportedSymbol.valueDeclaration !== void 0 && exportedSymbol.valueDeclaration.getSourceFile() === file) {
@@ -543,7 +738,7 @@ function reflectTypeEntityToDeclaration(type, checker) {
543
738
  if (realSymbol === void 0) {
544
739
  throw new Error(`Cannot resolve type entity ${type.getText()} to symbol`);
545
740
  }
546
- while (realSymbol.flags & ts4.SymbolFlags.Alias) {
741
+ while (realSymbol.flags & ts5.SymbolFlags.Alias) {
547
742
  realSymbol = checker.getAliasedSymbol(realSymbol);
548
743
  }
549
744
  let node = null;
@@ -554,8 +749,8 @@ function reflectTypeEntityToDeclaration(type, checker) {
554
749
  } else {
555
750
  throw new Error(`Cannot resolve type entity symbol to declaration`);
556
751
  }
557
- if (ts4.isQualifiedName(type)) {
558
- if (!ts4.isIdentifier(type.left)) {
752
+ if (ts5.isQualifiedName(type)) {
753
+ if (!ts5.isIdentifier(type.left)) {
559
754
  throw new Error(`Cannot handle qualified name with non-identifier lhs`);
560
755
  }
561
756
  const symbol = checker.getSymbolAtLocation(type.left);
@@ -563,14 +758,14 @@ function reflectTypeEntityToDeclaration(type, checker) {
563
758
  throw new Error(`Cannot resolve qualified type entity lhs to symbol`);
564
759
  }
565
760
  const decl = symbol.declarations[0];
566
- if (ts4.isNamespaceImport(decl)) {
761
+ if (ts5.isNamespaceImport(decl)) {
567
762
  const clause = decl.parent;
568
763
  const importDecl = clause.parent;
569
- if (!ts4.isStringLiteral(importDecl.moduleSpecifier)) {
764
+ if (!ts5.isStringLiteral(importDecl.moduleSpecifier)) {
570
765
  throw new Error(`Module specifier is not a string`);
571
766
  }
572
767
  return { node, from: importDecl.moduleSpecifier.text };
573
- } else if (ts4.isModuleDeclaration(decl)) {
768
+ } else if (ts5.isModuleDeclaration(decl)) {
574
769
  return { node, from: null };
575
770
  } else {
576
771
  throw new Error(`Unknown import type?`);
@@ -600,13 +795,13 @@ function filterToMembersWithDecorator(members, name, module) {
600
795
  function reflectObjectLiteral(node) {
601
796
  const map = /* @__PURE__ */ new Map();
602
797
  node.properties.forEach((prop) => {
603
- if (ts4.isPropertyAssignment(prop)) {
798
+ if (ts5.isPropertyAssignment(prop)) {
604
799
  const name = propertyNameToString(prop.name);
605
800
  if (name === null) {
606
801
  return;
607
802
  }
608
803
  map.set(name, prop.initializer);
609
- } else if (ts4.isShorthandPropertyAssignment(prop)) {
804
+ } else if (ts5.isShorthandPropertyAssignment(prop)) {
610
805
  map.set(prop.name.text, prop.name);
611
806
  } else {
612
807
  return;
@@ -615,41 +810,41 @@ function reflectObjectLiteral(node) {
615
810
  return map;
616
811
  }
617
812
  function castDeclarationToClassOrDie(declaration) {
618
- if (!ts4.isClassDeclaration(declaration)) {
619
- throw new Error(`Reflecting on a ${ts4.SyntaxKind[declaration.kind]} instead of a ClassDeclaration.`);
813
+ if (!ts5.isClassDeclaration(declaration)) {
814
+ throw new Error(`Reflecting on a ${ts5.SyntaxKind[declaration.kind]} instead of a ClassDeclaration.`);
620
815
  }
621
816
  return declaration;
622
817
  }
623
818
  function parameterName(name) {
624
- if (ts4.isIdentifier(name)) {
819
+ if (ts5.isIdentifier(name)) {
625
820
  return name.text;
626
821
  } else {
627
822
  return null;
628
823
  }
629
824
  }
630
825
  function propertyNameToString(node) {
631
- if (ts4.isIdentifier(node) || ts4.isStringLiteral(node) || ts4.isNumericLiteral(node)) {
826
+ if (ts5.isIdentifier(node) || ts5.isStringLiteral(node) || ts5.isNumericLiteral(node)) {
632
827
  return node.text;
633
828
  } else {
634
829
  return null;
635
830
  }
636
831
  }
637
832
  function getQualifiedNameRoot(qualifiedName) {
638
- while (ts4.isQualifiedName(qualifiedName.left)) {
833
+ while (ts5.isQualifiedName(qualifiedName.left)) {
639
834
  qualifiedName = qualifiedName.left;
640
835
  }
641
- return ts4.isIdentifier(qualifiedName.left) ? qualifiedName.left : null;
836
+ return ts5.isIdentifier(qualifiedName.left) ? qualifiedName.left : null;
642
837
  }
643
838
  function getFarLeftIdentifier(propertyAccess) {
644
- while (ts4.isPropertyAccessExpression(propertyAccess.expression)) {
839
+ while (ts5.isPropertyAccessExpression(propertyAccess.expression)) {
645
840
  propertyAccess = propertyAccess.expression;
646
841
  }
647
- return ts4.isIdentifier(propertyAccess.expression) ? propertyAccess.expression : null;
842
+ return ts5.isIdentifier(propertyAccess.expression) ? propertyAccess.expression : null;
648
843
  }
649
844
  function getContainingImportDeclaration(node) {
650
845
  let parent = node.parent;
651
- while (parent && !ts4.isSourceFile(parent)) {
652
- if (ts4.isImportDeclaration(parent)) {
846
+ while (parent && !ts5.isSourceFile(parent)) {
847
+ if (ts5.isImportDeclaration(parent)) {
653
848
  return parent;
654
849
  }
655
850
  parent = parent.parent;
@@ -657,12 +852,12 @@ function getContainingImportDeclaration(node) {
657
852
  return null;
658
853
  }
659
854
  function getExportedName(decl, originalId) {
660
- return ts4.isImportSpecifier(decl) ? (decl.propertyName !== void 0 ? decl.propertyName : decl.name).text : originalId.text;
855
+ return ts5.isImportSpecifier(decl) ? (decl.propertyName !== void 0 ? decl.propertyName : decl.name).text : originalId.text;
661
856
  }
662
857
  var LocalExportedDeclarations = Symbol("LocalExportedDeclarations");
663
858
 
664
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/typescript.mjs
665
- import ts5 from "typescript";
859
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/typescript.mjs
860
+ import ts6 from "typescript";
666
861
  var TS = /\.tsx?$/i;
667
862
  var D_TS = /\.d\.ts$/i;
668
863
  function isSymbolWithValueDeclaration(symbol) {
@@ -677,31 +872,31 @@ function isNonDeclarationTsPath(filePath) {
677
872
  function isFromDtsFile(node) {
678
873
  let sf = node.getSourceFile();
679
874
  if (sf === void 0) {
680
- sf = ts5.getOriginalNode(node).getSourceFile();
875
+ sf = ts6.getOriginalNode(node).getSourceFile();
681
876
  }
682
877
  return sf !== void 0 && sf.isDeclarationFile;
683
878
  }
684
879
  function nodeNameForError(node) {
685
- if (node.name !== void 0 && ts5.isIdentifier(node.name)) {
880
+ if (node.name !== void 0 && ts6.isIdentifier(node.name)) {
686
881
  return node.name.text;
687
882
  } else {
688
- const kind = ts5.SyntaxKind[node.kind];
689
- const { line, character } = ts5.getLineAndCharacterOfPosition(node.getSourceFile(), node.getStart());
883
+ const kind = ts6.SyntaxKind[node.kind];
884
+ const { line, character } = ts6.getLineAndCharacterOfPosition(node.getSourceFile(), node.getStart());
690
885
  return `${kind}@${line}:${character}`;
691
886
  }
692
887
  }
693
888
  function getSourceFile(node) {
694
889
  const directSf = node.getSourceFile();
695
- return directSf !== void 0 ? directSf : ts5.getOriginalNode(node).getSourceFile();
890
+ return directSf !== void 0 ? directSf : ts6.getOriginalNode(node).getSourceFile();
696
891
  }
697
892
  function getSourceFileOrNull(program, fileName) {
698
893
  return program.getSourceFile(fileName) || null;
699
894
  }
700
895
  function getTokenAtPosition(sf, pos) {
701
- return ts5.getTokenAtPosition(sf, pos);
896
+ return ts6.getTokenAtPosition(sf, pos);
702
897
  }
703
898
  function identifierOfNode(decl) {
704
- if (decl.name !== void 0 && ts5.isIdentifier(decl.name)) {
899
+ if (decl.name !== void 0 && ts6.isIdentifier(decl.name)) {
705
900
  return decl.name;
706
901
  } else {
707
902
  return null;
@@ -711,14 +906,14 @@ function isDeclaration(node) {
711
906
  return isValueDeclaration(node) || isTypeDeclaration(node);
712
907
  }
713
908
  function isValueDeclaration(node) {
714
- return ts5.isClassDeclaration(node) || ts5.isFunctionDeclaration(node) || ts5.isVariableDeclaration(node);
909
+ return ts6.isClassDeclaration(node) || ts6.isFunctionDeclaration(node) || ts6.isVariableDeclaration(node);
715
910
  }
716
911
  function isTypeDeclaration(node) {
717
- return ts5.isEnumDeclaration(node) || ts5.isTypeAliasDeclaration(node) || ts5.isInterfaceDeclaration(node);
912
+ return ts6.isEnumDeclaration(node) || ts6.isTypeAliasDeclaration(node) || ts6.isInterfaceDeclaration(node);
718
913
  }
719
914
  function isNamedDeclaration(node) {
720
915
  const namedNode = node;
721
- return namedNode.name !== void 0 && ts5.isIdentifier(namedNode.name);
916
+ return namedNode.name !== void 0 && ts6.isIdentifier(namedNode.name);
722
917
  }
723
918
  function getRootDirs(host, options) {
724
919
  const rootDirs = [];
@@ -735,8 +930,8 @@ function getRootDirs(host, options) {
735
930
  }
736
931
  function nodeDebugInfo(node) {
737
932
  const sf = getSourceFile(node);
738
- const { line, character } = ts5.getLineAndCharacterOfPosition(sf, node.pos);
739
- return `[${sf.fileName}: ${ts5.SyntaxKind[node.kind]} @ ${line}:${character}]`;
933
+ const { line, character } = ts6.getLineAndCharacterOfPosition(sf, node.pos);
934
+ return `[${sf.fileName}: ${ts6.SyntaxKind[node.kind]} @ ${line}:${character}]`;
740
935
  }
741
936
  function resolveModuleName(moduleName, containingFile, compilerOptions, compilerHost, moduleResolutionCache) {
742
937
  if (compilerHost.resolveModuleNames) {
@@ -748,11 +943,11 @@ function resolveModuleName(moduleName, containingFile, compilerOptions, compiler
748
943
  compilerOptions
749
944
  )[0];
750
945
  } else {
751
- return ts5.resolveModuleName(moduleName, containingFile, compilerOptions, compilerHost, moduleResolutionCache !== null ? moduleResolutionCache : void 0).resolvedModule;
946
+ return ts6.resolveModuleName(moduleName, containingFile, compilerOptions, compilerHost, moduleResolutionCache !== null ? moduleResolutionCache : void 0).resolvedModule;
752
947
  }
753
948
  }
754
949
  function isAssignment(node) {
755
- return ts5.isBinaryExpression(node) && node.operatorToken.kind === ts5.SyntaxKind.EqualsToken;
950
+ return ts6.isBinaryExpression(node) && node.operatorToken.kind === ts6.SyntaxKind.EqualsToken;
756
951
  }
757
952
  function toUnredirectedSourceFile(sf) {
758
953
  const redirectInfo = sf.redirectInfo;
@@ -762,7 +957,7 @@ function toUnredirectedSourceFile(sf) {
762
957
  return redirectInfo.unredirected;
763
958
  }
764
959
 
765
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/references.mjs
960
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/references.mjs
766
961
  var Reference = class {
767
962
  constructor(node, bestGuessOwningModule = null) {
768
963
  this.node = node;
@@ -831,206 +1026,14 @@ var Reference = class {
831
1026
  }
832
1027
  };
833
1028
 
834
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
1029
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
835
1030
  import { ExternalExpr as ExternalExpr2 } from "@angular/compiler";
836
1031
 
837
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
1032
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
838
1033
  import { ExternalExpr, ExternalReference, WrappedNodeExpr } from "@angular/compiler";
839
1034
  import ts7 from "typescript";
840
1035
 
841
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_code.mjs
842
- var ErrorCode;
843
- (function(ErrorCode2) {
844
- ErrorCode2[ErrorCode2["DECORATOR_ARG_NOT_LITERAL"] = 1001] = "DECORATOR_ARG_NOT_LITERAL";
845
- ErrorCode2[ErrorCode2["DECORATOR_ARITY_WRONG"] = 1002] = "DECORATOR_ARITY_WRONG";
846
- ErrorCode2[ErrorCode2["DECORATOR_NOT_CALLED"] = 1003] = "DECORATOR_NOT_CALLED";
847
- ErrorCode2[ErrorCode2["DECORATOR_UNEXPECTED"] = 1005] = "DECORATOR_UNEXPECTED";
848
- ErrorCode2[ErrorCode2["DECORATOR_COLLISION"] = 1006] = "DECORATOR_COLLISION";
849
- ErrorCode2[ErrorCode2["VALUE_HAS_WRONG_TYPE"] = 1010] = "VALUE_HAS_WRONG_TYPE";
850
- ErrorCode2[ErrorCode2["VALUE_NOT_LITERAL"] = 1011] = "VALUE_NOT_LITERAL";
851
- ErrorCode2[ErrorCode2["INITIALIZER_API_WITH_DISALLOWED_DECORATOR"] = 1050] = "INITIALIZER_API_WITH_DISALLOWED_DECORATOR";
852
- ErrorCode2[ErrorCode2["INITIALIZER_API_DECORATOR_METADATA_COLLISION"] = 1051] = "INITIALIZER_API_DECORATOR_METADATA_COLLISION";
853
- ErrorCode2[ErrorCode2["INITIALIZER_API_NO_REQUIRED_FUNCTION"] = 1052] = "INITIALIZER_API_NO_REQUIRED_FUNCTION";
854
- ErrorCode2[ErrorCode2["INCORRECTLY_DECLARED_ON_STATIC_MEMBER"] = 1100] = "INCORRECTLY_DECLARED_ON_STATIC_MEMBER";
855
- ErrorCode2[ErrorCode2["COMPONENT_MISSING_TEMPLATE"] = 2001] = "COMPONENT_MISSING_TEMPLATE";
856
- ErrorCode2[ErrorCode2["PIPE_MISSING_NAME"] = 2002] = "PIPE_MISSING_NAME";
857
- ErrorCode2[ErrorCode2["PARAM_MISSING_TOKEN"] = 2003] = "PARAM_MISSING_TOKEN";
858
- ErrorCode2[ErrorCode2["DIRECTIVE_MISSING_SELECTOR"] = 2004] = "DIRECTIVE_MISSING_SELECTOR";
859
- ErrorCode2[ErrorCode2["UNDECORATED_PROVIDER"] = 2005] = "UNDECORATED_PROVIDER";
860
- ErrorCode2[ErrorCode2["DIRECTIVE_INHERITS_UNDECORATED_CTOR"] = 2006] = "DIRECTIVE_INHERITS_UNDECORATED_CTOR";
861
- ErrorCode2[ErrorCode2["UNDECORATED_CLASS_USING_ANGULAR_FEATURES"] = 2007] = "UNDECORATED_CLASS_USING_ANGULAR_FEATURES";
862
- ErrorCode2[ErrorCode2["COMPONENT_RESOURCE_NOT_FOUND"] = 2008] = "COMPONENT_RESOURCE_NOT_FOUND";
863
- ErrorCode2[ErrorCode2["COMPONENT_INVALID_SHADOW_DOM_SELECTOR"] = 2009] = "COMPONENT_INVALID_SHADOW_DOM_SELECTOR";
864
- ErrorCode2[ErrorCode2["COMPONENT_NOT_STANDALONE"] = 2010] = "COMPONENT_NOT_STANDALONE";
865
- ErrorCode2[ErrorCode2["COMPONENT_IMPORT_NOT_STANDALONE"] = 2011] = "COMPONENT_IMPORT_NOT_STANDALONE";
866
- ErrorCode2[ErrorCode2["COMPONENT_UNKNOWN_IMPORT"] = 2012] = "COMPONENT_UNKNOWN_IMPORT";
867
- ErrorCode2[ErrorCode2["HOST_DIRECTIVE_INVALID"] = 2013] = "HOST_DIRECTIVE_INVALID";
868
- ErrorCode2[ErrorCode2["HOST_DIRECTIVE_NOT_STANDALONE"] = 2014] = "HOST_DIRECTIVE_NOT_STANDALONE";
869
- ErrorCode2[ErrorCode2["HOST_DIRECTIVE_COMPONENT"] = 2015] = "HOST_DIRECTIVE_COMPONENT";
870
- ErrorCode2[ErrorCode2["INJECTABLE_INHERITS_INVALID_CONSTRUCTOR"] = 2016] = "INJECTABLE_INHERITS_INVALID_CONSTRUCTOR";
871
- ErrorCode2[ErrorCode2["HOST_DIRECTIVE_UNDEFINED_BINDING"] = 2017] = "HOST_DIRECTIVE_UNDEFINED_BINDING";
872
- ErrorCode2[ErrorCode2["HOST_DIRECTIVE_CONFLICTING_ALIAS"] = 2018] = "HOST_DIRECTIVE_CONFLICTING_ALIAS";
873
- ErrorCode2[ErrorCode2["HOST_DIRECTIVE_MISSING_REQUIRED_BINDING"] = 2019] = "HOST_DIRECTIVE_MISSING_REQUIRED_BINDING";
874
- ErrorCode2[ErrorCode2["CONFLICTING_INPUT_TRANSFORM"] = 2020] = "CONFLICTING_INPUT_TRANSFORM";
875
- ErrorCode2[ErrorCode2["COMPONENT_INVALID_STYLE_URLS"] = 2021] = "COMPONENT_INVALID_STYLE_URLS";
876
- ErrorCode2[ErrorCode2["COMPONENT_UNKNOWN_DEFERRED_IMPORT"] = 2022] = "COMPONENT_UNKNOWN_DEFERRED_IMPORT";
877
- ErrorCode2[ErrorCode2["SYMBOL_NOT_EXPORTED"] = 3001] = "SYMBOL_NOT_EXPORTED";
878
- ErrorCode2[ErrorCode2["IMPORT_CYCLE_DETECTED"] = 3003] = "IMPORT_CYCLE_DETECTED";
879
- ErrorCode2[ErrorCode2["IMPORT_GENERATION_FAILURE"] = 3004] = "IMPORT_GENERATION_FAILURE";
880
- ErrorCode2[ErrorCode2["CONFIG_FLAT_MODULE_NO_INDEX"] = 4001] = "CONFIG_FLAT_MODULE_NO_INDEX";
881
- ErrorCode2[ErrorCode2["CONFIG_STRICT_TEMPLATES_IMPLIES_FULL_TEMPLATE_TYPECHECK"] = 4002] = "CONFIG_STRICT_TEMPLATES_IMPLIES_FULL_TEMPLATE_TYPECHECK";
882
- ErrorCode2[ErrorCode2["CONFIG_EXTENDED_DIAGNOSTICS_IMPLIES_STRICT_TEMPLATES"] = 4003] = "CONFIG_EXTENDED_DIAGNOSTICS_IMPLIES_STRICT_TEMPLATES";
883
- ErrorCode2[ErrorCode2["CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CATEGORY_LABEL"] = 4004] = "CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CATEGORY_LABEL";
884
- ErrorCode2[ErrorCode2["CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CHECK"] = 4005] = "CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CHECK";
885
- ErrorCode2[ErrorCode2["HOST_BINDING_PARSE_ERROR"] = 5001] = "HOST_BINDING_PARSE_ERROR";
886
- ErrorCode2[ErrorCode2["TEMPLATE_PARSE_ERROR"] = 5002] = "TEMPLATE_PARSE_ERROR";
887
- ErrorCode2[ErrorCode2["NGMODULE_INVALID_DECLARATION"] = 6001] = "NGMODULE_INVALID_DECLARATION";
888
- ErrorCode2[ErrorCode2["NGMODULE_INVALID_IMPORT"] = 6002] = "NGMODULE_INVALID_IMPORT";
889
- ErrorCode2[ErrorCode2["NGMODULE_INVALID_EXPORT"] = 6003] = "NGMODULE_INVALID_EXPORT";
890
- ErrorCode2[ErrorCode2["NGMODULE_INVALID_REEXPORT"] = 6004] = "NGMODULE_INVALID_REEXPORT";
891
- ErrorCode2[ErrorCode2["NGMODULE_MODULE_WITH_PROVIDERS_MISSING_GENERIC"] = 6005] = "NGMODULE_MODULE_WITH_PROVIDERS_MISSING_GENERIC";
892
- ErrorCode2[ErrorCode2["NGMODULE_REEXPORT_NAME_COLLISION"] = 6006] = "NGMODULE_REEXPORT_NAME_COLLISION";
893
- ErrorCode2[ErrorCode2["NGMODULE_DECLARATION_NOT_UNIQUE"] = 6007] = "NGMODULE_DECLARATION_NOT_UNIQUE";
894
- ErrorCode2[ErrorCode2["NGMODULE_DECLARATION_IS_STANDALONE"] = 6008] = "NGMODULE_DECLARATION_IS_STANDALONE";
895
- ErrorCode2[ErrorCode2["NGMODULE_BOOTSTRAP_IS_STANDALONE"] = 6009] = "NGMODULE_BOOTSTRAP_IS_STANDALONE";
896
- ErrorCode2[ErrorCode2["WARN_NGMODULE_ID_UNNECESSARY"] = 6100] = "WARN_NGMODULE_ID_UNNECESSARY";
897
- ErrorCode2[ErrorCode2["SCHEMA_INVALID_ELEMENT"] = 8001] = "SCHEMA_INVALID_ELEMENT";
898
- ErrorCode2[ErrorCode2["SCHEMA_INVALID_ATTRIBUTE"] = 8002] = "SCHEMA_INVALID_ATTRIBUTE";
899
- ErrorCode2[ErrorCode2["MISSING_REFERENCE_TARGET"] = 8003] = "MISSING_REFERENCE_TARGET";
900
- ErrorCode2[ErrorCode2["MISSING_PIPE"] = 8004] = "MISSING_PIPE";
901
- ErrorCode2[ErrorCode2["WRITE_TO_READ_ONLY_VARIABLE"] = 8005] = "WRITE_TO_READ_ONLY_VARIABLE";
902
- ErrorCode2[ErrorCode2["DUPLICATE_VARIABLE_DECLARATION"] = 8006] = "DUPLICATE_VARIABLE_DECLARATION";
903
- ErrorCode2[ErrorCode2["SPLIT_TWO_WAY_BINDING"] = 8007] = "SPLIT_TWO_WAY_BINDING";
904
- ErrorCode2[ErrorCode2["MISSING_REQUIRED_INPUTS"] = 8008] = "MISSING_REQUIRED_INPUTS";
905
- ErrorCode2[ErrorCode2["ILLEGAL_FOR_LOOP_TRACK_ACCESS"] = 8009] = "ILLEGAL_FOR_LOOP_TRACK_ACCESS";
906
- ErrorCode2[ErrorCode2["INACCESSIBLE_DEFERRED_TRIGGER_ELEMENT"] = 8010] = "INACCESSIBLE_DEFERRED_TRIGGER_ELEMENT";
907
- ErrorCode2[ErrorCode2["CONTROL_FLOW_PREVENTING_CONTENT_PROJECTION"] = 8011] = "CONTROL_FLOW_PREVENTING_CONTENT_PROJECTION";
908
- ErrorCode2[ErrorCode2["DEFERRED_PIPE_USED_EAGERLY"] = 8012] = "DEFERRED_PIPE_USED_EAGERLY";
909
- ErrorCode2[ErrorCode2["DEFERRED_DIRECTIVE_USED_EAGERLY"] = 8013] = "DEFERRED_DIRECTIVE_USED_EAGERLY";
910
- ErrorCode2[ErrorCode2["DEFERRED_DEPENDENCY_IMPORTED_EAGERLY"] = 8014] = "DEFERRED_DEPENDENCY_IMPORTED_EAGERLY";
911
- ErrorCode2[ErrorCode2["INVALID_BANANA_IN_BOX"] = 8101] = "INVALID_BANANA_IN_BOX";
912
- ErrorCode2[ErrorCode2["NULLISH_COALESCING_NOT_NULLABLE"] = 8102] = "NULLISH_COALESCING_NOT_NULLABLE";
913
- ErrorCode2[ErrorCode2["MISSING_CONTROL_FLOW_DIRECTIVE"] = 8103] = "MISSING_CONTROL_FLOW_DIRECTIVE";
914
- ErrorCode2[ErrorCode2["TEXT_ATTRIBUTE_NOT_BINDING"] = 8104] = "TEXT_ATTRIBUTE_NOT_BINDING";
915
- ErrorCode2[ErrorCode2["MISSING_NGFOROF_LET"] = 8105] = "MISSING_NGFOROF_LET";
916
- ErrorCode2[ErrorCode2["SUFFIX_NOT_SUPPORTED"] = 8106] = "SUFFIX_NOT_SUPPORTED";
917
- ErrorCode2[ErrorCode2["OPTIONAL_CHAIN_NOT_NULLABLE"] = 8107] = "OPTIONAL_CHAIN_NOT_NULLABLE";
918
- ErrorCode2[ErrorCode2["SKIP_HYDRATION_NOT_STATIC"] = 8108] = "SKIP_HYDRATION_NOT_STATIC";
919
- ErrorCode2[ErrorCode2["INTERPOLATED_SIGNAL_NOT_INVOKED"] = 8109] = "INTERPOLATED_SIGNAL_NOT_INVOKED";
920
- ErrorCode2[ErrorCode2["INLINE_TCB_REQUIRED"] = 8900] = "INLINE_TCB_REQUIRED";
921
- ErrorCode2[ErrorCode2["INLINE_TYPE_CTOR_REQUIRED"] = 8901] = "INLINE_TYPE_CTOR_REQUIRED";
922
- ErrorCode2[ErrorCode2["INJECTABLE_DUPLICATE_PROV"] = 9001] = "INJECTABLE_DUPLICATE_PROV";
923
- ErrorCode2[ErrorCode2["SUGGEST_STRICT_TEMPLATES"] = 10001] = "SUGGEST_STRICT_TEMPLATES";
924
- ErrorCode2[ErrorCode2["SUGGEST_SUBOPTIMAL_TYPE_INFERENCE"] = 10002] = "SUGGEST_SUBOPTIMAL_TYPE_INFERENCE";
925
- ErrorCode2[ErrorCode2["LOCAL_COMPILATION_UNRESOLVED_CONST"] = 11001] = "LOCAL_COMPILATION_UNRESOLVED_CONST";
926
- ErrorCode2[ErrorCode2["LOCAL_COMPILATION_EXPRESSION_FOR_HOST_DIRECTIVE"] = 11003] = "LOCAL_COMPILATION_EXPRESSION_FOR_HOST_DIRECTIVE";
927
- })(ErrorCode || (ErrorCode = {}));
928
-
929
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/docs.mjs
930
- var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
931
- ErrorCode.DECORATOR_ARG_NOT_LITERAL,
932
- ErrorCode.IMPORT_CYCLE_DETECTED,
933
- ErrorCode.PARAM_MISSING_TOKEN,
934
- ErrorCode.SCHEMA_INVALID_ELEMENT,
935
- ErrorCode.SCHEMA_INVALID_ATTRIBUTE,
936
- ErrorCode.MISSING_REFERENCE_TARGET,
937
- ErrorCode.COMPONENT_INVALID_SHADOW_DOM_SELECTOR,
938
- ErrorCode.WARN_NGMODULE_ID_UNNECESSARY
939
- ]);
940
-
941
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
942
- import ts6 from "typescript";
943
-
944
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/util.mjs
945
- var ERROR_CODE_MATCHER = /(\u001b\[\d+m ?)TS-99(\d+: ?\u001b\[\d+m)/g;
946
- function replaceTsWithNgInErrors(errors) {
947
- return errors.replace(ERROR_CODE_MATCHER, "$1NG$2");
948
- }
949
- function ngErrorCode(code) {
950
- return parseInt("-99" + code);
951
- }
952
-
953
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
954
- var FatalDiagnosticError = class extends Error {
955
- constructor(code, node, diagnosticMessage, relatedInformation) {
956
- super(`FatalDiagnosticError #${code}: ${diagnosticMessage}`);
957
- this.code = code;
958
- this.node = node;
959
- this.diagnosticMessage = diagnosticMessage;
960
- this.relatedInformation = relatedInformation;
961
- this.message = null;
962
- this._isFatalDiagnosticError = true;
963
- Object.setPrototypeOf(this, new.target.prototype);
964
- }
965
- toDiagnostic() {
966
- return makeDiagnostic(this.code, this.node, this.diagnosticMessage, this.relatedInformation);
967
- }
968
- };
969
- function makeDiagnostic(code, node, messageText, relatedInformation) {
970
- node = ts6.getOriginalNode(node);
971
- return {
972
- category: ts6.DiagnosticCategory.Error,
973
- code: ngErrorCode(code),
974
- file: ts6.getOriginalNode(node).getSourceFile(),
975
- start: node.getStart(void 0, false),
976
- length: node.getWidth(),
977
- messageText,
978
- relatedInformation
979
- };
980
- }
981
- function makeDiagnosticChain(messageText, next) {
982
- return {
983
- category: ts6.DiagnosticCategory.Message,
984
- code: 0,
985
- messageText,
986
- next
987
- };
988
- }
989
- function makeRelatedInformation(node, messageText) {
990
- node = ts6.getOriginalNode(node);
991
- return {
992
- category: ts6.DiagnosticCategory.Message,
993
- code: 0,
994
- file: node.getSourceFile(),
995
- start: node.getStart(),
996
- length: node.getWidth(),
997
- messageText
998
- };
999
- }
1000
- function addDiagnosticChain(messageText, add) {
1001
- if (typeof messageText === "string") {
1002
- return makeDiagnosticChain(messageText, add);
1003
- }
1004
- if (messageText.next === void 0) {
1005
- messageText.next = add;
1006
- } else {
1007
- messageText.next.push(...add);
1008
- }
1009
- return messageText;
1010
- }
1011
- function isFatalDiagnosticError(err) {
1012
- return err._isFatalDiagnosticError === true;
1013
- }
1014
-
1015
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.mjs
1016
- var ERROR_DETAILS_PAGE_BASE_URL = "https://angular.io/errors";
1017
-
1018
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.mjs
1019
- var ExtendedTemplateDiagnosticName;
1020
- (function(ExtendedTemplateDiagnosticName2) {
1021
- ExtendedTemplateDiagnosticName2["INVALID_BANANA_IN_BOX"] = "invalidBananaInBox";
1022
- ExtendedTemplateDiagnosticName2["NULLISH_COALESCING_NOT_NULLABLE"] = "nullishCoalescingNotNullable";
1023
- ExtendedTemplateDiagnosticName2["OPTIONAL_CHAIN_NOT_NULLABLE"] = "optionalChainNotNullable";
1024
- ExtendedTemplateDiagnosticName2["MISSING_CONTROL_FLOW_DIRECTIVE"] = "missingControlFlowDirective";
1025
- ExtendedTemplateDiagnosticName2["TEXT_ATTRIBUTE_NOT_BINDING"] = "textAttributeNotBinding";
1026
- ExtendedTemplateDiagnosticName2["MISSING_NGFOROF_LET"] = "missingNgForOfLet";
1027
- ExtendedTemplateDiagnosticName2["SUFFIX_NOT_SUPPORTED"] = "suffixNotSupported";
1028
- ExtendedTemplateDiagnosticName2["SKIP_HYDRATION_NOT_STATIC"] = "skipHydrationNotStatic";
1029
- ExtendedTemplateDiagnosticName2["INTERPOLATED_SIGNAL_NOT_INVOKED"] = "interpolatedSignalNotInvoked";
1030
- ExtendedTemplateDiagnosticName2["CONTROL_FLOW_PREVENTING_CONTENT_PROJECTION"] = "controlFlowPreventingContentProjection";
1031
- })(ExtendedTemplateDiagnosticName || (ExtendedTemplateDiagnosticName = {}));
1032
-
1033
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/find_export.mjs
1036
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/find_export.mjs
1034
1037
  function findExportedNameOfNode(target, file, reflector) {
1035
1038
  const exports = reflector.getExportsOfModule(file);
1036
1039
  if (exports === null) {
@@ -1050,7 +1053,7 @@ function findExportedNameOfNode(target, file, reflector) {
1050
1053
  return foundExportName;
1051
1054
  }
1052
1055
 
1053
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
1056
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
1054
1057
  var ImportFlags;
1055
1058
  (function(ImportFlags2) {
1056
1059
  ImportFlags2[ImportFlags2["None"] = 0] = "None";
@@ -1279,7 +1282,7 @@ var UnifiedModulesStrategy = class {
1279
1282
  }
1280
1283
  };
1281
1284
 
1282
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
1285
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
1283
1286
  var CHARS_TO_ESCAPE = /[^a-zA-Z0-9/_]/g;
1284
1287
  var UnifiedModulesAliasingHost = class {
1285
1288
  constructor(unifiedModulesHost) {
@@ -1346,7 +1349,7 @@ var AliasStrategy = class {
1346
1349
  }
1347
1350
  };
1348
1351
 
1349
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/path.mjs
1352
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/path.mjs
1350
1353
  function relativePathBetween(from, to) {
1351
1354
  const relativePath = stripExtension(relative(dirname(resolve(from)), resolve(to)));
1352
1355
  return relativePath !== "" ? toRelativeImport(relativePath) : null;
@@ -1355,7 +1358,7 @@ function normalizeSeparators(path) {
1355
1358
  return path.replace(/\\/g, "/");
1356
1359
  }
1357
1360
 
1358
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/core.mjs
1361
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/core.mjs
1359
1362
  var NoopImportRewriter = class {
1360
1363
  shouldImportSymbol(symbol, specifier) {
1361
1364
  return true;
@@ -1414,7 +1417,7 @@ function validateAndRewriteCoreSymbol(name) {
1414
1417
  return CORE_SUPPORTED_SYMBOLS.get(name);
1415
1418
  }
1416
1419
 
1417
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/patch_alias_reference_resolution.mjs
1420
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/patch_alias_reference_resolution.mjs
1418
1421
  import ts8 from "typescript";
1419
1422
  var patchedReferencedAliasesSymbol = Symbol("patchedReferencedAliases");
1420
1423
  function loadIsReferencedAliasDeclarationPatch(context) {
@@ -1449,7 +1452,7 @@ function throwIncompatibleTransformationContextError() {
1449
1452
  throw Error("Angular compiler is incompatible with this version of the TypeScript compiler.\n\nIf you recently updated TypeScript and this issue surfaces now, consider downgrading.\n\nPlease report an issue on the Angular repositories when this issue surfaces and you are using a supposedly compatible TypeScript version.");
1450
1453
  }
1451
1454
 
1452
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/default.mjs
1455
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/default.mjs
1453
1456
  var DefaultImportDeclaration = Symbol("DefaultImportDeclaration");
1454
1457
  function attachDefaultImportDeclaration(expr, importDecl) {
1455
1458
  expr[DefaultImportDeclaration] = importDecl;
@@ -1490,7 +1493,7 @@ var DefaultImportTracker = class {
1490
1493
  }
1491
1494
  };
1492
1495
 
1493
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/deferred_symbol_tracker.mjs
1496
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/deferred_symbol_tracker.mjs
1494
1497
  import ts9 from "typescript";
1495
1498
  var AssumeEager = "AssumeEager";
1496
1499
  var DeferredSymbolTracker = class {
@@ -1611,7 +1614,7 @@ var DeferredSymbolTracker = class {
1611
1614
  }
1612
1615
  };
1613
1616
 
1614
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/local_compilation_extra_imports_tracker.mjs
1617
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/local_compilation_extra_imports_tracker.mjs
1615
1618
  import ts10 from "typescript";
1616
1619
  var LocalCompilationExtraImportsTracker = class {
1617
1620
  constructor(typeChecker) {
@@ -1658,7 +1661,7 @@ function removeQuotations(s) {
1658
1661
  return s.substring(1, s.length - 1).trim();
1659
1662
  }
1660
1663
 
1661
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/resolver.mjs
1664
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/resolver.mjs
1662
1665
  var ModuleResolver = class {
1663
1666
  constructor(program, compilerOptions, host, moduleResolutionCache) {
1664
1667
  this.program = program;
@@ -1675,7 +1678,7 @@ var ModuleResolver = class {
1675
1678
  }
1676
1679
  };
1677
1680
 
1678
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager.mjs
1681
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager.mjs
1679
1682
  import ts11 from "typescript";
1680
1683
  var ImportManager = class {
1681
1684
  constructor(rewriter = new NoopImportRewriter(), prefix = "i", factory = ts11.factory) {
@@ -1717,7 +1720,7 @@ var ImportManager = class {
1717
1720
  }
1718
1721
  };
1719
1722
 
1720
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/context.mjs
1723
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/context.mjs
1721
1724
  var Context = class {
1722
1725
  constructor(isStatement) {
1723
1726
  this.isStatement = isStatement;
@@ -1730,7 +1733,7 @@ var Context = class {
1730
1733
  }
1731
1734
  };
1732
1735
 
1733
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/translator.mjs
1736
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/translator.mjs
1734
1737
  import * as o from "@angular/compiler";
1735
1738
  var UNARY_OPERATORS = /* @__PURE__ */ new Map([
1736
1739
  [o.UnaryOperator.Minus, "-"],
@@ -1969,7 +1972,7 @@ function createRange(span) {
1969
1972
  };
1970
1973
  }
1971
1974
 
1972
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_emitter.mjs
1975
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_emitter.mjs
1973
1976
  import ts12 from "typescript";
1974
1977
  var INELIGIBLE = {};
1975
1978
  function canEmitType(type, canEmit) {
@@ -2044,11 +2047,11 @@ var TypeEmitter = class {
2044
2047
  }
2045
2048
  };
2046
2049
 
2047
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
2050
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
2048
2051
  import * as o2 from "@angular/compiler";
2049
2052
  import ts14 from "typescript";
2050
2053
 
2051
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/ts_util.mjs
2054
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/ts_util.mjs
2052
2055
  import ts13 from "typescript";
2053
2056
  function tsNumericExpression(value) {
2054
2057
  if (value < 0) {
@@ -2058,7 +2061,7 @@ function tsNumericExpression(value) {
2058
2061
  return ts13.factory.createNumericLiteral(value);
2059
2062
  }
2060
2063
 
2061
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
2064
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
2062
2065
  function translateType(type, contextFile, reflector, refEmitter, imports) {
2063
2066
  return type.visitType(new TypeTranslatorVisitor(imports, contextFile, reflector, refEmitter), new Context(false));
2064
2067
  }
@@ -2272,7 +2275,7 @@ var TypeTranslatorVisitor = class {
2272
2275
  }
2273
2276
  };
2274
2277
 
2275
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_ast_factory.mjs
2278
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_ast_factory.mjs
2276
2279
  import ts15 from "typescript";
2277
2280
  var PureAnnotation;
2278
2281
  (function(PureAnnotation2) {
@@ -2469,7 +2472,7 @@ function attachComments(statement, leadingComments) {
2469
2472
  }
2470
2473
  }
2471
2474
 
2472
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_translator.mjs
2475
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_translator.mjs
2473
2476
  function translateExpression(expression, imports, options = {}) {
2474
2477
  return expression.visitExpression(new ExpressionTranslatorVisitor(new TypeScriptAstFactory(options.annotateForClosureCompiler === true), imports, options), new Context(false));
2475
2478
  }
@@ -2488,6 +2491,7 @@ export {
2488
2491
  makeRelatedInformation,
2489
2492
  addDiagnosticChain,
2490
2493
  isFatalDiagnosticError,
2494
+ isLocalCompilationDiagnostics,
2491
2495
  ERROR_DETAILS_PAGE_BASE_URL,
2492
2496
  ExtendedTemplateDiagnosticName,
2493
2497
  isSymbolWithValueDeclaration,
@@ -2559,4 +2563,4 @@ export {
2559
2563
  * Use of this source code is governed by an MIT-style license that can be
2560
2564
  * found in the LICENSE file at https://angular.io/license
2561
2565
  */
2562
- //# sourceMappingURL=chunk-CVK4HV4K.js.map
2566
+ //# sourceMappingURL=chunk-XLXSE3QH.js.map