@angular/compiler-cli 18.0.0-next.1 → 18.0.0-next.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/bundles/{chunk-WCD6LVCP.js → chunk-2WQIUGOU.js} +7 -7
  2. package/bundles/{chunk-C4L7A7U3.js → chunk-45SUUHP7.js} +74 -35
  3. package/bundles/chunk-45SUUHP7.js.map +6 -0
  4. package/bundles/{chunk-R4KQI5XI.js → chunk-64JBPJBS.js} +5 -5
  5. package/bundles/{chunk-ALDR4XSX.js → chunk-75Z2LUBT.js} +1189 -934
  6. package/bundles/chunk-75Z2LUBT.js.map +6 -0
  7. package/bundles/{chunk-B454JZVO.js → chunk-KVMNPNPQ.js} +5 -5
  8. package/bundles/{chunk-SBDNBITT.js → chunk-LYJKWJUC.js} +3 -3
  9. package/bundles/{chunk-AWB4ZG2D.js → chunk-QA6MINWF.js} +52 -50
  10. package/bundles/chunk-QA6MINWF.js.map +6 -0
  11. package/bundles/{chunk-GGJA4IFT.js → chunk-RUNTWSSX.js} +170 -91
  12. package/bundles/chunk-RUNTWSSX.js.map +6 -0
  13. package/bundles/{chunk-75YFKYUJ.js → chunk-UM6JO3VZ.js} +7 -7
  14. package/bundles/{chunk-OHOBDHII.js → chunk-UYDKSYFP.js} +180 -106
  15. package/bundles/chunk-UYDKSYFP.js.map +6 -0
  16. package/bundles/{chunk-YUMIYLNL.js → chunk-XIYC7KSQ.js} +5 -5
  17. package/bundles/index.js +14 -12
  18. package/bundles/index.js.map +1 -1
  19. package/bundles/linker/babel/index.js +20 -13
  20. package/bundles/linker/babel/index.js.map +1 -1
  21. package/bundles/linker/index.js +4 -4
  22. package/bundles/ngcc/index.js +1 -1
  23. package/bundles/private/bazel.js +1 -1
  24. package/bundles/private/localize.js +3 -3
  25. package/bundles/private/migrations.js +5 -5
  26. package/bundles/private/tooling.js +5 -5
  27. package/bundles/src/bin/ng_xi18n.js +10 -10
  28. package/bundles/src/bin/ngc.js +8 -8
  29. package/bundles_metadata.json +1 -1
  30. package/index.d.ts +1 -0
  31. package/linker/babel/src/ast/babel_ast_host.d.ts +2 -1
  32. package/linker/src/ast/ast_host.d.ts +4 -0
  33. package/linker/src/ast/ast_value.d.ts +5 -0
  34. package/linker/src/ast/typescript/typescript_ast_host.d.ts +1 -0
  35. package/linker/src/file_linker/partial_linkers/partial_class_metadata_async_linker_1.d.ts +16 -0
  36. package/linker/src/file_linker/partial_linkers/partial_linker_selector.d.ts +1 -0
  37. package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
  38. package/package.json +4 -4
  39. package/src/ngtsc/annotations/component/src/handler.d.ts +1 -1
  40. package/src/ngtsc/annotations/directive/index.d.ts +1 -0
  41. package/src/ngtsc/annotations/directive/src/initializer_function_access.d.ts +17 -0
  42. package/src/ngtsc/annotations/directive/src/initializer_functions.d.ts +10 -6
  43. package/src/ngtsc/annotations/directive/src/input_function.d.ts +4 -1
  44. package/src/ngtsc/annotations/directive/src/model_function.d.ts +4 -1
  45. package/src/ngtsc/annotations/directive/src/output_function.d.ts +4 -1
  46. package/src/ngtsc/annotations/directive/src/query_functions.d.ts +8 -2
  47. package/src/ngtsc/annotations/index.d.ts +1 -1
  48. package/src/ngtsc/diagnostics/src/error_code.d.ts +19 -0
  49. package/src/ngtsc/docs/src/entities.d.ts +36 -1
  50. package/src/ngtsc/docs/src/function_extractor.d.ts +3 -2
  51. package/src/ngtsc/docs/src/initializer_api_function_extractor.d.ts +24 -0
  52. package/src/ngtsc/docs/src/internal.d.ts +8 -0
  53. package/src/ngtsc/imports/src/imported_symbols_tracker.d.ts +13 -0
  54. package/src/ngtsc/reflection/src/host.d.ts +13 -3
  55. package/src/ngtsc/reflection/src/typescript.d.ts +8 -1
  56. package/src/ngtsc/reflection/src/util.d.ts +6 -1
  57. package/src/ngtsc/typecheck/src/oob.d.ts +3 -3
  58. package/src/ngtsc/validation/index.d.ts +8 -0
  59. package/src/ngtsc/validation/src/rules/api.d.ts +24 -0
  60. package/src/ngtsc/validation/src/rules/initializer_api_usage_rule.d.ts +21 -0
  61. package/src/ngtsc/validation/src/source_file_validator.d.ts +22 -0
  62. package/src/transformers/jit_transforms/initializer_api_transforms/transform_api.d.ts +3 -3
  63. package/bundles/chunk-ALDR4XSX.js.map +0 -6
  64. package/bundles/chunk-AWB4ZG2D.js.map +0 -6
  65. package/bundles/chunk-C4L7A7U3.js.map +0 -6
  66. package/bundles/chunk-GGJA4IFT.js.map +0 -6
  67. package/bundles/chunk-OHOBDHII.js.map +0 -6
  68. /package/bundles/{chunk-WCD6LVCP.js.map → chunk-2WQIUGOU.js.map} +0 -0
  69. /package/bundles/{chunk-R4KQI5XI.js.map → chunk-64JBPJBS.js.map} +0 -0
  70. /package/bundles/{chunk-B454JZVO.js.map → chunk-KVMNPNPQ.js.map} +0 -0
  71. /package/bundles/{chunk-SBDNBITT.js.map → chunk-LYJKWJUC.js.map} +0 -0
  72. /package/bundles/{chunk-75YFKYUJ.js.map → chunk-UM6JO3VZ.js.map} +0 -0
  73. /package/bundles/{chunk-YUMIYLNL.js.map → chunk-XIYC7KSQ.js.map} +0 -0
@@ -12,12 +12,12 @@ import {
12
12
  resolve,
13
13
  stripExtension,
14
14
  toRelativeImport
15
- } from "./chunk-75YFKYUJ.js";
15
+ } from "./chunk-UM6JO3VZ.js";
16
16
 
17
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
17
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
18
18
  import ts from "typescript";
19
19
 
20
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_code.mjs
20
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_code.mjs
21
21
  var ErrorCode;
22
22
  (function(ErrorCode2) {
23
23
  ErrorCode2[ErrorCode2["DECORATOR_ARG_NOT_LITERAL"] = 1001] = "DECORATOR_ARG_NOT_LITERAL";
@@ -30,6 +30,7 @@ var ErrorCode;
30
30
  ErrorCode2[ErrorCode2["INITIALIZER_API_WITH_DISALLOWED_DECORATOR"] = 1050] = "INITIALIZER_API_WITH_DISALLOWED_DECORATOR";
31
31
  ErrorCode2[ErrorCode2["INITIALIZER_API_DECORATOR_METADATA_COLLISION"] = 1051] = "INITIALIZER_API_DECORATOR_METADATA_COLLISION";
32
32
  ErrorCode2[ErrorCode2["INITIALIZER_API_NO_REQUIRED_FUNCTION"] = 1052] = "INITIALIZER_API_NO_REQUIRED_FUNCTION";
33
+ ErrorCode2[ErrorCode2["INITIALIZER_API_DISALLOWED_MEMBER_VISIBILITY"] = 1053] = "INITIALIZER_API_DISALLOWED_MEMBER_VISIBILITY";
33
34
  ErrorCode2[ErrorCode2["INCORRECTLY_DECLARED_ON_STATIC_MEMBER"] = 1100] = "INCORRECTLY_DECLARED_ON_STATIC_MEMBER";
34
35
  ErrorCode2[ErrorCode2["COMPONENT_MISSING_TEMPLATE"] = 2001] = "COMPONENT_MISSING_TEMPLATE";
35
36
  ErrorCode2[ErrorCode2["PIPE_MISSING_NAME"] = 2002] = "PIPE_MISSING_NAME";
@@ -96,6 +97,7 @@ var ErrorCode;
96
97
  ErrorCode2[ErrorCode2["OPTIONAL_CHAIN_NOT_NULLABLE"] = 8107] = "OPTIONAL_CHAIN_NOT_NULLABLE";
97
98
  ErrorCode2[ErrorCode2["SKIP_HYDRATION_NOT_STATIC"] = 8108] = "SKIP_HYDRATION_NOT_STATIC";
98
99
  ErrorCode2[ErrorCode2["INTERPOLATED_SIGNAL_NOT_INVOKED"] = 8109] = "INTERPOLATED_SIGNAL_NOT_INVOKED";
100
+ ErrorCode2[ErrorCode2["UNSUPPORTED_INITIALIZER_API_USAGE"] = 8110] = "UNSUPPORTED_INITIALIZER_API_USAGE";
99
101
  ErrorCode2[ErrorCode2["INLINE_TCB_REQUIRED"] = 8900] = "INLINE_TCB_REQUIRED";
100
102
  ErrorCode2[ErrorCode2["INLINE_TYPE_CTOR_REQUIRED"] = 8901] = "INLINE_TYPE_CTOR_REQUIRED";
101
103
  ErrorCode2[ErrorCode2["INJECTABLE_DUPLICATE_PROV"] = 9001] = "INJECTABLE_DUPLICATE_PROV";
@@ -105,7 +107,7 @@ var ErrorCode;
105
107
  ErrorCode2[ErrorCode2["LOCAL_COMPILATION_UNSUPPORTED_EXPRESSION"] = 11003] = "LOCAL_COMPILATION_UNSUPPORTED_EXPRESSION";
106
108
  })(ErrorCode || (ErrorCode = {}));
107
109
 
108
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/util.mjs
110
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/util.mjs
109
111
  var ERROR_CODE_MATCHER = /(\u001b\[\d+m ?)TS-99(\d+: ?\u001b\[\d+m)/g;
110
112
  function replaceTsWithNgInErrors(errors) {
111
113
  return errors.replace(ERROR_CODE_MATCHER, "$1NG$2");
@@ -114,15 +116,14 @@ function ngErrorCode(code) {
114
116
  return parseInt("-99" + code);
115
117
  }
116
118
 
117
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
119
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
118
120
  var FatalDiagnosticError = class extends Error {
119
121
  constructor(code, node, diagnosticMessage, relatedInformation) {
120
- super(`FatalDiagnosticError #${code}: ${diagnosticMessage}`);
122
+ super(`FatalDiagnosticError: Code: ${code}, Message: ${ts.flattenDiagnosticMessageText(diagnosticMessage, "\n")}`);
121
123
  this.code = code;
122
124
  this.node = node;
123
125
  this.diagnosticMessage = diagnosticMessage;
124
126
  this.relatedInformation = relatedInformation;
125
- this.message = null;
126
127
  this._isFatalDiagnosticError = true;
127
128
  Object.setPrototypeOf(this, new.target.prototype);
128
129
  }
@@ -179,7 +180,7 @@ function isLocalCompilationDiagnostics(diagnostic) {
179
180
  return diagnostic.code === ngErrorCode(ErrorCode.LOCAL_COMPILATION_UNRESOLVED_CONST) || diagnostic.code === ngErrorCode(ErrorCode.LOCAL_COMPILATION_UNSUPPORTED_EXPRESSION);
180
181
  }
181
182
 
182
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/docs.mjs
183
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/docs.mjs
183
184
  var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
184
185
  ErrorCode.DECORATOR_ARG_NOT_LITERAL,
185
186
  ErrorCode.IMPORT_CYCLE_DETECTED,
@@ -191,10 +192,10 @@ var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
191
192
  ErrorCode.WARN_NGMODULE_ID_UNNECESSARY
192
193
  ]);
193
194
 
194
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.mjs
195
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.mjs
195
196
  var ERROR_DETAILS_PAGE_BASE_URL = "https://angular.io/errors";
196
197
 
197
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.mjs
198
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.mjs
198
199
  var ExtendedTemplateDiagnosticName;
199
200
  (function(ExtendedTemplateDiagnosticName2) {
200
201
  ExtendedTemplateDiagnosticName2["INVALID_BANANA_IN_BOX"] = "invalidBananaInBox";
@@ -209,10 +210,10 @@ var ExtendedTemplateDiagnosticName;
209
210
  ExtendedTemplateDiagnosticName2["CONTROL_FLOW_PREVENTING_CONTENT_PROJECTION"] = "controlFlowPreventingContentProjection";
210
211
  })(ExtendedTemplateDiagnosticName || (ExtendedTemplateDiagnosticName = {}));
211
212
 
212
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
213
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
213
214
  import ts5 from "typescript";
214
215
 
215
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/host.mjs
216
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/host.mjs
216
217
  import ts2 from "typescript";
217
218
  function isDecoratorIdentifier(exp) {
218
219
  return ts2.isIdentifier(exp) || ts2.isPropertyAccessExpression(exp) && ts2.isIdentifier(exp.expression) && ts2.isIdentifier(exp.name);
@@ -225,9 +226,17 @@ var ClassMemberKind;
225
226
  ClassMemberKind2[ClassMemberKind2["Property"] = 3] = "Property";
226
227
  ClassMemberKind2[ClassMemberKind2["Method"] = 4] = "Method";
227
228
  })(ClassMemberKind || (ClassMemberKind = {}));
229
+ var ClassMemberAccessLevel;
230
+ (function(ClassMemberAccessLevel2) {
231
+ ClassMemberAccessLevel2[ClassMemberAccessLevel2["PublicWritable"] = 0] = "PublicWritable";
232
+ ClassMemberAccessLevel2[ClassMemberAccessLevel2["PublicReadonly"] = 1] = "PublicReadonly";
233
+ ClassMemberAccessLevel2[ClassMemberAccessLevel2["Protected"] = 2] = "Protected";
234
+ ClassMemberAccessLevel2[ClassMemberAccessLevel2["Private"] = 3] = "Private";
235
+ ClassMemberAccessLevel2[ClassMemberAccessLevel2["EcmaScriptPrivate"] = 4] = "EcmaScriptPrivate";
236
+ })(ClassMemberAccessLevel || (ClassMemberAccessLevel = {}));
228
237
  var AmbientImport = {};
229
238
 
230
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/type_to_value.mjs
239
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/type_to_value.mjs
231
240
  import ts3 from "typescript";
232
241
  function typeToValue(typeNode, checker, isLocalCompilation) {
233
242
  var _a, _b;
@@ -400,7 +409,7 @@ function extractModuleName(node) {
400
409
  return node.moduleSpecifier.text;
401
410
  }
402
411
 
403
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/util.mjs
412
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/util.mjs
404
413
  import ts4 from "typescript";
405
414
  function isNamedClassDeclaration(node) {
406
415
  return ts4.isClassDeclaration(node) && isIdentifier(node.name);
@@ -408,8 +417,23 @@ function isNamedClassDeclaration(node) {
408
417
  function isIdentifier(node) {
409
418
  return node !== void 0 && ts4.isIdentifier(node);
410
419
  }
420
+ function classMemberAccessLevelToString(level) {
421
+ switch (level) {
422
+ case ClassMemberAccessLevel.EcmaScriptPrivate:
423
+ return "ES private";
424
+ case ClassMemberAccessLevel.Private:
425
+ return "private";
426
+ case ClassMemberAccessLevel.Protected:
427
+ return "protected";
428
+ case ClassMemberAccessLevel.PublicReadonly:
429
+ return "public readonly";
430
+ case ClassMemberAccessLevel.PublicWritable:
431
+ default:
432
+ return "public";
433
+ }
434
+ }
411
435
 
412
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
436
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
413
437
  var TypeScriptReflectionHost = class {
414
438
  constructor(checker, isLocalCompilation = false) {
415
439
  this.checker = checker;
@@ -421,7 +445,16 @@ var TypeScriptReflectionHost = class {
421
445
  }
422
446
  getMembersOfClass(clazz) {
423
447
  const tsClazz = castDeclarationToClassOrDie(clazz);
424
- return tsClazz.members.map((member) => this._reflectMember(member)).filter((member) => member !== null);
448
+ return tsClazz.members.map((member) => {
449
+ const result = reflectClassMember(member);
450
+ if (result === null) {
451
+ return null;
452
+ }
453
+ return {
454
+ ...result,
455
+ decorators: this.getDecoratorsOfDeclaration(member)
456
+ };
457
+ }).filter((member) => member !== null);
425
458
  }
426
459
  getConstructorParameters(clazz) {
427
460
  const tsClazz = castDeclarationToClassOrDie(clazz);
@@ -656,51 +689,6 @@ var TypeScriptReflectionHost = class {
656
689
  args
657
690
  };
658
691
  }
659
- _reflectMember(node) {
660
- let kind = null;
661
- let value = null;
662
- let name = null;
663
- let nameNode = null;
664
- if (ts5.isPropertyDeclaration(node)) {
665
- kind = ClassMemberKind.Property;
666
- value = node.initializer || null;
667
- } else if (ts5.isGetAccessorDeclaration(node)) {
668
- kind = ClassMemberKind.Getter;
669
- } else if (ts5.isSetAccessorDeclaration(node)) {
670
- kind = ClassMemberKind.Setter;
671
- } else if (ts5.isMethodDeclaration(node)) {
672
- kind = ClassMemberKind.Method;
673
- } else if (ts5.isConstructorDeclaration(node)) {
674
- kind = ClassMemberKind.Constructor;
675
- } else {
676
- return null;
677
- }
678
- if (ts5.isConstructorDeclaration(node)) {
679
- name = "constructor";
680
- } else if (ts5.isIdentifier(node.name)) {
681
- name = node.name.text;
682
- nameNode = node.name;
683
- } else if (ts5.isStringLiteral(node.name)) {
684
- name = node.name.text;
685
- nameNode = node.name;
686
- } else {
687
- return null;
688
- }
689
- const decorators = this.getDecoratorsOfDeclaration(node);
690
- const modifiers = ts5.getModifiers(node);
691
- const isStatic = modifiers !== void 0 && modifiers.some((mod) => mod.kind === ts5.SyntaxKind.StaticKeyword);
692
- return {
693
- node,
694
- implementation: node,
695
- kind,
696
- type: node.type || null,
697
- name,
698
- nameNode,
699
- decorators,
700
- value,
701
- isStatic
702
- };
703
- }
704
692
  getLocalExportedDeclarationsOfSourceFile(file) {
705
693
  const cacheSf = file;
706
694
  if (cacheSf[LocalExportedDeclarations] !== void 0) {
@@ -792,6 +780,83 @@ function filterToMembersWithDecorator(members, name, module) {
792
780
  return { member, decorators };
793
781
  }).filter((value) => value !== null);
794
782
  }
783
+ function extractModifiersOfMember(node) {
784
+ const modifiers = ts5.getModifiers(node);
785
+ let isStatic = false;
786
+ let isReadonly = false;
787
+ let accessLevel = ClassMemberAccessLevel.PublicWritable;
788
+ if (modifiers !== void 0) {
789
+ for (const modifier of modifiers) {
790
+ switch (modifier.kind) {
791
+ case ts5.SyntaxKind.StaticKeyword:
792
+ isStatic = true;
793
+ break;
794
+ case ts5.SyntaxKind.PrivateKeyword:
795
+ accessLevel = ClassMemberAccessLevel.Private;
796
+ break;
797
+ case ts5.SyntaxKind.ProtectedKeyword:
798
+ accessLevel = ClassMemberAccessLevel.Protected;
799
+ break;
800
+ case ts5.SyntaxKind.ReadonlyKeyword:
801
+ isReadonly = true;
802
+ break;
803
+ }
804
+ }
805
+ }
806
+ if (isReadonly && accessLevel === ClassMemberAccessLevel.PublicWritable) {
807
+ accessLevel = ClassMemberAccessLevel.PublicReadonly;
808
+ }
809
+ if (node.name !== void 0 && ts5.isPrivateIdentifier(node.name)) {
810
+ accessLevel = ClassMemberAccessLevel.EcmaScriptPrivate;
811
+ }
812
+ return { accessLevel, isStatic };
813
+ }
814
+ function reflectClassMember(node) {
815
+ let kind = null;
816
+ let value = null;
817
+ let name = null;
818
+ let nameNode = null;
819
+ if (ts5.isPropertyDeclaration(node)) {
820
+ kind = ClassMemberKind.Property;
821
+ value = node.initializer || null;
822
+ } else if (ts5.isGetAccessorDeclaration(node)) {
823
+ kind = ClassMemberKind.Getter;
824
+ } else if (ts5.isSetAccessorDeclaration(node)) {
825
+ kind = ClassMemberKind.Setter;
826
+ } else if (ts5.isMethodDeclaration(node)) {
827
+ kind = ClassMemberKind.Method;
828
+ } else if (ts5.isConstructorDeclaration(node)) {
829
+ kind = ClassMemberKind.Constructor;
830
+ } else {
831
+ return null;
832
+ }
833
+ if (ts5.isConstructorDeclaration(node)) {
834
+ name = "constructor";
835
+ } else if (ts5.isIdentifier(node.name)) {
836
+ name = node.name.text;
837
+ nameNode = node.name;
838
+ } else if (ts5.isStringLiteral(node.name)) {
839
+ name = node.name.text;
840
+ nameNode = node.name;
841
+ } else if (ts5.isPrivateIdentifier(node.name)) {
842
+ name = node.name.text;
843
+ nameNode = node.name;
844
+ } else {
845
+ return null;
846
+ }
847
+ const { accessLevel, isStatic } = extractModifiersOfMember(node);
848
+ return {
849
+ node,
850
+ implementation: node,
851
+ kind,
852
+ type: node.type || null,
853
+ accessLevel,
854
+ name,
855
+ nameNode,
856
+ value,
857
+ isStatic
858
+ };
859
+ }
795
860
  function reflectObjectLiteral(node) {
796
861
  const map = /* @__PURE__ */ new Map();
797
862
  node.properties.forEach((prop) => {
@@ -856,7 +921,7 @@ function getExportedName(decl, originalId) {
856
921
  }
857
922
  var LocalExportedDeclarations = Symbol("LocalExportedDeclarations");
858
923
 
859
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/typescript.mjs
924
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/typescript.mjs
860
925
  import ts6 from "typescript";
861
926
  var TS = /\.tsx?$/i;
862
927
  var D_TS = /\.d\.ts$/i;
@@ -957,7 +1022,7 @@ function toUnredirectedSourceFile(sf) {
957
1022
  return redirectInfo.unredirected;
958
1023
  }
959
1024
 
960
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/references.mjs
1025
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/references.mjs
961
1026
  var Reference = class {
962
1027
  constructor(node, bestGuessOwningModule = null) {
963
1028
  this.node = node;
@@ -1026,14 +1091,14 @@ var Reference = class {
1026
1091
  }
1027
1092
  };
1028
1093
 
1029
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
1094
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
1030
1095
  import { ExternalExpr as ExternalExpr2 } from "@angular/compiler";
1031
1096
 
1032
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
1097
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
1033
1098
  import { ExternalExpr, ExternalReference, WrappedNodeExpr } from "@angular/compiler";
1034
1099
  import ts7 from "typescript";
1035
1100
 
1036
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/find_export.mjs
1101
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/find_export.mjs
1037
1102
  function findExportedNameOfNode(target, file, reflector) {
1038
1103
  const exports = reflector.getExportsOfModule(file);
1039
1104
  if (exports === null) {
@@ -1053,7 +1118,7 @@ function findExportedNameOfNode(target, file, reflector) {
1053
1118
  return foundExportName;
1054
1119
  }
1055
1120
 
1056
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
1121
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
1057
1122
  var ImportFlags;
1058
1123
  (function(ImportFlags2) {
1059
1124
  ImportFlags2[ImportFlags2["None"] = 0] = "None";
@@ -1282,7 +1347,7 @@ var UnifiedModulesStrategy = class {
1282
1347
  }
1283
1348
  };
1284
1349
 
1285
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
1350
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
1286
1351
  var CHARS_TO_ESCAPE = /[^a-zA-Z0-9/_]/g;
1287
1352
  var UnifiedModulesAliasingHost = class {
1288
1353
  constructor(unifiedModulesHost) {
@@ -1349,7 +1414,7 @@ var AliasStrategy = class {
1349
1414
  }
1350
1415
  };
1351
1416
 
1352
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/path.mjs
1417
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/path.mjs
1353
1418
  function relativePathBetween(from, to) {
1354
1419
  const relativePath = stripExtension(relative(dirname(resolve(from)), resolve(to)));
1355
1420
  return relativePath !== "" ? toRelativeImport(relativePath) : null;
@@ -1358,7 +1423,7 @@ function normalizeSeparators(path) {
1358
1423
  return path.replace(/\\/g, "/");
1359
1424
  }
1360
1425
 
1361
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/core.mjs
1426
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/core.mjs
1362
1427
  var NoopImportRewriter = class {
1363
1428
  rewriteSymbol(symbol, specifier) {
1364
1429
  return symbol;
@@ -1411,7 +1476,7 @@ function validateAndRewriteCoreSymbol(name) {
1411
1476
  return CORE_SUPPORTED_SYMBOLS.get(name);
1412
1477
  }
1413
1478
 
1414
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/patch_alias_reference_resolution.mjs
1479
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/patch_alias_reference_resolution.mjs
1415
1480
  import ts8 from "typescript";
1416
1481
  var patchedReferencedAliasesSymbol = Symbol("patchedReferencedAliases");
1417
1482
  function loadIsReferencedAliasDeclarationPatch(context) {
@@ -1446,7 +1511,7 @@ function throwIncompatibleTransformationContextError() {
1446
1511
  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.");
1447
1512
  }
1448
1513
 
1449
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/default.mjs
1514
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/default.mjs
1450
1515
  var DefaultImportDeclaration = Symbol("DefaultImportDeclaration");
1451
1516
  function attachDefaultImportDeclaration(expr, importDecl) {
1452
1517
  expr[DefaultImportDeclaration] = importDecl;
@@ -1487,7 +1552,7 @@ var DefaultImportTracker = class {
1487
1552
  }
1488
1553
  };
1489
1554
 
1490
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/deferred_symbol_tracker.mjs
1555
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/deferred_symbol_tracker.mjs
1491
1556
  import ts9 from "typescript";
1492
1557
  var AssumeEager = "AssumeEager";
1493
1558
  var DeferredSymbolTracker = class {
@@ -1608,7 +1673,7 @@ var DeferredSymbolTracker = class {
1608
1673
  }
1609
1674
  };
1610
1675
 
1611
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/imported_symbols_tracker.mjs
1676
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/imported_symbols_tracker.mjs
1612
1677
  import ts10 from "typescript";
1613
1678
  var ImportedSymbolsTracker = class {
1614
1679
  constructor() {
@@ -1630,6 +1695,17 @@ var ImportedSymbolsTracker = class {
1630
1695
  const namespaces = this.fileToNamespaceImports.get(sourceFile);
1631
1696
  return (_b = (_a = namespaces.get(moduleName)) == null ? void 0 : _a.has(node.text)) != null ? _b : false;
1632
1697
  }
1698
+ hasNamedImport(sourceFile, exportedName, moduleName) {
1699
+ this.scanImports(sourceFile);
1700
+ const fileImports = this.fileToNamedImports.get(sourceFile);
1701
+ const moduleImports = fileImports.get(moduleName);
1702
+ return moduleImports !== void 0 && moduleImports.has(exportedName);
1703
+ }
1704
+ hasNamespaceImport(sourceFile, moduleName) {
1705
+ this.scanImports(sourceFile);
1706
+ const namespaces = this.fileToNamespaceImports.get(sourceFile);
1707
+ return namespaces.has(moduleName);
1708
+ }
1633
1709
  scanImports(sourceFile) {
1634
1710
  var _a, _b;
1635
1711
  if (this.fileToNamedImports.has(sourceFile) && this.fileToNamespaceImports.has(sourceFile)) {
@@ -1667,7 +1743,7 @@ var ImportedSymbolsTracker = class {
1667
1743
  }
1668
1744
  };
1669
1745
 
1670
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/local_compilation_extra_imports_tracker.mjs
1746
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/local_compilation_extra_imports_tracker.mjs
1671
1747
  import ts11 from "typescript";
1672
1748
  var LocalCompilationExtraImportsTracker = class {
1673
1749
  constructor(typeChecker) {
@@ -1714,7 +1790,7 @@ function removeQuotations(s) {
1714
1790
  return s.substring(1, s.length - 1).trim();
1715
1791
  }
1716
1792
 
1717
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/resolver.mjs
1793
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/resolver.mjs
1718
1794
  var ModuleResolver = class {
1719
1795
  constructor(program, compilerOptions, host, moduleResolutionCache) {
1720
1796
  this.program = program;
@@ -1731,10 +1807,10 @@ var ModuleResolver = class {
1731
1807
  }
1732
1808
  };
1733
1809
 
1734
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_manager.mjs
1810
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_manager.mjs
1735
1811
  import ts16 from "typescript";
1736
1812
 
1737
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/check_unique_identifier_name.mjs
1813
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/check_unique_identifier_name.mjs
1738
1814
  import ts12 from "typescript";
1739
1815
  function createGenerateUniqueIdentifierHelper() {
1740
1816
  const generatedIdentifiers = /* @__PURE__ */ new Set();
@@ -1758,7 +1834,7 @@ function createGenerateUniqueIdentifierHelper() {
1758
1834
  };
1759
1835
  }
1760
1836
 
1761
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_typescript_transform.mjs
1837
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_typescript_transform.mjs
1762
1838
  import ts13 from "typescript";
1763
1839
  function createTsTransformForImportManager(manager, extraStatementsForFiles) {
1764
1840
  return (ctx) => {
@@ -1816,7 +1892,7 @@ function isImportStatement(stmt) {
1816
1892
  return ts13.isImportDeclaration(stmt) || ts13.isImportEqualsDeclaration(stmt) || ts13.isNamespaceImport(stmt);
1817
1893
  }
1818
1894
 
1819
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/reuse_generated_imports.mjs
1895
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/reuse_generated_imports.mjs
1820
1896
  import ts14 from "typescript";
1821
1897
  function attemptToReuseGeneratedImports(tracker, request) {
1822
1898
  const requestHash = hashImportRequest(request);
@@ -1843,7 +1919,7 @@ function hashImportRequest(req) {
1843
1919
  return `${req.requestedFile.fileName}:${req.exportModuleSpecifier}:${req.exportSymbolName}`;
1844
1920
  }
1845
1921
 
1846
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/reuse_source_file_imports.mjs
1922
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/reuse_source_file_imports.mjs
1847
1923
  import ts15 from "typescript";
1848
1924
  function attemptToReuseExistingSourceFileImports(tracker, sourceFile, request) {
1849
1925
  let candidateImportToBeUpdated = null;
@@ -1896,7 +1972,7 @@ function attemptToReuseExistingSourceFileImports(tracker, sourceFile, request) {
1896
1972
  return fileUniqueAlias != null ? fileUniqueAlias : propertyName;
1897
1973
  }
1898
1974
 
1899
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_manager.mjs
1975
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_manager.mjs
1900
1976
  var presetImportManagerForceNamespaceImports = {
1901
1977
  disableOriginalSourceFileReuse: true,
1902
1978
  forceGenerateNamespacesForNewImports: true
@@ -2046,7 +2122,7 @@ function createImportReference(asTypeReference, ref) {
2046
2122
  }
2047
2123
  }
2048
2124
 
2049
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/context.mjs
2125
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/context.mjs
2050
2126
  var Context = class {
2051
2127
  constructor(isStatement) {
2052
2128
  this.isStatement = isStatement;
@@ -2059,7 +2135,7 @@ var Context = class {
2059
2135
  }
2060
2136
  };
2061
2137
 
2062
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/translator.mjs
2138
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/translator.mjs
2063
2139
  import * as o from "@angular/compiler";
2064
2140
  var UNARY_OPERATORS = /* @__PURE__ */ new Map([
2065
2141
  [o.UnaryOperator.Minus, "-"],
@@ -2305,7 +2381,7 @@ function createRange(span) {
2305
2381
  };
2306
2382
  }
2307
2383
 
2308
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_emitter.mjs
2384
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_emitter.mjs
2309
2385
  import ts17 from "typescript";
2310
2386
  var INELIGIBLE = {};
2311
2387
  function canEmitType(type, canEmit) {
@@ -2380,11 +2456,11 @@ var TypeEmitter = class {
2380
2456
  }
2381
2457
  };
2382
2458
 
2383
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
2459
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
2384
2460
  import * as o2 from "@angular/compiler";
2385
2461
  import ts19 from "typescript";
2386
2462
 
2387
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/ts_util.mjs
2463
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/ts_util.mjs
2388
2464
  import ts18 from "typescript";
2389
2465
  function tsNumericExpression(value) {
2390
2466
  if (value < 0) {
@@ -2394,7 +2470,7 @@ function tsNumericExpression(value) {
2394
2470
  return ts18.factory.createNumericLiteral(value);
2395
2471
  }
2396
2472
 
2397
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
2473
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
2398
2474
  function translateType(type, contextFile, reflector, refEmitter, imports) {
2399
2475
  return type.visitType(new TypeTranslatorVisitor(imports, contextFile, reflector, refEmitter), new Context(false));
2400
2476
  }
@@ -2611,7 +2687,7 @@ var TypeTranslatorVisitor = class {
2611
2687
  }
2612
2688
  };
2613
2689
 
2614
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_ast_factory.mjs
2690
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_ast_factory.mjs
2615
2691
  import ts20 from "typescript";
2616
2692
  var PureAnnotation;
2617
2693
  (function(PureAnnotation2) {
@@ -2808,7 +2884,7 @@ function attachComments(statement, leadingComments) {
2808
2884
  }
2809
2885
  }
2810
2886
 
2811
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_translator.mjs
2887
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_translator.mjs
2812
2888
  function translateExpression(contextFile, expression, imports, options = {}) {
2813
2889
  return expression.visitExpression(new ExpressionTranslatorVisitor(new TypeScriptAstFactory(options.annotateForClosureCompiler === true), imports, contextFile, options), new Context(false));
2814
2890
  }
@@ -2865,13 +2941,16 @@ export {
2865
2941
  getDefaultImportDeclaration,
2866
2942
  DefaultImportTracker,
2867
2943
  ClassMemberKind,
2944
+ ClassMemberAccessLevel,
2868
2945
  AmbientImport,
2869
2946
  typeNodeToValueExpr,
2870
2947
  entityNameToValue,
2871
2948
  isNamedClassDeclaration,
2949
+ classMemberAccessLevelToString,
2872
2950
  TypeScriptReflectionHost,
2873
2951
  reflectTypeEntityToDeclaration,
2874
2952
  filterToMembersWithDecorator,
2953
+ reflectClassMember,
2875
2954
  reflectObjectLiteral,
2876
2955
  DeferredSymbolTracker,
2877
2956
  ImportedSymbolsTracker,
@@ -2902,4 +2981,4 @@ export {
2902
2981
  * Use of this source code is governed by an MIT-style license that can be
2903
2982
  * found in the LICENSE file at https://angular.io/license
2904
2983
  */
2905
- //# sourceMappingURL=chunk-GGJA4IFT.js.map
2984
+ //# sourceMappingURL=chunk-RUNTWSSX.js.map