@angular/compiler 16.1.0-next.2 → 16.1.0-rc.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/esm2022/src/compiler_util/expression_converter.mjs +2 -3
- package/esm2022/src/constant_pool.mjs +53 -60
- package/esm2022/src/jit_compiler_facade.mjs +11 -10
- 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_identifiers.mjs +2 -3
- package/esm2022/src/render3/view/compiler.mjs +8 -8
- package/esm2022/src/shadow_css.mjs +34 -21
- package/esm2022/src/template/pipeline/ir/src/enums.mjs +26 -2
- package/esm2022/src/template/pipeline/ir/src/expression.mjs +156 -5
- package/esm2022/src/template/pipeline/ir/src/operations.mjs +6 -5
- package/esm2022/src/template/pipeline/ir/src/ops/create.mjs +10 -1
- package/esm2022/src/template/pipeline/ir/src/ops/update.mjs +16 -1
- package/esm2022/src/template/pipeline/ir/src/traits.mjs +20 -2
- package/esm2022/src/template/pipeline/src/compilation.mjs +3 -2
- package/esm2022/src/template/pipeline/src/emit.mjs +11 -1
- package/esm2022/src/template/pipeline/src/ingest.mjs +43 -10
- package/esm2022/src/template/pipeline/src/instruction.mjs +111 -10
- package/esm2022/src/template/pipeline/src/phases/align_pipe_variadic_var_offset.mjs +41 -0
- package/esm2022/src/template/pipeline/src/phases/next_context_merging.mjs +4 -1
- package/esm2022/src/template/pipeline/src/phases/pipe_creation.mjs +57 -0
- package/esm2022/src/template/pipeline/src/phases/pipe_variadic.mjs +26 -0
- package/esm2022/src/template/pipeline/src/phases/pure_function_extraction.mjs +54 -0
- package/esm2022/src/template/pipeline/src/phases/pure_literal_structures.mjs +58 -0
- package/esm2022/src/template/pipeline/src/phases/reify.mjs +21 -1
- package/esm2022/src/template/pipeline/src/phases/slot_allocation.mjs +4 -1
- package/esm2022/src/template/pipeline/src/phases/var_counting.mjs +23 -3
- package/esm2022/src/template/pipeline/src/phases/variable_optimization.mjs +13 -1
- package/esm2022/src/version.mjs +1 -1
- package/fesm2022/compiler.mjs +746 -131
- package/fesm2022/compiler.mjs.map +1 -1
- package/fesm2022/testing.mjs +1 -1
- package/index.d.ts +11 -2
- 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.1.0-
|
|
2
|
+
* @license Angular v16.1.0-rc.0
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -698,9 +698,11 @@ export declare class ConstantPool {
|
|
|
698
698
|
statements: outputAst.Statement[];
|
|
699
699
|
private literals;
|
|
700
700
|
private literalFactories;
|
|
701
|
+
private sharedConstants;
|
|
701
702
|
private nextNameIndex;
|
|
702
703
|
constructor(isClosureCompilerEnabled?: boolean);
|
|
703
704
|
getConstLiteral(literal: outputAst.Expression, forceShared?: boolean): outputAst.Expression;
|
|
705
|
+
getSharedConstant(def: SharedConstantDefinition, expr: outputAst.Expression): outputAst.Expression;
|
|
704
706
|
getLiteralFactory(literal: outputAst.LiteralArrayExpr | outputAst.LiteralMapExpr): {
|
|
705
707
|
literalFactory: outputAst.Expression;
|
|
706
708
|
literalFactoryArguments: outputAst.Expression[];
|
|
@@ -715,7 +717,6 @@ export declare class ConstantPool {
|
|
|
715
717
|
*/
|
|
716
718
|
uniqueName(prefix: string): string;
|
|
717
719
|
private freshName;
|
|
718
|
-
private keyOf;
|
|
719
720
|
}
|
|
720
721
|
|
|
721
722
|
declare class Container implements Node_3 {
|
|
@@ -1136,6 +1137,10 @@ export declare class ExpressionBinding {
|
|
|
1136
1137
|
constructor(sourceSpan: AbsoluteSourceSpan, key: TemplateBindingIdentifier, value: ASTWithSource | null);
|
|
1137
1138
|
}
|
|
1138
1139
|
|
|
1140
|
+
declare interface ExpressionKeyFn {
|
|
1141
|
+
keyOf(expr: outputAst.Expression): string;
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1139
1144
|
export declare class ExpressionStatement extends Statement {
|
|
1140
1145
|
expr: Expression;
|
|
1141
1146
|
constructor(expr: Expression, sourceSpan?: ParseSourceSpan | null, leadingComments?: LeadingComment[]);
|
|
@@ -4188,6 +4193,10 @@ export declare abstract class Serializer {
|
|
|
4188
4193
|
createNameMapper(message: i18n.Message): PlaceholderMapper | null;
|
|
4189
4194
|
}
|
|
4190
4195
|
|
|
4196
|
+
declare interface SharedConstantDefinition extends ExpressionKeyFn {
|
|
4197
|
+
toSharedConstantDeclaration(declName: string, keyExpr: outputAst.Expression): outputAst.Statement;
|
|
4198
|
+
}
|
|
4199
|
+
|
|
4191
4200
|
|
|
4192
4201
|
export declare type SourceMap = {
|
|
4193
4202
|
version: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/compiler",
|
|
3
|
-
"version": "16.1.0-
|
|
3
|
+
"version": "16.1.0-rc.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": "16.1.0-
|
|
14
|
+
"@angular/core": "16.1.0-rc.0"
|
|
15
15
|
},
|
|
16
16
|
"peerDependenciesMeta": {
|
|
17
17
|
"@angular/core": {
|
package/testing/index.d.ts
CHANGED