@angular/compiler-cli 14.0.0-next.3 → 14.0.0-next.4

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 (39) hide show
  1. package/bundles/{chunk-7C3Q5ZSV.js → chunk-26T3CJIJ.js} +80 -61
  2. package/bundles/chunk-26T3CJIJ.js.map +6 -0
  3. package/bundles/{chunk-A5PL3TE6.js → chunk-3MNDX4LL.js} +31 -31
  4. package/bundles/chunk-3MNDX4LL.js.map +6 -0
  5. package/bundles/{chunk-QMGQEVL2.js → chunk-5RC6M6GX.js} +67 -61
  6. package/bundles/chunk-5RC6M6GX.js.map +6 -0
  7. package/bundles/{chunk-7PY7XEFH.js → chunk-AR265E4B.js} +2 -2
  8. package/bundles/chunk-AR265E4B.js.map +6 -0
  9. package/bundles/{chunk-YG7H35RB.js → chunk-EKTXEYNU.js} +3 -3
  10. package/bundles/{chunk-YG7H35RB.js.map → chunk-EKTXEYNU.js.map} +0 -0
  11. package/bundles/{chunk-QYWK7GNC.js → chunk-NOHUA2VC.js} +8 -8
  12. package/bundles/{chunk-QYWK7GNC.js.map → chunk-NOHUA2VC.js.map} +1 -1
  13. package/bundles/{chunk-2N3G5KYJ.js → chunk-O6MYVXDE.js} +144 -138
  14. package/bundles/chunk-O6MYVXDE.js.map +6 -0
  15. package/bundles/{chunk-TYUIAZWZ.js → chunk-OOJDZK5W.js} +4 -4
  16. package/bundles/{chunk-TYUIAZWZ.js.map → chunk-OOJDZK5W.js.map} +0 -0
  17. package/bundles/{chunk-JKIKUGPN.js → chunk-SPJK7BKR.js} +2 -2
  18. package/bundles/{chunk-JKIKUGPN.js.map → chunk-SPJK7BKR.js.map} +0 -0
  19. package/bundles/index.js +6 -6
  20. package/bundles/linker/babel/index.js +2 -2
  21. package/bundles/linker/index.js +2 -2
  22. package/bundles/ngcc/index.js +6 -6
  23. package/bundles/ngcc/main-ngcc.js +6 -6
  24. package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js +5 -5
  25. package/bundles/private/migrations.js +3 -3
  26. package/bundles/private/tooling.js +2 -2
  27. package/bundles/src/bin/ng_xi18n.js +5 -5
  28. package/bundles/src/bin/ngc.js +5 -5
  29. package/bundles_metadata.json +1 -1
  30. package/ngcc/src/packages/build_marker.d.ts +1 -1
  31. package/package.json +2 -2
  32. package/src/ngtsc/annotations/component/src/util.d.ts +3 -1
  33. package/src/ngtsc/translator/src/typescript_ast_factory.d.ts +1 -4
  34. package/src/ngtsc/typecheck/src/diagnostics.d.ts +6 -5
  35. package/bundles/chunk-2N3G5KYJ.js.map +0 -6
  36. package/bundles/chunk-7C3Q5ZSV.js.map +0 -6
  37. package/bundles/chunk-7PY7XEFH.js.map +0 -6
  38. package/bundles/chunk-A5PL3TE6.js.map +0 -6
  39. package/bundles/chunk-QMGQEVL2.js.map +0 -6
@@ -13,7 +13,7 @@ import {
13
13
  reflectObjectLiteral,
14
14
  reflectTypeEntityToDeclaration,
15
15
  typeNodeToValueExpr
16
- } from "./chunk-7PY7XEFH.js";
16
+ } from "./chunk-AR265E4B.js";
17
17
  import {
18
18
  ErrorCode,
19
19
  FatalDiagnosticError,
@@ -35,7 +35,7 @@ import {
35
35
  translateExpression,
36
36
  translateStatement,
37
37
  translateType
38
- } from "./chunk-QMGQEVL2.js";
38
+ } from "./chunk-5RC6M6GX.js";
39
39
  import {
40
40
  absoluteFrom,
41
41
  absoluteFromSourceFile,
@@ -188,7 +188,7 @@ var parensWrapperTransformerFactory = (context) => {
188
188
  const visitor = (node) => {
189
189
  const visited = ts.visitEachChild(node, visitor, context);
190
190
  if (ts.isArrowFunction(visited) || ts.isFunctionExpression(visited)) {
191
- return ts.createParen(visited);
191
+ return ts.factory.createParenthesizedExpression(visited);
192
192
  }
193
193
  return visited;
194
194
  };
@@ -1315,7 +1315,7 @@ function getConstructorDependencies(clazz, reflector, isCore) {
1315
1315
  if (ts4.isStringLiteralLike(attributeName)) {
1316
1316
  attributeNameType = new LiteralExpr(attributeName.text);
1317
1317
  } else {
1318
- attributeNameType = new WrappedNodeExpr2(ts4.createKeywordTypeNode(ts4.SyntaxKind.UnknownKeyword));
1318
+ attributeNameType = new WrappedNodeExpr2(ts4.factory.createKeywordTypeNode(ts4.SyntaxKind.UnknownKeyword));
1319
1319
  }
1320
1320
  } else {
1321
1321
  throw new FatalDiagnosticError(ErrorCode.DECORATOR_UNEXPECTED, Decorator.nodeForError(dec), `Unexpected decorator ${name} on parameter.`);
@@ -1585,7 +1585,7 @@ function extractClassMetadata(clazz, reflection, isCore, annotateForClosureCompi
1585
1585
  if (ngClassDecorators.length === 0) {
1586
1586
  return null;
1587
1587
  }
1588
- const metaDecorators = new WrappedNodeExpr3(ts7.createArrayLiteral(ngClassDecorators));
1588
+ const metaDecorators = new WrappedNodeExpr3(ts7.factory.createArrayLiteralExpression(ngClassDecorators));
1589
1589
  let metaCtorParameters = null;
1590
1590
  const classCtorParameters = reflection.getConstructorParameters(clazz);
1591
1591
  if (classCtorParameters !== null) {
@@ -1605,7 +1605,7 @@ function extractClassMetadata(clazz, reflection, isCore, annotateForClosureCompi
1605
1605
  return classMemberToMetadata((_a = member.nameNode) != null ? _a : member.name, member.decorators, isCore);
1606
1606
  });
1607
1607
  if (decoratedMembers.length > 0) {
1608
- metaPropDecorators = new WrappedNodeExpr3(ts7.createObjectLiteral(decoratedMembers));
1608
+ metaPropDecorators = new WrappedNodeExpr3(ts7.factory.createObjectLiteralExpression(decoratedMembers));
1609
1609
  }
1610
1610
  return {
1611
1611
  type: new WrappedNodeExpr3(id),
@@ -1621,38 +1621,38 @@ function ctorParameterToMetadata(param, isCore) {
1621
1621
  ];
1622
1622
  if (param.decorators !== null) {
1623
1623
  const ngDecorators = param.decorators.filter((dec) => isAngularDecorator2(dec, isCore)).map((decorator) => decoratorToMetadata(decorator));
1624
- const value = new WrappedNodeExpr3(ts7.createArrayLiteral(ngDecorators));
1624
+ const value = new WrappedNodeExpr3(ts7.factory.createArrayLiteralExpression(ngDecorators));
1625
1625
  mapEntries.push({ key: "decorators", value, quoted: false });
1626
1626
  }
1627
1627
  return literalMap(mapEntries);
1628
1628
  }
1629
1629
  function classMemberToMetadata(name, decorators, isCore) {
1630
1630
  const ngDecorators = decorators.filter((dec) => isAngularDecorator2(dec, isCore)).map((decorator) => decoratorToMetadata(decorator));
1631
- const decoratorMeta = ts7.createArrayLiteral(ngDecorators);
1632
- return ts7.createPropertyAssignment(name, decoratorMeta);
1631
+ const decoratorMeta = ts7.factory.createArrayLiteralExpression(ngDecorators);
1632
+ return ts7.factory.createPropertyAssignment(name, decoratorMeta);
1633
1633
  }
1634
1634
  function decoratorToMetadata(decorator, wrapFunctionsInParens) {
1635
1635
  if (decorator.identifier === null) {
1636
1636
  throw new Error("Illegal state: synthesized decorator cannot be emitted in class metadata.");
1637
1637
  }
1638
1638
  const properties = [
1639
- ts7.createPropertyAssignment("type", ts7.getMutableClone(decorator.identifier))
1639
+ ts7.factory.createPropertyAssignment("type", ts7.getMutableClone(decorator.identifier))
1640
1640
  ];
1641
1641
  if (decorator.args !== null && decorator.args.length > 0) {
1642
1642
  const args = decorator.args.map((arg) => {
1643
1643
  const expr = ts7.getMutableClone(arg);
1644
1644
  return wrapFunctionsInParens ? wrapFunctionExpressionsInParens(expr) : expr;
1645
1645
  });
1646
- properties.push(ts7.createPropertyAssignment("args", ts7.createArrayLiteral(args)));
1646
+ properties.push(ts7.factory.createPropertyAssignment("args", ts7.factory.createArrayLiteralExpression(args)));
1647
1647
  }
1648
- return ts7.createObjectLiteral(properties, true);
1648
+ return ts7.factory.createObjectLiteralExpression(properties, true);
1649
1649
  }
1650
1650
  function isAngularDecorator2(decorator, isCore) {
1651
1651
  return isCore || decorator.import !== null && decorator.import.from === "@angular/core";
1652
1652
  }
1653
1653
  function removeIdentifierReferences(node, name) {
1654
1654
  const result = ts7.transform(node, [(context) => (root) => ts7.visitNode(root, function walk(current) {
1655
- return ts7.isIdentifier(current) && current.text === name ? ts7.createIdentifier(current.text) : ts7.visitEachChild(current, walk, context);
1655
+ return ts7.isIdentifier(current) && current.text === name ? ts7.factory.createIdentifier(current.text) : ts7.visitEachChild(current, walk, context);
1656
1656
  })]);
1657
1657
  return result.transformed[0];
1658
1658
  }
@@ -1665,7 +1665,7 @@ var NoopReferencesRegistry = class {
1665
1665
 
1666
1666
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
1667
1667
  import { compileClassMetadata as compileClassMetadata3, compileComponentFromMetadata, compileDeclareClassMetadata as compileDeclareClassMetadata3, compileDeclareComponentFromMetadata, CssSelector, DEFAULT_INTERPOLATION_CONFIG as DEFAULT_INTERPOLATION_CONFIG2, DomElementSchemaRegistry, FactoryTarget as FactoryTarget3, makeBindingParser as makeBindingParser2, R3TargetBinder, SelectorMatcher, ViewEncapsulation, WrappedNodeExpr as WrappedNodeExpr7 } from "@angular/compiler";
1668
- import ts24 from "typescript";
1668
+ import ts25 from "typescript";
1669
1669
 
1670
1670
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.mjs
1671
1671
  import ts8 from "typescript";
@@ -2464,10 +2464,10 @@ function aliasTransformFactory(exportStatements) {
2464
2464
  }
2465
2465
  const statements = [...file.statements];
2466
2466
  exportStatements.get(file.fileName).forEach(([moduleName, symbolName], aliasName) => {
2467
- const stmt = ts12.createExportDeclaration(void 0, void 0, ts12.createNamedExports([createExportSpecifier(symbolName, aliasName)]), ts12.createStringLiteral(moduleName));
2467
+ const stmt = ts12.factory.createExportDeclaration(void 0, void 0, false, ts12.createNamedExports([createExportSpecifier(symbolName, aliasName)]), ts12.factory.createStringLiteral(moduleName));
2468
2468
  statements.push(stmt);
2469
2469
  });
2470
- return ts12.updateSourceFileNode(file, statements);
2470
+ return ts12.factory.updateSourceFile(file, statements);
2471
2471
  };
2472
2472
  };
2473
2473
  }
@@ -2719,7 +2719,7 @@ function transformFactorySourceFile(factoryMap, context, importRewriter, file) {
2719
2719
  if (ts14.isImportDeclaration(stmt) && ts14.isStringLiteral(stmt.moduleSpecifier) && stmt.moduleSpecifier.text === "@angular/core") {
2720
2720
  const rewrittenModuleSpecifier = importRewriter.rewriteSpecifier("@angular/core", sourceFilePath);
2721
2721
  if (rewrittenModuleSpecifier !== stmt.moduleSpecifier.text) {
2722
- transformedStatements.push(ts14.updateImportDeclaration(stmt, stmt.decorators, stmt.modifiers, stmt.importClause, ts14.createStringLiteral(rewrittenModuleSpecifier), void 0));
2722
+ transformedStatements.push(ts14.factory.updateImportDeclaration(stmt, stmt.decorators, stmt.modifiers, stmt.importClause, ts14.factory.createStringLiteral(rewrittenModuleSpecifier), void 0));
2723
2723
  if (stmt.importClause !== void 0 && stmt.importClause.namedBindings !== void 0 && ts14.isNamespaceImport(stmt.importClause.namedBindings)) {
2724
2724
  coreImportIdentifiers.add(stmt.importClause.namedBindings.name.text);
2725
2725
  }
@@ -2750,14 +2750,14 @@ function transformFactorySourceFile(factoryMap, context, importRewriter, file) {
2750
2750
  if (!transformedStatements.some(ts14.isVariableStatement) && nonEmptyExport !== null) {
2751
2751
  transformedStatements.push(nonEmptyExport);
2752
2752
  }
2753
- file = ts14.updateSourceFileNode(file, transformedStatements);
2753
+ file = ts14.factory.updateSourceFile(file, transformedStatements);
2754
2754
  if (coreImportIdentifiers.size > 0) {
2755
2755
  const visit2 = (node) => {
2756
2756
  node = ts14.visitEachChild(node, (child) => visit2(child), context);
2757
2757
  if (ts14.isPropertyAccessExpression(node) && ts14.isIdentifier(node.expression) && coreImportIdentifiers.has(node.expression.text)) {
2758
2758
  const rewrittenSymbol = importRewriter.rewriteSymbol(node.name.text, "@angular/core");
2759
2759
  if (rewrittenSymbol !== node.name.text) {
2760
- const updated = ts14.updatePropertyAccess(node, node.expression, ts14.createIdentifier(rewrittenSymbol));
2760
+ const updated = ts14.factory.updatePropertyAccessExpression(node, node.expression, ts14.factory.createIdentifier(rewrittenSymbol));
2761
2761
  node = updated;
2762
2762
  }
2763
2763
  }
@@ -2788,15 +2788,15 @@ function getFileoverviewComment(sourceFile) {
2788
2788
  return commentText;
2789
2789
  }
2790
2790
  function wrapInNoSideEffects(expr) {
2791
- const noSideEffects = ts14.createPropertyAccess(ts14.createIdentifier("i0"), "\u0275noSideEffects");
2792
- return ts14.createCall(noSideEffects, [], [
2793
- ts14.createFunctionExpression([], void 0, void 0, [], [], void 0, ts14.createBlock([
2794
- ts14.createReturn(expr)
2791
+ const noSideEffects = ts14.factory.createPropertyAccessExpression(ts14.factory.createIdentifier("i0"), "\u0275noSideEffects");
2792
+ return ts14.factory.createCallExpression(noSideEffects, [], [
2793
+ ts14.factory.createFunctionExpression([], void 0, void 0, [], [], void 0, ts14.factory.createBlock([
2794
+ ts14.factory.createReturnStatement(expr)
2795
2795
  ]))
2796
2796
  ]);
2797
2797
  }
2798
2798
  function updateInitializers(stmt, update) {
2799
- return ts14.updateVariableStatement(stmt, stmt.modifiers, ts14.updateVariableDeclarationList(stmt.declarationList, stmt.declarationList.declarations.map((decl) => ts14.updateVariableDeclaration(decl, decl.name, decl.type, update(decl.initializer)))));
2799
+ return ts14.factory.updateVariableStatement(stmt, stmt.modifiers, ts14.factory.updateVariableDeclarationList(stmt.declarationList, stmt.declarationList.declarations.map((decl) => ts14.updateVariableDeclaration(decl, decl.name, decl.type, update(decl.initializer)))));
2800
2800
  }
2801
2801
 
2802
2802
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
@@ -3375,17 +3375,17 @@ import ts18 from "typescript";
3375
3375
  import ts17 from "typescript";
3376
3376
  function addImports(importManager, sf, extraStatements = []) {
3377
3377
  const addedImports = importManager.getAllImports(sf.fileName).map((i) => {
3378
- const qualifier = ts17.createIdentifier(i.qualifier.text);
3379
- const importClause = ts17.createImportClause(void 0, ts17.createNamespaceImport(qualifier));
3380
- const decl = ts17.createImportDeclaration(void 0, void 0, importClause, ts17.createLiteral(i.specifier));
3378
+ const qualifier = ts17.factory.createIdentifier(i.qualifier.text);
3379
+ const importClause = ts17.factory.createImportClause(false, void 0, ts17.factory.createNamespaceImport(qualifier));
3380
+ const decl = ts17.factory.createImportDeclaration(void 0, void 0, importClause, ts17.factory.createStringLiteral(i.specifier));
3381
3381
  ts17.setOriginalNode(i.qualifier, decl);
3382
3382
  return decl;
3383
3383
  });
3384
3384
  const existingImports = sf.statements.filter((stmt) => isImportStatement(stmt));
3385
3385
  const body = sf.statements.filter((stmt) => !isImportStatement(stmt));
3386
3386
  if (addedImports.length > 0) {
3387
- const fileoverviewAnchorStmt = ts17.createNotEmittedStatement(sf);
3388
- return ts17.updateSourceFileNode(sf, ts17.createNodeArray([
3387
+ const fileoverviewAnchorStmt = ts17.factory.createNotEmittedStatement(sf);
3388
+ return ts17.factory.updateSourceFile(sf, ts17.factory.createNodeArray([
3389
3389
  fileoverviewAnchorStmt,
3390
3390
  ...existingImports,
3391
3391
  ...addedImports,
@@ -3483,7 +3483,7 @@ var DtsTransformer = class {
3483
3483
  }
3484
3484
  }
3485
3485
  if (elementsChanged && clazz === newClazz) {
3486
- newClazz = ts18.updateClassDeclaration(clazz, clazz.decorators, clazz.modifiers, clazz.name, clazz.typeParameters, clazz.heritageClauses, elements);
3486
+ newClazz = ts18.factory.updateClassDeclaration(clazz, clazz.decorators, clazz.modifiers, clazz.name, clazz.typeParameters, clazz.heritageClauses, elements);
3487
3487
  }
3488
3488
  return newClazz;
3489
3489
  }
@@ -3511,12 +3511,12 @@ var IvyDeclarationDtsTransform = class {
3511
3511
  }
3512
3512
  const fields = this.declarationFields.get(original);
3513
3513
  const newMembers = fields.map((decl) => {
3514
- const modifiers = [ts18.createModifier(ts18.SyntaxKind.StaticKeyword)];
3514
+ const modifiers = [ts18.factory.createModifier(ts18.SyntaxKind.StaticKeyword)];
3515
3515
  const typeRef = translateType(decl.type, imports);
3516
3516
  markForEmitAsSingleLine(typeRef);
3517
- return ts18.createProperty(void 0, modifiers, decl.name, void 0, typeRef, void 0);
3517
+ return ts18.factory.createPropertyDeclaration(void 0, modifiers, decl.name, void 0, typeRef, void 0);
3518
3518
  });
3519
- return ts18.updateClassDeclaration(clazz, clazz.decorators, clazz.modifiers, clazz.name, clazz.typeParameters, clazz.heritageClauses, [...members, ...newMembers]);
3519
+ return ts18.factory.updateClassDeclaration(clazz, clazz.decorators, clazz.modifiers, clazz.name, clazz.typeParameters, clazz.heritageClauses, [...members, ...newMembers]);
3520
3520
  }
3521
3521
  };
3522
3522
  function markForEmitAsSingleLine(node) {
@@ -3581,7 +3581,7 @@ var Visitor = class {
3581
3581
  this._after.delete(stmt);
3582
3582
  }
3583
3583
  });
3584
- clone.statements = ts19.createNodeArray(newStatements, node.statements.hasTrailingComma);
3584
+ clone.statements = ts19.factory.createNodeArray(newStatements, node.statements.hasTrailingComma);
3585
3585
  return clone;
3586
3586
  }
3587
3587
  };
@@ -3639,14 +3639,14 @@ var IvyTransformationVisitor = class extends Visitor {
3639
3639
  const members = [...node.members];
3640
3640
  for (const field of this.classCompilationMap.get(node)) {
3641
3641
  const exprNode = translateExpression(field.initializer, this.importManager, translateOptions);
3642
- const property = ts20.createProperty(void 0, [ts20.createToken(ts20.SyntaxKind.StaticKeyword)], field.name, void 0, void 0, exprNode);
3642
+ const property = ts20.factory.createPropertyDeclaration(void 0, [ts20.factory.createToken(ts20.SyntaxKind.StaticKeyword)], field.name, void 0, void 0, exprNode);
3643
3643
  if (this.isClosureCompilerEnabled) {
3644
3644
  ts20.addSyntheticLeadingComment(property, ts20.SyntaxKind.MultiLineCommentTrivia, "* @nocollapse ", false);
3645
3645
  }
3646
3646
  field.statements.map((stmt) => translateStatement(stmt, this.importManager, translateOptions)).forEach((stmt) => statements.push(stmt));
3647
3647
  members.push(property);
3648
3648
  }
3649
- node = ts20.updateClassDeclaration(node, maybeFilterDecorator(node.decorators, this.compilation.decoratorsFor(node)), node.modifiers, node.name, node.typeParameters, node.heritageClauses || [], members.map((member) => this._stripAngularDecorators(member)));
3649
+ node = ts20.factory.updateClassDeclaration(node, maybeFilterDecorator(node.decorators, this.compilation.decoratorsFor(node)), node.modifiers, node.name, node.typeParameters, node.heritageClauses || [], members.map((member) => this._stripAngularDecorators(member)));
3650
3650
  return { node, after: statements };
3651
3651
  }
3652
3652
  _angularCoreDecorators(decl) {
@@ -3675,25 +3675,25 @@ var IvyTransformationVisitor = class extends Visitor {
3675
3675
  if (filtered.length === 0) {
3676
3676
  return void 0;
3677
3677
  }
3678
- const array = ts20.createNodeArray(filtered);
3678
+ const array = ts20.factory.createNodeArray(filtered);
3679
3679
  array.pos = node.decorators.pos;
3680
3680
  array.end = node.decorators.end;
3681
3681
  return array;
3682
3682
  }
3683
3683
  _stripAngularDecorators(node) {
3684
3684
  if (ts20.isParameter(node)) {
3685
- node = ts20.updateParameter(node, this._nonCoreDecoratorsOnly(node), node.modifiers, node.dotDotDotToken, node.name, node.questionToken, node.type, node.initializer);
3685
+ node = ts20.factory.updateParameterDeclaration(node, this._nonCoreDecoratorsOnly(node), node.modifiers, node.dotDotDotToken, node.name, node.questionToken, node.type, node.initializer);
3686
3686
  } else if (ts20.isMethodDeclaration(node) && node.decorators !== void 0) {
3687
- node = ts20.updateMethod(node, this._nonCoreDecoratorsOnly(node), node.modifiers, node.asteriskToken, node.name, node.questionToken, node.typeParameters, node.parameters, node.type, node.body);
3687
+ node = ts20.factory.updateMethodDeclaration(node, this._nonCoreDecoratorsOnly(node), node.modifiers, node.asteriskToken, node.name, node.questionToken, node.typeParameters, node.parameters, node.type, node.body);
3688
3688
  } else if (ts20.isPropertyDeclaration(node) && node.decorators !== void 0) {
3689
- node = ts20.updateProperty(node, this._nonCoreDecoratorsOnly(node), node.modifiers, node.name, node.questionToken, node.type, node.initializer);
3689
+ node = ts20.factory.updatePropertyDeclaration(node, this._nonCoreDecoratorsOnly(node), node.modifiers, node.name, node.questionToken, node.type, node.initializer);
3690
3690
  } else if (ts20.isGetAccessor(node)) {
3691
- node = ts20.updateGetAccessor(node, this._nonCoreDecoratorsOnly(node), node.modifiers, node.name, node.parameters, node.type, node.body);
3691
+ node = ts20.factory.updateGetAccessorDeclaration(node, this._nonCoreDecoratorsOnly(node), node.modifiers, node.name, node.parameters, node.type, node.body);
3692
3692
  } else if (ts20.isSetAccessor(node)) {
3693
- node = ts20.updateSetAccessor(node, this._nonCoreDecoratorsOnly(node), node.modifiers, node.name, node.parameters, node.body);
3693
+ node = ts20.factory.updateSetAccessorDeclaration(node, this._nonCoreDecoratorsOnly(node), node.modifiers, node.name, node.parameters, node.body);
3694
3694
  } else if (ts20.isConstructorDeclaration(node)) {
3695
3695
  const parameters = node.parameters.map((param) => this._stripAngularDecorators(param));
3696
- node = ts20.updateConstructor(node, node.decorators, node.modifiers, parameters, node.body);
3696
+ node = ts20.factory.updateConstructorDeclaration(node, node.decorators, node.modifiers, parameters, node.body);
3697
3697
  }
3698
3698
  return node;
3699
3699
  }
@@ -3757,7 +3757,7 @@ function maybeFilterDecorator(decorators, toRemove) {
3757
3757
  if (filtered.length === 0) {
3758
3758
  return void 0;
3759
3759
  }
3760
- return ts20.createNodeArray(filtered);
3760
+ return ts20.factory.createNodeArray(filtered);
3761
3761
  }
3762
3762
  function isFromAngularCore(decorator) {
3763
3763
  return decorator.import !== null && decorator.import.from === "@angular/core";
@@ -4439,7 +4439,7 @@ var NgModuleDecoratorHandler = class {
4439
4439
  if (decorator.args === null || decorator.args.length > 1) {
4440
4440
  throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARITY_WRONG, Decorator.nodeForError(decorator), `Incorrect number of arguments to @NgModule decorator`);
4441
4441
  }
4442
- const meta = decorator.args.length === 1 ? unwrapExpression(decorator.args[0]) : ts22.createObjectLiteral([]);
4442
+ const meta = decorator.args.length === 1 ? unwrapExpression(decorator.args[0]) : ts22.factory.createObjectLiteralExpression([]);
4443
4443
  if (!ts22.isObjectLiteralExpression(meta)) {
4444
4444
  throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARG_NOT_LITERAL, meta, "@NgModule argument must be an object literal");
4445
4445
  }
@@ -5044,17 +5044,17 @@ function transformDecoratorToInlineResources(dec, component, styles, template) {
5044
5044
  const metadata = new Map(component);
5045
5045
  if (metadata.has("templateUrl")) {
5046
5046
  metadata.delete("templateUrl");
5047
- metadata.set("template", ts23.createStringLiteral(template.content));
5047
+ metadata.set("template", ts23.factory.createStringLiteral(template.content));
5048
5048
  }
5049
5049
  if (metadata.has("styleUrls")) {
5050
5050
  metadata.delete("styleUrls");
5051
- metadata.set("styles", ts23.createArrayLiteral(styles.map((s) => ts23.createStringLiteral(s))));
5051
+ metadata.set("styles", ts23.factory.createArrayLiteralExpression(styles.map((s) => ts23.factory.createStringLiteral(s))));
5052
5052
  }
5053
5053
  const newMetadataFields = [];
5054
5054
  for (const [name, value] of metadata.entries()) {
5055
- newMetadataFields.push(ts23.createPropertyAssignment(name, value));
5055
+ newMetadataFields.push(ts23.factory.createPropertyAssignment(name, value));
5056
5056
  }
5057
- return __spreadProps(__spreadValues({}, dec), { args: [ts23.createObjectLiteral(newMetadataFields)] });
5057
+ return __spreadProps(__spreadValues({}, dec), { args: [ts23.factory.createObjectLiteralExpression(newMetadataFields)] });
5058
5058
  }
5059
5059
  function extractComponentStyleUrls(evaluator, component) {
5060
5060
  if (!component.has("styleUrls")) {
@@ -5268,6 +5268,7 @@ var ComponentSymbol = class extends DirectiveSymbol {
5268
5268
  };
5269
5269
 
5270
5270
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/util.mjs
5271
+ import ts24 from "typescript";
5271
5272
  function collectAnimationNames(value, animationTriggerNames) {
5272
5273
  if (value instanceof Map) {
5273
5274
  const name = value.get("name");
@@ -5284,6 +5285,23 @@ function collectAnimationNames(value, animationTriggerNames) {
5284
5285
  animationTriggerNames.includesDynamicAnimations = true;
5285
5286
  }
5286
5287
  }
5288
+ function isAngularAnimationsReference(reference, symbolName) {
5289
+ return reference.ownedByModuleGuess === "@angular/animations" && reference.debugName === symbolName;
5290
+ }
5291
+ var animationTriggerResolver = (ref, args) => {
5292
+ const animationTriggerMethodName = "trigger";
5293
+ if (!isAngularAnimationsReference(ref, animationTriggerMethodName)) {
5294
+ return null;
5295
+ }
5296
+ const triggerNameExpression = args[0];
5297
+ if (!triggerNameExpression) {
5298
+ return null;
5299
+ }
5300
+ const factory = ts24.factory;
5301
+ return factory.createObjectLiteralExpression([
5302
+ factory.createPropertyAssignment(factory.createIdentifier("name"), triggerNameExpression)
5303
+ ], true);
5304
+ };
5287
5305
  function validateAndFlattenComponentImports(imports, expr) {
5288
5306
  const flattened = [];
5289
5307
  if (!Array.isArray(imports)) {
@@ -5428,8 +5446,9 @@ var ComponentDecoratorHandler = class {
5428
5446
  let animations = null;
5429
5447
  let animationTriggerNames = null;
5430
5448
  if (component.has("animations")) {
5431
- animations = new WrappedNodeExpr7(component.get("animations"));
5432
- const animationsValue = this.evaluator.evaluate(component.get("animations"));
5449
+ const animationExpression = component.get("animations");
5450
+ animations = new WrappedNodeExpr7(animationExpression);
5451
+ const animationsValue = this.evaluator.evaluate(animationExpression, animationTriggerResolver);
5433
5452
  animationTriggerNames = { includesDynamicAnimations: false, staticTriggerNames: [] };
5434
5453
  collectAnimationNames(animationsValue, animationTriggerNames);
5435
5454
  }
@@ -5640,7 +5659,7 @@ var ComponentDecoratorHandler = class {
5640
5659
  });
5641
5660
  }
5642
5661
  typeCheck(ctx, node, meta) {
5643
- if (this.typeCheckScopeRegistry === null || !ts24.isClassDeclaration(node)) {
5662
+ if (this.typeCheckScopeRegistry === null || !ts25.isClassDeclaration(node)) {
5644
5663
  return;
5645
5664
  }
5646
5665
  if (meta.isPoisoned && !this.usePoisonedData) {
@@ -5860,7 +5879,7 @@ var ComponentDecoratorHandler = class {
5860
5879
 
5861
5880
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
5862
5881
  import { compileClassMetadata as compileClassMetadata4, compileDeclareClassMetadata as compileDeclareClassMetadata4, compileDeclareInjectableFromMetadata, compileInjectable, createMayBeForwardRefExpression as createMayBeForwardRefExpression2, FactoryTarget as FactoryTarget4, LiteralExpr as LiteralExpr3, WrappedNodeExpr as WrappedNodeExpr8 } from "@angular/compiler";
5863
- import ts25 from "typescript";
5882
+ import ts26 from "typescript";
5864
5883
  var InjectableDecoratorHandler = class {
5865
5884
  constructor(reflector, isCore, strictCtorDeps, injectableRegistry, perf, errorOnDuplicateProv = true) {
5866
5885
  this.reflector = reflector;
@@ -5951,7 +5970,7 @@ function extractInjectableMetadata(clazz, decorator, reflector) {
5951
5970
  };
5952
5971
  } else if (decorator.args.length === 1) {
5953
5972
  const metaNode = decorator.args[0];
5954
- if (!ts25.isObjectLiteralExpression(metaNode)) {
5973
+ if (!ts26.isObjectLiteralExpression(metaNode)) {
5955
5974
  throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARG_NOT_LITERAL, metaNode, `@Injectable argument must be an object literal`);
5956
5975
  }
5957
5976
  const meta = reflectObjectLiteral(metaNode);
@@ -5959,7 +5978,7 @@ function extractInjectableMetadata(clazz, decorator, reflector) {
5959
5978
  let deps = void 0;
5960
5979
  if ((meta.has("useClass") || meta.has("useFactory")) && meta.has("deps")) {
5961
5980
  const depsExpr = meta.get("deps");
5962
- if (!ts25.isArrayLiteralExpression(depsExpr)) {
5981
+ if (!ts26.isArrayLiteralExpression(depsExpr)) {
5963
5982
  throw new FatalDiagnosticError(ErrorCode.VALUE_NOT_LITERAL, depsExpr, `@Injectable deps metadata must be an inline array`);
5964
5983
  }
5965
5984
  deps = depsExpr.elements.map((dep) => getDep(dep, reflector));
@@ -6041,12 +6060,12 @@ function getDep(dep, reflector) {
6041
6060
  }
6042
6061
  return true;
6043
6062
  }
6044
- if (ts25.isArrayLiteralExpression(dep)) {
6063
+ if (ts26.isArrayLiteralExpression(dep)) {
6045
6064
  dep.elements.forEach((el) => {
6046
6065
  let isDecorator = false;
6047
- if (ts25.isIdentifier(el)) {
6066
+ if (ts26.isIdentifier(el)) {
6048
6067
  isDecorator = maybeUpdateDecorator(el, reflector);
6049
- } else if (ts25.isNewExpression(el) && ts25.isIdentifier(el.expression)) {
6068
+ } else if (ts26.isNewExpression(el) && ts26.isIdentifier(el.expression)) {
6050
6069
  const token = el.arguments && el.arguments.length > 0 && el.arguments[0] || void 0;
6051
6070
  isDecorator = maybeUpdateDecorator(el.expression, reflector, token);
6052
6071
  }
@@ -6060,7 +6079,7 @@ function getDep(dep, reflector) {
6060
6079
 
6061
6080
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
6062
6081
  import { compileClassMetadata as compileClassMetadata5, compileDeclareClassMetadata as compileDeclareClassMetadata5, compileDeclarePipeFromMetadata, compilePipeFromMetadata, FactoryTarget as FactoryTarget5, WrappedNodeExpr as WrappedNodeExpr9 } from "@angular/compiler";
6063
- import ts26 from "typescript";
6082
+ import ts27 from "typescript";
6064
6083
  var PipeSymbol = class extends SemanticSymbol {
6065
6084
  constructor(decl, name) {
6066
6085
  super(decl);
@@ -6115,7 +6134,7 @@ var PipeDecoratorHandler = class {
6115
6134
  throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARITY_WRONG, Decorator.nodeForError(decorator), "@Pipe must have exactly one argument");
6116
6135
  }
6117
6136
  const meta = unwrapExpression(decorator.args[0]);
6118
- if (!ts26.isObjectLiteralExpression(meta)) {
6137
+ if (!ts27.isObjectLiteralExpression(meta)) {
6119
6138
  throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARG_NOT_LITERAL, meta, "@Pipe must have a literal argument");
6120
6139
  }
6121
6140
  const pipe = reflectObjectLiteral(meta);
@@ -6245,4 +6264,4 @@ export {
6245
6264
  * found in the LICENSE file at https://angular.io/license
6246
6265
  */
6247
6266
  // Closure Compiler ignores @suppress and similar if the comment contains @license.
6248
- //# sourceMappingURL=chunk-7C3Q5ZSV.js.map
6267
+ //# sourceMappingURL=chunk-26T3CJIJ.js.map