@angular/compiler 20.0.0-next.0 → 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,6 +1,6 @@
1
1
  /**
2
- * @license Angular v20.0.0-next.0
3
- * (c) 2010-2024 Google LLC. https://angular.io/
2
+ * @license Angular v20.0.0-next.1
3
+ * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
6
 
@@ -96,6 +96,7 @@ export declare interface AstVisitor {
96
96
  visitSafeCall(ast: SafeCall, context: any): any;
97
97
  visitTemplateLiteral(ast: TemplateLiteral, context: any): any;
98
98
  visitTemplateLiteralElement(ast: TemplateLiteralElement, context: any): any;
99
+ visitTaggedTemplateLiteral(ast: TaggedTemplateLiteral, context: any): any;
99
100
  visitASTWithSource?(ast: ASTWithSource, context: any): any;
100
101
  /**
101
102
  * This function is optionally defined to allow classes that implement this
@@ -299,9 +300,8 @@ export declare enum BinaryOperator {
299
300
  export declare class BinaryOperatorExpr extends Expression {
300
301
  operator: BinaryOperator;
301
302
  rhs: Expression;
302
- parens: boolean;
303
303
  lhs: Expression;
304
- 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);
305
305
  isEquivalent(e: Expression): boolean;
306
306
  isConstant(): boolean;
307
307
  visitExpression(visitor: ExpressionVisitor, context: any): any;
@@ -1269,8 +1269,8 @@ export declare abstract class Expression {
1269
1269
  modulo(rhs: Expression, sourceSpan?: ParseSourceSpan | null): BinaryOperatorExpr;
1270
1270
  power(rhs: Expression, sourceSpan?: ParseSourceSpan | null): BinaryOperatorExpr;
1271
1271
  and(rhs: Expression, sourceSpan?: ParseSourceSpan | null): BinaryOperatorExpr;
1272
- bitwiseOr(rhs: Expression, sourceSpan?: ParseSourceSpan | null, parens?: boolean): BinaryOperatorExpr;
1273
- 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;
1274
1274
  or(rhs: Expression, sourceSpan?: ParseSourceSpan | null): BinaryOperatorExpr;
1275
1275
  lower(rhs: Expression, sourceSpan?: ParseSourceSpan | null): BinaryOperatorExpr;
1276
1276
  lowerEquals(rhs: Expression, sourceSpan?: ParseSourceSpan | null): BinaryOperatorExpr;
@@ -1346,6 +1346,7 @@ export declare interface ExpressionVisitor {
1346
1346
  visitTypeofExpr(ast: TypeofExpr, context: any): any;
1347
1347
  visitVoidExpr(ast: VoidExpr, context: any): any;
1348
1348
  visitArrowFunctionExpr(ast: ArrowFunctionExpr, context: any): any;
1349
+ visitParenthesizedExpr(ast: ParenthesizedExpr, context: any): any;
1349
1350
  }
1350
1351
 
1351
1352
  export declare class ExternalExpr extends Expression {
@@ -2220,6 +2221,7 @@ declare namespace outputAst {
2220
2221
  FunctionExpr,
2221
2222
  ArrowFunctionExpr,
2222
2223
  UnaryOperatorExpr,
2224
+ ParenthesizedExpr,
2223
2225
  BinaryOperatorExpr,
2224
2226
  ReadPropExpr,
2225
2227
  ReadKeyExpr,
@@ -2247,6 +2249,15 @@ declare namespace outputAst {
2247
2249
  }
2248
2250
  export { outputAst }
2249
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
+
2250
2261
  export declare class ParsedEvent {
2251
2262
  name: string;
2252
2263
  targetOrPhase: string;
@@ -4415,6 +4426,7 @@ export declare class RecursiveAstVisitor implements AstVisitor {
4415
4426
  visitSafeCall(ast: SafeCall, context: any): any;
4416
4427
  visitTemplateLiteral(ast: TemplateLiteral, context: any): void;
4417
4428
  visitTemplateLiteralElement(ast: TemplateLiteralElement, context: any): void;
4429
+ visitTaggedTemplateLiteral(ast: TaggedTemplateLiteral, context: any): void;
4418
4430
  visitAll(asts: AST[], context: any): any;
4419
4431
  }
4420
4432
 
@@ -4427,8 +4439,6 @@ declare class RecursiveAstVisitor_2 implements StatementVisitor, ExpressionVisit
4427
4439
  visitMapType(type: MapType, context: any): any;
4428
4440
  visitTransplantedType(type: TransplantedType<unknown>, context: any): any;
4429
4441
  visitWrappedNodeExpr(ast: WrappedNodeExpr<any>, context: any): any;
4430
- visitTypeofExpr(ast: TypeofExpr, context: any): any;
4431
- visitVoidExpr(ast: VoidExpr, context: any): any;
4432
4442
  visitReadVarExpr(ast: ReadVarExpr, context: any): any;
4433
4443
  visitWriteVarExpr(ast: WriteVarExpr, context: any): any;
4434
4444
  visitWriteKeyExpr(ast: WriteKeyExpr, context: any): any;
@@ -4445,6 +4455,8 @@ declare class RecursiveAstVisitor_2 implements StatementVisitor, ExpressionVisit
4445
4455
  visitFunctionExpr(ast: FunctionExpr, context: any): any;
4446
4456
  visitArrowFunctionExpr(ast: ArrowFunctionExpr, context: any): any;
4447
4457
  visitUnaryOperatorExpr(ast: UnaryOperatorExpr, context: any): any;
4458
+ visitTypeofExpr(ast: TypeofExpr, context: any): any;
4459
+ visitVoidExpr(ast: VoidExpr, context: any): any;
4448
4460
  visitBinaryOperatorExpr(ast: BinaryOperatorExpr, context: any): any;
4449
4461
  visitReadPropExpr(ast: ReadPropExpr, context: any): any;
4450
4462
  visitReadKeyExpr(ast: ReadKeyExpr, context: any): any;
@@ -4453,6 +4465,7 @@ declare class RecursiveAstVisitor_2 implements StatementVisitor, ExpressionVisit
4453
4465
  visitCommaExpr(ast: CommaExpr, context: any): any;
4454
4466
  visitTemplateLiteralExpr(ast: TemplateLiteralExpr, context: any): any;
4455
4467
  visitTemplateLiteralElementExpr(ast: TemplateLiteralElementExpr, context: any): any;
4468
+ visitParenthesizedExpr(ast: ParenthesizedExpr, context: any): any;
4456
4469
  visitAllExpressions(exprs: Expression[], context: any): void;
4457
4470
  visitDeclareVarStmt(stmt: DeclareVarStmt, context: any): any;
4458
4471
  visitDeclareFunctionStmt(stmt: DeclareFunctionStmt, context: any): any;
@@ -4848,6 +4861,13 @@ export declare interface TagDefinition {
4848
4861
 
4849
4862
  declare function taggedTemplate(tag: Expression, template: TemplateLiteralExpr, type?: Type | null, sourceSpan?: ParseSourceSpan | null): TaggedTemplateLiteralExpr;
4850
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
+
4851
4871
  export declare class TaggedTemplateLiteralExpr extends Expression {
4852
4872
  tag: Expression;
4853
4873
  template: TemplateLiteralExpr;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/compiler",
3
- "version": "20.0.0-next.0",
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": "20.0.0-next.0"
14
+ "@angular/core": "20.0.0-next.1"
15
15
  },
16
16
  "peerDependenciesMeta": {
17
17
  "@angular/core": {