@angular/compiler 16.0.0 → 16.0.2
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/esm2022/src/compiler.mjs +2 -2
- package/esm2022/src/output/output_ast.mjs +16 -1
- package/esm2022/src/render3/partial/class_metadata.mjs +1 -1
- package/esm2022/src/render3/partial/directive.mjs +1 -1
- package/esm2022/src/render3/partial/factory.mjs +1 -1
- package/esm2022/src/render3/partial/injectable.mjs +1 -1
- package/esm2022/src/render3/partial/injector.mjs +1 -1
- package/esm2022/src/render3/partial/ng_module.mjs +1 -1
- package/esm2022/src/render3/partial/pipe.mjs +1 -1
- package/esm2022/src/render3/r3_ast.mjs +2 -85
- package/esm2022/src/version.mjs +1 -1
- package/fesm2022/compiler.mjs +28 -94
- package/fesm2022/compiler.mjs.map +1 -1
- package/fesm2022/testing.mjs +1 -1
- package/index.d.ts +12 -33
- package/package.json +2 -2
- package/testing/index.d.ts +1 -1
package/fesm2022/testing.mjs
CHANGED
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v16.0.
|
|
2
|
+
* @license Angular v16.0.2
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -1878,20 +1878,6 @@ declare function nullSafeIsEquivalent<T extends {
|
|
|
1878
1878
|
isEquivalent(other: T): boolean;
|
|
1879
1879
|
}>(base: T | null, other: T | null): boolean;
|
|
1880
1880
|
|
|
1881
|
-
declare class NullVisitor implements Visitor_3<void> {
|
|
1882
|
-
visitElement(element: TmplAstElement): void;
|
|
1883
|
-
visitTemplate(template: TmplAstTemplate): void;
|
|
1884
|
-
visitContent(content: TmplAstContent): void;
|
|
1885
|
-
visitVariable(variable: TmplAstVariable): void;
|
|
1886
|
-
visitReference(reference: TmplAstReference): void;
|
|
1887
|
-
visitTextAttribute(attribute: TmplAstTextAttribute): void;
|
|
1888
|
-
visitBoundAttribute(attribute: TmplAstBoundAttribute): void;
|
|
1889
|
-
visitBoundEvent(attribute: TmplAstBoundEvent): void;
|
|
1890
|
-
visitText(text: TmplAstText): void;
|
|
1891
|
-
visitBoundText(text: TmplAstBoundText): void;
|
|
1892
|
-
visitIcu(icu: TmplAstIcu): void;
|
|
1893
|
-
}
|
|
1894
|
-
|
|
1895
1881
|
declare const NUMBER_TYPE: BuiltinType;
|
|
1896
1882
|
|
|
1897
1883
|
declare interface Output {
|
|
@@ -1908,6 +1894,7 @@ declare namespace outputAst {
|
|
|
1908
1894
|
importExpr,
|
|
1909
1895
|
importType,
|
|
1910
1896
|
expressionType,
|
|
1897
|
+
transplantedType,
|
|
1911
1898
|
typeofExpr,
|
|
1912
1899
|
literalArr,
|
|
1913
1900
|
literalMap,
|
|
@@ -1926,6 +1913,7 @@ declare namespace outputAst {
|
|
|
1926
1913
|
ExpressionType,
|
|
1927
1914
|
ArrayType,
|
|
1928
1915
|
MapType,
|
|
1916
|
+
TransplantedType,
|
|
1929
1917
|
DYNAMIC_TYPE,
|
|
1930
1918
|
INFERRED_TYPE,
|
|
1931
1919
|
BOOL_TYPE,
|
|
@@ -3999,6 +3987,7 @@ declare class RecursiveAstVisitor_2 implements StatementVisitor, ExpressionVisit
|
|
|
3999
3987
|
visitExpressionType(type: ExpressionType, context: any): any;
|
|
4000
3988
|
visitArrayType(type: ArrayType, context: any): any;
|
|
4001
3989
|
visitMapType(type: MapType, context: any): any;
|
|
3990
|
+
visitTransplantedType(type: TransplantedType<unknown>, context: any): any;
|
|
4002
3991
|
visitWrappedNodeExpr(ast: WrappedNodeExpr<any>, context: any): any;
|
|
4003
3992
|
visitTypeofExpr(ast: TypeofExpr, context: any): any;
|
|
4004
3993
|
visitReadVarExpr(ast: ReadVarExpr, context: any): any;
|
|
@@ -4253,7 +4242,6 @@ export declare const STRING_TYPE: BuiltinType;
|
|
|
4253
4242
|
declare namespace t {
|
|
4254
4243
|
export {
|
|
4255
4244
|
visitAll_2 as visitAll,
|
|
4256
|
-
transformAll,
|
|
4257
4245
|
TmplAstNode as Node,
|
|
4258
4246
|
Comment_3 as Comment,
|
|
4259
4247
|
TmplAstText as Text,
|
|
@@ -4268,9 +4256,7 @@ declare namespace t {
|
|
|
4268
4256
|
TmplAstReference as Reference,
|
|
4269
4257
|
TmplAstIcu as Icu,
|
|
4270
4258
|
Visitor_3 as Visitor,
|
|
4271
|
-
|
|
4272
|
-
TmplAstRecursiveVisitor as RecursiveVisitor,
|
|
4273
|
-
TransformVisitor
|
|
4259
|
+
TmplAstRecursiveVisitor as RecursiveVisitor
|
|
4274
4260
|
}
|
|
4275
4261
|
}
|
|
4276
4262
|
|
|
@@ -4705,22 +4691,14 @@ declare const enum TokenType_2 {
|
|
|
4705
4691
|
EOF = 24
|
|
4706
4692
|
}
|
|
4707
4693
|
|
|
4708
|
-
declare
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
visitTemplate(template: TmplAstTemplate): TmplAstNode;
|
|
4713
|
-
visitContent(content: TmplAstContent): TmplAstNode;
|
|
4714
|
-
visitVariable(variable: TmplAstVariable): TmplAstNode;
|
|
4715
|
-
visitReference(reference: TmplAstReference): TmplAstNode;
|
|
4716
|
-
visitTextAttribute(attribute: TmplAstTextAttribute): TmplAstNode;
|
|
4717
|
-
visitBoundAttribute(attribute: TmplAstBoundAttribute): TmplAstNode;
|
|
4718
|
-
visitBoundEvent(attribute: TmplAstBoundEvent): TmplAstNode;
|
|
4719
|
-
visitText(text: TmplAstText): TmplAstNode;
|
|
4720
|
-
visitBoundText(text: TmplAstBoundText): TmplAstNode;
|
|
4721
|
-
visitIcu(icu: TmplAstIcu): TmplAstNode;
|
|
4694
|
+
export declare class TransplantedType<T> extends Type {
|
|
4695
|
+
readonly type: T;
|
|
4696
|
+
constructor(type: T, modifiers?: TypeModifier);
|
|
4697
|
+
visitType(visitor: TypeVisitor, context: any): any;
|
|
4722
4698
|
}
|
|
4723
4699
|
|
|
4700
|
+
declare function transplantedType<T>(type: T, typeModifiers?: TypeModifier): TransplantedType<T>;
|
|
4701
|
+
|
|
4724
4702
|
export declare class TreeError extends ParseError {
|
|
4725
4703
|
elementName: string | null;
|
|
4726
4704
|
static create(elementName: string | null, span: ParseSourceSpan, msg: string): TreeError;
|
|
@@ -4762,6 +4740,7 @@ export declare interface TypeVisitor {
|
|
|
4762
4740
|
visitExpressionType(type: ExpressionType, context: any): any;
|
|
4763
4741
|
visitArrayType(type: ArrayType, context: any): any;
|
|
4764
4742
|
visitMapType(type: MapType, context: any): any;
|
|
4743
|
+
visitTransplantedType(type: TransplantedType<unknown>, context: any): any;
|
|
4765
4744
|
}
|
|
4766
4745
|
|
|
4767
4746
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/compiler",
|
|
3
|
-
"version": "16.0.
|
|
3
|
+
"version": "16.0.2",
|
|
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": "16.0.
|
|
14
|
+
"@angular/core": "16.0.2"
|
|
15
15
|
},
|
|
16
16
|
"peerDependenciesMeta": {
|
|
17
17
|
"@angular/core": {
|
package/testing/index.d.ts
CHANGED