@angular/core 16.2.0-next.2 → 16.2.0-next.3
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/errors.mjs +1 -1
- package/esm2022/src/render3/deps_tracker/api.mjs +1 -1
- package/esm2022/src/render3/deps_tracker/deps_tracker.mjs +216 -12
- package/esm2022/src/render3/jit/directive.mjs +2 -2
- package/esm2022/src/render3/jit/util.mjs +11 -2
- package/esm2022/src/util/global.mjs +2 -10
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/logger.mjs +3 -3
- package/esm2022/testing/src/test_hooks.mjs +3 -8
- package/fesm2022/core.mjs +12 -11
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/rxjs-interop.mjs +2 -10
- package/fesm2022/rxjs-interop.mjs.map +1 -1
- package/fesm2022/testing.mjs +28 -32
- package/fesm2022/testing.mjs.map +1 -1
- package/index.d.ts +3 -2
- package/package.json +1 -1
- package/rxjs-interop/index.d.ts +1 -1
- package/schematics/migrations/guard-and-resolve-interfaces/bundle.js +13 -13
- package/schematics/migrations/remove-module-id/bundle.js +14 -14
- package/schematics/ng-generate/standalone-migration/bundle.js +1466 -655
- package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
- package/testing/index.d.ts +1 -1
|
@@ -63,7 +63,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
63
63
|
});
|
|
64
64
|
};
|
|
65
65
|
|
|
66
|
-
// bazel-out/
|
|
66
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/index.mjs
|
|
67
67
|
var standalone_migration_exports = {};
|
|
68
68
|
__export(standalone_migration_exports, {
|
|
69
69
|
default: () => standalone_migration_default
|
|
@@ -71,10 +71,10 @@ __export(standalone_migration_exports, {
|
|
|
71
71
|
module.exports = __toCommonJS(standalone_migration_exports);
|
|
72
72
|
var import_schematics = require("@angular-devkit/schematics");
|
|
73
73
|
|
|
74
|
-
// bazel-out/
|
|
74
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/compiler_host.mjs
|
|
75
75
|
var import_typescript = __toESM(require("typescript"), 1);
|
|
76
76
|
|
|
77
|
-
// bazel-out/
|
|
77
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/invalid_file_system.mjs
|
|
78
78
|
var InvalidFileSystem = class {
|
|
79
79
|
exists(path3) {
|
|
80
80
|
throw makeError();
|
|
@@ -162,7 +162,7 @@ function makeError() {
|
|
|
162
162
|
return new Error("FileSystem has not been configured. Please call `setFileSystem()` before calling this method.");
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
-
// bazel-out/
|
|
165
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/util.mjs
|
|
166
166
|
var TS_DTS_JS_EXTENSION = /(?:\.d)?\.ts$|\.js$/;
|
|
167
167
|
function stripExtension(path3) {
|
|
168
168
|
return path3.replace(TS_DTS_JS_EXTENSION, "");
|
|
@@ -175,7 +175,7 @@ function getSourceFileOrError(program, fileName) {
|
|
|
175
175
|
return sf;
|
|
176
176
|
}
|
|
177
177
|
|
|
178
|
-
// bazel-out/
|
|
178
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/helpers.mjs
|
|
179
179
|
var fs = new InvalidFileSystem();
|
|
180
180
|
function getFileSystem() {
|
|
181
181
|
return fs;
|
|
@@ -219,7 +219,7 @@ function toRelativeImport(relativePath) {
|
|
|
219
219
|
return isLocalRelativePath(relativePath) ? `./${relativePath}` : relativePath;
|
|
220
220
|
}
|
|
221
221
|
|
|
222
|
-
// bazel-out/
|
|
222
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/logical.mjs
|
|
223
223
|
var LogicalProjectPath = {
|
|
224
224
|
relativePathBetween: function(from, to) {
|
|
225
225
|
const relativePath = relative(dirname(resolve(from)), resolve(to));
|
|
@@ -265,7 +265,7 @@ function isWithinBasePath(base, path3) {
|
|
|
265
265
|
return isLocalRelativePath(relative(base, path3));
|
|
266
266
|
}
|
|
267
267
|
|
|
268
|
-
// bazel-out/
|
|
268
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/node_js_file_system.mjs
|
|
269
269
|
var import_fs = __toESM(require("fs"), 1);
|
|
270
270
|
var import_module = __toESM(require("module"), 1);
|
|
271
271
|
var p = __toESM(require("path"), 1);
|
|
@@ -373,7 +373,7 @@ function toggleCase(str) {
|
|
|
373
373
|
return str.replace(/\w/g, (ch) => ch.toUpperCase() === ch ? ch.toLowerCase() : ch.toUpperCase());
|
|
374
374
|
}
|
|
375
375
|
|
|
376
|
-
// bazel-out/
|
|
376
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/selector.mjs
|
|
377
377
|
var _SELECTOR_REGEXP = new RegExp(
|
|
378
378
|
`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,
|
|
379
379
|
"g"
|
|
@@ -681,7 +681,7 @@ var SelectorContext = class {
|
|
|
681
681
|
}
|
|
682
682
|
};
|
|
683
683
|
|
|
684
|
-
// bazel-out/
|
|
684
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/core.mjs
|
|
685
685
|
var emitDistinctChangesOnlyDefaultValue = true;
|
|
686
686
|
var ViewEncapsulation;
|
|
687
687
|
(function(ViewEncapsulation2) {
|
|
@@ -744,7 +744,7 @@ function parseSelectorToR3Selector(selector) {
|
|
|
744
744
|
return selector ? CssSelector.parse(selector).map(parserSelectorToR3Selector) : [];
|
|
745
745
|
}
|
|
746
746
|
|
|
747
|
-
// bazel-out/
|
|
747
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/output_ast.mjs
|
|
748
748
|
var output_ast_exports = {};
|
|
749
749
|
__export(output_ast_exports, {
|
|
750
750
|
ArrayType: () => ArrayType,
|
|
@@ -758,6 +758,7 @@ __export(output_ast_exports, {
|
|
|
758
758
|
DYNAMIC_TYPE: () => DYNAMIC_TYPE,
|
|
759
759
|
DeclareFunctionStmt: () => DeclareFunctionStmt,
|
|
760
760
|
DeclareVarStmt: () => DeclareVarStmt,
|
|
761
|
+
DynamicImportExpr: () => DynamicImportExpr,
|
|
761
762
|
Expression: () => Expression,
|
|
762
763
|
ExpressionStatement: () => ExpressionStatement,
|
|
763
764
|
ExpressionType: () => ExpressionType,
|
|
@@ -829,7 +830,7 @@ __export(output_ast_exports, {
|
|
|
829
830
|
variable: () => variable
|
|
830
831
|
});
|
|
831
832
|
|
|
832
|
-
// bazel-out/
|
|
833
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/big_integer.mjs
|
|
833
834
|
var BigInteger = class {
|
|
834
835
|
static zero() {
|
|
835
836
|
return new BigInteger([0]);
|
|
@@ -921,7 +922,7 @@ var BigIntExponentiation = class {
|
|
|
921
922
|
}
|
|
922
923
|
};
|
|
923
924
|
|
|
924
|
-
// bazel-out/
|
|
925
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/digest.mjs
|
|
925
926
|
var textEncoder;
|
|
926
927
|
function digest(message) {
|
|
927
928
|
return message.id || computeDigest(message);
|
|
@@ -1184,7 +1185,7 @@ function wordsToDecimalString(hi, lo) {
|
|
|
1184
1185
|
return decimal.toString();
|
|
1185
1186
|
}
|
|
1186
1187
|
|
|
1187
|
-
// bazel-out/
|
|
1188
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/output_ast.mjs
|
|
1188
1189
|
var TypeModifier;
|
|
1189
1190
|
(function(TypeModifier2) {
|
|
1190
1191
|
TypeModifier2[TypeModifier2["None"] = 0] = "None";
|
|
@@ -1744,6 +1745,24 @@ var ConditionalExpr = class extends Expression {
|
|
|
1744
1745
|
return new ConditionalExpr(this.condition.clone(), this.trueCase.clone(), (_a2 = this.falseCase) == null ? void 0 : _a2.clone(), this.type, this.sourceSpan);
|
|
1745
1746
|
}
|
|
1746
1747
|
};
|
|
1748
|
+
var DynamicImportExpr = class extends Expression {
|
|
1749
|
+
constructor(url, sourceSpan) {
|
|
1750
|
+
super(null, sourceSpan);
|
|
1751
|
+
this.url = url;
|
|
1752
|
+
}
|
|
1753
|
+
isEquivalent(e) {
|
|
1754
|
+
return e instanceof DynamicImportExpr && this.url === e.url;
|
|
1755
|
+
}
|
|
1756
|
+
isConstant() {
|
|
1757
|
+
return false;
|
|
1758
|
+
}
|
|
1759
|
+
visitExpression(visitor, context) {
|
|
1760
|
+
return visitor.visitDynamicImportExpr(this, context);
|
|
1761
|
+
}
|
|
1762
|
+
clone() {
|
|
1763
|
+
return new DynamicImportExpr(this.url, this.sourceSpan);
|
|
1764
|
+
}
|
|
1765
|
+
};
|
|
1747
1766
|
var NotExpr = class extends Expression {
|
|
1748
1767
|
constructor(condition, sourceSpan) {
|
|
1749
1768
|
super(BOOL_TYPE, sourceSpan);
|
|
@@ -2121,6 +2140,9 @@ var RecursiveAstVisitor = class {
|
|
|
2121
2140
|
ast.value.visitExpression(this, context);
|
|
2122
2141
|
return this.visitExpression(ast, context);
|
|
2123
2142
|
}
|
|
2143
|
+
visitDynamicImportExpr(ast, context) {
|
|
2144
|
+
return this.visitExpression(ast, context);
|
|
2145
|
+
}
|
|
2124
2146
|
visitInvokeFunctionExpr(ast, context) {
|
|
2125
2147
|
ast.fn.visitExpression(this, context);
|
|
2126
2148
|
this.visitAllExpressions(ast.args, context);
|
|
@@ -2312,7 +2334,7 @@ function serializeTags(tags) {
|
|
|
2312
2334
|
return out;
|
|
2313
2335
|
}
|
|
2314
2336
|
|
|
2315
|
-
// bazel-out/
|
|
2337
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/constant_pool.mjs
|
|
2316
2338
|
var CONSTANT_PREFIX = "_c";
|
|
2317
2339
|
var UNKNOWN_VALUE_KEY = variable("<unknown>");
|
|
2318
2340
|
var KEY_CONTEXT = {};
|
|
@@ -2480,7 +2502,7 @@ function isLongStringLiteral(expr) {
|
|
|
2480
2502
|
return expr instanceof LiteralExpr && typeof expr.value === "string" && expr.value.length >= POOL_INCLUSION_LENGTH_THRESHOLD_FOR_STRINGS;
|
|
2481
2503
|
}
|
|
2482
2504
|
|
|
2483
|
-
// bazel-out/
|
|
2505
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_identifiers.mjs
|
|
2484
2506
|
var CORE = "@angular/core";
|
|
2485
2507
|
var _Identifiers = class {
|
|
2486
2508
|
};
|
|
@@ -3038,7 +3060,7 @@ var Identifiers = _Identifiers;
|
|
|
3038
3060
|
_Identifiers.validateIframeAttribute = { name: "\u0275\u0275validateIframeAttribute", moduleName: CORE };
|
|
3039
3061
|
})();
|
|
3040
3062
|
|
|
3041
|
-
// bazel-out/
|
|
3063
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/util.mjs
|
|
3042
3064
|
var DASH_CASE_REGEXP = /-+([a-z0-9])/g;
|
|
3043
3065
|
function dashCaseToCamelCase(input) {
|
|
3044
3066
|
return input.replace(DASH_CASE_REGEXP, (...m) => m[1].toUpperCase());
|
|
@@ -3116,7 +3138,7 @@ var Version = class {
|
|
|
3116
3138
|
this.patch = splits.slice(2).join(".");
|
|
3117
3139
|
}
|
|
3118
3140
|
};
|
|
3119
|
-
var _global =
|
|
3141
|
+
var _global = globalThis;
|
|
3120
3142
|
function partitionArray(arr, conditionFn) {
|
|
3121
3143
|
const truthy = [];
|
|
3122
3144
|
const falsy = [];
|
|
@@ -3126,7 +3148,7 @@ function partitionArray(arr, conditionFn) {
|
|
|
3126
3148
|
return [truthy, falsy];
|
|
3127
3149
|
}
|
|
3128
3150
|
|
|
3129
|
-
// bazel-out/
|
|
3151
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/source_map.mjs
|
|
3130
3152
|
var VERSION = 3;
|
|
3131
3153
|
var JS_B64_PREFIX = "# sourceMappingURL=data:application/json;base64,";
|
|
3132
3154
|
var SourceMapGenerator = class {
|
|
@@ -3255,7 +3277,7 @@ function toBase64Digit(value) {
|
|
|
3255
3277
|
return B64_DIGITS[value];
|
|
3256
3278
|
}
|
|
3257
3279
|
|
|
3258
|
-
// bazel-out/
|
|
3280
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/abstract_emitter.mjs
|
|
3259
3281
|
var _SINGLE_QUOTE_ESCAPE_STRING_RE = /'|\\|\n|\r|\$/g;
|
|
3260
3282
|
var _LEGAL_IDENTIFIER_RE = /^[$A-Z_][0-9A-Z_$]*$/i;
|
|
3261
3283
|
var _INDENT_WITH = " ";
|
|
@@ -3550,6 +3572,9 @@ var AbstractEmitterVisitor = class {
|
|
|
3550
3572
|
ctx.print(ast, `)`);
|
|
3551
3573
|
return null;
|
|
3552
3574
|
}
|
|
3575
|
+
visitDynamicImportExpr(ast, ctx) {
|
|
3576
|
+
ctx.print(ast, `import(${ast.url})`);
|
|
3577
|
+
}
|
|
3553
3578
|
visitNotExpr(ast, ctx) {
|
|
3554
3579
|
ctx.print(ast, "!");
|
|
3555
3580
|
ast.condition.visitExpression(this, ctx);
|
|
@@ -3730,7 +3755,7 @@ function _createIndent(count) {
|
|
|
3730
3755
|
return res;
|
|
3731
3756
|
}
|
|
3732
3757
|
|
|
3733
|
-
// bazel-out/
|
|
3758
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/util.mjs
|
|
3734
3759
|
function typeWithParameters(type, numParams) {
|
|
3735
3760
|
if (numParams === 0) {
|
|
3736
3761
|
return expressionType(type);
|
|
@@ -3798,7 +3823,7 @@ function generateForwardRef(expr) {
|
|
|
3798
3823
|
return importExpr(Identifiers.forwardRef).callFn([fn([], [new ReturnStatement(expr)])]);
|
|
3799
3824
|
}
|
|
3800
3825
|
|
|
3801
|
-
// bazel-out/
|
|
3826
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_factory.mjs
|
|
3802
3827
|
var R3FactoryDelegateType;
|
|
3803
3828
|
(function(R3FactoryDelegateType2) {
|
|
3804
3829
|
R3FactoryDelegateType2[R3FactoryDelegateType2["Class"] = 0] = "Class";
|
|
@@ -3943,7 +3968,7 @@ function getInjectFn(target) {
|
|
|
3943
3968
|
}
|
|
3944
3969
|
}
|
|
3945
3970
|
|
|
3946
|
-
// bazel-out/
|
|
3971
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_ast.mjs
|
|
3947
3972
|
var Comment = class {
|
|
3948
3973
|
constructor(value, sourceSpan) {
|
|
3949
3974
|
this.value = value;
|
|
@@ -4047,6 +4072,96 @@ var Element = class {
|
|
|
4047
4072
|
return visitor.visitElement(this);
|
|
4048
4073
|
}
|
|
4049
4074
|
};
|
|
4075
|
+
var DeferredTrigger = class {
|
|
4076
|
+
constructor(sourceSpan) {
|
|
4077
|
+
this.sourceSpan = sourceSpan;
|
|
4078
|
+
}
|
|
4079
|
+
visit(visitor) {
|
|
4080
|
+
return visitor.visitDeferredTrigger(this);
|
|
4081
|
+
}
|
|
4082
|
+
};
|
|
4083
|
+
var BoundDeferredTrigger = class extends DeferredTrigger {
|
|
4084
|
+
constructor(value, sourceSpan) {
|
|
4085
|
+
super(sourceSpan);
|
|
4086
|
+
this.value = value;
|
|
4087
|
+
}
|
|
4088
|
+
};
|
|
4089
|
+
var IdleDeferredTrigger = class extends DeferredTrigger {
|
|
4090
|
+
};
|
|
4091
|
+
var ImmediateDeferredTrigger = class extends DeferredTrigger {
|
|
4092
|
+
};
|
|
4093
|
+
var HoverDeferredTrigger = class extends DeferredTrigger {
|
|
4094
|
+
};
|
|
4095
|
+
var TimerDeferredTrigger = class extends DeferredTrigger {
|
|
4096
|
+
constructor(delay, sourceSpan) {
|
|
4097
|
+
super(sourceSpan);
|
|
4098
|
+
this.delay = delay;
|
|
4099
|
+
}
|
|
4100
|
+
};
|
|
4101
|
+
var InteractionDeferredTrigger = class extends DeferredTrigger {
|
|
4102
|
+
constructor(reference2, sourceSpan) {
|
|
4103
|
+
super(sourceSpan);
|
|
4104
|
+
this.reference = reference2;
|
|
4105
|
+
}
|
|
4106
|
+
};
|
|
4107
|
+
var ViewportDeferredTrigger = class extends DeferredTrigger {
|
|
4108
|
+
constructor(reference2, sourceSpan) {
|
|
4109
|
+
super(sourceSpan);
|
|
4110
|
+
this.reference = reference2;
|
|
4111
|
+
}
|
|
4112
|
+
};
|
|
4113
|
+
var DeferredBlockPlaceholder = class {
|
|
4114
|
+
constructor(children, minimumTime, sourceSpan, startSourceSpan, endSourceSpan) {
|
|
4115
|
+
this.children = children;
|
|
4116
|
+
this.minimumTime = minimumTime;
|
|
4117
|
+
this.sourceSpan = sourceSpan;
|
|
4118
|
+
this.startSourceSpan = startSourceSpan;
|
|
4119
|
+
this.endSourceSpan = endSourceSpan;
|
|
4120
|
+
}
|
|
4121
|
+
visit(visitor) {
|
|
4122
|
+
return visitor.visitDeferredBlockPlaceholder(this);
|
|
4123
|
+
}
|
|
4124
|
+
};
|
|
4125
|
+
var DeferredBlockLoading = class {
|
|
4126
|
+
constructor(children, afterTime, minimumTime, sourceSpan, startSourceSpan, endSourceSpan) {
|
|
4127
|
+
this.children = children;
|
|
4128
|
+
this.afterTime = afterTime;
|
|
4129
|
+
this.minimumTime = minimumTime;
|
|
4130
|
+
this.sourceSpan = sourceSpan;
|
|
4131
|
+
this.startSourceSpan = startSourceSpan;
|
|
4132
|
+
this.endSourceSpan = endSourceSpan;
|
|
4133
|
+
}
|
|
4134
|
+
visit(visitor) {
|
|
4135
|
+
return visitor.visitDeferredBlockLoading(this);
|
|
4136
|
+
}
|
|
4137
|
+
};
|
|
4138
|
+
var DeferredBlockError = class {
|
|
4139
|
+
constructor(children, sourceSpan, startSourceSpan, endSourceSpan) {
|
|
4140
|
+
this.children = children;
|
|
4141
|
+
this.sourceSpan = sourceSpan;
|
|
4142
|
+
this.startSourceSpan = startSourceSpan;
|
|
4143
|
+
this.endSourceSpan = endSourceSpan;
|
|
4144
|
+
}
|
|
4145
|
+
visit(visitor) {
|
|
4146
|
+
return visitor.visitDeferredBlockError(this);
|
|
4147
|
+
}
|
|
4148
|
+
};
|
|
4149
|
+
var DeferredBlock = class {
|
|
4150
|
+
constructor(children, triggers, prefetchTriggers, placeholder, loading, error2, sourceSpan, startSourceSpan, endSourceSpan) {
|
|
4151
|
+
this.children = children;
|
|
4152
|
+
this.triggers = triggers;
|
|
4153
|
+
this.prefetchTriggers = prefetchTriggers;
|
|
4154
|
+
this.placeholder = placeholder;
|
|
4155
|
+
this.loading = loading;
|
|
4156
|
+
this.error = error2;
|
|
4157
|
+
this.sourceSpan = sourceSpan;
|
|
4158
|
+
this.startSourceSpan = startSourceSpan;
|
|
4159
|
+
this.endSourceSpan = endSourceSpan;
|
|
4160
|
+
}
|
|
4161
|
+
visit(visitor) {
|
|
4162
|
+
return visitor.visitDeferredBlock(this);
|
|
4163
|
+
}
|
|
4164
|
+
};
|
|
4050
4165
|
var Template = class {
|
|
4051
4166
|
constructor(tagName, attributes, inputs, outputs, templateAttrs, children, references, variables, sourceSpan, startSourceSpan, endSourceSpan, i18n) {
|
|
4052
4167
|
this.tagName = tagName;
|
|
@@ -4129,6 +4244,24 @@ var RecursiveVisitor = class {
|
|
|
4129
4244
|
visitAll(this, template2.references);
|
|
4130
4245
|
visitAll(this, template2.variables);
|
|
4131
4246
|
}
|
|
4247
|
+
visitDeferredBlock(deferred) {
|
|
4248
|
+
var _a2, _b2, _c2;
|
|
4249
|
+
visitAll(this, deferred.triggers);
|
|
4250
|
+
visitAll(this, deferred.prefetchTriggers);
|
|
4251
|
+
visitAll(this, deferred.children);
|
|
4252
|
+
(_a2 = deferred.placeholder) == null ? void 0 : _a2.visit(this);
|
|
4253
|
+
(_b2 = deferred.loading) == null ? void 0 : _b2.visit(this);
|
|
4254
|
+
(_c2 = deferred.error) == null ? void 0 : _c2.visit(this);
|
|
4255
|
+
}
|
|
4256
|
+
visitDeferredBlockPlaceholder(block) {
|
|
4257
|
+
visitAll(this, block.children);
|
|
4258
|
+
}
|
|
4259
|
+
visitDeferredBlockError(block) {
|
|
4260
|
+
visitAll(this, block.children);
|
|
4261
|
+
}
|
|
4262
|
+
visitDeferredBlockLoading(block) {
|
|
4263
|
+
visitAll(this, block.children);
|
|
4264
|
+
}
|
|
4132
4265
|
visitContent(content) {
|
|
4133
4266
|
}
|
|
4134
4267
|
visitVariable(variable2) {
|
|
@@ -4147,6 +4280,8 @@ var RecursiveVisitor = class {
|
|
|
4147
4280
|
}
|
|
4148
4281
|
visitIcu(icu) {
|
|
4149
4282
|
}
|
|
4283
|
+
visitDeferredTrigger(trigger) {
|
|
4284
|
+
}
|
|
4150
4285
|
};
|
|
4151
4286
|
function visitAll(visitor, nodes) {
|
|
4152
4287
|
const result = [];
|
|
@@ -4165,7 +4300,7 @@ function visitAll(visitor, nodes) {
|
|
|
4165
4300
|
return result;
|
|
4166
4301
|
}
|
|
4167
4302
|
|
|
4168
|
-
// bazel-out/
|
|
4303
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/i18n_ast.mjs
|
|
4169
4304
|
var Message = class {
|
|
4170
4305
|
constructor(nodes, placeholders, placeholderToMessage, meaning, description, customId) {
|
|
4171
4306
|
this.nodes = nodes;
|
|
@@ -4328,7 +4463,7 @@ var LocalizeMessageStringVisitor = class {
|
|
|
4328
4463
|
}
|
|
4329
4464
|
};
|
|
4330
4465
|
|
|
4331
|
-
// bazel-out/
|
|
4466
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/serializer.mjs
|
|
4332
4467
|
var Serializer = class {
|
|
4333
4468
|
createNameMapper(message) {
|
|
4334
4469
|
return null;
|
|
@@ -4380,7 +4515,7 @@ var SimplePlaceholderMapper = class extends RecurseVisitor {
|
|
|
4380
4515
|
}
|
|
4381
4516
|
};
|
|
4382
4517
|
|
|
4383
|
-
// bazel-out/
|
|
4518
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/xml_helper.mjs
|
|
4384
4519
|
var _Visitor = class {
|
|
4385
4520
|
visitTag(tag) {
|
|
4386
4521
|
const strAttrs = this._serializeAttributes(tag.attrs);
|
|
@@ -4468,7 +4603,7 @@ function escapeXml(text2) {
|
|
|
4468
4603
|
return _ESCAPED_CHARS.reduce((text3, entry) => text3.replace(entry[0], entry[1]), text2);
|
|
4469
4604
|
}
|
|
4470
4605
|
|
|
4471
|
-
// bazel-out/
|
|
4606
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/xmb.mjs
|
|
4472
4607
|
var _MESSAGES_TAG = "messagebundle";
|
|
4473
4608
|
var _MESSAGE_TAG = "msg";
|
|
4474
4609
|
var _PLACEHOLDER_TAG = "ph";
|
|
@@ -4611,7 +4746,7 @@ function toPublicName(internalName) {
|
|
|
4611
4746
|
return internalName.toUpperCase().replace(/[^A-Z0-9_]/g, "_");
|
|
4612
4747
|
}
|
|
4613
4748
|
|
|
4614
|
-
// bazel-out/
|
|
4749
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/util.mjs
|
|
4615
4750
|
var CLOSURE_TRANSLATION_VAR_PREFIX = "MSG_";
|
|
4616
4751
|
var TRANSLATION_VAR_PREFIX = "i18n_";
|
|
4617
4752
|
var I18N_ATTR = "i18n";
|
|
@@ -4713,7 +4848,7 @@ function declareI18nVariable(variable2) {
|
|
|
4713
4848
|
return new DeclareVarStmt(variable2.name, void 0, INFERRED_TYPE, void 0, variable2.sourceSpan);
|
|
4714
4849
|
}
|
|
4715
4850
|
|
|
4716
|
-
// bazel-out/
|
|
4851
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/util.mjs
|
|
4717
4852
|
var UNSAFE_OBJECT_KEY_NAME_REGEXP = /[-.]/;
|
|
4718
4853
|
var TEMPORARY_NAME = "_t";
|
|
4719
4854
|
var CONTEXT_NAME = "ctx";
|
|
@@ -4929,7 +5064,7 @@ function getInstructionStatements(instructions) {
|
|
|
4929
5064
|
return statements;
|
|
4930
5065
|
}
|
|
4931
5066
|
|
|
4932
|
-
// bazel-out/
|
|
5067
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/injectable_compiler_2.mjs
|
|
4933
5068
|
function compileInjectable(meta, resolveForwardRefs) {
|
|
4934
5069
|
let result = null;
|
|
4935
5070
|
const factoryMeta = {
|
|
@@ -5017,7 +5152,7 @@ function createFactoryFunction(type) {
|
|
|
5017
5152
|
return fn([new FnParam("t", DYNAMIC_TYPE)], [new ReturnStatement(type.prop("\u0275fac").callFn([variable("t")]))]);
|
|
5018
5153
|
}
|
|
5019
5154
|
|
|
5020
|
-
// bazel-out/
|
|
5155
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/assertions.mjs
|
|
5021
5156
|
var UNUSABLE_INTERPOLATION_REGEXPS = [
|
|
5022
5157
|
/^\s*$/,
|
|
5023
5158
|
/[<>]/,
|
|
@@ -5039,7 +5174,7 @@ function assertInterpolationSymbols(identifier, value) {
|
|
|
5039
5174
|
}
|
|
5040
5175
|
}
|
|
5041
5176
|
|
|
5042
|
-
// bazel-out/
|
|
5177
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/interpolation_config.mjs
|
|
5043
5178
|
var InterpolationConfig = class {
|
|
5044
5179
|
static fromArray(markers) {
|
|
5045
5180
|
if (!markers) {
|
|
@@ -5055,7 +5190,7 @@ var InterpolationConfig = class {
|
|
|
5055
5190
|
};
|
|
5056
5191
|
var DEFAULT_INTERPOLATION_CONFIG = new InterpolationConfig("{{", "}}");
|
|
5057
5192
|
|
|
5058
|
-
// bazel-out/
|
|
5193
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/chars.mjs
|
|
5059
5194
|
var $EOF = 0;
|
|
5060
5195
|
var $BSPACE = 8;
|
|
5061
5196
|
var $TAB = 9;
|
|
@@ -5136,7 +5271,7 @@ function isQuote(code) {
|
|
|
5136
5271
|
return code === $SQ || code === $DQ || code === $BT;
|
|
5137
5272
|
}
|
|
5138
5273
|
|
|
5139
|
-
// bazel-out/
|
|
5274
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/parse_util.mjs
|
|
5140
5275
|
var ParseLocation = class {
|
|
5141
5276
|
constructor(file, offset, line, col) {
|
|
5142
5277
|
this.file = file;
|
|
@@ -5283,7 +5418,7 @@ function sanitizeIdentifier(name) {
|
|
|
5283
5418
|
return name.replace(/\W/g, "_");
|
|
5284
5419
|
}
|
|
5285
5420
|
|
|
5286
|
-
// bazel-out/
|
|
5421
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/abstract_js_emitter.mjs
|
|
5287
5422
|
var makeTemplateObjectPolyfill = '(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})';
|
|
5288
5423
|
var AbstractJsEmitterVisitor = class extends AbstractEmitterVisitor {
|
|
5289
5424
|
constructor() {
|
|
@@ -5354,7 +5489,7 @@ var AbstractJsEmitterVisitor = class extends AbstractEmitterVisitor {
|
|
|
5354
5489
|
}
|
|
5355
5490
|
};
|
|
5356
5491
|
|
|
5357
|
-
// bazel-out/
|
|
5492
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/output_jit_trusted_types.mjs
|
|
5358
5493
|
var policy;
|
|
5359
5494
|
function getPolicy() {
|
|
5360
5495
|
if (policy === void 0) {
|
|
@@ -5391,7 +5526,7 @@ function newTrustedFunctionForJIT(...args) {
|
|
|
5391
5526
|
return fn2.bind(_global);
|
|
5392
5527
|
}
|
|
5393
5528
|
|
|
5394
|
-
// bazel-out/
|
|
5529
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/output_jit.mjs
|
|
5395
5530
|
var JitEvaluator = class {
|
|
5396
5531
|
evaluateStatements(sourceUrl, statements, refResolver, createSourceMaps) {
|
|
5397
5532
|
const converter = new JitEmitterVisitor(refResolver);
|
|
@@ -5482,7 +5617,7 @@ function isUseStrictStatement(statement) {
|
|
|
5482
5617
|
return statement.isEquivalent(literal("use strict").toStmt());
|
|
5483
5618
|
}
|
|
5484
5619
|
|
|
5485
|
-
// bazel-out/
|
|
5620
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_injector_compiler.mjs
|
|
5486
5621
|
function compileInjector(meta) {
|
|
5487
5622
|
const definitionMap = new DefinitionMap();
|
|
5488
5623
|
if (meta.providers !== null) {
|
|
@@ -5499,7 +5634,7 @@ function createInjectorType(meta) {
|
|
|
5499
5634
|
return new ExpressionType(importExpr(Identifiers.InjectorDeclaration, [new ExpressionType(meta.type.type)]));
|
|
5500
5635
|
}
|
|
5501
5636
|
|
|
5502
|
-
// bazel-out/
|
|
5637
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_jit.mjs
|
|
5503
5638
|
var R3JitReflector = class {
|
|
5504
5639
|
constructor(context) {
|
|
5505
5640
|
this.context = context;
|
|
@@ -5515,7 +5650,7 @@ var R3JitReflector = class {
|
|
|
5515
5650
|
}
|
|
5516
5651
|
};
|
|
5517
5652
|
|
|
5518
|
-
// bazel-out/
|
|
5653
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_module_compiler.mjs
|
|
5519
5654
|
var R3SelectorScopeMode;
|
|
5520
5655
|
(function(R3SelectorScopeMode2) {
|
|
5521
5656
|
R3SelectorScopeMode2[R3SelectorScopeMode2["Inline"] = 0] = "Inline";
|
|
@@ -5659,7 +5794,7 @@ function tupleOfTypes(types) {
|
|
|
5659
5794
|
return types.length > 0 ? expressionType(literalArr(typeofTypes)) : NONE_TYPE;
|
|
5660
5795
|
}
|
|
5661
5796
|
|
|
5662
|
-
// bazel-out/
|
|
5797
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_pipe_compiler.mjs
|
|
5663
5798
|
function compilePipeFromMetadata(metadata) {
|
|
5664
5799
|
const definitionMapValues = [];
|
|
5665
5800
|
definitionMapValues.push({ key: "name", value: literal(metadata.pipeName), quoted: false });
|
|
@@ -5680,7 +5815,7 @@ function createPipeType(metadata) {
|
|
|
5680
5815
|
]));
|
|
5681
5816
|
}
|
|
5682
5817
|
|
|
5683
|
-
// bazel-out/
|
|
5818
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/api.mjs
|
|
5684
5819
|
var R3TemplateDependencyKind;
|
|
5685
5820
|
(function(R3TemplateDependencyKind2) {
|
|
5686
5821
|
R3TemplateDependencyKind2[R3TemplateDependencyKind2["Directive"] = 0] = "Directive";
|
|
@@ -5688,7 +5823,7 @@ var R3TemplateDependencyKind;
|
|
|
5688
5823
|
R3TemplateDependencyKind2[R3TemplateDependencyKind2["NgModule"] = 2] = "NgModule";
|
|
5689
5824
|
})(R3TemplateDependencyKind || (R3TemplateDependencyKind = {}));
|
|
5690
5825
|
|
|
5691
|
-
// bazel-out/
|
|
5826
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/expression_parser/ast.mjs
|
|
5692
5827
|
var ParserError = class {
|
|
5693
5828
|
constructor(message, input, errLocation, ctxLocation) {
|
|
5694
5829
|
this.input = input;
|
|
@@ -6354,7 +6489,7 @@ var BoundElementProperty = class {
|
|
|
6354
6489
|
}
|
|
6355
6490
|
};
|
|
6356
6491
|
|
|
6357
|
-
// bazel-out/
|
|
6492
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/compiler_util/expression_converter.mjs
|
|
6358
6493
|
var _EventHandlerVars = class {
|
|
6359
6494
|
};
|
|
6360
6495
|
var EventHandlerVars = _EventHandlerVars;
|
|
@@ -6976,7 +7111,7 @@ var BuiltinFunctionCall = class extends Call {
|
|
|
6976
7111
|
}
|
|
6977
7112
|
};
|
|
6978
7113
|
|
|
6979
|
-
// bazel-out/
|
|
7114
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/schema/dom_security_schema.mjs
|
|
6980
7115
|
var _SECURITY_SCHEMA;
|
|
6981
7116
|
function SECURITY_SCHEMA() {
|
|
6982
7117
|
if (!_SECURITY_SCHEMA) {
|
|
@@ -7034,7 +7169,7 @@ function isIframeSecuritySensitiveAttr(attrName) {
|
|
|
7034
7169
|
return IFRAME_SECURITY_SENSITIVE_ATTRS.has(attrName.toLowerCase());
|
|
7035
7170
|
}
|
|
7036
7171
|
|
|
7037
|
-
// bazel-out/
|
|
7172
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/shadow_css.mjs
|
|
7038
7173
|
var animationKeywords = /* @__PURE__ */ new Set([
|
|
7039
7174
|
"inherit",
|
|
7040
7175
|
"initial",
|
|
@@ -7501,7 +7636,7 @@ function repeatGroups(groups, multiples) {
|
|
|
7501
7636
|
}
|
|
7502
7637
|
}
|
|
7503
7638
|
|
|
7504
|
-
// bazel-out/
|
|
7639
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/tags.mjs
|
|
7505
7640
|
var TagContentType;
|
|
7506
7641
|
(function(TagContentType2) {
|
|
7507
7642
|
TagContentType2[TagContentType2["RAW_TEXT"] = 0] = "RAW_TEXT";
|
|
@@ -7534,7 +7669,7 @@ function mergeNsAndName(prefix, localName) {
|
|
|
7534
7669
|
return prefix ? `:${prefix}:${localName}` : localName;
|
|
7535
7670
|
}
|
|
7536
7671
|
|
|
7537
|
-
// bazel-out/
|
|
7672
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/element.mjs
|
|
7538
7673
|
var ElementAttributeKind;
|
|
7539
7674
|
(function(ElementAttributeKind2) {
|
|
7540
7675
|
ElementAttributeKind2[ElementAttributeKind2["Attribute"] = 0] = "Attribute";
|
|
@@ -7614,7 +7749,7 @@ function assertIsElementAttributes(attrs) {
|
|
|
7614
7749
|
}
|
|
7615
7750
|
}
|
|
7616
7751
|
|
|
7617
|
-
// bazel-out/
|
|
7752
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/enums.mjs
|
|
7618
7753
|
var OpKind;
|
|
7619
7754
|
(function(OpKind2) {
|
|
7620
7755
|
OpKind2[OpKind2["ListEnd"] = 0] = "ListEnd";
|
|
@@ -7632,14 +7767,17 @@ var OpKind;
|
|
|
7632
7767
|
OpKind2[OpKind2["InterpolateText"] = 12] = "InterpolateText";
|
|
7633
7768
|
OpKind2[OpKind2["Property"] = 13] = "Property";
|
|
7634
7769
|
OpKind2[OpKind2["StyleProp"] = 14] = "StyleProp";
|
|
7635
|
-
OpKind2[OpKind2["
|
|
7636
|
-
OpKind2[OpKind2["
|
|
7637
|
-
OpKind2[OpKind2["
|
|
7638
|
-
OpKind2[OpKind2["
|
|
7639
|
-
OpKind2[OpKind2["
|
|
7640
|
-
OpKind2[OpKind2["
|
|
7641
|
-
OpKind2[OpKind2["
|
|
7642
|
-
OpKind2[OpKind2["
|
|
7770
|
+
OpKind2[OpKind2["ClassProp"] = 15] = "ClassProp";
|
|
7771
|
+
OpKind2[OpKind2["StyleMap"] = 16] = "StyleMap";
|
|
7772
|
+
OpKind2[OpKind2["ClassMap"] = 17] = "ClassMap";
|
|
7773
|
+
OpKind2[OpKind2["InterpolateProperty"] = 18] = "InterpolateProperty";
|
|
7774
|
+
OpKind2[OpKind2["InterpolateStyleProp"] = 19] = "InterpolateStyleProp";
|
|
7775
|
+
OpKind2[OpKind2["InterpolateStyleMap"] = 20] = "InterpolateStyleMap";
|
|
7776
|
+
OpKind2[OpKind2["InterpolateClassMap"] = 21] = "InterpolateClassMap";
|
|
7777
|
+
OpKind2[OpKind2["Advance"] = 22] = "Advance";
|
|
7778
|
+
OpKind2[OpKind2["Pipe"] = 23] = "Pipe";
|
|
7779
|
+
OpKind2[OpKind2["Attribute"] = 24] = "Attribute";
|
|
7780
|
+
OpKind2[OpKind2["InterpolateAttribute"] = 25] = "InterpolateAttribute";
|
|
7643
7781
|
})(OpKind || (OpKind = {}));
|
|
7644
7782
|
var ExpressionKind;
|
|
7645
7783
|
(function(ExpressionKind2) {
|
|
@@ -7670,7 +7808,7 @@ var SemanticVariableKind;
|
|
|
7670
7808
|
SemanticVariableKind2[SemanticVariableKind2["SavedView"] = 2] = "SavedView";
|
|
7671
7809
|
})(SemanticVariableKind || (SemanticVariableKind = {}));
|
|
7672
7810
|
|
|
7673
|
-
// bazel-out/
|
|
7811
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/traits.mjs
|
|
7674
7812
|
var ConsumesSlot = Symbol("ConsumesSlot");
|
|
7675
7813
|
var DependsOnSlotContext = Symbol("DependsOnSlotContext");
|
|
7676
7814
|
var UsesSlotIndex = Symbol("UsesSlotIndex");
|
|
@@ -7711,7 +7849,7 @@ function hasUsesSlotIndexTrait(value) {
|
|
|
7711
7849
|
return value[UsesSlotIndex] === true;
|
|
7712
7850
|
}
|
|
7713
7851
|
|
|
7714
|
-
// bazel-out/
|
|
7852
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/expression.mjs
|
|
7715
7853
|
var _a;
|
|
7716
7854
|
var _b;
|
|
7717
7855
|
var _c;
|
|
@@ -8252,11 +8390,14 @@ function transformExpressionsInOp(op, transform, flags) {
|
|
|
8252
8390
|
case OpKind.Property:
|
|
8253
8391
|
case OpKind.StyleProp:
|
|
8254
8392
|
case OpKind.StyleMap:
|
|
8393
|
+
case OpKind.ClassProp:
|
|
8394
|
+
case OpKind.ClassMap:
|
|
8255
8395
|
op.expression = transformExpressionsInExpression(op.expression, transform, flags);
|
|
8256
8396
|
break;
|
|
8257
8397
|
case OpKind.InterpolateProperty:
|
|
8258
8398
|
case OpKind.InterpolateStyleProp:
|
|
8259
8399
|
case OpKind.InterpolateStyleMap:
|
|
8400
|
+
case OpKind.InterpolateClassMap:
|
|
8260
8401
|
case OpKind.InterpolateText:
|
|
8261
8402
|
for (let i = 0; i < op.expressions.length; i++) {
|
|
8262
8403
|
op.expressions[i] = transformExpressionsInExpression(op.expressions[i], transform, flags);
|
|
@@ -8355,7 +8496,7 @@ function transformExpressionsInStatement(stmt, transform, flags) {
|
|
|
8355
8496
|
}
|
|
8356
8497
|
}
|
|
8357
8498
|
|
|
8358
|
-
// bazel-out/
|
|
8499
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/operations.mjs
|
|
8359
8500
|
var _OpList = class {
|
|
8360
8501
|
constructor() {
|
|
8361
8502
|
this.debugListId = _OpList.nextListId++;
|
|
@@ -8521,7 +8662,7 @@ var OpList = _OpList;
|
|
|
8521
8662
|
_OpList.nextListId = 0;
|
|
8522
8663
|
})();
|
|
8523
8664
|
|
|
8524
|
-
// bazel-out/
|
|
8665
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/shared.mjs
|
|
8525
8666
|
function createStatementOp(statement) {
|
|
8526
8667
|
return __spreadValues({
|
|
8527
8668
|
kind: OpKind.Statement,
|
|
@@ -8542,7 +8683,7 @@ var NEW_OP = {
|
|
|
8542
8683
|
next: null
|
|
8543
8684
|
};
|
|
8544
8685
|
|
|
8545
|
-
// bazel-out/
|
|
8686
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/create.mjs
|
|
8546
8687
|
var elementContainerOpKinds = /* @__PURE__ */ new Set([
|
|
8547
8688
|
OpKind.Element,
|
|
8548
8689
|
OpKind.ElementStart,
|
|
@@ -8604,7 +8745,7 @@ function createPipeOp(xref, name) {
|
|
|
8604
8745
|
}, NEW_OP), TRAIT_CONSUMES_SLOT);
|
|
8605
8746
|
}
|
|
8606
8747
|
|
|
8607
|
-
// bazel-out/
|
|
8748
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/update.mjs
|
|
8608
8749
|
function createInterpolateTextOp(xref, strings, expressions) {
|
|
8609
8750
|
return __spreadValues(__spreadValues(__spreadValues({
|
|
8610
8751
|
kind: OpKind.InterpolateText,
|
|
@@ -8631,6 +8772,14 @@ function createStylePropOp(xref, name, expression, unit) {
|
|
|
8631
8772
|
unit
|
|
8632
8773
|
}, TRAIT_DEPENDS_ON_SLOT_CONTEXT), TRAIT_CONSUMES_VARS), NEW_OP);
|
|
8633
8774
|
}
|
|
8775
|
+
function createClassPropOp(xref, name, expression) {
|
|
8776
|
+
return __spreadValues(__spreadValues(__spreadValues({
|
|
8777
|
+
kind: OpKind.ClassProp,
|
|
8778
|
+
target: xref,
|
|
8779
|
+
name,
|
|
8780
|
+
expression
|
|
8781
|
+
}, TRAIT_DEPENDS_ON_SLOT_CONTEXT), TRAIT_CONSUMES_VARS), NEW_OP);
|
|
8782
|
+
}
|
|
8634
8783
|
function createStyleMapOp(xref, expression) {
|
|
8635
8784
|
return __spreadValues(__spreadValues(__spreadValues({
|
|
8636
8785
|
kind: OpKind.StyleMap,
|
|
@@ -8638,6 +8787,13 @@ function createStyleMapOp(xref, expression) {
|
|
|
8638
8787
|
expression
|
|
8639
8788
|
}, TRAIT_DEPENDS_ON_SLOT_CONTEXT), TRAIT_CONSUMES_VARS), NEW_OP);
|
|
8640
8789
|
}
|
|
8790
|
+
function createClassMapOp(xref, expression) {
|
|
8791
|
+
return __spreadValues(__spreadValues(__spreadValues({
|
|
8792
|
+
kind: OpKind.ClassMap,
|
|
8793
|
+
target: xref,
|
|
8794
|
+
expression
|
|
8795
|
+
}, TRAIT_DEPENDS_ON_SLOT_CONTEXT), TRAIT_CONSUMES_VARS), NEW_OP);
|
|
8796
|
+
}
|
|
8641
8797
|
function createAttributeOp(target, attributeKind, name, value) {
|
|
8642
8798
|
return __spreadValues(__spreadValues(__spreadValues({
|
|
8643
8799
|
kind: OpKind.Attribute,
|
|
@@ -8685,6 +8841,14 @@ function createInterpolateStyleMapOp(xref, strings, expressions) {
|
|
|
8685
8841
|
expressions
|
|
8686
8842
|
}, TRAIT_DEPENDS_ON_SLOT_CONTEXT), TRAIT_CONSUMES_VARS), NEW_OP);
|
|
8687
8843
|
}
|
|
8844
|
+
function createInterpolateClassMapOp(xref, strings, expressions) {
|
|
8845
|
+
return __spreadValues(__spreadValues(__spreadValues({
|
|
8846
|
+
kind: OpKind.InterpolateClassMap,
|
|
8847
|
+
target: xref,
|
|
8848
|
+
strings,
|
|
8849
|
+
expressions
|
|
8850
|
+
}, TRAIT_DEPENDS_ON_SLOT_CONTEXT), TRAIT_CONSUMES_VARS), NEW_OP);
|
|
8851
|
+
}
|
|
8688
8852
|
function createAdvanceOp(delta) {
|
|
8689
8853
|
return __spreadValues({
|
|
8690
8854
|
kind: OpKind.Advance,
|
|
@@ -8692,7 +8856,7 @@ function createAdvanceOp(delta) {
|
|
|
8692
8856
|
}, NEW_OP);
|
|
8693
8857
|
}
|
|
8694
8858
|
|
|
8695
|
-
// bazel-out/
|
|
8859
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/var_counting.mjs
|
|
8696
8860
|
function phaseVarCounting(cpl) {
|
|
8697
8861
|
for (const [_, view] of cpl.views) {
|
|
8698
8862
|
let varCount = 0;
|
|
@@ -8727,19 +8891,23 @@ function phaseVarCounting(cpl) {
|
|
|
8727
8891
|
function varsUsedByOp(op) {
|
|
8728
8892
|
switch (op.kind) {
|
|
8729
8893
|
case OpKind.Property:
|
|
8730
|
-
case OpKind.StyleProp:
|
|
8731
|
-
case OpKind.StyleMap:
|
|
8732
|
-
return 1;
|
|
8733
8894
|
case OpKind.Attribute:
|
|
8734
8895
|
return 1;
|
|
8896
|
+
case OpKind.StyleProp:
|
|
8897
|
+
case OpKind.ClassProp:
|
|
8898
|
+
case OpKind.StyleMap:
|
|
8899
|
+
case OpKind.ClassMap:
|
|
8900
|
+
return 2;
|
|
8735
8901
|
case OpKind.InterpolateText:
|
|
8736
8902
|
return op.expressions.length;
|
|
8737
8903
|
case OpKind.InterpolateProperty:
|
|
8738
|
-
case OpKind.InterpolateStyleProp:
|
|
8739
|
-
case OpKind.InterpolateStyleMap:
|
|
8740
8904
|
return 1 + op.expressions.length;
|
|
8741
8905
|
case OpKind.InterpolateAttribute:
|
|
8742
8906
|
return 1 + op.expressions.length;
|
|
8907
|
+
case OpKind.InterpolateStyleProp:
|
|
8908
|
+
case OpKind.InterpolateStyleMap:
|
|
8909
|
+
case OpKind.InterpolateClassMap:
|
|
8910
|
+
return 2 + op.expressions.length;
|
|
8743
8911
|
default:
|
|
8744
8912
|
throw new Error(`Unhandled op: ${OpKind[op.kind]}`);
|
|
8745
8913
|
}
|
|
@@ -8757,7 +8925,7 @@ function varsUsedByIrExpression(expr) {
|
|
|
8757
8925
|
}
|
|
8758
8926
|
}
|
|
8759
8927
|
|
|
8760
|
-
// bazel-out/
|
|
8928
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/align_pipe_variadic_var_offset.mjs
|
|
8761
8929
|
function phaseAlignPipeVariadicVarOffset(cpl) {
|
|
8762
8930
|
for (const view of cpl.views.values()) {
|
|
8763
8931
|
for (const op of view.update) {
|
|
@@ -8778,7 +8946,7 @@ function phaseAlignPipeVariadicVarOffset(cpl) {
|
|
|
8778
8946
|
}
|
|
8779
8947
|
}
|
|
8780
8948
|
|
|
8781
|
-
// bazel-out/
|
|
8949
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/attribute_extraction.mjs
|
|
8782
8950
|
function phaseAttributeExtraction(cpl, compatibility) {
|
|
8783
8951
|
for (const [_, view] of cpl.views) {
|
|
8784
8952
|
populateElementAttributes(view, compatibility);
|
|
@@ -8830,6 +8998,7 @@ function populateElementAttributes(view, compatibility) {
|
|
|
8830
8998
|
ownerOp.attributes.add(op.bindingKind, op.name, null);
|
|
8831
8999
|
break;
|
|
8832
9000
|
case OpKind.StyleProp:
|
|
9001
|
+
case OpKind.ClassProp:
|
|
8833
9002
|
ownerOp = lookupElement(elements, op.target);
|
|
8834
9003
|
assertIsElementAttributes(ownerOp.attributes);
|
|
8835
9004
|
if (removeIfExpressionIsEmpty(op, op.expression) && compatibility) {
|
|
@@ -8848,13 +9017,23 @@ function populateElementAttributes(view, compatibility) {
|
|
|
8848
9017
|
}
|
|
8849
9018
|
}
|
|
8850
9019
|
|
|
8851
|
-
// bazel-out/
|
|
9020
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/chaining.mjs
|
|
8852
9021
|
var CHAINABLE = /* @__PURE__ */ new Set([
|
|
8853
9022
|
Identifiers.elementStart,
|
|
8854
9023
|
Identifiers.elementEnd,
|
|
8855
9024
|
Identifiers.property,
|
|
8856
9025
|
Identifiers.styleProp,
|
|
8857
9026
|
Identifiers.attribute,
|
|
9027
|
+
Identifiers.stylePropInterpolate1,
|
|
9028
|
+
Identifiers.stylePropInterpolate2,
|
|
9029
|
+
Identifiers.stylePropInterpolate3,
|
|
9030
|
+
Identifiers.stylePropInterpolate4,
|
|
9031
|
+
Identifiers.stylePropInterpolate5,
|
|
9032
|
+
Identifiers.stylePropInterpolate6,
|
|
9033
|
+
Identifiers.stylePropInterpolate7,
|
|
9034
|
+
Identifiers.stylePropInterpolate8,
|
|
9035
|
+
Identifiers.stylePropInterpolateV,
|
|
9036
|
+
Identifiers.classProp,
|
|
8858
9037
|
Identifiers.elementContainerStart,
|
|
8859
9038
|
Identifiers.elementContainerEnd,
|
|
8860
9039
|
Identifiers.elementContainer
|
|
@@ -8896,7 +9075,7 @@ function chainOperationsInList(opList) {
|
|
|
8896
9075
|
}
|
|
8897
9076
|
}
|
|
8898
9077
|
|
|
8899
|
-
// bazel-out/
|
|
9078
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/const_collection.mjs
|
|
8900
9079
|
function phaseConstCollection(cpl) {
|
|
8901
9080
|
for (const [_, view] of cpl.views) {
|
|
8902
9081
|
for (const op of view.create) {
|
|
@@ -8937,7 +9116,7 @@ function serializeAttributes({ attributes, bindings, classes, i18n, projectAs, s
|
|
|
8937
9116
|
return literalArr(attrArray);
|
|
8938
9117
|
}
|
|
8939
9118
|
|
|
8940
|
-
// bazel-out/
|
|
9119
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/empty_elements.mjs
|
|
8941
9120
|
var REPLACEMENTS = /* @__PURE__ */ new Map([
|
|
8942
9121
|
[OpKind.ElementEnd, [OpKind.ElementStart, OpKind.Element]],
|
|
8943
9122
|
[OpKind.ContainerEnd, [OpKind.ContainerStart, OpKind.Container]]
|
|
@@ -8958,7 +9137,139 @@ function phaseEmptyElements(cpl) {
|
|
|
8958
9137
|
}
|
|
8959
9138
|
}
|
|
8960
9139
|
|
|
8961
|
-
// bazel-out/
|
|
9140
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/expand_safe_reads.mjs
|
|
9141
|
+
function phaseExpandSafeReads(cpl, compatibility) {
|
|
9142
|
+
for (const [_, view] of cpl.views) {
|
|
9143
|
+
for (const op of view.ops()) {
|
|
9144
|
+
transformExpressionsInOp(op, (e) => safeTransform(e, { cpl, compatibility }), VisitorContextFlag.None);
|
|
9145
|
+
transformExpressionsInOp(op, ternaryTransform, VisitorContextFlag.None);
|
|
9146
|
+
}
|
|
9147
|
+
}
|
|
9148
|
+
}
|
|
9149
|
+
var requiresTemporary = [
|
|
9150
|
+
InvokeFunctionExpr,
|
|
9151
|
+
LiteralArrayExpr,
|
|
9152
|
+
LiteralMapExpr,
|
|
9153
|
+
SafeInvokeFunctionExpr,
|
|
9154
|
+
PipeBindingExpr
|
|
9155
|
+
].map((e) => e.constructor.name);
|
|
9156
|
+
function needsTemporaryInSafeAccess(e) {
|
|
9157
|
+
if (e instanceof UnaryOperatorExpr) {
|
|
9158
|
+
return needsTemporaryInSafeAccess(e.expr);
|
|
9159
|
+
} else if (e instanceof BinaryOperatorExpr) {
|
|
9160
|
+
return needsTemporaryInSafeAccess(e.lhs) || needsTemporaryInSafeAccess(e.rhs);
|
|
9161
|
+
} else if (e instanceof ConditionalExpr) {
|
|
9162
|
+
if (e.falseCase && needsTemporaryInSafeAccess(e.falseCase))
|
|
9163
|
+
return true;
|
|
9164
|
+
return needsTemporaryInSafeAccess(e.condition) || needsTemporaryInSafeAccess(e.trueCase);
|
|
9165
|
+
} else if (e instanceof NotExpr) {
|
|
9166
|
+
return needsTemporaryInSafeAccess(e.condition);
|
|
9167
|
+
} else if (e instanceof AssignTemporaryExpr) {
|
|
9168
|
+
return needsTemporaryInSafeAccess(e.expr);
|
|
9169
|
+
} else if (e instanceof ReadPropExpr) {
|
|
9170
|
+
return needsTemporaryInSafeAccess(e.receiver);
|
|
9171
|
+
} else if (e instanceof ReadKeyExpr) {
|
|
9172
|
+
return needsTemporaryInSafeAccess(e.receiver) || needsTemporaryInSafeAccess(e.index);
|
|
9173
|
+
}
|
|
9174
|
+
return e instanceof InvokeFunctionExpr || e instanceof LiteralArrayExpr || e instanceof LiteralMapExpr || e instanceof SafeInvokeFunctionExpr || e instanceof PipeBindingExpr;
|
|
9175
|
+
}
|
|
9176
|
+
function temporariesIn(e) {
|
|
9177
|
+
const temporaries = /* @__PURE__ */ new Set();
|
|
9178
|
+
transformExpressionsInExpression(e, (e2) => {
|
|
9179
|
+
if (e2 instanceof AssignTemporaryExpr) {
|
|
9180
|
+
temporaries.add(e2.xref);
|
|
9181
|
+
}
|
|
9182
|
+
return e2;
|
|
9183
|
+
}, VisitorContextFlag.None);
|
|
9184
|
+
return temporaries;
|
|
9185
|
+
}
|
|
9186
|
+
function eliminateTemporaryAssignments(e, tmps, ctx) {
|
|
9187
|
+
transformExpressionsInExpression(e, (e2) => {
|
|
9188
|
+
if (e2 instanceof AssignTemporaryExpr && tmps.has(e2.xref)) {
|
|
9189
|
+
const read = new ReadTemporaryExpr(e2.xref);
|
|
9190
|
+
return ctx.compatibility ? new AssignTemporaryExpr(read, read.xref) : read;
|
|
9191
|
+
}
|
|
9192
|
+
return e2;
|
|
9193
|
+
}, VisitorContextFlag.None);
|
|
9194
|
+
return e;
|
|
9195
|
+
}
|
|
9196
|
+
function safeTernaryWithTemporary(guard, body, ctx) {
|
|
9197
|
+
let result;
|
|
9198
|
+
if (needsTemporaryInSafeAccess(guard)) {
|
|
9199
|
+
const xref = ctx.cpl.allocateXrefId();
|
|
9200
|
+
result = [new AssignTemporaryExpr(guard, xref), new ReadTemporaryExpr(xref)];
|
|
9201
|
+
} else {
|
|
9202
|
+
result = [guard, guard.clone()];
|
|
9203
|
+
eliminateTemporaryAssignments(result[1], temporariesIn(result[0]), ctx);
|
|
9204
|
+
}
|
|
9205
|
+
return new SafeTernaryExpr(result[0], body(result[1]));
|
|
9206
|
+
}
|
|
9207
|
+
function isSafeAccessExpression(e) {
|
|
9208
|
+
return e instanceof SafePropertyReadExpr || e instanceof SafeKeyedReadExpr;
|
|
9209
|
+
}
|
|
9210
|
+
function isUnsafeAccessExpression(e) {
|
|
9211
|
+
return e instanceof ReadPropExpr || e instanceof ReadKeyExpr || e instanceof InvokeFunctionExpr;
|
|
9212
|
+
}
|
|
9213
|
+
function isAccessExpression(e) {
|
|
9214
|
+
return isSafeAccessExpression(e) || isUnsafeAccessExpression(e);
|
|
9215
|
+
}
|
|
9216
|
+
function deepestSafeTernary(e) {
|
|
9217
|
+
if (isAccessExpression(e) && e.receiver instanceof SafeTernaryExpr) {
|
|
9218
|
+
let st = e.receiver;
|
|
9219
|
+
while (st.expr instanceof SafeTernaryExpr) {
|
|
9220
|
+
st = st.expr;
|
|
9221
|
+
}
|
|
9222
|
+
return st;
|
|
9223
|
+
}
|
|
9224
|
+
return null;
|
|
9225
|
+
}
|
|
9226
|
+
function safeTransform(e, ctx) {
|
|
9227
|
+
if (e instanceof SafeInvokeFunctionExpr) {
|
|
9228
|
+
return new InvokeFunctionExpr(e.receiver, e.args);
|
|
9229
|
+
}
|
|
9230
|
+
if (!isAccessExpression(e)) {
|
|
9231
|
+
return e;
|
|
9232
|
+
}
|
|
9233
|
+
const dst = deepestSafeTernary(e);
|
|
9234
|
+
if (dst) {
|
|
9235
|
+
if (e instanceof InvokeFunctionExpr) {
|
|
9236
|
+
dst.expr = dst.expr.callFn(e.args);
|
|
9237
|
+
return e.receiver;
|
|
9238
|
+
}
|
|
9239
|
+
if (e instanceof ReadPropExpr) {
|
|
9240
|
+
dst.expr = dst.expr.prop(e.name);
|
|
9241
|
+
return e.receiver;
|
|
9242
|
+
}
|
|
9243
|
+
if (e instanceof ReadKeyExpr) {
|
|
9244
|
+
dst.expr = dst.expr.key(e.index);
|
|
9245
|
+
return e.receiver;
|
|
9246
|
+
}
|
|
9247
|
+
if (e instanceof SafePropertyReadExpr) {
|
|
9248
|
+
dst.expr = safeTernaryWithTemporary(dst.expr, (r) => r.prop(e.name), ctx);
|
|
9249
|
+
return e.receiver;
|
|
9250
|
+
}
|
|
9251
|
+
if (e instanceof SafeKeyedReadExpr) {
|
|
9252
|
+
dst.expr = safeTernaryWithTemporary(dst.expr, (r) => r.key(e.index), ctx);
|
|
9253
|
+
return e.receiver;
|
|
9254
|
+
}
|
|
9255
|
+
} else {
|
|
9256
|
+
if (e instanceof SafePropertyReadExpr) {
|
|
9257
|
+
return safeTernaryWithTemporary(e.receiver, (r) => r.prop(e.name), ctx);
|
|
9258
|
+
}
|
|
9259
|
+
if (e instanceof SafeKeyedReadExpr) {
|
|
9260
|
+
return safeTernaryWithTemporary(e.receiver, (r) => r.key(e.index), ctx);
|
|
9261
|
+
}
|
|
9262
|
+
}
|
|
9263
|
+
return e;
|
|
9264
|
+
}
|
|
9265
|
+
function ternaryTransform(e) {
|
|
9266
|
+
if (!(e instanceof SafeTernaryExpr)) {
|
|
9267
|
+
return e;
|
|
9268
|
+
}
|
|
9269
|
+
return new ConditionalExpr(new BinaryOperatorExpr(BinaryOperator.Equals, e.guard, NULL_EXPR), NULL_EXPR, e.expr);
|
|
9270
|
+
}
|
|
9271
|
+
|
|
9272
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_advance.mjs
|
|
8962
9273
|
function phaseGenerateAdvance(cpl) {
|
|
8963
9274
|
for (const [_, view] of cpl.views) {
|
|
8964
9275
|
const slotMap = /* @__PURE__ */ new Map();
|
|
@@ -8990,23 +9301,7 @@ function phaseGenerateAdvance(cpl) {
|
|
|
8990
9301
|
}
|
|
8991
9302
|
}
|
|
8992
9303
|
|
|
8993
|
-
// bazel-out/
|
|
8994
|
-
function phaseNullishCoalescing(cpl) {
|
|
8995
|
-
for (const view of cpl.views.values()) {
|
|
8996
|
-
for (const op of view.ops()) {
|
|
8997
|
-
transformExpressionsInOp(op, (expr) => {
|
|
8998
|
-
if (!(expr instanceof BinaryOperatorExpr) || expr.operator !== BinaryOperator.NullishCoalesce) {
|
|
8999
|
-
return expr;
|
|
9000
|
-
}
|
|
9001
|
-
const assignment = new AssignTemporaryExpr(expr.lhs.clone(), cpl.allocateXrefId());
|
|
9002
|
-
const read = new ReadTemporaryExpr(assignment.xref);
|
|
9003
|
-
return new ConditionalExpr(new BinaryOperatorExpr(BinaryOperator.And, new BinaryOperatorExpr(BinaryOperator.NotIdentical, assignment, NULL_EXPR), new BinaryOperatorExpr(BinaryOperator.NotIdentical, read, new LiteralExpr(void 0))), read.clone(), expr.rhs);
|
|
9004
|
-
}, VisitorContextFlag.None);
|
|
9005
|
-
}
|
|
9006
|
-
}
|
|
9007
|
-
}
|
|
9008
|
-
|
|
9009
|
-
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_variables.mjs
|
|
9304
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_variables.mjs
|
|
9010
9305
|
function phaseGenerateVariables(cpl) {
|
|
9011
9306
|
recursivelyProcessView(cpl.root, null);
|
|
9012
9307
|
}
|
|
@@ -9086,7 +9381,7 @@ function generateVariablesInScopeForView(view, scope) {
|
|
|
9086
9381
|
return newOps;
|
|
9087
9382
|
}
|
|
9088
9383
|
|
|
9089
|
-
// bazel-out/
|
|
9384
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/local_refs.mjs
|
|
9090
9385
|
function phaseLocalRefs(cpl) {
|
|
9091
9386
|
for (const view of cpl.views.values()) {
|
|
9092
9387
|
for (const op of view.create) {
|
|
@@ -9117,13 +9412,74 @@ function serializeLocalRefs(refs) {
|
|
|
9117
9412
|
return literalArr(constRefs);
|
|
9118
9413
|
}
|
|
9119
9414
|
|
|
9120
|
-
// bazel-out/
|
|
9121
|
-
function
|
|
9122
|
-
|
|
9415
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/style_parser.mjs
|
|
9416
|
+
function parse(value) {
|
|
9417
|
+
const styles = [];
|
|
9418
|
+
let i = 0;
|
|
9419
|
+
let parenDepth = 0;
|
|
9420
|
+
let quote = 0;
|
|
9421
|
+
let valueStart = 0;
|
|
9422
|
+
let propStart = 0;
|
|
9423
|
+
let currentProp = null;
|
|
9424
|
+
while (i < value.length) {
|
|
9425
|
+
const token = value.charCodeAt(i++);
|
|
9426
|
+
switch (token) {
|
|
9427
|
+
case 40:
|
|
9428
|
+
parenDepth++;
|
|
9429
|
+
break;
|
|
9430
|
+
case 41:
|
|
9431
|
+
parenDepth--;
|
|
9432
|
+
break;
|
|
9433
|
+
case 39:
|
|
9434
|
+
if (quote === 0) {
|
|
9435
|
+
quote = 39;
|
|
9436
|
+
} else if (quote === 39 && value.charCodeAt(i - 1) !== 92) {
|
|
9437
|
+
quote = 0;
|
|
9438
|
+
}
|
|
9439
|
+
break;
|
|
9440
|
+
case 34:
|
|
9441
|
+
if (quote === 0) {
|
|
9442
|
+
quote = 34;
|
|
9443
|
+
} else if (quote === 34 && value.charCodeAt(i - 1) !== 92) {
|
|
9444
|
+
quote = 0;
|
|
9445
|
+
}
|
|
9446
|
+
break;
|
|
9447
|
+
case 58:
|
|
9448
|
+
if (!currentProp && parenDepth === 0 && quote === 0) {
|
|
9449
|
+
currentProp = hyphenate(value.substring(propStart, i - 1).trim());
|
|
9450
|
+
valueStart = i;
|
|
9451
|
+
}
|
|
9452
|
+
break;
|
|
9453
|
+
case 59:
|
|
9454
|
+
if (currentProp && valueStart > 0 && parenDepth === 0 && quote === 0) {
|
|
9455
|
+
const styleVal = value.substring(valueStart, i - 1).trim();
|
|
9456
|
+
styles.push(currentProp, styleVal);
|
|
9457
|
+
propStart = i;
|
|
9458
|
+
valueStart = 0;
|
|
9459
|
+
currentProp = null;
|
|
9460
|
+
}
|
|
9461
|
+
break;
|
|
9462
|
+
}
|
|
9463
|
+
}
|
|
9464
|
+
if (currentProp && valueStart) {
|
|
9465
|
+
const styleVal = value.slice(valueStart).trim();
|
|
9466
|
+
styles.push(currentProp, styleVal);
|
|
9467
|
+
}
|
|
9468
|
+
return styles;
|
|
9469
|
+
}
|
|
9470
|
+
function hyphenate(value) {
|
|
9471
|
+
return value.replace(/[a-z][A-Z]/g, (v) => {
|
|
9472
|
+
return v.charAt(0) + "-" + v.charAt(1);
|
|
9473
|
+
}).toLowerCase();
|
|
9474
|
+
}
|
|
9475
|
+
|
|
9476
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/naming.mjs
|
|
9477
|
+
function phaseNaming(cpl, compatibility) {
|
|
9478
|
+
addNamesToView(cpl.root, cpl.componentName, { index: 0 }, compatibility);
|
|
9123
9479
|
}
|
|
9124
|
-
function addNamesToView(view, baseName, state) {
|
|
9480
|
+
function addNamesToView(view, baseName, state, compatibility) {
|
|
9125
9481
|
if (view.fnName === null) {
|
|
9126
|
-
view.fnName = `${baseName}_Template
|
|
9482
|
+
view.fnName = sanitizeIdentifier(`${baseName}_Template`);
|
|
9127
9483
|
}
|
|
9128
9484
|
const varNames = /* @__PURE__ */ new Map();
|
|
9129
9485
|
for (const op of view.ops()) {
|
|
@@ -9133,7 +9489,7 @@ function addNamesToView(view, baseName, state) {
|
|
|
9133
9489
|
if (op.slot === null) {
|
|
9134
9490
|
throw new Error(`Expected a slot to be assigned`);
|
|
9135
9491
|
}
|
|
9136
|
-
op.handlerFnName = `${view.fnName}_${op.tag}_${op.name}_${op.slot}_listener
|
|
9492
|
+
op.handlerFnName = sanitizeIdentifier(`${view.fnName}_${op.tag}_${op.name}_${op.slot}_listener`);
|
|
9137
9493
|
}
|
|
9138
9494
|
break;
|
|
9139
9495
|
case OpKind.Variable:
|
|
@@ -9144,8 +9500,19 @@ function addNamesToView(view, baseName, state) {
|
|
|
9144
9500
|
if (op.slot === null) {
|
|
9145
9501
|
throw new Error(`Expected slot to be assigned`);
|
|
9146
9502
|
}
|
|
9147
|
-
|
|
9148
|
-
|
|
9503
|
+
addNamesToView(childView, `${baseName}_${op.tag}_${op.slot}`, state, compatibility);
|
|
9504
|
+
break;
|
|
9505
|
+
case OpKind.StyleProp:
|
|
9506
|
+
case OpKind.InterpolateStyleProp:
|
|
9507
|
+
op.name = normalizeStylePropName(op.name);
|
|
9508
|
+
if (compatibility) {
|
|
9509
|
+
op.name = stripImportant(op.name);
|
|
9510
|
+
}
|
|
9511
|
+
break;
|
|
9512
|
+
case OpKind.ClassProp:
|
|
9513
|
+
if (compatibility) {
|
|
9514
|
+
op.name = stripImportant(op.name);
|
|
9515
|
+
}
|
|
9149
9516
|
break;
|
|
9150
9517
|
}
|
|
9151
9518
|
}
|
|
@@ -9174,8 +9541,18 @@ function getVariableName(variable2, state) {
|
|
|
9174
9541
|
}
|
|
9175
9542
|
return variable2.name;
|
|
9176
9543
|
}
|
|
9544
|
+
function normalizeStylePropName(name) {
|
|
9545
|
+
return name.startsWith("--") ? name : hyphenate(name);
|
|
9546
|
+
}
|
|
9547
|
+
function stripImportant(name) {
|
|
9548
|
+
const importantIndex = name.indexOf("!important");
|
|
9549
|
+
if (importantIndex > -1) {
|
|
9550
|
+
return name.substring(0, importantIndex);
|
|
9551
|
+
}
|
|
9552
|
+
return name;
|
|
9553
|
+
}
|
|
9177
9554
|
|
|
9178
|
-
// bazel-out/
|
|
9555
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/next_context_merging.mjs
|
|
9179
9556
|
function phaseMergeNextContext(cpl) {
|
|
9180
9557
|
for (const view of cpl.views.values()) {
|
|
9181
9558
|
for (const op of view.create) {
|
|
@@ -9220,7 +9597,7 @@ function mergeNextContextsInOps(ops) {
|
|
|
9220
9597
|
}
|
|
9221
9598
|
}
|
|
9222
9599
|
|
|
9223
|
-
// bazel-out/
|
|
9600
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/ng_container.mjs
|
|
9224
9601
|
var CONTAINER_TAG = "ng-container";
|
|
9225
9602
|
function phaseNgContainer(cpl) {
|
|
9226
9603
|
for (const [_, view] of cpl.views) {
|
|
@@ -9237,7 +9614,23 @@ function phaseNgContainer(cpl) {
|
|
|
9237
9614
|
}
|
|
9238
9615
|
}
|
|
9239
9616
|
|
|
9240
|
-
// bazel-out/
|
|
9617
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/nullish_coalescing.mjs
|
|
9618
|
+
function phaseNullishCoalescing(cpl) {
|
|
9619
|
+
for (const view of cpl.views.values()) {
|
|
9620
|
+
for (const op of view.ops()) {
|
|
9621
|
+
transformExpressionsInOp(op, (expr) => {
|
|
9622
|
+
if (!(expr instanceof BinaryOperatorExpr) || expr.operator !== BinaryOperator.NullishCoalesce) {
|
|
9623
|
+
return expr;
|
|
9624
|
+
}
|
|
9625
|
+
const assignment = new AssignTemporaryExpr(expr.lhs.clone(), cpl.allocateXrefId());
|
|
9626
|
+
const read = new ReadTemporaryExpr(assignment.xref);
|
|
9627
|
+
return new ConditionalExpr(new BinaryOperatorExpr(BinaryOperator.And, new BinaryOperatorExpr(BinaryOperator.NotIdentical, assignment, NULL_EXPR), new BinaryOperatorExpr(BinaryOperator.NotIdentical, read, new LiteralExpr(void 0))), read.clone(), expr.rhs);
|
|
9628
|
+
}, VisitorContextFlag.None);
|
|
9629
|
+
}
|
|
9630
|
+
}
|
|
9631
|
+
}
|
|
9632
|
+
|
|
9633
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pipe_creation.mjs
|
|
9241
9634
|
function phasePipeCreation(cpl) {
|
|
9242
9635
|
for (const view of cpl.views.values()) {
|
|
9243
9636
|
processPipeBindingsInView(view);
|
|
@@ -9280,7 +9673,7 @@ function addPipeToCreationBlock(view, afterTargetXref, binding) {
|
|
|
9280
9673
|
throw new Error(`AssertionError: unable to find insertion point for pipe ${binding.name}`);
|
|
9281
9674
|
}
|
|
9282
9675
|
|
|
9283
|
-
// bazel-out/
|
|
9676
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pipe_variadic.mjs
|
|
9284
9677
|
function phasePipeVariadic(cpl) {
|
|
9285
9678
|
for (const view of cpl.views.values()) {
|
|
9286
9679
|
for (const op of view.update) {
|
|
@@ -9297,7 +9690,52 @@ function phasePipeVariadic(cpl) {
|
|
|
9297
9690
|
}
|
|
9298
9691
|
}
|
|
9299
9692
|
|
|
9300
|
-
// bazel-out/
|
|
9693
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/property_ordering.mjs
|
|
9694
|
+
var ORDERING = [
|
|
9695
|
+
{ kinds: /* @__PURE__ */ new Set([OpKind.StyleMap, OpKind.InterpolateStyleMap]), transform: keepLast },
|
|
9696
|
+
{ kinds: /* @__PURE__ */ new Set([OpKind.ClassMap, OpKind.InterpolateClassMap]), transform: keepLast },
|
|
9697
|
+
{ kinds: /* @__PURE__ */ new Set([OpKind.StyleProp, OpKind.InterpolateStyleProp]) },
|
|
9698
|
+
{ kinds: /* @__PURE__ */ new Set([OpKind.ClassProp]) },
|
|
9699
|
+
{ kinds: /* @__PURE__ */ new Set([OpKind.InterpolateProperty]) },
|
|
9700
|
+
{ kinds: /* @__PURE__ */ new Set([OpKind.Property]) },
|
|
9701
|
+
{ kinds: /* @__PURE__ */ new Set([OpKind.Attribute, OpKind.InterpolateAttribute]) }
|
|
9702
|
+
];
|
|
9703
|
+
var handledOpKinds = new Set(ORDERING.flatMap((group) => [...group.kinds]));
|
|
9704
|
+
function phasePropertyOrdering(cpl) {
|
|
9705
|
+
for (const [_, view] of cpl.views) {
|
|
9706
|
+
let opsToOrder = [];
|
|
9707
|
+
for (const op of view.update) {
|
|
9708
|
+
if (handledOpKinds.has(op.kind)) {
|
|
9709
|
+
opsToOrder.push(op);
|
|
9710
|
+
OpList.remove(op);
|
|
9711
|
+
} else {
|
|
9712
|
+
for (const orderedOp of reorder(opsToOrder)) {
|
|
9713
|
+
OpList.insertBefore(orderedOp, op);
|
|
9714
|
+
}
|
|
9715
|
+
opsToOrder = [];
|
|
9716
|
+
}
|
|
9717
|
+
}
|
|
9718
|
+
for (const orderedOp of reorder(opsToOrder)) {
|
|
9719
|
+
view.update.push(orderedOp);
|
|
9720
|
+
}
|
|
9721
|
+
}
|
|
9722
|
+
}
|
|
9723
|
+
function reorder(ops) {
|
|
9724
|
+
const groups = Array.from(ORDERING, () => new Array());
|
|
9725
|
+
for (const op of ops) {
|
|
9726
|
+
const groupIndex = ORDERING.findIndex((o) => o.kinds.has(op.kind));
|
|
9727
|
+
groups[groupIndex].push(op);
|
|
9728
|
+
}
|
|
9729
|
+
return groups.flatMap((group, i) => {
|
|
9730
|
+
const transform = ORDERING[i].transform;
|
|
9731
|
+
return transform ? transform(group) : group;
|
|
9732
|
+
});
|
|
9733
|
+
}
|
|
9734
|
+
function keepLast(ops) {
|
|
9735
|
+
return ops.slice(ops.length - 1);
|
|
9736
|
+
}
|
|
9737
|
+
|
|
9738
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pure_function_extraction.mjs
|
|
9301
9739
|
function phasePureFunctionExtraction(cpl) {
|
|
9302
9740
|
for (const view of cpl.views.values()) {
|
|
9303
9741
|
for (const op of view.ops()) {
|
|
@@ -9339,7 +9777,7 @@ var PureFunctionConstant = class extends GenericKeyFn {
|
|
|
9339
9777
|
}
|
|
9340
9778
|
};
|
|
9341
9779
|
|
|
9342
|
-
// bazel-out/
|
|
9780
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pure_literal_structures.mjs
|
|
9343
9781
|
function phasePureLiteralStructures(cpl) {
|
|
9344
9782
|
for (const view of cpl.views.values()) {
|
|
9345
9783
|
for (const op of view.update) {
|
|
@@ -9386,7 +9824,7 @@ function transformLiteralMap(expr) {
|
|
|
9386
9824
|
return new PureFunctionExpr(literalMap(derivedEntries), nonConstantArgs);
|
|
9387
9825
|
}
|
|
9388
9826
|
|
|
9389
|
-
// bazel-out/
|
|
9827
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/instruction.mjs
|
|
9390
9828
|
function element(slot, tag, constIndex, localRefIndex) {
|
|
9391
9829
|
return elementOrContainerBase(Identifiers.element, slot, tag, constIndex, localRefIndex);
|
|
9392
9830
|
}
|
|
@@ -9491,9 +9929,15 @@ function styleProp(name, expression, unit) {
|
|
|
9491
9929
|
}
|
|
9492
9930
|
return call(Identifiers.styleProp, args);
|
|
9493
9931
|
}
|
|
9932
|
+
function classProp(name, expression) {
|
|
9933
|
+
return call(Identifiers.classProp, [literal(name), expression]);
|
|
9934
|
+
}
|
|
9494
9935
|
function styleMap(expression) {
|
|
9495
9936
|
return call(Identifiers.styleMap, [expression]);
|
|
9496
9937
|
}
|
|
9938
|
+
function classMap(expression) {
|
|
9939
|
+
return call(Identifiers.classMap, [expression]);
|
|
9940
|
+
}
|
|
9497
9941
|
var PIPE_BINDINGS = [
|
|
9498
9942
|
Identifiers.pipeBind1,
|
|
9499
9943
|
Identifiers.pipeBind2,
|
|
@@ -9554,6 +9998,10 @@ function styleMapInterpolate(strings, expressions) {
|
|
|
9554
9998
|
const interpolationArgs = collateInterpolationArgs(strings, expressions);
|
|
9555
9999
|
return callVariadicInstruction(STYLE_MAP_INTERPOLATE_CONFIG, [], interpolationArgs);
|
|
9556
10000
|
}
|
|
10001
|
+
function classMapInterpolate(strings, expressions) {
|
|
10002
|
+
const interpolationArgs = collateInterpolationArgs(strings, expressions);
|
|
10003
|
+
return callVariadicInstruction(CLASS_MAP_INTERPOLATE_CONFIG, [], interpolationArgs);
|
|
10004
|
+
}
|
|
9557
10005
|
function pureFunction(varOffset, fn2, args) {
|
|
9558
10006
|
return callVariadicInstructionExpr(PURE_FUNCTION_CONFIG, [
|
|
9559
10007
|
literal(varOffset),
|
|
@@ -9621,7 +10069,7 @@ var PROPERTY_INTERPOLATE_CONFIG = {
|
|
|
9621
10069
|
};
|
|
9622
10070
|
var STYLE_PROP_INTERPOLATE_CONFIG = {
|
|
9623
10071
|
constant: [
|
|
9624
|
-
|
|
10072
|
+
Identifiers.styleProp,
|
|
9625
10073
|
Identifiers.stylePropInterpolate1,
|
|
9626
10074
|
Identifiers.stylePropInterpolate2,
|
|
9627
10075
|
Identifiers.stylePropInterpolate3,
|
|
@@ -9636,9 +10084,6 @@ var STYLE_PROP_INTERPOLATE_CONFIG = {
|
|
|
9636
10084
|
if (n % 2 === 0) {
|
|
9637
10085
|
throw new Error(`Expected odd number of arguments`);
|
|
9638
10086
|
}
|
|
9639
|
-
if (n < 3) {
|
|
9640
|
-
throw new Error(`Expected at least 3 arguments`);
|
|
9641
|
-
}
|
|
9642
10087
|
return (n - 1) / 2;
|
|
9643
10088
|
}
|
|
9644
10089
|
};
|
|
@@ -9664,7 +10109,7 @@ var ATTRIBUTE_INTERPOLATE_CONFIG = {
|
|
|
9664
10109
|
};
|
|
9665
10110
|
var STYLE_MAP_INTERPOLATE_CONFIG = {
|
|
9666
10111
|
constant: [
|
|
9667
|
-
|
|
10112
|
+
Identifiers.styleMap,
|
|
9668
10113
|
Identifiers.styleMapInterpolate1,
|
|
9669
10114
|
Identifiers.styleMapInterpolate2,
|
|
9670
10115
|
Identifiers.styleMapInterpolate3,
|
|
@@ -9679,8 +10124,25 @@ var STYLE_MAP_INTERPOLATE_CONFIG = {
|
|
|
9679
10124
|
if (n % 2 === 0) {
|
|
9680
10125
|
throw new Error(`Expected odd number of arguments`);
|
|
9681
10126
|
}
|
|
9682
|
-
|
|
9683
|
-
|
|
10127
|
+
return (n - 1) / 2;
|
|
10128
|
+
}
|
|
10129
|
+
};
|
|
10130
|
+
var CLASS_MAP_INTERPOLATE_CONFIG = {
|
|
10131
|
+
constant: [
|
|
10132
|
+
Identifiers.classMap,
|
|
10133
|
+
Identifiers.classMapInterpolate1,
|
|
10134
|
+
Identifiers.classMapInterpolate2,
|
|
10135
|
+
Identifiers.classMapInterpolate3,
|
|
10136
|
+
Identifiers.classMapInterpolate4,
|
|
10137
|
+
Identifiers.classMapInterpolate5,
|
|
10138
|
+
Identifiers.classMapInterpolate6,
|
|
10139
|
+
Identifiers.classMapInterpolate7,
|
|
10140
|
+
Identifiers.classMapInterpolate8
|
|
10141
|
+
],
|
|
10142
|
+
variable: Identifiers.classMapInterpolateV,
|
|
10143
|
+
mapping: (n) => {
|
|
10144
|
+
if (n % 2 === 0) {
|
|
10145
|
+
throw new Error(`Expected odd number of arguments`);
|
|
9684
10146
|
}
|
|
9685
10147
|
return (n - 1) / 2;
|
|
9686
10148
|
}
|
|
@@ -9722,7 +10184,7 @@ function callVariadicInstruction(config, baseArgs, interpolationArgs, extraArgs
|
|
|
9722
10184
|
return createStatementOp(callVariadicInstructionExpr(config, baseArgs, interpolationArgs, extraArgs).toStmt());
|
|
9723
10185
|
}
|
|
9724
10186
|
|
|
9725
|
-
// bazel-out/
|
|
10187
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/reify.mjs
|
|
9726
10188
|
function phaseReify(cpl) {
|
|
9727
10189
|
for (const [_, view] of cpl.views) {
|
|
9728
10190
|
reifyCreateOperations(view, view.create);
|
|
@@ -9791,9 +10253,15 @@ function reifyUpdateOperations(_view, ops) {
|
|
|
9791
10253
|
case OpKind.StyleProp:
|
|
9792
10254
|
OpList.replace(op, styleProp(op.name, op.expression, op.unit));
|
|
9793
10255
|
break;
|
|
10256
|
+
case OpKind.ClassProp:
|
|
10257
|
+
OpList.replace(op, classProp(op.name, op.expression));
|
|
10258
|
+
break;
|
|
9794
10259
|
case OpKind.StyleMap:
|
|
9795
10260
|
OpList.replace(op, styleMap(op.expression));
|
|
9796
10261
|
break;
|
|
10262
|
+
case OpKind.ClassMap:
|
|
10263
|
+
OpList.replace(op, classMap(op.expression));
|
|
10264
|
+
break;
|
|
9797
10265
|
case OpKind.InterpolateProperty:
|
|
9798
10266
|
OpList.replace(op, propertyInterpolate(op.name, op.strings, op.expressions));
|
|
9799
10267
|
break;
|
|
@@ -9803,6 +10271,9 @@ function reifyUpdateOperations(_view, ops) {
|
|
|
9803
10271
|
case OpKind.InterpolateStyleMap:
|
|
9804
10272
|
OpList.replace(op, styleMapInterpolate(op.strings, op.expressions));
|
|
9805
10273
|
break;
|
|
10274
|
+
case OpKind.InterpolateClassMap:
|
|
10275
|
+
OpList.replace(op, classMapInterpolate(op.strings, op.expressions));
|
|
10276
|
+
break;
|
|
9806
10277
|
case OpKind.InterpolateText:
|
|
9807
10278
|
OpList.replace(op, textInterpolate(op.strings, op.expressions));
|
|
9808
10279
|
break;
|
|
@@ -9904,7 +10375,7 @@ var LookForEventVisitor = class extends RecursiveAstVisitor {
|
|
|
9904
10375
|
}
|
|
9905
10376
|
};
|
|
9906
10377
|
|
|
9907
|
-
// bazel-out/
|
|
10378
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_contexts.mjs
|
|
9908
10379
|
function phaseResolveContexts(cpl) {
|
|
9909
10380
|
for (const view of cpl.views.values()) {
|
|
9910
10381
|
processLexicalScope(view, view.create);
|
|
@@ -9942,7 +10413,7 @@ function processLexicalScope(view, ops) {
|
|
|
9942
10413
|
}
|
|
9943
10414
|
}
|
|
9944
10415
|
|
|
9945
|
-
// bazel-out/
|
|
10416
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_names.mjs
|
|
9946
10417
|
function phaseResolveNames(cpl) {
|
|
9947
10418
|
for (const [_, view] of cpl.views) {
|
|
9948
10419
|
processLexicalScope2(view, view.create, null);
|
|
@@ -10002,7 +10473,7 @@ function processLexicalScope2(view, ops, savedView) {
|
|
|
10002
10473
|
}
|
|
10003
10474
|
}
|
|
10004
10475
|
|
|
10005
|
-
// bazel-out/
|
|
10476
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/save_restore_view.mjs
|
|
10006
10477
|
function phaseSaveRestoreView(cpl) {
|
|
10007
10478
|
for (const view of cpl.views.values()) {
|
|
10008
10479
|
view.create.prepend([
|
|
@@ -10047,7 +10518,7 @@ function addSaveRestoreViewOperationToListener(view, op) {
|
|
|
10047
10518
|
}
|
|
10048
10519
|
}
|
|
10049
10520
|
|
|
10050
|
-
// bazel-out/
|
|
10521
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/slot_allocation.mjs
|
|
10051
10522
|
function phaseSlotAllocation(cpl) {
|
|
10052
10523
|
const slotMap = /* @__PURE__ */ new Map();
|
|
10053
10524
|
for (const [_, view] of cpl.views) {
|
|
@@ -10090,7 +10561,40 @@ function phaseSlotAllocation(cpl) {
|
|
|
10090
10561
|
}
|
|
10091
10562
|
}
|
|
10092
10563
|
|
|
10093
|
-
// bazel-out/
|
|
10564
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/temporary_variables.mjs
|
|
10565
|
+
function phaseTemporaryVariables(cpl) {
|
|
10566
|
+
for (const view of cpl.views.values()) {
|
|
10567
|
+
let opCount = 0;
|
|
10568
|
+
let generatedStatements = [];
|
|
10569
|
+
for (const op of view.ops()) {
|
|
10570
|
+
let count = 0;
|
|
10571
|
+
let xrefs = /* @__PURE__ */ new Set();
|
|
10572
|
+
let defs = /* @__PURE__ */ new Map();
|
|
10573
|
+
visitExpressionsInOp(op, (expr) => {
|
|
10574
|
+
if (expr instanceof ReadTemporaryExpr || expr instanceof AssignTemporaryExpr) {
|
|
10575
|
+
xrefs.add(expr.xref);
|
|
10576
|
+
}
|
|
10577
|
+
});
|
|
10578
|
+
for (const xref of xrefs) {
|
|
10579
|
+
defs.set(xref, `tmp_${opCount}_${count++}`);
|
|
10580
|
+
}
|
|
10581
|
+
visitExpressionsInOp(op, (expr) => {
|
|
10582
|
+
if (expr instanceof ReadTemporaryExpr || expr instanceof AssignTemporaryExpr) {
|
|
10583
|
+
const name = defs.get(expr.xref);
|
|
10584
|
+
if (name === void 0) {
|
|
10585
|
+
throw new Error("Found xref with unassigned name");
|
|
10586
|
+
}
|
|
10587
|
+
expr.name = name;
|
|
10588
|
+
}
|
|
10589
|
+
});
|
|
10590
|
+
generatedStatements.push(...Array.from(defs.values()).map((name) => createStatementOp(new DeclareVarStmt(name))));
|
|
10591
|
+
opCount++;
|
|
10592
|
+
}
|
|
10593
|
+
view.update.prepend(generatedStatements);
|
|
10594
|
+
}
|
|
10595
|
+
}
|
|
10596
|
+
|
|
10597
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/variable_optimization.mjs
|
|
10094
10598
|
function phaseVariableOptimization(cpl, options) {
|
|
10095
10599
|
for (const [_, view] of cpl.views) {
|
|
10096
10600
|
optimizeVariablesInOpList(view.create, options);
|
|
@@ -10300,172 +10804,7 @@ function allowConservativeInlining(decl, target) {
|
|
|
10300
10804
|
}
|
|
10301
10805
|
}
|
|
10302
10806
|
|
|
10303
|
-
// bazel-out/
|
|
10304
|
-
function phaseExpandSafeReads(cpl, compatibility) {
|
|
10305
|
-
for (const [_, view] of cpl.views) {
|
|
10306
|
-
for (const op of view.ops()) {
|
|
10307
|
-
transformExpressionsInOp(op, (e) => safeTransform(e, { cpl, compatibility }), VisitorContextFlag.None);
|
|
10308
|
-
transformExpressionsInOp(op, ternaryTransform, VisitorContextFlag.None);
|
|
10309
|
-
}
|
|
10310
|
-
}
|
|
10311
|
-
}
|
|
10312
|
-
var requiresTemporary = [
|
|
10313
|
-
InvokeFunctionExpr,
|
|
10314
|
-
LiteralArrayExpr,
|
|
10315
|
-
LiteralMapExpr,
|
|
10316
|
-
SafeInvokeFunctionExpr,
|
|
10317
|
-
PipeBindingExpr
|
|
10318
|
-
].map((e) => e.constructor.name);
|
|
10319
|
-
function needsTemporaryInSafeAccess(e) {
|
|
10320
|
-
if (e instanceof UnaryOperatorExpr) {
|
|
10321
|
-
return needsTemporaryInSafeAccess(e.expr);
|
|
10322
|
-
} else if (e instanceof BinaryOperatorExpr) {
|
|
10323
|
-
return needsTemporaryInSafeAccess(e.lhs) || needsTemporaryInSafeAccess(e.rhs);
|
|
10324
|
-
} else if (e instanceof ConditionalExpr) {
|
|
10325
|
-
if (e.falseCase && needsTemporaryInSafeAccess(e.falseCase))
|
|
10326
|
-
return true;
|
|
10327
|
-
return needsTemporaryInSafeAccess(e.condition) || needsTemporaryInSafeAccess(e.trueCase);
|
|
10328
|
-
} else if (e instanceof NotExpr) {
|
|
10329
|
-
return needsTemporaryInSafeAccess(e.condition);
|
|
10330
|
-
} else if (e instanceof AssignTemporaryExpr) {
|
|
10331
|
-
return needsTemporaryInSafeAccess(e.expr);
|
|
10332
|
-
} else if (e instanceof ReadPropExpr) {
|
|
10333
|
-
return needsTemporaryInSafeAccess(e.receiver);
|
|
10334
|
-
} else if (e instanceof ReadKeyExpr) {
|
|
10335
|
-
return needsTemporaryInSafeAccess(e.receiver) || needsTemporaryInSafeAccess(e.index);
|
|
10336
|
-
}
|
|
10337
|
-
return e instanceof InvokeFunctionExpr || e instanceof LiteralArrayExpr || e instanceof LiteralMapExpr || e instanceof SafeInvokeFunctionExpr || e instanceof PipeBindingExpr;
|
|
10338
|
-
}
|
|
10339
|
-
function temporariesIn(e) {
|
|
10340
|
-
const temporaries = /* @__PURE__ */ new Set();
|
|
10341
|
-
transformExpressionsInExpression(e, (e2) => {
|
|
10342
|
-
if (e2 instanceof AssignTemporaryExpr) {
|
|
10343
|
-
temporaries.add(e2.xref);
|
|
10344
|
-
}
|
|
10345
|
-
return e2;
|
|
10346
|
-
}, VisitorContextFlag.None);
|
|
10347
|
-
return temporaries;
|
|
10348
|
-
}
|
|
10349
|
-
function eliminateTemporaryAssignments(e, tmps, ctx) {
|
|
10350
|
-
transformExpressionsInExpression(e, (e2) => {
|
|
10351
|
-
if (e2 instanceof AssignTemporaryExpr && tmps.has(e2.xref)) {
|
|
10352
|
-
const read = new ReadTemporaryExpr(e2.xref);
|
|
10353
|
-
return ctx.compatibility ? new AssignTemporaryExpr(read, read.xref) : read;
|
|
10354
|
-
}
|
|
10355
|
-
return e2;
|
|
10356
|
-
}, VisitorContextFlag.None);
|
|
10357
|
-
return e;
|
|
10358
|
-
}
|
|
10359
|
-
function safeTernaryWithTemporary(guard, body, ctx) {
|
|
10360
|
-
let result;
|
|
10361
|
-
if (needsTemporaryInSafeAccess(guard)) {
|
|
10362
|
-
const xref = ctx.cpl.allocateXrefId();
|
|
10363
|
-
result = [new AssignTemporaryExpr(guard, xref), new ReadTemporaryExpr(xref)];
|
|
10364
|
-
} else {
|
|
10365
|
-
result = [guard, guard.clone()];
|
|
10366
|
-
eliminateTemporaryAssignments(result[1], temporariesIn(result[0]), ctx);
|
|
10367
|
-
}
|
|
10368
|
-
return new SafeTernaryExpr(result[0], body(result[1]));
|
|
10369
|
-
}
|
|
10370
|
-
function isSafeAccessExpression(e) {
|
|
10371
|
-
return e instanceof SafePropertyReadExpr || e instanceof SafeKeyedReadExpr;
|
|
10372
|
-
}
|
|
10373
|
-
function isUnsafeAccessExpression(e) {
|
|
10374
|
-
return e instanceof ReadPropExpr || e instanceof ReadKeyExpr || e instanceof InvokeFunctionExpr;
|
|
10375
|
-
}
|
|
10376
|
-
function isAccessExpression(e) {
|
|
10377
|
-
return isSafeAccessExpression(e) || isUnsafeAccessExpression(e);
|
|
10378
|
-
}
|
|
10379
|
-
function deepestSafeTernary(e) {
|
|
10380
|
-
if (isAccessExpression(e) && e.receiver instanceof SafeTernaryExpr) {
|
|
10381
|
-
let st = e.receiver;
|
|
10382
|
-
while (st.expr instanceof SafeTernaryExpr) {
|
|
10383
|
-
st = st.expr;
|
|
10384
|
-
}
|
|
10385
|
-
return st;
|
|
10386
|
-
}
|
|
10387
|
-
return null;
|
|
10388
|
-
}
|
|
10389
|
-
function safeTransform(e, ctx) {
|
|
10390
|
-
if (e instanceof SafeInvokeFunctionExpr) {
|
|
10391
|
-
return new InvokeFunctionExpr(e.receiver, e.args);
|
|
10392
|
-
}
|
|
10393
|
-
if (!isAccessExpression(e)) {
|
|
10394
|
-
return e;
|
|
10395
|
-
}
|
|
10396
|
-
const dst = deepestSafeTernary(e);
|
|
10397
|
-
if (dst) {
|
|
10398
|
-
if (e instanceof InvokeFunctionExpr) {
|
|
10399
|
-
dst.expr = dst.expr.callFn(e.args);
|
|
10400
|
-
return e.receiver;
|
|
10401
|
-
}
|
|
10402
|
-
if (e instanceof ReadPropExpr) {
|
|
10403
|
-
dst.expr = dst.expr.prop(e.name);
|
|
10404
|
-
return e.receiver;
|
|
10405
|
-
}
|
|
10406
|
-
if (e instanceof ReadKeyExpr) {
|
|
10407
|
-
dst.expr = dst.expr.key(e.index);
|
|
10408
|
-
return e.receiver;
|
|
10409
|
-
}
|
|
10410
|
-
if (e instanceof SafePropertyReadExpr) {
|
|
10411
|
-
dst.expr = safeTernaryWithTemporary(dst.expr, (r) => r.prop(e.name), ctx);
|
|
10412
|
-
return e.receiver;
|
|
10413
|
-
}
|
|
10414
|
-
if (e instanceof SafeKeyedReadExpr) {
|
|
10415
|
-
dst.expr = safeTernaryWithTemporary(dst.expr, (r) => r.key(e.index), ctx);
|
|
10416
|
-
return e.receiver;
|
|
10417
|
-
}
|
|
10418
|
-
} else {
|
|
10419
|
-
if (e instanceof SafePropertyReadExpr) {
|
|
10420
|
-
return safeTernaryWithTemporary(e.receiver, (r) => r.prop(e.name), ctx);
|
|
10421
|
-
}
|
|
10422
|
-
if (e instanceof SafeKeyedReadExpr) {
|
|
10423
|
-
return safeTernaryWithTemporary(e.receiver, (r) => r.key(e.index), ctx);
|
|
10424
|
-
}
|
|
10425
|
-
}
|
|
10426
|
-
return e;
|
|
10427
|
-
}
|
|
10428
|
-
function ternaryTransform(e) {
|
|
10429
|
-
if (!(e instanceof SafeTernaryExpr)) {
|
|
10430
|
-
return e;
|
|
10431
|
-
}
|
|
10432
|
-
return new ConditionalExpr(new BinaryOperatorExpr(BinaryOperator.Equals, e.guard, NULL_EXPR), NULL_EXPR, e.expr);
|
|
10433
|
-
}
|
|
10434
|
-
|
|
10435
|
-
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/temporary_variables.mjs
|
|
10436
|
-
function phaseTemporaryVariables(cpl) {
|
|
10437
|
-
for (const view of cpl.views.values()) {
|
|
10438
|
-
let opCount = 0;
|
|
10439
|
-
let generatedStatements = [];
|
|
10440
|
-
for (const op of view.ops()) {
|
|
10441
|
-
let count = 0;
|
|
10442
|
-
let xrefs = /* @__PURE__ */ new Set();
|
|
10443
|
-
let defs = /* @__PURE__ */ new Map();
|
|
10444
|
-
visitExpressionsInOp(op, (expr) => {
|
|
10445
|
-
if (expr instanceof ReadTemporaryExpr || expr instanceof AssignTemporaryExpr) {
|
|
10446
|
-
xrefs.add(expr.xref);
|
|
10447
|
-
}
|
|
10448
|
-
});
|
|
10449
|
-
for (const xref of xrefs) {
|
|
10450
|
-
defs.set(xref, `tmp_${opCount}_${count++}`);
|
|
10451
|
-
}
|
|
10452
|
-
visitExpressionsInOp(op, (expr) => {
|
|
10453
|
-
if (expr instanceof ReadTemporaryExpr || expr instanceof AssignTemporaryExpr) {
|
|
10454
|
-
const name = defs.get(expr.xref);
|
|
10455
|
-
if (name === void 0) {
|
|
10456
|
-
throw new Error("Found xref with unassigned name");
|
|
10457
|
-
}
|
|
10458
|
-
expr.name = name;
|
|
10459
|
-
}
|
|
10460
|
-
});
|
|
10461
|
-
generatedStatements.push(...Array.from(defs.values()).map((name) => createStatementOp(new DeclareVarStmt(name))));
|
|
10462
|
-
opCount++;
|
|
10463
|
-
}
|
|
10464
|
-
view.update.prepend(generatedStatements);
|
|
10465
|
-
}
|
|
10466
|
-
}
|
|
10467
|
-
|
|
10468
|
-
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/emit.mjs
|
|
10807
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/emit.mjs
|
|
10469
10808
|
function transformTemplate(cpl) {
|
|
10470
10809
|
phaseAttributeExtraction(cpl, true);
|
|
10471
10810
|
phasePipeCreation(cpl);
|
|
@@ -10483,13 +10822,14 @@ function transformTemplate(cpl) {
|
|
|
10483
10822
|
phaseSlotAllocation(cpl);
|
|
10484
10823
|
phaseVarCounting(cpl);
|
|
10485
10824
|
phaseGenerateAdvance(cpl);
|
|
10486
|
-
phaseNaming(cpl);
|
|
10825
|
+
phaseNaming(cpl, true);
|
|
10487
10826
|
phaseVariableOptimization(cpl, { conservative: true });
|
|
10488
10827
|
phaseMergeNextContext(cpl);
|
|
10489
10828
|
phaseNgContainer(cpl);
|
|
10490
10829
|
phaseEmptyElements(cpl);
|
|
10491
10830
|
phasePureFunctionExtraction(cpl);
|
|
10492
10831
|
phaseAlignPipeVariadicVarOffset(cpl);
|
|
10832
|
+
phasePropertyOrdering(cpl);
|
|
10493
10833
|
phaseReify(cpl);
|
|
10494
10834
|
phaseChaining(cpl);
|
|
10495
10835
|
}
|
|
@@ -10551,7 +10891,7 @@ function maybeGenerateRfBlock(flag, statements) {
|
|
|
10551
10891
|
];
|
|
10552
10892
|
}
|
|
10553
10893
|
|
|
10554
|
-
// bazel-out/
|
|
10894
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/compilation.mjs
|
|
10555
10895
|
var ComponentCompilation = class {
|
|
10556
10896
|
constructor(componentName, pool) {
|
|
10557
10897
|
this.componentName = componentName;
|
|
@@ -10609,7 +10949,7 @@ var ViewCompilation = class {
|
|
|
10609
10949
|
}
|
|
10610
10950
|
};
|
|
10611
10951
|
|
|
10612
|
-
// bazel-out/
|
|
10952
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/conversion.mjs
|
|
10613
10953
|
var BINARY_OPERATORS = /* @__PURE__ */ new Map([
|
|
10614
10954
|
["&&", BinaryOperator.And],
|
|
10615
10955
|
[">", BinaryOperator.Bigger],
|
|
@@ -10630,7 +10970,7 @@ var BINARY_OPERATORS = /* @__PURE__ */ new Map([
|
|
|
10630
10970
|
["+", BinaryOperator.Plus]
|
|
10631
10971
|
]);
|
|
10632
10972
|
|
|
10633
|
-
// bazel-out/
|
|
10973
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/ingest.mjs
|
|
10634
10974
|
function ingest(componentName, template2, constantPool) {
|
|
10635
10975
|
const cpl = new ComponentCompilation(componentName, constantPool);
|
|
10636
10976
|
ingestNodes(cpl.root, template2);
|
|
@@ -10806,6 +11146,11 @@ function ingestPropertyBinding(view, xref, bindingKind, { name, value, type, uni
|
|
|
10806
11146
|
throw Error("Unexpected style binding on ng-template");
|
|
10807
11147
|
}
|
|
10808
11148
|
view.update.push(createInterpolateStyleMapOp(xref, value.strings, value.expressions.map((expr) => convertAst(expr, view.tpl))));
|
|
11149
|
+
} else if (name === "class") {
|
|
11150
|
+
if (bindingKind !== ElementAttributeKind.Binding) {
|
|
11151
|
+
throw Error("Unexpected class binding on ng-template");
|
|
11152
|
+
}
|
|
11153
|
+
view.update.push(createInterpolateClassMapOp(xref, value.strings, value.expressions.map((expr) => convertAst(expr, view.tpl))));
|
|
10809
11154
|
} else {
|
|
10810
11155
|
view.update.push(createInterpolatePropertyOp(xref, bindingKind, name, value.strings, value.expressions.map((expr) => convertAst(expr, view.tpl))));
|
|
10811
11156
|
}
|
|
@@ -10823,6 +11168,9 @@ function ingestPropertyBinding(view, xref, bindingKind, { name, value, type, uni
|
|
|
10823
11168
|
const attributeInterpolate2 = createInterpolateAttributeOp(xref, bindingKind, name, value.strings, value.expressions.map((expr) => convertAst(expr, view.tpl)));
|
|
10824
11169
|
view.update.push(attributeInterpolate2);
|
|
10825
11170
|
break;
|
|
11171
|
+
case 2:
|
|
11172
|
+
throw Error("Unexpected interpolation in class property binding");
|
|
11173
|
+
case 4:
|
|
10826
11174
|
default:
|
|
10827
11175
|
throw Error(`Interpolated property binding type not handled: ${type}`);
|
|
10828
11176
|
}
|
|
@@ -10834,6 +11182,11 @@ function ingestPropertyBinding(view, xref, bindingKind, { name, value, type, uni
|
|
|
10834
11182
|
throw Error("Unexpected style binding on ng-template");
|
|
10835
11183
|
}
|
|
10836
11184
|
view.update.push(createStyleMapOp(xref, convertAst(value, view.tpl)));
|
|
11185
|
+
} else if (name === "class") {
|
|
11186
|
+
if (bindingKind !== ElementAttributeKind.Binding) {
|
|
11187
|
+
throw Error("Unexpected class binding on ng-template");
|
|
11188
|
+
}
|
|
11189
|
+
view.update.push(createClassMapOp(xref, convertAst(value, view.tpl)));
|
|
10837
11190
|
} else {
|
|
10838
11191
|
view.update.push(createPropertyOp(xref, bindingKind, name, convertAst(value, view.tpl)));
|
|
10839
11192
|
}
|
|
@@ -10851,6 +11204,13 @@ function ingestPropertyBinding(view, xref, bindingKind, { name, value, type, uni
|
|
|
10851
11204
|
const attrOp = createAttributeOp(xref, bindingKind, name, convertAst(value, view.tpl));
|
|
10852
11205
|
view.update.push(attrOp);
|
|
10853
11206
|
break;
|
|
11207
|
+
case 2:
|
|
11208
|
+
if (bindingKind !== ElementAttributeKind.Binding) {
|
|
11209
|
+
throw Error("Unexpected class binding on ng-template");
|
|
11210
|
+
}
|
|
11211
|
+
view.update.push(createClassPropOp(xref, name, convertAst(value, view.tpl)));
|
|
11212
|
+
break;
|
|
11213
|
+
case 4:
|
|
10854
11214
|
default:
|
|
10855
11215
|
throw Error(`Property binding type not handled: ${type}`);
|
|
10856
11216
|
}
|
|
@@ -10871,71 +11231,10 @@ function assertIsArray(value) {
|
|
|
10871
11231
|
}
|
|
10872
11232
|
}
|
|
10873
11233
|
|
|
10874
|
-
// bazel-out/
|
|
11234
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/switch/index.mjs
|
|
10875
11235
|
var USE_TEMPLATE_PIPELINE = false;
|
|
10876
11236
|
|
|
10877
|
-
// bazel-out/
|
|
10878
|
-
function parse(value) {
|
|
10879
|
-
const styles = [];
|
|
10880
|
-
let i = 0;
|
|
10881
|
-
let parenDepth = 0;
|
|
10882
|
-
let quote = 0;
|
|
10883
|
-
let valueStart = 0;
|
|
10884
|
-
let propStart = 0;
|
|
10885
|
-
let currentProp = null;
|
|
10886
|
-
while (i < value.length) {
|
|
10887
|
-
const token = value.charCodeAt(i++);
|
|
10888
|
-
switch (token) {
|
|
10889
|
-
case 40:
|
|
10890
|
-
parenDepth++;
|
|
10891
|
-
break;
|
|
10892
|
-
case 41:
|
|
10893
|
-
parenDepth--;
|
|
10894
|
-
break;
|
|
10895
|
-
case 39:
|
|
10896
|
-
if (quote === 0) {
|
|
10897
|
-
quote = 39;
|
|
10898
|
-
} else if (quote === 39 && value.charCodeAt(i - 1) !== 92) {
|
|
10899
|
-
quote = 0;
|
|
10900
|
-
}
|
|
10901
|
-
break;
|
|
10902
|
-
case 34:
|
|
10903
|
-
if (quote === 0) {
|
|
10904
|
-
quote = 34;
|
|
10905
|
-
} else if (quote === 34 && value.charCodeAt(i - 1) !== 92) {
|
|
10906
|
-
quote = 0;
|
|
10907
|
-
}
|
|
10908
|
-
break;
|
|
10909
|
-
case 58:
|
|
10910
|
-
if (!currentProp && parenDepth === 0 && quote === 0) {
|
|
10911
|
-
currentProp = hyphenate(value.substring(propStart, i - 1).trim());
|
|
10912
|
-
valueStart = i;
|
|
10913
|
-
}
|
|
10914
|
-
break;
|
|
10915
|
-
case 59:
|
|
10916
|
-
if (currentProp && valueStart > 0 && parenDepth === 0 && quote === 0) {
|
|
10917
|
-
const styleVal = value.substring(valueStart, i - 1).trim();
|
|
10918
|
-
styles.push(currentProp, styleVal);
|
|
10919
|
-
propStart = i;
|
|
10920
|
-
valueStart = 0;
|
|
10921
|
-
currentProp = null;
|
|
10922
|
-
}
|
|
10923
|
-
break;
|
|
10924
|
-
}
|
|
10925
|
-
}
|
|
10926
|
-
if (currentProp && valueStart) {
|
|
10927
|
-
const styleVal = value.slice(valueStart).trim();
|
|
10928
|
-
styles.push(currentProp, styleVal);
|
|
10929
|
-
}
|
|
10930
|
-
return styles;
|
|
10931
|
-
}
|
|
10932
|
-
function hyphenate(value) {
|
|
10933
|
-
return value.replace(/[a-z][A-Z]/g, (v) => {
|
|
10934
|
-
return v.charAt(0) + "-" + v.charAt(1);
|
|
10935
|
-
}).toLowerCase();
|
|
10936
|
-
}
|
|
10937
|
-
|
|
10938
|
-
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/styling_builder.mjs
|
|
11237
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/styling_builder.mjs
|
|
10939
11238
|
var IMPORTANT_FLAG = "!important";
|
|
10940
11239
|
var MIN_STYLING_BINDING_SLOTS_REQUIRED = 2;
|
|
10941
11240
|
var StylingBuilder = class {
|
|
@@ -11268,7 +11567,7 @@ function isEmptyExpression(ast) {
|
|
|
11268
11567
|
return ast instanceof EmptyExpr;
|
|
11269
11568
|
}
|
|
11270
11569
|
|
|
11271
|
-
// bazel-out/
|
|
11570
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/expression_parser/lexer.mjs
|
|
11272
11571
|
var TokenType;
|
|
11273
11572
|
(function(TokenType2) {
|
|
11274
11573
|
TokenType2[TokenType2["Character"] = 0] = "Character";
|
|
@@ -11629,7 +11928,7 @@ function parseIntAutoRadix(text2) {
|
|
|
11629
11928
|
return result;
|
|
11630
11929
|
}
|
|
11631
11930
|
|
|
11632
|
-
// bazel-out/
|
|
11931
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/expression_parser/parser.mjs
|
|
11633
11932
|
var SplitInterpolation = class {
|
|
11634
11933
|
constructor(strings, expressions, offsets) {
|
|
11635
11934
|
this.strings = strings;
|
|
@@ -12523,7 +12822,7 @@ function getIndexMapForOriginalTemplate(interpolatedTokens) {
|
|
|
12523
12822
|
return offsetMap;
|
|
12524
12823
|
}
|
|
12525
12824
|
|
|
12526
|
-
// bazel-out/
|
|
12825
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/ast.mjs
|
|
12527
12826
|
var NodeWithI18n = class {
|
|
12528
12827
|
constructor(sourceSpan, i18n) {
|
|
12529
12828
|
this.sourceSpan = sourceSpan;
|
|
@@ -12644,11 +12943,11 @@ function visitAll2(visitor, nodes, context = null) {
|
|
|
12644
12943
|
return result;
|
|
12645
12944
|
}
|
|
12646
12945
|
|
|
12647
|
-
// bazel-out/
|
|
12946
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/schema/element_schema_registry.mjs
|
|
12648
12947
|
var ElementSchemaRegistry = class {
|
|
12649
12948
|
};
|
|
12650
12949
|
|
|
12651
|
-
// bazel-out/
|
|
12950
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/schema/dom_element_schema_registry.mjs
|
|
12652
12951
|
var BOOLEAN = "boolean";
|
|
12653
12952
|
var NUMBER = "number";
|
|
12654
12953
|
var STRING = "string";
|
|
@@ -13001,7 +13300,7 @@ function _isPixelDimensionStyle(prop) {
|
|
|
13001
13300
|
}
|
|
13002
13301
|
}
|
|
13003
13302
|
|
|
13004
|
-
// bazel-out/
|
|
13303
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/html_tags.mjs
|
|
13005
13304
|
var HtmlTagDefinition = class {
|
|
13006
13305
|
constructor({ closedByChildren, implicitNamespacePrefix, contentType = TagContentType.PARSABLE_DATA, closedByParent = false, isVoid = false, ignoreFirstLf = false, preventNamespaceInheritance = false, canSelfClose = false } = {}) {
|
|
13007
13306
|
this.closedByChildren = {};
|
|
@@ -13119,7 +13418,7 @@ function getHtmlTagDefinition(tagName) {
|
|
|
13119
13418
|
return (_b2 = (_a2 = TAG_DEFINITIONS[tagName]) != null ? _a2 : TAG_DEFINITIONS[tagName.toLowerCase()]) != null ? _b2 : DEFAULT_TAG_DEFINITION;
|
|
13120
13419
|
}
|
|
13121
13420
|
|
|
13122
|
-
// bazel-out/
|
|
13421
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/entities.mjs
|
|
13123
13422
|
var NAMED_ENTITIES = {
|
|
13124
13423
|
"AElig": "\xC6",
|
|
13125
13424
|
"AMP": "&",
|
|
@@ -15250,7 +15549,7 @@ var NAMED_ENTITIES = {
|
|
|
15250
15549
|
var NGSP_UNICODE = "\uE500";
|
|
15251
15550
|
NAMED_ENTITIES["ngsp"] = NGSP_UNICODE;
|
|
15252
15551
|
|
|
15253
|
-
// bazel-out/
|
|
15552
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/lexer.mjs
|
|
15254
15553
|
var TokenError = class extends ParseError {
|
|
15255
15554
|
constructor(errorMsg, tokenType, span) {
|
|
15256
15555
|
super(span, errorMsg);
|
|
@@ -16160,7 +16459,7 @@ var CursorError = class {
|
|
|
16160
16459
|
}
|
|
16161
16460
|
};
|
|
16162
16461
|
|
|
16163
|
-
// bazel-out/
|
|
16462
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/parser.mjs
|
|
16164
16463
|
var TreeError = class extends ParseError {
|
|
16165
16464
|
static create(elementName, span, msg) {
|
|
16166
16465
|
return new TreeError(elementName, span, msg);
|
|
@@ -16561,7 +16860,7 @@ function decodeEntity(match, entity) {
|
|
|
16561
16860
|
return match;
|
|
16562
16861
|
}
|
|
16563
16862
|
|
|
16564
|
-
// bazel-out/
|
|
16863
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/html_parser.mjs
|
|
16565
16864
|
var HtmlParser = class extends Parser2 {
|
|
16566
16865
|
constructor() {
|
|
16567
16866
|
super(getHtmlTagDefinition);
|
|
@@ -16571,7 +16870,7 @@ var HtmlParser = class extends Parser2 {
|
|
|
16571
16870
|
}
|
|
16572
16871
|
};
|
|
16573
16872
|
|
|
16574
|
-
// bazel-out/
|
|
16873
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/html_whitespaces.mjs
|
|
16575
16874
|
var PRESERVE_WS_ATTR_NAME = "ngPreserveWhitespaces";
|
|
16576
16875
|
var SKIP_WS_TRIM_TAGS = /* @__PURE__ */ new Set(["pre", "template", "textarea", "script", "style"]);
|
|
16577
16876
|
var WS_CHARS = " \f\n\r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF";
|
|
@@ -16640,7 +16939,7 @@ function visitAllWithSiblings(visitor, nodes) {
|
|
|
16640
16939
|
return result;
|
|
16641
16940
|
}
|
|
16642
16941
|
|
|
16643
|
-
// bazel-out/
|
|
16942
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/map_util.mjs
|
|
16644
16943
|
function mapLiteral(obj, quoted = false) {
|
|
16645
16944
|
return literalMap(Object.keys(obj).map((key) => ({
|
|
16646
16945
|
key,
|
|
@@ -16649,7 +16948,7 @@ function mapLiteral(obj, quoted = false) {
|
|
|
16649
16948
|
})));
|
|
16650
16949
|
}
|
|
16651
16950
|
|
|
16652
|
-
// bazel-out/
|
|
16951
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/schema/trusted_types_sinks.mjs
|
|
16653
16952
|
var TRUSTED_TYPES_SINKS = /* @__PURE__ */ new Set([
|
|
16654
16953
|
"iframe|srcdoc",
|
|
16655
16954
|
"*|innerhtml",
|
|
@@ -16664,7 +16963,7 @@ function isTrustedTypesSink(tagName, propName) {
|
|
|
16664
16963
|
return TRUSTED_TYPES_SINKS.has(tagName + "|" + propName) || TRUSTED_TYPES_SINKS.has("*|" + propName);
|
|
16665
16964
|
}
|
|
16666
16965
|
|
|
16667
|
-
// bazel-out/
|
|
16966
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template_parser/binding_parser.mjs
|
|
16668
16967
|
var PROPERTY_PARTS_SEPARATOR = ".";
|
|
16669
16968
|
var ATTRIBUTE_PREFIX = "attr";
|
|
16670
16969
|
var CLASS_PREFIX = "class";
|
|
@@ -16811,7 +17110,7 @@ var BindingParser = class {
|
|
|
16811
17110
|
if (isAnimationProp) {
|
|
16812
17111
|
this._parseAnimation(name, expression, sourceSpan, absoluteOffset, keySpan, valueSpan, targetMatchableAttrs, targetProps);
|
|
16813
17112
|
} else {
|
|
16814
|
-
this._parsePropertyAst(name, this.
|
|
17113
|
+
this._parsePropertyAst(name, this.parseBinding(expression, isHost, valueSpan || sourceSpan, absoluteOffset), sourceSpan, keySpan, valueSpan, targetMatchableAttrs, targetProps);
|
|
16815
17114
|
}
|
|
16816
17115
|
}
|
|
16817
17116
|
parsePropertyInterpolation(name, value, sourceSpan, valueSpan, targetMatchableAttrs, targetProps, keySpan, interpolatedTokens) {
|
|
@@ -16830,11 +17129,11 @@ var BindingParser = class {
|
|
|
16830
17129
|
if (name.length === 0) {
|
|
16831
17130
|
this._reportError("Animation trigger is missing", sourceSpan);
|
|
16832
17131
|
}
|
|
16833
|
-
const ast = this.
|
|
17132
|
+
const ast = this.parseBinding(expression || "undefined", false, valueSpan || sourceSpan, absoluteOffset);
|
|
16834
17133
|
targetMatchableAttrs.push([name, ast.source]);
|
|
16835
17134
|
targetProps.push(new ParsedProperty(name, ast, ParsedPropertyType.ANIMATION, sourceSpan, keySpan, valueSpan));
|
|
16836
17135
|
}
|
|
16837
|
-
|
|
17136
|
+
parseBinding(value, isHostBinding2, sourceSpan, absoluteOffset) {
|
|
16838
17137
|
const sourceInfo = (sourceSpan && sourceSpan.start || "(unknown)").toString();
|
|
16839
17138
|
try {
|
|
16840
17139
|
const ast = isHostBinding2 ? this._exprParser.parseSimpleBinding(value, sourceInfo, absoluteOffset, this._interpolationConfig) : this._exprParser.parseBinding(value, sourceInfo, absoluteOffset, this._interpolationConfig);
|
|
@@ -16984,7 +17283,7 @@ function moveParseSourceSpan(sourceSpan, absoluteSpan) {
|
|
|
16984
17283
|
return new ParseSourceSpan(sourceSpan.start.moveBy(startDiff), sourceSpan.end.moveBy(endDiff), sourceSpan.fullStart.moveBy(startDiff), sourceSpan.details);
|
|
16985
17284
|
}
|
|
16986
17285
|
|
|
16987
|
-
// bazel-out/
|
|
17286
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/style_url_resolver.mjs
|
|
16988
17287
|
function isStyleUrlResolvable(url) {
|
|
16989
17288
|
if (url == null || url.length === 0 || url[0] == "/")
|
|
16990
17289
|
return false;
|
|
@@ -16993,7 +17292,7 @@ function isStyleUrlResolvable(url) {
|
|
|
16993
17292
|
}
|
|
16994
17293
|
var URL_WITH_SCHEMA_REGEXP = /^([^:/?#]+):/;
|
|
16995
17294
|
|
|
16996
|
-
// bazel-out/
|
|
17295
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template_parser/template_preparser.mjs
|
|
16997
17296
|
var NG_CONTENT_SELECT_ATTR = "select";
|
|
16998
17297
|
var LINK_ELEMENT = "link";
|
|
16999
17298
|
var LINK_STYLE_REL_ATTR = "rel";
|
|
@@ -17063,7 +17362,361 @@ function normalizeNgContentSelect(selectAttr) {
|
|
|
17063
17362
|
return selectAttr;
|
|
17064
17363
|
}
|
|
17065
17364
|
|
|
17066
|
-
// bazel-out/
|
|
17365
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_deferred_triggers.mjs
|
|
17366
|
+
var TIME_PATTERN = /^\d+(ms|s)?$/;
|
|
17367
|
+
var SEPARATOR_PATTERN = /^\s$/;
|
|
17368
|
+
var COMMA_DELIMITED_SYNTAX = /* @__PURE__ */ new Map([
|
|
17369
|
+
[$LBRACE, $RBRACE],
|
|
17370
|
+
[$LBRACKET, $RBRACKET],
|
|
17371
|
+
[$LPAREN, $RPAREN]
|
|
17372
|
+
]);
|
|
17373
|
+
var OnTriggerType;
|
|
17374
|
+
(function(OnTriggerType2) {
|
|
17375
|
+
OnTriggerType2["IDLE"] = "idle";
|
|
17376
|
+
OnTriggerType2["TIMER"] = "timer";
|
|
17377
|
+
OnTriggerType2["INTERACTION"] = "interaction";
|
|
17378
|
+
OnTriggerType2["IMMEDIATE"] = "immediate";
|
|
17379
|
+
OnTriggerType2["HOVER"] = "hover";
|
|
17380
|
+
OnTriggerType2["VIEWPORT"] = "viewport";
|
|
17381
|
+
})(OnTriggerType || (OnTriggerType = {}));
|
|
17382
|
+
function parseWhenTrigger({ expression, sourceSpan }, bindingParser, errors) {
|
|
17383
|
+
const whenIndex = expression.indexOf("when");
|
|
17384
|
+
if (whenIndex === -1) {
|
|
17385
|
+
errors.push(new ParseError(sourceSpan, `Could not find "when" keyword in expression`));
|
|
17386
|
+
return null;
|
|
17387
|
+
}
|
|
17388
|
+
const start = getTriggerParametersStart(expression, whenIndex + 1);
|
|
17389
|
+
const parsed = bindingParser.parseBinding(expression.slice(start), false, sourceSpan, sourceSpan.start.offset + start);
|
|
17390
|
+
return new BoundDeferredTrigger(parsed, sourceSpan);
|
|
17391
|
+
}
|
|
17392
|
+
function parseOnTrigger({ expression, sourceSpan }, errors) {
|
|
17393
|
+
const onIndex = expression.indexOf("on");
|
|
17394
|
+
if (onIndex === -1) {
|
|
17395
|
+
errors.push(new ParseError(sourceSpan, `Could not find "on" keyword in expression`));
|
|
17396
|
+
return [];
|
|
17397
|
+
}
|
|
17398
|
+
const start = getTriggerParametersStart(expression, onIndex + 1);
|
|
17399
|
+
return new OnTriggerParser(expression, start, sourceSpan, errors).parse();
|
|
17400
|
+
}
|
|
17401
|
+
var OnTriggerParser = class {
|
|
17402
|
+
constructor(expression, start, span, errors) {
|
|
17403
|
+
this.expression = expression;
|
|
17404
|
+
this.start = start;
|
|
17405
|
+
this.span = span;
|
|
17406
|
+
this.errors = errors;
|
|
17407
|
+
this.index = 0;
|
|
17408
|
+
this.triggers = [];
|
|
17409
|
+
this.tokens = new Lexer().tokenize(expression.slice(start));
|
|
17410
|
+
}
|
|
17411
|
+
parse() {
|
|
17412
|
+
while (this.tokens.length > 0 && this.index < this.tokens.length) {
|
|
17413
|
+
const token = this.token();
|
|
17414
|
+
if (!token.isIdentifier()) {
|
|
17415
|
+
this.unexpectedToken(token);
|
|
17416
|
+
break;
|
|
17417
|
+
}
|
|
17418
|
+
if (this.isFollowedByOrLast($COMMA)) {
|
|
17419
|
+
this.consumeTrigger(token, []);
|
|
17420
|
+
this.advance();
|
|
17421
|
+
} else if (this.isFollowedByOrLast($LPAREN)) {
|
|
17422
|
+
this.advance();
|
|
17423
|
+
const prevErrors = this.errors.length;
|
|
17424
|
+
const parameters = this.consumeParameters();
|
|
17425
|
+
if (this.errors.length !== prevErrors) {
|
|
17426
|
+
break;
|
|
17427
|
+
}
|
|
17428
|
+
this.consumeTrigger(token, parameters);
|
|
17429
|
+
this.advance();
|
|
17430
|
+
} else if (this.index < this.tokens.length - 1) {
|
|
17431
|
+
this.unexpectedToken(this.tokens[this.index + 1]);
|
|
17432
|
+
}
|
|
17433
|
+
this.advance();
|
|
17434
|
+
}
|
|
17435
|
+
return this.triggers;
|
|
17436
|
+
}
|
|
17437
|
+
advance() {
|
|
17438
|
+
this.index++;
|
|
17439
|
+
}
|
|
17440
|
+
isFollowedByOrLast(char) {
|
|
17441
|
+
if (this.index === this.tokens.length - 1) {
|
|
17442
|
+
return true;
|
|
17443
|
+
}
|
|
17444
|
+
return this.tokens[this.index + 1].isCharacter(char);
|
|
17445
|
+
}
|
|
17446
|
+
token() {
|
|
17447
|
+
return this.tokens[Math.min(this.index, this.tokens.length - 1)];
|
|
17448
|
+
}
|
|
17449
|
+
consumeTrigger(identifier, parameters) {
|
|
17450
|
+
const startSpan = this.span.start.moveBy(this.start + identifier.index - this.tokens[0].index);
|
|
17451
|
+
const endSpan = startSpan.moveBy(this.token().end - identifier.index);
|
|
17452
|
+
const sourceSpan = new ParseSourceSpan(startSpan, endSpan);
|
|
17453
|
+
try {
|
|
17454
|
+
switch (identifier.toString()) {
|
|
17455
|
+
case OnTriggerType.IDLE:
|
|
17456
|
+
this.triggers.push(createIdleTrigger(parameters, sourceSpan));
|
|
17457
|
+
break;
|
|
17458
|
+
case OnTriggerType.TIMER:
|
|
17459
|
+
this.triggers.push(createTimerTrigger(parameters, sourceSpan));
|
|
17460
|
+
break;
|
|
17461
|
+
case OnTriggerType.INTERACTION:
|
|
17462
|
+
this.triggers.push(createInteractionTrigger(parameters, sourceSpan));
|
|
17463
|
+
break;
|
|
17464
|
+
case OnTriggerType.IMMEDIATE:
|
|
17465
|
+
this.triggers.push(createImmediateTrigger(parameters, sourceSpan));
|
|
17466
|
+
break;
|
|
17467
|
+
case OnTriggerType.HOVER:
|
|
17468
|
+
this.triggers.push(createHoverTrigger(parameters, sourceSpan));
|
|
17469
|
+
break;
|
|
17470
|
+
case OnTriggerType.VIEWPORT:
|
|
17471
|
+
this.triggers.push(createViewportTrigger(parameters, sourceSpan));
|
|
17472
|
+
break;
|
|
17473
|
+
default:
|
|
17474
|
+
throw new Error(`Unrecognized trigger type "${identifier}"`);
|
|
17475
|
+
}
|
|
17476
|
+
} catch (e) {
|
|
17477
|
+
this.error(identifier, e.message);
|
|
17478
|
+
}
|
|
17479
|
+
}
|
|
17480
|
+
consumeParameters() {
|
|
17481
|
+
const parameters = [];
|
|
17482
|
+
if (!this.token().isCharacter($LPAREN)) {
|
|
17483
|
+
this.unexpectedToken(this.token());
|
|
17484
|
+
return parameters;
|
|
17485
|
+
}
|
|
17486
|
+
this.advance();
|
|
17487
|
+
const commaDelimStack = [];
|
|
17488
|
+
let current = "";
|
|
17489
|
+
while (this.index < this.tokens.length) {
|
|
17490
|
+
const token = this.token();
|
|
17491
|
+
if (token.isCharacter($RPAREN) && commaDelimStack.length === 0) {
|
|
17492
|
+
if (current.length) {
|
|
17493
|
+
parameters.push(current);
|
|
17494
|
+
}
|
|
17495
|
+
break;
|
|
17496
|
+
}
|
|
17497
|
+
if (token.type === TokenType.Character && COMMA_DELIMITED_SYNTAX.has(token.numValue)) {
|
|
17498
|
+
commaDelimStack.push(COMMA_DELIMITED_SYNTAX.get(token.numValue));
|
|
17499
|
+
}
|
|
17500
|
+
if (commaDelimStack.length > 0 && token.isCharacter(commaDelimStack[commaDelimStack.length - 1])) {
|
|
17501
|
+
commaDelimStack.pop();
|
|
17502
|
+
}
|
|
17503
|
+
if (commaDelimStack.length === 0 && token.isCharacter($COMMA) && current.length > 0) {
|
|
17504
|
+
parameters.push(current);
|
|
17505
|
+
current = "";
|
|
17506
|
+
this.advance();
|
|
17507
|
+
continue;
|
|
17508
|
+
}
|
|
17509
|
+
current += this.tokenText();
|
|
17510
|
+
this.advance();
|
|
17511
|
+
}
|
|
17512
|
+
if (!this.token().isCharacter($RPAREN) || commaDelimStack.length > 0) {
|
|
17513
|
+
this.error(this.token(), "Unexpected end of expression");
|
|
17514
|
+
}
|
|
17515
|
+
if (this.index < this.tokens.length - 1 && !this.tokens[this.index + 1].isCharacter($COMMA)) {
|
|
17516
|
+
this.unexpectedToken(this.tokens[this.index + 1]);
|
|
17517
|
+
}
|
|
17518
|
+
return parameters;
|
|
17519
|
+
}
|
|
17520
|
+
tokenText() {
|
|
17521
|
+
return this.expression.slice(this.start + this.token().index, this.start + this.token().end);
|
|
17522
|
+
}
|
|
17523
|
+
error(token, message) {
|
|
17524
|
+
const newStart = this.span.start.moveBy(this.start + token.index);
|
|
17525
|
+
const newEnd = newStart.moveBy(token.end - token.index);
|
|
17526
|
+
this.errors.push(new ParseError(new ParseSourceSpan(newStart, newEnd), message));
|
|
17527
|
+
}
|
|
17528
|
+
unexpectedToken(token) {
|
|
17529
|
+
this.error(token, `Unexpected token "${token}"`);
|
|
17530
|
+
}
|
|
17531
|
+
};
|
|
17532
|
+
function createIdleTrigger(parameters, sourceSpan) {
|
|
17533
|
+
if (parameters.length > 0) {
|
|
17534
|
+
throw new Error(`"${OnTriggerType.IDLE}" trigger cannot have parameters`);
|
|
17535
|
+
}
|
|
17536
|
+
return new IdleDeferredTrigger(sourceSpan);
|
|
17537
|
+
}
|
|
17538
|
+
function createTimerTrigger(parameters, sourceSpan) {
|
|
17539
|
+
if (parameters.length !== 1) {
|
|
17540
|
+
throw new Error(`"${OnTriggerType.TIMER}" trigger must have exactly one parameter`);
|
|
17541
|
+
}
|
|
17542
|
+
const delay = parseDeferredTime(parameters[0]);
|
|
17543
|
+
if (delay === null) {
|
|
17544
|
+
throw new Error(`Could not parse time value of trigger "${OnTriggerType.TIMER}"`);
|
|
17545
|
+
}
|
|
17546
|
+
return new TimerDeferredTrigger(delay, sourceSpan);
|
|
17547
|
+
}
|
|
17548
|
+
function createInteractionTrigger(parameters, sourceSpan) {
|
|
17549
|
+
var _a2;
|
|
17550
|
+
if (parameters.length > 1) {
|
|
17551
|
+
throw new Error(`"${OnTriggerType.INTERACTION}" trigger can only have zero or one parameters`);
|
|
17552
|
+
}
|
|
17553
|
+
return new InteractionDeferredTrigger((_a2 = parameters[0]) != null ? _a2 : null, sourceSpan);
|
|
17554
|
+
}
|
|
17555
|
+
function createImmediateTrigger(parameters, sourceSpan) {
|
|
17556
|
+
if (parameters.length > 0) {
|
|
17557
|
+
throw new Error(`"${OnTriggerType.IMMEDIATE}" trigger cannot have parameters`);
|
|
17558
|
+
}
|
|
17559
|
+
return new ImmediateDeferredTrigger(sourceSpan);
|
|
17560
|
+
}
|
|
17561
|
+
function createHoverTrigger(parameters, sourceSpan) {
|
|
17562
|
+
if (parameters.length > 0) {
|
|
17563
|
+
throw new Error(`"${OnTriggerType.HOVER}" trigger cannot have parameters`);
|
|
17564
|
+
}
|
|
17565
|
+
return new HoverDeferredTrigger(sourceSpan);
|
|
17566
|
+
}
|
|
17567
|
+
function createViewportTrigger(parameters, sourceSpan) {
|
|
17568
|
+
var _a2;
|
|
17569
|
+
if (parameters.length > 1) {
|
|
17570
|
+
throw new Error(`"${OnTriggerType.VIEWPORT}" trigger can only have zero or one parameters`);
|
|
17571
|
+
}
|
|
17572
|
+
return new ViewportDeferredTrigger((_a2 = parameters[0]) != null ? _a2 : null, sourceSpan);
|
|
17573
|
+
}
|
|
17574
|
+
function getTriggerParametersStart(value, startPosition = 0) {
|
|
17575
|
+
let hasFoundSeparator = false;
|
|
17576
|
+
for (let i = startPosition; i < value.length; i++) {
|
|
17577
|
+
if (SEPARATOR_PATTERN.test(value[i])) {
|
|
17578
|
+
hasFoundSeparator = true;
|
|
17579
|
+
} else if (hasFoundSeparator) {
|
|
17580
|
+
return i;
|
|
17581
|
+
}
|
|
17582
|
+
}
|
|
17583
|
+
return -1;
|
|
17584
|
+
}
|
|
17585
|
+
function parseDeferredTime(value) {
|
|
17586
|
+
const match = value.match(TIME_PATTERN);
|
|
17587
|
+
if (!match) {
|
|
17588
|
+
return null;
|
|
17589
|
+
}
|
|
17590
|
+
const [time, units] = match;
|
|
17591
|
+
return parseInt(time) * (units === "s" ? 1e3 : 1);
|
|
17592
|
+
}
|
|
17593
|
+
|
|
17594
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_deferred_blocks.mjs
|
|
17595
|
+
var PREFETCH_WHEN_PATTERN = /^prefetch\s+when\s/;
|
|
17596
|
+
var PREFETCH_ON_PATTERN = /^prefetch\s+on\s/;
|
|
17597
|
+
var MINIMUM_PARAMETER_PATTERN = /^minimum\s/;
|
|
17598
|
+
var AFTER_PARAMETER_PATTERN = /^after\s/;
|
|
17599
|
+
var WHEN_PARAMETER_PATTERN = /^when\s/;
|
|
17600
|
+
var ON_PARAMETER_PATTERN = /^on\s/;
|
|
17601
|
+
var SecondaryDeferredBlockType;
|
|
17602
|
+
(function(SecondaryDeferredBlockType2) {
|
|
17603
|
+
SecondaryDeferredBlockType2["PLACEHOLDER"] = "placeholder";
|
|
17604
|
+
SecondaryDeferredBlockType2["LOADING"] = "loading";
|
|
17605
|
+
SecondaryDeferredBlockType2["ERROR"] = "error";
|
|
17606
|
+
})(SecondaryDeferredBlockType || (SecondaryDeferredBlockType = {}));
|
|
17607
|
+
function createDeferredBlock(ast, visitor, bindingParser) {
|
|
17608
|
+
const errors = [];
|
|
17609
|
+
const [primaryBlock, ...secondaryBlocks] = ast.blocks;
|
|
17610
|
+
const { triggers, prefetchTriggers } = parsePrimaryTriggers(primaryBlock.parameters, bindingParser, errors);
|
|
17611
|
+
const { placeholder, loading, error: error2 } = parseSecondaryBlocks(secondaryBlocks, errors, visitor);
|
|
17612
|
+
return {
|
|
17613
|
+
node: new DeferredBlock(visitAll2(visitor, primaryBlock.children), triggers, prefetchTriggers, placeholder, loading, error2, ast.sourceSpan, ast.startSourceSpan, ast.endSourceSpan),
|
|
17614
|
+
errors
|
|
17615
|
+
};
|
|
17616
|
+
}
|
|
17617
|
+
function parseSecondaryBlocks(blocks, errors, visitor) {
|
|
17618
|
+
let placeholder = null;
|
|
17619
|
+
let loading = null;
|
|
17620
|
+
let error2 = null;
|
|
17621
|
+
for (const block of blocks) {
|
|
17622
|
+
try {
|
|
17623
|
+
switch (block.name) {
|
|
17624
|
+
case SecondaryDeferredBlockType.PLACEHOLDER:
|
|
17625
|
+
if (placeholder !== null) {
|
|
17626
|
+
errors.push(new ParseError(block.startSourceSpan, `"defer" block can only have one "${SecondaryDeferredBlockType.PLACEHOLDER}" block`));
|
|
17627
|
+
} else {
|
|
17628
|
+
placeholder = parsePlaceholderBlock(block, visitor);
|
|
17629
|
+
}
|
|
17630
|
+
break;
|
|
17631
|
+
case SecondaryDeferredBlockType.LOADING:
|
|
17632
|
+
if (loading !== null) {
|
|
17633
|
+
errors.push(new ParseError(block.startSourceSpan, `"defer" block can only have one "${SecondaryDeferredBlockType.LOADING}" block`));
|
|
17634
|
+
} else {
|
|
17635
|
+
loading = parseLoadingBlock(block, visitor);
|
|
17636
|
+
}
|
|
17637
|
+
break;
|
|
17638
|
+
case SecondaryDeferredBlockType.ERROR:
|
|
17639
|
+
if (error2 !== null) {
|
|
17640
|
+
errors.push(new ParseError(block.startSourceSpan, `"defer" block can only have one "${SecondaryDeferredBlockType.ERROR}" block`));
|
|
17641
|
+
} else {
|
|
17642
|
+
error2 = parseErrorBlock(block, visitor);
|
|
17643
|
+
}
|
|
17644
|
+
break;
|
|
17645
|
+
default:
|
|
17646
|
+
errors.push(new ParseError(block.startSourceSpan, `Unrecognized block "${block.name}"`));
|
|
17647
|
+
break;
|
|
17648
|
+
}
|
|
17649
|
+
} catch (e) {
|
|
17650
|
+
errors.push(new ParseError(block.startSourceSpan, e.message));
|
|
17651
|
+
}
|
|
17652
|
+
}
|
|
17653
|
+
return { placeholder, loading, error: error2 };
|
|
17654
|
+
}
|
|
17655
|
+
function parsePlaceholderBlock(ast, visitor) {
|
|
17656
|
+
let minimumTime = null;
|
|
17657
|
+
for (const param of ast.parameters) {
|
|
17658
|
+
if (MINIMUM_PARAMETER_PATTERN.test(param.expression)) {
|
|
17659
|
+
const parsedTime = parseDeferredTime(param.expression.slice(getTriggerParametersStart(param.expression)));
|
|
17660
|
+
if (parsedTime === null) {
|
|
17661
|
+
throw new Error(`Could not parse time value of parameter "minimum"`);
|
|
17662
|
+
}
|
|
17663
|
+
minimumTime = parsedTime;
|
|
17664
|
+
} else {
|
|
17665
|
+
throw new Error(`Unrecognized parameter in "${SecondaryDeferredBlockType.PLACEHOLDER}" block: "${param.expression}"`);
|
|
17666
|
+
}
|
|
17667
|
+
}
|
|
17668
|
+
return new DeferredBlockPlaceholder(visitAll2(visitor, ast.children), minimumTime, ast.sourceSpan, ast.startSourceSpan, ast.endSourceSpan);
|
|
17669
|
+
}
|
|
17670
|
+
function parseLoadingBlock(ast, visitor) {
|
|
17671
|
+
let afterTime = null;
|
|
17672
|
+
let minimumTime = null;
|
|
17673
|
+
for (const param of ast.parameters) {
|
|
17674
|
+
if (AFTER_PARAMETER_PATTERN.test(param.expression)) {
|
|
17675
|
+
const parsedTime = parseDeferredTime(param.expression.slice(getTriggerParametersStart(param.expression)));
|
|
17676
|
+
if (parsedTime === null) {
|
|
17677
|
+
throw new Error(`Could not parse time value of parameter "after"`);
|
|
17678
|
+
}
|
|
17679
|
+
afterTime = parsedTime;
|
|
17680
|
+
} else if (MINIMUM_PARAMETER_PATTERN.test(param.expression)) {
|
|
17681
|
+
const parsedTime = parseDeferredTime(param.expression.slice(getTriggerParametersStart(param.expression)));
|
|
17682
|
+
if (parsedTime === null) {
|
|
17683
|
+
throw new Error(`Could not parse time value of parameter "minimum"`);
|
|
17684
|
+
}
|
|
17685
|
+
minimumTime = parsedTime;
|
|
17686
|
+
} else {
|
|
17687
|
+
throw new Error(`Unrecognized parameter in "${SecondaryDeferredBlockType.LOADING}" block: "${param.expression}"`);
|
|
17688
|
+
}
|
|
17689
|
+
}
|
|
17690
|
+
return new DeferredBlockLoading(visitAll2(visitor, ast.children), afterTime, minimumTime, ast.sourceSpan, ast.startSourceSpan, ast.endSourceSpan);
|
|
17691
|
+
}
|
|
17692
|
+
function parseErrorBlock(ast, visitor) {
|
|
17693
|
+
if (ast.parameters.length > 0) {
|
|
17694
|
+
throw new Error(`"${SecondaryDeferredBlockType.ERROR}" block cannot have parameters`);
|
|
17695
|
+
}
|
|
17696
|
+
return new DeferredBlockError(visitAll2(visitor, ast.children), ast.sourceSpan, ast.startSourceSpan, ast.endSourceSpan);
|
|
17697
|
+
}
|
|
17698
|
+
function parsePrimaryTriggers(params, bindingParser, errors) {
|
|
17699
|
+
const triggers = [];
|
|
17700
|
+
const prefetchTriggers = [];
|
|
17701
|
+
for (const param of params) {
|
|
17702
|
+
if (WHEN_PARAMETER_PATTERN.test(param.expression)) {
|
|
17703
|
+
const result = parseWhenTrigger(param, bindingParser, errors);
|
|
17704
|
+
result !== null && triggers.push(result);
|
|
17705
|
+
} else if (ON_PARAMETER_PATTERN.test(param.expression)) {
|
|
17706
|
+
triggers.push(...parseOnTrigger(param, errors));
|
|
17707
|
+
} else if (PREFETCH_WHEN_PATTERN.test(param.expression)) {
|
|
17708
|
+
const result = parseWhenTrigger(param, bindingParser, errors);
|
|
17709
|
+
result !== null && prefetchTriggers.push(result);
|
|
17710
|
+
} else if (PREFETCH_ON_PATTERN.test(param.expression)) {
|
|
17711
|
+
prefetchTriggers.push(...parseOnTrigger(param, errors));
|
|
17712
|
+
} else {
|
|
17713
|
+
errors.push(new ParseError(param.sourceSpan, "Unrecognized trigger"));
|
|
17714
|
+
}
|
|
17715
|
+
}
|
|
17716
|
+
return { triggers, prefetchTriggers };
|
|
17717
|
+
}
|
|
17718
|
+
|
|
17719
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_template_transform.mjs
|
|
17067
17720
|
var BIND_NAME_REGEXP = /^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/;
|
|
17068
17721
|
var KW_BIND_IDX = 1;
|
|
17069
17722
|
var KW_LET_IDX = 2;
|
|
@@ -17162,7 +17815,12 @@ var HtmlAstToIvyAst = class {
|
|
|
17162
17815
|
attributes.push(this.visitAttribute(attribute2));
|
|
17163
17816
|
}
|
|
17164
17817
|
}
|
|
17165
|
-
|
|
17818
|
+
let children;
|
|
17819
|
+
if (preparsedElement.nonBindable) {
|
|
17820
|
+
children = visitAll2(NON_BINDABLE_VISITOR, element2.children).flat(Infinity);
|
|
17821
|
+
} else {
|
|
17822
|
+
children = visitAll2(this, element2.children);
|
|
17823
|
+
}
|
|
17166
17824
|
let parsedElement;
|
|
17167
17825
|
if (preparsedElement.type === PreparsedElementType.NG_CONTENT) {
|
|
17168
17826
|
if (element2.children && !element2.children.every((node) => isEmptyTextNode(node) || isCommentNode(node))) {
|
|
@@ -17236,13 +17894,22 @@ var HtmlAstToIvyAst = class {
|
|
|
17236
17894
|
return null;
|
|
17237
17895
|
}
|
|
17238
17896
|
visitBlockGroup(group, context) {
|
|
17239
|
-
|
|
17897
|
+
const primaryBlock = group.blocks[0];
|
|
17898
|
+
if (!primaryBlock) {
|
|
17899
|
+
this.reportError("Block group must have at least one block.", group.sourceSpan);
|
|
17900
|
+
return null;
|
|
17901
|
+
}
|
|
17902
|
+
if (primaryBlock.name === "defer" && this.options.enabledBlockTypes.has(primaryBlock.name)) {
|
|
17903
|
+
const { node, errors } = createDeferredBlock(group, this, this.bindingParser);
|
|
17904
|
+
this.errors.push(...errors);
|
|
17905
|
+
return node;
|
|
17906
|
+
}
|
|
17907
|
+
this.reportError(`Unrecognized block "${primaryBlock.name}".`, primaryBlock.sourceSpan);
|
|
17908
|
+
return null;
|
|
17240
17909
|
}
|
|
17241
17910
|
visitBlock(block, context) {
|
|
17242
|
-
throw new Error("TODO");
|
|
17243
17911
|
}
|
|
17244
17912
|
visitBlockParameter(parameter, context) {
|
|
17245
|
-
throw new Error("TODO");
|
|
17246
17913
|
}
|
|
17247
17914
|
extractAttributes(elementName, properties, i18nPropsMeta) {
|
|
17248
17915
|
const bound = [];
|
|
@@ -17399,13 +18066,20 @@ var NonBindableVisitor = class {
|
|
|
17399
18066
|
return null;
|
|
17400
18067
|
}
|
|
17401
18068
|
visitBlockGroup(group, context) {
|
|
17402
|
-
|
|
18069
|
+
const nodes = visitAll2(this, group.blocks);
|
|
18070
|
+
if (group.endSourceSpan !== null) {
|
|
18071
|
+
nodes.push(new Text(group.endSourceSpan.toString(), group.endSourceSpan));
|
|
18072
|
+
}
|
|
18073
|
+
return nodes;
|
|
17403
18074
|
}
|
|
17404
18075
|
visitBlock(block, context) {
|
|
17405
|
-
|
|
18076
|
+
return [
|
|
18077
|
+
new Text(block.startSourceSpan.toString(), block.startSourceSpan),
|
|
18078
|
+
...visitAll2(this, block.children)
|
|
18079
|
+
];
|
|
17406
18080
|
}
|
|
17407
18081
|
visitBlockParameter(parameter, context) {
|
|
17408
|
-
|
|
18082
|
+
return null;
|
|
17409
18083
|
}
|
|
17410
18084
|
};
|
|
17411
18085
|
var NON_BINDABLE_VISITOR = new NonBindableVisitor();
|
|
@@ -17429,7 +18103,7 @@ function textContents(node) {
|
|
|
17429
18103
|
}
|
|
17430
18104
|
}
|
|
17431
18105
|
|
|
17432
|
-
// bazel-out/
|
|
18106
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/context.mjs
|
|
17433
18107
|
var TagType;
|
|
17434
18108
|
(function(TagType2) {
|
|
17435
18109
|
TagType2[TagType2["ELEMENT"] = 0] = "ELEMENT";
|
|
@@ -17564,7 +18238,7 @@ function serializePlaceholderValue(value) {
|
|
|
17564
18238
|
}
|
|
17565
18239
|
}
|
|
17566
18240
|
|
|
17567
|
-
// bazel-out/
|
|
18241
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/icu_serializer.mjs
|
|
17568
18242
|
var IcuSerializerVisitor = class {
|
|
17569
18243
|
visitText(text2) {
|
|
17570
18244
|
return text2.value;
|
|
@@ -17595,7 +18269,7 @@ function serializeIcuNode(icu) {
|
|
|
17595
18269
|
return icu.visit(serializer);
|
|
17596
18270
|
}
|
|
17597
18271
|
|
|
17598
|
-
// bazel-out/
|
|
18272
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/placeholder.mjs
|
|
17599
18273
|
var TAG_TO_PLACEHOLDER_NAMES = {
|
|
17600
18274
|
"A": "LINK",
|
|
17601
18275
|
"B": "BOLD_TEXT",
|
|
@@ -17689,7 +18363,7 @@ var PlaceholderRegistry = class {
|
|
|
17689
18363
|
}
|
|
17690
18364
|
};
|
|
17691
18365
|
|
|
17692
|
-
// bazel-out/
|
|
18366
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/i18n_parser.mjs
|
|
17693
18367
|
var _expParser = new Parser(new Lexer());
|
|
17694
18368
|
function createI18nMessageFactory(interpolationConfig) {
|
|
17695
18369
|
const visitor = new _I18nVisitor(_expParser, interpolationConfig);
|
|
@@ -17856,14 +18530,14 @@ function extractPlaceholderName(input) {
|
|
|
17856
18530
|
return input.split(_CUSTOM_PH_EXP)[2];
|
|
17857
18531
|
}
|
|
17858
18532
|
|
|
17859
|
-
// bazel-out/
|
|
18533
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/parse_util.mjs
|
|
17860
18534
|
var I18nError = class extends ParseError {
|
|
17861
18535
|
constructor(span, msg) {
|
|
17862
18536
|
super(span, msg);
|
|
17863
18537
|
}
|
|
17864
18538
|
};
|
|
17865
18539
|
|
|
17866
|
-
// bazel-out/
|
|
18540
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/meta.mjs
|
|
17867
18541
|
var setI18nRefs = (htmlNode, i18nNode) => {
|
|
17868
18542
|
if (htmlNode instanceof NodeWithI18n) {
|
|
17869
18543
|
if (i18nNode instanceof IcuPlaceholder && htmlNode.i18n instanceof Message) {
|
|
@@ -18023,7 +18697,7 @@ function i18nMetaToJSDoc(meta) {
|
|
|
18023
18697
|
return jsDocComment(tags);
|
|
18024
18698
|
}
|
|
18025
18699
|
|
|
18026
|
-
// bazel-out/
|
|
18700
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/get_msg_utils.mjs
|
|
18027
18701
|
var GOOG_GET_MSG = "goog.getMsg";
|
|
18028
18702
|
function createGoogleGetMsgStatements(variable2, message, closureVar, placeholderValues) {
|
|
18029
18703
|
const messageString = serializeI18nMessageForGetMsg(message);
|
|
@@ -18071,7 +18745,7 @@ function serializeI18nMessageForGetMsg(message) {
|
|
|
18071
18745
|
return message.nodes.map((node) => node.visit(serializerVisitor2, null)).join("");
|
|
18072
18746
|
}
|
|
18073
18747
|
|
|
18074
|
-
// bazel-out/
|
|
18748
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/localize_utils.mjs
|
|
18075
18749
|
function createLocalizeStatements(variable2, message, params) {
|
|
18076
18750
|
const { messageParts, placeHolders } = serializeI18nMessageForLocalize(message);
|
|
18077
18751
|
const sourceSpan = getSourceSpan(message);
|
|
@@ -18154,7 +18828,7 @@ function createEmptyMessagePart(location) {
|
|
|
18154
18828
|
return new LiteralPiece("", new ParseSourceSpan(location, location));
|
|
18155
18829
|
}
|
|
18156
18830
|
|
|
18157
|
-
// bazel-out/
|
|
18831
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/template.mjs
|
|
18158
18832
|
var NG_CONTENT_SELECT_ATTR2 = "select";
|
|
18159
18833
|
var NG_PROJECT_AS_ATTR_NAME = "ngProjectAs";
|
|
18160
18834
|
var EVENT_BINDING_SCOPE_GLOBALS = /* @__PURE__ */ new Set(["$event"]);
|
|
@@ -18762,6 +19436,16 @@ var TemplateDefinitionBuilder = class {
|
|
|
18762
19436
|
}
|
|
18763
19437
|
return null;
|
|
18764
19438
|
}
|
|
19439
|
+
visitDeferredBlock(deferred) {
|
|
19440
|
+
}
|
|
19441
|
+
visitDeferredTrigger(trigger) {
|
|
19442
|
+
}
|
|
19443
|
+
visitDeferredBlockPlaceholder(block) {
|
|
19444
|
+
}
|
|
19445
|
+
visitDeferredBlockError(block) {
|
|
19446
|
+
}
|
|
19447
|
+
visitDeferredBlockLoading(block) {
|
|
19448
|
+
}
|
|
18765
19449
|
allocateDataSlot() {
|
|
18766
19450
|
return this._dataIndex++;
|
|
18767
19451
|
}
|
|
@@ -19324,7 +20008,12 @@ function parseTemplate(template2, templateUrl, options = {}) {
|
|
|
19324
20008
|
const { interpolationConfig, preserveWhitespaces, enableI18nLegacyMessageIdFormat } = options;
|
|
19325
20009
|
const bindingParser = makeBindingParser(interpolationConfig);
|
|
19326
20010
|
const htmlParser = new HtmlParser();
|
|
19327
|
-
const parseResult = htmlParser.parse(template2, templateUrl, __spreadProps(__spreadValues({
|
|
20011
|
+
const parseResult = htmlParser.parse(template2, templateUrl, __spreadProps(__spreadValues({
|
|
20012
|
+
leadingTriviaChars: LEADING_TRIVIA_CHARS
|
|
20013
|
+
}, options), {
|
|
20014
|
+
tokenizeExpansionForms: true,
|
|
20015
|
+
tokenizeBlocks: options.enabledBlockTypes != null && options.enabledBlockTypes.size > 0
|
|
20016
|
+
}));
|
|
19328
20017
|
if (!options.alwaysAttemptHtmlToR3AstConversion && parseResult.errors && parseResult.errors.length > 0) {
|
|
19329
20018
|
const parsedTemplate2 = {
|
|
19330
20019
|
interpolationConfig,
|
|
@@ -19365,7 +20054,10 @@ function parseTemplate(template2, templateUrl, options = {}) {
|
|
|
19365
20054
|
rootNodes = visitAll2(new I18nMetaVisitor(interpolationConfig, false), rootNodes);
|
|
19366
20055
|
}
|
|
19367
20056
|
}
|
|
19368
|
-
const { nodes, errors, styleUrls, styles, ngContentSelectors, commentNodes } = htmlAstToRender3Ast(rootNodes, bindingParser, {
|
|
20057
|
+
const { nodes, errors, styleUrls, styles, ngContentSelectors, commentNodes } = htmlAstToRender3Ast(rootNodes, bindingParser, {
|
|
20058
|
+
collectCommentNodes: !!options.collectCommentNodes,
|
|
20059
|
+
enabledBlockTypes: options.enabledBlockTypes || /* @__PURE__ */ new Set()
|
|
20060
|
+
});
|
|
19369
20061
|
errors.push(...parseResult.errors, ...i18nMetaResult.errors);
|
|
19370
20062
|
const parsedTemplate = {
|
|
19371
20063
|
interpolationConfig,
|
|
@@ -19456,7 +20148,7 @@ function createClosureModeGuard() {
|
|
|
19456
20148
|
return typeofExpr(variable(NG_I18N_CLOSURE_MODE)).notIdentical(literal("undefined", STRING_TYPE)).and(variable(NG_I18N_CLOSURE_MODE));
|
|
19457
20149
|
}
|
|
19458
20150
|
|
|
19459
|
-
// bazel-out/
|
|
20151
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/compiler.mjs
|
|
19460
20152
|
var ATTR_REGEX = /attr\.([^\]]+)/;
|
|
19461
20153
|
var COMPONENT_VARIABLE = "%COMP%";
|
|
19462
20154
|
var HOST_ATTR = `_nghost-${COMPONENT_VARIABLE}`;
|
|
@@ -20016,11 +20708,11 @@ function createHostDirectivesMappingArray(mapping) {
|
|
|
20016
20708
|
return elements.length > 0 ? literalArr(elements) : null;
|
|
20017
20709
|
}
|
|
20018
20710
|
|
|
20019
|
-
// bazel-out/
|
|
20711
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/resource_loader.mjs
|
|
20020
20712
|
var ResourceLoader = class {
|
|
20021
20713
|
};
|
|
20022
20714
|
|
|
20023
|
-
// bazel-out/
|
|
20715
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/jit_compiler_facade.mjs
|
|
20024
20716
|
var CompilerFacadeImpl = class {
|
|
20025
20717
|
constructor(jitEvaluator = new JitEvaluator()) {
|
|
20026
20718
|
this.jitEvaluator = jitEvaluator;
|
|
@@ -20391,7 +21083,11 @@ function convertPipeDeclarationToMetadata(pipe2) {
|
|
|
20391
21083
|
}
|
|
20392
21084
|
function parseJitTemplate(template2, typeName, sourceMapUrl, preserveWhitespaces, interpolation) {
|
|
20393
21085
|
const interpolationConfig = interpolation ? InterpolationConfig.fromArray(interpolation) : DEFAULT_INTERPOLATION_CONFIG;
|
|
20394
|
-
const parsed = parseTemplate(template2, sourceMapUrl, {
|
|
21086
|
+
const parsed = parseTemplate(template2, sourceMapUrl, {
|
|
21087
|
+
preserveWhitespaces,
|
|
21088
|
+
interpolationConfig,
|
|
21089
|
+
enabledBlockTypes: /* @__PURE__ */ new Set()
|
|
21090
|
+
});
|
|
20395
21091
|
if (parsed.errors !== null) {
|
|
20396
21092
|
const errors = parsed.errors.map((err) => err.toString()).join(", ");
|
|
20397
21093
|
throw new Error(`Errors during JIT compilation of template for ${typeName}: ${errors}`);
|
|
@@ -20431,9 +21127,9 @@ function convertR3DeclareDependencyMetadata(facade) {
|
|
|
20431
21127
|
const token = facade.token === null ? null : new WrappedNodeExpr(facade.token);
|
|
20432
21128
|
return createR3DependencyMetadata(token, isAttributeDep, (_b2 = facade.host) != null ? _b2 : false, (_c2 = facade.optional) != null ? _c2 : false, (_d2 = facade.self) != null ? _d2 : false, (_e2 = facade.skipSelf) != null ? _e2 : false);
|
|
20433
21129
|
}
|
|
20434
|
-
function createR3DependencyMetadata(token, isAttributeDep, host, optional,
|
|
21130
|
+
function createR3DependencyMetadata(token, isAttributeDep, host, optional, self, skipSelf) {
|
|
20435
21131
|
const attributeNameType = isAttributeDep ? literal("unknown") : null;
|
|
20436
|
-
return { token, attributeNameType, host, optional, self
|
|
21132
|
+
return { token, attributeNameType, host, optional, self, skipSelf };
|
|
20437
21133
|
}
|
|
20438
21134
|
function extractHostBindings(propMetadata, sourceSpan, host) {
|
|
20439
21135
|
const bindings = parseHostBindings(host || {});
|
|
@@ -20539,15 +21235,15 @@ function convertDeclareInjectorFacadeToMetadata(declaration) {
|
|
|
20539
21235
|
imports: declaration.imports !== void 0 ? declaration.imports.map((i) => new WrappedNodeExpr(i)) : []
|
|
20540
21236
|
};
|
|
20541
21237
|
}
|
|
20542
|
-
function publishFacade(
|
|
20543
|
-
const ng =
|
|
21238
|
+
function publishFacade(global) {
|
|
21239
|
+
const ng = global.ng || (global.ng = {});
|
|
20544
21240
|
ng.\u0275compilerFacade = new CompilerFacadeImpl();
|
|
20545
21241
|
}
|
|
20546
21242
|
|
|
20547
|
-
// bazel-out/
|
|
20548
|
-
var VERSION2 = new Version("16.2.0-next.
|
|
21243
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/version.mjs
|
|
21244
|
+
var VERSION2 = new Version("16.2.0-next.3");
|
|
20549
21245
|
|
|
20550
|
-
// bazel-out/
|
|
21246
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
|
|
20551
21247
|
var _I18N_ATTR = "i18n";
|
|
20552
21248
|
var _I18N_ATTR_PREFIX = "i18n-";
|
|
20553
21249
|
var _I18N_COMMENT_PREFIX_REGEXP = /^i18n:?/;
|
|
@@ -20859,7 +21555,7 @@ function _parseMessageMeta(i18n) {
|
|
|
20859
21555
|
return { meaning, description, id: id.trim() };
|
|
20860
21556
|
}
|
|
20861
21557
|
|
|
20862
|
-
// bazel-out/
|
|
21558
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/xml_tags.mjs
|
|
20863
21559
|
var XmlTagDefinition = class {
|
|
20864
21560
|
constructor() {
|
|
20865
21561
|
this.closedByParent = false;
|
|
@@ -20884,7 +21580,7 @@ function getXmlTagDefinition(tagName) {
|
|
|
20884
21580
|
return _TAG_DEFINITION;
|
|
20885
21581
|
}
|
|
20886
21582
|
|
|
20887
|
-
// bazel-out/
|
|
21583
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/xml_parser.mjs
|
|
20888
21584
|
var XmlParser = class extends Parser2 {
|
|
20889
21585
|
constructor() {
|
|
20890
21586
|
super(getXmlTagDefinition);
|
|
@@ -20894,7 +21590,7 @@ var XmlParser = class extends Parser2 {
|
|
|
20894
21590
|
}
|
|
20895
21591
|
};
|
|
20896
21592
|
|
|
20897
|
-
// bazel-out/
|
|
21593
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/xliff.mjs
|
|
20898
21594
|
var _VERSION = "1.2";
|
|
20899
21595
|
var _XMLNS = "urn:oasis:names:tc:xliff:document:1.2";
|
|
20900
21596
|
var _DEFAULT_SOURCE_LANG = "en";
|
|
@@ -21146,7 +21842,7 @@ function getCtypeForTag(tag) {
|
|
|
21146
21842
|
}
|
|
21147
21843
|
}
|
|
21148
21844
|
|
|
21149
|
-
// bazel-out/
|
|
21845
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/xliff2.mjs
|
|
21150
21846
|
var _VERSION2 = "2.0";
|
|
21151
21847
|
var _XMLNS2 = "urn:oasis:names:tc:xliff:document:2.0";
|
|
21152
21848
|
var _DEFAULT_SOURCE_LANG2 = "en";
|
|
@@ -21449,7 +22145,7 @@ function getTypeForTag(tag) {
|
|
|
21449
22145
|
}
|
|
21450
22146
|
}
|
|
21451
22147
|
|
|
21452
|
-
// bazel-out/
|
|
22148
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/message_bundle.mjs
|
|
21453
22149
|
var MessageBundle = class {
|
|
21454
22150
|
constructor(_htmlParser, _implicitTags, _implicitAttrs, _locale = null) {
|
|
21455
22151
|
this._htmlParser = _htmlParser;
|
|
@@ -21516,7 +22212,7 @@ var MapPlaceholderNames = class extends CloneVisitor {
|
|
|
21516
22212
|
}
|
|
21517
22213
|
};
|
|
21518
22214
|
|
|
21519
|
-
// bazel-out/
|
|
22215
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/api.mjs
|
|
21520
22216
|
var FactoryTarget2;
|
|
21521
22217
|
(function(FactoryTarget3) {
|
|
21522
22218
|
FactoryTarget3[FactoryTarget3["Directive"] = 0] = "Directive";
|
|
@@ -21526,7 +22222,7 @@ var FactoryTarget2;
|
|
|
21526
22222
|
FactoryTarget3[FactoryTarget3["NgModule"] = 4] = "NgModule";
|
|
21527
22223
|
})(FactoryTarget2 || (FactoryTarget2 = {}));
|
|
21528
22224
|
|
|
21529
|
-
// bazel-out/
|
|
22225
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/t2_binder.mjs
|
|
21530
22226
|
var R3TargetBinder = class {
|
|
21531
22227
|
constructor(directiveMatcher) {
|
|
21532
22228
|
this.directiveMatcher = directiveMatcher;
|
|
@@ -21581,6 +22277,22 @@ var Scope = class {
|
|
|
21581
22277
|
visitReference(reference2) {
|
|
21582
22278
|
this.maybeDeclare(reference2);
|
|
21583
22279
|
}
|
|
22280
|
+
visitDeferredBlock(deferred) {
|
|
22281
|
+
var _a2, _b2, _c2;
|
|
22282
|
+
deferred.children.forEach((node) => node.visit(this));
|
|
22283
|
+
(_a2 = deferred.placeholder) == null ? void 0 : _a2.visit(this);
|
|
22284
|
+
(_b2 = deferred.loading) == null ? void 0 : _b2.visit(this);
|
|
22285
|
+
(_c2 = deferred.error) == null ? void 0 : _c2.visit(this);
|
|
22286
|
+
}
|
|
22287
|
+
visitDeferredBlockPlaceholder(block) {
|
|
22288
|
+
block.children.forEach((node) => node.visit(this));
|
|
22289
|
+
}
|
|
22290
|
+
visitDeferredBlockError(block) {
|
|
22291
|
+
block.children.forEach((node) => node.visit(this));
|
|
22292
|
+
}
|
|
22293
|
+
visitDeferredBlockLoading(block) {
|
|
22294
|
+
block.children.forEach((node) => node.visit(this));
|
|
22295
|
+
}
|
|
21584
22296
|
visitContent(content) {
|
|
21585
22297
|
}
|
|
21586
22298
|
visitBoundAttribute(attr) {
|
|
@@ -21595,6 +22307,8 @@ var Scope = class {
|
|
|
21595
22307
|
}
|
|
21596
22308
|
visitIcu(icu) {
|
|
21597
22309
|
}
|
|
22310
|
+
visitDeferredTrigger(trigger) {
|
|
22311
|
+
}
|
|
21598
22312
|
maybeDeclare(thing) {
|
|
21599
22313
|
if (!this.namedEntities.has(thing.name)) {
|
|
21600
22314
|
this.namedEntities.set(thing.name, thing);
|
|
@@ -21677,6 +22391,22 @@ var DirectiveBinder = class {
|
|
|
21677
22391
|
node.outputs.forEach((output) => setAttributeBinding(output, "outputs"));
|
|
21678
22392
|
node.children.forEach((child) => child.visit(this));
|
|
21679
22393
|
}
|
|
22394
|
+
visitDeferredBlock(deferred) {
|
|
22395
|
+
var _a2, _b2, _c2;
|
|
22396
|
+
deferred.children.forEach((child) => child.visit(this));
|
|
22397
|
+
(_a2 = deferred.placeholder) == null ? void 0 : _a2.visit(this);
|
|
22398
|
+
(_b2 = deferred.loading) == null ? void 0 : _b2.visit(this);
|
|
22399
|
+
(_c2 = deferred.error) == null ? void 0 : _c2.visit(this);
|
|
22400
|
+
}
|
|
22401
|
+
visitDeferredBlockPlaceholder(block) {
|
|
22402
|
+
block.children.forEach((child) => child.visit(this));
|
|
22403
|
+
}
|
|
22404
|
+
visitDeferredBlockError(block) {
|
|
22405
|
+
block.children.forEach((child) => child.visit(this));
|
|
22406
|
+
}
|
|
22407
|
+
visitDeferredBlockLoading(block) {
|
|
22408
|
+
block.children.forEach((child) => child.visit(this));
|
|
22409
|
+
}
|
|
21680
22410
|
visitContent(content) {
|
|
21681
22411
|
}
|
|
21682
22412
|
visitVariable(variable2) {
|
|
@@ -21697,6 +22427,8 @@ var DirectiveBinder = class {
|
|
|
21697
22427
|
}
|
|
21698
22428
|
visitIcu(icu) {
|
|
21699
22429
|
}
|
|
22430
|
+
visitDeferredTrigger(trigger) {
|
|
22431
|
+
}
|
|
21700
22432
|
};
|
|
21701
22433
|
var TemplateBinder = class extends RecursiveAstVisitor2 {
|
|
21702
22434
|
constructor(bindings, symbols, usedPipes, nestingLevel, scope, template2, level) {
|
|
@@ -21717,13 +22449,14 @@ var TemplateBinder = class extends RecursiveAstVisitor2 {
|
|
|
21717
22449
|
node.visit(this);
|
|
21718
22450
|
}
|
|
21719
22451
|
}
|
|
21720
|
-
static applyWithScope(
|
|
22452
|
+
static applyWithScope(nodes, scope) {
|
|
21721
22453
|
const expressions = /* @__PURE__ */ new Map();
|
|
21722
22454
|
const symbols = /* @__PURE__ */ new Map();
|
|
21723
22455
|
const nestingLevel = /* @__PURE__ */ new Map();
|
|
21724
22456
|
const usedPipes = /* @__PURE__ */ new Set();
|
|
21725
|
-
const
|
|
21726
|
-
binder
|
|
22457
|
+
const template2 = nodes instanceof Template ? nodes : null;
|
|
22458
|
+
const binder = new TemplateBinder(expressions, symbols, usedPipes, nestingLevel, scope, template2, 0);
|
|
22459
|
+
binder.ingest(nodes);
|
|
21727
22460
|
return { expressions, symbols, nestingLevel, usedPipes };
|
|
21728
22461
|
}
|
|
21729
22462
|
ingest(template2) {
|
|
@@ -21775,6 +22508,28 @@ var TemplateBinder = class extends RecursiveAstVisitor2 {
|
|
|
21775
22508
|
visitBoundEvent(event) {
|
|
21776
22509
|
event.handler.visit(this);
|
|
21777
22510
|
}
|
|
22511
|
+
visitDeferredBlock(deferred) {
|
|
22512
|
+
deferred.triggers.forEach(this.visitNode);
|
|
22513
|
+
deferred.prefetchTriggers.forEach(this.visitNode);
|
|
22514
|
+
deferred.children.forEach(this.visitNode);
|
|
22515
|
+
deferred.placeholder && this.visitNode(deferred.placeholder);
|
|
22516
|
+
deferred.loading && this.visitNode(deferred.loading);
|
|
22517
|
+
deferred.error && this.visitNode(deferred.error);
|
|
22518
|
+
}
|
|
22519
|
+
visitDeferredTrigger(trigger) {
|
|
22520
|
+
if (trigger instanceof BoundDeferredTrigger) {
|
|
22521
|
+
trigger.value.visit(this);
|
|
22522
|
+
}
|
|
22523
|
+
}
|
|
22524
|
+
visitDeferredBlockPlaceholder(block) {
|
|
22525
|
+
block.children.forEach(this.visitNode);
|
|
22526
|
+
}
|
|
22527
|
+
visitDeferredBlockError(block) {
|
|
22528
|
+
block.children.forEach(this.visitNode);
|
|
22529
|
+
}
|
|
22530
|
+
visitDeferredBlockLoading(block) {
|
|
22531
|
+
block.children.forEach(this.visitNode);
|
|
22532
|
+
}
|
|
21778
22533
|
visitBoundText(text2) {
|
|
21779
22534
|
text2.value.visit(this);
|
|
21780
22535
|
}
|
|
@@ -21878,7 +22633,7 @@ function extractTemplateEntities(rootScope) {
|
|
|
21878
22633
|
return templateEntities;
|
|
21879
22634
|
}
|
|
21880
22635
|
|
|
21881
|
-
// bazel-out/
|
|
22636
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_class_metadata_compiler.mjs
|
|
21882
22637
|
function compileClassMetadata(metadata) {
|
|
21883
22638
|
var _a2, _b2;
|
|
21884
22639
|
const fnCall = importExpr(Identifiers.setClassMetadata).callFn([
|
|
@@ -21891,12 +22646,12 @@ function compileClassMetadata(metadata) {
|
|
|
21891
22646
|
return iife.callFn([]);
|
|
21892
22647
|
}
|
|
21893
22648
|
|
|
21894
|
-
// bazel-out/
|
|
22649
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/class_metadata.mjs
|
|
21895
22650
|
var MINIMUM_PARTIAL_LINKER_VERSION = "12.0.0";
|
|
21896
22651
|
function compileDeclareClassMetadata(metadata) {
|
|
21897
22652
|
const definitionMap = new DefinitionMap();
|
|
21898
22653
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
21899
|
-
definitionMap.set("version", literal("16.2.0-next.
|
|
22654
|
+
definitionMap.set("version", literal("16.2.0-next.3"));
|
|
21900
22655
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
21901
22656
|
definitionMap.set("type", metadata.type);
|
|
21902
22657
|
definitionMap.set("decorators", metadata.decorators);
|
|
@@ -21905,7 +22660,7 @@ function compileDeclareClassMetadata(metadata) {
|
|
|
21905
22660
|
return importExpr(Identifiers.declareClassMetadata).callFn([definitionMap.toLiteralMap()]);
|
|
21906
22661
|
}
|
|
21907
22662
|
|
|
21908
|
-
// bazel-out/
|
|
22663
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/util.mjs
|
|
21909
22664
|
function toOptionalLiteralArray(values, mapper) {
|
|
21910
22665
|
if (values === null || values.length === 0) {
|
|
21911
22666
|
return null;
|
|
@@ -21953,7 +22708,7 @@ function compileDependency(dep) {
|
|
|
21953
22708
|
return depMeta.toLiteralMap();
|
|
21954
22709
|
}
|
|
21955
22710
|
|
|
21956
|
-
// bazel-out/
|
|
22711
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/directive.mjs
|
|
21957
22712
|
var MINIMUM_PARTIAL_LINKER_VERSION2 = "14.0.0";
|
|
21958
22713
|
function compileDeclareDirectiveFromMetadata(meta) {
|
|
21959
22714
|
const definitionMap = createDirectiveDefinitionMap(meta);
|
|
@@ -21965,7 +22720,7 @@ function createDirectiveDefinitionMap(meta) {
|
|
|
21965
22720
|
var _a2;
|
|
21966
22721
|
const definitionMap = new DefinitionMap();
|
|
21967
22722
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION2));
|
|
21968
|
-
definitionMap.set("version", literal("16.2.0-next.
|
|
22723
|
+
definitionMap.set("version", literal("16.2.0-next.3"));
|
|
21969
22724
|
definitionMap.set("type", meta.type.value);
|
|
21970
22725
|
if (meta.isStandalone) {
|
|
21971
22726
|
definitionMap.set("isStandalone", literal(meta.isStandalone));
|
|
@@ -22058,7 +22813,7 @@ function createHostDirectives(hostDirectives) {
|
|
|
22058
22813
|
return literalArr(expressions);
|
|
22059
22814
|
}
|
|
22060
22815
|
|
|
22061
|
-
// bazel-out/
|
|
22816
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/component.mjs
|
|
22062
22817
|
function compileDeclareComponentFromMetadata(meta, template2, additionalTemplateInfo) {
|
|
22063
22818
|
const definitionMap = createComponentDefinitionMap(meta, template2, additionalTemplateInfo);
|
|
22064
22819
|
const expression = importExpr(Identifiers.declareComponent).callFn([definitionMap.toLiteralMap()]);
|
|
@@ -22145,12 +22900,12 @@ function compileUsedDependenciesMetadata(meta) {
|
|
|
22145
22900
|
});
|
|
22146
22901
|
}
|
|
22147
22902
|
|
|
22148
|
-
// bazel-out/
|
|
22903
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/factory.mjs
|
|
22149
22904
|
var MINIMUM_PARTIAL_LINKER_VERSION3 = "12.0.0";
|
|
22150
22905
|
function compileDeclareFactoryFunction(meta) {
|
|
22151
22906
|
const definitionMap = new DefinitionMap();
|
|
22152
22907
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION3));
|
|
22153
|
-
definitionMap.set("version", literal("16.2.0-next.
|
|
22908
|
+
definitionMap.set("version", literal("16.2.0-next.3"));
|
|
22154
22909
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
22155
22910
|
definitionMap.set("type", meta.type.value);
|
|
22156
22911
|
definitionMap.set("deps", compileDependencies(meta.deps));
|
|
@@ -22162,7 +22917,7 @@ function compileDeclareFactoryFunction(meta) {
|
|
|
22162
22917
|
};
|
|
22163
22918
|
}
|
|
22164
22919
|
|
|
22165
|
-
// bazel-out/
|
|
22920
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/injectable.mjs
|
|
22166
22921
|
var MINIMUM_PARTIAL_LINKER_VERSION4 = "12.0.0";
|
|
22167
22922
|
function compileDeclareInjectableFromMetadata(meta) {
|
|
22168
22923
|
const definitionMap = createInjectableDefinitionMap(meta);
|
|
@@ -22173,7 +22928,7 @@ function compileDeclareInjectableFromMetadata(meta) {
|
|
|
22173
22928
|
function createInjectableDefinitionMap(meta) {
|
|
22174
22929
|
const definitionMap = new DefinitionMap();
|
|
22175
22930
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION4));
|
|
22176
|
-
definitionMap.set("version", literal("16.2.0-next.
|
|
22931
|
+
definitionMap.set("version", literal("16.2.0-next.3"));
|
|
22177
22932
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
22178
22933
|
definitionMap.set("type", meta.type.value);
|
|
22179
22934
|
if (meta.providedIn !== void 0) {
|
|
@@ -22200,7 +22955,7 @@ function createInjectableDefinitionMap(meta) {
|
|
|
22200
22955
|
return definitionMap;
|
|
22201
22956
|
}
|
|
22202
22957
|
|
|
22203
|
-
// bazel-out/
|
|
22958
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/injector.mjs
|
|
22204
22959
|
var MINIMUM_PARTIAL_LINKER_VERSION5 = "12.0.0";
|
|
22205
22960
|
function compileDeclareInjectorFromMetadata(meta) {
|
|
22206
22961
|
const definitionMap = createInjectorDefinitionMap(meta);
|
|
@@ -22211,7 +22966,7 @@ function compileDeclareInjectorFromMetadata(meta) {
|
|
|
22211
22966
|
function createInjectorDefinitionMap(meta) {
|
|
22212
22967
|
const definitionMap = new DefinitionMap();
|
|
22213
22968
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION5));
|
|
22214
|
-
definitionMap.set("version", literal("16.2.0-next.
|
|
22969
|
+
definitionMap.set("version", literal("16.2.0-next.3"));
|
|
22215
22970
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
22216
22971
|
definitionMap.set("type", meta.type.value);
|
|
22217
22972
|
definitionMap.set("providers", meta.providers);
|
|
@@ -22221,7 +22976,7 @@ function createInjectorDefinitionMap(meta) {
|
|
|
22221
22976
|
return definitionMap;
|
|
22222
22977
|
}
|
|
22223
22978
|
|
|
22224
|
-
// bazel-out/
|
|
22979
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/ng_module.mjs
|
|
22225
22980
|
var MINIMUM_PARTIAL_LINKER_VERSION6 = "14.0.0";
|
|
22226
22981
|
function compileDeclareNgModuleFromMetadata(meta) {
|
|
22227
22982
|
const definitionMap = createNgModuleDefinitionMap(meta);
|
|
@@ -22235,7 +22990,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
22235
22990
|
throw new Error("Invalid path! Local compilation mode should not get into the partial compilation path");
|
|
22236
22991
|
}
|
|
22237
22992
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION6));
|
|
22238
|
-
definitionMap.set("version", literal("16.2.0-next.
|
|
22993
|
+
definitionMap.set("version", literal("16.2.0-next.3"));
|
|
22239
22994
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
22240
22995
|
definitionMap.set("type", meta.type.value);
|
|
22241
22996
|
if (meta.bootstrap.length > 0) {
|
|
@@ -22259,7 +23014,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
22259
23014
|
return definitionMap;
|
|
22260
23015
|
}
|
|
22261
23016
|
|
|
22262
|
-
// bazel-out/
|
|
23017
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/pipe.mjs
|
|
22263
23018
|
var MINIMUM_PARTIAL_LINKER_VERSION7 = "14.0.0";
|
|
22264
23019
|
function compileDeclarePipeFromMetadata(meta) {
|
|
22265
23020
|
const definitionMap = createPipeDefinitionMap(meta);
|
|
@@ -22270,7 +23025,7 @@ function compileDeclarePipeFromMetadata(meta) {
|
|
|
22270
23025
|
function createPipeDefinitionMap(meta) {
|
|
22271
23026
|
const definitionMap = new DefinitionMap();
|
|
22272
23027
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION7));
|
|
22273
|
-
definitionMap.set("version", literal("16.2.0-next.
|
|
23028
|
+
definitionMap.set("version", literal("16.2.0-next.3"));
|
|
22274
23029
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
22275
23030
|
definitionMap.set("type", meta.type.value);
|
|
22276
23031
|
if (meta.isStandalone) {
|
|
@@ -22283,13 +23038,13 @@ function createPipeDefinitionMap(meta) {
|
|
|
22283
23038
|
return definitionMap;
|
|
22284
23039
|
}
|
|
22285
23040
|
|
|
22286
|
-
// bazel-out/
|
|
23041
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/compiler.mjs
|
|
22287
23042
|
publishFacade(_global);
|
|
22288
23043
|
|
|
22289
|
-
// bazel-out/
|
|
22290
|
-
var VERSION3 = new Version("16.2.0-next.
|
|
23044
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/version.mjs
|
|
23045
|
+
var VERSION3 = new Version("16.2.0-next.3");
|
|
22291
23046
|
|
|
22292
|
-
// bazel-out/
|
|
23047
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
|
|
22293
23048
|
var EmitFlags;
|
|
22294
23049
|
(function(EmitFlags2) {
|
|
22295
23050
|
EmitFlags2[EmitFlags2["DTS"] = 1] = "DTS";
|
|
@@ -22301,13 +23056,13 @@ var EmitFlags;
|
|
|
22301
23056
|
EmitFlags2[EmitFlags2["All"] = 31] = "All";
|
|
22302
23057
|
})(EmitFlags || (EmitFlags = {}));
|
|
22303
23058
|
|
|
22304
|
-
// bazel-out/
|
|
23059
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/compiler_host.mjs
|
|
22305
23060
|
var import_typescript2 = __toESM(require("typescript"), 1);
|
|
22306
23061
|
|
|
22307
|
-
// bazel-out/
|
|
23062
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
22308
23063
|
var import_typescript94 = __toESM(require("typescript"), 1);
|
|
22309
23064
|
|
|
22310
|
-
// bazel-out/
|
|
23065
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
|
|
22311
23066
|
var path = __toESM(require("path"), 1);
|
|
22312
23067
|
function i18nGetExtension(formatName) {
|
|
22313
23068
|
const format = formatName.toLowerCase();
|
|
@@ -22357,10 +23112,10 @@ function getPathNormalizer(basePath) {
|
|
|
22357
23112
|
};
|
|
22358
23113
|
}
|
|
22359
23114
|
|
|
22360
|
-
// bazel-out/
|
|
23115
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
22361
23116
|
var import_typescript3 = __toESM(require("typescript"), 1);
|
|
22362
23117
|
|
|
22363
|
-
// bazel-out/
|
|
23118
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/version_helpers.mjs
|
|
22364
23119
|
function toNumbers(value) {
|
|
22365
23120
|
const suffixIndex = value.lastIndexOf("-");
|
|
22366
23121
|
return value.slice(0, suffixIndex === -1 ? value.length : suffixIndex).split(".").map((segment) => {
|
|
@@ -22395,7 +23150,7 @@ function compareVersions(v1, v2) {
|
|
|
22395
23150
|
return compareNumbers(toNumbers(v1), toNumbers(v2));
|
|
22396
23151
|
}
|
|
22397
23152
|
|
|
22398
|
-
// bazel-out/
|
|
23153
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
22399
23154
|
var MIN_TS_VERSION = "4.9.3";
|
|
22400
23155
|
var MAX_TS_VERSION = "5.2.0";
|
|
22401
23156
|
var tsVersion = import_typescript3.default.version;
|
|
@@ -22408,13 +23163,13 @@ function verifySupportedTypeScriptVersion() {
|
|
|
22408
23163
|
checkVersion(tsVersion, MIN_TS_VERSION, MAX_TS_VERSION);
|
|
22409
23164
|
}
|
|
22410
23165
|
|
|
22411
|
-
// bazel-out/
|
|
23166
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
22412
23167
|
var import_typescript90 = __toESM(require("typescript"), 1);
|
|
22413
23168
|
|
|
22414
|
-
// bazel-out/
|
|
23169
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
|
|
22415
23170
|
var import_typescript14 = __toESM(require("typescript"), 1);
|
|
22416
23171
|
|
|
22417
|
-
// bazel-out/
|
|
23172
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_code.mjs
|
|
22418
23173
|
var ErrorCode;
|
|
22419
23174
|
(function(ErrorCode2) {
|
|
22420
23175
|
ErrorCode2[ErrorCode2["DECORATOR_ARG_NOT_LITERAL"] = 1001] = "DECORATOR_ARG_NOT_LITERAL";
|
|
@@ -22488,7 +23243,7 @@ var ErrorCode;
|
|
|
22488
23243
|
ErrorCode2[ErrorCode2["SUGGEST_SUBOPTIMAL_TYPE_INFERENCE"] = 10002] = "SUGGEST_SUBOPTIMAL_TYPE_INFERENCE";
|
|
22489
23244
|
})(ErrorCode || (ErrorCode = {}));
|
|
22490
23245
|
|
|
22491
|
-
// bazel-out/
|
|
23246
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/docs.mjs
|
|
22492
23247
|
var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
|
|
22493
23248
|
ErrorCode.DECORATOR_ARG_NOT_LITERAL,
|
|
22494
23249
|
ErrorCode.IMPORT_CYCLE_DETECTED,
|
|
@@ -22500,15 +23255,15 @@ var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
|
|
|
22500
23255
|
ErrorCode.WARN_NGMODULE_ID_UNNECESSARY
|
|
22501
23256
|
]);
|
|
22502
23257
|
|
|
22503
|
-
// bazel-out/
|
|
23258
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
|
|
22504
23259
|
var import_typescript4 = __toESM(require("typescript"), 1);
|
|
22505
23260
|
|
|
22506
|
-
// bazel-out/
|
|
23261
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/util.mjs
|
|
22507
23262
|
function ngErrorCode(code) {
|
|
22508
23263
|
return parseInt("-99" + code);
|
|
22509
23264
|
}
|
|
22510
23265
|
|
|
22511
|
-
// bazel-out/
|
|
23266
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
|
|
22512
23267
|
var FatalDiagnosticError = class {
|
|
22513
23268
|
constructor(code, node, message, relatedInformation) {
|
|
22514
23269
|
this.code = code;
|
|
@@ -22564,10 +23319,10 @@ function addDiagnosticChain(messageText, add) {
|
|
|
22564
23319
|
return messageText;
|
|
22565
23320
|
}
|
|
22566
23321
|
|
|
22567
|
-
// bazel-out/
|
|
23322
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.mjs
|
|
22568
23323
|
var ERROR_DETAILS_PAGE_BASE_URL = "https://angular.io/errors";
|
|
22569
23324
|
|
|
22570
|
-
// bazel-out/
|
|
23325
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.mjs
|
|
22571
23326
|
var ExtendedTemplateDiagnosticName;
|
|
22572
23327
|
(function(ExtendedTemplateDiagnosticName2) {
|
|
22573
23328
|
ExtendedTemplateDiagnosticName2["INVALID_BANANA_IN_BOX"] = "invalidBananaInBox";
|
|
@@ -22580,13 +23335,13 @@ var ExtendedTemplateDiagnosticName;
|
|
|
22580
23335
|
ExtendedTemplateDiagnosticName2["SKIP_HYDRATION_NOT_STATIC"] = "skipHydrationNotStatic";
|
|
22581
23336
|
})(ExtendedTemplateDiagnosticName || (ExtendedTemplateDiagnosticName = {}));
|
|
22582
23337
|
|
|
22583
|
-
// bazel-out/
|
|
23338
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
|
|
22584
23339
|
var import_typescript13 = __toESM(require("typescript"), 1);
|
|
22585
23340
|
|
|
22586
|
-
// bazel-out/
|
|
23341
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
|
|
22587
23342
|
var import_typescript7 = __toESM(require("typescript"), 1);
|
|
22588
23343
|
|
|
22589
|
-
// bazel-out/
|
|
23344
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/typescript.mjs
|
|
22590
23345
|
var import_typescript5 = __toESM(require("typescript"), 1);
|
|
22591
23346
|
var TS = /\.tsx?$/i;
|
|
22592
23347
|
var D_TS = /\.d\.ts$/i;
|
|
@@ -22687,7 +23442,7 @@ function toUnredirectedSourceFile(sf) {
|
|
|
22687
23442
|
return redirectInfo.unredirected;
|
|
22688
23443
|
}
|
|
22689
23444
|
|
|
22690
|
-
// bazel-out/
|
|
23445
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/find_export.mjs
|
|
22691
23446
|
function findExportedNameOfNode(target, file, reflector) {
|
|
22692
23447
|
const exports = reflector.getExportsOfModule(file);
|
|
22693
23448
|
if (exports === null) {
|
|
@@ -22707,7 +23462,7 @@ function findExportedNameOfNode(target, file, reflector) {
|
|
|
22707
23462
|
return foundExportName;
|
|
22708
23463
|
}
|
|
22709
23464
|
|
|
22710
|
-
// bazel-out/
|
|
23465
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
|
|
22711
23466
|
var ImportFlags;
|
|
22712
23467
|
(function(ImportFlags2) {
|
|
22713
23468
|
ImportFlags2[ImportFlags2["None"] = 0] = "None";
|
|
@@ -22923,7 +23678,7 @@ var UnifiedModulesStrategy = class {
|
|
|
22923
23678
|
}
|
|
22924
23679
|
};
|
|
22925
23680
|
|
|
22926
|
-
// bazel-out/
|
|
23681
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
|
|
22927
23682
|
var CHARS_TO_ESCAPE = /[^a-zA-Z0-9/_]/g;
|
|
22928
23683
|
var UnifiedModulesAliasingHost = class {
|
|
22929
23684
|
constructor(unifiedModulesHost) {
|
|
@@ -22990,7 +23745,7 @@ var AliasStrategy = class {
|
|
|
22990
23745
|
}
|
|
22991
23746
|
};
|
|
22992
23747
|
|
|
22993
|
-
// bazel-out/
|
|
23748
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/path.mjs
|
|
22994
23749
|
function relativePathBetween(from, to) {
|
|
22995
23750
|
const relativePath = stripExtension(relative(dirname(resolve(from)), resolve(to)));
|
|
22996
23751
|
return relativePath !== "" ? toRelativeImport(relativePath) : null;
|
|
@@ -22999,7 +23754,7 @@ function normalizeSeparators2(path3) {
|
|
|
22999
23754
|
return path3.replace(/\\/g, "/");
|
|
23000
23755
|
}
|
|
23001
23756
|
|
|
23002
|
-
// bazel-out/
|
|
23757
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/core.mjs
|
|
23003
23758
|
var NoopImportRewriter = class {
|
|
23004
23759
|
shouldImportSymbol(symbol, specifier) {
|
|
23005
23760
|
return true;
|
|
@@ -23057,7 +23812,7 @@ function validateAndRewriteCoreSymbol(name) {
|
|
|
23057
23812
|
return CORE_SUPPORTED_SYMBOLS.get(name);
|
|
23058
23813
|
}
|
|
23059
23814
|
|
|
23060
|
-
// bazel-out/
|
|
23815
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/patch_alias_reference_resolution.mjs
|
|
23061
23816
|
var import_typescript9 = __toESM(require("typescript"), 1);
|
|
23062
23817
|
var patchedReferencedAliasesSymbol = Symbol("patchedReferencedAliases");
|
|
23063
23818
|
function loadIsReferencedAliasDeclarationPatch(context) {
|
|
@@ -23092,7 +23847,7 @@ function throwIncompatibleTransformationContextError() {
|
|
|
23092
23847
|
throw Error("Angular compiler is incompatible with this version of the TypeScript compiler.\n\nIf you recently updated TypeScript and this issue surfaces now, consider downgrading.\n\nPlease report an issue on the Angular repositories when this issue surfaces and you are using a supposedly compatible TypeScript version.");
|
|
23093
23848
|
}
|
|
23094
23849
|
|
|
23095
|
-
// bazel-out/
|
|
23850
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/default.mjs
|
|
23096
23851
|
var DefaultImportDeclaration = Symbol("DefaultImportDeclaration");
|
|
23097
23852
|
function attachDefaultImportDeclaration(expr, importDecl) {
|
|
23098
23853
|
expr[DefaultImportDeclaration] = importDecl;
|
|
@@ -23133,7 +23888,7 @@ var DefaultImportTracker = class {
|
|
|
23133
23888
|
}
|
|
23134
23889
|
};
|
|
23135
23890
|
|
|
23136
|
-
// bazel-out/
|
|
23891
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/references.mjs
|
|
23137
23892
|
var Reference2 = class {
|
|
23138
23893
|
constructor(node, bestGuessOwningModule = null) {
|
|
23139
23894
|
this.node = node;
|
|
@@ -23196,7 +23951,7 @@ var Reference2 = class {
|
|
|
23196
23951
|
}
|
|
23197
23952
|
};
|
|
23198
23953
|
|
|
23199
|
-
// bazel-out/
|
|
23954
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/resolver.mjs
|
|
23200
23955
|
var ModuleResolver = class {
|
|
23201
23956
|
constructor(program, compilerOptions, host, moduleResolutionCache) {
|
|
23202
23957
|
this.program = program;
|
|
@@ -23213,7 +23968,7 @@ var ModuleResolver = class {
|
|
|
23213
23968
|
}
|
|
23214
23969
|
};
|
|
23215
23970
|
|
|
23216
|
-
// bazel-out/
|
|
23971
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
|
|
23217
23972
|
function valueReferenceToExpression(valueRef) {
|
|
23218
23973
|
if (valueRef.kind === 2) {
|
|
23219
23974
|
return null;
|
|
@@ -23452,7 +24207,7 @@ function isAbstractClassDeclaration(clazz) {
|
|
|
23452
24207
|
return import_typescript13.default.canHaveModifiers(clazz) && clazz.modifiers !== void 0 ? clazz.modifiers.some((mod) => mod.kind === import_typescript13.default.SyntaxKind.AbstractKeyword) : false;
|
|
23453
24208
|
}
|
|
23454
24209
|
|
|
23455
|
-
// bazel-out/
|
|
24210
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
|
|
23456
24211
|
function getConstructorDependencies(clazz, reflector, isCore) {
|
|
23457
24212
|
const deps = [];
|
|
23458
24213
|
const errors = [];
|
|
@@ -23467,7 +24222,7 @@ function getConstructorDependencies(clazz, reflector, isCore) {
|
|
|
23467
24222
|
ctorParams.forEach((param, idx) => {
|
|
23468
24223
|
let token = valueReferenceToExpression(param.typeValueReference);
|
|
23469
24224
|
let attributeNameType = null;
|
|
23470
|
-
let optional = false,
|
|
24225
|
+
let optional = false, self = false, skipSelf = false, host = false;
|
|
23471
24226
|
(param.decorators || []).filter((dec) => isCore || isAngularCore(dec)).forEach((dec) => {
|
|
23472
24227
|
const name = isCore || dec.import === null ? dec.name : dec.import.name;
|
|
23473
24228
|
if (name === "Inject") {
|
|
@@ -23480,7 +24235,7 @@ function getConstructorDependencies(clazz, reflector, isCore) {
|
|
|
23480
24235
|
} else if (name === "SkipSelf") {
|
|
23481
24236
|
skipSelf = true;
|
|
23482
24237
|
} else if (name === "Self") {
|
|
23483
|
-
|
|
24238
|
+
self = true;
|
|
23484
24239
|
} else if (name === "Host") {
|
|
23485
24240
|
host = true;
|
|
23486
24241
|
} else if (name === "Attribute") {
|
|
@@ -23508,7 +24263,7 @@ function getConstructorDependencies(clazz, reflector, isCore) {
|
|
|
23508
24263
|
reason: param.typeValueReference.reason
|
|
23509
24264
|
});
|
|
23510
24265
|
} else {
|
|
23511
|
-
deps.push({ token, attributeNameType, optional, self
|
|
24266
|
+
deps.push({ token, attributeNameType, optional, self, skipSelf, host });
|
|
23512
24267
|
}
|
|
23513
24268
|
});
|
|
23514
24269
|
if (errors.length === 0) {
|
|
@@ -23594,10 +24349,10 @@ function createUnsuitableInjectionTokenError(clazz, error2) {
|
|
|
23594
24349
|
return new FatalDiagnosticError(ErrorCode.PARAM_MISSING_TOKEN, param.nameNode, chain, hints);
|
|
23595
24350
|
}
|
|
23596
24351
|
|
|
23597
|
-
// bazel-out/
|
|
24352
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
|
|
23598
24353
|
var import_typescript27 = __toESM(require("typescript"), 1);
|
|
23599
24354
|
|
|
23600
|
-
// bazel-out/
|
|
24355
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/api.mjs
|
|
23601
24356
|
var MetaKind;
|
|
23602
24357
|
(function(MetaKind2) {
|
|
23603
24358
|
MetaKind2[MetaKind2["Directive"] = 0] = "Directive";
|
|
@@ -23610,10 +24365,10 @@ var MatchSource;
|
|
|
23610
24365
|
MatchSource2[MatchSource2["HostDirective"] = 1] = "HostDirective";
|
|
23611
24366
|
})(MatchSource || (MatchSource = {}));
|
|
23612
24367
|
|
|
23613
|
-
// bazel-out/
|
|
24368
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
23614
24369
|
var import_typescript22 = __toESM(require("typescript"), 1);
|
|
23615
24370
|
|
|
23616
|
-
// bazel-out/
|
|
24371
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/host.mjs
|
|
23617
24372
|
var import_typescript15 = __toESM(require("typescript"), 1);
|
|
23618
24373
|
function isDecoratorIdentifier(exp) {
|
|
23619
24374
|
return import_typescript15.default.isIdentifier(exp) || import_typescript15.default.isPropertyAccessExpression(exp) && import_typescript15.default.isIdentifier(exp.expression) && import_typescript15.default.isIdentifier(exp.name);
|
|
@@ -23627,7 +24382,7 @@ var ClassMemberKind;
|
|
|
23627
24382
|
ClassMemberKind2[ClassMemberKind2["Method"] = 4] = "Method";
|
|
23628
24383
|
})(ClassMemberKind || (ClassMemberKind = {}));
|
|
23629
24384
|
|
|
23630
|
-
// bazel-out/
|
|
24385
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/type_to_value.mjs
|
|
23631
24386
|
var import_typescript16 = __toESM(require("typescript"), 1);
|
|
23632
24387
|
function typeToValue(typeNode, checker) {
|
|
23633
24388
|
if (typeNode === null) {
|
|
@@ -23793,10 +24548,10 @@ function extractModuleName(node) {
|
|
|
23793
24548
|
return node.moduleSpecifier.text;
|
|
23794
24549
|
}
|
|
23795
24550
|
|
|
23796
|
-
// bazel-out/
|
|
24551
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
|
|
23797
24552
|
var import_typescript18 = __toESM(require("typescript"), 1);
|
|
23798
24553
|
|
|
23799
|
-
// bazel-out/
|
|
24554
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/util.mjs
|
|
23800
24555
|
var import_typescript17 = __toESM(require("typescript"), 1);
|
|
23801
24556
|
function isNamedClassDeclaration(node) {
|
|
23802
24557
|
return import_typescript17.default.isClassDeclaration(node) && isIdentifier(node.name);
|
|
@@ -23805,7 +24560,7 @@ function isIdentifier(node) {
|
|
|
23805
24560
|
return node !== void 0 && import_typescript17.default.isIdentifier(node);
|
|
23806
24561
|
}
|
|
23807
24562
|
|
|
23808
|
-
// bazel-out/
|
|
24563
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
|
|
23809
24564
|
var TypeScriptReflectionHost = class {
|
|
23810
24565
|
constructor(checker) {
|
|
23811
24566
|
this.checker = checker;
|
|
@@ -24234,7 +24989,7 @@ function getExportedName(decl, originalId) {
|
|
|
24234
24989
|
}
|
|
24235
24990
|
var LocalExportedDeclarations = Symbol("LocalExportedDeclarations");
|
|
24236
24991
|
|
|
24237
|
-
// bazel-out/
|
|
24992
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/property_mapping.mjs
|
|
24238
24993
|
var ClassPropertyMapping = class {
|
|
24239
24994
|
constructor(forwardMap) {
|
|
24240
24995
|
this.forwardMap = forwardMap;
|
|
@@ -24312,7 +25067,7 @@ function reverseMapFromForwardMap(forwardMap) {
|
|
|
24312
25067
|
return reverseMap;
|
|
24313
25068
|
}
|
|
24314
25069
|
|
|
24315
|
-
// bazel-out/
|
|
25070
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/util.mjs
|
|
24316
25071
|
var import_typescript20 = __toESM(require("typescript"), 1);
|
|
24317
25072
|
function extractReferencesFromType(checker, def, bestGuessOwningModule) {
|
|
24318
25073
|
if (!import_typescript20.default.isTupleTypeNode(def)) {
|
|
@@ -24497,7 +25252,7 @@ function hasInjectableFields(clazz, host) {
|
|
|
24497
25252
|
return members.some(({ isStatic, name }) => isStatic && (name === "\u0275prov" || name === "\u0275fac"));
|
|
24498
25253
|
}
|
|
24499
25254
|
|
|
24500
|
-
// bazel-out/
|
|
25255
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
24501
25256
|
var DtsMetadataReader = class {
|
|
24502
25257
|
constructor(checker, reflector) {
|
|
24503
25258
|
this.checker = checker;
|
|
@@ -24672,7 +25427,7 @@ function readHostDirectivesType(checker, type, bestGuessOwningModule) {
|
|
|
24672
25427
|
return result.length > 0 ? result : null;
|
|
24673
25428
|
}
|
|
24674
25429
|
|
|
24675
|
-
// bazel-out/
|
|
25430
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/inheritance.mjs
|
|
24676
25431
|
function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
24677
25432
|
const topMeta = reader.getDirectiveMetadata(dir);
|
|
24678
25433
|
if (topMeta === null) {
|
|
@@ -24729,7 +25484,7 @@ function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
|
24729
25484
|
});
|
|
24730
25485
|
}
|
|
24731
25486
|
|
|
24732
|
-
// bazel-out/
|
|
25487
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/registry.mjs
|
|
24733
25488
|
var LocalMetadataRegistry = class {
|
|
24734
25489
|
constructor() {
|
|
24735
25490
|
this.directives = /* @__PURE__ */ new Map();
|
|
@@ -24786,7 +25541,7 @@ var CompoundMetadataRegistry = class {
|
|
|
24786
25541
|
}
|
|
24787
25542
|
};
|
|
24788
25543
|
|
|
24789
|
-
// bazel-out/
|
|
25544
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/resource_registry.mjs
|
|
24790
25545
|
var ResourceRegistry = class {
|
|
24791
25546
|
constructor() {
|
|
24792
25547
|
this.externalTemplateToComponentsMap = /* @__PURE__ */ new Map();
|
|
@@ -24851,7 +25606,7 @@ var ResourceRegistry = class {
|
|
|
24851
25606
|
}
|
|
24852
25607
|
};
|
|
24853
25608
|
|
|
24854
|
-
// bazel-out/
|
|
25609
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/providers.mjs
|
|
24855
25610
|
var ExportedProviderStatusResolver = class {
|
|
24856
25611
|
constructor(metaReader) {
|
|
24857
25612
|
this.metaReader = metaReader;
|
|
@@ -24895,7 +25650,7 @@ var ExportedProviderStatusResolver = class {
|
|
|
24895
25650
|
}
|
|
24896
25651
|
};
|
|
24897
25652
|
|
|
24898
|
-
// bazel-out/
|
|
25653
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/host_directives_resolver.mjs
|
|
24899
25654
|
var EMPTY_ARRAY = [];
|
|
24900
25655
|
var HostDirectivesResolver = class {
|
|
24901
25656
|
constructor(metaReader) {
|
|
@@ -24956,10 +25711,10 @@ function resolveOutput(bindingName) {
|
|
|
24956
25711
|
return bindingName;
|
|
24957
25712
|
}
|
|
24958
25713
|
|
|
24959
|
-
// bazel-out/
|
|
25714
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
|
|
24960
25715
|
var import_typescript24 = __toESM(require("typescript"), 1);
|
|
24961
25716
|
|
|
24962
|
-
// bazel-out/
|
|
25717
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/dynamic.mjs
|
|
24963
25718
|
var DynamicValue = class {
|
|
24964
25719
|
constructor(node, reason, code) {
|
|
24965
25720
|
this.node = node;
|
|
@@ -25049,7 +25804,7 @@ var DynamicValue = class {
|
|
|
25049
25804
|
}
|
|
25050
25805
|
};
|
|
25051
25806
|
|
|
25052
|
-
// bazel-out/
|
|
25807
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/result.mjs
|
|
25053
25808
|
var ResolvedModule = class {
|
|
25054
25809
|
constructor(exports, evaluate) {
|
|
25055
25810
|
this.exports = exports;
|
|
@@ -25079,7 +25834,7 @@ var EnumValue = class {
|
|
|
25079
25834
|
var KnownFn = class {
|
|
25080
25835
|
};
|
|
25081
25836
|
|
|
25082
|
-
// bazel-out/
|
|
25837
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
|
|
25083
25838
|
function describeResolvedType(value, maxDepth = 1) {
|
|
25084
25839
|
var _a2, _b2;
|
|
25085
25840
|
if (value === null) {
|
|
@@ -25208,10 +25963,10 @@ function getContainerNode(node) {
|
|
|
25208
25963
|
return node.getSourceFile();
|
|
25209
25964
|
}
|
|
25210
25965
|
|
|
25211
|
-
// bazel-out/
|
|
25966
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
25212
25967
|
var import_typescript25 = __toESM(require("typescript"), 1);
|
|
25213
25968
|
|
|
25214
|
-
// bazel-out/
|
|
25969
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/builtin.mjs
|
|
25215
25970
|
var ArraySliceBuiltinFn = class extends KnownFn {
|
|
25216
25971
|
constructor(lhs) {
|
|
25217
25972
|
super();
|
|
@@ -25263,14 +26018,14 @@ var StringConcatBuiltinFn = class extends KnownFn {
|
|
|
25263
26018
|
}
|
|
25264
26019
|
};
|
|
25265
26020
|
|
|
25266
|
-
// bazel-out/
|
|
26021
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/synthetic.mjs
|
|
25267
26022
|
var SyntheticValue = class {
|
|
25268
26023
|
constructor(value) {
|
|
25269
26024
|
this.value = value;
|
|
25270
26025
|
}
|
|
25271
26026
|
};
|
|
25272
26027
|
|
|
25273
|
-
// bazel-out/
|
|
26028
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
25274
26029
|
function literalBinaryOp(op) {
|
|
25275
26030
|
return { op, literal: true };
|
|
25276
26031
|
}
|
|
@@ -25848,7 +26603,7 @@ function getOriginalKeywordKind(identifier) {
|
|
|
25848
26603
|
return typeof import_typescript25.default.identifierToKeywordKind === "function" ? import_typescript25.default.identifierToKeywordKind(identifier) : identifier.originalKeywordKind;
|
|
25849
26604
|
}
|
|
25850
26605
|
|
|
25851
|
-
// bazel-out/
|
|
26606
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interface.mjs
|
|
25852
26607
|
var PartialEvaluator = class {
|
|
25853
26608
|
constructor(host, checker, dependencyTracker) {
|
|
25854
26609
|
this.host = host;
|
|
@@ -25868,7 +26623,7 @@ var PartialEvaluator = class {
|
|
|
25868
26623
|
}
|
|
25869
26624
|
};
|
|
25870
26625
|
|
|
25871
|
-
// bazel-out/
|
|
26626
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
|
|
25872
26627
|
function makeDuplicateDeclarationError(node, data, kind) {
|
|
25873
26628
|
const context = [];
|
|
25874
26629
|
for (const decl of data) {
|
|
@@ -26064,7 +26819,7 @@ function getInheritedUndecoratedCtorDiagnostic(node, baseClass, kind) {
|
|
|
26064
26819
|
return makeDiagnostic(ErrorCode.DIRECTIVE_INHERITS_UNDECORATED_CTOR, node.name, `The ${kind.toLowerCase()} ${node.name.text} inherits its constructor from ${baseClassName}, but the latter does not have an Angular decorator of its own. Dependency injection will not be able to resolve the parameters of ${baseClassName}'s constructor. Either add a @${baseNeedsDecorator} decorator to ${baseClassName}, or add an explicit constructor to ${node.name.text}.`);
|
|
26065
26820
|
}
|
|
26066
26821
|
|
|
26067
|
-
// bazel-out/
|
|
26822
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/evaluation.mjs
|
|
26068
26823
|
var import_typescript29 = __toESM(require("typescript"), 1);
|
|
26069
26824
|
function resolveEnumValue(evaluator, metadata, field, enumSymbolName) {
|
|
26070
26825
|
let resolved = null;
|
|
@@ -26097,7 +26852,7 @@ function resolveLiteral(decorator, literalCache) {
|
|
|
26097
26852
|
return meta;
|
|
26098
26853
|
}
|
|
26099
26854
|
|
|
26100
|
-
// bazel-out/
|
|
26855
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/factory.mjs
|
|
26101
26856
|
function compileNgFactoryDefField(metadata) {
|
|
26102
26857
|
const res = compileFactoryFunction(metadata);
|
|
26103
26858
|
return { name: "\u0275fac", initializer: res.expression, statements: res.statements, type: res.type };
|
|
@@ -26107,7 +26862,7 @@ function compileDeclareFactory(metadata) {
|
|
|
26107
26862
|
return { name: "\u0275fac", initializer: res.expression, statements: res.statements, type: res.type };
|
|
26108
26863
|
}
|
|
26109
26864
|
|
|
26110
|
-
// bazel-out/
|
|
26865
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/injectable_registry.mjs
|
|
26111
26866
|
var InjectableClassRegistry = class {
|
|
26112
26867
|
constructor(host, isCore) {
|
|
26113
26868
|
this.host = host;
|
|
@@ -26133,7 +26888,7 @@ var InjectableClassRegistry = class {
|
|
|
26133
26888
|
}
|
|
26134
26889
|
};
|
|
26135
26890
|
|
|
26136
|
-
// bazel-out/
|
|
26891
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/metadata.mjs
|
|
26137
26892
|
var import_typescript30 = __toESM(require("typescript"), 1);
|
|
26138
26893
|
function extractClassMetadata(clazz, reflection, isCore, annotateForClosureCompiler, angularDecoratorTransform = (dec) => dec) {
|
|
26139
26894
|
if (!reflection.isClass(clazz)) {
|
|
@@ -26219,13 +26974,13 @@ function removeIdentifierReferences(node, name) {
|
|
|
26219
26974
|
return result.transformed[0];
|
|
26220
26975
|
}
|
|
26221
26976
|
|
|
26222
|
-
// bazel-out/
|
|
26977
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/references_registry.mjs
|
|
26223
26978
|
var NoopReferencesRegistry = class {
|
|
26224
26979
|
add(source, ...references) {
|
|
26225
26980
|
}
|
|
26226
26981
|
};
|
|
26227
26982
|
|
|
26228
|
-
// bazel-out/
|
|
26983
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/schema.mjs
|
|
26229
26984
|
function extractSchemas(rawExpr, evaluator, context) {
|
|
26230
26985
|
const schemas = [];
|
|
26231
26986
|
const result = evaluator.evaluate(rawExpr);
|
|
@@ -26254,7 +27009,7 @@ function extractSchemas(rawExpr, evaluator, context) {
|
|
|
26254
27009
|
return schemas;
|
|
26255
27010
|
}
|
|
26256
27011
|
|
|
26257
|
-
// bazel-out/
|
|
27012
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/input_transforms.mjs
|
|
26258
27013
|
function compileInputTransformFields(inputs) {
|
|
26259
27014
|
const extraFields = [];
|
|
26260
27015
|
for (const input of inputs) {
|
|
@@ -26270,10 +27025,10 @@ function compileInputTransformFields(inputs) {
|
|
|
26270
27025
|
return extraFields;
|
|
26271
27026
|
}
|
|
26272
27027
|
|
|
26273
|
-
// bazel-out/
|
|
27028
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
26274
27029
|
var import_typescript51 = __toESM(require("typescript"), 1);
|
|
26275
27030
|
|
|
26276
|
-
// bazel-out/
|
|
27031
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.mjs
|
|
26277
27032
|
var import_typescript31 = __toESM(require("typescript"), 1);
|
|
26278
27033
|
var SemanticSymbol = class {
|
|
26279
27034
|
constructor(decl) {
|
|
@@ -26289,7 +27044,7 @@ function getSymbolIdentifier(decl) {
|
|
|
26289
27044
|
return decl.name.text;
|
|
26290
27045
|
}
|
|
26291
27046
|
|
|
26292
|
-
// bazel-out/
|
|
27047
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.mjs
|
|
26293
27048
|
var OpaqueSymbol = class extends SemanticSymbol {
|
|
26294
27049
|
isPublicApiAffected() {
|
|
26295
27050
|
return false;
|
|
@@ -26431,10 +27186,10 @@ function getImportPath(expr) {
|
|
|
26431
27186
|
}
|
|
26432
27187
|
}
|
|
26433
27188
|
|
|
26434
|
-
// bazel-out/
|
|
27189
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
26435
27190
|
var import_typescript32 = __toESM(require("typescript"), 1);
|
|
26436
27191
|
|
|
26437
|
-
// bazel-out/
|
|
27192
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/util.mjs
|
|
26438
27193
|
function isSymbolEqual(a, b) {
|
|
26439
27194
|
if (a.decl === b.decl) {
|
|
26440
27195
|
return true;
|
|
@@ -26484,7 +27239,7 @@ function isSetEqual(a, b, equalityTester = referenceEquality) {
|
|
|
26484
27239
|
return true;
|
|
26485
27240
|
}
|
|
26486
27241
|
|
|
26487
|
-
// bazel-out/
|
|
27242
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
26488
27243
|
function extractSemanticTypeParameters(node) {
|
|
26489
27244
|
if (!import_typescript32.default.isClassDeclaration(node) || node.typeParameters === void 0) {
|
|
26490
27245
|
return null;
|
|
@@ -26504,7 +27259,7 @@ function isTypeParameterEqual(a, b) {
|
|
|
26504
27259
|
return a.hasGenericTypeBound === b.hasGenericTypeBound;
|
|
26505
27260
|
}
|
|
26506
27261
|
|
|
26507
|
-
// bazel-out/
|
|
27262
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/api.mjs
|
|
26508
27263
|
var PerfPhase;
|
|
26509
27264
|
(function(PerfPhase2) {
|
|
26510
27265
|
PerfPhase2[PerfPhase2["Unaccounted"] = 0] = "Unaccounted";
|
|
@@ -26571,7 +27326,7 @@ var PerfCheckpoint;
|
|
|
26571
27326
|
PerfCheckpoint2[PerfCheckpoint2["LAST"] = 9] = "LAST";
|
|
26572
27327
|
})(PerfCheckpoint || (PerfCheckpoint = {}));
|
|
26573
27328
|
|
|
26574
|
-
// bazel-out/
|
|
27329
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/noop.mjs
|
|
26575
27330
|
var NoopPerfRecorder = class {
|
|
26576
27331
|
eventCount() {
|
|
26577
27332
|
}
|
|
@@ -26588,7 +27343,7 @@ var NoopPerfRecorder = class {
|
|
|
26588
27343
|
};
|
|
26589
27344
|
var NOOP_PERF_RECORDER = new NoopPerfRecorder();
|
|
26590
27345
|
|
|
26591
|
-
// bazel-out/
|
|
27346
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/clock.mjs
|
|
26592
27347
|
function mark() {
|
|
26593
27348
|
return process.hrtime();
|
|
26594
27349
|
}
|
|
@@ -26597,7 +27352,7 @@ function timeSinceInMicros(mark2) {
|
|
|
26597
27352
|
return delta[0] * 1e6 + Math.floor(delta[1] / 1e3);
|
|
26598
27353
|
}
|
|
26599
27354
|
|
|
26600
|
-
// bazel-out/
|
|
27355
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/recorder.mjs
|
|
26601
27356
|
var ActivePerfRecorder = class {
|
|
26602
27357
|
static zeroedToNow() {
|
|
26603
27358
|
return new ActivePerfRecorder(mark());
|
|
@@ -26691,14 +27446,14 @@ var DelegatingPerfRecorder = class {
|
|
|
26691
27446
|
}
|
|
26692
27447
|
};
|
|
26693
27448
|
|
|
26694
|
-
// bazel-out/
|
|
27449
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/api.mjs
|
|
26695
27450
|
var ComponentScopeKind;
|
|
26696
27451
|
(function(ComponentScopeKind2) {
|
|
26697
27452
|
ComponentScopeKind2[ComponentScopeKind2["NgModule"] = 0] = "NgModule";
|
|
26698
27453
|
ComponentScopeKind2[ComponentScopeKind2["Standalone"] = 1] = "Standalone";
|
|
26699
27454
|
})(ComponentScopeKind || (ComponentScopeKind = {}));
|
|
26700
27455
|
|
|
26701
|
-
// bazel-out/
|
|
27456
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/component_scope.mjs
|
|
26702
27457
|
var CompoundComponentScopeReader = class {
|
|
26703
27458
|
constructor(readers) {
|
|
26704
27459
|
this.readers = readers;
|
|
@@ -26723,7 +27478,7 @@ var CompoundComponentScopeReader = class {
|
|
|
26723
27478
|
}
|
|
26724
27479
|
};
|
|
26725
27480
|
|
|
26726
|
-
// bazel-out/
|
|
27481
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/dependency.mjs
|
|
26727
27482
|
var MetadataDtsModuleScopeResolver = class {
|
|
26728
27483
|
constructor(dtsMetaReader, aliasingHost) {
|
|
26729
27484
|
this.dtsMetaReader = dtsMetaReader;
|
|
@@ -26798,10 +27553,10 @@ var MetadataDtsModuleScopeResolver = class {
|
|
|
26798
27553
|
}
|
|
26799
27554
|
};
|
|
26800
27555
|
|
|
26801
|
-
// bazel-out/
|
|
27556
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
|
|
26802
27557
|
var import_typescript33 = __toESM(require("typescript"), 1);
|
|
26803
27558
|
|
|
26804
|
-
// bazel-out/
|
|
27559
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/util.mjs
|
|
26805
27560
|
function getDiagnosticNode(ref, rawExpr) {
|
|
26806
27561
|
return rawExpr !== null ? ref.getOriginForDiagnostics(rawExpr) : ref.node.name;
|
|
26807
27562
|
}
|
|
@@ -26824,7 +27579,7 @@ function makeUnknownComponentImportDiagnostic(ref, rawExpr) {
|
|
|
26824
27579
|
return makeDiagnostic(ErrorCode.COMPONENT_UNKNOWN_IMPORT, getDiagnosticNode(ref, rawExpr), `Component imports must be standalone components, directives, pipes, or must be NgModules.`);
|
|
26825
27580
|
}
|
|
26826
27581
|
|
|
26827
|
-
// bazel-out/
|
|
27582
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
|
|
26828
27583
|
var LocalModuleScopeRegistry = class {
|
|
26829
27584
|
constructor(localReader, fullReader, dependencyScopeReader, refEmitter, aliasingHost) {
|
|
26830
27585
|
this.localReader = localReader;
|
|
@@ -27163,7 +27918,7 @@ function reexportCollision(module3, refA, refB) {
|
|
|
27163
27918
|
]);
|
|
27164
27919
|
}
|
|
27165
27920
|
|
|
27166
|
-
// bazel-out/
|
|
27921
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/typecheck.mjs
|
|
27167
27922
|
var import_typescript35 = __toESM(require("typescript"), 1);
|
|
27168
27923
|
var TypeCheckScopeRegistry = class {
|
|
27169
27924
|
constructor(scopeReader, metaReader, hostDirectivesResolver) {
|
|
@@ -27231,7 +27986,7 @@ var TypeCheckScopeRegistry = class {
|
|
|
27231
27986
|
}
|
|
27232
27987
|
};
|
|
27233
27988
|
|
|
27234
|
-
// bazel-out/
|
|
27989
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/api.mjs
|
|
27235
27990
|
var CompilationMode;
|
|
27236
27991
|
(function(CompilationMode2) {
|
|
27237
27992
|
CompilationMode2[CompilationMode2["FULL"] = 0] = "FULL";
|
|
@@ -27245,7 +28000,7 @@ var HandlerPrecedence;
|
|
|
27245
28000
|
HandlerPrecedence2[HandlerPrecedence2["WEAK"] = 2] = "WEAK";
|
|
27246
28001
|
})(HandlerPrecedence || (HandlerPrecedence = {}));
|
|
27247
28002
|
|
|
27248
|
-
// bazel-out/
|
|
28003
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/alias.mjs
|
|
27249
28004
|
var import_typescript36 = __toESM(require("typescript"), 1);
|
|
27250
28005
|
function aliasTransformFactory(exportStatements) {
|
|
27251
28006
|
return () => {
|
|
@@ -27268,10 +28023,10 @@ function aliasTransformFactory(exportStatements) {
|
|
|
27268
28023
|
};
|
|
27269
28024
|
}
|
|
27270
28025
|
|
|
27271
|
-
// bazel-out/
|
|
28026
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
27272
28027
|
var import_typescript37 = __toESM(require("typescript"), 1);
|
|
27273
28028
|
|
|
27274
|
-
// bazel-out/
|
|
28029
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/trait.mjs
|
|
27275
28030
|
var TraitState;
|
|
27276
28031
|
(function(TraitState2) {
|
|
27277
28032
|
TraitState2[TraitState2["Pending"] = 0] = "Pending";
|
|
@@ -27328,7 +28083,7 @@ var TraitImpl = class {
|
|
|
27328
28083
|
}
|
|
27329
28084
|
};
|
|
27330
28085
|
|
|
27331
|
-
// bazel-out/
|
|
28086
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
27332
28087
|
var TraitCompiler = class {
|
|
27333
28088
|
constructor(handlers, reflector, perf, incrementalBuild, compileNonExportedClasses, compilationMode, dtsTransforms, semanticDepGraphUpdater, sourceFileTypeIdentifier) {
|
|
27334
28089
|
this.handlers = handlers;
|
|
@@ -27776,10 +28531,10 @@ function containsErrors(diagnostics) {
|
|
|
27776
28531
|
return diagnostics !== null && diagnostics.some((diag) => diag.category === import_typescript37.default.DiagnosticCategory.Error);
|
|
27777
28532
|
}
|
|
27778
28533
|
|
|
27779
|
-
// bazel-out/
|
|
28534
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
|
|
27780
28535
|
var import_typescript43 = __toESM(require("typescript"), 1);
|
|
27781
28536
|
|
|
27782
|
-
// bazel-out/
|
|
28537
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/context.mjs
|
|
27783
28538
|
var Context = class {
|
|
27784
28539
|
constructor(isStatement) {
|
|
27785
28540
|
this.isStatement = isStatement;
|
|
@@ -27792,7 +28547,7 @@ var Context = class {
|
|
|
27792
28547
|
}
|
|
27793
28548
|
};
|
|
27794
28549
|
|
|
27795
|
-
// bazel-out/
|
|
28550
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager.mjs
|
|
27796
28551
|
var import_typescript39 = __toESM(require("typescript"), 1);
|
|
27797
28552
|
var ImportManager = class {
|
|
27798
28553
|
constructor(rewriter = new NoopImportRewriter(), prefix = "i") {
|
|
@@ -27828,7 +28583,7 @@ var ImportManager = class {
|
|
|
27828
28583
|
}
|
|
27829
28584
|
};
|
|
27830
28585
|
|
|
27831
|
-
// bazel-out/
|
|
28586
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/translator.mjs
|
|
27832
28587
|
var UNARY_OPERATORS2 = /* @__PURE__ */ new Map([
|
|
27833
28588
|
[UnaryOperator.Minus, "-"],
|
|
27834
28589
|
[UnaryOperator.Plus, "+"]
|
|
@@ -27978,6 +28733,9 @@ var ExpressionTranslatorVisitor = class {
|
|
|
27978
28733
|
}
|
|
27979
28734
|
return this.factory.createConditional(cond, ast.trueCase.visitExpression(this, context), ast.falseCase.visitExpression(this, context));
|
|
27980
28735
|
}
|
|
28736
|
+
visitDynamicImportExpr(ast, context) {
|
|
28737
|
+
return this.factory.createDynamicImport(ast.url);
|
|
28738
|
+
}
|
|
27981
28739
|
visitNotExpr(ast, context) {
|
|
27982
28740
|
return this.factory.createUnaryExpression("!", ast.condition.visitExpression(this, context));
|
|
27983
28741
|
}
|
|
@@ -28059,7 +28817,7 @@ function createRange(span) {
|
|
|
28059
28817
|
};
|
|
28060
28818
|
}
|
|
28061
28819
|
|
|
28062
|
-
// bazel-out/
|
|
28820
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
|
|
28063
28821
|
var import_typescript40 = __toESM(require("typescript"), 1);
|
|
28064
28822
|
function translateType(type, contextFile, reflector, refEmitter, imports) {
|
|
28065
28823
|
return type.visitType(new TypeTranslatorVisitor(imports, contextFile, reflector, refEmitter), new Context(false));
|
|
@@ -28169,6 +28927,9 @@ var TypeTranslatorVisitor = class {
|
|
|
28169
28927
|
visitConditionalExpr(ast, context) {
|
|
28170
28928
|
throw new Error("Method not implemented.");
|
|
28171
28929
|
}
|
|
28930
|
+
visitDynamicImportExpr(ast, context) {
|
|
28931
|
+
throw new Error("Method not implemented.");
|
|
28932
|
+
}
|
|
28172
28933
|
visitNotExpr(ast, context) {
|
|
28173
28934
|
throw new Error("Method not implemented.");
|
|
28174
28935
|
}
|
|
@@ -28275,7 +29036,7 @@ var TypeTranslatorVisitor = class {
|
|
|
28275
29036
|
}
|
|
28276
29037
|
};
|
|
28277
29038
|
|
|
28278
|
-
// bazel-out/
|
|
29039
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_ast_factory.mjs
|
|
28279
29040
|
var import_typescript41 = __toESM(require("typescript"), 1);
|
|
28280
29041
|
var PureAnnotation;
|
|
28281
29042
|
(function(PureAnnotation2) {
|
|
@@ -28349,6 +29110,13 @@ var TypeScriptAstFactory = class {
|
|
|
28349
29110
|
createConditional(condition, whenTrue, whenFalse) {
|
|
28350
29111
|
return import_typescript41.default.factory.createConditionalExpression(condition, void 0, whenTrue, void 0, whenFalse);
|
|
28351
29112
|
}
|
|
29113
|
+
createDynamicImport(url) {
|
|
29114
|
+
return import_typescript41.default.factory.createCallExpression(
|
|
29115
|
+
import_typescript41.default.factory.createToken(import_typescript41.default.SyntaxKind.ImportKeyword),
|
|
29116
|
+
void 0,
|
|
29117
|
+
[import_typescript41.default.factory.createStringLiteral(url)]
|
|
29118
|
+
);
|
|
29119
|
+
}
|
|
28352
29120
|
createFunctionDeclaration(functionName, parameters, body) {
|
|
28353
29121
|
if (!import_typescript41.default.isBlock(body)) {
|
|
28354
29122
|
throw new Error(`Invalid syntax, expected a block, but got ${import_typescript41.default.SyntaxKind[body.kind]}.`);
|
|
@@ -28458,7 +29226,7 @@ function attachComments(statement, leadingComments) {
|
|
|
28458
29226
|
}
|
|
28459
29227
|
}
|
|
28460
29228
|
|
|
28461
|
-
// bazel-out/
|
|
29229
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_translator.mjs
|
|
28462
29230
|
function translateExpression(expression, imports, options = {}) {
|
|
28463
29231
|
return expression.visitExpression(new ExpressionTranslatorVisitor(new TypeScriptAstFactory(options.annotateForClosureCompiler === true), imports, options), new Context(false));
|
|
28464
29232
|
}
|
|
@@ -28466,7 +29234,7 @@ function translateStatement(statement, imports, options = {}) {
|
|
|
28466
29234
|
return statement.visitStatement(new ExpressionTranslatorVisitor(new TypeScriptAstFactory(options.annotateForClosureCompiler === true), imports, options), new Context(true));
|
|
28467
29235
|
}
|
|
28468
29236
|
|
|
28469
|
-
// bazel-out/
|
|
29237
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/utils.mjs
|
|
28470
29238
|
var import_typescript42 = __toESM(require("typescript"), 1);
|
|
28471
29239
|
function addImports(importManager, sf, extraStatements = []) {
|
|
28472
29240
|
const addedImports = importManager.getAllImports(sf.fileName).map((i) => {
|
|
@@ -28502,7 +29270,7 @@ function isImportStatement(stmt) {
|
|
|
28502
29270
|
return import_typescript42.default.isImportDeclaration(stmt) || import_typescript42.default.isImportEqualsDeclaration(stmt) || import_typescript42.default.isNamespaceImport(stmt);
|
|
28503
29271
|
}
|
|
28504
29272
|
|
|
28505
|
-
// bazel-out/
|
|
29273
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
|
|
28506
29274
|
var DtsTransformRegistry = class {
|
|
28507
29275
|
constructor() {
|
|
28508
29276
|
this.ivyDeclarationTransforms = /* @__PURE__ */ new Map();
|
|
@@ -28649,10 +29417,10 @@ function markForEmitAsSingleLine(node) {
|
|
|
28649
29417
|
import_typescript43.default.forEachChild(node, markForEmitAsSingleLine);
|
|
28650
29418
|
}
|
|
28651
29419
|
|
|
28652
|
-
// bazel-out/
|
|
29420
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
28653
29421
|
var import_typescript45 = __toESM(require("typescript"), 1);
|
|
28654
29422
|
|
|
28655
|
-
// bazel-out/
|
|
29423
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/visitor.mjs
|
|
28656
29424
|
var import_typescript44 = __toESM(require("typescript"), 1);
|
|
28657
29425
|
function visit(node, visitor, context) {
|
|
28658
29426
|
return visitor._visit(node, context);
|
|
@@ -28713,7 +29481,7 @@ var Visitor = class {
|
|
|
28713
29481
|
}
|
|
28714
29482
|
};
|
|
28715
29483
|
|
|
28716
|
-
// bazel-out/
|
|
29484
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
28717
29485
|
var NO_DECORATORS = /* @__PURE__ */ new Set();
|
|
28718
29486
|
var CLOSURE_FILE_OVERVIEW_REGEXP = /\s+@fileoverview\s+/i;
|
|
28719
29487
|
function ivyTransformFactory(compilation, reflector, importRewriter, defaultImportTracker, perf, isCore, isClosureCompilerEnabled) {
|
|
@@ -28924,7 +29692,7 @@ function nodeArrayFromDecoratorsArray(decorators) {
|
|
|
28924
29692
|
return array;
|
|
28925
29693
|
}
|
|
28926
29694
|
|
|
28927
|
-
// bazel-out/
|
|
29695
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
|
|
28928
29696
|
var import_typescript46 = __toESM(require("typescript"), 1);
|
|
28929
29697
|
var EMPTY_OBJECT = {};
|
|
28930
29698
|
var QUERY_TYPES = /* @__PURE__ */ new Set([
|
|
@@ -29487,7 +30255,7 @@ function toR3InputMetadata(mapping) {
|
|
|
29487
30255
|
};
|
|
29488
30256
|
}
|
|
29489
30257
|
|
|
29490
|
-
// bazel-out/
|
|
30258
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/symbol.mjs
|
|
29491
30259
|
var DirectiveSymbol = class extends SemanticSymbol {
|
|
29492
30260
|
constructor(decl, selector, inputs, outputs, exportAs, typeCheckMeta, typeParameters) {
|
|
29493
30261
|
super(decl);
|
|
@@ -29567,7 +30335,7 @@ function isBaseClassEqual(current, previous) {
|
|
|
29567
30335
|
return isSymbolEqual(current, previous);
|
|
29568
30336
|
}
|
|
29569
30337
|
|
|
29570
|
-
// bazel-out/
|
|
30338
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
|
|
29571
30339
|
var FIELD_DECORATORS = [
|
|
29572
30340
|
"Input",
|
|
29573
30341
|
"Output",
|
|
@@ -29738,10 +30506,10 @@ var DirectiveDecoratorHandler = class {
|
|
|
29738
30506
|
}
|
|
29739
30507
|
};
|
|
29740
30508
|
|
|
29741
|
-
// bazel-out/
|
|
30509
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
29742
30510
|
var import_typescript48 = __toESM(require("typescript"), 1);
|
|
29743
30511
|
|
|
29744
|
-
// bazel-out/
|
|
30512
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/module_with_providers.mjs
|
|
29745
30513
|
var import_typescript47 = __toESM(require("typescript"), 1);
|
|
29746
30514
|
function createModuleWithProvidersResolver(reflector, isCore) {
|
|
29747
30515
|
function _reflectModuleFromTypeParam(type, node) {
|
|
@@ -29808,7 +30576,7 @@ function isResolvedModuleWithProviders(sv) {
|
|
|
29808
30576
|
return typeof sv.value === "object" && sv.value != null && sv.value.hasOwnProperty("ngModule") && sv.value.hasOwnProperty("mwpCall");
|
|
29809
30577
|
}
|
|
29810
30578
|
|
|
29811
|
-
// bazel-out/
|
|
30579
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
29812
30580
|
var NgModuleSymbol = class extends SemanticSymbol {
|
|
29813
30581
|
constructor(decl, hasProviders) {
|
|
29814
30582
|
super(decl);
|
|
@@ -30358,7 +31126,7 @@ function isSyntheticReference(ref) {
|
|
|
30358
31126
|
return ref.synthetic;
|
|
30359
31127
|
}
|
|
30360
31128
|
|
|
30361
|
-
// bazel-out/
|
|
31129
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/diagnostics.mjs
|
|
30362
31130
|
function makeCyclicImportInfo(ref, type, cycle) {
|
|
30363
31131
|
const name = ref.debugName || "(unknown)";
|
|
30364
31132
|
const path3 = cycle.getPath().map((sf) => sf.fileName).join(" -> ");
|
|
@@ -30381,7 +31149,7 @@ function checkCustomElementSelectorForErrors(selector) {
|
|
|
30381
31149
|
return null;
|
|
30382
31150
|
}
|
|
30383
31151
|
|
|
30384
|
-
// bazel-out/
|
|
31152
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/resources.mjs
|
|
30385
31153
|
var import_typescript50 = __toESM(require("typescript"), 1);
|
|
30386
31154
|
function getTemplateDeclarationNodeForError(declaration) {
|
|
30387
31155
|
return declaration.isInline ? declaration.expression : declaration.templateUrlExpression;
|
|
@@ -30458,7 +31226,8 @@ function parseExtractedTemplate(template2, sourceStr, sourceParseRange, escapedS
|
|
|
30458
31226
|
escapedString,
|
|
30459
31227
|
enableI18nLegacyMessageIdFormat: options.enableI18nLegacyMessageIdFormat,
|
|
30460
31228
|
i18nNormalizeLineEndingsInICUs,
|
|
30461
|
-
alwaysAttemptHtmlToR3AstConversion: options.usePoisonedData
|
|
31229
|
+
alwaysAttemptHtmlToR3AstConversion: options.usePoisonedData,
|
|
31230
|
+
enabledBlockTypes: options.enabledBlockTypes
|
|
30462
31231
|
});
|
|
30463
31232
|
const { nodes: diagNodes } = parseTemplate(sourceStr, sourceMapUrl != null ? sourceMapUrl : "", {
|
|
30464
31233
|
preserveWhitespaces: true,
|
|
@@ -30691,7 +31460,7 @@ function _extractTemplateStyleUrls(template2) {
|
|
|
30691
31460
|
return template2.styleUrls.map((url) => ({ url, source: 1, nodeForError }));
|
|
30692
31461
|
}
|
|
30693
31462
|
|
|
30694
|
-
// bazel-out/
|
|
31463
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/symbol.mjs
|
|
30695
31464
|
var ComponentSymbol = class extends DirectiveSymbol {
|
|
30696
31465
|
constructor() {
|
|
30697
31466
|
super(...arguments);
|
|
@@ -30726,7 +31495,7 @@ var ComponentSymbol = class extends DirectiveSymbol {
|
|
|
30726
31495
|
}
|
|
30727
31496
|
};
|
|
30728
31497
|
|
|
30729
|
-
// bazel-out/
|
|
31498
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/util.mjs
|
|
30730
31499
|
function collectAnimationNames(value, animationTriggerNames) {
|
|
30731
31500
|
if (value instanceof Map) {
|
|
30732
31501
|
const name = value.get("name");
|
|
@@ -30802,10 +31571,10 @@ function isLikelyModuleWithProviders(value) {
|
|
|
30802
31571
|
return false;
|
|
30803
31572
|
}
|
|
30804
31573
|
|
|
30805
|
-
// bazel-out/
|
|
31574
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
30806
31575
|
var EMPTY_ARRAY2 = [];
|
|
30807
31576
|
var ComponentDecoratorHandler = class {
|
|
30808
|
-
constructor(reflector, evaluator, metaRegistry, metaReader, scopeReader, dtsScopeReader, scopeRegistry, typeCheckScopeRegistry, resourceRegistry, isCore, strictCtorDeps, resourceLoader, rootDirs, defaultPreserveWhitespaces, i18nUseExternalIds, enableI18nLegacyMessageIdFormat, usePoisonedData, i18nNormalizeLineEndingsInICUs, moduleResolver, cycleAnalyzer, cycleHandlingStrategy, refEmitter, referencesRegistry, depTracker, injectableRegistry, semanticDepGraphUpdater, annotateForClosureCompiler, perf, hostDirectivesResolver, includeClassMetadata, compilationMode) {
|
|
31577
|
+
constructor(reflector, evaluator, metaRegistry, metaReader, scopeReader, dtsScopeReader, scopeRegistry, typeCheckScopeRegistry, resourceRegistry, isCore, strictCtorDeps, resourceLoader, rootDirs, defaultPreserveWhitespaces, i18nUseExternalIds, enableI18nLegacyMessageIdFormat, usePoisonedData, i18nNormalizeLineEndingsInICUs, enabledBlockTypes, moduleResolver, cycleAnalyzer, cycleHandlingStrategy, refEmitter, referencesRegistry, depTracker, injectableRegistry, semanticDepGraphUpdater, annotateForClosureCompiler, perf, hostDirectivesResolver, includeClassMetadata, compilationMode) {
|
|
30809
31578
|
this.reflector = reflector;
|
|
30810
31579
|
this.evaluator = evaluator;
|
|
30811
31580
|
this.metaRegistry = metaRegistry;
|
|
@@ -30824,6 +31593,7 @@ var ComponentDecoratorHandler = class {
|
|
|
30824
31593
|
this.enableI18nLegacyMessageIdFormat = enableI18nLegacyMessageIdFormat;
|
|
30825
31594
|
this.usePoisonedData = usePoisonedData;
|
|
30826
31595
|
this.i18nNormalizeLineEndingsInICUs = i18nNormalizeLineEndingsInICUs;
|
|
31596
|
+
this.enabledBlockTypes = enabledBlockTypes;
|
|
30827
31597
|
this.moduleResolver = moduleResolver;
|
|
30828
31598
|
this.cycleAnalyzer = cycleAnalyzer;
|
|
30829
31599
|
this.cycleHandlingStrategy = cycleHandlingStrategy;
|
|
@@ -30846,7 +31616,8 @@ var ComponentDecoratorHandler = class {
|
|
|
30846
31616
|
this.extractTemplateOptions = {
|
|
30847
31617
|
enableI18nLegacyMessageIdFormat: this.enableI18nLegacyMessageIdFormat,
|
|
30848
31618
|
i18nNormalizeLineEndingsInICUs: this.i18nNormalizeLineEndingsInICUs,
|
|
30849
|
-
usePoisonedData: this.usePoisonedData
|
|
31619
|
+
usePoisonedData: this.usePoisonedData,
|
|
31620
|
+
enabledBlockTypes: this.enabledBlockTypes
|
|
30850
31621
|
};
|
|
30851
31622
|
}
|
|
30852
31623
|
detect(node, decorators) {
|
|
@@ -30994,7 +31765,8 @@ var ComponentDecoratorHandler = class {
|
|
|
30994
31765
|
template2 = extractTemplate(node, templateDecl, this.evaluator, this.depTracker, this.resourceLoader, {
|
|
30995
31766
|
enableI18nLegacyMessageIdFormat: this.enableI18nLegacyMessageIdFormat,
|
|
30996
31767
|
i18nNormalizeLineEndingsInICUs: this.i18nNormalizeLineEndingsInICUs,
|
|
30997
|
-
usePoisonedData: this.usePoisonedData
|
|
31768
|
+
usePoisonedData: this.usePoisonedData,
|
|
31769
|
+
enabledBlockTypes: this.enabledBlockTypes
|
|
30998
31770
|
});
|
|
30999
31771
|
}
|
|
31000
31772
|
const templateResource = template2.declaration.isInline ? { path: null, expression: component.get("template") } : {
|
|
@@ -31469,7 +32241,7 @@ function validateStandaloneImports(importRefs, importExpr2, metaReader, scopeRea
|
|
|
31469
32241
|
return diagnostics;
|
|
31470
32242
|
}
|
|
31471
32243
|
|
|
31472
|
-
// bazel-out/
|
|
32244
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
|
|
31473
32245
|
var import_typescript53 = __toESM(require("typescript"), 1);
|
|
31474
32246
|
var InjectableDecoratorHandler = class {
|
|
31475
32247
|
constructor(reflector, evaluator, isCore, strictCtorDeps, injectableRegistry, perf, includeClassMetadata, errorOnDuplicateProv = true) {
|
|
@@ -31687,7 +32459,7 @@ function getDep(dep, reflector) {
|
|
|
31687
32459
|
return meta;
|
|
31688
32460
|
}
|
|
31689
32461
|
|
|
31690
|
-
// bazel-out/
|
|
32462
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
|
|
31691
32463
|
var import_typescript54 = __toESM(require("typescript"), 1);
|
|
31692
32464
|
var PipeSymbol = class extends SemanticSymbol {
|
|
31693
32465
|
constructor(decl, name) {
|
|
@@ -31837,7 +32609,7 @@ var PipeDecoratorHandler = class {
|
|
|
31837
32609
|
}
|
|
31838
32610
|
};
|
|
31839
32611
|
|
|
31840
|
-
// bazel-out/
|
|
32612
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
|
|
31841
32613
|
var CycleAnalyzer = class {
|
|
31842
32614
|
constructor(importGraph) {
|
|
31843
32615
|
this.importGraph = importGraph;
|
|
@@ -31908,7 +32680,7 @@ var Cycle = class {
|
|
|
31908
32680
|
}
|
|
31909
32681
|
};
|
|
31910
32682
|
|
|
31911
|
-
// bazel-out/
|
|
32683
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/imports.mjs
|
|
31912
32684
|
var import_typescript55 = __toESM(require("typescript"), 1);
|
|
31913
32685
|
var ImportGraph = class {
|
|
31914
32686
|
constructor(checker, perf) {
|
|
@@ -32000,7 +32772,7 @@ var Found = class {
|
|
|
32000
32772
|
}
|
|
32001
32773
|
};
|
|
32002
32774
|
|
|
32003
|
-
// bazel-out/
|
|
32775
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
|
|
32004
32776
|
var import_typescript56 = __toESM(require("typescript"), 1);
|
|
32005
32777
|
var FlatIndexGenerator = class {
|
|
32006
32778
|
constructor(entryPoint, relativeFlatIndexPath, moduleName) {
|
|
@@ -32025,7 +32797,7 @@ export * from '${relativeEntryPoint}';
|
|
|
32025
32797
|
}
|
|
32026
32798
|
};
|
|
32027
32799
|
|
|
32028
|
-
// bazel-out/
|
|
32800
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/logic.mjs
|
|
32029
32801
|
function findFlatIndexEntryPoint(rootFiles) {
|
|
32030
32802
|
const tsFiles = rootFiles.filter((file) => isNonDeclarationTsPath(file));
|
|
32031
32803
|
let resolvedEntryPoint = null;
|
|
@@ -32041,7 +32813,7 @@ function findFlatIndexEntryPoint(rootFiles) {
|
|
|
32041
32813
|
return resolvedEntryPoint;
|
|
32042
32814
|
}
|
|
32043
32815
|
|
|
32044
|
-
// bazel-out/
|
|
32816
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
|
|
32045
32817
|
var import_typescript58 = __toESM(require("typescript"), 1);
|
|
32046
32818
|
function checkForPrivateExports(entryPoint, checker, refGraph) {
|
|
32047
32819
|
const diagnostics = [];
|
|
@@ -32121,7 +32893,7 @@ function getDescriptorOfDeclaration(decl) {
|
|
|
32121
32893
|
}
|
|
32122
32894
|
}
|
|
32123
32895
|
|
|
32124
|
-
// bazel-out/
|
|
32896
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/reference_graph.mjs
|
|
32125
32897
|
var ReferenceGraph = class {
|
|
32126
32898
|
constructor() {
|
|
32127
32899
|
this.references = /* @__PURE__ */ new Map();
|
|
@@ -32175,7 +32947,7 @@ var ReferenceGraph = class {
|
|
|
32175
32947
|
}
|
|
32176
32948
|
};
|
|
32177
32949
|
|
|
32178
|
-
// bazel-out/
|
|
32950
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/api.mjs
|
|
32179
32951
|
var NgOriginalFile = Symbol("NgOriginalFile");
|
|
32180
32952
|
var UpdateMode;
|
|
32181
32953
|
(function(UpdateMode2) {
|
|
@@ -32183,13 +32955,13 @@ var UpdateMode;
|
|
|
32183
32955
|
UpdateMode2[UpdateMode2["Incremental"] = 1] = "Incremental";
|
|
32184
32956
|
})(UpdateMode || (UpdateMode = {}));
|
|
32185
32957
|
|
|
32186
|
-
// bazel-out/
|
|
32958
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
|
|
32187
32959
|
var import_typescript62 = __toESM(require("typescript"), 1);
|
|
32188
32960
|
|
|
32189
|
-
// bazel-out/
|
|
32961
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
32190
32962
|
var import_typescript59 = __toESM(require("typescript"), 1);
|
|
32191
32963
|
|
|
32192
|
-
// bazel-out/
|
|
32964
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/expando.mjs
|
|
32193
32965
|
var NgExtension = Symbol("NgExtension");
|
|
32194
32966
|
function isExtended(sf) {
|
|
32195
32967
|
return sf[NgExtension] !== void 0;
|
|
@@ -32249,13 +33021,13 @@ function retagTsFile(sf) {
|
|
|
32249
33021
|
}
|
|
32250
33022
|
}
|
|
32251
33023
|
|
|
32252
|
-
// bazel-out/
|
|
33024
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/util.mjs
|
|
32253
33025
|
var TS_EXTENSIONS = /\.tsx?$/i;
|
|
32254
33026
|
function makeShimFileName(fileName, suffix) {
|
|
32255
33027
|
return absoluteFrom(fileName.replace(TS_EXTENSIONS, suffix));
|
|
32256
33028
|
}
|
|
32257
33029
|
|
|
32258
|
-
// bazel-out/
|
|
33030
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
32259
33031
|
var ShimAdapter = class {
|
|
32260
33032
|
constructor(delegate, tsRootFiles, topLevelGenerators, perFileGenerators, oldProgram) {
|
|
32261
33033
|
this.delegate = delegate;
|
|
@@ -32350,7 +33122,7 @@ var ShimAdapter = class {
|
|
|
32350
33122
|
}
|
|
32351
33123
|
};
|
|
32352
33124
|
|
|
32353
|
-
// bazel-out/
|
|
33125
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
|
|
32354
33126
|
var ShimReferenceTagger = class {
|
|
32355
33127
|
constructor(shimExtensions) {
|
|
32356
33128
|
this.tagged = /* @__PURE__ */ new Set();
|
|
@@ -32384,7 +33156,7 @@ var ShimReferenceTagger = class {
|
|
|
32384
33156
|
}
|
|
32385
33157
|
};
|
|
32386
33158
|
|
|
32387
|
-
// bazel-out/
|
|
33159
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
|
|
32388
33160
|
var DelegatingCompilerHost = class {
|
|
32389
33161
|
constructor(delegate) {
|
|
32390
33162
|
this.delegate = delegate;
|
|
@@ -32497,7 +33269,7 @@ var TsCreateProgramDriver = class {
|
|
|
32497
33269
|
}
|
|
32498
33270
|
};
|
|
32499
33271
|
|
|
32500
|
-
// bazel-out/
|
|
33272
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.mjs
|
|
32501
33273
|
var FileDependencyGraph = class {
|
|
32502
33274
|
constructor() {
|
|
32503
33275
|
this.nodes = /* @__PURE__ */ new Map();
|
|
@@ -32564,7 +33336,7 @@ function isLogicallyChanged(sf, node, changedTsPaths, deletedTsPaths, changedRes
|
|
|
32564
33336
|
return false;
|
|
32565
33337
|
}
|
|
32566
33338
|
|
|
32567
|
-
// bazel-out/
|
|
33339
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
|
|
32568
33340
|
var IncrementalStateKind;
|
|
32569
33341
|
(function(IncrementalStateKind2) {
|
|
32570
33342
|
IncrementalStateKind2[IncrementalStateKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -32572,7 +33344,7 @@ var IncrementalStateKind;
|
|
|
32572
33344
|
IncrementalStateKind2[IncrementalStateKind2["Analyzed"] = 2] = "Analyzed";
|
|
32573
33345
|
})(IncrementalStateKind || (IncrementalStateKind = {}));
|
|
32574
33346
|
|
|
32575
|
-
// bazel-out/
|
|
33347
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
|
|
32576
33348
|
var PhaseKind;
|
|
32577
33349
|
(function(PhaseKind2) {
|
|
32578
33350
|
PhaseKind2[PhaseKind2["Analysis"] = 0] = "Analysis";
|
|
@@ -32773,7 +33545,7 @@ function toOriginalSourceFile(sf) {
|
|
|
32773
33545
|
}
|
|
32774
33546
|
}
|
|
32775
33547
|
|
|
32776
|
-
// bazel-out/
|
|
33548
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
|
|
32777
33549
|
var TrackedIncrementalBuildStrategy = class {
|
|
32778
33550
|
constructor() {
|
|
32779
33551
|
this.state = null;
|
|
@@ -32794,7 +33566,7 @@ var TrackedIncrementalBuildStrategy = class {
|
|
|
32794
33566
|
};
|
|
32795
33567
|
var SYM_INCREMENTAL_STATE = Symbol("NgIncrementalState");
|
|
32796
33568
|
|
|
32797
|
-
// bazel-out/
|
|
33569
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
|
|
32798
33570
|
var IdentifierKind;
|
|
32799
33571
|
(function(IdentifierKind2) {
|
|
32800
33572
|
IdentifierKind2[IdentifierKind2["Property"] = 0] = "Property";
|
|
@@ -32812,7 +33584,7 @@ var AbsoluteSourceSpan2 = class {
|
|
|
32812
33584
|
}
|
|
32813
33585
|
};
|
|
32814
33586
|
|
|
32815
|
-
// bazel-out/
|
|
33587
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/context.mjs
|
|
32816
33588
|
var IndexingContext = class {
|
|
32817
33589
|
constructor() {
|
|
32818
33590
|
this.components = /* @__PURE__ */ new Set();
|
|
@@ -32822,7 +33594,7 @@ var IndexingContext = class {
|
|
|
32822
33594
|
}
|
|
32823
33595
|
};
|
|
32824
33596
|
|
|
32825
|
-
// bazel-out/
|
|
33597
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
|
|
32826
33598
|
var ExpressionVisitor = class extends RecursiveAstVisitor2 {
|
|
32827
33599
|
constructor(expressionStr, absoluteOffset, boundTemplate, targetToIdentifier) {
|
|
32828
33600
|
super();
|
|
@@ -32939,6 +33711,22 @@ var TemplateVisitor = class extends RecursiveVisitor {
|
|
|
32939
33711
|
}
|
|
32940
33712
|
this.identifiers.add(variableIdentifier);
|
|
32941
33713
|
}
|
|
33714
|
+
visitDeferredBlock(deferred) {
|
|
33715
|
+
var _a2, _b2, _c2;
|
|
33716
|
+
this.visitAll(deferred.children);
|
|
33717
|
+
(_a2 = deferred.placeholder) == null ? void 0 : _a2.visit(this);
|
|
33718
|
+
(_b2 = deferred.loading) == null ? void 0 : _b2.visit(this);
|
|
33719
|
+
(_c2 = deferred.error) == null ? void 0 : _c2.visit(this);
|
|
33720
|
+
}
|
|
33721
|
+
visitDeferredBlockPlaceholder(block) {
|
|
33722
|
+
this.visitAll(block.children);
|
|
33723
|
+
}
|
|
33724
|
+
visitDeferredBlockError(block) {
|
|
33725
|
+
this.visitAll(block.children);
|
|
33726
|
+
}
|
|
33727
|
+
visitDeferredBlockLoading(block) {
|
|
33728
|
+
this.visitAll(block.children);
|
|
33729
|
+
}
|
|
32942
33730
|
elementOrTemplateToIdentifier(node) {
|
|
32943
33731
|
var _a2;
|
|
32944
33732
|
if (this.elementAndTemplateIdentifierCache.has(node)) {
|
|
@@ -33058,7 +33846,7 @@ function getTemplateIdentifiers(boundTemplate) {
|
|
|
33058
33846
|
return { identifiers: visitor.identifiers, errors: visitor.errors };
|
|
33059
33847
|
}
|
|
33060
33848
|
|
|
33061
|
-
// bazel-out/
|
|
33849
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
|
|
33062
33850
|
function generateAnalysis(context) {
|
|
33063
33851
|
const analysis = /* @__PURE__ */ new Map();
|
|
33064
33852
|
context.components.forEach(({ declaration, selector, boundTemplate, templateMeta }) => {
|
|
@@ -33094,7 +33882,7 @@ function generateAnalysis(context) {
|
|
|
33094
33882
|
return analysis;
|
|
33095
33883
|
}
|
|
33096
33884
|
|
|
33097
|
-
// bazel-out/
|
|
33885
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/ng_module_index.mjs
|
|
33098
33886
|
var NgModuleIndexImpl = class {
|
|
33099
33887
|
constructor(metaReader, localReader) {
|
|
33100
33888
|
this.metaReader = metaReader;
|
|
@@ -33183,7 +33971,7 @@ var NgModuleIndexImpl = class {
|
|
|
33183
33971
|
}
|
|
33184
33972
|
};
|
|
33185
33973
|
|
|
33186
|
-
// bazel-out/
|
|
33974
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
|
|
33187
33975
|
var import_typescript65 = __toESM(require("typescript"), 1);
|
|
33188
33976
|
var CSS_PREPROCESSOR_EXT = /(\.scss|\.sass|\.less|\.styl)$/;
|
|
33189
33977
|
var RESOURCE_MARKER = ".$ngresource$";
|
|
@@ -33331,7 +34119,7 @@ function createLookupResolutionHost(adapter) {
|
|
|
33331
34119
|
};
|
|
33332
34120
|
}
|
|
33333
34121
|
|
|
33334
|
-
// bazel-out/
|
|
34122
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/standalone.mjs
|
|
33335
34123
|
var StandaloneComponentScopeReader = class {
|
|
33336
34124
|
constructor(metaReader, localModuleReader, dtsModuleReader) {
|
|
33337
34125
|
this.metaReader = metaReader;
|
|
@@ -33409,21 +34197,21 @@ var StandaloneComponentScopeReader = class {
|
|
|
33409
34197
|
}
|
|
33410
34198
|
};
|
|
33411
34199
|
|
|
33412
|
-
// bazel-out/
|
|
34200
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/checker.mjs
|
|
33413
34201
|
var OptimizeFor;
|
|
33414
34202
|
(function(OptimizeFor2) {
|
|
33415
34203
|
OptimizeFor2[OptimizeFor2["SingleFile"] = 0] = "SingleFile";
|
|
33416
34204
|
OptimizeFor2[OptimizeFor2["WholeProgram"] = 1] = "WholeProgram";
|
|
33417
34205
|
})(OptimizeFor || (OptimizeFor = {}));
|
|
33418
34206
|
|
|
33419
|
-
// bazel-out/
|
|
34207
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/completion.mjs
|
|
33420
34208
|
var CompletionKind;
|
|
33421
34209
|
(function(CompletionKind2) {
|
|
33422
34210
|
CompletionKind2[CompletionKind2["Reference"] = 0] = "Reference";
|
|
33423
34211
|
CompletionKind2[CompletionKind2["Variable"] = 1] = "Variable";
|
|
33424
34212
|
})(CompletionKind || (CompletionKind = {}));
|
|
33425
34213
|
|
|
33426
|
-
// bazel-out/
|
|
34214
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/scope.mjs
|
|
33427
34215
|
var PotentialImportKind;
|
|
33428
34216
|
(function(PotentialImportKind2) {
|
|
33429
34217
|
PotentialImportKind2[PotentialImportKind2["NgModule"] = 0] = "NgModule";
|
|
@@ -33435,7 +34223,7 @@ var PotentialImportMode;
|
|
|
33435
34223
|
PotentialImportMode2[PotentialImportMode2["ForceDirect"] = 1] = "ForceDirect";
|
|
33436
34224
|
})(PotentialImportMode || (PotentialImportMode = {}));
|
|
33437
34225
|
|
|
33438
|
-
// bazel-out/
|
|
34226
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.mjs
|
|
33439
34227
|
var SymbolKind;
|
|
33440
34228
|
(function(SymbolKind2) {
|
|
33441
34229
|
SymbolKind2[SymbolKind2["Input"] = 0] = "Input";
|
|
@@ -33451,7 +34239,7 @@ var SymbolKind;
|
|
|
33451
34239
|
SymbolKind2[SymbolKind2["Pipe"] = 10] = "Pipe";
|
|
33452
34240
|
})(SymbolKind || (SymbolKind = {}));
|
|
33453
34241
|
|
|
33454
|
-
// bazel-out/
|
|
34242
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
|
|
33455
34243
|
var import_typescript66 = __toESM(require("typescript"), 1);
|
|
33456
34244
|
function makeTemplateDiagnostic(templateId, mapping, span, category, code, messageText, relatedMessages) {
|
|
33457
34245
|
var _a2;
|
|
@@ -33558,7 +34346,7 @@ function parseTemplateAsSourceFile(fileName, template2) {
|
|
|
33558
34346
|
return import_typescript66.default.createSourceFile(fileName, template2, import_typescript66.default.ScriptTarget.Latest, false, import_typescript66.default.ScriptKind.JSX);
|
|
33559
34347
|
}
|
|
33560
34348
|
|
|
33561
|
-
// bazel-out/
|
|
34349
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
|
|
33562
34350
|
var TEMPLATE_ID = Symbol("ngTemplateId");
|
|
33563
34351
|
var NEXT_TEMPLATE_ID = Symbol("ngNextTemplateId");
|
|
33564
34352
|
function getTemplateId(clazz) {
|
|
@@ -33575,10 +34363,10 @@ function allocateTemplateId(sf) {
|
|
|
33575
34363
|
return `tcb${sf[NEXT_TEMPLATE_ID]++}`;
|
|
33576
34364
|
}
|
|
33577
34365
|
|
|
33578
|
-
// bazel-out/
|
|
34366
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
33579
34367
|
var import_typescript68 = __toESM(require("typescript"), 1);
|
|
33580
34368
|
|
|
33581
|
-
// bazel-out/
|
|
34369
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
|
|
33582
34370
|
var import_typescript67 = __toESM(require("typescript"), 1);
|
|
33583
34371
|
var parseSpanComment = /^(\d+),(\d+)$/;
|
|
33584
34372
|
function readSpanComment(node, sourceFile = node.getSourceFile()) {
|
|
@@ -33707,7 +34495,7 @@ function hasExpressionIdentifier(sourceFile, node, identifier) {
|
|
|
33707
34495
|
}) || false;
|
|
33708
34496
|
}
|
|
33709
34497
|
|
|
33710
|
-
// bazel-out/
|
|
34498
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
33711
34499
|
var CompletionEngine = class {
|
|
33712
34500
|
constructor(tcb, data, tcbPath, tcbIsShim) {
|
|
33713
34501
|
this.tcb = tcb;
|
|
@@ -33864,10 +34652,10 @@ var CompletionEngine = class {
|
|
|
33864
34652
|
}
|
|
33865
34653
|
};
|
|
33866
34654
|
|
|
33867
|
-
// bazel-out/
|
|
34655
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
33868
34656
|
var import_typescript83 = __toESM(require("typescript"), 1);
|
|
33869
34657
|
|
|
33870
|
-
// bazel-out/
|
|
34658
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
|
|
33871
34659
|
var import_typescript69 = __toESM(require("typescript"), 1);
|
|
33872
34660
|
var REGISTRY = new DomElementSchemaRegistry();
|
|
33873
34661
|
var REMOVE_XHTML_REGEX = /^:xhtml:/;
|
|
@@ -33919,10 +34707,10 @@ var RegistryDomSchemaChecker = class {
|
|
|
33919
34707
|
}
|
|
33920
34708
|
};
|
|
33921
34709
|
|
|
33922
|
-
// bazel-out/
|
|
34710
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
33923
34711
|
var import_typescript76 = __toESM(require("typescript"), 1);
|
|
33924
34712
|
|
|
33925
|
-
// bazel-out/
|
|
34713
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
|
|
33926
34714
|
var import_typescript70 = __toESM(require("typescript"), 1);
|
|
33927
34715
|
var SAFE_TO_CAST_WITHOUT_PARENS = /* @__PURE__ */ new Set([
|
|
33928
34716
|
import_typescript70.default.SyntaxKind.ParenthesizedExpression,
|
|
@@ -33996,16 +34784,16 @@ function isAccessExpression2(node) {
|
|
|
33996
34784
|
return import_typescript70.default.isPropertyAccessExpression(node) || import_typescript70.default.isElementAccessExpression(node);
|
|
33997
34785
|
}
|
|
33998
34786
|
|
|
33999
|
-
// bazel-out/
|
|
34787
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
34000
34788
|
var import_typescript75 = __toESM(require("typescript"), 1);
|
|
34001
34789
|
|
|
34002
|
-
// bazel-out/
|
|
34790
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
34003
34791
|
var import_typescript73 = __toESM(require("typescript"), 1);
|
|
34004
34792
|
|
|
34005
|
-
// bazel-out/
|
|
34793
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
|
|
34006
34794
|
var import_typescript72 = __toESM(require("typescript"), 1);
|
|
34007
34795
|
|
|
34008
|
-
// bazel-out/
|
|
34796
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_emitter.mjs
|
|
34009
34797
|
var import_typescript71 = __toESM(require("typescript"), 1);
|
|
34010
34798
|
var INELIGIBLE = {};
|
|
34011
34799
|
function canEmitType(type, canEmit) {
|
|
@@ -34080,7 +34868,7 @@ var TypeEmitter = class {
|
|
|
34080
34868
|
}
|
|
34081
34869
|
};
|
|
34082
34870
|
|
|
34083
|
-
// bazel-out/
|
|
34871
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
|
|
34084
34872
|
var TypeParameterEmitter = class {
|
|
34085
34873
|
constructor(typeParameters, reflector) {
|
|
34086
34874
|
this.typeParameters = typeParameters;
|
|
@@ -34157,7 +34945,7 @@ var TypeParameterEmitter = class {
|
|
|
34157
34945
|
}
|
|
34158
34946
|
};
|
|
34159
34947
|
|
|
34160
|
-
// bazel-out/
|
|
34948
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
34161
34949
|
var TcbInliningRequirement;
|
|
34162
34950
|
(function(TcbInliningRequirement2) {
|
|
34163
34951
|
TcbInliningRequirement2[TcbInliningRequirement2["MustInline"] = 0] = "MustInline";
|
|
@@ -34237,7 +35025,7 @@ function checkIfGenericTypeBoundsCanBeEmitted(node, reflector, env) {
|
|
|
34237
35025
|
return emitter.canEmit((ref) => env.canReferenceType(ref));
|
|
34238
35026
|
}
|
|
34239
35027
|
|
|
34240
|
-
// bazel-out/
|
|
35028
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
34241
35029
|
function generateTypeCtorDeclarationFn(node, meta, nodeTypeRef, typeParams) {
|
|
34242
35030
|
const rawTypeArgs = typeParams !== void 0 ? generateGenericArgs(typeParams) : void 0;
|
|
34243
35031
|
const rawType = import_typescript75.default.factory.createTypeReferenceNode(nodeTypeRef, rawTypeArgs);
|
|
@@ -34348,7 +35136,7 @@ function typeParametersWithDefaultTypes(params) {
|
|
|
34348
35136
|
});
|
|
34349
35137
|
}
|
|
34350
35138
|
|
|
34351
|
-
// bazel-out/
|
|
35139
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
34352
35140
|
var Environment = class {
|
|
34353
35141
|
constructor(config, importManager, refEmitter, reflector, contextFile) {
|
|
34354
35142
|
this.config = config;
|
|
@@ -34442,7 +35230,7 @@ var Environment = class {
|
|
|
34442
35230
|
}
|
|
34443
35231
|
};
|
|
34444
35232
|
|
|
34445
|
-
// bazel-out/
|
|
35233
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
|
|
34446
35234
|
var import_typescript77 = __toESM(require("typescript"), 1);
|
|
34447
35235
|
var OutOfBandDiagnosticRecorderImpl = class {
|
|
34448
35236
|
constructor(resolver) {
|
|
@@ -34577,7 +35365,7 @@ function makeInlineDiagnostic(templateId, code, node, messageText, relatedInform
|
|
|
34577
35365
|
});
|
|
34578
35366
|
}
|
|
34579
35367
|
|
|
34580
|
-
// bazel-out/
|
|
35368
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
|
|
34581
35369
|
var import_typescript78 = __toESM(require("typescript"), 1);
|
|
34582
35370
|
var TypeCheckShimGenerator = class {
|
|
34583
35371
|
constructor() {
|
|
@@ -34595,10 +35383,10 @@ var TypeCheckShimGenerator = class {
|
|
|
34595
35383
|
}
|
|
34596
35384
|
};
|
|
34597
35385
|
|
|
34598
|
-
// bazel-out/
|
|
35386
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
34599
35387
|
var import_typescript81 = __toESM(require("typescript"), 1);
|
|
34600
35388
|
|
|
34601
|
-
// bazel-out/
|
|
35389
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
|
|
34602
35390
|
var import_typescript79 = __toESM(require("typescript"), 1);
|
|
34603
35391
|
function wrapForDiagnostics(expr) {
|
|
34604
35392
|
return import_typescript79.default.factory.createParenthesizedExpression(expr);
|
|
@@ -34643,7 +35431,7 @@ function translateDiagnostic(diagnostic, resolver) {
|
|
|
34643
35431
|
return makeTemplateDiagnostic(sourceLocation.id, templateSourceMapping, span, diagnostic.category, diagnostic.code, diagnostic.messageText);
|
|
34644
35432
|
}
|
|
34645
35433
|
|
|
34646
|
-
// bazel-out/
|
|
35434
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
|
|
34647
35435
|
var import_typescript80 = __toESM(require("typescript"), 1);
|
|
34648
35436
|
var NULL_AS_ANY = import_typescript80.default.factory.createAsExpression(import_typescript80.default.factory.createNull(), import_typescript80.default.factory.createKeywordTypeNode(import_typescript80.default.SyntaxKind.AnyKeyword));
|
|
34649
35437
|
var UNDEFINED = import_typescript80.default.factory.createIdentifier("undefined");
|
|
@@ -34975,7 +35763,7 @@ var VeSafeLhsInferenceBugDetector = _VeSafeLhsInferenceBugDetector;
|
|
|
34975
35763
|
_VeSafeLhsInferenceBugDetector.SINGLETON = new _VeSafeLhsInferenceBugDetector();
|
|
34976
35764
|
})();
|
|
34977
35765
|
|
|
34978
|
-
// bazel-out/
|
|
35766
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_semantics.mjs
|
|
34979
35767
|
var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
|
|
34980
35768
|
constructor(templateId, boundTarget, oob) {
|
|
34981
35769
|
super();
|
|
@@ -34998,7 +35786,7 @@ var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
|
|
|
34998
35786
|
}
|
|
34999
35787
|
};
|
|
35000
35788
|
|
|
35001
|
-
// bazel-out/
|
|
35789
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
35002
35790
|
var TcbGenericContextBehavior;
|
|
35003
35791
|
(function(TcbGenericContextBehavior2) {
|
|
35004
35792
|
TcbGenericContextBehavior2[TcbGenericContextBehavior2["UseEmitter"] = 0] = "UseEmitter";
|
|
@@ -36125,7 +36913,7 @@ var TcbEventHandlerTranslator = class extends TcbExpressionTranslator {
|
|
|
36125
36913
|
}
|
|
36126
36914
|
};
|
|
36127
36915
|
|
|
36128
|
-
// bazel-out/
|
|
36916
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
|
|
36129
36917
|
var import_typescript82 = __toESM(require("typescript"), 1);
|
|
36130
36918
|
var TypeCheckFile = class extends Environment {
|
|
36131
36919
|
constructor(fileName, config, refEmitter, reflector, compilerHost) {
|
|
@@ -36161,7 +36949,7 @@ var TypeCheckFile = class extends Environment {
|
|
|
36161
36949
|
}
|
|
36162
36950
|
};
|
|
36163
36951
|
|
|
36164
|
-
// bazel-out/
|
|
36952
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
36165
36953
|
var InliningMode;
|
|
36166
36954
|
(function(InliningMode2) {
|
|
36167
36955
|
InliningMode2[InliningMode2["InlineOps"] = 0] = "InlineOps";
|
|
@@ -36398,7 +37186,7 @@ function splitStringAtPoints(str, points) {
|
|
|
36398
37186
|
return splits;
|
|
36399
37187
|
}
|
|
36400
37188
|
|
|
36401
|
-
// bazel-out/
|
|
37189
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/line_mappings.mjs
|
|
36402
37190
|
var LF_CHAR = 10;
|
|
36403
37191
|
var CR_CHAR = 13;
|
|
36404
37192
|
var LINE_SEP_CHAR = 8232;
|
|
@@ -36439,7 +37227,7 @@ function findClosestLineStartPosition(linesMap, position, low = 0, high = linesM
|
|
|
36439
37227
|
return low - 1;
|
|
36440
37228
|
}
|
|
36441
37229
|
|
|
36442
|
-
// bazel-out/
|
|
37230
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
|
|
36443
37231
|
var TemplateSource = class {
|
|
36444
37232
|
constructor(mapping, file) {
|
|
36445
37233
|
this.mapping = mapping;
|
|
@@ -36490,7 +37278,7 @@ var TemplateSourceManager = class {
|
|
|
36490
37278
|
}
|
|
36491
37279
|
};
|
|
36492
37280
|
|
|
36493
|
-
// bazel-out/
|
|
37281
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
|
|
36494
37282
|
var import_typescript84 = __toESM(require("typescript"), 1);
|
|
36495
37283
|
var SymbolBuilder = class {
|
|
36496
37284
|
constructor(tcbPath, tcbIsShim, typeCheckBlock, templateData, componentScopeReader, getTypeChecker) {
|
|
@@ -36967,7 +37755,7 @@ function sourceSpanEqual(a, b) {
|
|
|
36967
37755
|
return a.start.offset === b.start.offset && a.end.offset === b.end.offset;
|
|
36968
37756
|
}
|
|
36969
37757
|
|
|
36970
|
-
// bazel-out/
|
|
37758
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
|
|
36971
37759
|
var REGISTRY2 = new DomElementSchemaRegistry();
|
|
36972
37760
|
var TemplateTypeCheckerImpl = class {
|
|
36973
37761
|
constructor(originalProgram, programDriver, typeCheckAdapter, config, refEmitter, reflector, compilerHost, priorBuild, metaReader, localMetaReader, ngModuleIndex, componentScopeReader, typeCheckScopeRegistry, perf) {
|
|
@@ -37663,7 +38451,7 @@ var SingleShimTypeCheckingHost = class extends SingleFileTypeCheckingHost {
|
|
|
37663
38451
|
}
|
|
37664
38452
|
};
|
|
37665
38453
|
|
|
37666
|
-
// bazel-out/
|
|
38454
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
|
|
37667
38455
|
var TemplateCheckWithVisitor = class {
|
|
37668
38456
|
run(ctx, component, template2) {
|
|
37669
38457
|
const visitor = new TemplateVisitor2(ctx, component, this);
|
|
@@ -37732,6 +38520,28 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor2 {
|
|
|
37732
38520
|
}
|
|
37733
38521
|
visitIcu(icu) {
|
|
37734
38522
|
}
|
|
38523
|
+
visitDeferredBlock(deferred) {
|
|
38524
|
+
this.visitAllNodes(deferred.children);
|
|
38525
|
+
this.visitAllNodes(deferred.triggers);
|
|
38526
|
+
this.visitAllNodes(deferred.prefetchTriggers);
|
|
38527
|
+
deferred.placeholder && this.visit(deferred.placeholder);
|
|
38528
|
+
deferred.loading && this.visit(deferred.loading);
|
|
38529
|
+
deferred.error && this.visit(deferred.error);
|
|
38530
|
+
}
|
|
38531
|
+
visitDeferredTrigger(trigger) {
|
|
38532
|
+
if (trigger instanceof BoundDeferredTrigger) {
|
|
38533
|
+
this.visitAst(trigger.value);
|
|
38534
|
+
}
|
|
38535
|
+
}
|
|
38536
|
+
visitDeferredBlockPlaceholder(block) {
|
|
38537
|
+
this.visitAllNodes(block.children);
|
|
38538
|
+
}
|
|
38539
|
+
visitDeferredBlockError(block) {
|
|
38540
|
+
this.visitAllNodes(block.children);
|
|
38541
|
+
}
|
|
38542
|
+
visitDeferredBlockLoading(block) {
|
|
38543
|
+
this.visitAllNodes(block.children);
|
|
38544
|
+
}
|
|
37735
38545
|
getDiagnostics(template2) {
|
|
37736
38546
|
this.diagnostics = [];
|
|
37737
38547
|
this.visitAllNodes(template2);
|
|
@@ -37739,7 +38549,7 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor2 {
|
|
|
37739
38549
|
}
|
|
37740
38550
|
};
|
|
37741
38551
|
|
|
37742
|
-
// bazel-out/
|
|
38552
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
|
|
37743
38553
|
var InvalidBananaInBoxCheck = class extends TemplateCheckWithVisitor {
|
|
37744
38554
|
constructor() {
|
|
37745
38555
|
super(...arguments);
|
|
@@ -37764,7 +38574,7 @@ var factory = {
|
|
|
37764
38574
|
create: () => new InvalidBananaInBoxCheck()
|
|
37765
38575
|
};
|
|
37766
38576
|
|
|
37767
|
-
// bazel-out/
|
|
38577
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.mjs
|
|
37768
38578
|
var KNOWN_CONTROL_FLOW_DIRECTIVES = /* @__PURE__ */ new Map([
|
|
37769
38579
|
["ngIf", "NgIf"],
|
|
37770
38580
|
["ngFor", "NgFor"],
|
|
@@ -37808,7 +38618,7 @@ var factory2 = {
|
|
|
37808
38618
|
}
|
|
37809
38619
|
};
|
|
37810
38620
|
|
|
37811
|
-
// bazel-out/
|
|
38621
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.mjs
|
|
37812
38622
|
var MissingNgForOfLetCheck = class extends TemplateCheckWithVisitor {
|
|
37813
38623
|
constructor() {
|
|
37814
38624
|
super(...arguments);
|
|
@@ -37840,7 +38650,7 @@ var factory3 = {
|
|
|
37840
38650
|
create: () => new MissingNgForOfLetCheck()
|
|
37841
38651
|
};
|
|
37842
38652
|
|
|
37843
|
-
// bazel-out/
|
|
38653
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
|
|
37844
38654
|
var import_typescript87 = __toESM(require("typescript"), 1);
|
|
37845
38655
|
var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
37846
38656
|
constructor() {
|
|
@@ -37884,7 +38694,7 @@ var factory4 = {
|
|
|
37884
38694
|
}
|
|
37885
38695
|
};
|
|
37886
38696
|
|
|
37887
|
-
// bazel-out/
|
|
38697
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.mjs
|
|
37888
38698
|
var import_typescript88 = __toESM(require("typescript"), 1);
|
|
37889
38699
|
var OptionalChainNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
37890
38700
|
constructor() {
|
|
@@ -37929,7 +38739,7 @@ var factory5 = {
|
|
|
37929
38739
|
}
|
|
37930
38740
|
};
|
|
37931
38741
|
|
|
37932
|
-
// bazel-out/
|
|
38742
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.mjs
|
|
37933
38743
|
var STYLE_SUFFIXES = ["px", "%", "em"];
|
|
37934
38744
|
var SuffixNotSupportedCheck = class extends TemplateCheckWithVisitor {
|
|
37935
38745
|
constructor() {
|
|
@@ -37952,7 +38762,7 @@ var factory6 = {
|
|
|
37952
38762
|
create: () => new SuffixNotSupportedCheck()
|
|
37953
38763
|
};
|
|
37954
38764
|
|
|
37955
|
-
// bazel-out/
|
|
38765
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.mjs
|
|
37956
38766
|
var TextAttributeNotBindingSpec = class extends TemplateCheckWithVisitor {
|
|
37957
38767
|
constructor() {
|
|
37958
38768
|
super(...arguments);
|
|
@@ -37990,10 +38800,10 @@ var factory7 = {
|
|
|
37990
38800
|
create: () => new TextAttributeNotBindingSpec()
|
|
37991
38801
|
};
|
|
37992
38802
|
|
|
37993
|
-
// bazel-out/
|
|
38803
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
37994
38804
|
var import_typescript89 = __toESM(require("typescript"), 1);
|
|
37995
38805
|
|
|
37996
|
-
// bazel-out/
|
|
38806
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
|
|
37997
38807
|
var DiagnosticCategoryLabel;
|
|
37998
38808
|
(function(DiagnosticCategoryLabel2) {
|
|
37999
38809
|
DiagnosticCategoryLabel2["Warning"] = "warning";
|
|
@@ -38001,7 +38811,7 @@ var DiagnosticCategoryLabel;
|
|
|
38001
38811
|
DiagnosticCategoryLabel2["Suppress"] = "suppress";
|
|
38002
38812
|
})(DiagnosticCategoryLabel || (DiagnosticCategoryLabel = {}));
|
|
38003
38813
|
|
|
38004
|
-
// bazel-out/
|
|
38814
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
38005
38815
|
var ExtendedTemplateCheckerImpl = class {
|
|
38006
38816
|
constructor(templateTypeChecker, typeChecker, templateCheckFactories, options) {
|
|
38007
38817
|
var _a2, _b2, _c2, _d2, _e2;
|
|
@@ -38053,7 +38863,7 @@ function assertNever(value) {
|
|
|
38053
38863
|
${value}`);
|
|
38054
38864
|
}
|
|
38055
38865
|
|
|
38056
|
-
// bazel-out/
|
|
38866
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
|
|
38057
38867
|
var ALL_DIAGNOSTIC_FACTORIES = [
|
|
38058
38868
|
factory,
|
|
38059
38869
|
factory4,
|
|
@@ -38064,7 +38874,7 @@ var ALL_DIAGNOSTIC_FACTORIES = [
|
|
|
38064
38874
|
factory6
|
|
38065
38875
|
];
|
|
38066
38876
|
|
|
38067
|
-
// bazel-out/
|
|
38877
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
38068
38878
|
var CompilationTicketKind;
|
|
38069
38879
|
(function(CompilationTicketKind2) {
|
|
38070
38880
|
CompilationTicketKind2[CompilationTicketKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -38119,7 +38929,7 @@ var NgCompiler = class {
|
|
|
38119
38929
|
}
|
|
38120
38930
|
}
|
|
38121
38931
|
constructor(adapter, options, inputProgram, programDriver, incrementalStrategy, incrementalCompilation, enableTemplateTypeChecker, usePoisonedData, livePerfRecorder) {
|
|
38122
|
-
var _a2;
|
|
38932
|
+
var _a2, _b2;
|
|
38123
38933
|
this.adapter = adapter;
|
|
38124
38934
|
this.options = options;
|
|
38125
38935
|
this.inputProgram = inputProgram;
|
|
@@ -38133,6 +38943,7 @@ var NgCompiler = class {
|
|
|
38133
38943
|
this.nonTemplateDiagnostics = null;
|
|
38134
38944
|
this.delegatingPerfRecorder = new DelegatingPerfRecorder(this.perfRecorder);
|
|
38135
38945
|
this.enableTemplateTypeChecker = enableTemplateTypeChecker || ((_a2 = options._enableTemplateTypeChecker) != null ? _a2 : false);
|
|
38946
|
+
this.enabledBlockTypes = new Set((_b2 = options._enabledBlockTypes) != null ? _b2 : []);
|
|
38136
38947
|
this.constructionDiagnostics.push(...this.adapter.constructionDiagnostics, ...verifyCompatibleTypeCheckOptions(this.options));
|
|
38137
38948
|
this.currentProgram = inputProgram;
|
|
38138
38949
|
this.closureCompilerEnabled = !!this.options.annotateForClosureCompiler;
|
|
@@ -38600,7 +39411,7 @@ var NgCompiler = class {
|
|
|
38600
39411
|
throw new Error('JIT mode support ("supportJitMode" option) cannot be disabled in partial compilation mode.');
|
|
38601
39412
|
}
|
|
38602
39413
|
const handlers = [
|
|
38603
|
-
new ComponentDecoratorHandler(reflector, evaluator, metaRegistry, metaReader, scopeReader, depScopeReader, ngModuleScopeRegistry, typeCheckScopeRegistry, resourceRegistry, isCore, strictCtorDeps, this.resourceManager, this.adapter.rootDirs, this.options.preserveWhitespaces || false, this.options.i18nUseExternalIds !== false, this.options.enableI18nLegacyMessageIdFormat !== false, this.usePoisonedData, this.options.i18nNormalizeLineEndingsInICUs === true, this.moduleResolver, this.cycleAnalyzer, cycleHandlingStrategy, refEmitter, referencesRegistry, this.incrementalCompilation.depGraph, injectableRegistry, semanticDepGraphUpdater, this.closureCompilerEnabled, this.delegatingPerfRecorder, hostDirectivesResolver, supportTestBed, compilationMode),
|
|
39414
|
+
new ComponentDecoratorHandler(reflector, evaluator, metaRegistry, metaReader, scopeReader, depScopeReader, ngModuleScopeRegistry, typeCheckScopeRegistry, resourceRegistry, isCore, strictCtorDeps, this.resourceManager, this.adapter.rootDirs, this.options.preserveWhitespaces || false, this.options.i18nUseExternalIds !== false, this.options.enableI18nLegacyMessageIdFormat !== false, this.usePoisonedData, this.options.i18nNormalizeLineEndingsInICUs === true, this.enabledBlockTypes, this.moduleResolver, this.cycleAnalyzer, cycleHandlingStrategy, refEmitter, referencesRegistry, this.incrementalCompilation.depGraph, injectableRegistry, semanticDepGraphUpdater, this.closureCompilerEnabled, this.delegatingPerfRecorder, hostDirectivesResolver, supportTestBed, compilationMode),
|
|
38604
39415
|
new DirectiveDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, metaReader, injectableRegistry, refEmitter, referencesRegistry, isCore, strictCtorDeps, semanticDepGraphUpdater, this.closureCompilerEnabled, this.delegatingPerfRecorder, supportTestBed),
|
|
38605
39416
|
new PipeDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, injectableRegistry, isCore, this.delegatingPerfRecorder, supportTestBed),
|
|
38606
39417
|
new InjectableDecoratorHandler(reflector, evaluator, isCore, strictCtorDeps, injectableRegistry, this.delegatingPerfRecorder, supportTestBed),
|
|
@@ -38791,7 +39602,7 @@ function versionMapFromProgram(program, driver) {
|
|
|
38791
39602
|
return versions;
|
|
38792
39603
|
}
|
|
38793
39604
|
|
|
38794
|
-
// bazel-out/
|
|
39605
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
|
|
38795
39606
|
var import_typescript92 = __toESM(require("typescript"), 1);
|
|
38796
39607
|
var DelegatingCompilerHost2 = class {
|
|
38797
39608
|
constructor(delegate) {
|
|
@@ -38924,7 +39735,7 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
|
|
|
38924
39735
|
}
|
|
38925
39736
|
};
|
|
38926
39737
|
|
|
38927
|
-
// bazel-out/
|
|
39738
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
38928
39739
|
var NgtscProgram = class {
|
|
38929
39740
|
constructor(rootNames, options, delegateHost, oldProgram) {
|
|
38930
39741
|
this.options = options;
|
|
@@ -39142,21 +39953,21 @@ function mergeEmitResults(emitResults) {
|
|
|
39142
39953
|
return { diagnostics, emitSkipped, emittedFiles };
|
|
39143
39954
|
}
|
|
39144
39955
|
|
|
39145
|
-
// bazel-out/
|
|
39956
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
|
|
39146
39957
|
function createProgram({ rootNames, options, host, oldProgram }) {
|
|
39147
39958
|
return new NgtscProgram(rootNames, options, host, oldProgram);
|
|
39148
39959
|
}
|
|
39149
39960
|
|
|
39150
|
-
// bazel-out/
|
|
39961
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
39151
39962
|
var import_typescript96 = __toESM(require("typescript"), 1);
|
|
39152
39963
|
|
|
39153
|
-
// bazel-out/
|
|
39964
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
|
|
39154
39965
|
var import_typescript95 = __toESM(require("typescript"), 1);
|
|
39155
39966
|
|
|
39156
|
-
// bazel-out/
|
|
39967
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/downlevel_decorators_transform/downlevel_decorators_transform.mjs
|
|
39157
39968
|
var import_typescript97 = __toESM(require("typescript"), 1);
|
|
39158
39969
|
|
|
39159
|
-
// bazel-out/
|
|
39970
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/private/tooling.mjs
|
|
39160
39971
|
var GLOBAL_DEFS_FOR_TERSER = {
|
|
39161
39972
|
ngDevMode: false,
|
|
39162
39973
|
ngI18nClosureMode: false
|
|
@@ -39165,7 +39976,7 @@ var GLOBAL_DEFS_FOR_TERSER_WITH_AOT = __spreadProps(__spreadValues({}, GLOBAL_DE
|
|
|
39165
39976
|
ngJitMode: false
|
|
39166
39977
|
});
|
|
39167
39978
|
|
|
39168
|
-
// bazel-out/
|
|
39979
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/logging/src/logger.mjs
|
|
39169
39980
|
var LogLevel;
|
|
39170
39981
|
(function(LogLevel2) {
|
|
39171
39982
|
LogLevel2[LogLevel2["debug"] = 0] = "debug";
|
|
@@ -39174,7 +39985,7 @@ var LogLevel;
|
|
|
39174
39985
|
LogLevel2[LogLevel2["error"] = 3] = "error";
|
|
39175
39986
|
})(LogLevel || (LogLevel = {}));
|
|
39176
39987
|
|
|
39177
|
-
// bazel-out/
|
|
39988
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/logging/src/console_logger.mjs
|
|
39178
39989
|
var RESET = "\x1B[0m";
|
|
39179
39990
|
var RED = "\x1B[31m";
|
|
39180
39991
|
var YELLOW = "\x1B[33m";
|
|
@@ -39183,18 +39994,18 @@ var DEBUG = `${BLUE}Debug:${RESET}`;
|
|
|
39183
39994
|
var WARN = `${YELLOW}Warning:${RESET}`;
|
|
39184
39995
|
var ERROR = `${RED}Error:${RESET}`;
|
|
39185
39996
|
|
|
39186
|
-
// bazel-out/
|
|
39997
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/index.mjs
|
|
39187
39998
|
setFileSystem(new NodeJSFileSystem());
|
|
39188
39999
|
|
|
39189
|
-
// bazel-out/
|
|
40000
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/index.mjs
|
|
39190
40001
|
var import_fs2 = require("fs");
|
|
39191
40002
|
var import_path8 = require("path");
|
|
39192
40003
|
var import_typescript110 = __toESM(require("typescript"), 1);
|
|
39193
40004
|
|
|
39194
|
-
// bazel-out/
|
|
40005
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
|
|
39195
40006
|
var import_typescript99 = __toESM(require("typescript"), 1);
|
|
39196
40007
|
|
|
39197
|
-
// bazel-out/
|
|
40008
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/import_manager.mjs
|
|
39198
40009
|
var import_path4 = require("path");
|
|
39199
40010
|
var import_typescript98 = __toESM(require("typescript"), 1);
|
|
39200
40011
|
var ImportManager2 = class {
|
|
@@ -39378,7 +40189,7 @@ ${text2}`;
|
|
|
39378
40189
|
}
|
|
39379
40190
|
};
|
|
39380
40191
|
|
|
39381
|
-
// bazel-out/
|
|
40192
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
|
|
39382
40193
|
var ChangeTracker = class {
|
|
39383
40194
|
constructor(_printer, _importRemapper) {
|
|
39384
40195
|
__publicField(this, "_printer");
|
|
@@ -39434,7 +40245,7 @@ function normalizePath(path3) {
|
|
|
39434
40245
|
return path3.replace(/\\/g, "/");
|
|
39435
40246
|
}
|
|
39436
40247
|
|
|
39437
|
-
// bazel-out/
|
|
40248
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
|
|
39438
40249
|
var import_core13 = require("@angular-devkit/core");
|
|
39439
40250
|
function getProjectTsConfigPaths(tree) {
|
|
39440
40251
|
return __async(this, null, function* () {
|
|
@@ -39514,11 +40325,11 @@ function getWorkspace(tree) {
|
|
|
39514
40325
|
});
|
|
39515
40326
|
}
|
|
39516
40327
|
|
|
39517
|
-
// bazel-out/
|
|
40328
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
39518
40329
|
var import_path5 = require("path");
|
|
39519
40330
|
var import_typescript101 = __toESM(require("typescript"), 1);
|
|
39520
40331
|
|
|
39521
|
-
// bazel-out/
|
|
40332
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
|
|
39522
40333
|
var path2 = __toESM(require("path"), 1);
|
|
39523
40334
|
var import_typescript100 = __toESM(require("typescript"), 1);
|
|
39524
40335
|
function parseTsconfigFile(tsconfigPath, basePath) {
|
|
@@ -39535,7 +40346,7 @@ function parseTsconfigFile(tsconfigPath, basePath) {
|
|
|
39535
40346
|
return import_typescript100.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
|
|
39536
40347
|
}
|
|
39537
40348
|
|
|
39538
|
-
// bazel-out/
|
|
40349
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
39539
40350
|
function createProgramOptions(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles, optionOverrides) {
|
|
39540
40351
|
tsconfigPath = (0, import_path5.resolve)(basePath, tsconfigPath);
|
|
39541
40352
|
const parsed = parseTsconfigFile(tsconfigPath, (0, import_path5.dirname)(tsconfigPath));
|
|
@@ -39564,13 +40375,13 @@ function canMigrateFile(basePath, sourceFile, program) {
|
|
|
39564
40375
|
return !(0, import_path5.relative)(basePath, sourceFile.fileName).startsWith("..");
|
|
39565
40376
|
}
|
|
39566
40377
|
|
|
39567
|
-
// bazel-out/
|
|
40378
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/prune-modules.mjs
|
|
39568
40379
|
var import_typescript106 = __toESM(require("typescript"), 1);
|
|
39569
40380
|
|
|
39570
|
-
// bazel-out/
|
|
40381
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
|
|
39571
40382
|
var import_typescript103 = __toESM(require("typescript"), 1);
|
|
39572
40383
|
|
|
39573
|
-
// bazel-out/
|
|
40384
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
|
|
39574
40385
|
var import_typescript102 = __toESM(require("typescript"), 1);
|
|
39575
40386
|
function getImportOfIdentifier(typeChecker, node) {
|
|
39576
40387
|
const symbol = typeChecker.getSymbolAtLocation(node);
|
|
@@ -39621,7 +40432,7 @@ function findImportSpecifier(nodes, specifierName) {
|
|
|
39621
40432
|
});
|
|
39622
40433
|
}
|
|
39623
40434
|
|
|
39624
|
-
// bazel-out/
|
|
40435
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
|
|
39625
40436
|
function getCallDecoratorImport(typeChecker, decorator) {
|
|
39626
40437
|
if (!import_typescript103.default.isCallExpression(decorator.expression) || !import_typescript103.default.isIdentifier(decorator.expression.expression)) {
|
|
39627
40438
|
return null;
|
|
@@ -39630,7 +40441,7 @@ function getCallDecoratorImport(typeChecker, decorator) {
|
|
|
39630
40441
|
return getImportOfIdentifier(typeChecker, identifier);
|
|
39631
40442
|
}
|
|
39632
40443
|
|
|
39633
|
-
// bazel-out/
|
|
40444
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/ng_decorators.mjs
|
|
39634
40445
|
function getAngularDecorators(typeChecker, decorators) {
|
|
39635
40446
|
return decorators.map((node) => ({ node, importData: getCallDecoratorImport(typeChecker, node) })).filter(({ importData }) => importData && importData.importModule.startsWith("@angular/")).map(({ node, importData }) => ({
|
|
39636
40447
|
node,
|
|
@@ -39640,7 +40451,7 @@ function getAngularDecorators(typeChecker, decorators) {
|
|
|
39640
40451
|
}));
|
|
39641
40452
|
}
|
|
39642
40453
|
|
|
39643
|
-
// bazel-out/
|
|
40454
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/nodes.mjs
|
|
39644
40455
|
var import_typescript104 = __toESM(require("typescript"), 1);
|
|
39645
40456
|
function closestNode(node, predicate) {
|
|
39646
40457
|
let current = node.parent;
|
|
@@ -39653,7 +40464,7 @@ function closestNode(node, predicate) {
|
|
|
39653
40464
|
return null;
|
|
39654
40465
|
}
|
|
39655
40466
|
|
|
39656
|
-
// bazel-out/
|
|
40467
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/util.mjs
|
|
39657
40468
|
var import_path6 = require("path");
|
|
39658
40469
|
var import_typescript105 = __toESM(require("typescript"), 1);
|
|
39659
40470
|
var UniqueItemTracker = class {
|
|
@@ -39829,7 +40640,7 @@ function isClassReferenceInAngularModule(node, className, moduleName, typeChecke
|
|
|
39829
40640
|
}));
|
|
39830
40641
|
}
|
|
39831
40642
|
|
|
39832
|
-
// bazel-out/
|
|
40643
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/prune-modules.mjs
|
|
39833
40644
|
function pruneNgModules(program, host, basePath, rootFileNames, sourceFiles, printer, importRemapper, referenceLookupExcludedFiles) {
|
|
39834
40645
|
const filesToRemove = /* @__PURE__ */ new Set();
|
|
39835
40646
|
const tracker = new ChangeTracker(printer, importRemapper);
|
|
@@ -40028,14 +40839,14 @@ function findNgModuleDecorator(node, typeChecker) {
|
|
|
40028
40839
|
return decorators.find((decorator) => decorator.name === "NgModule") || null;
|
|
40029
40840
|
}
|
|
40030
40841
|
|
|
40031
|
-
// bazel-out/
|
|
40842
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/standalone-bootstrap.mjs
|
|
40032
40843
|
var import_path7 = require("path");
|
|
40033
40844
|
var import_typescript109 = __toESM(require("typescript"), 1);
|
|
40034
40845
|
|
|
40035
|
-
// bazel-out/
|
|
40846
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/to-standalone.mjs
|
|
40036
40847
|
var import_typescript108 = __toESM(require("typescript"), 1);
|
|
40037
40848
|
|
|
40038
|
-
// bazel-out/
|
|
40849
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/symbol.mjs
|
|
40039
40850
|
var import_typescript107 = __toESM(require("typescript"), 1);
|
|
40040
40851
|
function isReferenceToImport(typeChecker, node, importSpecifier) {
|
|
40041
40852
|
var _a2, _b2;
|
|
@@ -40044,7 +40855,7 @@ function isReferenceToImport(typeChecker, node, importSpecifier) {
|
|
|
40044
40855
|
return !!(((_a2 = nodeSymbol == null ? void 0 : nodeSymbol.declarations) == null ? void 0 : _a2[0]) && ((_b2 = importSymbol == null ? void 0 : importSymbol.declarations) == null ? void 0 : _b2[0])) && nodeSymbol.declarations[0] === importSymbol.declarations[0];
|
|
40045
40856
|
}
|
|
40046
40857
|
|
|
40047
|
-
// bazel-out/
|
|
40858
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/to-standalone.mjs
|
|
40048
40859
|
function toStandalone(sourceFiles, program, printer, fileImportRemapper, componentImportRemapper) {
|
|
40049
40860
|
const templateTypeChecker = program.compiler.getTemplateTypeChecker();
|
|
40050
40861
|
const typeChecker = program.getTsProgram().getTypeChecker();
|
|
@@ -40407,7 +41218,7 @@ function isStandaloneDeclaration(node, declarationsInMigration, templateTypeChec
|
|
|
40407
41218
|
return metadata != null && metadata.isStandalone;
|
|
40408
41219
|
}
|
|
40409
41220
|
|
|
40410
|
-
// bazel-out/
|
|
41221
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/standalone-bootstrap.mjs
|
|
40411
41222
|
function toStandaloneBootstrap(program, host, basePath, rootFileNames, sourceFiles, printer, importRemapper, referenceLookupExcludedFiles, componentImportRemapper) {
|
|
40412
41223
|
const tracker = new ChangeTracker(printer, importRemapper);
|
|
40413
41224
|
const typeChecker = program.getTsProgram().getTypeChecker();
|
|
@@ -40784,7 +41595,7 @@ function hasImport(program, rootFileNames, moduleName) {
|
|
|
40784
41595
|
return false;
|
|
40785
41596
|
}
|
|
40786
41597
|
|
|
40787
|
-
// bazel-out/
|
|
41598
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/index.mjs
|
|
40788
41599
|
var MigrationMode;
|
|
40789
41600
|
(function(MigrationMode2) {
|
|
40790
41601
|
MigrationMode2["toStandalone"] = "convert-to-standalone";
|