@angular/compiler 21.0.6 → 21.0.8
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 +43 -40
- package/fesm2022/compiler.mjs.map +1 -1
- package/package.json +1 -1
- package/types/compiler.d.ts +16 -22
package/package.json
CHANGED
package/types/compiler.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.0.
|
|
2
|
+
* @license Angular v21.0.8
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -1700,23 +1700,15 @@ declare class EmptyExpr extends AST {
|
|
|
1700
1700
|
declare class ImplicitReceiver extends AST {
|
|
1701
1701
|
visit(visitor: AstVisitor, context?: any): any;
|
|
1702
1702
|
}
|
|
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 {
|
|
1703
|
+
declare class ThisReceiver extends AST {
|
|
1712
1704
|
visit(visitor: AstVisitor, context?: any): any;
|
|
1713
1705
|
}
|
|
1714
1706
|
/**
|
|
1715
1707
|
* Multiple expressions separated by a semicolon.
|
|
1716
1708
|
*/
|
|
1717
1709
|
declare class Chain extends AST {
|
|
1718
|
-
expressions:
|
|
1719
|
-
constructor(span: ParseSpan, sourceSpan: AbsoluteSourceSpan, expressions:
|
|
1710
|
+
expressions: AST[];
|
|
1711
|
+
constructor(span: ParseSpan, sourceSpan: AbsoluteSourceSpan, expressions: AST[]);
|
|
1720
1712
|
visit(visitor: AstVisitor, context?: any): any;
|
|
1721
1713
|
}
|
|
1722
1714
|
declare class Conditional extends AST {
|
|
@@ -1766,30 +1758,32 @@ declare enum BindingPipeType {
|
|
|
1766
1758
|
declare class BindingPipe extends ASTWithName {
|
|
1767
1759
|
exp: AST;
|
|
1768
1760
|
name: string;
|
|
1769
|
-
args:
|
|
1761
|
+
args: AST[];
|
|
1770
1762
|
readonly type: BindingPipeType;
|
|
1771
|
-
constructor(span: ParseSpan, sourceSpan: AbsoluteSourceSpan, exp: AST, name: string, args:
|
|
1763
|
+
constructor(span: ParseSpan, sourceSpan: AbsoluteSourceSpan, exp: AST, name: string, args: AST[], type: BindingPipeType, nameSpan: AbsoluteSourceSpan);
|
|
1772
1764
|
visit(visitor: AstVisitor, context?: any): any;
|
|
1773
1765
|
}
|
|
1774
1766
|
declare class LiteralPrimitive extends AST {
|
|
1775
|
-
value:
|
|
1776
|
-
constructor(span: ParseSpan, sourceSpan: AbsoluteSourceSpan, value:
|
|
1767
|
+
value: string | number | boolean | null | undefined;
|
|
1768
|
+
constructor(span: ParseSpan, sourceSpan: AbsoluteSourceSpan, value: string | number | boolean | null | undefined);
|
|
1777
1769
|
visit(visitor: AstVisitor, context?: any): any;
|
|
1778
1770
|
}
|
|
1779
1771
|
declare class LiteralArray extends AST {
|
|
1780
|
-
expressions:
|
|
1781
|
-
constructor(span: ParseSpan, sourceSpan: AbsoluteSourceSpan, expressions:
|
|
1772
|
+
expressions: AST[];
|
|
1773
|
+
constructor(span: ParseSpan, sourceSpan: AbsoluteSourceSpan, expressions: AST[]);
|
|
1782
1774
|
visit(visitor: AstVisitor, context?: any): any;
|
|
1783
1775
|
}
|
|
1784
|
-
|
|
1776
|
+
interface LiteralMapKey {
|
|
1785
1777
|
key: string;
|
|
1786
1778
|
quoted: boolean;
|
|
1779
|
+
span: ParseSpan;
|
|
1780
|
+
sourceSpan: AbsoluteSourceSpan;
|
|
1787
1781
|
isShorthandInitialized?: boolean;
|
|
1788
|
-
}
|
|
1782
|
+
}
|
|
1789
1783
|
declare class LiteralMap extends AST {
|
|
1790
1784
|
keys: LiteralMapKey[];
|
|
1791
|
-
values:
|
|
1792
|
-
constructor(span: ParseSpan, sourceSpan: AbsoluteSourceSpan, keys: LiteralMapKey[], values:
|
|
1785
|
+
values: AST[];
|
|
1786
|
+
constructor(span: ParseSpan, sourceSpan: AbsoluteSourceSpan, keys: LiteralMapKey[], values: AST[]);
|
|
1793
1787
|
visit(visitor: AstVisitor, context?: any): any;
|
|
1794
1788
|
}
|
|
1795
1789
|
declare class Interpolation extends AST {
|