@angular/compiler 19.2.1 → 20.0.0-next.1

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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.2.1
2
+ * @license Angular v20.0.0-next.1
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -86,6 +86,7 @@ export declare interface AstVisitor {
86
86
  visitPipe(ast: BindingPipe, context: any): any;
87
87
  visitPrefixNot(ast: PrefixNot, context: any): any;
88
88
  visitTypeofExpression(ast: TypeofExpression, context: any): any;
89
+ visitVoidExpression(ast: TypeofExpression, context: any): any;
89
90
  visitNonNullAssert(ast: NonNullAssert, context: any): any;
90
91
  visitPropertyRead(ast: PropertyRead, context: any): any;
91
92
  visitPropertyWrite(ast: PropertyWrite, context: any): any;
@@ -95,6 +96,7 @@ export declare interface AstVisitor {
95
96
  visitSafeCall(ast: SafeCall, context: any): any;
96
97
  visitTemplateLiteral(ast: TemplateLiteral, context: any): any;
97
98
  visitTemplateLiteralElement(ast: TemplateLiteralElement, context: any): any;
99
+ visitTaggedTemplateLiteral(ast: TaggedTemplateLiteral, context: any): any;
98
100
  visitASTWithSource?(ast: ASTWithSource, context: any): any;
99
101
  /**
100
102
  * This function is optionally defined to allow classes that implement this
@@ -291,15 +293,15 @@ export declare enum BinaryOperator {
291
293
  LowerEquals = 14,
292
294
  Bigger = 15,
293
295
  BiggerEquals = 16,
294
- NullishCoalesce = 17
296
+ NullishCoalesce = 17,
297
+ Exponentiation = 18
295
298
  }
296
299
 
297
300
  export declare class BinaryOperatorExpr extends Expression {
298
301
  operator: BinaryOperator;
299
302
  rhs: Expression;
300
- parens: boolean;
301
303
  lhs: Expression;
302
- constructor(operator: BinaryOperator, lhs: Expression, rhs: Expression, type?: Type | null, sourceSpan?: ParseSourceSpan | null, parens?: boolean);
304
+ constructor(operator: BinaryOperator, lhs: Expression, rhs: Expression, type?: Type | null, sourceSpan?: ParseSourceSpan | null);
303
305
  isEquivalent(e: Expression): boolean;
304
306
  isConstant(): boolean;
305
307
  visitExpression(visitor: ExpressionVisitor, context: any): any;
@@ -1265,9 +1267,10 @@ export declare abstract class Expression {
1265
1267
  divide(rhs: Expression, sourceSpan?: ParseSourceSpan | null): BinaryOperatorExpr;
1266
1268
  multiply(rhs: Expression, sourceSpan?: ParseSourceSpan | null): BinaryOperatorExpr;
1267
1269
  modulo(rhs: Expression, sourceSpan?: ParseSourceSpan | null): BinaryOperatorExpr;
1270
+ power(rhs: Expression, sourceSpan?: ParseSourceSpan | null): BinaryOperatorExpr;
1268
1271
  and(rhs: Expression, sourceSpan?: ParseSourceSpan | null): BinaryOperatorExpr;
1269
- bitwiseOr(rhs: Expression, sourceSpan?: ParseSourceSpan | null, parens?: boolean): BinaryOperatorExpr;
1270
- bitwiseAnd(rhs: Expression, sourceSpan?: ParseSourceSpan | null, parens?: boolean): BinaryOperatorExpr;
1272
+ bitwiseOr(rhs: Expression, sourceSpan?: ParseSourceSpan | null): BinaryOperatorExpr;
1273
+ bitwiseAnd(rhs: Expression, sourceSpan?: ParseSourceSpan | null): BinaryOperatorExpr;
1271
1274
  or(rhs: Expression, sourceSpan?: ParseSourceSpan | null): BinaryOperatorExpr;
1272
1275
  lower(rhs: Expression, sourceSpan?: ParseSourceSpan | null): BinaryOperatorExpr;
1273
1276
  lowerEquals(rhs: Expression, sourceSpan?: ParseSourceSpan | null): BinaryOperatorExpr;
@@ -1341,7 +1344,9 @@ export declare interface ExpressionVisitor {
1341
1344
  visitCommaExpr(ast: CommaExpr, context: any): any;
1342
1345
  visitWrappedNodeExpr(ast: WrappedNodeExpr<any>, context: any): any;
1343
1346
  visitTypeofExpr(ast: TypeofExpr, context: any): any;
1347
+ visitVoidExpr(ast: VoidExpr, context: any): any;
1344
1348
  visitArrowFunctionExpr(ast: ArrowFunctionExpr, context: any): any;
1349
+ visitParenthesizedExpr(ast: ParenthesizedExpr, context: any): any;
1345
1350
  }
1346
1351
 
1347
1352
  export declare class ExternalExpr extends Expression {
@@ -2191,6 +2196,7 @@ declare namespace outputAst {
2191
2196
  Expression,
2192
2197
  ReadVarExpr,
2193
2198
  TypeofExpr,
2199
+ VoidExpr,
2194
2200
  WrappedNodeExpr,
2195
2201
  WriteVarExpr,
2196
2202
  WriteKeyExpr,
@@ -2215,6 +2221,7 @@ declare namespace outputAst {
2215
2221
  FunctionExpr,
2216
2222
  ArrowFunctionExpr,
2217
2223
  UnaryOperatorExpr,
2224
+ ParenthesizedExpr,
2218
2225
  BinaryOperatorExpr,
2219
2226
  ReadPropExpr,
2220
2227
  ReadKeyExpr,
@@ -2242,6 +2249,15 @@ declare namespace outputAst {
2242
2249
  }
2243
2250
  export { outputAst }
2244
2251
 
2252
+ export declare class ParenthesizedExpr extends Expression {
2253
+ expr: Expression;
2254
+ constructor(expr: Expression, type?: Type | null, sourceSpan?: ParseSourceSpan | null);
2255
+ visitExpression(visitor: ExpressionVisitor, context: any): any;
2256
+ isEquivalent(e: Expression): boolean;
2257
+ isConstant(): boolean;
2258
+ clone(): ParenthesizedExpr;
2259
+ }
2260
+
2245
2261
  export declare class ParsedEvent {
2246
2262
  name: string;
2247
2263
  targetOrPhase: string;
@@ -4400,6 +4416,7 @@ export declare class RecursiveAstVisitor implements AstVisitor {
4400
4416
  visitLiteralPrimitive(ast: LiteralPrimitive, context: any): any;
4401
4417
  visitPrefixNot(ast: PrefixNot, context: any): any;
4402
4418
  visitTypeofExpression(ast: TypeofExpression, context: any): void;
4419
+ visitVoidExpression(ast: VoidExpression, context: any): void;
4403
4420
  visitNonNullAssert(ast: NonNullAssert, context: any): any;
4404
4421
  visitPropertyRead(ast: PropertyRead, context: any): any;
4405
4422
  visitPropertyWrite(ast: PropertyWrite, context: any): any;
@@ -4409,6 +4426,7 @@ export declare class RecursiveAstVisitor implements AstVisitor {
4409
4426
  visitSafeCall(ast: SafeCall, context: any): any;
4410
4427
  visitTemplateLiteral(ast: TemplateLiteral, context: any): void;
4411
4428
  visitTemplateLiteralElement(ast: TemplateLiteralElement, context: any): void;
4429
+ visitTaggedTemplateLiteral(ast: TaggedTemplateLiteral, context: any): void;
4412
4430
  visitAll(asts: AST[], context: any): any;
4413
4431
  }
4414
4432
 
@@ -4421,7 +4439,6 @@ declare class RecursiveAstVisitor_2 implements StatementVisitor, ExpressionVisit
4421
4439
  visitMapType(type: MapType, context: any): any;
4422
4440
  visitTransplantedType(type: TransplantedType<unknown>, context: any): any;
4423
4441
  visitWrappedNodeExpr(ast: WrappedNodeExpr<any>, context: any): any;
4424
- visitTypeofExpr(ast: TypeofExpr, context: any): any;
4425
4442
  visitReadVarExpr(ast: ReadVarExpr, context: any): any;
4426
4443
  visitWriteVarExpr(ast: WriteVarExpr, context: any): any;
4427
4444
  visitWriteKeyExpr(ast: WriteKeyExpr, context: any): any;
@@ -4438,6 +4455,8 @@ declare class RecursiveAstVisitor_2 implements StatementVisitor, ExpressionVisit
4438
4455
  visitFunctionExpr(ast: FunctionExpr, context: any): any;
4439
4456
  visitArrowFunctionExpr(ast: ArrowFunctionExpr, context: any): any;
4440
4457
  visitUnaryOperatorExpr(ast: UnaryOperatorExpr, context: any): any;
4458
+ visitTypeofExpr(ast: TypeofExpr, context: any): any;
4459
+ visitVoidExpr(ast: VoidExpr, context: any): any;
4441
4460
  visitBinaryOperatorExpr(ast: BinaryOperatorExpr, context: any): any;
4442
4461
  visitReadPropExpr(ast: ReadPropExpr, context: any): any;
4443
4462
  visitReadKeyExpr(ast: ReadKeyExpr, context: any): any;
@@ -4446,6 +4465,7 @@ declare class RecursiveAstVisitor_2 implements StatementVisitor, ExpressionVisit
4446
4465
  visitCommaExpr(ast: CommaExpr, context: any): any;
4447
4466
  visitTemplateLiteralExpr(ast: TemplateLiteralExpr, context: any): any;
4448
4467
  visitTemplateLiteralElementExpr(ast: TemplateLiteralElementExpr, context: any): any;
4468
+ visitParenthesizedExpr(ast: ParenthesizedExpr, context: any): any;
4449
4469
  visitAllExpressions(exprs: Expression[], context: any): void;
4450
4470
  visitDeclareVarStmt(stmt: DeclareVarStmt, context: any): any;
4451
4471
  visitDeclareFunctionStmt(stmt: DeclareFunctionStmt, context: any): any;
@@ -4841,6 +4861,13 @@ export declare interface TagDefinition {
4841
4861
 
4842
4862
  declare function taggedTemplate(tag: Expression, template: TemplateLiteralExpr, type?: Type | null, sourceSpan?: ParseSourceSpan | null): TaggedTemplateLiteralExpr;
4843
4863
 
4864
+ export declare class TaggedTemplateLiteral extends AST {
4865
+ tag: AST;
4866
+ template: TemplateLiteral;
4867
+ constructor(span: ParseSpan, sourceSpan: AbsoluteSourceSpan, tag: AST, template: TemplateLiteral);
4868
+ visit(visitor: AstVisitor, context?: any): any;
4869
+ }
4870
+
4844
4871
  export declare class TaggedTemplateLiteralExpr extends Expression {
4845
4872
  tag: Expression;
4846
4873
  template: TemplateLiteralExpr;
@@ -5397,6 +5424,7 @@ export declare class Token {
5397
5424
  isKeywordFalse(): boolean;
5398
5425
  isKeywordThis(): boolean;
5399
5426
  isKeywordTypeof(): boolean;
5427
+ isKeywordVoid(): boolean;
5400
5428
  isError(): boolean;
5401
5429
  toNumber(): number;
5402
5430
  isTemplateLiteralPart(): this is StringToken;
@@ -5661,6 +5689,21 @@ declare interface Visitor_2 {
5661
5689
  visitBlockPlaceholder(ph: BlockPlaceholder, context?: any): any;
5662
5690
  }
5663
5691
 
5692
+ export declare class VoidExpr extends Expression {
5693
+ expr: Expression;
5694
+ constructor(expr: Expression, type?: Type | null, sourceSpan?: ParseSourceSpan | null);
5695
+ visitExpression(visitor: ExpressionVisitor, context: any): any;
5696
+ isEquivalent(e: Expression): boolean;
5697
+ isConstant(): boolean;
5698
+ clone(): VoidExpr;
5699
+ }
5700
+
5701
+ export declare class VoidExpression extends AST {
5702
+ expression: AST;
5703
+ constructor(span: ParseSpan, sourceSpan: AbsoluteSourceSpan, expression: AST);
5704
+ visit(visitor: AstVisitor, context?: any): any;
5705
+ }
5706
+
5664
5707
  export declare class WrappedNodeExpr<T> extends Expression {
5665
5708
  node: T;
5666
5709
  constructor(node: T, type?: Type | null, sourceSpan?: ParseSourceSpan | null);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/compiler",
3
- "version": "19.2.1",
3
+ "version": "20.0.0-next.1",
4
4
  "description": "Angular - the compiler library",
5
5
  "author": "angular",
6
6
  "license": "MIT",
@@ -11,7 +11,7 @@
11
11
  "tslib": "^2.3.0"
12
12
  },
13
13
  "peerDependencies": {
14
- "@angular/core": "19.2.1"
14
+ "@angular/core": "20.0.0-next.1"
15
15
  },
16
16
  "peerDependenciesMeta": {
17
17
  "@angular/core": {