@angular/compiler 21.1.0-next.4 → 21.1.0-rc.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/compiler",
3
- "version": "21.1.0-next.4",
3
+ "version": "21.1.0-rc.0",
4
4
  "description": "Angular - the compiler library",
5
5
  "author": "angular",
6
6
  "license": "MIT",
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @license Angular v21.1.0-next.4
3
- * (c) 2010-2025 Google LLC. https://angular.dev/
2
+ * @license Angular v21.1.0-rc.0
3
+ * (c) 2010-2026 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
6
6
 
@@ -1254,14 +1254,23 @@ declare class LiteralArrayExpr extends Expression {
1254
1254
  visitExpression(visitor: ExpressionVisitor, context: any): any;
1255
1255
  clone(): LiteralArrayExpr;
1256
1256
  }
1257
- declare class LiteralMapEntry {
1257
+ declare class LiteralMapPropertyAssignment {
1258
1258
  key: string;
1259
1259
  value: Expression;
1260
1260
  quoted: boolean;
1261
1261
  constructor(key: string, value: Expression, quoted: boolean);
1262
- isEquivalent(e: LiteralMapEntry): boolean;
1263
- clone(): LiteralMapEntry;
1262
+ isEquivalent(e: LiteralMapPropertyAssignment): boolean;
1263
+ clone(): LiteralMapPropertyAssignment;
1264
+ isConstant(): boolean;
1265
+ }
1266
+ declare class LiteralMapSpreadAssignment {
1267
+ expression: Expression;
1268
+ constructor(expression: Expression);
1269
+ isEquivalent(e: LiteralMapSpreadAssignment): boolean;
1270
+ clone(): LiteralMapSpreadAssignment;
1271
+ isConstant(): boolean;
1264
1272
  }
1273
+ type LiteralMapEntry = LiteralMapPropertyAssignment | LiteralMapSpreadAssignment;
1265
1274
  declare class LiteralMapExpr extends Expression {
1266
1275
  entries: LiteralMapEntry[];
1267
1276
  valueType: Type$1 | null;
@@ -1279,6 +1288,14 @@ declare class CommaExpr extends Expression {
1279
1288
  visitExpression(visitor: ExpressionVisitor, context: any): any;
1280
1289
  clone(): CommaExpr;
1281
1290
  }
1291
+ declare class SpreadElementExpr extends Expression {
1292
+ expression: Expression;
1293
+ constructor(expression: Expression, sourceSpan?: ParseSourceSpan$1 | null);
1294
+ isEquivalent(e: Expression): boolean;
1295
+ isConstant(): boolean;
1296
+ visitExpression(visitor: ExpressionVisitor, context: any): any;
1297
+ clone(): SpreadElementExpr;
1298
+ }
1282
1299
  interface ExpressionVisitor {
1283
1300
  visitReadVarExpr(ast: ReadVarExpr, context: any): any;
1284
1301
  visitInvokeFunctionExpr(ast: InvokeFunctionExpr, context: any): any;
@@ -1306,6 +1323,7 @@ interface ExpressionVisitor {
1306
1323
  visitArrowFunctionExpr(ast: ArrowFunctionExpr, context: any): any;
1307
1324
  visitParenthesizedExpr(ast: ParenthesizedExpr, context: any): any;
1308
1325
  visitRegularExpressionLiteral(ast: RegularExpressionLiteralExpr, context: any): any;
1326
+ visitSpreadElementExpr(ast: SpreadElementExpr, context: any): any;
1309
1327
  }
1310
1328
  declare const NULL_EXPR: LiteralExpr;
1311
1329
  declare const TYPED_NULL_EXPR: LiteralExpr;
@@ -1420,6 +1438,7 @@ declare class RecursiveAstVisitor$1 implements StatementVisitor, ExpressionVisit
1420
1438
  visitTemplateLiteralExpr(ast: TemplateLiteralExpr, context: any): any;
1421
1439
  visitTemplateLiteralElementExpr(ast: TemplateLiteralElementExpr, context: any): any;
1422
1440
  visitParenthesizedExpr(ast: ParenthesizedExpr, context: any): any;
1441
+ visitSpreadElementExpr(ast: SpreadElementExpr, context: any): any;
1423
1442
  visitAllExpressions(exprs: Expression[], context: any): void;
1424
1443
  visitDeclareVarStmt(stmt: DeclareVarStmt, context: any): any;
1425
1444
  visitDeclareFunctionStmt(stmt: DeclareFunctionStmt, context: any): any;
@@ -1526,9 +1545,12 @@ declare const output_ast_d_LiteralArrayExpr: typeof LiteralArrayExpr;
1526
1545
  type output_ast_d_LiteralExpr = LiteralExpr;
1527
1546
  declare const output_ast_d_LiteralExpr: typeof LiteralExpr;
1528
1547
  type output_ast_d_LiteralMapEntry = LiteralMapEntry;
1529
- declare const output_ast_d_LiteralMapEntry: typeof LiteralMapEntry;
1530
1548
  type output_ast_d_LiteralMapExpr = LiteralMapExpr;
1531
1549
  declare const output_ast_d_LiteralMapExpr: typeof LiteralMapExpr;
1550
+ type output_ast_d_LiteralMapPropertyAssignment = LiteralMapPropertyAssignment;
1551
+ declare const output_ast_d_LiteralMapPropertyAssignment: typeof LiteralMapPropertyAssignment;
1552
+ type output_ast_d_LiteralMapSpreadAssignment = LiteralMapSpreadAssignment;
1553
+ declare const output_ast_d_LiteralMapSpreadAssignment: typeof LiteralMapSpreadAssignment;
1532
1554
  type output_ast_d_LiteralPiece = LiteralPiece;
1533
1555
  declare const output_ast_d_LiteralPiece: typeof LiteralPiece;
1534
1556
  type output_ast_d_LocalizedString = LocalizedString;
@@ -1556,6 +1578,8 @@ declare const output_ast_d_RegularExpressionLiteralExpr: typeof RegularExpressio
1556
1578
  type output_ast_d_ReturnStatement = ReturnStatement;
1557
1579
  declare const output_ast_d_ReturnStatement: typeof ReturnStatement;
1558
1580
  declare const output_ast_d_STRING_TYPE: typeof STRING_TYPE;
1581
+ type output_ast_d_SpreadElementExpr = SpreadElementExpr;
1582
+ declare const output_ast_d_SpreadElementExpr: typeof SpreadElementExpr;
1559
1583
  type output_ast_d_Statement = Statement;
1560
1584
  declare const output_ast_d_Statement: typeof Statement;
1561
1585
  type output_ast_d_StatementVisitor = StatementVisitor;
@@ -1605,8 +1629,8 @@ declare const output_ast_d_typeofExpr: typeof typeofExpr;
1605
1629
  declare const output_ast_d_unary: typeof unary;
1606
1630
  declare const output_ast_d_variable: typeof variable;
1607
1631
  declare namespace output_ast_d {
1608
- export { output_ast_d_ArrayType as ArrayType, output_ast_d_ArrowFunctionExpr as ArrowFunctionExpr, output_ast_d_BOOL_TYPE as BOOL_TYPE, output_ast_d_BinaryOperator as BinaryOperator, output_ast_d_BinaryOperatorExpr as BinaryOperatorExpr, output_ast_d_BuiltinType as BuiltinType, output_ast_d_BuiltinTypeName as BuiltinTypeName, output_ast_d_CommaExpr as CommaExpr, output_ast_d_ConditionalExpr as ConditionalExpr, output_ast_d_DYNAMIC_TYPE as DYNAMIC_TYPE, output_ast_d_DeclareFunctionStmt as DeclareFunctionStmt, output_ast_d_DeclareVarStmt as DeclareVarStmt, output_ast_d_DynamicImportExpr as DynamicImportExpr, output_ast_d_Expression as Expression, output_ast_d_ExpressionStatement as ExpressionStatement, output_ast_d_ExpressionType as ExpressionType, output_ast_d_ExternalExpr as ExternalExpr, output_ast_d_ExternalReference as ExternalReference, output_ast_d_FUNCTION_TYPE as FUNCTION_TYPE, output_ast_d_FnParam as FnParam, output_ast_d_FunctionExpr as FunctionExpr, output_ast_d_INFERRED_TYPE as INFERRED_TYPE, output_ast_d_INT_TYPE as INT_TYPE, output_ast_d_IfStmt as IfStmt, output_ast_d_InstantiateExpr as InstantiateExpr, output_ast_d_InvokeFunctionExpr as InvokeFunctionExpr, output_ast_d_JSDocComment as JSDocComment, output_ast_d_JSDocTagName as JSDocTagName, output_ast_d_LeadingComment as LeadingComment, output_ast_d_LiteralArrayExpr as LiteralArrayExpr, output_ast_d_LiteralExpr as LiteralExpr, output_ast_d_LiteralMapEntry as LiteralMapEntry, output_ast_d_LiteralMapExpr as LiteralMapExpr, output_ast_d_LiteralPiece as LiteralPiece, output_ast_d_LocalizedString as LocalizedString, output_ast_d_MapType as MapType, output_ast_d_NONE_TYPE as NONE_TYPE, output_ast_d_NULL_EXPR as NULL_EXPR, output_ast_d_NUMBER_TYPE as NUMBER_TYPE, output_ast_d_NotExpr as NotExpr, output_ast_d_ParenthesizedExpr as ParenthesizedExpr, output_ast_d_PlaceholderPiece as PlaceholderPiece, output_ast_d_ReadKeyExpr as ReadKeyExpr, output_ast_d_ReadPropExpr as ReadPropExpr, output_ast_d_ReadVarExpr as ReadVarExpr, RecursiveAstVisitor$1 as RecursiveAstVisitor, output_ast_d_RegularExpressionLiteralExpr as RegularExpressionLiteralExpr, output_ast_d_ReturnStatement as ReturnStatement, output_ast_d_STRING_TYPE as STRING_TYPE, output_ast_d_Statement as Statement, output_ast_d_StmtModifier as StmtModifier, output_ast_d_TYPED_NULL_EXPR as TYPED_NULL_EXPR, output_ast_d_TaggedTemplateLiteralExpr as TaggedTemplateLiteralExpr, output_ast_d_TemplateLiteralElementExpr as TemplateLiteralElementExpr, output_ast_d_TemplateLiteralExpr as TemplateLiteralExpr, output_ast_d_TransplantedType as TransplantedType, Type$1 as Type, output_ast_d_TypeModifier as TypeModifier, output_ast_d_TypeofExpr as TypeofExpr, output_ast_d_UnaryOperator as UnaryOperator, output_ast_d_UnaryOperatorExpr as UnaryOperatorExpr, output_ast_d_VoidExpr as VoidExpr, output_ast_d_WrappedNodeExpr as WrappedNodeExpr, output_ast_d_areAllEquivalent as areAllEquivalent, output_ast_d_arrowFn as arrowFn, output_ast_d_expressionType as expressionType, output_ast_d_fn as fn, output_ast_d_ifStmt as ifStmt, output_ast_d_importExpr as importExpr, output_ast_d_importType as importType, output_ast_d_isNull as isNull, output_ast_d_jsDocComment as jsDocComment, output_ast_d_leadingComment as leadingComment, output_ast_d_literal as literal, output_ast_d_literalArr as literalArr, output_ast_d_literalMap as literalMap, output_ast_d_localizedString as localizedString, output_ast_d_not as not, output_ast_d_nullSafeIsEquivalent as nullSafeIsEquivalent, output_ast_d_taggedTemplate as taggedTemplate, output_ast_d_transplantedType as transplantedType, output_ast_d_typeofExpr as typeofExpr, output_ast_d_unary as unary, output_ast_d_variable as variable };
1609
- export type { output_ast_d_CookedRawString as CookedRawString, output_ast_d_ExpressionVisitor as ExpressionVisitor, output_ast_d_JSDocTag as JSDocTag, output_ast_d_MessagePiece as MessagePiece, output_ast_d_StatementVisitor as StatementVisitor, output_ast_d_TypeVisitor as TypeVisitor };
1632
+ export { output_ast_d_ArrayType as ArrayType, output_ast_d_ArrowFunctionExpr as ArrowFunctionExpr, output_ast_d_BOOL_TYPE as BOOL_TYPE, output_ast_d_BinaryOperator as BinaryOperator, output_ast_d_BinaryOperatorExpr as BinaryOperatorExpr, output_ast_d_BuiltinType as BuiltinType, output_ast_d_BuiltinTypeName as BuiltinTypeName, output_ast_d_CommaExpr as CommaExpr, output_ast_d_ConditionalExpr as ConditionalExpr, output_ast_d_DYNAMIC_TYPE as DYNAMIC_TYPE, output_ast_d_DeclareFunctionStmt as DeclareFunctionStmt, output_ast_d_DeclareVarStmt as DeclareVarStmt, output_ast_d_DynamicImportExpr as DynamicImportExpr, output_ast_d_Expression as Expression, output_ast_d_ExpressionStatement as ExpressionStatement, output_ast_d_ExpressionType as ExpressionType, output_ast_d_ExternalExpr as ExternalExpr, output_ast_d_ExternalReference as ExternalReference, output_ast_d_FUNCTION_TYPE as FUNCTION_TYPE, output_ast_d_FnParam as FnParam, output_ast_d_FunctionExpr as FunctionExpr, output_ast_d_INFERRED_TYPE as INFERRED_TYPE, output_ast_d_INT_TYPE as INT_TYPE, output_ast_d_IfStmt as IfStmt, output_ast_d_InstantiateExpr as InstantiateExpr, output_ast_d_InvokeFunctionExpr as InvokeFunctionExpr, output_ast_d_JSDocComment as JSDocComment, output_ast_d_JSDocTagName as JSDocTagName, output_ast_d_LeadingComment as LeadingComment, output_ast_d_LiteralArrayExpr as LiteralArrayExpr, output_ast_d_LiteralExpr as LiteralExpr, output_ast_d_LiteralMapExpr as LiteralMapExpr, output_ast_d_LiteralMapPropertyAssignment as LiteralMapPropertyAssignment, output_ast_d_LiteralMapSpreadAssignment as LiteralMapSpreadAssignment, output_ast_d_LiteralPiece as LiteralPiece, output_ast_d_LocalizedString as LocalizedString, output_ast_d_MapType as MapType, output_ast_d_NONE_TYPE as NONE_TYPE, output_ast_d_NULL_EXPR as NULL_EXPR, output_ast_d_NUMBER_TYPE as NUMBER_TYPE, output_ast_d_NotExpr as NotExpr, output_ast_d_ParenthesizedExpr as ParenthesizedExpr, output_ast_d_PlaceholderPiece as PlaceholderPiece, output_ast_d_ReadKeyExpr as ReadKeyExpr, output_ast_d_ReadPropExpr as ReadPropExpr, output_ast_d_ReadVarExpr as ReadVarExpr, RecursiveAstVisitor$1 as RecursiveAstVisitor, output_ast_d_RegularExpressionLiteralExpr as RegularExpressionLiteralExpr, output_ast_d_ReturnStatement as ReturnStatement, output_ast_d_STRING_TYPE as STRING_TYPE, output_ast_d_SpreadElementExpr as SpreadElementExpr, output_ast_d_Statement as Statement, output_ast_d_StmtModifier as StmtModifier, output_ast_d_TYPED_NULL_EXPR as TYPED_NULL_EXPR, output_ast_d_TaggedTemplateLiteralExpr as TaggedTemplateLiteralExpr, output_ast_d_TemplateLiteralElementExpr as TemplateLiteralElementExpr, output_ast_d_TemplateLiteralExpr as TemplateLiteralExpr, output_ast_d_TransplantedType as TransplantedType, Type$1 as Type, output_ast_d_TypeModifier as TypeModifier, output_ast_d_TypeofExpr as TypeofExpr, output_ast_d_UnaryOperator as UnaryOperator, output_ast_d_UnaryOperatorExpr as UnaryOperatorExpr, output_ast_d_VoidExpr as VoidExpr, output_ast_d_WrappedNodeExpr as WrappedNodeExpr, output_ast_d_areAllEquivalent as areAllEquivalent, output_ast_d_arrowFn as arrowFn, output_ast_d_expressionType as expressionType, output_ast_d_fn as fn, output_ast_d_ifStmt as ifStmt, output_ast_d_importExpr as importExpr, output_ast_d_importType as importType, output_ast_d_isNull as isNull, output_ast_d_jsDocComment as jsDocComment, output_ast_d_leadingComment as leadingComment, output_ast_d_literal as literal, output_ast_d_literalArr as literalArr, output_ast_d_literalMap as literalMap, output_ast_d_localizedString as localizedString, output_ast_d_not as not, output_ast_d_nullSafeIsEquivalent as nullSafeIsEquivalent, output_ast_d_taggedTemplate as taggedTemplate, output_ast_d_transplantedType as transplantedType, output_ast_d_typeofExpr as typeofExpr, output_ast_d_unary as unary, output_ast_d_variable as variable };
1633
+ export type { output_ast_d_CookedRawString as CookedRawString, output_ast_d_ExpressionVisitor as ExpressionVisitor, output_ast_d_JSDocTag as JSDocTag, output_ast_d_LiteralMapEntry as LiteralMapEntry, output_ast_d_MessagePiece as MessagePiece, output_ast_d_StatementVisitor as StatementVisitor, output_ast_d_TypeVisitor as TypeVisitor };
1610
1634
  }
1611
1635
 
1612
1636
  declare function SECURITY_SCHEMA(): {
@@ -1647,12 +1671,7 @@ declare class ConstantPool {
1647
1671
  constructor(isClosureCompilerEnabled?: boolean);
1648
1672
  getConstLiteral(literal: Expression, forceShared?: boolean): Expression;
1649
1673
  getSharedConstant(def: SharedConstantDefinition, expr: Expression): Expression;
1650
- getLiteralFactory(literal: LiteralArrayExpr | LiteralMapExpr): {
1651
- literalFactory: Expression;
1652
- literalFactoryArguments: Expression[];
1653
- };
1654
1674
  getSharedFunctionReference(fn: Expression, prefix: string, useUniqueName?: boolean): Expression;
1655
- private _getLiteralFactory;
1656
1675
  /**
1657
1676
  * Produce a unique name in the context of this pool.
1658
1677
  *
@@ -1700,23 +1719,15 @@ declare class EmptyExpr extends AST {
1700
1719
  declare class ImplicitReceiver extends AST {
1701
1720
  visit(visitor: AstVisitor, context?: any): any;
1702
1721
  }
1703
- /**
1704
- * Receiver when something is accessed through `this` (e.g. `this.foo`). Note that this class
1705
- * inherits from `ImplicitReceiver`, because accessing something through `this` is treated the
1706
- * same as accessing it implicitly inside of an Angular template (e.g. `[attr.title]="this.title"`
1707
- * is the same as `[attr.title]="title"`.). Inheriting allows for the `this` accesses to be treated
1708
- * the same as implicit ones, except for a couple of exceptions like `$event` and `$any`.
1709
- * TODO: we should find a way for this class not to extend from `ImplicitReceiver` in the future.
1710
- */
1711
- declare class ThisReceiver extends ImplicitReceiver {
1722
+ declare class ThisReceiver extends AST {
1712
1723
  visit(visitor: AstVisitor, context?: any): any;
1713
1724
  }
1714
1725
  /**
1715
1726
  * Multiple expressions separated by a semicolon.
1716
1727
  */
1717
1728
  declare class Chain extends AST {
1718
- expressions: any[];
1719
- constructor(span: ParseSpan, sourceSpan: AbsoluteSourceSpan, expressions: any[]);
1729
+ expressions: AST[];
1730
+ constructor(span: ParseSpan, sourceSpan: AbsoluteSourceSpan, expressions: AST[]);
1720
1731
  visit(visitor: AstVisitor, context?: any): any;
1721
1732
  }
1722
1733
  declare class Conditional extends AST {
@@ -1766,30 +1777,44 @@ declare enum BindingPipeType {
1766
1777
  declare class BindingPipe extends ASTWithName {
1767
1778
  exp: AST;
1768
1779
  name: string;
1769
- args: any[];
1780
+ args: AST[];
1770
1781
  readonly type: BindingPipeType;
1771
- constructor(span: ParseSpan, sourceSpan: AbsoluteSourceSpan, exp: AST, name: string, args: any[], type: BindingPipeType, nameSpan: AbsoluteSourceSpan);
1782
+ constructor(span: ParseSpan, sourceSpan: AbsoluteSourceSpan, exp: AST, name: string, args: AST[], type: BindingPipeType, nameSpan: AbsoluteSourceSpan);
1772
1783
  visit(visitor: AstVisitor, context?: any): any;
1773
1784
  }
1774
1785
  declare class LiteralPrimitive extends AST {
1775
- value: any;
1776
- constructor(span: ParseSpan, sourceSpan: AbsoluteSourceSpan, value: any);
1786
+ value: string | number | boolean | null | undefined;
1787
+ constructor(span: ParseSpan, sourceSpan: AbsoluteSourceSpan, value: string | number | boolean | null | undefined);
1777
1788
  visit(visitor: AstVisitor, context?: any): any;
1778
1789
  }
1779
1790
  declare class LiteralArray extends AST {
1780
- expressions: any[];
1781
- constructor(span: ParseSpan, sourceSpan: AbsoluteSourceSpan, expressions: any[]);
1791
+ expressions: AST[];
1792
+ constructor(span: ParseSpan, sourceSpan: AbsoluteSourceSpan, expressions: AST[]);
1782
1793
  visit(visitor: AstVisitor, context?: any): any;
1783
1794
  }
1784
- type LiteralMapKey = {
1795
+ declare class SpreadElement extends AST {
1796
+ readonly expression: AST;
1797
+ constructor(span: ParseSpan, sourceSpan: AbsoluteSourceSpan, expression: AST);
1798
+ visit(visitor: AstVisitor, context?: any): any;
1799
+ }
1800
+ interface LiteralMapPropertyKey {
1801
+ kind: 'property';
1785
1802
  key: string;
1786
1803
  quoted: boolean;
1804
+ span: ParseSpan;
1805
+ sourceSpan: AbsoluteSourceSpan;
1787
1806
  isShorthandInitialized?: boolean;
1788
- };
1807
+ }
1808
+ interface LiteralMapSpreadKey {
1809
+ kind: 'spread';
1810
+ span: ParseSpan;
1811
+ sourceSpan: AbsoluteSourceSpan;
1812
+ }
1813
+ type LiteralMapKey = LiteralMapPropertyKey | LiteralMapSpreadKey;
1789
1814
  declare class LiteralMap extends AST {
1790
1815
  keys: LiteralMapKey[];
1791
- values: any[];
1792
- constructor(span: ParseSpan, sourceSpan: AbsoluteSourceSpan, keys: LiteralMapKey[], values: any[]);
1816
+ values: AST[];
1817
+ constructor(span: ParseSpan, sourceSpan: AbsoluteSourceSpan, keys: LiteralMapKey[], values: AST[]);
1793
1818
  visit(visitor: AstVisitor, context?: any): any;
1794
1819
  }
1795
1820
  declare class Interpolation extends AST {
@@ -1998,6 +2023,7 @@ interface AstVisitor {
1998
2023
  visitTaggedTemplateLiteral(ast: TaggedTemplateLiteral, context: any): any;
1999
2024
  visitParenthesizedExpression(ast: ParenthesizedExpression, context: any): any;
2000
2025
  visitRegularExpressionLiteral(ast: RegularExpressionLiteral, context: any): any;
2026
+ visitSpreadElement(ast: SpreadElement, context: any): any;
2001
2027
  visitASTWithSource?(ast: ASTWithSource, context: any): any;
2002
2028
  /**
2003
2029
  * This function is optionally defined to allow classes that implement this
@@ -2035,6 +2061,7 @@ declare class RecursiveAstVisitor implements AstVisitor {
2035
2061
  visitTaggedTemplateLiteral(ast: TaggedTemplateLiteral, context: any): void;
2036
2062
  visitParenthesizedExpression(ast: ParenthesizedExpression, context: any): void;
2037
2063
  visitRegularExpressionLiteral(ast: RegularExpressionLiteral, context: any): void;
2064
+ visitSpreadElement(ast: SpreadElement, context: any): void;
2038
2065
  visitAll(asts: AST[], context: any): any;
2039
2066
  }
2040
2067
  declare class ParsedProperty {
@@ -3657,13 +3684,13 @@ declare class DeferredBlock extends BlockNode implements Node {
3657
3684
  }
3658
3685
  declare class SwitchBlock extends BlockNode implements Node {
3659
3686
  expression: AST;
3660
- cases: SwitchBlockCase[];
3687
+ groups: SwitchBlockCaseGroup[];
3661
3688
  /**
3662
3689
  * These blocks are only captured to allow for autocompletion in the language service. They
3663
3690
  * aren't meant to be processed in any other way.
3664
3691
  */
3665
3692
  unknownBlocks: UnknownBlock[];
3666
- constructor(expression: AST, cases: SwitchBlockCase[],
3693
+ constructor(expression: AST, groups: SwitchBlockCaseGroup[],
3667
3694
  /**
3668
3695
  * These blocks are only captured to allow for autocompletion in the language service. They
3669
3696
  * aren't meant to be processed in any other way.
@@ -3673,9 +3700,14 @@ declare class SwitchBlock extends BlockNode implements Node {
3673
3700
  }
3674
3701
  declare class SwitchBlockCase extends BlockNode implements Node {
3675
3702
  expression: AST | null;
3703
+ constructor(expression: AST | null, sourceSpan: ParseSourceSpan$1, startSourceSpan: ParseSourceSpan$1, endSourceSpan: ParseSourceSpan$1 | null, nameSpan: ParseSourceSpan$1);
3704
+ visit<Result>(visitor: Visitor<Result>): Result;
3705
+ }
3706
+ declare class SwitchBlockCaseGroup extends BlockNode implements Node {
3707
+ cases: SwitchBlockCase[];
3676
3708
  children: Node[];
3677
3709
  i18n?: I18nMeta$1 | undefined;
3678
- constructor(expression: AST | null, children: Node[], sourceSpan: ParseSourceSpan$1, startSourceSpan: ParseSourceSpan$1, endSourceSpan: ParseSourceSpan$1 | null, nameSpan: ParseSourceSpan$1, i18n?: I18nMeta$1 | undefined);
3710
+ constructor(cases: SwitchBlockCase[], children: Node[], sourceSpan: ParseSourceSpan$1, startSourceSpan: ParseSourceSpan$1, endSourceSpan: ParseSourceSpan$1 | null, nameSpan: ParseSourceSpan$1, i18n?: I18nMeta$1 | undefined);
3679
3711
  visit<Result>(visitor: Visitor<Result>): Result;
3680
3712
  }
3681
3713
  declare class ForLoopBlock extends BlockNode implements Node {
@@ -3854,6 +3886,7 @@ interface Visitor<Result = any> {
3854
3886
  visitDeferredTrigger(trigger: DeferredTrigger): Result;
3855
3887
  visitSwitchBlock(block: SwitchBlock): Result;
3856
3888
  visitSwitchBlockCase(block: SwitchBlockCase): Result;
3889
+ visitSwitchBlockCaseGroup(block: SwitchBlockCaseGroup): Result;
3857
3890
  visitForLoopBlock(block: ForLoopBlock): Result;
3858
3891
  visitForLoopBlockEmpty(block: ForLoopBlockEmpty): Result;
3859
3892
  visitIfBlock(block: IfBlock): Result;
@@ -3872,6 +3905,7 @@ declare class RecursiveVisitor implements Visitor<void> {
3872
3905
  visitDeferredBlockLoading(block: DeferredBlockLoading): void;
3873
3906
  visitSwitchBlock(block: SwitchBlock): void;
3874
3907
  visitSwitchBlockCase(block: SwitchBlockCase): void;
3908
+ visitSwitchBlockCaseGroup(block: SwitchBlockCaseGroup): void;
3875
3909
  visitForLoopBlock(block: ForLoopBlock): void;
3876
3910
  visitForLoopBlockEmpty(block: ForLoopBlockEmpty): void;
3877
3911
  visitIfBlock(block: IfBlock): void;
@@ -5380,7 +5414,7 @@ declare function encapsulateStyle(style: string, componentIdentifier?: string):
5380
5414
  declare function compileDeferResolverFunction(meta: R3DeferResolverFunctionMetadata): ArrowFunctionExpr;
5381
5415
 
5382
5416
  /** Node that has a `Scope` associated with it. */
5383
- type ScopedNode = Template | SwitchBlockCase | IfBlockBranch | ForLoopBlock | ForLoopBlockEmpty | DeferredBlock | DeferredBlockError | DeferredBlockLoading | DeferredBlockPlaceholder | Content | HostElement;
5417
+ type ScopedNode = Template | SwitchBlockCaseGroup | IfBlockBranch | ForLoopBlock | ForLoopBlockEmpty | DeferredBlock | DeferredBlockError | DeferredBlockLoading | DeferredBlockPlaceholder | Content | HostElement;
5384
5418
  /** Possible values that a reference can be resolved to. */
5385
5419
  type ReferenceTarget<DirectiveT> = {
5386
5420
  directive: DirectiveT;
@@ -5637,6 +5671,7 @@ declare class CombinedRecursiveAstVisitor extends RecursiveAstVisitor implements
5637
5671
  visitDeferredBlockLoading(block: DeferredBlockLoading): void;
5638
5672
  visitSwitchBlock(block: SwitchBlock): void;
5639
5673
  visitSwitchBlockCase(block: SwitchBlockCase): void;
5674
+ visitSwitchBlockCaseGroup(block: SwitchBlockCaseGroup): void;
5640
5675
  visitForLoopBlock(block: ForLoopBlock): void;
5641
5676
  visitForLoopBlockEmpty(block: ForLoopBlockEmpty): void;
5642
5677
  visitIfBlock(block: IfBlock): void;
@@ -5774,5 +5809,5 @@ declare const enum QueryFlags {
5774
5809
  */
5775
5810
  declare function setEnableTemplateSourceLocations(value: boolean): void;
5776
5811
 
5777
- export { AST, ASTWithName, ASTWithSource, AbsoluteSourceSpan, ArrayType, ArrowFunctionExpr, Attribute, Binary, BinaryOperator, BinaryOperatorExpr, BindingParser, BindingPipe, BindingPipeType, BindingType, Block, BlockParameter, BoundElementProperty, BuiltinType, BuiltinTypeName, CUSTOM_ELEMENTS_SCHEMA, Call, Chain, ChangeDetectionStrategy$1 as ChangeDetectionStrategy, CombinedRecursiveAstVisitor, CommaExpr, Comment$1 as Comment, CompilerConfig, CompilerFacadeImpl, Component$1 as Component, Conditional, ConditionalExpr, ConstantPool, CssSelector, DYNAMIC_TYPE, DeclarationListEmitMode, DeclareFunctionStmt, DeclareVarStmt, DeferBlockDepsEmitMode, Directive$1 as Directive, DomElementSchemaRegistry, DynamicImportExpr, EOF, Element$1 as Element, ElementSchemaRegistry, EmitterVisitorContext, EmptyExpr, Expansion, ExpansionCase, Expression, ExpressionBinding, ExpressionStatement, ExpressionType, ExternalExpr, ExternalReference, FactoryTarget, ForwardRefHandling, FunctionExpr, HtmlParser, HtmlTagDefinition, I18NHtmlParser, IfStmt, ImplicitReceiver, InstantiateExpr, Interpolation, InvokeFunctionExpr, JSDocComment, JitEvaluator, KeyedRead, LeadingComment, LetDeclaration$1 as LetDeclaration, Lexer, TokenType$1 as LexerTokenType, LiteralArray, LiteralArrayExpr, LiteralExpr, LiteralMap, LiteralMapExpr, LiteralPrimitive, LocalizedString, MapType, MessageBundle, NONE_TYPE, NO_ERRORS_SCHEMA, NodeWithI18n, NonNullAssert, NotExpr, ParenthesizedExpr, ParenthesizedExpression, ParseError, ParseErrorLevel, ParseFlags, ParseLocation, ParseSourceFile, ParseSourceSpan$1 as ParseSourceSpan, ParseSpan, ParseTreeResult, ParsedEvent, ParsedEventType, ParsedProperty, ParsedPropertyType, ParsedVariable, Parser, PrefixNot, PropertyRead, QueryFlags, Identifiers as R3Identifiers, R3NgModuleMetadataKind, R3SelectorScopeMode, R3TargetBinder, R3TemplateDependencyKind, ReadKeyExpr, ReadPropExpr, ReadVarExpr, RecursiveAstVisitor, RecursiveVisitor$1 as RecursiveVisitor, RegularExpressionLiteral, RegularExpressionLiteralExpr, ResourceLoader, ReturnStatement, SCHEMA, SECURITY_SCHEMA, STRING_TYPE, SafeCall, SafeKeyedRead, SafePropertyRead, SelectorContext, SelectorListContext, SelectorMatcher, SelectorlessMatcher, Serializer, SplitInterpolation, Statement, StmtModifier, StringToken, StringTokenKind, TagContentType, TaggedTemplateLiteral, TaggedTemplateLiteralExpr, TemplateBindingParseResult, TemplateLiteral, TemplateLiteralElement, TemplateLiteralElementExpr, TemplateLiteralExpr, Text$1 as Text, ThisReceiver, BlockNode as TmplAstBlockNode, BoundAttribute as TmplAstBoundAttribute, BoundDeferredTrigger as TmplAstBoundDeferredTrigger, BoundEvent as TmplAstBoundEvent, BoundText as TmplAstBoundText, Component as TmplAstComponent, Content as TmplAstContent, DeferredBlock as TmplAstDeferredBlock, DeferredBlockError as TmplAstDeferredBlockError, DeferredBlockLoading as TmplAstDeferredBlockLoading, DeferredBlockPlaceholder as TmplAstDeferredBlockPlaceholder, DeferredTrigger as TmplAstDeferredTrigger, Directive as TmplAstDirective, Element as TmplAstElement, ForLoopBlock as TmplAstForLoopBlock, ForLoopBlockEmpty as TmplAstForLoopBlockEmpty, HostElement as TmplAstHostElement, HoverDeferredTrigger as TmplAstHoverDeferredTrigger, Icu as TmplAstIcu, IdleDeferredTrigger as TmplAstIdleDeferredTrigger, IfBlock as TmplAstIfBlock, IfBlockBranch as TmplAstIfBlockBranch, ImmediateDeferredTrigger as TmplAstImmediateDeferredTrigger, InteractionDeferredTrigger as TmplAstInteractionDeferredTrigger, LetDeclaration as TmplAstLetDeclaration, NeverDeferredTrigger as TmplAstNeverDeferredTrigger, RecursiveVisitor as TmplAstRecursiveVisitor, Reference as TmplAstReference, SwitchBlock as TmplAstSwitchBlock, SwitchBlockCase as TmplAstSwitchBlockCase, Template as TmplAstTemplate, Text as TmplAstText, TextAttribute as TmplAstTextAttribute, TimerDeferredTrigger as TmplAstTimerDeferredTrigger, UnknownBlock as TmplAstUnknownBlock, Variable as TmplAstVariable, ViewportDeferredTrigger as TmplAstViewportDeferredTrigger, Token, TokenType, TransplantedType, TreeError, Type$1 as Type, TypeModifier, TypeofExpr, TypeofExpression, Unary, UnaryOperator, UnaryOperatorExpr, VERSION, VariableBinding, Version, ViewEncapsulation$1 as ViewEncapsulation, VoidExpr, VoidExpression, WrappedNodeExpr, Xliff, Xliff2, Xmb, XmlParser, Xtb, _ATTR_TO_PROP, compileClassDebugInfo, compileClassMetadata, compileComponentClassMetadata, compileComponentDeclareClassMetadata, compileComponentFromMetadata, compileDeclareClassMetadata, compileDeclareComponentFromMetadata, compileDeclareDirectiveFromMetadata, compileDeclareFactoryFunction, compileDeclareInjectableFromMetadata, compileDeclareInjectorFromMetadata, compileDeclareNgModuleFromMetadata, compileDeclarePipeFromMetadata, compileDeferResolverFunction, compileDirectiveFromMetadata, compileFactoryFunction, compileHmrInitializer, compileHmrUpdateCallback, compileInjectable, compileInjector, compileNgModule, compileOpaqueAsyncClassMetadata, compilePipeFromMetadata, computeMsgId, core_d as core, createCssSelectorFromNode, createInjectableType, createMayBeForwardRefExpression, devOnlyGuardedExpression, emitDistinctChangesOnlyDefaultValue, encapsulateStyle, escapeRegExp, findMatchingDirectivesAndPipes, getHtmlTagDefinition, getNsPrefix, getSafePropertyAccessString, identifierName, isNgContainer, isNgContent, isNgTemplate, jsDocComment, leadingComment, literal, literalMap, makeBindingParser, mergeNsAndName, output_ast_d as outputAst, parseHostBindings, parseTemplate, preserveWhitespacesDefault, publishFacade, r3JitTypeSourceSpan, sanitizeIdentifier, setEnableTemplateSourceLocations, splitNsName, visitAll as tmplAstVisitAll, verifyHostBindings, visitAll$1 as visitAll };
5778
- export type { AstVisitor, BoundTarget, CompileClassMetadataFn, CompileIdentifierMetadata, DeclareComponentTemplateInfo, DirectiveMatcher, DirectiveMeta, DirectiveOwner, ExpressionVisitor, InputOutputPropertySet, InterpolationPiece, LegacyAnimationTriggerNames, LegacyInputPartialMapping, LexerRange, LiteralMapKey, MaybeForwardRefExpression, Node$1 as Node, ParseTemplateOptions, ParsedHostBindings, ParsedTemplate, R3ClassDebugInfo, R3ClassMetadata, R3CompiledExpression, R3ComponentDeferMetadata, R3ComponentMetadata, R3DeclareClassMetadata, R3DeclareClassMetadataAsync, R3DeclareComponentMetadata, R3DeclareDependencyMetadata, R3DeclareDirectiveDependencyMetadata, R3DeclareDirectiveMetadata, R3DeclareFactoryMetadata, R3DeclareHostDirectiveMetadata, R3DeclareInjectableMetadata, R3DeclareInjectorMetadata, R3DeclareNgModuleDependencyMetadata, R3DeclareNgModuleMetadata, R3DeclarePipeDependencyMetadata, R3DeclarePipeMetadata, R3DeclareQueryMetadata, R3DeclareTemplateDependencyMetadata, R3DeferPerBlockDependency, R3DeferPerComponentDependency, R3DeferResolverFunctionMetadata, R3DependencyMetadata, R3DirectiveDependencyMetadata, R3DirectiveMetadata, R3FactoryMetadata, R3HmrMetadata, R3HmrNamespaceDependency, R3HostDirectiveMetadata, R3HostMetadata, R3InjectableMetadata, R3InjectorMetadata, R3InputMetadata, R3NgModuleDependencyMetadata, R3NgModuleMetadata, R3NgModuleMetadataGlobal, R3PartialDeclaration, R3PipeDependencyMetadata, R3PipeMetadata, R3QueryMetadata, R3Reference, R3TemplateDependency, R3TemplateDependencyMetadata, ReferenceTarget, SchemaMetadata, ScopedNode, SourceMap, StatementVisitor, TagDefinition, Target, TargetBinder, TemplateBinding, TemplateBindingIdentifier, TemplateEntity, DeferredBlockTriggers as TmplAstDeferredBlockTriggers, Node as TmplAstNode, Visitor as TmplAstVisitor, TypeVisitor, Visitor$1 as Visitor };
5812
+ export { AST, ASTWithName, ASTWithSource, AbsoluteSourceSpan, ArrayType, ArrowFunctionExpr, Attribute, Binary, BinaryOperator, BinaryOperatorExpr, BindingParser, BindingPipe, BindingPipeType, BindingType, Block, BlockParameter, BoundElementProperty, BuiltinType, BuiltinTypeName, CUSTOM_ELEMENTS_SCHEMA, Call, Chain, ChangeDetectionStrategy$1 as ChangeDetectionStrategy, CombinedRecursiveAstVisitor, CommaExpr, Comment$1 as Comment, CompilerConfig, CompilerFacadeImpl, Component$1 as Component, Conditional, ConditionalExpr, ConstantPool, CssSelector, DYNAMIC_TYPE, DeclarationListEmitMode, DeclareFunctionStmt, DeclareVarStmt, DeferBlockDepsEmitMode, Directive$1 as Directive, DomElementSchemaRegistry, DynamicImportExpr, EOF, Element$1 as Element, ElementSchemaRegistry, EmitterVisitorContext, EmptyExpr, Expansion, ExpansionCase, Expression, ExpressionBinding, ExpressionStatement, ExpressionType, ExternalExpr, ExternalReference, FactoryTarget, ForwardRefHandling, FunctionExpr, HtmlParser, HtmlTagDefinition, I18NHtmlParser, IfStmt, ImplicitReceiver, InstantiateExpr, Interpolation, InvokeFunctionExpr, JSDocComment, JitEvaluator, KeyedRead, LeadingComment, LetDeclaration$1 as LetDeclaration, Lexer, TokenType$1 as LexerTokenType, LiteralArray, LiteralArrayExpr, LiteralExpr, LiteralMap, LiteralMapExpr, LiteralMapPropertyAssignment, LiteralMapSpreadAssignment, LiteralPrimitive, LocalizedString, MapType, MessageBundle, NONE_TYPE, NO_ERRORS_SCHEMA, NodeWithI18n, NonNullAssert, NotExpr, ParenthesizedExpr, ParenthesizedExpression, ParseError, ParseErrorLevel, ParseFlags, ParseLocation, ParseSourceFile, ParseSourceSpan$1 as ParseSourceSpan, ParseSpan, ParseTreeResult, ParsedEvent, ParsedEventType, ParsedProperty, ParsedPropertyType, ParsedVariable, Parser, PrefixNot, PropertyRead, QueryFlags, Identifiers as R3Identifiers, R3NgModuleMetadataKind, R3SelectorScopeMode, R3TargetBinder, R3TemplateDependencyKind, ReadKeyExpr, ReadPropExpr, ReadVarExpr, RecursiveAstVisitor, RecursiveVisitor$1 as RecursiveVisitor, RegularExpressionLiteral, RegularExpressionLiteralExpr, ResourceLoader, ReturnStatement, SCHEMA, SECURITY_SCHEMA, STRING_TYPE, SafeCall, SafeKeyedRead, SafePropertyRead, SelectorContext, SelectorListContext, SelectorMatcher, SelectorlessMatcher, Serializer, SplitInterpolation, SpreadElement, SpreadElementExpr, Statement, StmtModifier, StringToken, StringTokenKind, TagContentType, TaggedTemplateLiteral, TaggedTemplateLiteralExpr, TemplateBindingParseResult, TemplateLiteral, TemplateLiteralElement, TemplateLiteralElementExpr, TemplateLiteralExpr, Text$1 as Text, ThisReceiver, BlockNode as TmplAstBlockNode, BoundAttribute as TmplAstBoundAttribute, BoundDeferredTrigger as TmplAstBoundDeferredTrigger, BoundEvent as TmplAstBoundEvent, BoundText as TmplAstBoundText, Component as TmplAstComponent, Content as TmplAstContent, DeferredBlock as TmplAstDeferredBlock, DeferredBlockError as TmplAstDeferredBlockError, DeferredBlockLoading as TmplAstDeferredBlockLoading, DeferredBlockPlaceholder as TmplAstDeferredBlockPlaceholder, DeferredTrigger as TmplAstDeferredTrigger, Directive as TmplAstDirective, Element as TmplAstElement, ForLoopBlock as TmplAstForLoopBlock, ForLoopBlockEmpty as TmplAstForLoopBlockEmpty, HostElement as TmplAstHostElement, HoverDeferredTrigger as TmplAstHoverDeferredTrigger, Icu as TmplAstIcu, IdleDeferredTrigger as TmplAstIdleDeferredTrigger, IfBlock as TmplAstIfBlock, IfBlockBranch as TmplAstIfBlockBranch, ImmediateDeferredTrigger as TmplAstImmediateDeferredTrigger, InteractionDeferredTrigger as TmplAstInteractionDeferredTrigger, LetDeclaration as TmplAstLetDeclaration, NeverDeferredTrigger as TmplAstNeverDeferredTrigger, RecursiveVisitor as TmplAstRecursiveVisitor, Reference as TmplAstReference, SwitchBlock as TmplAstSwitchBlock, SwitchBlockCase as TmplAstSwitchBlockCase, SwitchBlockCaseGroup as TmplAstSwitchBlockCaseGroup, Template as TmplAstTemplate, Text as TmplAstText, TextAttribute as TmplAstTextAttribute, TimerDeferredTrigger as TmplAstTimerDeferredTrigger, UnknownBlock as TmplAstUnknownBlock, Variable as TmplAstVariable, ViewportDeferredTrigger as TmplAstViewportDeferredTrigger, Token, TokenType, TransplantedType, TreeError, Type$1 as Type, TypeModifier, TypeofExpr, TypeofExpression, Unary, UnaryOperator, UnaryOperatorExpr, VERSION, VariableBinding, Version, ViewEncapsulation$1 as ViewEncapsulation, VoidExpr, VoidExpression, WrappedNodeExpr, Xliff, Xliff2, Xmb, XmlParser, Xtb, _ATTR_TO_PROP, compileClassDebugInfo, compileClassMetadata, compileComponentClassMetadata, compileComponentDeclareClassMetadata, compileComponentFromMetadata, compileDeclareClassMetadata, compileDeclareComponentFromMetadata, compileDeclareDirectiveFromMetadata, compileDeclareFactoryFunction, compileDeclareInjectableFromMetadata, compileDeclareInjectorFromMetadata, compileDeclareNgModuleFromMetadata, compileDeclarePipeFromMetadata, compileDeferResolverFunction, compileDirectiveFromMetadata, compileFactoryFunction, compileHmrInitializer, compileHmrUpdateCallback, compileInjectable, compileInjector, compileNgModule, compileOpaqueAsyncClassMetadata, compilePipeFromMetadata, computeMsgId, core_d as core, createCssSelectorFromNode, createInjectableType, createMayBeForwardRefExpression, devOnlyGuardedExpression, emitDistinctChangesOnlyDefaultValue, encapsulateStyle, escapeRegExp, findMatchingDirectivesAndPipes, getHtmlTagDefinition, getNsPrefix, getSafePropertyAccessString, identifierName, isNgContainer, isNgContent, isNgTemplate, jsDocComment, leadingComment, literal, literalMap, makeBindingParser, mergeNsAndName, output_ast_d as outputAst, parseHostBindings, parseTemplate, preserveWhitespacesDefault, publishFacade, r3JitTypeSourceSpan, sanitizeIdentifier, setEnableTemplateSourceLocations, splitNsName, visitAll as tmplAstVisitAll, verifyHostBindings, visitAll$1 as visitAll };
5813
+ export type { AstVisitor, BoundTarget, CompileClassMetadataFn, CompileIdentifierMetadata, DeclareComponentTemplateInfo, DirectiveMatcher, DirectiveMeta, DirectiveOwner, ExpressionVisitor, InputOutputPropertySet, InterpolationPiece, LegacyAnimationTriggerNames, LegacyInputPartialMapping, LexerRange, LiteralMapKey, LiteralMapPropertyKey, LiteralMapSpreadKey, MaybeForwardRefExpression, Node$1 as Node, ParseTemplateOptions, ParsedHostBindings, ParsedTemplate, R3ClassDebugInfo, R3ClassMetadata, R3CompiledExpression, R3ComponentDeferMetadata, R3ComponentMetadata, R3DeclareClassMetadata, R3DeclareClassMetadataAsync, R3DeclareComponentMetadata, R3DeclareDependencyMetadata, R3DeclareDirectiveDependencyMetadata, R3DeclareDirectiveMetadata, R3DeclareFactoryMetadata, R3DeclareHostDirectiveMetadata, R3DeclareInjectableMetadata, R3DeclareInjectorMetadata, R3DeclareNgModuleDependencyMetadata, R3DeclareNgModuleMetadata, R3DeclarePipeDependencyMetadata, R3DeclarePipeMetadata, R3DeclareQueryMetadata, R3DeclareTemplateDependencyMetadata, R3DeferPerBlockDependency, R3DeferPerComponentDependency, R3DeferResolverFunctionMetadata, R3DependencyMetadata, R3DirectiveDependencyMetadata, R3DirectiveMetadata, R3FactoryMetadata, R3HmrMetadata, R3HmrNamespaceDependency, R3HostDirectiveMetadata, R3HostMetadata, R3InjectableMetadata, R3InjectorMetadata, R3InputMetadata, R3NgModuleDependencyMetadata, R3NgModuleMetadata, R3NgModuleMetadataGlobal, R3PartialDeclaration, R3PipeDependencyMetadata, R3PipeMetadata, R3QueryMetadata, R3Reference, R3TemplateDependency, R3TemplateDependencyMetadata, ReferenceTarget, SchemaMetadata, ScopedNode, SourceMap, StatementVisitor, TagDefinition, Target, TargetBinder, TemplateBinding, TemplateBindingIdentifier, TemplateEntity, DeferredBlockTriggers as TmplAstDeferredBlockTriggers, Node as TmplAstNode, Visitor as TmplAstVisitor, TypeVisitor, Visitor$1 as Visitor };