@angular/compiler 19.2.0-rc.0 → 20.0.0-next.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/fesm2022/compiler.mjs +248 -161
- package/fesm2022/compiler.mjs.map +1 -1
- package/index.d.ts +25 -2
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular
|
|
2
|
+
* @license Angular v20.0.0-next.0
|
|
3
3
|
* (c) 2010-2024 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;
|
|
@@ -291,7 +292,8 @@ export declare enum BinaryOperator {
|
|
|
291
292
|
LowerEquals = 14,
|
|
292
293
|
Bigger = 15,
|
|
293
294
|
BiggerEquals = 16,
|
|
294
|
-
NullishCoalesce = 17
|
|
295
|
+
NullishCoalesce = 17,
|
|
296
|
+
Exponentiation = 18
|
|
295
297
|
}
|
|
296
298
|
|
|
297
299
|
export declare class BinaryOperatorExpr extends Expression {
|
|
@@ -1265,6 +1267,7 @@ 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
1272
|
bitwiseOr(rhs: Expression, sourceSpan?: ParseSourceSpan | null, parens?: boolean): BinaryOperatorExpr;
|
|
1270
1273
|
bitwiseAnd(rhs: Expression, sourceSpan?: ParseSourceSpan | null, parens?: boolean): BinaryOperatorExpr;
|
|
@@ -1341,6 +1344,7 @@ 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;
|
|
1345
1349
|
}
|
|
1346
1350
|
|
|
@@ -2191,6 +2195,7 @@ declare namespace outputAst {
|
|
|
2191
2195
|
Expression,
|
|
2192
2196
|
ReadVarExpr,
|
|
2193
2197
|
TypeofExpr,
|
|
2198
|
+
VoidExpr,
|
|
2194
2199
|
WrappedNodeExpr,
|
|
2195
2200
|
WriteVarExpr,
|
|
2196
2201
|
WriteKeyExpr,
|
|
@@ -4400,6 +4405,7 @@ export declare class RecursiveAstVisitor implements AstVisitor {
|
|
|
4400
4405
|
visitLiteralPrimitive(ast: LiteralPrimitive, context: any): any;
|
|
4401
4406
|
visitPrefixNot(ast: PrefixNot, context: any): any;
|
|
4402
4407
|
visitTypeofExpression(ast: TypeofExpression, context: any): void;
|
|
4408
|
+
visitVoidExpression(ast: VoidExpression, context: any): void;
|
|
4403
4409
|
visitNonNullAssert(ast: NonNullAssert, context: any): any;
|
|
4404
4410
|
visitPropertyRead(ast: PropertyRead, context: any): any;
|
|
4405
4411
|
visitPropertyWrite(ast: PropertyWrite, context: any): any;
|
|
@@ -4422,6 +4428,7 @@ declare class RecursiveAstVisitor_2 implements StatementVisitor, ExpressionVisit
|
|
|
4422
4428
|
visitTransplantedType(type: TransplantedType<unknown>, context: any): any;
|
|
4423
4429
|
visitWrappedNodeExpr(ast: WrappedNodeExpr<any>, context: any): any;
|
|
4424
4430
|
visitTypeofExpr(ast: TypeofExpr, context: any): any;
|
|
4431
|
+
visitVoidExpr(ast: VoidExpr, context: any): any;
|
|
4425
4432
|
visitReadVarExpr(ast: ReadVarExpr, context: any): any;
|
|
4426
4433
|
visitWriteVarExpr(ast: WriteVarExpr, context: any): any;
|
|
4427
4434
|
visitWriteKeyExpr(ast: WriteKeyExpr, context: any): any;
|
|
@@ -5397,6 +5404,7 @@ export declare class Token {
|
|
|
5397
5404
|
isKeywordFalse(): boolean;
|
|
5398
5405
|
isKeywordThis(): boolean;
|
|
5399
5406
|
isKeywordTypeof(): boolean;
|
|
5407
|
+
isKeywordVoid(): boolean;
|
|
5400
5408
|
isError(): boolean;
|
|
5401
5409
|
toNumber(): number;
|
|
5402
5410
|
isTemplateLiteralPart(): this is StringToken;
|
|
@@ -5661,6 +5669,21 @@ declare interface Visitor_2 {
|
|
|
5661
5669
|
visitBlockPlaceholder(ph: BlockPlaceholder, context?: any): any;
|
|
5662
5670
|
}
|
|
5663
5671
|
|
|
5672
|
+
export declare class VoidExpr extends Expression {
|
|
5673
|
+
expr: Expression;
|
|
5674
|
+
constructor(expr: Expression, type?: Type | null, sourceSpan?: ParseSourceSpan | null);
|
|
5675
|
+
visitExpression(visitor: ExpressionVisitor, context: any): any;
|
|
5676
|
+
isEquivalent(e: Expression): boolean;
|
|
5677
|
+
isConstant(): boolean;
|
|
5678
|
+
clone(): VoidExpr;
|
|
5679
|
+
}
|
|
5680
|
+
|
|
5681
|
+
export declare class VoidExpression extends AST {
|
|
5682
|
+
expression: AST;
|
|
5683
|
+
constructor(span: ParseSpan, sourceSpan: AbsoluteSourceSpan, expression: AST);
|
|
5684
|
+
visit(visitor: AstVisitor, context?: any): any;
|
|
5685
|
+
}
|
|
5686
|
+
|
|
5664
5687
|
export declare class WrappedNodeExpr<T> extends Expression {
|
|
5665
5688
|
node: T;
|
|
5666
5689
|
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": "
|
|
3
|
+
"version": "20.0.0-next.0",
|
|
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": "
|
|
14
|
+
"@angular/core": "20.0.0-next.0"
|
|
15
15
|
},
|
|
16
16
|
"peerDependenciesMeta": {
|
|
17
17
|
"@angular/core": {
|