@angular/compiler-cli 15.2.0-next.4 → 15.2.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 (48) hide show
  1. package/bundles/{chunk-HYFCMILZ.js → chunk-2OF2AI57.js} +11 -9
  2. package/bundles/chunk-2OF2AI57.js.map +6 -0
  3. package/bundles/{chunk-64X67E3N.js → chunk-2PLRZDNU.js} +4 -4
  4. package/bundles/{chunk-Q6W3UCXI.js → chunk-J3L7WZP3.js} +91 -124
  5. package/bundles/chunk-J3L7WZP3.js.map +6 -0
  6. package/bundles/{chunk-BEXFRTBC.js → chunk-MLCT4AWL.js} +3 -3
  7. package/bundles/{chunk-OAZD7RII.js → chunk-NXCQCU6C.js} +9 -7
  8. package/bundles/chunk-NXCQCU6C.js.map +6 -0
  9. package/bundles/{chunk-ZB4CDKOH.js → chunk-P6SWFK2U.js} +2 -2
  10. package/bundles/{chunk-JYL7IHZC.js → chunk-PKSKJEUS.js} +10 -8
  11. package/bundles/chunk-PKSKJEUS.js.map +6 -0
  12. package/bundles/chunk-QRHWLC7U.js +714 -0
  13. package/bundles/chunk-QRHWLC7U.js.map +6 -0
  14. package/bundles/chunk-ZCBRXUPO.js +877 -0
  15. package/bundles/chunk-ZCBRXUPO.js.map +6 -0
  16. package/bundles/index.js +6 -5
  17. package/bundles/index.js.map +1 -1
  18. package/bundles/linker/babel/index.js +3 -2
  19. package/bundles/linker/babel/index.js.map +1 -1
  20. package/bundles/linker/index.js +3 -2
  21. package/bundles/ngcc/index.js +6 -5
  22. package/bundles/ngcc/index.js.map +1 -1
  23. package/bundles/ngcc/main-ngcc.js +6 -5
  24. package/bundles/ngcc/main-ngcc.js.map +1 -1
  25. package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js +5 -4
  26. package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js.map +1 -1
  27. package/bundles/private/migrations.js +3 -2
  28. package/bundles/private/tooling.js +3 -1
  29. package/bundles/src/bin/ng_xi18n.js +5 -4
  30. package/bundles/src/bin/ng_xi18n.js.map +1 -1
  31. package/bundles/src/bin/ngc.js +5 -4
  32. package/bundles/src/bin/ngc.js.map +1 -1
  33. package/bundles_metadata.json +1 -1
  34. package/ngcc/src/packages/build_marker.d.ts +1 -1
  35. package/package.json +2 -2
  36. package/src/ngtsc/imports/index.d.ts +1 -0
  37. package/src/ngtsc/imports/src/default.d.ts +6 -10
  38. package/src/ngtsc/imports/src/patch_alias_reference_resolution.d.ts +61 -0
  39. package/bundles/chunk-HYFCMILZ.js.map +0 -6
  40. package/bundles/chunk-JYL7IHZC.js.map +0 -6
  41. package/bundles/chunk-OAZD7RII.js.map +0 -6
  42. package/bundles/chunk-Q6W3UCXI.js.map +0 -6
  43. package/bundles/chunk-Z534TW2O.js +0 -1540
  44. package/bundles/chunk-Z534TW2O.js.map +0 -6
  45. package/src/transformers/downlevel_decorators_transform/patch_alias_reference_resolution.d.ts +0 -14
  46. /package/bundles/{chunk-64X67E3N.js.map → chunk-2PLRZDNU.js.map} +0 -0
  47. /package/bundles/{chunk-BEXFRTBC.js.map → chunk-MLCT4AWL.js.map} +0 -0
  48. /package/bundles/{chunk-ZB4CDKOH.js.map → chunk-P6SWFK2U.js.map} +0 -0
@@ -5,46 +5,13 @@
5
5
  import {
6
6
  TypeScriptReflectionHost
7
7
  } from "./chunk-O4JLZZWJ.js";
8
+ import {
9
+ isAliasImportDeclaration,
10
+ loadIsReferencedAliasDeclarationPatch
11
+ } from "./chunk-ZCBRXUPO.js";
8
12
 
9
13
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/downlevel_decorators_transform/downlevel_decorators_transform.mjs
10
- import ts2 from "typescript";
11
-
12
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/downlevel_decorators_transform/patch_alias_reference_resolution.mjs
13
14
  import ts from "typescript";
14
- var patchedReferencedAliasesSymbol = Symbol("patchedReferencedAliases");
15
- function loadIsReferencedAliasDeclarationPatch(context) {
16
- if (!isTransformationContextWithEmitResolver(context)) {
17
- throwIncompatibleTransformationContextError();
18
- }
19
- const emitResolver = context.getEmitResolver();
20
- const existingReferencedAliases = emitResolver[patchedReferencedAliasesSymbol];
21
- if (existingReferencedAliases !== void 0) {
22
- return existingReferencedAliases;
23
- }
24
- const originalIsReferencedAliasDeclaration = emitResolver.isReferencedAliasDeclaration;
25
- if (originalIsReferencedAliasDeclaration === void 0) {
26
- throwIncompatibleTransformationContextError();
27
- }
28
- const referencedAliases = /* @__PURE__ */ new Set();
29
- emitResolver.isReferencedAliasDeclaration = function(node, ...args) {
30
- if (isAliasImportDeclaration(node) && referencedAliases.has(node)) {
31
- return true;
32
- }
33
- return originalIsReferencedAliasDeclaration.call(emitResolver, node, ...args);
34
- };
35
- return emitResolver[patchedReferencedAliasesSymbol] = referencedAliases;
36
- }
37
- function isAliasImportDeclaration(node) {
38
- return ts.isImportSpecifier(node) || ts.isNamespaceImport(node) || ts.isImportClause(node);
39
- }
40
- function isTransformationContextWithEmitResolver(context) {
41
- return context.getEmitResolver !== void 0;
42
- }
43
- function throwIncompatibleTransformationContextError() {
44
- throw Error("Unable to downlevel Angular decorators due to an incompatible TypeScript version.\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.");
45
- }
46
-
47
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/downlevel_decorators_transform/downlevel_decorators_transform.mjs
48
15
  function isAngularDecorator(decorator, isCore) {
49
16
  return isCore || decorator.import !== null && decorator.import.from === "@angular/core";
50
17
  }
@@ -53,19 +20,19 @@ function extractMetadataFromSingleDecorator(decorator, diagnostics) {
53
20
  const metadataProperties = [];
54
21
  const expr = decorator.expression;
55
22
  switch (expr.kind) {
56
- case ts2.SyntaxKind.Identifier:
57
- metadataProperties.push(ts2.factory.createPropertyAssignment("type", expr));
23
+ case ts.SyntaxKind.Identifier:
24
+ metadataProperties.push(ts.factory.createPropertyAssignment("type", expr));
58
25
  break;
59
- case ts2.SyntaxKind.CallExpression:
26
+ case ts.SyntaxKind.CallExpression:
60
27
  const call = expr;
61
- metadataProperties.push(ts2.factory.createPropertyAssignment("type", call.expression));
28
+ metadataProperties.push(ts.factory.createPropertyAssignment("type", call.expression));
62
29
  if (call.arguments.length) {
63
30
  const args = [];
64
31
  for (const arg of call.arguments) {
65
32
  args.push(arg);
66
33
  }
67
- const argsArrayLiteral = ts2.factory.createArrayLiteralExpression(ts2.factory.createNodeArray(args, true));
68
- metadataProperties.push(ts2.factory.createPropertyAssignment("args", argsArrayLiteral));
34
+ const argsArrayLiteral = ts.factory.createArrayLiteralExpression(ts.factory.createNodeArray(args, true));
35
+ metadataProperties.push(ts.factory.createPropertyAssignment("args", argsArrayLiteral));
69
36
  }
70
37
  break;
71
38
  default:
@@ -73,38 +40,38 @@ function extractMetadataFromSingleDecorator(decorator, diagnostics) {
73
40
  file: decorator.getSourceFile(),
74
41
  start: decorator.getStart(),
75
42
  length: decorator.getEnd() - decorator.getStart(),
76
- messageText: `${ts2.SyntaxKind[decorator.kind]} not implemented in gathering decorator metadata.`,
77
- category: ts2.DiagnosticCategory.Error,
43
+ messageText: `${ts.SyntaxKind[decorator.kind]} not implemented in gathering decorator metadata.`,
44
+ category: ts.DiagnosticCategory.Error,
78
45
  code: 0
79
46
  });
80
47
  break;
81
48
  }
82
- return ts2.factory.createObjectLiteralExpression(metadataProperties);
49
+ return ts.factory.createObjectLiteralExpression(metadataProperties);
83
50
  }
84
51
  function createCtorParametersClassProperty(diagnostics, entityNameToExpression, ctorParameters, isClosureCompilerEnabled) {
85
52
  const params = [];
86
53
  for (const ctorParam of ctorParameters) {
87
54
  if (!ctorParam.type && ctorParam.decorators.length === 0) {
88
- params.push(ts2.factory.createNull());
55
+ params.push(ts.factory.createNull());
89
56
  continue;
90
57
  }
91
58
  const paramType = ctorParam.type ? typeReferenceToExpression(entityNameToExpression, ctorParam.type) : void 0;
92
- const members = [ts2.factory.createPropertyAssignment("type", paramType || ts2.factory.createIdentifier("undefined"))];
59
+ const members = [ts.factory.createPropertyAssignment("type", paramType || ts.factory.createIdentifier("undefined"))];
93
60
  const decorators = [];
94
61
  for (const deco of ctorParam.decorators) {
95
62
  decorators.push(extractMetadataFromSingleDecorator(deco, diagnostics));
96
63
  }
97
64
  if (decorators.length) {
98
- members.push(ts2.factory.createPropertyAssignment("decorators", ts2.factory.createArrayLiteralExpression(decorators)));
65
+ members.push(ts.factory.createPropertyAssignment("decorators", ts.factory.createArrayLiteralExpression(decorators)));
99
66
  }
100
- params.push(ts2.factory.createObjectLiteralExpression(members));
67
+ params.push(ts.factory.createObjectLiteralExpression(members));
101
68
  }
102
- const initializer = ts2.factory.createArrowFunction(void 0, void 0, [], void 0, ts2.factory.createToken(ts2.SyntaxKind.EqualsGreaterThanToken), ts2.factory.createArrayLiteralExpression(params, true));
103
- const ctorProp = ts2.factory.createPropertyDeclaration([ts2.factory.createToken(ts2.SyntaxKind.StaticKeyword)], "ctorParameters", void 0, void 0, initializer);
69
+ const initializer = ts.factory.createArrowFunction(void 0, void 0, [], void 0, ts.factory.createToken(ts.SyntaxKind.EqualsGreaterThanToken), ts.factory.createArrayLiteralExpression(params, true));
70
+ const ctorProp = ts.factory.createPropertyDeclaration([ts.factory.createToken(ts.SyntaxKind.StaticKeyword)], "ctorParameters", void 0, void 0, initializer);
104
71
  if (isClosureCompilerEnabled) {
105
- ts2.setSyntheticLeadingComments(ctorProp, [
72
+ ts.setSyntheticLeadingComments(ctorProp, [
106
73
  {
107
- kind: ts2.SyntaxKind.MultiLineCommentTrivia,
74
+ kind: ts.SyntaxKind.MultiLineCommentTrivia,
108
75
  text: [
109
76
  `*`,
110
77
  ` * @type {function(): !Array<(null|{`,
@@ -124,53 +91,53 @@ function createCtorParametersClassProperty(diagnostics, entityNameToExpression,
124
91
  }
125
92
  function typeReferenceToExpression(entityNameToExpression, node) {
126
93
  let kind = node.kind;
127
- if (ts2.isLiteralTypeNode(node)) {
94
+ if (ts.isLiteralTypeNode(node)) {
128
95
  kind = node.literal.kind;
129
96
  }
130
97
  switch (kind) {
131
- case ts2.SyntaxKind.FunctionType:
132
- case ts2.SyntaxKind.ConstructorType:
133
- return ts2.factory.createIdentifier("Function");
134
- case ts2.SyntaxKind.ArrayType:
135
- case ts2.SyntaxKind.TupleType:
136
- return ts2.factory.createIdentifier("Array");
137
- case ts2.SyntaxKind.TypePredicate:
138
- case ts2.SyntaxKind.TrueKeyword:
139
- case ts2.SyntaxKind.FalseKeyword:
140
- case ts2.SyntaxKind.BooleanKeyword:
141
- return ts2.factory.createIdentifier("Boolean");
142
- case ts2.SyntaxKind.StringLiteral:
143
- case ts2.SyntaxKind.StringKeyword:
144
- return ts2.factory.createIdentifier("String");
145
- case ts2.SyntaxKind.ObjectKeyword:
146
- return ts2.factory.createIdentifier("Object");
147
- case ts2.SyntaxKind.NumberKeyword:
148
- case ts2.SyntaxKind.NumericLiteral:
149
- return ts2.factory.createIdentifier("Number");
150
- case ts2.SyntaxKind.TypeReference:
98
+ case ts.SyntaxKind.FunctionType:
99
+ case ts.SyntaxKind.ConstructorType:
100
+ return ts.factory.createIdentifier("Function");
101
+ case ts.SyntaxKind.ArrayType:
102
+ case ts.SyntaxKind.TupleType:
103
+ return ts.factory.createIdentifier("Array");
104
+ case ts.SyntaxKind.TypePredicate:
105
+ case ts.SyntaxKind.TrueKeyword:
106
+ case ts.SyntaxKind.FalseKeyword:
107
+ case ts.SyntaxKind.BooleanKeyword:
108
+ return ts.factory.createIdentifier("Boolean");
109
+ case ts.SyntaxKind.StringLiteral:
110
+ case ts.SyntaxKind.StringKeyword:
111
+ return ts.factory.createIdentifier("String");
112
+ case ts.SyntaxKind.ObjectKeyword:
113
+ return ts.factory.createIdentifier("Object");
114
+ case ts.SyntaxKind.NumberKeyword:
115
+ case ts.SyntaxKind.NumericLiteral:
116
+ return ts.factory.createIdentifier("Number");
117
+ case ts.SyntaxKind.TypeReference:
151
118
  const typeRef = node;
152
119
  return entityNameToExpression(typeRef.typeName);
153
- case ts2.SyntaxKind.UnionType:
154
- const childTypeNodes = node.types.filter((t) => !(ts2.isLiteralTypeNode(t) && t.literal.kind === ts2.SyntaxKind.NullKeyword));
120
+ case ts.SyntaxKind.UnionType:
121
+ const childTypeNodes = node.types.filter((t) => !(ts.isLiteralTypeNode(t) && t.literal.kind === ts.SyntaxKind.NullKeyword));
155
122
  return childTypeNodes.length === 1 ? typeReferenceToExpression(entityNameToExpression, childTypeNodes[0]) : void 0;
156
123
  default:
157
124
  return void 0;
158
125
  }
159
126
  }
160
127
  function symbolIsRuntimeValue(typeChecker, symbol) {
161
- if (symbol.flags & ts2.SymbolFlags.Alias) {
128
+ if (symbol.flags & ts.SymbolFlags.Alias) {
162
129
  symbol = typeChecker.getAliasedSymbol(symbol);
163
130
  }
164
- return (symbol.flags & ts2.SymbolFlags.Value & ts2.SymbolFlags.ConstEnumExcludes) !== 0;
131
+ return (symbol.flags & ts.SymbolFlags.Value & ts.SymbolFlags.ConstEnumExcludes) !== 0;
165
132
  }
166
133
  function getDownlevelDecoratorsTransform(typeChecker, host, diagnostics, isCore, isClosureCompilerEnabled, skipClassDecorators) {
167
134
  function addJSDocTypeAnnotation(node, jsdocType) {
168
135
  if (!isClosureCompilerEnabled) {
169
136
  return;
170
137
  }
171
- ts2.setSyntheticLeadingComments(node, [
138
+ ts.setSyntheticLeadingComments(node, [
172
139
  {
173
- kind: ts2.SyntaxKind.MultiLineCommentTrivia,
140
+ kind: ts.SyntaxKind.MultiLineCommentTrivia,
174
141
  text: `* @type {${jsdocType}} `,
175
142
  pos: -1,
176
143
  end: -1,
@@ -179,19 +146,19 @@ function getDownlevelDecoratorsTransform(typeChecker, host, diagnostics, isCore,
179
146
  ]);
180
147
  }
181
148
  function createDecoratorClassProperty(decoratorList) {
182
- const modifier = ts2.factory.createToken(ts2.SyntaxKind.StaticKeyword);
183
- const initializer = ts2.factory.createArrayLiteralExpression(decoratorList, true);
184
- const prop = ts2.factory.createPropertyDeclaration([modifier], "decorators", void 0, void 0, initializer);
149
+ const modifier = ts.factory.createToken(ts.SyntaxKind.StaticKeyword);
150
+ const initializer = ts.factory.createArrayLiteralExpression(decoratorList, true);
151
+ const prop = ts.factory.createPropertyDeclaration([modifier], "decorators", void 0, void 0, initializer);
185
152
  addJSDocTypeAnnotation(prop, DECORATOR_INVOCATION_JSDOC_TYPE);
186
153
  return prop;
187
154
  }
188
155
  function createPropDecoratorsClassProperty(diagnostics2, properties) {
189
156
  const entries = [];
190
157
  for (const [name, decorators] of properties.entries()) {
191
- entries.push(ts2.factory.createPropertyAssignment(name, ts2.factory.createArrayLiteralExpression(decorators.map((deco) => extractMetadataFromSingleDecorator(deco, diagnostics2)))));
158
+ entries.push(ts.factory.createPropertyAssignment(name, ts.factory.createArrayLiteralExpression(decorators.map((deco) => extractMetadataFromSingleDecorator(deco, diagnostics2)))));
192
159
  }
193
- const initializer = ts2.factory.createObjectLiteralExpression(entries, true);
194
- const prop = ts2.factory.createPropertyDeclaration([ts2.factory.createToken(ts2.SyntaxKind.StaticKeyword)], "propDecorators", void 0, void 0, initializer);
160
+ const initializer = ts.factory.createObjectLiteralExpression(entries, true);
161
+ const prop = ts.factory.createPropertyDeclaration([ts.factory.createToken(ts.SyntaxKind.StaticKeyword)], "propDecorators", void 0, void 0, initializer);
195
162
  addJSDocTypeAnnotation(prop, `!Object<string, ${DECORATOR_INVOCATION_JSDOC_TYPE}>`);
196
163
  return prop;
197
164
  }
@@ -202,24 +169,24 @@ function getDownlevelDecoratorsTransform(typeChecker, host, diagnostics, isCore,
202
169
  if (!symbol || !symbolIsRuntimeValue(typeChecker, symbol) || !symbol.declarations || symbol.declarations.length === 0) {
203
170
  return void 0;
204
171
  }
205
- if (ts2.isQualifiedName(name)) {
172
+ if (ts.isQualifiedName(name)) {
206
173
  const containerExpr = entityNameToExpression(name.left);
207
174
  if (containerExpr === void 0) {
208
175
  return void 0;
209
176
  }
210
- return ts2.factory.createPropertyAccessExpression(containerExpr, name.right);
177
+ return ts.factory.createPropertyAccessExpression(containerExpr, name.right);
211
178
  }
212
179
  const decl = symbol.declarations[0];
213
180
  if (isAliasImportDeclaration(decl)) {
214
181
  referencedParameterTypes.add(decl);
215
182
  if (decl.name !== void 0) {
216
- return ts2.setOriginalNode(ts2.factory.createIdentifier(decl.name.text), decl.name);
183
+ return ts.setOriginalNode(ts.factory.createIdentifier(decl.name.text), decl.name);
217
184
  }
218
185
  }
219
- return ts2.setOriginalNode(ts2.factory.createIdentifier(name.text), name);
186
+ return ts.setOriginalNode(ts.factory.createIdentifier(name.text), name);
220
187
  }
221
188
  function transformClassElement(element) {
222
- element = ts2.visitEachChild(element, decoratorDownlevelVisitor, context);
189
+ element = ts.visitEachChild(element, decoratorDownlevelVisitor, context);
223
190
  const decoratorsToKeep = [];
224
191
  const toLower = [];
225
192
  const decorators = host.getDecoratorsOfDeclaration(element) || [];
@@ -233,26 +200,26 @@ function getDownlevelDecoratorsTransform(typeChecker, host, diagnostics, isCore,
233
200
  }
234
201
  if (!toLower.length)
235
202
  return [void 0, element, []];
236
- if (!element.name || !ts2.isIdentifier(element.name)) {
203
+ if (!element.name || !ts.isIdentifier(element.name)) {
237
204
  diagnostics.push({
238
205
  file: element.getSourceFile(),
239
206
  start: element.getStart(),
240
207
  length: element.getEnd() - element.getStart(),
241
208
  messageText: `Cannot process decorators for class element with non-analyzable name.`,
242
- category: ts2.DiagnosticCategory.Error,
209
+ category: ts.DiagnosticCategory.Error,
243
210
  code: 0
244
211
  });
245
212
  return [void 0, element, []];
246
213
  }
247
- const elementModifiers = ts2.canHaveModifiers(element) ? ts2.getModifiers(element) : void 0;
214
+ const elementModifiers = ts.canHaveModifiers(element) ? ts.getModifiers(element) : void 0;
248
215
  let modifiers;
249
216
  if (decoratorsToKeep.length || (elementModifiers == null ? void 0 : elementModifiers.length)) {
250
- modifiers = ts2.setTextRange(ts2.factory.createNodeArray([...decoratorsToKeep, ...elementModifiers || []]), element.modifiers);
217
+ modifiers = ts.setTextRange(ts.factory.createNodeArray([...decoratorsToKeep, ...elementModifiers || []]), element.modifiers);
251
218
  }
252
219
  return [element.name.text, cloneClassElementWithModifiers(element, modifiers), toLower];
253
220
  }
254
221
  function transformConstructor(ctor) {
255
- ctor = ts2.visitEachChild(ctor, decoratorDownlevelVisitor, context);
222
+ ctor = ts.visitEachChild(ctor, decoratorDownlevelVisitor, context);
256
223
  const newParameters = [];
257
224
  const oldParameters = ctor.parameters;
258
225
  const parametersInfo = [];
@@ -273,14 +240,14 @@ function getDownlevelDecoratorsTransform(typeChecker, host, diagnostics, isCore,
273
240
  }
274
241
  parametersInfo.push(paramInfo);
275
242
  let modifiers;
276
- const paramModifiers = ts2.getModifiers(param);
243
+ const paramModifiers = ts.getModifiers(param);
277
244
  if (decoratorsToKeep.length || (paramModifiers == null ? void 0 : paramModifiers.length)) {
278
245
  modifiers = [...decoratorsToKeep, ...paramModifiers || []];
279
246
  }
280
- const newParam = ts2.factory.updateParameterDeclaration(param, modifiers, param.dotDotDotToken, param.name, param.questionToken, param.type, param.initializer);
247
+ const newParam = ts.factory.updateParameterDeclaration(param, modifiers, param.dotDotDotToken, param.name, param.questionToken, param.type, param.initializer);
281
248
  newParameters.push(newParam);
282
249
  }
283
- const updated = ts2.factory.updateConstructorDeclaration(ctor, ts2.getModifiers(ctor), newParameters, ctor.body);
250
+ const updated = ts.factory.updateConstructorDeclaration(ctor, ts.getModifiers(ctor), newParameters, ctor.body);
284
251
  return [updated, parametersInfo];
285
252
  }
286
253
  function transformClassDeclaration(classDecl) {
@@ -289,17 +256,17 @@ function getDownlevelDecoratorsTransform(typeChecker, host, diagnostics, isCore,
289
256
  let classParameters = null;
290
257
  for (const member of classDecl.members) {
291
258
  switch (member.kind) {
292
- case ts2.SyntaxKind.PropertyDeclaration:
293
- case ts2.SyntaxKind.GetAccessor:
294
- case ts2.SyntaxKind.SetAccessor:
295
- case ts2.SyntaxKind.MethodDeclaration: {
259
+ case ts.SyntaxKind.PropertyDeclaration:
260
+ case ts.SyntaxKind.GetAccessor:
261
+ case ts.SyntaxKind.SetAccessor:
262
+ case ts.SyntaxKind.MethodDeclaration: {
296
263
  const [name, newMember, decorators] = transformClassElement(member);
297
264
  newMembers.push(newMember);
298
265
  if (name)
299
266
  decoratedProperties.set(name, decorators);
300
267
  continue;
301
268
  }
302
- case ts2.SyntaxKind.Constructor: {
269
+ case ts.SyntaxKind.Constructor: {
303
270
  const ctor = member;
304
271
  if (!ctor.body)
305
272
  break;
@@ -311,9 +278,9 @@ function getDownlevelDecoratorsTransform(typeChecker, host, diagnostics, isCore,
311
278
  default:
312
279
  break;
313
280
  }
314
- newMembers.push(ts2.visitEachChild(member, decoratorDownlevelVisitor, context));
281
+ newMembers.push(ts.visitEachChild(member, decoratorDownlevelVisitor, context));
315
282
  }
316
- const decoratorsToKeep = new Set(ts2.getDecorators(classDecl));
283
+ const decoratorsToKeep = new Set(ts.getDecorators(classDecl));
317
284
  const possibleAngularDecorators = host.getDecoratorsOfDeclaration(classDecl) || [];
318
285
  let hasAngularDecorator = false;
319
286
  const decoratorsToLower = [];
@@ -339,39 +306,39 @@ function getDownlevelDecoratorsTransform(typeChecker, host, diagnostics, isCore,
339
306
  if (decoratedProperties.size) {
340
307
  newMembers.push(createPropDecoratorsClassProperty(diagnostics, decoratedProperties));
341
308
  }
342
- const members = ts2.setTextRange(ts2.factory.createNodeArray(newMembers, classDecl.members.hasTrailingComma), classDecl.members);
343
- const classModifiers = ts2.getModifiers(classDecl);
309
+ const members = ts.setTextRange(ts.factory.createNodeArray(newMembers, classDecl.members.hasTrailingComma), classDecl.members);
310
+ const classModifiers = ts.getModifiers(classDecl);
344
311
  let modifiers;
345
312
  if (decoratorsToKeep.size || (classModifiers == null ? void 0 : classModifiers.length)) {
346
313
  modifiers = [...decoratorsToKeep, ...classModifiers || []];
347
314
  }
348
- return ts2.factory.updateClassDeclaration(classDecl, modifiers, classDecl.name, classDecl.typeParameters, classDecl.heritageClauses, members);
315
+ return ts.factory.updateClassDeclaration(classDecl, modifiers, classDecl.name, classDecl.typeParameters, classDecl.heritageClauses, members);
349
316
  }
350
317
  function decoratorDownlevelVisitor(node) {
351
- if (ts2.isClassDeclaration(node)) {
318
+ if (ts.isClassDeclaration(node)) {
352
319
  return transformClassDeclaration(node);
353
320
  }
354
- return ts2.visitEachChild(node, decoratorDownlevelVisitor, context);
321
+ return ts.visitEachChild(node, decoratorDownlevelVisitor, context);
355
322
  }
356
323
  return (sf) => {
357
- return ts2.visitEachChild(sf, decoratorDownlevelVisitor, context);
324
+ return ts.visitEachChild(sf, decoratorDownlevelVisitor, context);
358
325
  };
359
326
  };
360
327
  }
361
328
  function cloneClassElementWithModifiers(node, modifiers) {
362
329
  let clone;
363
- if (ts2.isMethodDeclaration(node)) {
364
- clone = ts2.factory.createMethodDeclaration(modifiers, node.asteriskToken, node.name, node.questionToken, node.typeParameters, node.parameters, node.type, node.body);
365
- } else if (ts2.isPropertyDeclaration(node)) {
366
- clone = ts2.factory.createPropertyDeclaration(modifiers, node.name, node.questionToken, node.type, node.initializer);
367
- } else if (ts2.isGetAccessor(node)) {
368
- clone = ts2.factory.createGetAccessorDeclaration(modifiers, node.name, node.parameters, node.type, node.body);
369
- } else if (ts2.isSetAccessor(node)) {
370
- clone = ts2.factory.createSetAccessorDeclaration(modifiers, node.name, node.parameters, node.body);
330
+ if (ts.isMethodDeclaration(node)) {
331
+ clone = ts.factory.createMethodDeclaration(modifiers, node.asteriskToken, node.name, node.questionToken, node.typeParameters, node.parameters, node.type, node.body);
332
+ } else if (ts.isPropertyDeclaration(node)) {
333
+ clone = ts.factory.createPropertyDeclaration(modifiers, node.name, node.questionToken, node.type, node.initializer);
334
+ } else if (ts.isGetAccessor(node)) {
335
+ clone = ts.factory.createGetAccessorDeclaration(modifiers, node.name, node.parameters, node.type, node.body);
336
+ } else if (ts.isSetAccessor(node)) {
337
+ clone = ts.factory.createSetAccessorDeclaration(modifiers, node.name, node.parameters, node.body);
371
338
  } else {
372
- throw new Error(`Unsupported decorated member with kind ${ts2.SyntaxKind[node.kind]}`);
339
+ throw new Error(`Unsupported decorated member with kind ${ts.SyntaxKind[node.kind]}`);
373
340
  }
374
- return ts2.setOriginalNode(clone, node);
341
+ return ts.setOriginalNode(clone, node);
375
342
  }
376
343
 
377
344
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/private/tooling.mjs
@@ -408,4 +375,4 @@ export {
408
375
  * Use of this source code is governed by an MIT-style license that can be
409
376
  * found in the LICENSE file at https://angular.io/license
410
377
  */
411
- //# sourceMappingURL=chunk-Q6W3UCXI.js.map
378
+ //# sourceMappingURL=chunk-J3L7WZP3.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../packages/compiler-cli/src/transformers/downlevel_decorators_transform/downlevel_decorators_transform.ts", "../../../../../../packages/compiler-cli/private/tooling.ts"],
4
+ "mappings": ";;;;;;;;;;;;;AAQA,OAAO,QAAQ;AASf,SAAS,mBAAmB,WAAsB,QAAe;AAC/D,SAAO,UAAW,UAAU,WAAW,QAAQ,UAAU,OAAO,SAAS;AAC3E;AAwBA,IAAM,kCAAkC;AASxC,SAAS,mCACL,WAAyB,aAA4B;AACvD,QAAM,qBAAoD,CAAA;AAC1D,QAAM,OAAO,UAAU;AACvB,UAAQ,KAAK,MAAM;IACjB,KAAK,GAAG,WAAW;AAEjB,yBAAmB,KAAK,GAAG,QAAQ,yBAAyB,QAAQ,IAAI,CAAC;AACzE;IACF,KAAK,GAAG,WAAW;AAEjB,YAAM,OAAO;AACb,yBAAmB,KAAK,GAAG,QAAQ,yBAAyB,QAAQ,KAAK,UAAU,CAAC;AACpF,UAAI,KAAK,UAAU,QAAQ;AACzB,cAAM,OAAwB,CAAA;AAC9B,mBAAW,OAAO,KAAK,WAAW;AAChC,eAAK,KAAK,GAAG;;AAEf,cAAM,mBACF,GAAG,QAAQ,6BAA6B,GAAG,QAAQ,gBAAg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AK,MAAM,KAAK,eAAe,KAAK,MAAM,KAAK,WAAW;aAChE,GAAG,cAAc,IAAI,GAAG;AACjC,YAAQ,GAAG,QAAQ,6BACf,WAAW,KAAK,MAAM,KAAK,YAAY,KAAK,MAAM,KAAK,IAAI;aACtD,GAAG,cAAc,IAAI,GAAG;AACjC,YACI,GAAG,QAAQ,6BAA6B,WAAW,KAAK,MAAM,KAAK,YAAY,KAAK,IAAI;SACvF;AACL,UAAM,IAAI,MAAM,0CAA0C,GAAG,WAAW,KAAK,OAAO;;AAGtF,SAAO,GAAG,gBAAgB,OAAO,IAAI;AACvC;;;ACzlBO,IAAM,yBAAyB;EACpC,WAAW;EACX,mBAAmB;;AAGd,IAAM,kCAAkC;EAC7C,GAAG;EACH,WAAW;;AAUP,SAAU,wCAAwC,SAAmB;AAEzE,QAAM,cAAc,QAAQ,eAAc;AAC1C,QAAM,iBAAiB,IAAI,yBAAyB,WAAW;AAC/D,SAAO;IACH;IAAa;IAAgB,CAAA;IAAiB;IAClB;IAAiC;EAAI;AACvE;",
5
+ "names": ["diagnostics"]
6
+ }
@@ -37,7 +37,7 @@ import {
37
37
  sendMessageToWorker,
38
38
  sortTasksByPriority,
39
39
  stringifyTask
40
- } from "./chunk-OAZD7RII.js";
40
+ } from "./chunk-NXCQCU6C.js";
41
41
  import {
42
42
  LogLevel
43
43
  } from "./chunk-SBDNBITT.js";
@@ -892,7 +892,7 @@ var ProgramBasedEntryPointFinder = class extends TracingEntryPointFinder {
892
892
  };
893
893
 
894
894
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/build_marker.mjs
895
- var NGCC_VERSION = "15.2.0-next.4";
895
+ var NGCC_VERSION = "15.2.0";
896
896
  function needsCleaning(packageJson) {
897
897
  return Object.values(packageJson.__processed_by_ivy_ngcc__ || {}).some((value) => value !== NGCC_VERSION);
898
898
  }
@@ -2184,4 +2184,4 @@ export {
2184
2184
  * Use of this source code is governed by an MIT-style license that can be
2185
2185
  * found in the LICENSE file at https://angular.io/license
2186
2186
  */
2187
- //# sourceMappingURL=chunk-BEXFRTBC.js.map
2187
+ //# sourceMappingURL=chunk-MLCT4AWL.js.map
@@ -7,7 +7,7 @@ import {
7
7
  ImportGraph,
8
8
  isShim,
9
9
  readConfiguration
10
- } from "./chunk-HYFCMILZ.js";
10
+ } from "./chunk-2OF2AI57.js";
11
11
  import {
12
12
  CompilationMode,
13
13
  ComponentDecoratorHandler,
@@ -32,7 +32,7 @@ import {
32
32
  TypeCheckScopeRegistry,
33
33
  forwardRefResolver,
34
34
  readBaseClass
35
- } from "./chunk-JYL7IHZC.js";
35
+ } from "./chunk-PKSKJEUS.js";
36
36
  import {
37
37
  ClassMemberKind,
38
38
  KnownDeclaration,
@@ -53,8 +53,12 @@ import {
53
53
  SourceFileLoader
54
54
  } from "./chunk-6ZJFIQBG.js";
55
55
  import {
56
- AbsoluteModuleStrategy,
57
56
  ImportManager,
57
+ translateStatement,
58
+ translateType
59
+ } from "./chunk-QRHWLC7U.js";
60
+ import {
61
+ AbsoluteModuleStrategy,
58
62
  LocalIdentifierStrategy,
59
63
  LogicalProjectStrategy,
60
64
  ModuleResolver,
@@ -69,10 +73,8 @@ import {
69
73
  isFromDtsFile,
70
74
  isSymbolWithValueDeclaration,
71
75
  replaceTsWithNgInErrors,
72
- translateStatement,
73
- translateType,
74
76
  validateAndRewriteCoreSymbol
75
- } from "./chunk-Z534TW2O.js";
77
+ } from "./chunk-ZCBRXUPO.js";
76
78
  import {
77
79
  LogicalFileSystem,
78
80
  NgtscCompilerHost,
@@ -5260,4 +5262,4 @@ export {
5260
5262
  * Use of this source code is governed by an MIT-style license that can be
5261
5263
  * found in the LICENSE file at https://angular.io/license
5262
5264
  */
5263
- //# sourceMappingURL=chunk-OAZD7RII.js.map
5265
+ //# sourceMappingURL=chunk-NXCQCU6C.js.map