@angular/core 17.0.0-rc.2 → 17.0.0-rc.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/primitives/signals/src/signal.mjs +8 -4
- package/esm2022/src/core_private_export.mjs +2 -1
- package/esm2022/src/core_reactivity_export_internal.mjs +1 -1
- package/esm2022/src/defer/instructions.mjs +3 -2
- package/esm2022/src/hydration/api.mjs +3 -2
- package/esm2022/src/render3/after_render_hooks.mjs +4 -3
- package/esm2022/src/render3/debug/framework_injector_profiler.mjs +13 -4
- package/esm2022/src/render3/features/standalone_feature.mjs +3 -2
- package/esm2022/src/render3/instructions/change_detection.mjs +2 -5
- package/esm2022/src/render3/instructions/control_flow.mjs +4 -3
- package/esm2022/src/render3/node_manipulation.mjs +2 -2
- package/esm2022/src/render3/reactivity/effect.mjs +3 -1
- package/esm2022/src/render3/util/injector_discovery_utils.mjs +2 -2
- package/esm2022/src/util/performance.mjs +19 -0
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/logger.mjs +3 -3
- package/fesm2022/core.mjs +46 -26
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/primitives/signals.mjs +8 -4
- package/fesm2022/primitives/signals.mjs.map +1 -1
- package/fesm2022/rxjs-interop.mjs +1 -1
- package/fesm2022/testing.mjs +1 -1
- package/index.d.ts +22 -2
- package/package.json +1 -1
- package/primitives/signals/index.d.ts +1 -1
- package/rxjs-interop/index.d.ts +1 -1
- package/schematics/migrations/block-template-entities/bundle.js +617 -404
- package/schematics/migrations/block-template-entities/bundle.js.map +4 -4
- package/schematics/migrations/compiler-options/bundle.js +13 -13
- package/schematics/migrations/transfer-state/bundle.js +13 -13
- package/schematics/ng-generate/control-flow-migration/bundle.js +667 -414
- package/schematics/ng-generate/control-flow-migration/bundle.js.map +4 -4
- package/schematics/ng-generate/standalone-migration/bundle.js +873 -660
- package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
- package/testing/index.d.ts +1 -1
- package/esm2022/src/render3/instructions/change_detection_flags.mjs +0 -12
|
@@ -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(path4) {
|
|
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(path4) {
|
|
168
168
|
return path4.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, path4) {
|
|
|
265
265
|
return isLocalRelativePath(relative(base, path4));
|
|
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,
|
|
@@ -832,7 +832,7 @@ __export(output_ast_exports, {
|
|
|
832
832
|
variable: () => variable
|
|
833
833
|
});
|
|
834
834
|
|
|
835
|
-
// bazel-out/
|
|
835
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/digest.mjs
|
|
836
836
|
var textEncoder;
|
|
837
837
|
function digest(message) {
|
|
838
838
|
return message.id || computeDigest(message);
|
|
@@ -1072,7 +1072,7 @@ function wordAt(bytes, index, endian) {
|
|
|
1072
1072
|
return word;
|
|
1073
1073
|
}
|
|
1074
1074
|
|
|
1075
|
-
// bazel-out/
|
|
1075
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/output_ast.mjs
|
|
1076
1076
|
var TypeModifier;
|
|
1077
1077
|
(function(TypeModifier2) {
|
|
1078
1078
|
TypeModifier2[TypeModifier2["None"] = 0] = "None";
|
|
@@ -2263,7 +2263,7 @@ function serializeTags(tags) {
|
|
|
2263
2263
|
return out;
|
|
2264
2264
|
}
|
|
2265
2265
|
|
|
2266
|
-
// bazel-out/
|
|
2266
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/constant_pool.mjs
|
|
2267
2267
|
var CONSTANT_PREFIX = "_c";
|
|
2268
2268
|
var UNKNOWN_VALUE_KEY = variable("<unknown>");
|
|
2269
2269
|
var KEY_CONTEXT = {};
|
|
@@ -2446,7 +2446,7 @@ function isLongStringLiteral(expr) {
|
|
|
2446
2446
|
return expr instanceof LiteralExpr && typeof expr.value === "string" && expr.value.length >= POOL_INCLUSION_LENGTH_THRESHOLD_FOR_STRINGS;
|
|
2447
2447
|
}
|
|
2448
2448
|
|
|
2449
|
-
// bazel-out/
|
|
2449
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_identifiers.mjs
|
|
2450
2450
|
var CORE = "@angular/core";
|
|
2451
2451
|
var _Identifiers = class {
|
|
2452
2452
|
};
|
|
@@ -3079,7 +3079,7 @@ var Identifiers = _Identifiers;
|
|
|
3079
3079
|
_Identifiers.validateIframeAttribute = { name: "\u0275\u0275validateIframeAttribute", moduleName: CORE };
|
|
3080
3080
|
})();
|
|
3081
3081
|
|
|
3082
|
-
// bazel-out/
|
|
3082
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/util.mjs
|
|
3083
3083
|
var DASH_CASE_REGEXP = /-+([a-z0-9])/g;
|
|
3084
3084
|
function dashCaseToCamelCase(input) {
|
|
3085
3085
|
return input.replace(DASH_CASE_REGEXP, (...m) => m[1].toUpperCase());
|
|
@@ -3167,7 +3167,7 @@ function partitionArray(arr, conditionFn) {
|
|
|
3167
3167
|
return [truthy, falsy];
|
|
3168
3168
|
}
|
|
3169
3169
|
|
|
3170
|
-
// bazel-out/
|
|
3170
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/source_map.mjs
|
|
3171
3171
|
var VERSION = 3;
|
|
3172
3172
|
var JS_B64_PREFIX = "# sourceMappingURL=data:application/json;base64,";
|
|
3173
3173
|
var SourceMapGenerator = class {
|
|
@@ -3296,7 +3296,7 @@ function toBase64Digit(value) {
|
|
|
3296
3296
|
return B64_DIGITS[value];
|
|
3297
3297
|
}
|
|
3298
3298
|
|
|
3299
|
-
// bazel-out/
|
|
3299
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/abstract_emitter.mjs
|
|
3300
3300
|
var _SINGLE_QUOTE_ESCAPE_STRING_RE = /'|\\|\n|\r|\$/g;
|
|
3301
3301
|
var _LEGAL_IDENTIFIER_RE = /^[$A-Z_][0-9A-Z_$]*$/i;
|
|
3302
3302
|
var _INDENT_WITH = " ";
|
|
@@ -3781,7 +3781,7 @@ function _createIndent(count) {
|
|
|
3781
3781
|
return res;
|
|
3782
3782
|
}
|
|
3783
3783
|
|
|
3784
|
-
// bazel-out/
|
|
3784
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/util.mjs
|
|
3785
3785
|
function typeWithParameters(type, numParams) {
|
|
3786
3786
|
if (numParams === 0) {
|
|
3787
3787
|
return expressionType(type);
|
|
@@ -3849,7 +3849,7 @@ function generateForwardRef(expr) {
|
|
|
3849
3849
|
return importExpr(Identifiers.forwardRef).callFn([arrowFn([], expr)]);
|
|
3850
3850
|
}
|
|
3851
3851
|
|
|
3852
|
-
// bazel-out/
|
|
3852
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_factory.mjs
|
|
3853
3853
|
var R3FactoryDelegateType;
|
|
3854
3854
|
(function(R3FactoryDelegateType2) {
|
|
3855
3855
|
R3FactoryDelegateType2[R3FactoryDelegateType2["Class"] = 0] = "Class";
|
|
@@ -3994,7 +3994,7 @@ function getInjectFn(target) {
|
|
|
3994
3994
|
}
|
|
3995
3995
|
}
|
|
3996
3996
|
|
|
3997
|
-
// bazel-out/
|
|
3997
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_ast.mjs
|
|
3998
3998
|
var Comment = class {
|
|
3999
3999
|
constructor(value, sourceSpan) {
|
|
4000
4000
|
this.value = value;
|
|
@@ -4440,7 +4440,7 @@ function visitAll(visitor, nodes) {
|
|
|
4440
4440
|
return result;
|
|
4441
4441
|
}
|
|
4442
4442
|
|
|
4443
|
-
// bazel-out/
|
|
4443
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/i18n_ast.mjs
|
|
4444
4444
|
var Message = class {
|
|
4445
4445
|
constructor(nodes, placeholders, placeholderToMessage, meaning, description, customId) {
|
|
4446
4446
|
this.nodes = nodes;
|
|
@@ -4603,7 +4603,7 @@ var LocalizeMessageStringVisitor = class {
|
|
|
4603
4603
|
}
|
|
4604
4604
|
};
|
|
4605
4605
|
|
|
4606
|
-
// bazel-out/
|
|
4606
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/serializer.mjs
|
|
4607
4607
|
var Serializer = class {
|
|
4608
4608
|
createNameMapper(message) {
|
|
4609
4609
|
return null;
|
|
@@ -4655,7 +4655,7 @@ var SimplePlaceholderMapper = class extends RecurseVisitor {
|
|
|
4655
4655
|
}
|
|
4656
4656
|
};
|
|
4657
4657
|
|
|
4658
|
-
// bazel-out/
|
|
4658
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/xml_helper.mjs
|
|
4659
4659
|
var _Visitor = class {
|
|
4660
4660
|
visitTag(tag) {
|
|
4661
4661
|
const strAttrs = this._serializeAttributes(tag.attrs);
|
|
@@ -4743,7 +4743,7 @@ function escapeXml(text2) {
|
|
|
4743
4743
|
return _ESCAPED_CHARS.reduce((text3, entry) => text3.replace(entry[0], entry[1]), text2);
|
|
4744
4744
|
}
|
|
4745
4745
|
|
|
4746
|
-
// bazel-out/
|
|
4746
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/xmb.mjs
|
|
4747
4747
|
var _MESSAGES_TAG = "messagebundle";
|
|
4748
4748
|
var _MESSAGE_TAG = "msg";
|
|
4749
4749
|
var _PLACEHOLDER_TAG = "ph";
|
|
@@ -4886,7 +4886,7 @@ function toPublicName(internalName) {
|
|
|
4886
4886
|
return internalName.toUpperCase().replace(/[^A-Z0-9_]/g, "_");
|
|
4887
4887
|
}
|
|
4888
4888
|
|
|
4889
|
-
// bazel-out/
|
|
4889
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/util.mjs
|
|
4890
4890
|
var CLOSURE_TRANSLATION_VAR_PREFIX = "MSG_";
|
|
4891
4891
|
var TRANSLATION_VAR_PREFIX = "i18n_";
|
|
4892
4892
|
var I18N_ATTR = "i18n";
|
|
@@ -4988,7 +4988,7 @@ function declareI18nVariable(variable2) {
|
|
|
4988
4988
|
return new DeclareVarStmt(variable2.name, void 0, INFERRED_TYPE, void 0, variable2.sourceSpan);
|
|
4989
4989
|
}
|
|
4990
4990
|
|
|
4991
|
-
// bazel-out/
|
|
4991
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/util.mjs
|
|
4992
4992
|
var UNSAFE_OBJECT_KEY_NAME_REGEXP = /[-.]/;
|
|
4993
4993
|
var TEMPORARY_NAME = "_t";
|
|
4994
4994
|
var CONTEXT_NAME = "ctx";
|
|
@@ -5211,7 +5211,7 @@ function getInstructionStatements(instructions) {
|
|
|
5211
5211
|
return statements;
|
|
5212
5212
|
}
|
|
5213
5213
|
|
|
5214
|
-
// bazel-out/
|
|
5214
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/injectable_compiler_2.mjs
|
|
5215
5215
|
function compileInjectable(meta, resolveForwardRefs) {
|
|
5216
5216
|
let result = null;
|
|
5217
5217
|
const factoryMeta = {
|
|
@@ -5296,7 +5296,7 @@ function createFactoryFunction(type) {
|
|
|
5296
5296
|
return arrowFn([new FnParam("t", DYNAMIC_TYPE)], type.prop("\u0275fac").callFn([variable("t")]));
|
|
5297
5297
|
}
|
|
5298
5298
|
|
|
5299
|
-
// bazel-out/
|
|
5299
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/assertions.mjs
|
|
5300
5300
|
var UNUSABLE_INTERPOLATION_REGEXPS = [
|
|
5301
5301
|
/^\s*$/,
|
|
5302
5302
|
/[<>]/,
|
|
@@ -5318,7 +5318,7 @@ function assertInterpolationSymbols(identifier, value) {
|
|
|
5318
5318
|
}
|
|
5319
5319
|
}
|
|
5320
5320
|
|
|
5321
|
-
// bazel-out/
|
|
5321
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/interpolation_config.mjs
|
|
5322
5322
|
var InterpolationConfig = class {
|
|
5323
5323
|
static fromArray(markers) {
|
|
5324
5324
|
if (!markers) {
|
|
@@ -5334,7 +5334,7 @@ var InterpolationConfig = class {
|
|
|
5334
5334
|
};
|
|
5335
5335
|
var DEFAULT_INTERPOLATION_CONFIG = new InterpolationConfig("{{", "}}");
|
|
5336
5336
|
|
|
5337
|
-
// bazel-out/
|
|
5337
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/chars.mjs
|
|
5338
5338
|
var $EOF = 0;
|
|
5339
5339
|
var $BSPACE = 8;
|
|
5340
5340
|
var $TAB = 9;
|
|
@@ -5416,7 +5416,7 @@ function isQuote(code) {
|
|
|
5416
5416
|
return code === $SQ || code === $DQ || code === $BT;
|
|
5417
5417
|
}
|
|
5418
5418
|
|
|
5419
|
-
// bazel-out/
|
|
5419
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/parse_util.mjs
|
|
5420
5420
|
var ParseLocation = class {
|
|
5421
5421
|
constructor(file, offset, line, col) {
|
|
5422
5422
|
this.file = file;
|
|
@@ -5563,7 +5563,7 @@ function sanitizeIdentifier(name) {
|
|
|
5563
5563
|
return name.replace(/\W/g, "_");
|
|
5564
5564
|
}
|
|
5565
5565
|
|
|
5566
|
-
// bazel-out/
|
|
5566
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/abstract_js_emitter.mjs
|
|
5567
5567
|
var makeTemplateObjectPolyfill = '(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})';
|
|
5568
5568
|
var AbstractJsEmitterVisitor = class extends AbstractEmitterVisitor {
|
|
5569
5569
|
constructor() {
|
|
@@ -5656,7 +5656,7 @@ var AbstractJsEmitterVisitor = class extends AbstractEmitterVisitor {
|
|
|
5656
5656
|
}
|
|
5657
5657
|
};
|
|
5658
5658
|
|
|
5659
|
-
// bazel-out/
|
|
5659
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/output_jit_trusted_types.mjs
|
|
5660
5660
|
var policy;
|
|
5661
5661
|
function getPolicy() {
|
|
5662
5662
|
if (policy === void 0) {
|
|
@@ -5694,7 +5694,7 @@ function newTrustedFunctionForJIT(...args) {
|
|
|
5694
5694
|
return fn2.bind(_global);
|
|
5695
5695
|
}
|
|
5696
5696
|
|
|
5697
|
-
// bazel-out/
|
|
5697
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/output_jit.mjs
|
|
5698
5698
|
var JitEvaluator = class {
|
|
5699
5699
|
evaluateStatements(sourceUrl, statements, refResolver, createSourceMaps) {
|
|
5700
5700
|
const converter = new JitEmitterVisitor(refResolver);
|
|
@@ -5785,7 +5785,7 @@ function isUseStrictStatement(statement) {
|
|
|
5785
5785
|
return statement.isEquivalent(literal("use strict").toStmt());
|
|
5786
5786
|
}
|
|
5787
5787
|
|
|
5788
|
-
// bazel-out/
|
|
5788
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_injector_compiler.mjs
|
|
5789
5789
|
function compileInjector(meta) {
|
|
5790
5790
|
const definitionMap = new DefinitionMap();
|
|
5791
5791
|
if (meta.providers !== null) {
|
|
@@ -5802,7 +5802,7 @@ function createInjectorType(meta) {
|
|
|
5802
5802
|
return new ExpressionType(importExpr(Identifiers.InjectorDeclaration, [new ExpressionType(meta.type.type)]));
|
|
5803
5803
|
}
|
|
5804
5804
|
|
|
5805
|
-
// bazel-out/
|
|
5805
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_jit.mjs
|
|
5806
5806
|
var R3JitReflector = class {
|
|
5807
5807
|
constructor(context) {
|
|
5808
5808
|
this.context = context;
|
|
@@ -5818,7 +5818,7 @@ var R3JitReflector = class {
|
|
|
5818
5818
|
}
|
|
5819
5819
|
};
|
|
5820
5820
|
|
|
5821
|
-
// bazel-out/
|
|
5821
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_module_compiler.mjs
|
|
5822
5822
|
var R3SelectorScopeMode;
|
|
5823
5823
|
(function(R3SelectorScopeMode2) {
|
|
5824
5824
|
R3SelectorScopeMode2[R3SelectorScopeMode2["Inline"] = 0] = "Inline";
|
|
@@ -5959,7 +5959,7 @@ function tupleOfTypes(types) {
|
|
|
5959
5959
|
return types.length > 0 ? expressionType(literalArr(typeofTypes)) : NONE_TYPE;
|
|
5960
5960
|
}
|
|
5961
5961
|
|
|
5962
|
-
// bazel-out/
|
|
5962
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_pipe_compiler.mjs
|
|
5963
5963
|
function compilePipeFromMetadata(metadata) {
|
|
5964
5964
|
const definitionMapValues = [];
|
|
5965
5965
|
definitionMapValues.push({ key: "name", value: literal(metadata.pipeName), quoted: false });
|
|
@@ -5980,7 +5980,7 @@ function createPipeType(metadata) {
|
|
|
5980
5980
|
]));
|
|
5981
5981
|
}
|
|
5982
5982
|
|
|
5983
|
-
// bazel-out/
|
|
5983
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/api.mjs
|
|
5984
5984
|
var R3TemplateDependencyKind;
|
|
5985
5985
|
(function(R3TemplateDependencyKind2) {
|
|
5986
5986
|
R3TemplateDependencyKind2[R3TemplateDependencyKind2["Directive"] = 0] = "Directive";
|
|
@@ -5988,7 +5988,7 @@ var R3TemplateDependencyKind;
|
|
|
5988
5988
|
R3TemplateDependencyKind2[R3TemplateDependencyKind2["NgModule"] = 2] = "NgModule";
|
|
5989
5989
|
})(R3TemplateDependencyKind || (R3TemplateDependencyKind = {}));
|
|
5990
5990
|
|
|
5991
|
-
// bazel-out/
|
|
5991
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/expression_parser/ast.mjs
|
|
5992
5992
|
var ParserError = class {
|
|
5993
5993
|
constructor(message, input, errLocation, ctxLocation) {
|
|
5994
5994
|
this.input = input;
|
|
@@ -6654,7 +6654,7 @@ var BoundElementProperty = class {
|
|
|
6654
6654
|
}
|
|
6655
6655
|
};
|
|
6656
6656
|
|
|
6657
|
-
// bazel-out/
|
|
6657
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/compiler_util/expression_converter.mjs
|
|
6658
6658
|
var _EventHandlerVars = class {
|
|
6659
6659
|
};
|
|
6660
6660
|
var EventHandlerVars = _EventHandlerVars;
|
|
@@ -7295,7 +7295,7 @@ var BuiltinFunctionCall = class extends Call {
|
|
|
7295
7295
|
}
|
|
7296
7296
|
};
|
|
7297
7297
|
|
|
7298
|
-
// bazel-out/
|
|
7298
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/schema/dom_security_schema.mjs
|
|
7299
7299
|
var _SECURITY_SCHEMA;
|
|
7300
7300
|
function SECURITY_SCHEMA() {
|
|
7301
7301
|
if (!_SECURITY_SCHEMA) {
|
|
@@ -7353,7 +7353,7 @@ function isIframeSecuritySensitiveAttr(attrName) {
|
|
|
7353
7353
|
return IFRAME_SECURITY_SENSITIVE_ATTRS.has(attrName.toLowerCase());
|
|
7354
7354
|
}
|
|
7355
7355
|
|
|
7356
|
-
// bazel-out/
|
|
7356
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/shadow_css.mjs
|
|
7357
7357
|
var animationKeywords = /* @__PURE__ */ new Set([
|
|
7358
7358
|
"inherit",
|
|
7359
7359
|
"initial",
|
|
@@ -7824,7 +7824,7 @@ function repeatGroups(groups, multiples) {
|
|
|
7824
7824
|
}
|
|
7825
7825
|
}
|
|
7826
7826
|
|
|
7827
|
-
// bazel-out/
|
|
7827
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/enums.mjs
|
|
7828
7828
|
var OpKind;
|
|
7829
7829
|
(function(OpKind2) {
|
|
7830
7830
|
OpKind2[OpKind2["ListEnd"] = 0] = "ListEnd";
|
|
@@ -7855,20 +7855,22 @@ var OpKind;
|
|
|
7855
7855
|
OpKind2[OpKind2["ExtractedAttribute"] = 25] = "ExtractedAttribute";
|
|
7856
7856
|
OpKind2[OpKind2["Defer"] = 26] = "Defer";
|
|
7857
7857
|
OpKind2[OpKind2["DeferOn"] = 27] = "DeferOn";
|
|
7858
|
-
OpKind2[OpKind2["
|
|
7859
|
-
OpKind2[OpKind2["
|
|
7860
|
-
OpKind2[OpKind2["
|
|
7861
|
-
OpKind2[OpKind2["
|
|
7862
|
-
OpKind2[OpKind2["
|
|
7863
|
-
OpKind2[OpKind2["
|
|
7864
|
-
OpKind2[OpKind2["
|
|
7865
|
-
OpKind2[OpKind2["
|
|
7866
|
-
OpKind2[OpKind2["
|
|
7867
|
-
OpKind2[OpKind2["
|
|
7868
|
-
OpKind2[OpKind2["
|
|
7869
|
-
OpKind2[OpKind2["
|
|
7870
|
-
OpKind2[OpKind2["
|
|
7871
|
-
OpKind2[OpKind2["
|
|
7858
|
+
OpKind2[OpKind2["DeferWhen"] = 28] = "DeferWhen";
|
|
7859
|
+
OpKind2[OpKind2["I18nMessage"] = 29] = "I18nMessage";
|
|
7860
|
+
OpKind2[OpKind2["HostProperty"] = 30] = "HostProperty";
|
|
7861
|
+
OpKind2[OpKind2["Namespace"] = 31] = "Namespace";
|
|
7862
|
+
OpKind2[OpKind2["ProjectionDef"] = 32] = "ProjectionDef";
|
|
7863
|
+
OpKind2[OpKind2["Projection"] = 33] = "Projection";
|
|
7864
|
+
OpKind2[OpKind2["RepeaterCreate"] = 34] = "RepeaterCreate";
|
|
7865
|
+
OpKind2[OpKind2["Repeater"] = 35] = "Repeater";
|
|
7866
|
+
OpKind2[OpKind2["I18nStart"] = 36] = "I18nStart";
|
|
7867
|
+
OpKind2[OpKind2["I18n"] = 37] = "I18n";
|
|
7868
|
+
OpKind2[OpKind2["I18nEnd"] = 38] = "I18nEnd";
|
|
7869
|
+
OpKind2[OpKind2["I18nExpression"] = 39] = "I18nExpression";
|
|
7870
|
+
OpKind2[OpKind2["I18nApply"] = 40] = "I18nApply";
|
|
7871
|
+
OpKind2[OpKind2["Icu"] = 41] = "Icu";
|
|
7872
|
+
OpKind2[OpKind2["IcuUpdate"] = 42] = "IcuUpdate";
|
|
7873
|
+
OpKind2[OpKind2["I18nContext"] = 43] = "I18nContext";
|
|
7872
7874
|
})(OpKind || (OpKind = {}));
|
|
7873
7875
|
var ExpressionKind;
|
|
7874
7876
|
(function(ExpressionKind2) {
|
|
@@ -7976,7 +7978,7 @@ var DerivedRepeaterVarIdentity;
|
|
|
7976
7978
|
DerivedRepeaterVarIdentity2[DerivedRepeaterVarIdentity2["Odd"] = 3] = "Odd";
|
|
7977
7979
|
})(DerivedRepeaterVarIdentity || (DerivedRepeaterVarIdentity = {}));
|
|
7978
7980
|
|
|
7979
|
-
// bazel-out/
|
|
7981
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/traits.mjs
|
|
7980
7982
|
var ConsumesSlot = Symbol("ConsumesSlot");
|
|
7981
7983
|
var DependsOnSlotContext = Symbol("DependsOnSlotContext");
|
|
7982
7984
|
var ConsumesVarsTrait = Symbol("ConsumesVars");
|
|
@@ -8008,7 +8010,7 @@ function hasUsesVarOffsetTrait(expr) {
|
|
|
8008
8010
|
return expr[UsesVarOffset] === true;
|
|
8009
8011
|
}
|
|
8010
8012
|
|
|
8011
|
-
// bazel-out/
|
|
8013
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/shared.mjs
|
|
8012
8014
|
function createStatementOp(statement) {
|
|
8013
8015
|
return __spreadValues({
|
|
8014
8016
|
kind: OpKind.Statement,
|
|
@@ -8030,7 +8032,7 @@ var NEW_OP = {
|
|
|
8030
8032
|
next: null
|
|
8031
8033
|
};
|
|
8032
8034
|
|
|
8033
|
-
// bazel-out/
|
|
8035
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/update.mjs
|
|
8034
8036
|
function createInterpolateTextOp(xref, interpolation, i18nPlaceholders, sourceSpan) {
|
|
8035
8037
|
return __spreadValues(__spreadValues(__spreadValues({
|
|
8036
8038
|
kind: OpKind.InterpolateText,
|
|
@@ -8149,23 +8151,32 @@ function createRepeaterOp(repeaterCreate2, targetSlot, collection, sourceSpan) {
|
|
|
8149
8151
|
sourceSpan
|
|
8150
8152
|
}, NEW_OP);
|
|
8151
8153
|
}
|
|
8152
|
-
function
|
|
8154
|
+
function createDeferWhenOp(target, expr, prefetch, sourceSpan) {
|
|
8155
|
+
return __spreadValues(__spreadValues({
|
|
8156
|
+
kind: OpKind.DeferWhen,
|
|
8157
|
+
target,
|
|
8158
|
+
expr,
|
|
8159
|
+
prefetch,
|
|
8160
|
+
sourceSpan
|
|
8161
|
+
}, NEW_OP), TRAIT_DEPENDS_ON_SLOT_CONTEXT);
|
|
8162
|
+
}
|
|
8163
|
+
function createI18nExpressionOp(context, target, handle, expression, i18nPlaceholder, resolutionTime, sourceSpan) {
|
|
8153
8164
|
return __spreadValues(__spreadValues(__spreadValues({
|
|
8154
8165
|
kind: OpKind.I18nExpression,
|
|
8155
|
-
|
|
8156
|
-
|
|
8157
|
-
|
|
8166
|
+
context,
|
|
8167
|
+
target,
|
|
8168
|
+
handle,
|
|
8158
8169
|
expression,
|
|
8159
8170
|
i18nPlaceholder,
|
|
8160
8171
|
resolutionTime,
|
|
8161
8172
|
sourceSpan
|
|
8162
8173
|
}, NEW_OP), TRAIT_CONSUMES_VARS), TRAIT_DEPENDS_ON_SLOT_CONTEXT);
|
|
8163
8174
|
}
|
|
8164
|
-
function createI18nApplyOp(target,
|
|
8175
|
+
function createI18nApplyOp(target, handle, sourceSpan) {
|
|
8165
8176
|
return __spreadValues({
|
|
8166
8177
|
kind: OpKind.I18nApply,
|
|
8167
8178
|
target,
|
|
8168
|
-
|
|
8179
|
+
handle,
|
|
8169
8180
|
sourceSpan
|
|
8170
8181
|
}, NEW_OP);
|
|
8171
8182
|
}
|
|
@@ -8177,7 +8188,7 @@ function createIcuUpdateOp(xref, sourceSpan) {
|
|
|
8177
8188
|
}, NEW_OP);
|
|
8178
8189
|
}
|
|
8179
8190
|
|
|
8180
|
-
// bazel-out/
|
|
8191
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/expression.mjs
|
|
8181
8192
|
var _a;
|
|
8182
8193
|
var _b;
|
|
8183
8194
|
var _c;
|
|
@@ -8913,6 +8924,17 @@ function transformExpressionsInOp(op, transform2, flags) {
|
|
|
8913
8924
|
op.placeholderConfig = transformExpressionsInExpression(op.placeholderConfig, transform2, flags);
|
|
8914
8925
|
}
|
|
8915
8926
|
break;
|
|
8927
|
+
case OpKind.I18nMessage:
|
|
8928
|
+
for (const [placeholder, expr] of op.params) {
|
|
8929
|
+
op.params.set(placeholder, transformExpressionsInExpression(expr, transform2, flags));
|
|
8930
|
+
}
|
|
8931
|
+
for (const [placeholder, expr] of op.postprocessingParams) {
|
|
8932
|
+
op.postprocessingParams.set(placeholder, transformExpressionsInExpression(expr, transform2, flags));
|
|
8933
|
+
}
|
|
8934
|
+
break;
|
|
8935
|
+
case OpKind.DeferWhen:
|
|
8936
|
+
op.expr = transformExpressionsInExpression(op.expr, transform2, flags);
|
|
8937
|
+
break;
|
|
8916
8938
|
case OpKind.Advance:
|
|
8917
8939
|
case OpKind.Container:
|
|
8918
8940
|
case OpKind.ContainerEnd:
|
|
@@ -8923,9 +8945,9 @@ function transformExpressionsInOp(op, transform2, flags) {
|
|
|
8923
8945
|
case OpKind.ElementEnd:
|
|
8924
8946
|
case OpKind.ElementStart:
|
|
8925
8947
|
case OpKind.EnableBindings:
|
|
8926
|
-
case OpKind.ExtractedMessage:
|
|
8927
8948
|
case OpKind.I18n:
|
|
8928
8949
|
case OpKind.I18nApply:
|
|
8950
|
+
case OpKind.I18nContext:
|
|
8929
8951
|
case OpKind.I18nEnd:
|
|
8930
8952
|
case OpKind.I18nStart:
|
|
8931
8953
|
case OpKind.Icu:
|
|
@@ -9017,7 +9039,7 @@ function isStringLiteral(expr) {
|
|
|
9017
9039
|
return expr instanceof LiteralExpr && typeof expr.value === "string";
|
|
9018
9040
|
}
|
|
9019
9041
|
|
|
9020
|
-
// bazel-out/
|
|
9042
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/operations.mjs
|
|
9021
9043
|
var _OpList = class {
|
|
9022
9044
|
constructor() {
|
|
9023
9045
|
this.debugListId = _OpList.nextListId++;
|
|
@@ -9208,14 +9230,14 @@ var OpList = _OpList;
|
|
|
9208
9230
|
_OpList.nextListId = 0;
|
|
9209
9231
|
})();
|
|
9210
9232
|
|
|
9211
|
-
// bazel-out/
|
|
9233
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/handle.mjs
|
|
9212
9234
|
var SlotHandle = class {
|
|
9213
9235
|
constructor() {
|
|
9214
9236
|
this.slot = null;
|
|
9215
9237
|
}
|
|
9216
9238
|
};
|
|
9217
9239
|
|
|
9218
|
-
// bazel-out/
|
|
9240
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/create.mjs
|
|
9219
9241
|
var elementContainerOpKinds = /* @__PURE__ */ new Set([
|
|
9220
9242
|
OpKind.Element,
|
|
9221
9243
|
OpKind.ElementStart,
|
|
@@ -9366,7 +9388,7 @@ function createExtractedAttributeOp(target, bindingKind, name, expression) {
|
|
|
9366
9388
|
expression
|
|
9367
9389
|
}, NEW_OP);
|
|
9368
9390
|
}
|
|
9369
|
-
function createDeferOp(xref, main, mainSlot, sourceSpan) {
|
|
9391
|
+
function createDeferOp(xref, main, mainSlot, metadata, sourceSpan) {
|
|
9370
9392
|
return __spreadProps(__spreadValues(__spreadValues({
|
|
9371
9393
|
kind: OpKind.Defer,
|
|
9372
9394
|
xref,
|
|
@@ -9384,6 +9406,8 @@ function createDeferOp(xref, main, mainSlot, sourceSpan) {
|
|
|
9384
9406
|
placeholderMinimumTime: null,
|
|
9385
9407
|
errorView: null,
|
|
9386
9408
|
errorSlot: null,
|
|
9409
|
+
metadata,
|
|
9410
|
+
resolverFn: null,
|
|
9387
9411
|
sourceSpan
|
|
9388
9412
|
}, NEW_OP), TRAIT_CONSUMES_SLOT), {
|
|
9389
9413
|
numSlotsUsed: 2
|
|
@@ -9398,17 +9422,17 @@ function createDeferOnOp(defer2, trigger, prefetch, sourceSpan) {
|
|
|
9398
9422
|
sourceSpan
|
|
9399
9423
|
}, NEW_OP);
|
|
9400
9424
|
}
|
|
9401
|
-
function
|
|
9425
|
+
function createI18nMessageOp(xref, i18nBlock, message, messagePlaceholder, params, postprocessingParams, needsPostprocessing) {
|
|
9402
9426
|
return __spreadValues({
|
|
9403
|
-
kind: OpKind.
|
|
9404
|
-
|
|
9427
|
+
kind: OpKind.I18nMessage,
|
|
9428
|
+
xref,
|
|
9429
|
+
i18nBlock,
|
|
9405
9430
|
message,
|
|
9406
|
-
|
|
9407
|
-
params
|
|
9408
|
-
postprocessingParams
|
|
9409
|
-
needsPostprocessing
|
|
9410
|
-
|
|
9411
|
-
formattedPostprocessingParams: null
|
|
9431
|
+
messagePlaceholder,
|
|
9432
|
+
params,
|
|
9433
|
+
postprocessingParams,
|
|
9434
|
+
needsPostprocessing,
|
|
9435
|
+
subMessages: []
|
|
9412
9436
|
}, NEW_OP);
|
|
9413
9437
|
}
|
|
9414
9438
|
function createI18nStartOp(xref, message, root) {
|
|
@@ -9419,7 +9443,8 @@ function createI18nStartOp(xref, message, root) {
|
|
|
9419
9443
|
root: root != null ? root : xref,
|
|
9420
9444
|
message,
|
|
9421
9445
|
messageIndex: null,
|
|
9422
|
-
subTemplateIndex: null
|
|
9446
|
+
subTemplateIndex: null,
|
|
9447
|
+
context: null
|
|
9423
9448
|
}, NEW_OP), TRAIT_CONSUMES_SLOT);
|
|
9424
9449
|
}
|
|
9425
9450
|
function createI18nEndOp(xref) {
|
|
@@ -9428,16 +9453,30 @@ function createI18nEndOp(xref) {
|
|
|
9428
9453
|
xref
|
|
9429
9454
|
}, NEW_OP);
|
|
9430
9455
|
}
|
|
9431
|
-
function createIcuOp(xref, message, sourceSpan) {
|
|
9456
|
+
function createIcuOp(xref, message, icu, messagePlaceholder, sourceSpan) {
|
|
9432
9457
|
return __spreadValues({
|
|
9433
9458
|
kind: OpKind.Icu,
|
|
9434
9459
|
xref,
|
|
9435
9460
|
message,
|
|
9461
|
+
icu,
|
|
9462
|
+
messagePlaceholder,
|
|
9463
|
+
context: null,
|
|
9436
9464
|
sourceSpan
|
|
9437
9465
|
}, NEW_OP);
|
|
9438
9466
|
}
|
|
9467
|
+
function createI18nContextOp(xref, i18nBlock, message, sourceSpan) {
|
|
9468
|
+
return __spreadValues({
|
|
9469
|
+
kind: OpKind.I18nContext,
|
|
9470
|
+
xref,
|
|
9471
|
+
i18nBlock,
|
|
9472
|
+
message,
|
|
9473
|
+
sourceSpan,
|
|
9474
|
+
params: /* @__PURE__ */ new Map(),
|
|
9475
|
+
postprocessingParams: /* @__PURE__ */ new Map()
|
|
9476
|
+
}, NEW_OP);
|
|
9477
|
+
}
|
|
9439
9478
|
|
|
9440
|
-
// bazel-out/
|
|
9479
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/host.mjs
|
|
9441
9480
|
function createHostPropertyOp(name, expression, isAnimationTrigger, sourceSpan) {
|
|
9442
9481
|
return __spreadValues(__spreadValues({
|
|
9443
9482
|
kind: OpKind.HostProperty,
|
|
@@ -9448,10 +9487,10 @@ function createHostPropertyOp(name, expression, isAnimationTrigger, sourceSpan)
|
|
|
9448
9487
|
}, TRAIT_CONSUMES_VARS), NEW_OP);
|
|
9449
9488
|
}
|
|
9450
9489
|
|
|
9451
|
-
// bazel-out/
|
|
9490
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/variable.mjs
|
|
9452
9491
|
var CTX_REF = "CTX_REF_MARKER";
|
|
9453
9492
|
|
|
9454
|
-
// bazel-out/
|
|
9493
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/compilation.mjs
|
|
9455
9494
|
var CompilationJobKind;
|
|
9456
9495
|
(function(CompilationJobKind2) {
|
|
9457
9496
|
CompilationJobKind2[CompilationJobKind2["Tmpl"] = 0] = "Tmpl";
|
|
@@ -9471,10 +9510,11 @@ var CompilationJob = class {
|
|
|
9471
9510
|
}
|
|
9472
9511
|
};
|
|
9473
9512
|
var ComponentCompilationJob = class extends CompilationJob {
|
|
9474
|
-
constructor(componentName, pool, compatibility, relativeContextFilePath, i18nUseExternalIds) {
|
|
9513
|
+
constructor(componentName, pool, compatibility, relativeContextFilePath, i18nUseExternalIds, deferBlocksMeta) {
|
|
9475
9514
|
super(componentName, pool, compatibility);
|
|
9476
9515
|
this.relativeContextFilePath = relativeContextFilePath;
|
|
9477
9516
|
this.i18nUseExternalIds = i18nUseExternalIds;
|
|
9517
|
+
this.deferBlocksMeta = deferBlocksMeta;
|
|
9478
9518
|
this.kind = CompilationJobKind.Tmpl;
|
|
9479
9519
|
this.fnSuffix = "Template";
|
|
9480
9520
|
this.views = /* @__PURE__ */ new Map();
|
|
@@ -9557,7 +9597,7 @@ var HostBindingCompilationUnit = class extends CompilationUnit {
|
|
|
9557
9597
|
}
|
|
9558
9598
|
};
|
|
9559
9599
|
|
|
9560
|
-
// bazel-out/
|
|
9600
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/any_cast.mjs
|
|
9561
9601
|
function deleteAnyCasts(job) {
|
|
9562
9602
|
for (const unit of job.units) {
|
|
9563
9603
|
for (const op of unit.ops()) {
|
|
@@ -9575,12 +9615,12 @@ function removeAnys(e) {
|
|
|
9575
9615
|
return e;
|
|
9576
9616
|
}
|
|
9577
9617
|
|
|
9578
|
-
// bazel-out/
|
|
9618
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/apply_i18n_expressions.mjs
|
|
9579
9619
|
function applyI18nExpressions(job) {
|
|
9580
9620
|
for (const unit of job.units) {
|
|
9581
9621
|
for (const op of unit.update) {
|
|
9582
9622
|
if (op.kind === OpKind.I18nExpression && needsApplication(op)) {
|
|
9583
|
-
OpList.insertAfter(createI18nApplyOp(op.
|
|
9623
|
+
OpList.insertAfter(createI18nApplyOp(op.target, op.handle, null), op);
|
|
9584
9624
|
}
|
|
9585
9625
|
}
|
|
9586
9626
|
}
|
|
@@ -9590,34 +9630,46 @@ function needsApplication(op) {
|
|
|
9590
9630
|
if (((_a2 = op.next) == null ? void 0 : _a2.kind) !== OpKind.I18nExpression) {
|
|
9591
9631
|
return true;
|
|
9592
9632
|
}
|
|
9593
|
-
if (op.next.
|
|
9633
|
+
if (op.next.context !== op.context) {
|
|
9594
9634
|
return true;
|
|
9595
9635
|
}
|
|
9596
9636
|
return false;
|
|
9597
9637
|
}
|
|
9598
9638
|
|
|
9599
|
-
// bazel-out/
|
|
9639
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/assign_i18n_slot_dependencies.mjs
|
|
9600
9640
|
function assignI18nSlotDependencies(job) {
|
|
9601
9641
|
const i18nLastSlotConsumers = /* @__PURE__ */ new Map();
|
|
9642
|
+
const i18nContexts = /* @__PURE__ */ new Map();
|
|
9602
9643
|
let lastSlotConsumer = null;
|
|
9644
|
+
let currentI18nOp = null;
|
|
9603
9645
|
for (const unit of job.units) {
|
|
9604
9646
|
for (const op of unit.create) {
|
|
9605
|
-
if (op.kind === OpKind.I18nEnd) {
|
|
9606
|
-
i18nLastSlotConsumers.set(op.xref, lastSlotConsumer);
|
|
9607
|
-
}
|
|
9608
9647
|
if (hasConsumesSlotTrait(op)) {
|
|
9609
9648
|
lastSlotConsumer = op.xref;
|
|
9610
9649
|
}
|
|
9650
|
+
switch (op.kind) {
|
|
9651
|
+
case OpKind.I18nStart:
|
|
9652
|
+
currentI18nOp = op;
|
|
9653
|
+
break;
|
|
9654
|
+
case OpKind.I18nEnd:
|
|
9655
|
+
i18nLastSlotConsumers.set(currentI18nOp.xref, lastSlotConsumer);
|
|
9656
|
+
currentI18nOp = null;
|
|
9657
|
+
break;
|
|
9658
|
+
case OpKind.I18nContext:
|
|
9659
|
+
i18nContexts.set(op.xref, op);
|
|
9660
|
+
break;
|
|
9661
|
+
}
|
|
9611
9662
|
}
|
|
9612
9663
|
for (const op of unit.update) {
|
|
9613
9664
|
if (op.kind === OpKind.I18nExpression) {
|
|
9614
|
-
|
|
9665
|
+
const i18nContext = i18nContexts.get(op.context);
|
|
9666
|
+
op.target = i18nLastSlotConsumers.get(i18nContext.i18nBlock);
|
|
9615
9667
|
}
|
|
9616
9668
|
}
|
|
9617
9669
|
}
|
|
9618
9670
|
}
|
|
9619
9671
|
|
|
9620
|
-
// bazel-out/
|
|
9672
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/util/elements.mjs
|
|
9621
9673
|
function createOpXrefMap(unit) {
|
|
9622
9674
|
const map = /* @__PURE__ */ new Map();
|
|
9623
9675
|
for (const op of unit.create) {
|
|
@@ -9629,7 +9681,7 @@ function createOpXrefMap(unit) {
|
|
|
9629
9681
|
return map;
|
|
9630
9682
|
}
|
|
9631
9683
|
|
|
9632
|
-
// bazel-out/
|
|
9684
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/attribute_extraction.mjs
|
|
9633
9685
|
function extractAttributes(job) {
|
|
9634
9686
|
for (const unit of job.units) {
|
|
9635
9687
|
const elements = createOpXrefMap(unit);
|
|
@@ -9696,7 +9748,7 @@ function extractAttributeOp(unit, op, elements) {
|
|
|
9696
9748
|
}
|
|
9697
9749
|
}
|
|
9698
9750
|
|
|
9699
|
-
// bazel-out/
|
|
9751
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/binding_specialization.mjs
|
|
9700
9752
|
function lookupElement2(elements, xref) {
|
|
9701
9753
|
const el = elements.get(xref);
|
|
9702
9754
|
if (el === void 0) {
|
|
@@ -9746,7 +9798,7 @@ function specializeBindings(job) {
|
|
|
9746
9798
|
}
|
|
9747
9799
|
}
|
|
9748
9800
|
|
|
9749
|
-
// bazel-out/
|
|
9801
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/chaining.mjs
|
|
9750
9802
|
var CHAINABLE = /* @__PURE__ */ new Set([
|
|
9751
9803
|
Identifiers.attribute,
|
|
9752
9804
|
Identifiers.classProp,
|
|
@@ -9812,7 +9864,7 @@ function chainOperationsInList(opList) {
|
|
|
9812
9864
|
}
|
|
9813
9865
|
}
|
|
9814
9866
|
|
|
9815
|
-
// bazel-out/
|
|
9867
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/collapse_singleton_interpolations.mjs
|
|
9816
9868
|
function collapseSingletonInterpolations(job) {
|
|
9817
9869
|
for (const unit of job.units) {
|
|
9818
9870
|
for (const op of unit.update) {
|
|
@@ -9824,7 +9876,7 @@ function collapseSingletonInterpolations(job) {
|
|
|
9824
9876
|
}
|
|
9825
9877
|
}
|
|
9826
9878
|
|
|
9827
|
-
// bazel-out/
|
|
9879
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/conditionals.mjs
|
|
9828
9880
|
function generateConditionalExpressions(job) {
|
|
9829
9881
|
for (const unit of job.units) {
|
|
9830
9882
|
for (const op of unit.ops()) {
|
|
@@ -9861,7 +9913,7 @@ function generateConditionalExpressions(job) {
|
|
|
9861
9913
|
}
|
|
9862
9914
|
}
|
|
9863
9915
|
|
|
9864
|
-
// bazel-out/
|
|
9916
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/tags.mjs
|
|
9865
9917
|
var TagContentType;
|
|
9866
9918
|
(function(TagContentType2) {
|
|
9867
9919
|
TagContentType2[TagContentType2["RAW_TEXT"] = 0] = "RAW_TEXT";
|
|
@@ -9894,7 +9946,7 @@ function mergeNsAndName(prefix, localName) {
|
|
|
9894
9946
|
return prefix ? `:${prefix}:${localName}` : localName;
|
|
9895
9947
|
}
|
|
9896
9948
|
|
|
9897
|
-
// bazel-out/
|
|
9949
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/conversion.mjs
|
|
9898
9950
|
var BINARY_OPERATORS = /* @__PURE__ */ new Map([
|
|
9899
9951
|
["&&", BinaryOperator.And],
|
|
9900
9952
|
[">", BinaryOperator.Bigger],
|
|
@@ -9944,7 +9996,7 @@ function literalOrArrayLiteral(value) {
|
|
|
9944
9996
|
return literal(value);
|
|
9945
9997
|
}
|
|
9946
9998
|
|
|
9947
|
-
// bazel-out/
|
|
9999
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/const_collection.mjs
|
|
9948
10000
|
function collectElementConsts(job) {
|
|
9949
10001
|
const allElementAttributes = /* @__PURE__ */ new Map();
|
|
9950
10002
|
for (const unit of job.units) {
|
|
@@ -10078,7 +10130,114 @@ function serializeAttributes({ attributes, bindings, classes, i18n: i18n2, proje
|
|
|
10078
10130
|
return literalArr(attrArray);
|
|
10079
10131
|
}
|
|
10080
10132
|
|
|
10081
|
-
// bazel-out/
|
|
10133
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/create_defer_deps_fns.mjs
|
|
10134
|
+
function createDeferDepsFns(job) {
|
|
10135
|
+
for (const unit of job.units) {
|
|
10136
|
+
for (const op of unit.create) {
|
|
10137
|
+
if (op.kind === OpKind.Defer) {
|
|
10138
|
+
if (op.metadata.deps.length === 0) {
|
|
10139
|
+
continue;
|
|
10140
|
+
}
|
|
10141
|
+
const dependencies = [];
|
|
10142
|
+
for (const dep of op.metadata.deps) {
|
|
10143
|
+
if (dep.isDeferrable) {
|
|
10144
|
+
const innerFn = arrowFn([new FnParam("m", DYNAMIC_TYPE)], variable("m").prop(dep.symbolName));
|
|
10145
|
+
const importExpr2 = new DynamicImportExpr(dep.importPath).prop("then").callFn([innerFn]);
|
|
10146
|
+
dependencies.push(importExpr2);
|
|
10147
|
+
} else {
|
|
10148
|
+
dependencies.push(dep.type);
|
|
10149
|
+
}
|
|
10150
|
+
}
|
|
10151
|
+
const depsFnExpr = arrowFn([], literalArr(dependencies));
|
|
10152
|
+
if (op.handle.slot === null) {
|
|
10153
|
+
throw new Error("AssertionError: slot must be assigned bfore extracting defer deps functions");
|
|
10154
|
+
}
|
|
10155
|
+
op.resolverFn = job.pool.getSharedFunctionReference(depsFnExpr, `${job.componentName}_Defer_${op.handle.slot}_DepsFn`);
|
|
10156
|
+
}
|
|
10157
|
+
}
|
|
10158
|
+
}
|
|
10159
|
+
}
|
|
10160
|
+
|
|
10161
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/create_i18n_contexts.mjs
|
|
10162
|
+
function createI18nContexts(job) {
|
|
10163
|
+
let currentI18nOp = null;
|
|
10164
|
+
let xref;
|
|
10165
|
+
for (const unit of job.units) {
|
|
10166
|
+
for (const op of unit.create) {
|
|
10167
|
+
switch (op.kind) {
|
|
10168
|
+
case OpKind.I18nStart:
|
|
10169
|
+
xref = job.allocateXrefId();
|
|
10170
|
+
unit.create.push(createI18nContextOp(xref, op.xref, op.message, null));
|
|
10171
|
+
op.context = xref;
|
|
10172
|
+
currentI18nOp = op;
|
|
10173
|
+
break;
|
|
10174
|
+
case OpKind.I18nEnd:
|
|
10175
|
+
currentI18nOp = null;
|
|
10176
|
+
break;
|
|
10177
|
+
case OpKind.Icu:
|
|
10178
|
+
if (currentI18nOp === null) {
|
|
10179
|
+
throw Error("Unexpected ICU outside of an i18n block.");
|
|
10180
|
+
}
|
|
10181
|
+
if (op.message.id !== currentI18nOp.message.id) {
|
|
10182
|
+
xref = job.allocateXrefId();
|
|
10183
|
+
unit.create.push(createI18nContextOp(xref, currentI18nOp.xref, op.message, null));
|
|
10184
|
+
op.context = xref;
|
|
10185
|
+
} else {
|
|
10186
|
+
op.context = currentI18nOp.context;
|
|
10187
|
+
}
|
|
10188
|
+
break;
|
|
10189
|
+
}
|
|
10190
|
+
}
|
|
10191
|
+
}
|
|
10192
|
+
}
|
|
10193
|
+
|
|
10194
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/create_i18n_icu_expressions.mjs
|
|
10195
|
+
function createI18nIcuExpressions(job) {
|
|
10196
|
+
const icus = /* @__PURE__ */ new Map();
|
|
10197
|
+
const i18nContexts = /* @__PURE__ */ new Map();
|
|
10198
|
+
const i18nBlocks = /* @__PURE__ */ new Map();
|
|
10199
|
+
for (const unit of job.units) {
|
|
10200
|
+
for (const op of unit.create) {
|
|
10201
|
+
switch (op.kind) {
|
|
10202
|
+
case OpKind.Icu:
|
|
10203
|
+
icus.set(op.xref, op);
|
|
10204
|
+
break;
|
|
10205
|
+
case OpKind.I18nContext:
|
|
10206
|
+
i18nContexts.set(op.xref, op);
|
|
10207
|
+
break;
|
|
10208
|
+
case OpKind.I18nStart:
|
|
10209
|
+
i18nBlocks.set(op.xref, op);
|
|
10210
|
+
break;
|
|
10211
|
+
}
|
|
10212
|
+
}
|
|
10213
|
+
for (const op of unit.update) {
|
|
10214
|
+
switch (op.kind) {
|
|
10215
|
+
case OpKind.IcuUpdate:
|
|
10216
|
+
const icuOp = icus.get(op.xref);
|
|
10217
|
+
if ((icuOp == null ? void 0 : icuOp.icu.expressionPlaceholder) === void 0) {
|
|
10218
|
+
throw Error("ICU should have an i18n placeholder");
|
|
10219
|
+
}
|
|
10220
|
+
if (icuOp.context === null) {
|
|
10221
|
+
throw Error("ICU should have its i18n context set");
|
|
10222
|
+
}
|
|
10223
|
+
const i18nContext = i18nContexts.get(icuOp.context);
|
|
10224
|
+
const i18nBlock = i18nBlocks.get(i18nContext.i18nBlock);
|
|
10225
|
+
OpList.replace(op, createI18nExpressionOp(
|
|
10226
|
+
i18nContext.xref,
|
|
10227
|
+
i18nBlock.xref,
|
|
10228
|
+
i18nBlock.handle,
|
|
10229
|
+
new LexicalReadExpr(icuOp.icu.expression),
|
|
10230
|
+
icuOp.icu.expressionPlaceholder,
|
|
10231
|
+
I18nParamResolutionTime.Postproccessing,
|
|
10232
|
+
null
|
|
10233
|
+
));
|
|
10234
|
+
break;
|
|
10235
|
+
}
|
|
10236
|
+
}
|
|
10237
|
+
}
|
|
10238
|
+
}
|
|
10239
|
+
|
|
10240
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/defer_configs.mjs
|
|
10082
10241
|
function configureDeferInstructions(job) {
|
|
10083
10242
|
for (const unit of job.units) {
|
|
10084
10243
|
for (const op of unit.create) {
|
|
@@ -10095,7 +10254,7 @@ function configureDeferInstructions(job) {
|
|
|
10095
10254
|
}
|
|
10096
10255
|
}
|
|
10097
10256
|
|
|
10098
|
-
// bazel-out/
|
|
10257
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/defer_resolve_targets.mjs
|
|
10099
10258
|
function resolveDeferTargetNames(job) {
|
|
10100
10259
|
const scopes = /* @__PURE__ */ new Map();
|
|
10101
10260
|
function getScopeForView2(view) {
|
|
@@ -10130,6 +10289,22 @@ function resolveDeferTargetNames(job) {
|
|
|
10130
10289
|
case DeferTriggerKind.Interaction:
|
|
10131
10290
|
case DeferTriggerKind.Viewport:
|
|
10132
10291
|
if (op.trigger.targetName === null) {
|
|
10292
|
+
if (placeholderView === null) {
|
|
10293
|
+
throw new Error("defer on trigger with no target name must have a placeholder block");
|
|
10294
|
+
}
|
|
10295
|
+
const placeholder = job.views.get(placeholderView);
|
|
10296
|
+
if (placeholder == void 0) {
|
|
10297
|
+
throw new Error("AssertionError: could not find placeholder view for defer on trigger");
|
|
10298
|
+
}
|
|
10299
|
+
for (const placeholderOp of placeholder.create) {
|
|
10300
|
+
if (hasConsumesSlotTrait(placeholderOp) && (isElementOrContainerOp(placeholderOp) || placeholderOp.kind === OpKind.Projection)) {
|
|
10301
|
+
op.trigger.targetXref = placeholderOp.xref;
|
|
10302
|
+
op.trigger.targetView = placeholderView;
|
|
10303
|
+
op.trigger.targetSlotViewSteps = -1;
|
|
10304
|
+
op.trigger.targetSlot = placeholderOp.handle;
|
|
10305
|
+
return;
|
|
10306
|
+
}
|
|
10307
|
+
}
|
|
10133
10308
|
return;
|
|
10134
10309
|
}
|
|
10135
10310
|
let view = placeholderView !== null ? job.views.get(placeholderView) : deferOwnerView;
|
|
@@ -10173,7 +10348,7 @@ var Scope = class {
|
|
|
10173
10348
|
}
|
|
10174
10349
|
};
|
|
10175
10350
|
|
|
10176
|
-
// bazel-out/
|
|
10351
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/empty_elements.mjs
|
|
10177
10352
|
var REPLACEMENTS = /* @__PURE__ */ new Map([
|
|
10178
10353
|
[OpKind.ElementEnd, [OpKind.ElementStart, OpKind.Element]],
|
|
10179
10354
|
[OpKind.ContainerEnd, [OpKind.ContainerStart, OpKind.Container]],
|
|
@@ -10200,7 +10375,7 @@ function collapseEmptyInstructions(job) {
|
|
|
10200
10375
|
}
|
|
10201
10376
|
}
|
|
10202
10377
|
|
|
10203
|
-
// bazel-out/
|
|
10378
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/expand_safe_reads.mjs
|
|
10204
10379
|
function expandSafeReads(job) {
|
|
10205
10380
|
for (const unit of job.units) {
|
|
10206
10381
|
for (const op of unit.ops()) {
|
|
@@ -10336,7 +10511,7 @@ function ternaryTransform(e) {
|
|
|
10336
10511
|
return new ConditionalExpr(new BinaryOperatorExpr(BinaryOperator.Equals, e.guard, NULL_EXPR), NULL_EXPR, e.expr);
|
|
10337
10512
|
}
|
|
10338
10513
|
|
|
10339
|
-
// bazel-out/
|
|
10514
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/extract_i18n_messages.mjs
|
|
10340
10515
|
var ESCAPE = "\uFFFD";
|
|
10341
10516
|
var ELEMENT_MARKER = "#";
|
|
10342
10517
|
var TEMPLATE_MARKER = "*";
|
|
@@ -10345,24 +10520,61 @@ var CONTEXT_MARKER = ":";
|
|
|
10345
10520
|
var LIST_START_MARKER = "[";
|
|
10346
10521
|
var LIST_END_MARKER = "]";
|
|
10347
10522
|
var LIST_DELIMITER = "|";
|
|
10348
|
-
function
|
|
10523
|
+
function extractI18nMessages(job) {
|
|
10524
|
+
const i18nContexts = /* @__PURE__ */ new Map();
|
|
10525
|
+
const i18nBlockContexts = /* @__PURE__ */ new Set();
|
|
10349
10526
|
for (const unit of job.units) {
|
|
10350
10527
|
for (const op of unit.create) {
|
|
10351
|
-
|
|
10352
|
-
|
|
10353
|
-
op.
|
|
10354
|
-
|
|
10355
|
-
|
|
10356
|
-
|
|
10357
|
-
|
|
10358
|
-
|
|
10359
|
-
|
|
10360
|
-
|
|
10528
|
+
switch (op.kind) {
|
|
10529
|
+
case OpKind.I18nContext:
|
|
10530
|
+
i18nContexts.set(op.xref, op);
|
|
10531
|
+
break;
|
|
10532
|
+
case OpKind.I18nStart:
|
|
10533
|
+
i18nBlockContexts.add(op.context);
|
|
10534
|
+
break;
|
|
10535
|
+
}
|
|
10536
|
+
}
|
|
10537
|
+
}
|
|
10538
|
+
const i18nBlockMessages = /* @__PURE__ */ new Map();
|
|
10539
|
+
for (const unit of job.units) {
|
|
10540
|
+
for (const op of unit.create) {
|
|
10541
|
+
if (op.kind === OpKind.I18nStart && op.xref === op.root) {
|
|
10542
|
+
if (!op.context) {
|
|
10543
|
+
throw Error("I18n start op should have its context set.");
|
|
10361
10544
|
}
|
|
10545
|
+
const i18nMessageOp = createI18nMessage(job, i18nContexts.get(op.context));
|
|
10546
|
+
i18nBlockMessages.set(op.xref, i18nMessageOp);
|
|
10547
|
+
unit.create.push(i18nMessageOp);
|
|
10548
|
+
}
|
|
10549
|
+
}
|
|
10550
|
+
}
|
|
10551
|
+
for (const unit of job.units) {
|
|
10552
|
+
for (const op of unit.create) {
|
|
10553
|
+
if (op.kind === OpKind.Icu) {
|
|
10554
|
+
if (!op.context) {
|
|
10555
|
+
throw Error("ICU op should have its context set.");
|
|
10556
|
+
}
|
|
10557
|
+
if (!i18nBlockContexts.has(op.context)) {
|
|
10558
|
+
const i18nContext = i18nContexts.get(op.context);
|
|
10559
|
+
const subMessage = createI18nMessage(job, i18nContext, op.messagePlaceholder);
|
|
10560
|
+
unit.create.push(subMessage);
|
|
10561
|
+
const parentMessage = i18nBlockMessages.get(i18nContext.i18nBlock);
|
|
10562
|
+
parentMessage == null ? void 0 : parentMessage.subMessages.push(subMessage.xref);
|
|
10563
|
+
}
|
|
10564
|
+
OpList.remove(op);
|
|
10362
10565
|
}
|
|
10363
10566
|
}
|
|
10364
10567
|
}
|
|
10365
10568
|
}
|
|
10569
|
+
function createI18nMessage(job, context, messagePlaceholder) {
|
|
10570
|
+
let needsPostprocessing = context.postprocessingParams.size > 0;
|
|
10571
|
+
for (const values of context.params.values()) {
|
|
10572
|
+
if (values.length > 1) {
|
|
10573
|
+
needsPostprocessing = true;
|
|
10574
|
+
}
|
|
10575
|
+
}
|
|
10576
|
+
return createI18nMessageOp(job.allocateXrefId(), context.i18nBlock, context.message, messagePlaceholder != null ? messagePlaceholder : null, formatParams(context.params), formatParams(context.postprocessingParams), needsPostprocessing);
|
|
10577
|
+
}
|
|
10366
10578
|
function formatParams(params) {
|
|
10367
10579
|
const result = /* @__PURE__ */ new Map();
|
|
10368
10580
|
for (const [placeholder, placeholderValues] of [...params].sort()) {
|
|
@@ -10398,7 +10610,7 @@ function formatValue(value) {
|
|
|
10398
10610
|
return `${ESCAPE}${closeMarker}${tagMarker}${value.value}${context}${ESCAPE}`;
|
|
10399
10611
|
}
|
|
10400
10612
|
|
|
10401
|
-
// bazel-out/
|
|
10613
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_advance.mjs
|
|
10402
10614
|
function generateAdvance(job) {
|
|
10403
10615
|
for (const unit of job.units) {
|
|
10404
10616
|
const slotMap = /* @__PURE__ */ new Map();
|
|
@@ -10430,7 +10642,7 @@ function generateAdvance(job) {
|
|
|
10430
10642
|
}
|
|
10431
10643
|
}
|
|
10432
10644
|
|
|
10433
|
-
// bazel-out/
|
|
10645
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_projection_def.mjs
|
|
10434
10646
|
function generateProjectionDefs(job) {
|
|
10435
10647
|
const share = job.compatibility === CompatibilityMode.TemplateDefinitionBuilder;
|
|
10436
10648
|
const selectors = [];
|
|
@@ -10454,7 +10666,7 @@ function generateProjectionDefs(job) {
|
|
|
10454
10666
|
}
|
|
10455
10667
|
}
|
|
10456
10668
|
|
|
10457
|
-
// bazel-out/
|
|
10669
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_variables.mjs
|
|
10458
10670
|
function generateVariables(job) {
|
|
10459
10671
|
recursivelyProcessView(job.root, null);
|
|
10460
10672
|
}
|
|
@@ -10542,7 +10754,7 @@ function generateVariablesInScopeForView(view, scope) {
|
|
|
10542
10754
|
return newOps;
|
|
10543
10755
|
}
|
|
10544
10756
|
|
|
10545
|
-
// bazel-out/
|
|
10757
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/has_const_expression_collection.mjs
|
|
10546
10758
|
function collectConstExpressions(job) {
|
|
10547
10759
|
for (const unit of job.units) {
|
|
10548
10760
|
for (const op of unit.ops()) {
|
|
@@ -10556,7 +10768,7 @@ function collectConstExpressions(job) {
|
|
|
10556
10768
|
}
|
|
10557
10769
|
}
|
|
10558
10770
|
|
|
10559
|
-
// bazel-out/
|
|
10771
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/host_style_property_parsing.mjs
|
|
10560
10772
|
var STYLE_DOT = "style.";
|
|
10561
10773
|
var CLASS_DOT = "class.";
|
|
10562
10774
|
var STYLE_BANG = "style!";
|
|
@@ -10614,7 +10826,7 @@ function parseProperty(name) {
|
|
|
10614
10826
|
return { property: property2, suffix };
|
|
10615
10827
|
}
|
|
10616
10828
|
|
|
10617
|
-
// bazel-out/
|
|
10829
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/map_util.mjs
|
|
10618
10830
|
function mapLiteral(obj, quoted = false) {
|
|
10619
10831
|
return literalMap(Object.keys(obj).map((key) => ({
|
|
10620
10832
|
key,
|
|
@@ -10623,7 +10835,7 @@ function mapLiteral(obj, quoted = false) {
|
|
|
10623
10835
|
})));
|
|
10624
10836
|
}
|
|
10625
10837
|
|
|
10626
|
-
// bazel-out/
|
|
10838
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/icu_serializer.mjs
|
|
10627
10839
|
var IcuSerializerVisitor = class {
|
|
10628
10840
|
visitText(text2) {
|
|
10629
10841
|
return text2.value;
|
|
@@ -10654,7 +10866,7 @@ function serializeIcuNode(icu) {
|
|
|
10654
10866
|
return icu.visit(serializer);
|
|
10655
10867
|
}
|
|
10656
10868
|
|
|
10657
|
-
// bazel-out/
|
|
10869
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/expression_parser/lexer.mjs
|
|
10658
10870
|
var TokenType;
|
|
10659
10871
|
(function(TokenType2) {
|
|
10660
10872
|
TokenType2[TokenType2["Character"] = 0] = "Character";
|
|
@@ -11015,7 +11227,7 @@ function parseIntAutoRadix(text2) {
|
|
|
11015
11227
|
return result;
|
|
11016
11228
|
}
|
|
11017
11229
|
|
|
11018
|
-
// bazel-out/
|
|
11230
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/expression_parser/parser.mjs
|
|
11019
11231
|
var SplitInterpolation = class {
|
|
11020
11232
|
constructor(strings, expressions, offsets) {
|
|
11021
11233
|
this.strings = strings;
|
|
@@ -11909,7 +12121,7 @@ function getIndexMapForOriginalTemplate(interpolatedTokens) {
|
|
|
11909
12121
|
return offsetMap;
|
|
11910
12122
|
}
|
|
11911
12123
|
|
|
11912
|
-
// bazel-out/
|
|
12124
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/ast.mjs
|
|
11913
12125
|
var NodeWithI18n = class {
|
|
11914
12126
|
constructor(sourceSpan, i18n2) {
|
|
11915
12127
|
this.sourceSpan = sourceSpan;
|
|
@@ -12020,11 +12232,11 @@ function visitAll2(visitor, nodes, context = null) {
|
|
|
12020
12232
|
return result;
|
|
12021
12233
|
}
|
|
12022
12234
|
|
|
12023
|
-
// bazel-out/
|
|
12235
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/schema/element_schema_registry.mjs
|
|
12024
12236
|
var ElementSchemaRegistry = class {
|
|
12025
12237
|
};
|
|
12026
12238
|
|
|
12027
|
-
// bazel-out/
|
|
12239
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/schema/dom_element_schema_registry.mjs
|
|
12028
12240
|
var BOOLEAN = "boolean";
|
|
12029
12241
|
var NUMBER = "number";
|
|
12030
12242
|
var STRING = "string";
|
|
@@ -12377,7 +12589,7 @@ function _isPixelDimensionStyle(prop) {
|
|
|
12377
12589
|
}
|
|
12378
12590
|
}
|
|
12379
12591
|
|
|
12380
|
-
// bazel-out/
|
|
12592
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/html_tags.mjs
|
|
12381
12593
|
var HtmlTagDefinition = class {
|
|
12382
12594
|
constructor({ closedByChildren, implicitNamespacePrefix, contentType = TagContentType.PARSABLE_DATA, closedByParent = false, isVoid = false, ignoreFirstLf = false, preventNamespaceInheritance = false, canSelfClose = false } = {}) {
|
|
12383
12595
|
this.closedByChildren = {};
|
|
@@ -12495,7 +12707,7 @@ function getHtmlTagDefinition(tagName) {
|
|
|
12495
12707
|
return (_b2 = (_a2 = TAG_DEFINITIONS[tagName]) != null ? _a2 : TAG_DEFINITIONS[tagName.toLowerCase()]) != null ? _b2 : DEFAULT_TAG_DEFINITION;
|
|
12496
12708
|
}
|
|
12497
12709
|
|
|
12498
|
-
// bazel-out/
|
|
12710
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/placeholder.mjs
|
|
12499
12711
|
var TAG_TO_PLACEHOLDER_NAMES = {
|
|
12500
12712
|
"A": "LINK",
|
|
12501
12713
|
"B": "BOLD_TEXT",
|
|
@@ -12589,7 +12801,7 @@ var PlaceholderRegistry = class {
|
|
|
12589
12801
|
}
|
|
12590
12802
|
};
|
|
12591
12803
|
|
|
12592
|
-
// bazel-out/
|
|
12804
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/i18n_parser.mjs
|
|
12593
12805
|
var _expParser = new Parser(new Lexer());
|
|
12594
12806
|
function createI18nMessageFactory(interpolationConfig) {
|
|
12595
12807
|
const visitor = new _I18nVisitor(_expParser, interpolationConfig);
|
|
@@ -12751,14 +12963,14 @@ function extractPlaceholderName(input) {
|
|
|
12751
12963
|
return input.split(_CUSTOM_PH_EXP)[2];
|
|
12752
12964
|
}
|
|
12753
12965
|
|
|
12754
|
-
// bazel-out/
|
|
12966
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/parse_util.mjs
|
|
12755
12967
|
var I18nError = class extends ParseError {
|
|
12756
12968
|
constructor(span, msg) {
|
|
12757
12969
|
super(span, msg);
|
|
12758
12970
|
}
|
|
12759
12971
|
};
|
|
12760
12972
|
|
|
12761
|
-
// bazel-out/
|
|
12973
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/entities.mjs
|
|
12762
12974
|
var NAMED_ENTITIES = {
|
|
12763
12975
|
"AElig": "\xC6",
|
|
12764
12976
|
"AMP": "&",
|
|
@@ -14889,7 +15101,7 @@ var NAMED_ENTITIES = {
|
|
|
14889
15101
|
var NGSP_UNICODE = "\uE500";
|
|
14890
15102
|
NAMED_ENTITIES["ngsp"] = NGSP_UNICODE;
|
|
14891
15103
|
|
|
14892
|
-
// bazel-out/
|
|
15104
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/lexer.mjs
|
|
14893
15105
|
var TokenError = class extends ParseError {
|
|
14894
15106
|
constructor(errorMsg, tokenType, span) {
|
|
14895
15107
|
super(span, errorMsg);
|
|
@@ -15810,7 +16022,7 @@ var CursorError = class {
|
|
|
15810
16022
|
}
|
|
15811
16023
|
};
|
|
15812
16024
|
|
|
15813
|
-
// bazel-out/
|
|
16025
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/parser.mjs
|
|
15814
16026
|
var TreeError = class extends ParseError {
|
|
15815
16027
|
static create(elementName, span, msg) {
|
|
15816
16028
|
return new TreeError(elementName, span, msg);
|
|
@@ -16194,7 +16406,7 @@ function decodeEntity(match, entity) {
|
|
|
16194
16406
|
return match;
|
|
16195
16407
|
}
|
|
16196
16408
|
|
|
16197
|
-
// bazel-out/
|
|
16409
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/schema/trusted_types_sinks.mjs
|
|
16198
16410
|
var TRUSTED_TYPES_SINKS = /* @__PURE__ */ new Set([
|
|
16199
16411
|
"iframe|srcdoc",
|
|
16200
16412
|
"*|innerhtml",
|
|
@@ -16209,7 +16421,7 @@ function isTrustedTypesSink(tagName, propName) {
|
|
|
16209
16421
|
return TRUSTED_TYPES_SINKS.has(tagName + "|" + propName) || TRUSTED_TYPES_SINKS.has("*|" + propName);
|
|
16210
16422
|
}
|
|
16211
16423
|
|
|
16212
|
-
// bazel-out/
|
|
16424
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/meta.mjs
|
|
16213
16425
|
var setI18nRefs = (htmlNode, i18nNode) => {
|
|
16214
16426
|
if (htmlNode instanceof NodeWithI18n) {
|
|
16215
16427
|
if (i18nNode instanceof IcuPlaceholder && htmlNode.i18n instanceof Message) {
|
|
@@ -16229,8 +16441,8 @@ var I18nMetaVisitor = class {
|
|
|
16229
16441
|
}
|
|
16230
16442
|
_generateI18nMessage(nodes, meta = "", visitNodeFn) {
|
|
16231
16443
|
const { meaning, description, customId } = this._parseMetadata(meta);
|
|
16232
|
-
const
|
|
16233
|
-
const message =
|
|
16444
|
+
const createI18nMessage2 = createI18nMessageFactory(this.interpolationConfig);
|
|
16445
|
+
const message = createI18nMessage2(nodes, meaning, description, customId, visitNodeFn);
|
|
16234
16446
|
this._setMessageId(message, meta);
|
|
16235
16447
|
this._setLegacyIds(message, meta);
|
|
16236
16448
|
return message;
|
|
@@ -16365,7 +16577,7 @@ function i18nMetaToJSDoc(meta) {
|
|
|
16365
16577
|
return jsDocComment(tags);
|
|
16366
16578
|
}
|
|
16367
16579
|
|
|
16368
|
-
// bazel-out/
|
|
16580
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/get_msg_utils.mjs
|
|
16369
16581
|
var GOOG_GET_MSG = "goog.getMsg";
|
|
16370
16582
|
function createGoogleGetMsgStatements(variable2, message, closureVar, placeholderValues) {
|
|
16371
16583
|
const messageString = serializeI18nMessageForGetMsg(message);
|
|
@@ -16413,7 +16625,7 @@ function serializeI18nMessageForGetMsg(message) {
|
|
|
16413
16625
|
return message.nodes.map((node) => node.visit(serializerVisitor2, null)).join("");
|
|
16414
16626
|
}
|
|
16415
16627
|
|
|
16416
|
-
// bazel-out/
|
|
16628
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/localize_utils.mjs
|
|
16417
16629
|
function createLocalizeStatements(variable2, message, params) {
|
|
16418
16630
|
const { messageParts, placeHolders } = serializeI18nMessageForLocalize(message);
|
|
16419
16631
|
const sourceSpan = getSourceSpan(message);
|
|
@@ -16496,34 +16708,27 @@ function createEmptyMessagePart(location) {
|
|
|
16496
16708
|
return new LiteralPiece("", new ParseSourceSpan(location, location));
|
|
16497
16709
|
}
|
|
16498
16710
|
|
|
16499
|
-
// bazel-out/
|
|
16711
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/i18n_const_collection.mjs
|
|
16500
16712
|
var NG_I18N_CLOSURE_MODE = "ngI18nClosureMode";
|
|
16501
16713
|
var TRANSLATION_VAR_PREFIX2 = "i18n_";
|
|
16502
16714
|
function collectI18nConsts(job) {
|
|
16503
16715
|
const fileBasedI18nSuffix = job.relativeContextFilePath.replace(/[^A-Za-z0-9]/g, "_").toUpperCase() + "_";
|
|
16504
16716
|
const messageConstIndices = /* @__PURE__ */ new Map();
|
|
16717
|
+
const messages = /* @__PURE__ */ new Map();
|
|
16505
16718
|
for (const unit of job.units) {
|
|
16506
16719
|
for (const op of unit.create) {
|
|
16507
|
-
if (op.kind === OpKind.
|
|
16508
|
-
|
|
16509
|
-
assertAllParamsResolved(op);
|
|
16510
|
-
const mainVar = variable(job.pool.uniqueName(TRANSLATION_VAR_PREFIX2));
|
|
16511
|
-
const closureVar = i18nGenerateClosureVar(job.pool, op.message.id, fileBasedI18nSuffix, job.i18nUseExternalIds);
|
|
16512
|
-
let transformFn = void 0;
|
|
16513
|
-
if (op.needsPostprocessing) {
|
|
16514
|
-
const extraTransformFnParams = [];
|
|
16515
|
-
if (op.formattedPostprocessingParams.size > 0) {
|
|
16516
|
-
extraTransformFnParams.push(literalMap([...op.formattedPostprocessingParams].map(([key, value]) => ({ key, value, quoted: true }))));
|
|
16517
|
-
}
|
|
16518
|
-
transformFn = (expr) => importExpr(Identifiers.i18nPostprocess).callFn([expr, ...extraTransformFnParams]);
|
|
16519
|
-
}
|
|
16520
|
-
const statements = getTranslationDeclStmts(op.message, mainVar, closureVar, op.formattedParams, transformFn);
|
|
16521
|
-
messageConstIndices.set(op.owner, job.addConst(mainVar, statements));
|
|
16522
|
-
}
|
|
16720
|
+
if (op.kind === OpKind.I18nMessage) {
|
|
16721
|
+
messages.set(op.xref, op);
|
|
16523
16722
|
OpList.remove(op);
|
|
16524
16723
|
}
|
|
16525
16724
|
}
|
|
16526
16725
|
}
|
|
16726
|
+
for (const op of messages.values()) {
|
|
16727
|
+
if (op.kind === OpKind.I18nMessage && op.messagePlaceholder === null) {
|
|
16728
|
+
const { mainVar, statements } = collectMessage(job, fileBasedI18nSuffix, messages, op);
|
|
16729
|
+
messageConstIndices.set(op.i18nBlock, job.addConst(mainVar, statements));
|
|
16730
|
+
}
|
|
16731
|
+
}
|
|
16527
16732
|
for (const unit of job.units) {
|
|
16528
16733
|
for (const op of unit.create) {
|
|
16529
16734
|
if (op.kind === OpKind.I18nStart) {
|
|
@@ -16532,6 +16737,28 @@ function collectI18nConsts(job) {
|
|
|
16532
16737
|
}
|
|
16533
16738
|
}
|
|
16534
16739
|
}
|
|
16740
|
+
function collectMessage(job, fileBasedI18nSuffix, messages, messageOp) {
|
|
16741
|
+
const statements = [];
|
|
16742
|
+
for (const subMessageId of messageOp.subMessages) {
|
|
16743
|
+
const subMessage = messages.get(subMessageId);
|
|
16744
|
+
const { mainVar: subMessageVar, statements: subMessageStatements } = collectMessage(job, fileBasedI18nSuffix, messages, subMessage);
|
|
16745
|
+
statements.push(...subMessageStatements);
|
|
16746
|
+
messageOp.params.set(subMessage.messagePlaceholder, subMessageVar);
|
|
16747
|
+
}
|
|
16748
|
+
assertAllParamsResolved(messageOp);
|
|
16749
|
+
const mainVar = variable(job.pool.uniqueName(TRANSLATION_VAR_PREFIX2));
|
|
16750
|
+
const closureVar = i18nGenerateClosureVar(job.pool, messageOp.message.id, fileBasedI18nSuffix, job.i18nUseExternalIds);
|
|
16751
|
+
let transformFn = void 0;
|
|
16752
|
+
if (messageOp.needsPostprocessing) {
|
|
16753
|
+
const extraTransformFnParams = [];
|
|
16754
|
+
if (messageOp.postprocessingParams.size > 0) {
|
|
16755
|
+
extraTransformFnParams.push(literalMap([...messageOp.postprocessingParams].map(([key, value]) => ({ key, value, quoted: true }))));
|
|
16756
|
+
}
|
|
16757
|
+
transformFn = (expr) => importExpr(Identifiers.i18nPostprocess).callFn([expr, ...extraTransformFnParams]);
|
|
16758
|
+
}
|
|
16759
|
+
statements.push(...getTranslationDeclStmts(messageOp.message, mainVar, closureVar, messageOp.params, transformFn));
|
|
16760
|
+
return { mainVar, statements };
|
|
16761
|
+
}
|
|
16535
16762
|
function getTranslationDeclStmts(message, variable2, closureVar, params, transformFn) {
|
|
16536
16763
|
const paramsObject = Object.fromEntries(params);
|
|
16537
16764
|
const statements = [
|
|
@@ -16560,52 +16787,38 @@ function i18nGenerateClosureVar(pool, messageId, fileBasedI18nSuffix, useExterna
|
|
|
16560
16787
|
return variable(name);
|
|
16561
16788
|
}
|
|
16562
16789
|
function assertAllParamsResolved(op) {
|
|
16563
|
-
if (op.formattedParams === null || op.formattedPostprocessingParams === null) {
|
|
16564
|
-
throw Error("Params should have been formatted.");
|
|
16565
|
-
}
|
|
16566
16790
|
for (const placeholder in op.message.placeholders) {
|
|
16567
|
-
if (!op.
|
|
16791
|
+
if (!op.params.has(placeholder) && !op.postprocessingParams.has(placeholder)) {
|
|
16568
16792
|
throw Error(`Failed to resolve i18n placeholder: ${placeholder}`);
|
|
16569
16793
|
}
|
|
16570
16794
|
}
|
|
16571
16795
|
for (const placeholder in op.message.placeholderToMessage) {
|
|
16572
|
-
if (!op.
|
|
16796
|
+
if (!op.params.has(placeholder) && !op.postprocessingParams.has(placeholder)) {
|
|
16573
16797
|
throw Error(`Failed to resolve i18n message placeholder: ${placeholder}`);
|
|
16574
16798
|
}
|
|
16575
16799
|
}
|
|
16576
16800
|
}
|
|
16577
16801
|
|
|
16578
|
-
// bazel-out/
|
|
16579
|
-
function extractI18nMessages(job) {
|
|
16580
|
-
for (const unit of job.units) {
|
|
16581
|
-
for (const op of unit.create) {
|
|
16582
|
-
if (op.kind === OpKind.I18nStart) {
|
|
16583
|
-
unit.create.push(createExtractedMessageOp(op.xref, op.message, op.xref === op.root));
|
|
16584
|
-
}
|
|
16585
|
-
}
|
|
16586
|
-
}
|
|
16587
|
-
}
|
|
16588
|
-
|
|
16589
|
-
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/i18n_text_extraction.mjs
|
|
16802
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/i18n_text_extraction.mjs
|
|
16590
16803
|
function extractI18nText(job) {
|
|
16591
16804
|
var _a2;
|
|
16592
16805
|
for (const unit of job.units) {
|
|
16593
|
-
let
|
|
16594
|
-
|
|
16595
|
-
const textNodes = /* @__PURE__ */ new Map();
|
|
16806
|
+
let currentI18n = null;
|
|
16807
|
+
const textNodeI18nBlocks = /* @__PURE__ */ new Map();
|
|
16596
16808
|
for (const op of unit.create) {
|
|
16597
16809
|
switch (op.kind) {
|
|
16598
16810
|
case OpKind.I18nStart:
|
|
16599
|
-
|
|
16600
|
-
|
|
16811
|
+
if (op.context === null) {
|
|
16812
|
+
throw Error("I18n op should have its context set.");
|
|
16813
|
+
}
|
|
16814
|
+
currentI18n = op;
|
|
16601
16815
|
break;
|
|
16602
16816
|
case OpKind.I18nEnd:
|
|
16603
|
-
|
|
16604
|
-
currentI18nSlot = null;
|
|
16817
|
+
currentI18n = null;
|
|
16605
16818
|
break;
|
|
16606
16819
|
case OpKind.Text:
|
|
16607
|
-
if (
|
|
16608
|
-
|
|
16820
|
+
if (currentI18n !== null) {
|
|
16821
|
+
textNodeI18nBlocks.set(op.xref, currentI18n);
|
|
16609
16822
|
OpList.remove(op);
|
|
16610
16823
|
}
|
|
16611
16824
|
break;
|
|
@@ -16614,17 +16827,15 @@ function extractI18nText(job) {
|
|
|
16614
16827
|
for (const op of unit.update) {
|
|
16615
16828
|
switch (op.kind) {
|
|
16616
16829
|
case OpKind.InterpolateText:
|
|
16617
|
-
if (!
|
|
16830
|
+
if (!textNodeI18nBlocks.has(op.target)) {
|
|
16618
16831
|
continue;
|
|
16619
16832
|
}
|
|
16620
|
-
const
|
|
16833
|
+
const i18nOp = textNodeI18nBlocks.get(op.target);
|
|
16621
16834
|
const ops = [];
|
|
16622
16835
|
for (let i = 0; i < op.interpolation.expressions.length; i++) {
|
|
16623
16836
|
const expr = op.interpolation.expressions[i];
|
|
16624
16837
|
const placeholder = op.i18nPlaceholders[i];
|
|
16625
|
-
ops.push(createI18nExpressionOp(
|
|
16626
|
-
}
|
|
16627
|
-
if (ops.length > 0) {
|
|
16838
|
+
ops.push(createI18nExpressionOp(i18nOp.context, i18nOp.xref, i18nOp.handle, expr, placeholder.name, I18nParamResolutionTime.Creation, (_a2 = expr.sourceSpan) != null ? _a2 : op.sourceSpan));
|
|
16628
16839
|
}
|
|
16629
16840
|
OpList.replaceWithMany(op, ops);
|
|
16630
16841
|
break;
|
|
@@ -16633,50 +16844,7 @@ function extractI18nText(job) {
|
|
|
16633
16844
|
}
|
|
16634
16845
|
}
|
|
16635
16846
|
|
|
16636
|
-
// bazel-out/
|
|
16637
|
-
function extractI18nICUs(job) {
|
|
16638
|
-
for (const unit of job.units) {
|
|
16639
|
-
const icus = /* @__PURE__ */ new Map();
|
|
16640
|
-
let currentI18nId = null;
|
|
16641
|
-
let currentI18nSlot = null;
|
|
16642
|
-
for (const op of unit.create) {
|
|
16643
|
-
switch (op.kind) {
|
|
16644
|
-
case OpKind.I18nStart:
|
|
16645
|
-
currentI18nId = op.xref;
|
|
16646
|
-
currentI18nSlot = op.handle;
|
|
16647
|
-
break;
|
|
16648
|
-
case OpKind.I18nEnd:
|
|
16649
|
-
currentI18nId = null;
|
|
16650
|
-
currentI18nSlot = null;
|
|
16651
|
-
break;
|
|
16652
|
-
case OpKind.Icu:
|
|
16653
|
-
if (currentI18nId === null) {
|
|
16654
|
-
throw Error("Unexpected ICU outside of an i18n block.");
|
|
16655
|
-
}
|
|
16656
|
-
icus.set(op.xref, { message: op.message, i18nBlockId: currentI18nId, i18nBlockSlot: currentI18nSlot });
|
|
16657
|
-
OpList.remove(op);
|
|
16658
|
-
break;
|
|
16659
|
-
}
|
|
16660
|
-
}
|
|
16661
|
-
for (const op of unit.update) {
|
|
16662
|
-
switch (op.kind) {
|
|
16663
|
-
case OpKind.IcuUpdate:
|
|
16664
|
-
const { message, i18nBlockId, i18nBlockSlot } = icus.get(op.xref);
|
|
16665
|
-
const icuNode = message.nodes.find((n) => n instanceof Icu2);
|
|
16666
|
-
if (icuNode === void 0) {
|
|
16667
|
-
throw Error("Could not find ICU in i18n AST");
|
|
16668
|
-
}
|
|
16669
|
-
if (icuNode.expressionPlaceholder === void 0) {
|
|
16670
|
-
throw Error("ICU is missing an i18n placeholder");
|
|
16671
|
-
}
|
|
16672
|
-
OpList.replace(op, createI18nExpressionOp(i18nBlockId, i18nBlockSlot, new LexicalReadExpr(icuNode.expression), icuNode.expressionPlaceholder, I18nParamResolutionTime.Postproccessing, null));
|
|
16673
|
-
break;
|
|
16674
|
-
}
|
|
16675
|
-
}
|
|
16676
|
-
}
|
|
16677
|
-
}
|
|
16678
|
-
|
|
16679
|
-
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/local_refs.mjs
|
|
16847
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/local_refs.mjs
|
|
16680
16848
|
function liftLocalRefs(job) {
|
|
16681
16849
|
for (const unit of job.units) {
|
|
16682
16850
|
for (const op of unit.create) {
|
|
@@ -16706,7 +16874,48 @@ function serializeLocalRefs(refs) {
|
|
|
16706
16874
|
return literalArr(constRefs);
|
|
16707
16875
|
}
|
|
16708
16876
|
|
|
16709
|
-
// bazel-out/
|
|
16877
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/merge_i18n_contexts.mjs
|
|
16878
|
+
function mergeI18nContexts(job) {
|
|
16879
|
+
const i18nOps = /* @__PURE__ */ new Map();
|
|
16880
|
+
const i18nContexts = /* @__PURE__ */ new Map();
|
|
16881
|
+
for (const unit of job.units) {
|
|
16882
|
+
for (const op of unit.create) {
|
|
16883
|
+
switch (op.kind) {
|
|
16884
|
+
case OpKind.I18nStart:
|
|
16885
|
+
if (!op.context) {
|
|
16886
|
+
throw Error("I18n op should have its context set.");
|
|
16887
|
+
}
|
|
16888
|
+
i18nOps.set(op.xref, op);
|
|
16889
|
+
break;
|
|
16890
|
+
case OpKind.I18nContext:
|
|
16891
|
+
i18nContexts.set(op.xref, op);
|
|
16892
|
+
break;
|
|
16893
|
+
}
|
|
16894
|
+
}
|
|
16895
|
+
}
|
|
16896
|
+
for (const childI18nOp of i18nOps.values()) {
|
|
16897
|
+
if (childI18nOp.xref !== childI18nOp.root) {
|
|
16898
|
+
const childContext = i18nContexts.get(childI18nOp.context);
|
|
16899
|
+
const rootI18nOp = i18nOps.get(childI18nOp.root);
|
|
16900
|
+
const rootContext = i18nContexts.get(rootI18nOp.context);
|
|
16901
|
+
mergeParams(rootContext.params, childContext.params);
|
|
16902
|
+
mergeParams(rootContext.postprocessingParams, childContext.postprocessingParams);
|
|
16903
|
+
}
|
|
16904
|
+
}
|
|
16905
|
+
}
|
|
16906
|
+
function mergeParams(to, from) {
|
|
16907
|
+
for (const [placeholder, fromValues] of from) {
|
|
16908
|
+
const toValues = to.get(placeholder) || [];
|
|
16909
|
+
const flags = fromValues[0].flags;
|
|
16910
|
+
if (flags & I18nParamValueFlags.CloseTag && !(flags & I18nParamValueFlags.OpenTag)) {
|
|
16911
|
+
to.set(placeholder, [...fromValues, ...toValues]);
|
|
16912
|
+
} else {
|
|
16913
|
+
to.set(placeholder, [...toValues, ...fromValues]);
|
|
16914
|
+
}
|
|
16915
|
+
}
|
|
16916
|
+
}
|
|
16917
|
+
|
|
16918
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/namespace.mjs
|
|
16710
16919
|
function emitNamespaceChanges(job) {
|
|
16711
16920
|
for (const unit of job.units) {
|
|
16712
16921
|
let activeNamespace = Namespace.HTML;
|
|
@@ -16722,7 +16931,7 @@ function emitNamespaceChanges(job) {
|
|
|
16722
16931
|
}
|
|
16723
16932
|
}
|
|
16724
16933
|
|
|
16725
|
-
// bazel-out/
|
|
16934
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/style_parser.mjs
|
|
16726
16935
|
function parse(value) {
|
|
16727
16936
|
const styles = [];
|
|
16728
16937
|
let i = 0;
|
|
@@ -16783,7 +16992,7 @@ function hyphenate2(value) {
|
|
|
16783
16992
|
}).toLowerCase();
|
|
16784
16993
|
}
|
|
16785
16994
|
|
|
16786
|
-
// bazel-out/
|
|
16995
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/naming.mjs
|
|
16787
16996
|
function nameFunctionsAndVariables(job) {
|
|
16788
16997
|
addNamesToView(job.root, job.componentName, { index: 0 }, job.compatibility === CompatibilityMode.TemplateDefinitionBuilder);
|
|
16789
16998
|
}
|
|
@@ -16898,7 +17107,7 @@ function stripImportant(name) {
|
|
|
16898
17107
|
return name;
|
|
16899
17108
|
}
|
|
16900
17109
|
|
|
16901
|
-
// bazel-out/
|
|
17110
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/next_context_merging.mjs
|
|
16902
17111
|
function mergeNextContextExpressions(job) {
|
|
16903
17112
|
for (const unit of job.units) {
|
|
16904
17113
|
for (const op of unit.create) {
|
|
@@ -16944,7 +17153,7 @@ function mergeNextContextsInOps(ops) {
|
|
|
16944
17153
|
}
|
|
16945
17154
|
}
|
|
16946
17155
|
|
|
16947
|
-
// bazel-out/
|
|
17156
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/ng_container.mjs
|
|
16948
17157
|
var CONTAINER_TAG = "ng-container";
|
|
16949
17158
|
function generateNgContainerOps(job) {
|
|
16950
17159
|
for (const unit of job.units) {
|
|
@@ -16961,7 +17170,7 @@ function generateNgContainerOps(job) {
|
|
|
16961
17170
|
}
|
|
16962
17171
|
}
|
|
16963
17172
|
|
|
16964
|
-
// bazel-out/
|
|
17173
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/nonbindable.mjs
|
|
16965
17174
|
function lookupElement3(elements, xref) {
|
|
16966
17175
|
const el = elements.get(xref);
|
|
16967
17176
|
if (el === void 0) {
|
|
@@ -16991,7 +17200,7 @@ function disableBindings(job) {
|
|
|
16991
17200
|
}
|
|
16992
17201
|
}
|
|
16993
17202
|
|
|
16994
|
-
// bazel-out/
|
|
17203
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/nullish_coalescing.mjs
|
|
16995
17204
|
function generateNullishCoalesceExpressions(job) {
|
|
16996
17205
|
for (const unit of job.units) {
|
|
16997
17206
|
for (const op of unit.ops()) {
|
|
@@ -17007,7 +17216,7 @@ function generateNullishCoalesceExpressions(job) {
|
|
|
17007
17216
|
}
|
|
17008
17217
|
}
|
|
17009
17218
|
|
|
17010
|
-
// bazel-out/
|
|
17219
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/ordering.mjs
|
|
17011
17220
|
function kindTest(kind) {
|
|
17012
17221
|
return (op) => op.kind === kind;
|
|
17013
17222
|
}
|
|
@@ -17081,7 +17290,7 @@ function keepLast(ops) {
|
|
|
17081
17290
|
return ops.slice(ops.length - 1);
|
|
17082
17291
|
}
|
|
17083
17292
|
|
|
17084
|
-
// bazel-out/
|
|
17293
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/parse_extracted_styles.mjs
|
|
17085
17294
|
function parseExtractedStyles(job) {
|
|
17086
17295
|
for (const unit of job.units) {
|
|
17087
17296
|
for (const op of unit.create) {
|
|
@@ -17104,7 +17313,7 @@ function parseExtractedStyles(job) {
|
|
|
17104
17313
|
}
|
|
17105
17314
|
}
|
|
17106
17315
|
|
|
17107
|
-
// bazel-out/
|
|
17316
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/phase_remove_content_selectors.mjs
|
|
17108
17317
|
function removeContentSelectors(job) {
|
|
17109
17318
|
for (const unit of job.units) {
|
|
17110
17319
|
const elements = createOpXrefMap(unit);
|
|
@@ -17128,7 +17337,7 @@ function lookupInXrefMap(map, xref) {
|
|
|
17128
17337
|
return el;
|
|
17129
17338
|
}
|
|
17130
17339
|
|
|
17131
|
-
// bazel-out/
|
|
17340
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pipe_creation.mjs
|
|
17132
17341
|
function createPipes(job) {
|
|
17133
17342
|
for (const unit of job.units) {
|
|
17134
17343
|
processPipeBindingsInView(unit);
|
|
@@ -17176,7 +17385,7 @@ function addPipeToCreationBlock(unit, afterTargetXref, binding) {
|
|
|
17176
17385
|
throw new Error(`AssertionError: unable to find insertion point for pipe ${binding.name}`);
|
|
17177
17386
|
}
|
|
17178
17387
|
|
|
17179
|
-
// bazel-out/
|
|
17388
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pipe_variadic.mjs
|
|
17180
17389
|
function createVariadicPipes(job) {
|
|
17181
17390
|
for (const unit of job.units) {
|
|
17182
17391
|
for (const op of unit.update) {
|
|
@@ -17193,7 +17402,7 @@ function createVariadicPipes(job) {
|
|
|
17193
17402
|
}
|
|
17194
17403
|
}
|
|
17195
17404
|
|
|
17196
|
-
// bazel-out/
|
|
17405
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/propagate_i18n_blocks.mjs
|
|
17197
17406
|
function propagateI18nBlocks(job) {
|
|
17198
17407
|
propagateI18nBlocksToTemplates(job.root, 0);
|
|
17199
17408
|
}
|
|
@@ -17230,50 +17439,7 @@ function wrapTemplateWithI18n(unit, parentI18n) {
|
|
|
17230
17439
|
}
|
|
17231
17440
|
}
|
|
17232
17441
|
|
|
17233
|
-
// bazel-out/
|
|
17234
|
-
function propogateI18nPlaceholders(job) {
|
|
17235
|
-
const i18nOps = /* @__PURE__ */ new Map();
|
|
17236
|
-
const extractedMessageOps = /* @__PURE__ */ new Map();
|
|
17237
|
-
for (const unit of job.units) {
|
|
17238
|
-
for (const op of unit.create) {
|
|
17239
|
-
switch (op.kind) {
|
|
17240
|
-
case OpKind.I18nStart:
|
|
17241
|
-
i18nOps.set(op.xref, op);
|
|
17242
|
-
break;
|
|
17243
|
-
case OpKind.ExtractedMessage:
|
|
17244
|
-
extractedMessageOps.set(op.owner, op);
|
|
17245
|
-
break;
|
|
17246
|
-
}
|
|
17247
|
-
}
|
|
17248
|
-
}
|
|
17249
|
-
for (const [xref, childExtractedMessageOp] of extractedMessageOps) {
|
|
17250
|
-
if (!childExtractedMessageOp.isRoot) {
|
|
17251
|
-
const i18nOp = i18nOps.get(xref);
|
|
17252
|
-
if (i18nOp === void 0) {
|
|
17253
|
-
throw Error("Could not find owner i18n block for extracted message.");
|
|
17254
|
-
}
|
|
17255
|
-
const rootExtractedMessageOp = extractedMessageOps.get(i18nOp.root);
|
|
17256
|
-
if (rootExtractedMessageOp === void 0) {
|
|
17257
|
-
throw Error("Could not find extracted message op for root i18n block.");
|
|
17258
|
-
}
|
|
17259
|
-
mergeParams(rootExtractedMessageOp.params, childExtractedMessageOp.params);
|
|
17260
|
-
mergeParams(rootExtractedMessageOp.postprocessingParams, childExtractedMessageOp.postprocessingParams);
|
|
17261
|
-
}
|
|
17262
|
-
}
|
|
17263
|
-
}
|
|
17264
|
-
function mergeParams(to, from) {
|
|
17265
|
-
for (const [placeholder, fromValues] of from) {
|
|
17266
|
-
const toValues = to.get(placeholder) || [];
|
|
17267
|
-
const flags = fromValues[0].flags;
|
|
17268
|
-
if (flags & I18nParamValueFlags.CloseTag && !(flags & I18nParamValueFlags.OpenTag)) {
|
|
17269
|
-
to.set(placeholder, [...fromValues, ...toValues]);
|
|
17270
|
-
} else {
|
|
17271
|
-
to.set(placeholder, [...toValues, ...fromValues]);
|
|
17272
|
-
}
|
|
17273
|
-
}
|
|
17274
|
-
}
|
|
17275
|
-
|
|
17276
|
-
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pure_function_extraction.mjs
|
|
17442
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pure_function_extraction.mjs
|
|
17277
17443
|
function extractPureFunctions(job) {
|
|
17278
17444
|
for (const view of job.units) {
|
|
17279
17445
|
for (const op of view.ops()) {
|
|
@@ -17315,7 +17481,7 @@ var PureFunctionConstant = class extends GenericKeyFn {
|
|
|
17315
17481
|
}
|
|
17316
17482
|
};
|
|
17317
17483
|
|
|
17318
|
-
// bazel-out/
|
|
17484
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pure_literal_structures.mjs
|
|
17319
17485
|
function generatePureLiteralStructures(job) {
|
|
17320
17486
|
for (const unit of job.units) {
|
|
17321
17487
|
for (const op of unit.update) {
|
|
@@ -17362,7 +17528,7 @@ function transformLiteralMap(expr) {
|
|
|
17362
17528
|
return new PureFunctionExpr(literalMap(derivedEntries), nonConstantArgs);
|
|
17363
17529
|
}
|
|
17364
17530
|
|
|
17365
|
-
// bazel-out/
|
|
17531
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/instruction.mjs
|
|
17366
17532
|
function element(slot, tag, constIndex, localRefIndex, sourceSpan) {
|
|
17367
17533
|
return elementOrContainerBase(Identifiers.element, slot, tag, constIndex, localRefIndex, sourceSpan);
|
|
17368
17534
|
}
|
|
@@ -17396,13 +17562,21 @@ function elementContainer(slot, constIndex, localRefIndex, sourceSpan) {
|
|
|
17396
17562
|
function elementContainerEnd() {
|
|
17397
17563
|
return call(Identifiers.elementContainerEnd, [], null);
|
|
17398
17564
|
}
|
|
17399
|
-
function template(slot, templateFnRef, decls, vars, tag, constIndex, sourceSpan) {
|
|
17400
|
-
const args = [
|
|
17401
|
-
|
|
17402
|
-
|
|
17403
|
-
|
|
17404
|
-
|
|
17405
|
-
|
|
17565
|
+
function template(slot, templateFnRef, decls, vars, tag, constIndex, localRefs, sourceSpan) {
|
|
17566
|
+
const args = [
|
|
17567
|
+
literal(slot),
|
|
17568
|
+
templateFnRef,
|
|
17569
|
+
literal(decls),
|
|
17570
|
+
literal(vars),
|
|
17571
|
+
literal(tag),
|
|
17572
|
+
literal(constIndex)
|
|
17573
|
+
];
|
|
17574
|
+
if (localRefs !== null) {
|
|
17575
|
+
args.push(literal(localRefs));
|
|
17576
|
+
args.push(importExpr(Identifiers.templateRefExtractor));
|
|
17577
|
+
}
|
|
17578
|
+
while (args[args.length - 1].isEquivalent(NULL_EXPR)) {
|
|
17579
|
+
args.pop();
|
|
17406
17580
|
}
|
|
17407
17581
|
return call(Identifiers.templateCreate, args, sourceSpan);
|
|
17408
17582
|
}
|
|
@@ -17476,7 +17650,7 @@ function defer(selfSlot, primarySlot, dependencyResolverFn, loadingSlot, placeho
|
|
|
17476
17650
|
const args = [
|
|
17477
17651
|
literal(selfSlot),
|
|
17478
17652
|
literal(primarySlot),
|
|
17479
|
-
literal(
|
|
17653
|
+
dependencyResolverFn != null ? dependencyResolverFn : literal(null),
|
|
17480
17654
|
literal(loadingSlot),
|
|
17481
17655
|
literal(placeholderSlot),
|
|
17482
17656
|
literal(errorSlot),
|
|
@@ -17556,6 +17730,9 @@ function repeaterCreate(slot, viewFnName, decls, vars, tag, constIndex, trackByF
|
|
|
17556
17730
|
function repeater(metadataSlot, collection, sourceSpan) {
|
|
17557
17731
|
return call(Identifiers.repeater, [literal(metadataSlot), collection], sourceSpan);
|
|
17558
17732
|
}
|
|
17733
|
+
function deferWhen(prefetch, expr, sourceSpan) {
|
|
17734
|
+
return call(prefetch ? Identifiers.deferPrefetchWhen : Identifiers.deferWhen, [expr], sourceSpan);
|
|
17735
|
+
}
|
|
17559
17736
|
function i18n(slot, constIndex, subTemplateIndex) {
|
|
17560
17737
|
const args = [literal(slot), literal(constIndex)];
|
|
17561
17738
|
if (subTemplateIndex) {
|
|
@@ -17862,7 +18039,7 @@ function callVariadicInstruction(config, baseArgs, interpolationArgs, extraArgs,
|
|
|
17862
18039
|
return createStatementOp(callVariadicInstructionExpr(config, baseArgs, interpolationArgs, extraArgs, sourceSpan).toStmt());
|
|
17863
18040
|
}
|
|
17864
18041
|
|
|
17865
|
-
// bazel-out/
|
|
18042
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/reify.mjs
|
|
17866
18043
|
var sanitizerIdentifierMap = /* @__PURE__ */ new Map([
|
|
17867
18044
|
[SanitizerFn.Html, Identifiers.sanitizeHtml],
|
|
17868
18045
|
[SanitizerFn.IframeAttribute, Identifiers.validateIframeAttribute],
|
|
@@ -17916,8 +18093,11 @@ function reifyCreateOperations(unit, ops) {
|
|
|
17916
18093
|
if (!(unit instanceof ViewCompilationUnit)) {
|
|
17917
18094
|
throw new Error(`AssertionError: must be compiling a component`);
|
|
17918
18095
|
}
|
|
18096
|
+
if (Array.isArray(op.localRefs)) {
|
|
18097
|
+
throw new Error(`AssertionError: local refs array should have been extracted into a constant`);
|
|
18098
|
+
}
|
|
17919
18099
|
const childView = unit.job.views.get(op.xref);
|
|
17920
|
-
OpList.replace(op, template(op.handle.slot, variable(childView.fnName), childView.decls, childView.vars, op.tag, op.attributes, op.sourceSpan));
|
|
18100
|
+
OpList.replace(op, template(op.handle.slot, variable(childView.fnName), childView.decls, childView.vars, op.tag, op.attributes, op.localRefs, op.sourceSpan));
|
|
17921
18101
|
break;
|
|
17922
18102
|
case OpKind.DisableBindings:
|
|
17923
18103
|
OpList.replace(op, disableBindings2());
|
|
@@ -17954,7 +18134,7 @@ function reifyCreateOperations(unit, ops) {
|
|
|
17954
18134
|
break;
|
|
17955
18135
|
case OpKind.Defer:
|
|
17956
18136
|
const timerScheduling = !!op.loadingMinimumTime || !!op.loadingAfterTime || !!op.placeholderMinimumTime;
|
|
17957
|
-
OpList.replace(op, defer(op.handle.slot, op.mainSlot.slot,
|
|
18137
|
+
OpList.replace(op, defer(op.handle.slot, op.mainSlot.slot, op.resolverFn, (_b2 = (_a2 = op.loadingSlot) == null ? void 0 : _a2.slot) != null ? _b2 : null, (_d2 = (_c2 = op.placeholderSlot) == null ? void 0 : _c2.slot) != null ? _d2 : null, (_f2 = (_e2 = op.errorSlot) == null ? void 0 : _e2.slot) != null ? _f2 : null, op.loadingConfig, op.placeholderConfig, timerScheduling, op.sourceSpan));
|
|
17958
18138
|
break;
|
|
17959
18139
|
case OpKind.DeferOn:
|
|
17960
18140
|
let args = [];
|
|
@@ -18067,7 +18247,7 @@ function reifyUpdateOperations(_unit, ops) {
|
|
|
18067
18247
|
OpList.replace(op, i18nExp(op.expression, op.sourceSpan));
|
|
18068
18248
|
break;
|
|
18069
18249
|
case OpKind.I18nApply:
|
|
18070
|
-
OpList.replace(op, i18nApply(op.
|
|
18250
|
+
OpList.replace(op, i18nApply(op.handle.slot, op.sourceSpan));
|
|
18071
18251
|
break;
|
|
18072
18252
|
case OpKind.InterpolateText:
|
|
18073
18253
|
OpList.replace(op, textInterpolate(op.interpolation.strings, op.interpolation.expressions, op.sourceSpan));
|
|
@@ -18108,6 +18288,9 @@ function reifyUpdateOperations(_unit, ops) {
|
|
|
18108
18288
|
case OpKind.Repeater:
|
|
18109
18289
|
OpList.replace(op, repeater(op.targetSlot.slot, op.collection, op.sourceSpan));
|
|
18110
18290
|
break;
|
|
18291
|
+
case OpKind.DeferWhen:
|
|
18292
|
+
OpList.replace(op, deferWhen(op.prefetch, op.expr, op.sourceSpan));
|
|
18293
|
+
break;
|
|
18111
18294
|
case OpKind.Statement:
|
|
18112
18295
|
break;
|
|
18113
18296
|
default:
|
|
@@ -18185,7 +18368,7 @@ function reifyListenerHandler(unit, name, handlerOps, consumesDollarEvent) {
|
|
|
18185
18368
|
return fn(params, handlerStmts, void 0, void 0, name);
|
|
18186
18369
|
}
|
|
18187
18370
|
|
|
18188
|
-
// bazel-out/
|
|
18371
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/remove_empty_bindings.mjs
|
|
18189
18372
|
function removeEmptyBindings(job) {
|
|
18190
18373
|
for (const unit of job.units) {
|
|
18191
18374
|
for (const op of unit.update) {
|
|
@@ -18206,7 +18389,23 @@ function removeEmptyBindings(job) {
|
|
|
18206
18389
|
}
|
|
18207
18390
|
}
|
|
18208
18391
|
|
|
18209
|
-
// bazel-out/
|
|
18392
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/remove_i18n_contexts.mjs
|
|
18393
|
+
function removeI18nContexts(job) {
|
|
18394
|
+
for (const unit of job.units) {
|
|
18395
|
+
for (const op of unit.create) {
|
|
18396
|
+
switch (op.kind) {
|
|
18397
|
+
case OpKind.I18nContext:
|
|
18398
|
+
OpList.remove(op);
|
|
18399
|
+
break;
|
|
18400
|
+
case OpKind.I18nStart:
|
|
18401
|
+
op.context = null;
|
|
18402
|
+
break;
|
|
18403
|
+
}
|
|
18404
|
+
}
|
|
18405
|
+
}
|
|
18406
|
+
}
|
|
18407
|
+
|
|
18408
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/repeater_derived_vars.mjs
|
|
18210
18409
|
function generateRepeaterDerivedVars(job) {
|
|
18211
18410
|
const repeaters = /* @__PURE__ */ new Map();
|
|
18212
18411
|
for (const unit of job.units) {
|
|
@@ -18238,7 +18437,7 @@ function generateRepeaterDerivedVars(job) {
|
|
|
18238
18437
|
}
|
|
18239
18438
|
}
|
|
18240
18439
|
|
|
18241
|
-
// bazel-out/
|
|
18440
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_contexts.mjs
|
|
18242
18441
|
function resolveContexts(job) {
|
|
18243
18442
|
for (const unit of job.units) {
|
|
18244
18443
|
processLexicalScope(unit, unit.create);
|
|
@@ -18279,7 +18478,7 @@ function processLexicalScope(view, ops) {
|
|
|
18279
18478
|
}
|
|
18280
18479
|
}
|
|
18281
18480
|
|
|
18282
|
-
// bazel-out/
|
|
18481
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_dollar_event.mjs
|
|
18283
18482
|
function resolveDollarEvent(job) {
|
|
18284
18483
|
for (const unit of job.units) {
|
|
18285
18484
|
transformDollarEvent(unit, unit.create);
|
|
@@ -18300,15 +18499,15 @@ function transformDollarEvent(unit, ops) {
|
|
|
18300
18499
|
}
|
|
18301
18500
|
}
|
|
18302
18501
|
|
|
18303
|
-
// bazel-out/
|
|
18502
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_i18n_element_placeholders.mjs
|
|
18304
18503
|
function resolveI18nElementPlaceholders(job) {
|
|
18305
|
-
const
|
|
18504
|
+
const i18nContexts = /* @__PURE__ */ new Map();
|
|
18306
18505
|
const elements = /* @__PURE__ */ new Map();
|
|
18307
18506
|
for (const unit of job.units) {
|
|
18308
18507
|
for (const op of unit.create) {
|
|
18309
18508
|
switch (op.kind) {
|
|
18310
|
-
case OpKind.
|
|
18311
|
-
|
|
18509
|
+
case OpKind.I18nContext:
|
|
18510
|
+
i18nContexts.set(op.xref, op);
|
|
18312
18511
|
break;
|
|
18313
18512
|
case OpKind.ElementStart:
|
|
18314
18513
|
elements.set(op.xref, op);
|
|
@@ -18321,10 +18520,10 @@ function resolveI18nElementPlaceholders(job) {
|
|
|
18321
18520
|
for (const op of unit.create) {
|
|
18322
18521
|
switch (op.kind) {
|
|
18323
18522
|
case OpKind.I18nStart:
|
|
18324
|
-
if (!
|
|
18325
|
-
throw Error("Could not find
|
|
18523
|
+
if (!op.context) {
|
|
18524
|
+
throw Error("Could not find i18n context for i18n op");
|
|
18326
18525
|
}
|
|
18327
|
-
currentOps = {
|
|
18526
|
+
currentOps = { i18nBlock: op, i18nContext: i18nContexts.get(op.context) };
|
|
18328
18527
|
break;
|
|
18329
18528
|
case OpKind.I18nEnd:
|
|
18330
18529
|
currentOps = null;
|
|
@@ -18339,7 +18538,7 @@ function resolveI18nElementPlaceholders(job) {
|
|
|
18339
18538
|
if (closeName === "") {
|
|
18340
18539
|
flags |= I18nParamValueFlags.CloseTag;
|
|
18341
18540
|
}
|
|
18342
|
-
addParam(currentOps.
|
|
18541
|
+
addParam(currentOps.i18nContext.params, startName, op.handle.slot, currentOps.i18nBlock.subTemplateIndex, flags);
|
|
18343
18542
|
}
|
|
18344
18543
|
break;
|
|
18345
18544
|
case OpKind.ElementEnd:
|
|
@@ -18350,7 +18549,7 @@ function resolveI18nElementPlaceholders(job) {
|
|
|
18350
18549
|
}
|
|
18351
18550
|
const { closeName } = startOp.i18nPlaceholder;
|
|
18352
18551
|
if (closeName !== "") {
|
|
18353
|
-
addParam(currentOps.
|
|
18552
|
+
addParam(currentOps.i18nContext.params, closeName, startOp.handle.slot, currentOps.i18nBlock.subTemplateIndex, I18nParamValueFlags.ElementTag | I18nParamValueFlags.CloseTag);
|
|
18354
18553
|
}
|
|
18355
18554
|
}
|
|
18356
18555
|
break;
|
|
@@ -18359,9 +18558,9 @@ function resolveI18nElementPlaceholders(job) {
|
|
|
18359
18558
|
if (currentOps === null) {
|
|
18360
18559
|
throw Error("i18n tag placeholder should only occur inside an i18n block");
|
|
18361
18560
|
}
|
|
18362
|
-
const subTemplateIndex = getSubTemplateIndexForTemplateTag(job, currentOps.
|
|
18363
|
-
addParam(currentOps.
|
|
18364
|
-
addParam(currentOps.
|
|
18561
|
+
const subTemplateIndex = getSubTemplateIndexForTemplateTag(job, currentOps.i18nBlock, op);
|
|
18562
|
+
addParam(currentOps.i18nContext.params, op.i18nPlaceholder.startName, op.handle.slot, subTemplateIndex, I18nParamValueFlags.TemplateTag);
|
|
18563
|
+
addParam(currentOps.i18nContext.params, op.i18nPlaceholder.closeName, op.handle.slot, subTemplateIndex, I18nParamValueFlags.TemplateTag | I18nParamValueFlags.CloseTag);
|
|
18365
18564
|
}
|
|
18366
18565
|
break;
|
|
18367
18566
|
}
|
|
@@ -18383,18 +18582,18 @@ function addParam(params, placeholder, value, subTemplateIndex, flags = I18nPara
|
|
|
18383
18582
|
params.set(placeholder, values);
|
|
18384
18583
|
}
|
|
18385
18584
|
|
|
18386
|
-
// bazel-out/
|
|
18585
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_i18n_expression_placeholders.mjs
|
|
18387
18586
|
function resolveI18nExpressionPlaceholders(job) {
|
|
18388
|
-
const
|
|
18389
|
-
const
|
|
18587
|
+
const subTemplateIndicies = /* @__PURE__ */ new Map();
|
|
18588
|
+
const i18nContexts = /* @__PURE__ */ new Map();
|
|
18390
18589
|
for (const unit of job.units) {
|
|
18391
18590
|
for (const op of unit.create) {
|
|
18392
18591
|
switch (op.kind) {
|
|
18393
18592
|
case OpKind.I18nStart:
|
|
18394
|
-
|
|
18593
|
+
subTemplateIndicies.set(op.xref, op.subTemplateIndex);
|
|
18395
18594
|
break;
|
|
18396
|
-
case OpKind.
|
|
18397
|
-
|
|
18595
|
+
case OpKind.I18nContext:
|
|
18596
|
+
i18nContexts.set(op.xref, op);
|
|
18398
18597
|
break;
|
|
18399
18598
|
}
|
|
18400
18599
|
}
|
|
@@ -18403,30 +18602,20 @@ function resolveI18nExpressionPlaceholders(job) {
|
|
|
18403
18602
|
for (const unit of job.units) {
|
|
18404
18603
|
for (const op of unit.update) {
|
|
18405
18604
|
if (op.kind === OpKind.I18nExpression) {
|
|
18406
|
-
const
|
|
18407
|
-
|
|
18408
|
-
|
|
18409
|
-
|
|
18410
|
-
}
|
|
18411
|
-
const extractedMessageOp = extractedMessageOps.get(i18nOp.xref);
|
|
18412
|
-
if (!extractedMessageOp) {
|
|
18413
|
-
throw Error("Cannot find extracted message for i18n block");
|
|
18414
|
-
}
|
|
18415
|
-
const params = op.resolutionTime === I18nParamResolutionTime.Creation ? extractedMessageOp.params : extractedMessageOp.postprocessingParams;
|
|
18605
|
+
const index = expressionIndices.get(op.context) || 0;
|
|
18606
|
+
const i18nContext = i18nContexts.get(op.context);
|
|
18607
|
+
const subTemplateIndex = subTemplateIndicies.get(i18nContext.i18nBlock);
|
|
18608
|
+
const params = op.resolutionTime === I18nParamResolutionTime.Creation ? i18nContext.params : i18nContext.postprocessingParams;
|
|
18416
18609
|
const values = params.get(op.i18nPlaceholder) || [];
|
|
18417
|
-
values.push({
|
|
18418
|
-
value: index,
|
|
18419
|
-
subTemplateIndex: i18nOp.subTemplateIndex,
|
|
18420
|
-
flags: I18nParamValueFlags.None
|
|
18421
|
-
});
|
|
18610
|
+
values.push({ value: index, subTemplateIndex, flags: I18nParamValueFlags.None });
|
|
18422
18611
|
params.set(op.i18nPlaceholder, values);
|
|
18423
|
-
expressionIndices.set(op.
|
|
18612
|
+
expressionIndices.set(op.context, index + 1);
|
|
18424
18613
|
}
|
|
18425
18614
|
}
|
|
18426
18615
|
}
|
|
18427
18616
|
}
|
|
18428
18617
|
|
|
18429
|
-
// bazel-out/
|
|
18618
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_names.mjs
|
|
18430
18619
|
function resolveNames(job) {
|
|
18431
18620
|
for (const unit of job.units) {
|
|
18432
18621
|
processLexicalScope2(unit, unit.create, null);
|
|
@@ -18490,7 +18679,7 @@ function processLexicalScope2(unit, ops, savedView) {
|
|
|
18490
18679
|
}
|
|
18491
18680
|
}
|
|
18492
18681
|
|
|
18493
|
-
// bazel-out/
|
|
18682
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_sanitizers.mjs
|
|
18494
18683
|
var sanitizers = /* @__PURE__ */ new Map([
|
|
18495
18684
|
[SecurityContext.HTML, SanitizerFn.Html],
|
|
18496
18685
|
[SecurityContext.SCRIPT, SanitizerFn.Script],
|
|
@@ -18527,7 +18716,7 @@ function isIframeElement(op) {
|
|
|
18527
18716
|
return op.kind === OpKind.ElementStart && ((_a2 = op.tag) == null ? void 0 : _a2.toLowerCase()) === "iframe";
|
|
18528
18717
|
}
|
|
18529
18718
|
|
|
18530
|
-
// bazel-out/
|
|
18719
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/save_restore_view.mjs
|
|
18531
18720
|
function saveAndRestoreView(job) {
|
|
18532
18721
|
for (const unit of job.units) {
|
|
18533
18722
|
unit.create.prepend([
|
|
@@ -18572,7 +18761,7 @@ function addSaveRestoreViewOperationToListener(unit, op) {
|
|
|
18572
18761
|
}
|
|
18573
18762
|
}
|
|
18574
18763
|
|
|
18575
|
-
// bazel-out/
|
|
18764
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/slot_allocation.mjs
|
|
18576
18765
|
function allocateSlots(job) {
|
|
18577
18766
|
const slotMap = /* @__PURE__ */ new Map();
|
|
18578
18767
|
for (const unit of job.units) {
|
|
@@ -18597,7 +18786,7 @@ function allocateSlots(job) {
|
|
|
18597
18786
|
}
|
|
18598
18787
|
}
|
|
18599
18788
|
|
|
18600
|
-
// bazel-out/
|
|
18789
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/style_binding_specialization.mjs
|
|
18601
18790
|
function specializeStyleBindings(job) {
|
|
18602
18791
|
for (const unit of job.units) {
|
|
18603
18792
|
for (const op of unit.update) {
|
|
@@ -18627,7 +18816,7 @@ function specializeStyleBindings(job) {
|
|
|
18627
18816
|
}
|
|
18628
18817
|
}
|
|
18629
18818
|
|
|
18630
|
-
// bazel-out/
|
|
18819
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/temporary_variables.mjs
|
|
18631
18820
|
function generateTemporaryVariables(job) {
|
|
18632
18821
|
for (const unit of job.units) {
|
|
18633
18822
|
unit.create.prepend(generateTemporaries(unit.create));
|
|
@@ -18685,7 +18874,7 @@ function assignName(names, expr) {
|
|
|
18685
18874
|
expr.name = name;
|
|
18686
18875
|
}
|
|
18687
18876
|
|
|
18688
|
-
// bazel-out/
|
|
18877
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_fn_generation.mjs
|
|
18689
18878
|
function generateTrackFns(job) {
|
|
18690
18879
|
for (const unit of job.units) {
|
|
18691
18880
|
for (const op of unit.create) {
|
|
@@ -18715,7 +18904,7 @@ function generateTrackFns(job) {
|
|
|
18715
18904
|
}
|
|
18716
18905
|
}
|
|
18717
18906
|
|
|
18718
|
-
// bazel-out/
|
|
18907
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_fn_optimization.mjs
|
|
18719
18908
|
function optimizeTrackFns(job) {
|
|
18720
18909
|
for (const unit of job.units) {
|
|
18721
18910
|
for (const op of unit.create) {
|
|
@@ -18762,7 +18951,7 @@ function isTrackByFunctionCall(rootView, expr) {
|
|
|
18762
18951
|
return true;
|
|
18763
18952
|
}
|
|
18764
18953
|
|
|
18765
|
-
// bazel-out/
|
|
18954
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_variables.mjs
|
|
18766
18955
|
function generateTrackVariables(job) {
|
|
18767
18956
|
for (const unit of job.units) {
|
|
18768
18957
|
for (const op of unit.create) {
|
|
@@ -18783,7 +18972,7 @@ function generateTrackVariables(job) {
|
|
|
18783
18972
|
}
|
|
18784
18973
|
}
|
|
18785
18974
|
|
|
18786
|
-
// bazel-out/
|
|
18975
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/var_counting.mjs
|
|
18787
18976
|
function countVariables(job) {
|
|
18788
18977
|
for (const unit of job.units) {
|
|
18789
18978
|
let varCount = 0;
|
|
@@ -18888,7 +19077,7 @@ function isSingletonInterpolation(expr) {
|
|
|
18888
19077
|
return true;
|
|
18889
19078
|
}
|
|
18890
19079
|
|
|
18891
|
-
// bazel-out/
|
|
19080
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/variable_optimization.mjs
|
|
18892
19081
|
function optimizeVariables(job) {
|
|
18893
19082
|
for (const unit of job.units) {
|
|
18894
19083
|
inlineAlwaysInlineVariables(unit.create);
|
|
@@ -19138,7 +19327,7 @@ function allowConservativeInlining(decl, target) {
|
|
|
19138
19327
|
}
|
|
19139
19328
|
}
|
|
19140
19329
|
|
|
19141
|
-
// bazel-out/
|
|
19330
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/wrap_icus.mjs
|
|
19142
19331
|
function wrapI18nIcus(job) {
|
|
19143
19332
|
for (const unit of job.units) {
|
|
19144
19333
|
let currentI18nOp = null;
|
|
@@ -19162,7 +19351,7 @@ function wrapI18nIcus(job) {
|
|
|
19162
19351
|
}
|
|
19163
19352
|
}
|
|
19164
19353
|
|
|
19165
|
-
// bazel-out/
|
|
19354
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/emit.mjs
|
|
19166
19355
|
var phases = [
|
|
19167
19356
|
{ kind: CompilationJobKind.Tmpl, fn: removeContentSelectors },
|
|
19168
19357
|
{ kind: CompilationJobKind.Host, fn: parseHostStyleProperties },
|
|
@@ -19171,6 +19360,7 @@ var phases = [
|
|
|
19171
19360
|
{ kind: CompilationJobKind.Both, fn: specializeBindings },
|
|
19172
19361
|
{ kind: CompilationJobKind.Tmpl, fn: propagateI18nBlocks },
|
|
19173
19362
|
{ kind: CompilationJobKind.Tmpl, fn: wrapI18nIcus },
|
|
19363
|
+
{ kind: CompilationJobKind.Tmpl, fn: createI18nContexts },
|
|
19174
19364
|
{ kind: CompilationJobKind.Both, fn: extractAttributes },
|
|
19175
19365
|
{ kind: CompilationJobKind.Both, fn: parseExtractedStyles },
|
|
19176
19366
|
{ kind: CompilationJobKind.Tmpl, fn: removeEmptyBindings },
|
|
@@ -19180,7 +19370,7 @@ var phases = [
|
|
|
19180
19370
|
{ kind: CompilationJobKind.Tmpl, fn: createPipes },
|
|
19181
19371
|
{ kind: CompilationJobKind.Tmpl, fn: configureDeferInstructions },
|
|
19182
19372
|
{ kind: CompilationJobKind.Tmpl, fn: extractI18nText },
|
|
19183
|
-
{ kind: CompilationJobKind.Tmpl, fn:
|
|
19373
|
+
{ kind: CompilationJobKind.Tmpl, fn: createI18nIcuExpressions },
|
|
19184
19374
|
{ kind: CompilationJobKind.Tmpl, fn: applyI18nExpressions },
|
|
19185
19375
|
{ kind: CompilationJobKind.Tmpl, fn: createVariadicPipes },
|
|
19186
19376
|
{ kind: CompilationJobKind.Both, fn: generatePureLiteralStructures },
|
|
@@ -19201,16 +19391,17 @@ var phases = [
|
|
|
19201
19391
|
{ kind: CompilationJobKind.Both, fn: expandSafeReads },
|
|
19202
19392
|
{ kind: CompilationJobKind.Both, fn: generateTemporaryVariables },
|
|
19203
19393
|
{ kind: CompilationJobKind.Tmpl, fn: allocateSlots },
|
|
19204
|
-
{ kind: CompilationJobKind.Tmpl, fn:
|
|
19394
|
+
{ kind: CompilationJobKind.Tmpl, fn: createDeferDepsFns },
|
|
19205
19395
|
{ kind: CompilationJobKind.Tmpl, fn: resolveI18nElementPlaceholders },
|
|
19206
19396
|
{ kind: CompilationJobKind.Tmpl, fn: resolveI18nExpressionPlaceholders },
|
|
19207
|
-
{ kind: CompilationJobKind.Tmpl, fn:
|
|
19208
|
-
{ kind: CompilationJobKind.Tmpl, fn:
|
|
19397
|
+
{ kind: CompilationJobKind.Tmpl, fn: mergeI18nContexts },
|
|
19398
|
+
{ kind: CompilationJobKind.Tmpl, fn: extractI18nMessages },
|
|
19209
19399
|
{ kind: CompilationJobKind.Tmpl, fn: generateTrackFns },
|
|
19210
19400
|
{ kind: CompilationJobKind.Tmpl, fn: collectI18nConsts },
|
|
19211
19401
|
{ kind: CompilationJobKind.Tmpl, fn: collectConstExpressions },
|
|
19212
19402
|
{ kind: CompilationJobKind.Both, fn: collectElementConsts },
|
|
19213
19403
|
{ kind: CompilationJobKind.Tmpl, fn: assignI18nSlotDependencies },
|
|
19404
|
+
{ kind: CompilationJobKind.Tmpl, fn: removeI18nContexts },
|
|
19214
19405
|
{ kind: CompilationJobKind.Both, fn: countVariables },
|
|
19215
19406
|
{ kind: CompilationJobKind.Tmpl, fn: generateAdvance },
|
|
19216
19407
|
{ kind: CompilationJobKind.Both, fn: optimizeVariables },
|
|
@@ -19325,10 +19516,10 @@ function emitHostBindingFunction(job) {
|
|
|
19325
19516
|
);
|
|
19326
19517
|
}
|
|
19327
19518
|
|
|
19328
|
-
// bazel-out/
|
|
19519
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/ingest.mjs
|
|
19329
19520
|
var compatibilityMode = CompatibilityMode.TemplateDefinitionBuilder;
|
|
19330
|
-
function ingestComponent(componentName, template2, constantPool, relativeContextFilePath, i18nUseExternalIds) {
|
|
19331
|
-
const job = new ComponentCompilationJob(componentName, constantPool, compatibilityMode, relativeContextFilePath, i18nUseExternalIds);
|
|
19521
|
+
function ingestComponent(componentName, template2, constantPool, relativeContextFilePath, i18nUseExternalIds, deferBlocksMeta) {
|
|
19522
|
+
const job = new ComponentCompilationJob(componentName, constantPool, compatibilityMode, relativeContextFilePath, i18nUseExternalIds, deferBlocksMeta);
|
|
19332
19523
|
ingestNodes(job.root, template2);
|
|
19333
19524
|
return job;
|
|
19334
19525
|
}
|
|
@@ -19411,6 +19602,7 @@ function ingestNodes(unit, template2) {
|
|
|
19411
19602
|
}
|
|
19412
19603
|
}
|
|
19413
19604
|
function ingestElement(unit, element2) {
|
|
19605
|
+
var _a2;
|
|
19414
19606
|
if (element2.i18n !== void 0 && !(element2.i18n instanceof Message || element2.i18n instanceof TagPlaceholder)) {
|
|
19415
19607
|
throw Error(`Unhandled i18n metadata type for element: ${element2.i18n.constructor.name}`);
|
|
19416
19608
|
}
|
|
@@ -19421,7 +19613,7 @@ function ingestElement(unit, element2) {
|
|
|
19421
19613
|
ingestBindings(unit, startOp, element2);
|
|
19422
19614
|
ingestReferences(startOp, element2);
|
|
19423
19615
|
ingestNodes(unit, element2.children);
|
|
19424
|
-
const endOp = createElementEndOp(id, element2.endSourceSpan);
|
|
19616
|
+
const endOp = createElementEndOp(id, (_a2 = element2.endSourceSpan) != null ? _a2 : element2.startSourceSpan);
|
|
19425
19617
|
unit.create.push(endOp);
|
|
19426
19618
|
if (element2.i18n instanceof Message) {
|
|
19427
19619
|
const i18nBlockId = unit.job.allocateXrefId();
|
|
@@ -19544,12 +19736,16 @@ function ingestDeferView(unit, suffix, children, sourceSpan) {
|
|
|
19544
19736
|
}
|
|
19545
19737
|
function ingestDeferBlock(unit, deferBlock) {
|
|
19546
19738
|
var _a2, _b2, _c2, _d2, _e2, _f2, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
|
|
19739
|
+
const blockMeta = unit.job.deferBlocksMeta.get(deferBlock);
|
|
19740
|
+
if (blockMeta === void 0) {
|
|
19741
|
+
throw new Error(`AssertionError: unable to find metadata for deferred block`);
|
|
19742
|
+
}
|
|
19547
19743
|
const main = ingestDeferView(unit, "", deferBlock.children, deferBlock.sourceSpan);
|
|
19548
19744
|
const loading = ingestDeferView(unit, "Loading", (_a2 = deferBlock.loading) == null ? void 0 : _a2.children, (_b2 = deferBlock.loading) == null ? void 0 : _b2.sourceSpan);
|
|
19549
19745
|
const placeholder = ingestDeferView(unit, "Placeholder", (_c2 = deferBlock.placeholder) == null ? void 0 : _c2.children, (_d2 = deferBlock.placeholder) == null ? void 0 : _d2.sourceSpan);
|
|
19550
19746
|
const error2 = ingestDeferView(unit, "Error", (_e2 = deferBlock.error) == null ? void 0 : _e2.children, (_f2 = deferBlock.error) == null ? void 0 : _f2.sourceSpan);
|
|
19551
19747
|
const deferXref = unit.job.allocateXrefId();
|
|
19552
|
-
const deferOp = createDeferOp(deferXref, main.xref, main.handle, deferBlock.sourceSpan);
|
|
19748
|
+
const deferOp = createDeferOp(deferXref, main.xref, main.handle, blockMeta, deferBlock.sourceSpan);
|
|
19553
19749
|
deferOp.placeholderView = (_g = placeholder == null ? void 0 : placeholder.xref) != null ? _g : null;
|
|
19554
19750
|
deferOp.placeholderSlot = (_h = placeholder == null ? void 0 : placeholder.handle) != null ? _h : null;
|
|
19555
19751
|
deferOp.loadingSlot = (_i = loading == null ? void 0 : loading.handle) != null ? _i : null;
|
|
@@ -19560,17 +19756,18 @@ function ingestDeferBlock(unit, deferBlock) {
|
|
|
19560
19756
|
unit.create.push(deferOp);
|
|
19561
19757
|
let prefetch = false;
|
|
19562
19758
|
let deferOnOps = [];
|
|
19759
|
+
let deferWhenOps = [];
|
|
19563
19760
|
for (const triggers of [deferBlock.triggers, deferBlock.prefetchTriggers]) {
|
|
19564
19761
|
if (triggers.idle !== void 0) {
|
|
19565
|
-
const deferOnOp = createDeferOnOp(deferXref, { kind: DeferTriggerKind.Idle }, prefetch,
|
|
19762
|
+
const deferOnOp = createDeferOnOp(deferXref, { kind: DeferTriggerKind.Idle }, prefetch, triggers.idle.sourceSpan);
|
|
19566
19763
|
deferOnOps.push(deferOnOp);
|
|
19567
19764
|
}
|
|
19568
19765
|
if (triggers.immediate !== void 0) {
|
|
19569
|
-
const deferOnOp = createDeferOnOp(deferXref, { kind: DeferTriggerKind.Immediate }, prefetch,
|
|
19766
|
+
const deferOnOp = createDeferOnOp(deferXref, { kind: DeferTriggerKind.Immediate }, prefetch, triggers.immediate.sourceSpan);
|
|
19570
19767
|
deferOnOps.push(deferOnOp);
|
|
19571
19768
|
}
|
|
19572
19769
|
if (triggers.timer !== void 0) {
|
|
19573
|
-
const deferOnOp = createDeferOnOp(deferXref, { kind: DeferTriggerKind.Timer, delay: triggers.timer.delay }, prefetch,
|
|
19770
|
+
const deferOnOp = createDeferOnOp(deferXref, { kind: DeferTriggerKind.Timer, delay: triggers.timer.delay }, prefetch, triggers.timer.sourceSpan);
|
|
19574
19771
|
deferOnOps.push(deferOnOp);
|
|
19575
19772
|
}
|
|
19576
19773
|
if (triggers.hover !== void 0) {
|
|
@@ -19581,7 +19778,7 @@ function ingestDeferBlock(unit, deferBlock) {
|
|
|
19581
19778
|
targetSlot: null,
|
|
19582
19779
|
targetView: null,
|
|
19583
19780
|
targetSlotViewSteps: null
|
|
19584
|
-
}, prefetch,
|
|
19781
|
+
}, prefetch, triggers.hover.sourceSpan);
|
|
19585
19782
|
deferOnOps.push(deferOnOp);
|
|
19586
19783
|
}
|
|
19587
19784
|
if (triggers.interaction !== void 0) {
|
|
@@ -19592,7 +19789,7 @@ function ingestDeferBlock(unit, deferBlock) {
|
|
|
19592
19789
|
targetSlot: null,
|
|
19593
19790
|
targetView: null,
|
|
19594
19791
|
targetSlotViewSteps: null
|
|
19595
|
-
}, prefetch,
|
|
19792
|
+
}, prefetch, triggers.interaction.sourceSpan);
|
|
19596
19793
|
deferOnOps.push(deferOnOp);
|
|
19597
19794
|
}
|
|
19598
19795
|
if (triggers.viewport !== void 0) {
|
|
@@ -19603,21 +19800,26 @@ function ingestDeferBlock(unit, deferBlock) {
|
|
|
19603
19800
|
targetSlot: null,
|
|
19604
19801
|
targetView: null,
|
|
19605
19802
|
targetSlotViewSteps: null
|
|
19606
|
-
}, prefetch,
|
|
19803
|
+
}, prefetch, triggers.viewport.sourceSpan);
|
|
19607
19804
|
deferOnOps.push(deferOnOp);
|
|
19608
19805
|
}
|
|
19609
|
-
if (
|
|
19806
|
+
if (triggers.when !== void 0) {
|
|
19807
|
+
const deferOnOp = createDeferWhenOp(deferXref, convertAst(triggers.when.value, unit.job, triggers.when.sourceSpan), prefetch, triggers.when.sourceSpan);
|
|
19808
|
+
deferWhenOps.push(deferOnOp);
|
|
19809
|
+
}
|
|
19810
|
+
if (deferOnOps.length === 0 && deferWhenOps.length === 0) {
|
|
19610
19811
|
deferOnOps.push(createDeferOnOp(deferXref, { kind: DeferTriggerKind.Idle }, false, null));
|
|
19611
19812
|
}
|
|
19612
19813
|
prefetch = true;
|
|
19613
19814
|
}
|
|
19614
19815
|
unit.create.push(deferOnOps);
|
|
19816
|
+
unit.update.push(deferWhenOps);
|
|
19615
19817
|
}
|
|
19616
19818
|
function ingestIcu(unit, icu) {
|
|
19617
19819
|
var _a2;
|
|
19618
|
-
if (icu.i18n instanceof Message) {
|
|
19820
|
+
if (icu.i18n instanceof Message && isSingleI18nIcu(icu.i18n)) {
|
|
19619
19821
|
const xref = unit.job.allocateXrefId();
|
|
19620
|
-
unit.create.push(createIcuOp(xref, icu.i18n, null));
|
|
19822
|
+
unit.create.push(createIcuOp(xref, icu.i18n, icu.i18n.nodes[0], icuFromI18nMessage(icu.i18n).name, null));
|
|
19621
19823
|
unit.update.push(createIcuUpdateOp(xref, null));
|
|
19622
19824
|
} else {
|
|
19623
19825
|
throw Error(`Unhandled i18n metadata type for ICU: ${(_a2 = icu.i18n) == null ? void 0 : _a2.constructor.name}`);
|
|
@@ -19675,6 +19877,15 @@ function convertAst(ast, job, baseSourceSpan) {
|
|
|
19675
19877
|
return new ReadPropExpr(convertAst(ast.receiver, job, baseSourceSpan), ast.name, null, convertSourceSpan(ast.span, baseSourceSpan));
|
|
19676
19878
|
}
|
|
19677
19879
|
} else if (ast instanceof PropertyWrite) {
|
|
19880
|
+
if (ast.receiver instanceof ImplicitReceiver) {
|
|
19881
|
+
return new WritePropExpr(
|
|
19882
|
+
new ContextExpr(job.root.xref),
|
|
19883
|
+
ast.name,
|
|
19884
|
+
convertAst(ast.value, job, baseSourceSpan),
|
|
19885
|
+
null,
|
|
19886
|
+
convertSourceSpan(ast.span, baseSourceSpan)
|
|
19887
|
+
);
|
|
19888
|
+
}
|
|
19678
19889
|
return new WritePropExpr(convertAst(ast.receiver, job, baseSourceSpan), ast.name, convertAst(ast.value, job, baseSourceSpan), void 0, convertSourceSpan(ast.span, baseSourceSpan));
|
|
19679
19890
|
} else if (ast instanceof KeyedWrite) {
|
|
19680
19891
|
return new WriteKeyExpr(convertAst(ast.receiver, job, baseSourceSpan), convertAst(ast.key, job, baseSourceSpan), convertAst(ast.value, job, baseSourceSpan), void 0, convertSourceSpan(ast.span, baseSourceSpan));
|
|
@@ -19724,7 +19935,7 @@ function convertAst(ast, job, baseSourceSpan) {
|
|
|
19724
19935
|
} else if (ast instanceof EmptyExpr) {
|
|
19725
19936
|
return new EmptyExpr2(convertSourceSpan(ast.span, baseSourceSpan));
|
|
19726
19937
|
} else {
|
|
19727
|
-
throw new Error(`Unhandled expression type
|
|
19938
|
+
throw new Error(`Unhandled expression type "${ast.constructor.name}" in file "${baseSourceSpan == null ? void 0 : baseSourceSpan.start.file.url}"`);
|
|
19728
19939
|
}
|
|
19729
19940
|
}
|
|
19730
19941
|
function isPlainTemplate(tmpl) {
|
|
@@ -19862,15 +20073,16 @@ function ingestControlFlowInsertionPoint(unit, xref, node) {
|
|
|
19862
20073
|
for (const attr of root.attributes) {
|
|
19863
20074
|
ingestBinding(unit, xref, attr.name, literal(attr.value), 1, null, SecurityContext.NONE, attr.sourceSpan, BindingFlags.TextValue);
|
|
19864
20075
|
}
|
|
19865
|
-
|
|
20076
|
+
const tagName = root instanceof Element ? root.name : root.tagName;
|
|
20077
|
+
return tagName === "ng-template" ? null : tagName;
|
|
19866
20078
|
}
|
|
19867
20079
|
return null;
|
|
19868
20080
|
}
|
|
19869
20081
|
|
|
19870
|
-
// bazel-out/
|
|
20082
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/switch/index.mjs
|
|
19871
20083
|
var USE_TEMPLATE_PIPELINE = false;
|
|
19872
20084
|
|
|
19873
|
-
// bazel-out/
|
|
20085
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/styling_builder.mjs
|
|
19874
20086
|
var IMPORTANT_FLAG = "!important";
|
|
19875
20087
|
var MIN_STYLING_BINDING_SLOTS_REQUIRED = 2;
|
|
19876
20088
|
var StylingBuilder = class {
|
|
@@ -20203,7 +20415,7 @@ function isEmptyExpression(ast) {
|
|
|
20203
20415
|
return ast instanceof EmptyExpr;
|
|
20204
20416
|
}
|
|
20205
20417
|
|
|
20206
|
-
// bazel-out/
|
|
20418
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/html_parser.mjs
|
|
20207
20419
|
var HtmlParser = class extends Parser2 {
|
|
20208
20420
|
constructor() {
|
|
20209
20421
|
super(getHtmlTagDefinition);
|
|
@@ -20213,7 +20425,7 @@ var HtmlParser = class extends Parser2 {
|
|
|
20213
20425
|
}
|
|
20214
20426
|
};
|
|
20215
20427
|
|
|
20216
|
-
// bazel-out/
|
|
20428
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/html_whitespaces.mjs
|
|
20217
20429
|
var PRESERVE_WS_ATTR_NAME = "ngPreserveWhitespaces";
|
|
20218
20430
|
var SKIP_WS_TRIM_TAGS = /* @__PURE__ */ new Set(["pre", "template", "textarea", "script", "style"]);
|
|
20219
20431
|
var WS_CHARS = " \f\n\r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF";
|
|
@@ -20279,7 +20491,7 @@ function visitAllWithSiblings(visitor, nodes) {
|
|
|
20279
20491
|
return result;
|
|
20280
20492
|
}
|
|
20281
20493
|
|
|
20282
|
-
// bazel-out/
|
|
20494
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template_parser/binding_parser.mjs
|
|
20283
20495
|
var PROPERTY_PARTS_SEPARATOR = ".";
|
|
20284
20496
|
var ATTRIBUTE_PREFIX = "attr";
|
|
20285
20497
|
var CLASS_PREFIX = "class";
|
|
@@ -20599,7 +20811,7 @@ function moveParseSourceSpan(sourceSpan, absoluteSpan) {
|
|
|
20599
20811
|
return new ParseSourceSpan(sourceSpan.start.moveBy(startDiff), sourceSpan.end.moveBy(endDiff), sourceSpan.fullStart.moveBy(startDiff), sourceSpan.details);
|
|
20600
20812
|
}
|
|
20601
20813
|
|
|
20602
|
-
// bazel-out/
|
|
20814
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/style_url_resolver.mjs
|
|
20603
20815
|
function isStyleUrlResolvable(url) {
|
|
20604
20816
|
if (url == null || url.length === 0 || url[0] == "/")
|
|
20605
20817
|
return false;
|
|
@@ -20608,7 +20820,7 @@ function isStyleUrlResolvable(url) {
|
|
|
20608
20820
|
}
|
|
20609
20821
|
var URL_WITH_SCHEMA_REGEXP = /^([^:/?#]+):/;
|
|
20610
20822
|
|
|
20611
|
-
// bazel-out/
|
|
20823
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template_parser/template_preparser.mjs
|
|
20612
20824
|
var NG_CONTENT_SELECT_ATTR = "select";
|
|
20613
20825
|
var LINK_ELEMENT = "link";
|
|
20614
20826
|
var LINK_STYLE_REL_ATTR = "rel";
|
|
@@ -20678,7 +20890,7 @@ function normalizeNgContentSelect(selectAttr) {
|
|
|
20678
20890
|
return selectAttr;
|
|
20679
20891
|
}
|
|
20680
20892
|
|
|
20681
|
-
// bazel-out/
|
|
20893
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_control_flow.mjs
|
|
20682
20894
|
var FOR_LOOP_EXPRESSION_PATTERN = /^\s*([0-9A-Za-z_$]*)\s+of\s+([\S\s]*)/;
|
|
20683
20895
|
var FOR_LOOP_TRACK_PATTERN = /^track\s+([\S\s]*)/;
|
|
20684
20896
|
var CONDITIONAL_ALIAS_PATTERN = /^as\s+(.*)/;
|
|
@@ -20969,7 +21181,7 @@ function stripOptionalParentheses(param, errors) {
|
|
|
20969
21181
|
return expression.slice(start, end);
|
|
20970
21182
|
}
|
|
20971
21183
|
|
|
20972
|
-
// bazel-out/
|
|
21184
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_deferred_triggers.mjs
|
|
20973
21185
|
var TIME_PATTERN = /^\d+\.?\d*(ms|s)?$/;
|
|
20974
21186
|
var SEPARATOR_PATTERN = /^\s$/;
|
|
20975
21187
|
var COMMA_DELIMITED_SYNTAX = /* @__PURE__ */ new Map([
|
|
@@ -21233,7 +21445,7 @@ function parseDeferredTime(value) {
|
|
|
21233
21445
|
return parseFloat(time) * (units === "s" ? 1e3 : 1);
|
|
21234
21446
|
}
|
|
21235
21447
|
|
|
21236
|
-
// bazel-out/
|
|
21448
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_deferred_blocks.mjs
|
|
21237
21449
|
var PREFETCH_WHEN_PATTERN = /^prefetch\s+when\s/;
|
|
21238
21450
|
var PREFETCH_ON_PATTERN = /^prefetch\s+on\s/;
|
|
21239
21451
|
var MINIMUM_PARAMETER_PATTERN = /^minimum\s/;
|
|
@@ -21368,7 +21580,7 @@ function parsePrimaryTriggers(params, bindingParser, errors, placeholder) {
|
|
|
21368
21580
|
return { triggers, prefetchTriggers };
|
|
21369
21581
|
}
|
|
21370
21582
|
|
|
21371
|
-
// bazel-out/
|
|
21583
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_template_transform.mjs
|
|
21372
21584
|
var BIND_NAME_REGEXP = /^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/;
|
|
21373
21585
|
var KW_BIND_IDX = 1;
|
|
21374
21586
|
var KW_LET_IDX = 2;
|
|
@@ -21799,7 +22011,7 @@ function textContents(node) {
|
|
|
21799
22011
|
}
|
|
21800
22012
|
}
|
|
21801
22013
|
|
|
21802
|
-
// bazel-out/
|
|
22014
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/context.mjs
|
|
21803
22015
|
var TagType;
|
|
21804
22016
|
(function(TagType2) {
|
|
21805
22017
|
TagType2[TagType2["ELEMENT"] = 0] = "ELEMENT";
|
|
@@ -21934,7 +22146,7 @@ function serializePlaceholderValue(value) {
|
|
|
21934
22146
|
}
|
|
21935
22147
|
}
|
|
21936
22148
|
|
|
21937
|
-
// bazel-out/
|
|
22149
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/template.mjs
|
|
21938
22150
|
var NG_CONTENT_SELECT_ATTR2 = "select";
|
|
21939
22151
|
var NG_PROJECT_AS_ATTR_NAME = "ngProjectAs";
|
|
21940
22152
|
var EVENT_BINDING_SCOPE_GLOBALS = /* @__PURE__ */ new Set(["$event"]);
|
|
@@ -22760,7 +22972,8 @@ var TemplateDefinitionBuilder = class {
|
|
|
22760
22972
|
}
|
|
22761
22973
|
}
|
|
22762
22974
|
if (root !== null) {
|
|
22763
|
-
|
|
22975
|
+
const name = root instanceof Element ? root.name : root.tagName;
|
|
22976
|
+
tagName = name === NG_TEMPLATE_TAG_NAME ? null : name;
|
|
22764
22977
|
attrsExprs = this.getAttributeExpressions(NG_TEMPLATE_TAG_NAME, root.attributes, root.inputs, []);
|
|
22765
22978
|
}
|
|
22766
22979
|
return { tagName, attrsExprs };
|
|
@@ -23597,7 +23810,7 @@ function createClosureModeGuard2() {
|
|
|
23597
23810
|
return typeofExpr(variable(NG_I18N_CLOSURE_MODE2)).notIdentical(literal("undefined", STRING_TYPE)).and(variable(NG_I18N_CLOSURE_MODE2));
|
|
23598
23811
|
}
|
|
23599
23812
|
|
|
23600
|
-
// bazel-out/
|
|
23813
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/compiler.mjs
|
|
23601
23814
|
var ATTR_REGEX = /attr\.([^\]]+)/;
|
|
23602
23815
|
var COMPONENT_VARIABLE = "%COMP%";
|
|
23603
23816
|
var HOST_ATTR = `_nghost-${COMPONENT_VARIABLE}`;
|
|
@@ -23710,7 +23923,7 @@ function compileComponentFromMetadata(meta, constantPool, bindingParser) {
|
|
|
23710
23923
|
}
|
|
23711
23924
|
definitionMap.set("template", templateFunctionExpression);
|
|
23712
23925
|
} else {
|
|
23713
|
-
const tpl = ingestComponent(meta.name, meta.template.nodes, constantPool, meta.relativeContextFilePath, meta.i18nUseExternalIds);
|
|
23926
|
+
const tpl = ingestComponent(meta.name, meta.template.nodes, constantPool, meta.relativeContextFilePath, meta.i18nUseExternalIds, meta.deferBlocks);
|
|
23714
23927
|
transform(tpl, CompilationJobKind.Tmpl);
|
|
23715
23928
|
const templateFn = emitTemplateFn(tpl, constantPool);
|
|
23716
23929
|
if (tpl.contentSelectors !== null) {
|
|
@@ -24199,7 +24412,7 @@ function createHostDirectivesMappingArray(mapping) {
|
|
|
24199
24412
|
return elements.length > 0 ? literalArr(elements) : null;
|
|
24200
24413
|
}
|
|
24201
24414
|
|
|
24202
|
-
// bazel-out/
|
|
24415
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/t2_binder.mjs
|
|
24203
24416
|
var R3TargetBinder = class {
|
|
24204
24417
|
constructor(directiveMatcher) {
|
|
24205
24418
|
this.directiveMatcher = directiveMatcher;
|
|
@@ -24804,11 +25017,11 @@ function extractScopedNodeEntities(rootScope) {
|
|
|
24804
25017
|
return templateEntities;
|
|
24805
25018
|
}
|
|
24806
25019
|
|
|
24807
|
-
// bazel-out/
|
|
25020
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/resource_loader.mjs
|
|
24808
25021
|
var ResourceLoader = class {
|
|
24809
25022
|
};
|
|
24810
25023
|
|
|
24811
|
-
// bazel-out/
|
|
25024
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/jit_compiler_facade.mjs
|
|
24812
25025
|
var CompilerFacadeImpl = class {
|
|
24813
25026
|
constructor(jitEvaluator = new JitEvaluator()) {
|
|
24814
25027
|
this.jitEvaluator = jitEvaluator;
|
|
@@ -25360,10 +25573,10 @@ function publishFacade(global) {
|
|
|
25360
25573
|
ng.\u0275compilerFacade = new CompilerFacadeImpl();
|
|
25361
25574
|
}
|
|
25362
25575
|
|
|
25363
|
-
// bazel-out/
|
|
25364
|
-
var VERSION2 = new Version("17.0.0-rc.
|
|
25576
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/version.mjs
|
|
25577
|
+
var VERSION2 = new Version("17.0.0-rc.3");
|
|
25365
25578
|
|
|
25366
|
-
// bazel-out/
|
|
25579
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
|
|
25367
25580
|
var _I18N_ATTR = "i18n";
|
|
25368
25581
|
var _I18N_ATTR_PREFIX = "i18n-";
|
|
25369
25582
|
var _I18N_COMMENT_PREFIX_REGEXP = /^i18n:?/;
|
|
@@ -25672,7 +25885,7 @@ function _parseMessageMeta(i18n2) {
|
|
|
25672
25885
|
return { meaning, description, id: id.trim() };
|
|
25673
25886
|
}
|
|
25674
25887
|
|
|
25675
|
-
// bazel-out/
|
|
25888
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/xml_tags.mjs
|
|
25676
25889
|
var XmlTagDefinition = class {
|
|
25677
25890
|
constructor() {
|
|
25678
25891
|
this.closedByParent = false;
|
|
@@ -25697,7 +25910,7 @@ function getXmlTagDefinition(tagName) {
|
|
|
25697
25910
|
return _TAG_DEFINITION;
|
|
25698
25911
|
}
|
|
25699
25912
|
|
|
25700
|
-
// bazel-out/
|
|
25913
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/xml_parser.mjs
|
|
25701
25914
|
var XmlParser = class extends Parser2 {
|
|
25702
25915
|
constructor() {
|
|
25703
25916
|
super(getXmlTagDefinition);
|
|
@@ -25707,7 +25920,7 @@ var XmlParser = class extends Parser2 {
|
|
|
25707
25920
|
}
|
|
25708
25921
|
};
|
|
25709
25922
|
|
|
25710
|
-
// bazel-out/
|
|
25923
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/xliff.mjs
|
|
25711
25924
|
var _VERSION = "1.2";
|
|
25712
25925
|
var _XMLNS = "urn:oasis:names:tc:xliff:document:1.2";
|
|
25713
25926
|
var _DEFAULT_SOURCE_LANG = "en";
|
|
@@ -25955,7 +26168,7 @@ function getCtypeForTag(tag) {
|
|
|
25955
26168
|
}
|
|
25956
26169
|
}
|
|
25957
26170
|
|
|
25958
|
-
// bazel-out/
|
|
26171
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/xliff2.mjs
|
|
25959
26172
|
var _VERSION2 = "2.0";
|
|
25960
26173
|
var _XMLNS2 = "urn:oasis:names:tc:xliff:document:2.0";
|
|
25961
26174
|
var _DEFAULT_SOURCE_LANG2 = "en";
|
|
@@ -26254,7 +26467,7 @@ function getTypeForTag(tag) {
|
|
|
26254
26467
|
}
|
|
26255
26468
|
}
|
|
26256
26469
|
|
|
26257
|
-
// bazel-out/
|
|
26470
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/message_bundle.mjs
|
|
26258
26471
|
var MessageBundle = class {
|
|
26259
26472
|
constructor(_htmlParser, _implicitTags, _implicitAttrs, _locale = null) {
|
|
26260
26473
|
this._htmlParser = _htmlParser;
|
|
@@ -26321,7 +26534,7 @@ var MapPlaceholderNames = class extends CloneVisitor {
|
|
|
26321
26534
|
}
|
|
26322
26535
|
};
|
|
26323
26536
|
|
|
26324
|
-
// bazel-out/
|
|
26537
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/api.mjs
|
|
26325
26538
|
var FactoryTarget2;
|
|
26326
26539
|
(function(FactoryTarget3) {
|
|
26327
26540
|
FactoryTarget3[FactoryTarget3["Directive"] = 0] = "Directive";
|
|
@@ -26331,7 +26544,7 @@ var FactoryTarget2;
|
|
|
26331
26544
|
FactoryTarget3[FactoryTarget3["NgModule"] = 4] = "NgModule";
|
|
26332
26545
|
})(FactoryTarget2 || (FactoryTarget2 = {}));
|
|
26333
26546
|
|
|
26334
|
-
// bazel-out/
|
|
26547
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_class_metadata_compiler.mjs
|
|
26335
26548
|
function compileClassMetadata(metadata) {
|
|
26336
26549
|
var _a2, _b2;
|
|
26337
26550
|
const fnCall = importExpr(Identifiers.setClassMetadata).callFn([
|
|
@@ -26373,7 +26586,7 @@ function compileComponentClassMetadata(metadata, deferrableTypes) {
|
|
|
26373
26586
|
return iife.callFn([]);
|
|
26374
26587
|
}
|
|
26375
26588
|
|
|
26376
|
-
// bazel-out/
|
|
26589
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_class_debug_info_compiler.mjs
|
|
26377
26590
|
function compileClassDebugInfo(debugInfo) {
|
|
26378
26591
|
const debugInfoObject = {
|
|
26379
26592
|
className: debugInfo.className
|
|
@@ -26393,12 +26606,12 @@ function compileClassDebugInfo(debugInfo) {
|
|
|
26393
26606
|
return iife.callFn([]);
|
|
26394
26607
|
}
|
|
26395
26608
|
|
|
26396
|
-
// bazel-out/
|
|
26609
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/class_metadata.mjs
|
|
26397
26610
|
var MINIMUM_PARTIAL_LINKER_VERSION = "12.0.0";
|
|
26398
26611
|
function compileDeclareClassMetadata(metadata) {
|
|
26399
26612
|
const definitionMap = new DefinitionMap();
|
|
26400
26613
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
26401
|
-
definitionMap.set("version", literal("17.0.0-rc.
|
|
26614
|
+
definitionMap.set("version", literal("17.0.0-rc.3"));
|
|
26402
26615
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
26403
26616
|
definitionMap.set("type", metadata.type);
|
|
26404
26617
|
definitionMap.set("decorators", metadata.decorators);
|
|
@@ -26407,7 +26620,7 @@ function compileDeclareClassMetadata(metadata) {
|
|
|
26407
26620
|
return importExpr(Identifiers.declareClassMetadata).callFn([definitionMap.toLiteralMap()]);
|
|
26408
26621
|
}
|
|
26409
26622
|
|
|
26410
|
-
// bazel-out/
|
|
26623
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/util.mjs
|
|
26411
26624
|
function toOptionalLiteralArray(values, mapper) {
|
|
26412
26625
|
if (values === null || values.length === 0) {
|
|
26413
26626
|
return null;
|
|
@@ -26455,7 +26668,7 @@ function compileDependency(dep) {
|
|
|
26455
26668
|
return depMeta.toLiteralMap();
|
|
26456
26669
|
}
|
|
26457
26670
|
|
|
26458
|
-
// bazel-out/
|
|
26671
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/directive.mjs
|
|
26459
26672
|
var MINIMUM_PARTIAL_LINKER_VERSION2 = "16.1.0";
|
|
26460
26673
|
function compileDeclareDirectiveFromMetadata(meta) {
|
|
26461
26674
|
const definitionMap = createDirectiveDefinitionMap(meta);
|
|
@@ -26469,7 +26682,7 @@ function createDirectiveDefinitionMap(meta) {
|
|
|
26469
26682
|
const hasTransformFunctions = Object.values(meta.inputs).some((input) => input.transformFunction !== null);
|
|
26470
26683
|
const minVersion = hasTransformFunctions ? MINIMUM_PARTIAL_LINKER_VERSION2 : "14.0.0";
|
|
26471
26684
|
definitionMap.set("minVersion", literal(minVersion));
|
|
26472
|
-
definitionMap.set("version", literal("17.0.0-rc.
|
|
26685
|
+
definitionMap.set("version", literal("17.0.0-rc.3"));
|
|
26473
26686
|
definitionMap.set("type", meta.type.value);
|
|
26474
26687
|
if (meta.isStandalone) {
|
|
26475
26688
|
definitionMap.set("isStandalone", literal(meta.isStandalone));
|
|
@@ -26562,7 +26775,7 @@ function createHostDirectives(hostDirectives) {
|
|
|
26562
26775
|
return literalArr(expressions);
|
|
26563
26776
|
}
|
|
26564
26777
|
|
|
26565
|
-
// bazel-out/
|
|
26778
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/component.mjs
|
|
26566
26779
|
function compileDeclareComponentFromMetadata(meta, template2, additionalTemplateInfo) {
|
|
26567
26780
|
const definitionMap = createComponentDefinitionMap(meta, template2, additionalTemplateInfo);
|
|
26568
26781
|
const expression = importExpr(Identifiers.declareComponent).callFn([definitionMap.toLiteralMap()]);
|
|
@@ -26696,12 +26909,12 @@ var BlockPresenceVisitor = class extends RecursiveVisitor {
|
|
|
26696
26909
|
}
|
|
26697
26910
|
};
|
|
26698
26911
|
|
|
26699
|
-
// bazel-out/
|
|
26912
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/factory.mjs
|
|
26700
26913
|
var MINIMUM_PARTIAL_LINKER_VERSION3 = "12.0.0";
|
|
26701
26914
|
function compileDeclareFactoryFunction(meta) {
|
|
26702
26915
|
const definitionMap = new DefinitionMap();
|
|
26703
26916
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION3));
|
|
26704
|
-
definitionMap.set("version", literal("17.0.0-rc.
|
|
26917
|
+
definitionMap.set("version", literal("17.0.0-rc.3"));
|
|
26705
26918
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
26706
26919
|
definitionMap.set("type", meta.type.value);
|
|
26707
26920
|
definitionMap.set("deps", compileDependencies(meta.deps));
|
|
@@ -26713,7 +26926,7 @@ function compileDeclareFactoryFunction(meta) {
|
|
|
26713
26926
|
};
|
|
26714
26927
|
}
|
|
26715
26928
|
|
|
26716
|
-
// bazel-out/
|
|
26929
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/injectable.mjs
|
|
26717
26930
|
var MINIMUM_PARTIAL_LINKER_VERSION4 = "12.0.0";
|
|
26718
26931
|
function compileDeclareInjectableFromMetadata(meta) {
|
|
26719
26932
|
const definitionMap = createInjectableDefinitionMap(meta);
|
|
@@ -26724,7 +26937,7 @@ function compileDeclareInjectableFromMetadata(meta) {
|
|
|
26724
26937
|
function createInjectableDefinitionMap(meta) {
|
|
26725
26938
|
const definitionMap = new DefinitionMap();
|
|
26726
26939
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION4));
|
|
26727
|
-
definitionMap.set("version", literal("17.0.0-rc.
|
|
26940
|
+
definitionMap.set("version", literal("17.0.0-rc.3"));
|
|
26728
26941
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
26729
26942
|
definitionMap.set("type", meta.type.value);
|
|
26730
26943
|
if (meta.providedIn !== void 0) {
|
|
@@ -26751,7 +26964,7 @@ function createInjectableDefinitionMap(meta) {
|
|
|
26751
26964
|
return definitionMap;
|
|
26752
26965
|
}
|
|
26753
26966
|
|
|
26754
|
-
// bazel-out/
|
|
26967
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/injector.mjs
|
|
26755
26968
|
var MINIMUM_PARTIAL_LINKER_VERSION5 = "12.0.0";
|
|
26756
26969
|
function compileDeclareInjectorFromMetadata(meta) {
|
|
26757
26970
|
const definitionMap = createInjectorDefinitionMap(meta);
|
|
@@ -26762,7 +26975,7 @@ function compileDeclareInjectorFromMetadata(meta) {
|
|
|
26762
26975
|
function createInjectorDefinitionMap(meta) {
|
|
26763
26976
|
const definitionMap = new DefinitionMap();
|
|
26764
26977
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION5));
|
|
26765
|
-
definitionMap.set("version", literal("17.0.0-rc.
|
|
26978
|
+
definitionMap.set("version", literal("17.0.0-rc.3"));
|
|
26766
26979
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
26767
26980
|
definitionMap.set("type", meta.type.value);
|
|
26768
26981
|
definitionMap.set("providers", meta.providers);
|
|
@@ -26772,7 +26985,7 @@ function createInjectorDefinitionMap(meta) {
|
|
|
26772
26985
|
return definitionMap;
|
|
26773
26986
|
}
|
|
26774
26987
|
|
|
26775
|
-
// bazel-out/
|
|
26988
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/ng_module.mjs
|
|
26776
26989
|
var MINIMUM_PARTIAL_LINKER_VERSION6 = "14.0.0";
|
|
26777
26990
|
function compileDeclareNgModuleFromMetadata(meta) {
|
|
26778
26991
|
const definitionMap = createNgModuleDefinitionMap(meta);
|
|
@@ -26786,7 +26999,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
26786
26999
|
throw new Error("Invalid path! Local compilation mode should not get into the partial compilation path");
|
|
26787
27000
|
}
|
|
26788
27001
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION6));
|
|
26789
|
-
definitionMap.set("version", literal("17.0.0-rc.
|
|
27002
|
+
definitionMap.set("version", literal("17.0.0-rc.3"));
|
|
26790
27003
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
26791
27004
|
definitionMap.set("type", meta.type.value);
|
|
26792
27005
|
if (meta.bootstrap.length > 0) {
|
|
@@ -26810,7 +27023,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
26810
27023
|
return definitionMap;
|
|
26811
27024
|
}
|
|
26812
27025
|
|
|
26813
|
-
// bazel-out/
|
|
27026
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/pipe.mjs
|
|
26814
27027
|
var MINIMUM_PARTIAL_LINKER_VERSION7 = "14.0.0";
|
|
26815
27028
|
function compileDeclarePipeFromMetadata(meta) {
|
|
26816
27029
|
const definitionMap = createPipeDefinitionMap(meta);
|
|
@@ -26821,7 +27034,7 @@ function compileDeclarePipeFromMetadata(meta) {
|
|
|
26821
27034
|
function createPipeDefinitionMap(meta) {
|
|
26822
27035
|
const definitionMap = new DefinitionMap();
|
|
26823
27036
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION7));
|
|
26824
|
-
definitionMap.set("version", literal("17.0.0-rc.
|
|
27037
|
+
definitionMap.set("version", literal("17.0.0-rc.3"));
|
|
26825
27038
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
26826
27039
|
definitionMap.set("type", meta.type.value);
|
|
26827
27040
|
if (meta.isStandalone) {
|
|
@@ -26834,13 +27047,13 @@ function createPipeDefinitionMap(meta) {
|
|
|
26834
27047
|
return definitionMap;
|
|
26835
27048
|
}
|
|
26836
27049
|
|
|
26837
|
-
// bazel-out/
|
|
27050
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/compiler.mjs
|
|
26838
27051
|
publishFacade(_global);
|
|
26839
27052
|
|
|
26840
|
-
// bazel-out/
|
|
26841
|
-
var VERSION3 = new Version("17.0.0-rc.
|
|
27053
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/version.mjs
|
|
27054
|
+
var VERSION3 = new Version("17.0.0-rc.3");
|
|
26842
27055
|
|
|
26843
|
-
// bazel-out/
|
|
27056
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
|
|
26844
27057
|
var EmitFlags;
|
|
26845
27058
|
(function(EmitFlags2) {
|
|
26846
27059
|
EmitFlags2[EmitFlags2["DTS"] = 1] = "DTS";
|
|
@@ -26852,13 +27065,13 @@ var EmitFlags;
|
|
|
26852
27065
|
EmitFlags2[EmitFlags2["All"] = 31] = "All";
|
|
26853
27066
|
})(EmitFlags || (EmitFlags = {}));
|
|
26854
27067
|
|
|
26855
|
-
// bazel-out/
|
|
27068
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/compiler_host.mjs
|
|
26856
27069
|
var import_typescript2 = __toESM(require("typescript"), 1);
|
|
26857
27070
|
|
|
26858
|
-
// bazel-out/
|
|
27071
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
26859
27072
|
var import_typescript102 = __toESM(require("typescript"), 1);
|
|
26860
27073
|
|
|
26861
|
-
// bazel-out/
|
|
27074
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
|
|
26862
27075
|
var path = __toESM(require("path"), 1);
|
|
26863
27076
|
function i18nGetExtension(formatName) {
|
|
26864
27077
|
const format = formatName.toLowerCase();
|
|
@@ -26908,10 +27121,10 @@ function getPathNormalizer(basePath) {
|
|
|
26908
27121
|
};
|
|
26909
27122
|
}
|
|
26910
27123
|
|
|
26911
|
-
// bazel-out/
|
|
27124
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
26912
27125
|
var import_typescript3 = __toESM(require("typescript"), 1);
|
|
26913
27126
|
|
|
26914
|
-
// bazel-out/
|
|
27127
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/version_helpers.mjs
|
|
26915
27128
|
function toNumbers(value) {
|
|
26916
27129
|
const suffixIndex = value.lastIndexOf("-");
|
|
26917
27130
|
return value.slice(0, suffixIndex === -1 ? value.length : suffixIndex).split(".").map((segment) => {
|
|
@@ -26946,7 +27159,7 @@ function compareVersions(v1, v2) {
|
|
|
26946
27159
|
return compareNumbers(toNumbers(v1), toNumbers(v2));
|
|
26947
27160
|
}
|
|
26948
27161
|
|
|
26949
|
-
// bazel-out/
|
|
27162
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
26950
27163
|
var MIN_TS_VERSION = "5.2.0";
|
|
26951
27164
|
var MAX_TS_VERSION = "5.3.0";
|
|
26952
27165
|
var tsVersion = import_typescript3.default.version;
|
|
@@ -26959,13 +27172,13 @@ function verifySupportedTypeScriptVersion() {
|
|
|
26959
27172
|
checkVersion(tsVersion, MIN_TS_VERSION, MAX_TS_VERSION);
|
|
26960
27173
|
}
|
|
26961
27174
|
|
|
26962
|
-
// bazel-out/
|
|
27175
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
26963
27176
|
var import_typescript98 = __toESM(require("typescript"), 1);
|
|
26964
27177
|
|
|
26965
|
-
// bazel-out/
|
|
27178
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
|
|
26966
27179
|
var import_typescript32 = __toESM(require("typescript"), 1);
|
|
26967
27180
|
|
|
26968
|
-
// bazel-out/
|
|
27181
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_code.mjs
|
|
26969
27182
|
var ErrorCode;
|
|
26970
27183
|
(function(ErrorCode2) {
|
|
26971
27184
|
ErrorCode2[ErrorCode2["DECORATOR_ARG_NOT_LITERAL"] = 1001] = "DECORATOR_ARG_NOT_LITERAL";
|
|
@@ -27044,7 +27257,7 @@ var ErrorCode;
|
|
|
27044
27257
|
ErrorCode2[ErrorCode2["LOCAL_COMPILATION_IMPORTED_STYLES_STRING"] = 11002] = "LOCAL_COMPILATION_IMPORTED_STYLES_STRING";
|
|
27045
27258
|
})(ErrorCode || (ErrorCode = {}));
|
|
27046
27259
|
|
|
27047
|
-
// bazel-out/
|
|
27260
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/docs.mjs
|
|
27048
27261
|
var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
|
|
27049
27262
|
ErrorCode.DECORATOR_ARG_NOT_LITERAL,
|
|
27050
27263
|
ErrorCode.IMPORT_CYCLE_DETECTED,
|
|
@@ -27056,15 +27269,15 @@ var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
|
|
|
27056
27269
|
ErrorCode.WARN_NGMODULE_ID_UNNECESSARY
|
|
27057
27270
|
]);
|
|
27058
27271
|
|
|
27059
|
-
// bazel-out/
|
|
27272
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
|
|
27060
27273
|
var import_typescript4 = __toESM(require("typescript"), 1);
|
|
27061
27274
|
|
|
27062
|
-
// bazel-out/
|
|
27275
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/util.mjs
|
|
27063
27276
|
function ngErrorCode(code) {
|
|
27064
27277
|
return parseInt("-99" + code);
|
|
27065
27278
|
}
|
|
27066
27279
|
|
|
27067
|
-
// bazel-out/
|
|
27280
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
|
|
27068
27281
|
var FatalDiagnosticError = class {
|
|
27069
27282
|
constructor(code, node, message, relatedInformation) {
|
|
27070
27283
|
this.code = code;
|
|
@@ -27120,10 +27333,10 @@ function addDiagnosticChain(messageText, add) {
|
|
|
27120
27333
|
return messageText;
|
|
27121
27334
|
}
|
|
27122
27335
|
|
|
27123
|
-
// bazel-out/
|
|
27336
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.mjs
|
|
27124
27337
|
var ERROR_DETAILS_PAGE_BASE_URL = "https://angular.io/errors";
|
|
27125
27338
|
|
|
27126
|
-
// bazel-out/
|
|
27339
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.mjs
|
|
27127
27340
|
var ExtendedTemplateDiagnosticName;
|
|
27128
27341
|
(function(ExtendedTemplateDiagnosticName2) {
|
|
27129
27342
|
ExtendedTemplateDiagnosticName2["INVALID_BANANA_IN_BOX"] = "invalidBananaInBox";
|
|
@@ -27137,7 +27350,7 @@ var ExtendedTemplateDiagnosticName;
|
|
|
27137
27350
|
ExtendedTemplateDiagnosticName2["INTERPOLATED_SIGNAL_NOT_INVOKED"] = "interpolatedSignalNotInvoked";
|
|
27138
27351
|
})(ExtendedTemplateDiagnosticName || (ExtendedTemplateDiagnosticName = {}));
|
|
27139
27352
|
|
|
27140
|
-
// bazel-out/
|
|
27353
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/api.mjs
|
|
27141
27354
|
var CompilationMode;
|
|
27142
27355
|
(function(CompilationMode2) {
|
|
27143
27356
|
CompilationMode2[CompilationMode2["FULL"] = 0] = "FULL";
|
|
@@ -27151,7 +27364,7 @@ var HandlerPrecedence;
|
|
|
27151
27364
|
HandlerPrecedence2[HandlerPrecedence2["WEAK"] = 2] = "WEAK";
|
|
27152
27365
|
})(HandlerPrecedence || (HandlerPrecedence = {}));
|
|
27153
27366
|
|
|
27154
|
-
// bazel-out/
|
|
27367
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/alias.mjs
|
|
27155
27368
|
var import_typescript5 = __toESM(require("typescript"), 1);
|
|
27156
27369
|
function aliasTransformFactory(exportStatements) {
|
|
27157
27370
|
return () => {
|
|
@@ -27174,10 +27387,10 @@ function aliasTransformFactory(exportStatements) {
|
|
|
27174
27387
|
};
|
|
27175
27388
|
}
|
|
27176
27389
|
|
|
27177
|
-
// bazel-out/
|
|
27390
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
27178
27391
|
var import_typescript12 = __toESM(require("typescript"), 1);
|
|
27179
27392
|
|
|
27180
|
-
// bazel-out/
|
|
27393
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/api.mjs
|
|
27181
27394
|
var PerfPhase;
|
|
27182
27395
|
(function(PerfPhase2) {
|
|
27183
27396
|
PerfPhase2[PerfPhase2["Unaccounted"] = 0] = "Unaccounted";
|
|
@@ -27245,7 +27458,7 @@ var PerfCheckpoint;
|
|
|
27245
27458
|
PerfCheckpoint2[PerfCheckpoint2["LAST"] = 9] = "LAST";
|
|
27246
27459
|
})(PerfCheckpoint || (PerfCheckpoint = {}));
|
|
27247
27460
|
|
|
27248
|
-
// bazel-out/
|
|
27461
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/noop.mjs
|
|
27249
27462
|
var NoopPerfRecorder = class {
|
|
27250
27463
|
eventCount() {
|
|
27251
27464
|
}
|
|
@@ -27262,7 +27475,7 @@ var NoopPerfRecorder = class {
|
|
|
27262
27475
|
};
|
|
27263
27476
|
var NOOP_PERF_RECORDER = new NoopPerfRecorder();
|
|
27264
27477
|
|
|
27265
|
-
// bazel-out/
|
|
27478
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/clock.mjs
|
|
27266
27479
|
function mark() {
|
|
27267
27480
|
return process.hrtime();
|
|
27268
27481
|
}
|
|
@@ -27271,7 +27484,7 @@ function timeSinceInMicros(mark2) {
|
|
|
27271
27484
|
return delta[0] * 1e6 + Math.floor(delta[1] / 1e3);
|
|
27272
27485
|
}
|
|
27273
27486
|
|
|
27274
|
-
// bazel-out/
|
|
27487
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/recorder.mjs
|
|
27275
27488
|
var ActivePerfRecorder = class {
|
|
27276
27489
|
static zeroedToNow() {
|
|
27277
27490
|
return new ActivePerfRecorder(mark());
|
|
@@ -27365,7 +27578,7 @@ var DelegatingPerfRecorder = class {
|
|
|
27365
27578
|
}
|
|
27366
27579
|
};
|
|
27367
27580
|
|
|
27368
|
-
// bazel-out/
|
|
27581
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/host.mjs
|
|
27369
27582
|
var import_typescript6 = __toESM(require("typescript"), 1);
|
|
27370
27583
|
function isDecoratorIdentifier(exp) {
|
|
27371
27584
|
return import_typescript6.default.isIdentifier(exp) || import_typescript6.default.isPropertyAccessExpression(exp) && import_typescript6.default.isIdentifier(exp.expression) && import_typescript6.default.isIdentifier(exp.name);
|
|
@@ -27379,7 +27592,7 @@ var ClassMemberKind;
|
|
|
27379
27592
|
ClassMemberKind2[ClassMemberKind2["Method"] = 4] = "Method";
|
|
27380
27593
|
})(ClassMemberKind || (ClassMemberKind = {}));
|
|
27381
27594
|
|
|
27382
|
-
// bazel-out/
|
|
27595
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/type_to_value.mjs
|
|
27383
27596
|
var import_typescript7 = __toESM(require("typescript"), 1);
|
|
27384
27597
|
function typeToValue(typeNode, checker) {
|
|
27385
27598
|
if (typeNode === null) {
|
|
@@ -27545,10 +27758,10 @@ function extractModuleName(node) {
|
|
|
27545
27758
|
return node.moduleSpecifier.text;
|
|
27546
27759
|
}
|
|
27547
27760
|
|
|
27548
|
-
// bazel-out/
|
|
27761
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
|
|
27549
27762
|
var import_typescript9 = __toESM(require("typescript"), 1);
|
|
27550
27763
|
|
|
27551
|
-
// bazel-out/
|
|
27764
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/util.mjs
|
|
27552
27765
|
var import_typescript8 = __toESM(require("typescript"), 1);
|
|
27553
27766
|
function isNamedClassDeclaration(node) {
|
|
27554
27767
|
return import_typescript8.default.isClassDeclaration(node) && isIdentifier(node.name);
|
|
@@ -27557,7 +27770,7 @@ function isIdentifier(node) {
|
|
|
27557
27770
|
return node !== void 0 && import_typescript8.default.isIdentifier(node);
|
|
27558
27771
|
}
|
|
27559
27772
|
|
|
27560
|
-
// bazel-out/
|
|
27773
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
|
|
27561
27774
|
var TypeScriptReflectionHost = class {
|
|
27562
27775
|
constructor(checker) {
|
|
27563
27776
|
this.checker = checker;
|
|
@@ -27991,7 +28204,7 @@ function getExportedName(decl, originalId) {
|
|
|
27991
28204
|
}
|
|
27992
28205
|
var LocalExportedDeclarations = Symbol("LocalExportedDeclarations");
|
|
27993
28206
|
|
|
27994
|
-
// bazel-out/
|
|
28207
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/typescript.mjs
|
|
27995
28208
|
var import_typescript11 = __toESM(require("typescript"), 1);
|
|
27996
28209
|
var TS = /\.tsx?$/i;
|
|
27997
28210
|
var D_TS = /\.d\.ts$/i;
|
|
@@ -28092,7 +28305,7 @@ function toUnredirectedSourceFile(sf) {
|
|
|
28092
28305
|
return redirectInfo.unredirected;
|
|
28093
28306
|
}
|
|
28094
28307
|
|
|
28095
|
-
// bazel-out/
|
|
28308
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/trait.mjs
|
|
28096
28309
|
var TraitState;
|
|
28097
28310
|
(function(TraitState2) {
|
|
28098
28311
|
TraitState2[TraitState2["Pending"] = 0] = "Pending";
|
|
@@ -28149,7 +28362,7 @@ var TraitImpl = class {
|
|
|
28149
28362
|
}
|
|
28150
28363
|
};
|
|
28151
28364
|
|
|
28152
|
-
// bazel-out/
|
|
28365
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
28153
28366
|
var TraitCompiler = class {
|
|
28154
28367
|
constructor(handlers, reflector, perf, incrementalBuild, compileNonExportedClasses, compilationMode, dtsTransforms, semanticDepGraphUpdater, sourceFileTypeIdentifier) {
|
|
28155
28368
|
this.handlers = handlers;
|
|
@@ -28597,10 +28810,10 @@ function containsErrors(diagnostics) {
|
|
|
28597
28810
|
return diagnostics !== null && diagnostics.some((diag) => diag.category === import_typescript12.default.DiagnosticCategory.Error);
|
|
28598
28811
|
}
|
|
28599
28812
|
|
|
28600
|
-
// bazel-out/
|
|
28813
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
|
|
28601
28814
|
var import_typescript28 = __toESM(require("typescript"), 1);
|
|
28602
28815
|
|
|
28603
|
-
// bazel-out/
|
|
28816
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/context.mjs
|
|
28604
28817
|
var Context = class {
|
|
28605
28818
|
constructor(isStatement) {
|
|
28606
28819
|
this.isStatement = isStatement;
|
|
@@ -28613,13 +28826,13 @@ var Context = class {
|
|
|
28613
28826
|
}
|
|
28614
28827
|
};
|
|
28615
28828
|
|
|
28616
|
-
// bazel-out/
|
|
28829
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager.mjs
|
|
28617
28830
|
var import_typescript23 = __toESM(require("typescript"), 1);
|
|
28618
28831
|
|
|
28619
|
-
// bazel-out/
|
|
28832
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
|
|
28620
28833
|
var import_typescript15 = __toESM(require("typescript"), 1);
|
|
28621
28834
|
|
|
28622
|
-
// bazel-out/
|
|
28835
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/find_export.mjs
|
|
28623
28836
|
function findExportedNameOfNode(target, file, reflector) {
|
|
28624
28837
|
const exports = reflector.getExportsOfModule(file);
|
|
28625
28838
|
if (exports === null) {
|
|
@@ -28639,7 +28852,7 @@ function findExportedNameOfNode(target, file, reflector) {
|
|
|
28639
28852
|
return foundExportName;
|
|
28640
28853
|
}
|
|
28641
28854
|
|
|
28642
|
-
// bazel-out/
|
|
28855
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
|
|
28643
28856
|
var ImportFlags;
|
|
28644
28857
|
(function(ImportFlags2) {
|
|
28645
28858
|
ImportFlags2[ImportFlags2["None"] = 0] = "None";
|
|
@@ -28855,7 +29068,7 @@ var UnifiedModulesStrategy = class {
|
|
|
28855
29068
|
}
|
|
28856
29069
|
};
|
|
28857
29070
|
|
|
28858
|
-
// bazel-out/
|
|
29071
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
|
|
28859
29072
|
var CHARS_TO_ESCAPE = /[^a-zA-Z0-9/_]/g;
|
|
28860
29073
|
var UnifiedModulesAliasingHost = class {
|
|
28861
29074
|
constructor(unifiedModulesHost) {
|
|
@@ -28922,7 +29135,7 @@ var AliasStrategy = class {
|
|
|
28922
29135
|
}
|
|
28923
29136
|
};
|
|
28924
29137
|
|
|
28925
|
-
// bazel-out/
|
|
29138
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/path.mjs
|
|
28926
29139
|
function relativePathBetween(from, to) {
|
|
28927
29140
|
const relativePath = stripExtension(relative(dirname(resolve(from)), resolve(to)));
|
|
28928
29141
|
return relativePath !== "" ? toRelativeImport(relativePath) : null;
|
|
@@ -28931,7 +29144,7 @@ function normalizeSeparators2(path4) {
|
|
|
28931
29144
|
return path4.replace(/\\/g, "/");
|
|
28932
29145
|
}
|
|
28933
29146
|
|
|
28934
|
-
// bazel-out/
|
|
29147
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/core.mjs
|
|
28935
29148
|
var NoopImportRewriter = class {
|
|
28936
29149
|
shouldImportSymbol(symbol, specifier) {
|
|
28937
29150
|
return true;
|
|
@@ -28990,7 +29203,7 @@ function validateAndRewriteCoreSymbol(name) {
|
|
|
28990
29203
|
return CORE_SUPPORTED_SYMBOLS.get(name);
|
|
28991
29204
|
}
|
|
28992
29205
|
|
|
28993
|
-
// bazel-out/
|
|
29206
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/patch_alias_reference_resolution.mjs
|
|
28994
29207
|
var import_typescript17 = __toESM(require("typescript"), 1);
|
|
28995
29208
|
var patchedReferencedAliasesSymbol = Symbol("patchedReferencedAliases");
|
|
28996
29209
|
function loadIsReferencedAliasDeclarationPatch(context) {
|
|
@@ -29025,7 +29238,7 @@ function throwIncompatibleTransformationContextError() {
|
|
|
29025
29238
|
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.");
|
|
29026
29239
|
}
|
|
29027
29240
|
|
|
29028
|
-
// bazel-out/
|
|
29241
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/default.mjs
|
|
29029
29242
|
var DefaultImportDeclaration = Symbol("DefaultImportDeclaration");
|
|
29030
29243
|
function attachDefaultImportDeclaration(expr, importDecl) {
|
|
29031
29244
|
expr[DefaultImportDeclaration] = importDecl;
|
|
@@ -29066,7 +29279,7 @@ var DefaultImportTracker = class {
|
|
|
29066
29279
|
}
|
|
29067
29280
|
};
|
|
29068
29281
|
|
|
29069
|
-
// bazel-out/
|
|
29282
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/deferred_symbol_tracker.mjs
|
|
29070
29283
|
var import_typescript19 = __toESM(require("typescript"), 1);
|
|
29071
29284
|
var AssumeEager = "AssumeEager";
|
|
29072
29285
|
var DeferredSymbolTracker = class {
|
|
@@ -29164,7 +29377,7 @@ var DeferredSymbolTracker = class {
|
|
|
29164
29377
|
}
|
|
29165
29378
|
};
|
|
29166
29379
|
|
|
29167
|
-
// bazel-out/
|
|
29380
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/references.mjs
|
|
29168
29381
|
var Reference2 = class {
|
|
29169
29382
|
constructor(node, bestGuessOwningModule = null) {
|
|
29170
29383
|
this.node = node;
|
|
@@ -29227,7 +29440,7 @@ var Reference2 = class {
|
|
|
29227
29440
|
}
|
|
29228
29441
|
};
|
|
29229
29442
|
|
|
29230
|
-
// bazel-out/
|
|
29443
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/resolver.mjs
|
|
29231
29444
|
var ModuleResolver = class {
|
|
29232
29445
|
constructor(program, compilerOptions, host, moduleResolutionCache) {
|
|
29233
29446
|
this.program = program;
|
|
@@ -29244,7 +29457,7 @@ var ModuleResolver = class {
|
|
|
29244
29457
|
}
|
|
29245
29458
|
};
|
|
29246
29459
|
|
|
29247
|
-
// bazel-out/
|
|
29460
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager.mjs
|
|
29248
29461
|
var ImportManager = class {
|
|
29249
29462
|
constructor(rewriter = new NoopImportRewriter(), prefix = "i") {
|
|
29250
29463
|
this.rewriter = rewriter;
|
|
@@ -29279,7 +29492,7 @@ var ImportManager = class {
|
|
|
29279
29492
|
}
|
|
29280
29493
|
};
|
|
29281
29494
|
|
|
29282
|
-
// bazel-out/
|
|
29495
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/translator.mjs
|
|
29283
29496
|
var UNARY_OPERATORS = /* @__PURE__ */ new Map([
|
|
29284
29497
|
[UnaryOperator.Minus, "-"],
|
|
29285
29498
|
[UnaryOperator.Plus, "+"]
|
|
@@ -29516,7 +29729,7 @@ function createRange(span) {
|
|
|
29516
29729
|
};
|
|
29517
29730
|
}
|
|
29518
29731
|
|
|
29519
|
-
// bazel-out/
|
|
29732
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_emitter.mjs
|
|
29520
29733
|
var import_typescript24 = __toESM(require("typescript"), 1);
|
|
29521
29734
|
var INELIGIBLE = {};
|
|
29522
29735
|
function canEmitType(type, canEmit) {
|
|
@@ -29591,7 +29804,7 @@ var TypeEmitter = class {
|
|
|
29591
29804
|
}
|
|
29592
29805
|
};
|
|
29593
29806
|
|
|
29594
|
-
// bazel-out/
|
|
29807
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
|
|
29595
29808
|
var import_typescript25 = __toESM(require("typescript"), 1);
|
|
29596
29809
|
function translateType(type, contextFile, reflector, refEmitter, imports) {
|
|
29597
29810
|
return type.visitType(new TypeTranslatorVisitor(imports, contextFile, reflector, refEmitter), new Context(false));
|
|
@@ -29806,7 +30019,7 @@ var TypeTranslatorVisitor = class {
|
|
|
29806
30019
|
}
|
|
29807
30020
|
};
|
|
29808
30021
|
|
|
29809
|
-
// bazel-out/
|
|
30022
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_ast_factory.mjs
|
|
29810
30023
|
var import_typescript26 = __toESM(require("typescript"), 1);
|
|
29811
30024
|
var PureAnnotation;
|
|
29812
30025
|
(function(PureAnnotation2) {
|
|
@@ -30002,7 +30215,7 @@ function attachComments(statement, leadingComments) {
|
|
|
30002
30215
|
}
|
|
30003
30216
|
}
|
|
30004
30217
|
|
|
30005
|
-
// bazel-out/
|
|
30218
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_translator.mjs
|
|
30006
30219
|
function translateExpression(expression, imports, options = {}) {
|
|
30007
30220
|
return expression.visitExpression(new ExpressionTranslatorVisitor(new TypeScriptAstFactory(options.annotateForClosureCompiler === true), imports, options), new Context(false));
|
|
30008
30221
|
}
|
|
@@ -30010,7 +30223,7 @@ function translateStatement(statement, imports, options = {}) {
|
|
|
30010
30223
|
return statement.visitStatement(new ExpressionTranslatorVisitor(new TypeScriptAstFactory(options.annotateForClosureCompiler === true), imports, options), new Context(true));
|
|
30011
30224
|
}
|
|
30012
30225
|
|
|
30013
|
-
// bazel-out/
|
|
30226
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/utils.mjs
|
|
30014
30227
|
var import_typescript27 = __toESM(require("typescript"), 1);
|
|
30015
30228
|
function addImports(importManager, sf, extraStatements = []) {
|
|
30016
30229
|
const addedImports = importManager.getAllImports(sf.fileName).map((i) => {
|
|
@@ -30046,7 +30259,7 @@ function isImportStatement(stmt) {
|
|
|
30046
30259
|
return import_typescript27.default.isImportDeclaration(stmt) || import_typescript27.default.isImportEqualsDeclaration(stmt) || import_typescript27.default.isNamespaceImport(stmt);
|
|
30047
30260
|
}
|
|
30048
30261
|
|
|
30049
|
-
// bazel-out/
|
|
30262
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
|
|
30050
30263
|
var DtsTransformRegistry = class {
|
|
30051
30264
|
constructor() {
|
|
30052
30265
|
this.ivyDeclarationTransforms = /* @__PURE__ */ new Map();
|
|
@@ -30193,10 +30406,10 @@ function markForEmitAsSingleLine(node) {
|
|
|
30193
30406
|
import_typescript28.default.forEachChild(node, markForEmitAsSingleLine);
|
|
30194
30407
|
}
|
|
30195
30408
|
|
|
30196
|
-
// bazel-out/
|
|
30409
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
30197
30410
|
var import_typescript30 = __toESM(require("typescript"), 1);
|
|
30198
30411
|
|
|
30199
|
-
// bazel-out/
|
|
30412
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/visitor.mjs
|
|
30200
30413
|
var import_typescript29 = __toESM(require("typescript"), 1);
|
|
30201
30414
|
function visit(node, visitor, context) {
|
|
30202
30415
|
return visitor._visit(node, context);
|
|
@@ -30257,7 +30470,7 @@ var Visitor = class {
|
|
|
30257
30470
|
}
|
|
30258
30471
|
};
|
|
30259
30472
|
|
|
30260
|
-
// bazel-out/
|
|
30473
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
30261
30474
|
var NO_DECORATORS = /* @__PURE__ */ new Set();
|
|
30262
30475
|
var CLOSURE_FILE_OVERVIEW_REGEXP = /\s+@fileoverview\s+/i;
|
|
30263
30476
|
function ivyTransformFactory(compilation, reflector, importRewriter, defaultImportTracker, perf, isCore, isClosureCompilerEnabled) {
|
|
@@ -30481,7 +30694,7 @@ function nodeArrayFromDecoratorsArray(decorators) {
|
|
|
30481
30694
|
return array;
|
|
30482
30695
|
}
|
|
30483
30696
|
|
|
30484
|
-
// bazel-out/
|
|
30697
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
|
|
30485
30698
|
var import_typescript31 = __toESM(require("typescript"), 1);
|
|
30486
30699
|
function valueReferenceToExpression(valueRef) {
|
|
30487
30700
|
if (valueRef.kind === 2) {
|
|
@@ -30725,7 +30938,7 @@ function isAbstractClassDeclaration(clazz) {
|
|
|
30725
30938
|
return import_typescript31.default.canHaveModifiers(clazz) && clazz.modifiers !== void 0 ? clazz.modifiers.some((mod) => mod.kind === import_typescript31.default.SyntaxKind.AbstractKeyword) : false;
|
|
30726
30939
|
}
|
|
30727
30940
|
|
|
30728
|
-
// bazel-out/
|
|
30941
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
|
|
30729
30942
|
function getConstructorDependencies(clazz, reflector, isCore, compilationMode) {
|
|
30730
30943
|
const deps = [];
|
|
30731
30944
|
const errors = [];
|
|
@@ -30881,10 +31094,10 @@ function createUnsuitableInjectionTokenError(clazz, error2) {
|
|
|
30881
31094
|
return new FatalDiagnosticError(ErrorCode.PARAM_MISSING_TOKEN, param.nameNode, chain2, hints);
|
|
30882
31095
|
}
|
|
30883
31096
|
|
|
30884
|
-
// bazel-out/
|
|
31097
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
|
|
30885
31098
|
var import_typescript40 = __toESM(require("typescript"), 1);
|
|
30886
31099
|
|
|
30887
|
-
// bazel-out/
|
|
31100
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/api.mjs
|
|
30888
31101
|
var MetaKind;
|
|
30889
31102
|
(function(MetaKind2) {
|
|
30890
31103
|
MetaKind2[MetaKind2["Directive"] = 0] = "Directive";
|
|
@@ -30897,10 +31110,10 @@ var MatchSource;
|
|
|
30897
31110
|
MatchSource2[MatchSource2["HostDirective"] = 1] = "HostDirective";
|
|
30898
31111
|
})(MatchSource || (MatchSource = {}));
|
|
30899
31112
|
|
|
30900
|
-
// bazel-out/
|
|
31113
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
30901
31114
|
var import_typescript35 = __toESM(require("typescript"), 1);
|
|
30902
31115
|
|
|
30903
|
-
// bazel-out/
|
|
31116
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/property_mapping.mjs
|
|
30904
31117
|
var ClassPropertyMapping = class {
|
|
30905
31118
|
constructor(forwardMap) {
|
|
30906
31119
|
this.forwardMap = forwardMap;
|
|
@@ -30978,7 +31191,7 @@ function reverseMapFromForwardMap(forwardMap) {
|
|
|
30978
31191
|
return reverseMap;
|
|
30979
31192
|
}
|
|
30980
31193
|
|
|
30981
|
-
// bazel-out/
|
|
31194
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/util.mjs
|
|
30982
31195
|
var import_typescript33 = __toESM(require("typescript"), 1);
|
|
30983
31196
|
function extractReferencesFromType(checker, def, bestGuessOwningModule) {
|
|
30984
31197
|
if (!import_typescript33.default.isTupleTypeNode(def)) {
|
|
@@ -31162,7 +31375,7 @@ function hasInjectableFields(clazz, host) {
|
|
|
31162
31375
|
return members.some(({ isStatic, name }) => isStatic && (name === "\u0275prov" || name === "\u0275fac"));
|
|
31163
31376
|
}
|
|
31164
31377
|
|
|
31165
|
-
// bazel-out/
|
|
31378
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
31166
31379
|
var DtsMetadataReader = class {
|
|
31167
31380
|
constructor(checker, reflector) {
|
|
31168
31381
|
this.checker = checker;
|
|
@@ -31337,7 +31550,7 @@ function readHostDirectivesType(checker, type, bestGuessOwningModule) {
|
|
|
31337
31550
|
return result.length > 0 ? result : null;
|
|
31338
31551
|
}
|
|
31339
31552
|
|
|
31340
|
-
// bazel-out/
|
|
31553
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/inheritance.mjs
|
|
31341
31554
|
function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
31342
31555
|
const topMeta = reader.getDirectiveMetadata(dir);
|
|
31343
31556
|
if (topMeta === null) {
|
|
@@ -31394,7 +31607,7 @@ function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
|
31394
31607
|
});
|
|
31395
31608
|
}
|
|
31396
31609
|
|
|
31397
|
-
// bazel-out/
|
|
31610
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/registry.mjs
|
|
31398
31611
|
var LocalMetadataRegistry = class {
|
|
31399
31612
|
constructor() {
|
|
31400
31613
|
this.directives = /* @__PURE__ */ new Map();
|
|
@@ -31451,7 +31664,7 @@ var CompoundMetadataRegistry = class {
|
|
|
31451
31664
|
}
|
|
31452
31665
|
};
|
|
31453
31666
|
|
|
31454
|
-
// bazel-out/
|
|
31667
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/resource_registry.mjs
|
|
31455
31668
|
var ResourceRegistry = class {
|
|
31456
31669
|
constructor() {
|
|
31457
31670
|
this.externalTemplateToComponentsMap = /* @__PURE__ */ new Map();
|
|
@@ -31516,7 +31729,7 @@ var ResourceRegistry = class {
|
|
|
31516
31729
|
}
|
|
31517
31730
|
};
|
|
31518
31731
|
|
|
31519
|
-
// bazel-out/
|
|
31732
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/providers.mjs
|
|
31520
31733
|
var ExportedProviderStatusResolver = class {
|
|
31521
31734
|
constructor(metaReader) {
|
|
31522
31735
|
this.metaReader = metaReader;
|
|
@@ -31560,7 +31773,7 @@ var ExportedProviderStatusResolver = class {
|
|
|
31560
31773
|
}
|
|
31561
31774
|
};
|
|
31562
31775
|
|
|
31563
|
-
// bazel-out/
|
|
31776
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/host_directives_resolver.mjs
|
|
31564
31777
|
var EMPTY_ARRAY = [];
|
|
31565
31778
|
var HostDirectivesResolver = class {
|
|
31566
31779
|
constructor(metaReader) {
|
|
@@ -31621,10 +31834,10 @@ function resolveOutput(bindingName) {
|
|
|
31621
31834
|
return bindingName;
|
|
31622
31835
|
}
|
|
31623
31836
|
|
|
31624
|
-
// bazel-out/
|
|
31837
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
|
|
31625
31838
|
var import_typescript37 = __toESM(require("typescript"), 1);
|
|
31626
31839
|
|
|
31627
|
-
// bazel-out/
|
|
31840
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/dynamic.mjs
|
|
31628
31841
|
var DynamicValue = class {
|
|
31629
31842
|
constructor(node, reason, code) {
|
|
31630
31843
|
this.node = node;
|
|
@@ -31714,7 +31927,7 @@ var DynamicValue = class {
|
|
|
31714
31927
|
}
|
|
31715
31928
|
};
|
|
31716
31929
|
|
|
31717
|
-
// bazel-out/
|
|
31930
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/result.mjs
|
|
31718
31931
|
var ResolvedModule = class {
|
|
31719
31932
|
constructor(exports, evaluate) {
|
|
31720
31933
|
this.exports = exports;
|
|
@@ -31744,7 +31957,7 @@ var EnumValue = class {
|
|
|
31744
31957
|
var KnownFn = class {
|
|
31745
31958
|
};
|
|
31746
31959
|
|
|
31747
|
-
// bazel-out/
|
|
31960
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
|
|
31748
31961
|
function describeResolvedType(value, maxDepth = 1) {
|
|
31749
31962
|
var _a2, _b2;
|
|
31750
31963
|
if (value === null) {
|
|
@@ -31873,10 +32086,10 @@ function getContainerNode(node) {
|
|
|
31873
32086
|
return node.getSourceFile();
|
|
31874
32087
|
}
|
|
31875
32088
|
|
|
31876
|
-
// bazel-out/
|
|
32089
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
31877
32090
|
var import_typescript38 = __toESM(require("typescript"), 1);
|
|
31878
32091
|
|
|
31879
|
-
// bazel-out/
|
|
32092
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/builtin.mjs
|
|
31880
32093
|
var ArraySliceBuiltinFn = class extends KnownFn {
|
|
31881
32094
|
constructor(lhs) {
|
|
31882
32095
|
super();
|
|
@@ -31928,14 +32141,14 @@ var StringConcatBuiltinFn = class extends KnownFn {
|
|
|
31928
32141
|
}
|
|
31929
32142
|
};
|
|
31930
32143
|
|
|
31931
|
-
// bazel-out/
|
|
32144
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/synthetic.mjs
|
|
31932
32145
|
var SyntheticValue = class {
|
|
31933
32146
|
constructor(value) {
|
|
31934
32147
|
this.value = value;
|
|
31935
32148
|
}
|
|
31936
32149
|
};
|
|
31937
32150
|
|
|
31938
|
-
// bazel-out/
|
|
32151
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
31939
32152
|
function literalBinaryOp(op) {
|
|
31940
32153
|
return { op, literal: true };
|
|
31941
32154
|
}
|
|
@@ -32510,7 +32723,7 @@ function owningModule(context, override = null) {
|
|
|
32510
32723
|
}
|
|
32511
32724
|
}
|
|
32512
32725
|
|
|
32513
|
-
// bazel-out/
|
|
32726
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interface.mjs
|
|
32514
32727
|
var PartialEvaluator = class {
|
|
32515
32728
|
constructor(host, checker, dependencyTracker) {
|
|
32516
32729
|
this.host = host;
|
|
@@ -32530,7 +32743,7 @@ var PartialEvaluator = class {
|
|
|
32530
32743
|
}
|
|
32531
32744
|
};
|
|
32532
32745
|
|
|
32533
|
-
// bazel-out/
|
|
32746
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
|
|
32534
32747
|
function makeDuplicateDeclarationError(node, data, kind) {
|
|
32535
32748
|
const context = [];
|
|
32536
32749
|
for (const decl of data) {
|
|
@@ -32726,7 +32939,7 @@ function getInheritedUndecoratedCtorDiagnostic(node, baseClass, kind) {
|
|
|
32726
32939
|
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}.`);
|
|
32727
32940
|
}
|
|
32728
32941
|
|
|
32729
|
-
// bazel-out/
|
|
32942
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/evaluation.mjs
|
|
32730
32943
|
var import_typescript42 = __toESM(require("typescript"), 1);
|
|
32731
32944
|
function resolveEnumValue(evaluator, metadata, field, enumSymbolName) {
|
|
32732
32945
|
let resolved = null;
|
|
@@ -32776,7 +32989,7 @@ function resolveLiteral(decorator, literalCache) {
|
|
|
32776
32989
|
return meta;
|
|
32777
32990
|
}
|
|
32778
32991
|
|
|
32779
|
-
// bazel-out/
|
|
32992
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/factory.mjs
|
|
32780
32993
|
function compileNgFactoryDefField(metadata) {
|
|
32781
32994
|
const res = compileFactoryFunction(metadata);
|
|
32782
32995
|
return {
|
|
@@ -32798,7 +33011,7 @@ function compileDeclareFactory(metadata) {
|
|
|
32798
33011
|
};
|
|
32799
33012
|
}
|
|
32800
33013
|
|
|
32801
|
-
// bazel-out/
|
|
33014
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/injectable_registry.mjs
|
|
32802
33015
|
var InjectableClassRegistry = class {
|
|
32803
33016
|
constructor(host, isCore) {
|
|
32804
33017
|
this.host = host;
|
|
@@ -32824,7 +33037,7 @@ var InjectableClassRegistry = class {
|
|
|
32824
33037
|
}
|
|
32825
33038
|
};
|
|
32826
33039
|
|
|
32827
|
-
// bazel-out/
|
|
33040
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/metadata.mjs
|
|
32828
33041
|
var import_typescript43 = __toESM(require("typescript"), 1);
|
|
32829
33042
|
function extractClassMetadata(clazz, reflection, isCore, annotateForClosureCompiler, angularDecoratorTransform = (dec) => dec) {
|
|
32830
33043
|
if (!reflection.isClass(clazz)) {
|
|
@@ -32908,7 +33121,7 @@ function removeIdentifierReferences(node, names) {
|
|
|
32908
33121
|
return result.transformed[0];
|
|
32909
33122
|
}
|
|
32910
33123
|
|
|
32911
|
-
// bazel-out/
|
|
33124
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/debug_info.mjs
|
|
32912
33125
|
var path2 = __toESM(require("path"), 1);
|
|
32913
33126
|
function extractClassDebugInfo(clazz, reflection, rootDirs, forbidOrphanRendering) {
|
|
32914
33127
|
if (!reflection.isClass(clazz)) {
|
|
@@ -32934,13 +33147,13 @@ function computeRelativePathIfPossible(filePath, rootDirs) {
|
|
|
32934
33147
|
return null;
|
|
32935
33148
|
}
|
|
32936
33149
|
|
|
32937
|
-
// bazel-out/
|
|
33150
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/references_registry.mjs
|
|
32938
33151
|
var NoopReferencesRegistry = class {
|
|
32939
33152
|
add(source, ...references) {
|
|
32940
33153
|
}
|
|
32941
33154
|
};
|
|
32942
33155
|
|
|
32943
|
-
// bazel-out/
|
|
33156
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/schema.mjs
|
|
32944
33157
|
function extractSchemas(rawExpr, evaluator, context) {
|
|
32945
33158
|
const schemas = [];
|
|
32946
33159
|
const result = evaluator.evaluate(rawExpr);
|
|
@@ -32969,7 +33182,7 @@ function extractSchemas(rawExpr, evaluator, context) {
|
|
|
32969
33182
|
return schemas;
|
|
32970
33183
|
}
|
|
32971
33184
|
|
|
32972
|
-
// bazel-out/
|
|
33185
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/input_transforms.mjs
|
|
32973
33186
|
function compileInputTransformFields(inputs) {
|
|
32974
33187
|
const extraFields = [];
|
|
32975
33188
|
for (const input of inputs) {
|
|
@@ -32986,10 +33199,10 @@ function compileInputTransformFields(inputs) {
|
|
|
32986
33199
|
return extraFields;
|
|
32987
33200
|
}
|
|
32988
33201
|
|
|
32989
|
-
// bazel-out/
|
|
33202
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
32990
33203
|
var import_typescript54 = __toESM(require("typescript"), 1);
|
|
32991
33204
|
|
|
32992
|
-
// bazel-out/
|
|
33205
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.mjs
|
|
32993
33206
|
var import_typescript44 = __toESM(require("typescript"), 1);
|
|
32994
33207
|
var SemanticSymbol = class {
|
|
32995
33208
|
constructor(decl) {
|
|
@@ -33005,7 +33218,7 @@ function getSymbolIdentifier(decl) {
|
|
|
33005
33218
|
return decl.name.text;
|
|
33006
33219
|
}
|
|
33007
33220
|
|
|
33008
|
-
// bazel-out/
|
|
33221
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.mjs
|
|
33009
33222
|
var OpaqueSymbol = class extends SemanticSymbol {
|
|
33010
33223
|
isPublicApiAffected() {
|
|
33011
33224
|
return false;
|
|
@@ -33147,10 +33360,10 @@ function getImportPath(expr) {
|
|
|
33147
33360
|
}
|
|
33148
33361
|
}
|
|
33149
33362
|
|
|
33150
|
-
// bazel-out/
|
|
33363
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
33151
33364
|
var import_typescript45 = __toESM(require("typescript"), 1);
|
|
33152
33365
|
|
|
33153
|
-
// bazel-out/
|
|
33366
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/util.mjs
|
|
33154
33367
|
function isSymbolEqual(a, b) {
|
|
33155
33368
|
if (a.decl === b.decl) {
|
|
33156
33369
|
return true;
|
|
@@ -33200,7 +33413,7 @@ function isSetEqual(a, b, equalityTester = referenceEquality) {
|
|
|
33200
33413
|
return true;
|
|
33201
33414
|
}
|
|
33202
33415
|
|
|
33203
|
-
// bazel-out/
|
|
33416
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
33204
33417
|
function extractSemanticTypeParameters(node) {
|
|
33205
33418
|
if (!import_typescript45.default.isClassDeclaration(node) || node.typeParameters === void 0) {
|
|
33206
33419
|
return null;
|
|
@@ -33220,14 +33433,14 @@ function isTypeParameterEqual(a, b) {
|
|
|
33220
33433
|
return a.hasGenericTypeBound === b.hasGenericTypeBound;
|
|
33221
33434
|
}
|
|
33222
33435
|
|
|
33223
|
-
// bazel-out/
|
|
33436
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/api.mjs
|
|
33224
33437
|
var ComponentScopeKind;
|
|
33225
33438
|
(function(ComponentScopeKind2) {
|
|
33226
33439
|
ComponentScopeKind2[ComponentScopeKind2["NgModule"] = 0] = "NgModule";
|
|
33227
33440
|
ComponentScopeKind2[ComponentScopeKind2["Standalone"] = 1] = "Standalone";
|
|
33228
33441
|
})(ComponentScopeKind || (ComponentScopeKind = {}));
|
|
33229
33442
|
|
|
33230
|
-
// bazel-out/
|
|
33443
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/component_scope.mjs
|
|
33231
33444
|
var CompoundComponentScopeReader = class {
|
|
33232
33445
|
constructor(readers) {
|
|
33233
33446
|
this.readers = readers;
|
|
@@ -33252,7 +33465,7 @@ var CompoundComponentScopeReader = class {
|
|
|
33252
33465
|
}
|
|
33253
33466
|
};
|
|
33254
33467
|
|
|
33255
|
-
// bazel-out/
|
|
33468
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/dependency.mjs
|
|
33256
33469
|
var MetadataDtsModuleScopeResolver = class {
|
|
33257
33470
|
constructor(dtsMetaReader, aliasingHost) {
|
|
33258
33471
|
this.dtsMetaReader = dtsMetaReader;
|
|
@@ -33327,10 +33540,10 @@ var MetadataDtsModuleScopeResolver = class {
|
|
|
33327
33540
|
}
|
|
33328
33541
|
};
|
|
33329
33542
|
|
|
33330
|
-
// bazel-out/
|
|
33543
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
|
|
33331
33544
|
var import_typescript46 = __toESM(require("typescript"), 1);
|
|
33332
33545
|
|
|
33333
|
-
// bazel-out/
|
|
33546
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/util.mjs
|
|
33334
33547
|
function getDiagnosticNode(ref, rawExpr) {
|
|
33335
33548
|
return rawExpr !== null ? ref.getOriginForDiagnostics(rawExpr) : ref.node.name;
|
|
33336
33549
|
}
|
|
@@ -33353,7 +33566,7 @@ function makeUnknownComponentImportDiagnostic(ref, rawExpr) {
|
|
|
33353
33566
|
return makeDiagnostic(ErrorCode.COMPONENT_UNKNOWN_IMPORT, getDiagnosticNode(ref, rawExpr), `Component imports must be standalone components, directives, pipes, or must be NgModules.`);
|
|
33354
33567
|
}
|
|
33355
33568
|
|
|
33356
|
-
// bazel-out/
|
|
33569
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
|
|
33357
33570
|
var LocalModuleScopeRegistry = class {
|
|
33358
33571
|
constructor(localReader, fullReader, dependencyScopeReader, refEmitter, aliasingHost) {
|
|
33359
33572
|
this.localReader = localReader;
|
|
@@ -33692,7 +33905,7 @@ function reexportCollision(module3, refA, refB) {
|
|
|
33692
33905
|
]);
|
|
33693
33906
|
}
|
|
33694
33907
|
|
|
33695
|
-
// bazel-out/
|
|
33908
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/typecheck.mjs
|
|
33696
33909
|
var import_typescript48 = __toESM(require("typescript"), 1);
|
|
33697
33910
|
var TypeCheckScopeRegistry = class {
|
|
33698
33911
|
constructor(scopeReader, metaReader, hostDirectivesResolver) {
|
|
@@ -33760,7 +33973,7 @@ var TypeCheckScopeRegistry = class {
|
|
|
33760
33973
|
}
|
|
33761
33974
|
};
|
|
33762
33975
|
|
|
33763
|
-
// bazel-out/
|
|
33976
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
|
|
33764
33977
|
var import_typescript49 = __toESM(require("typescript"), 1);
|
|
33765
33978
|
var EMPTY_OBJECT = {};
|
|
33766
33979
|
var QUERY_TYPES = /* @__PURE__ */ new Set([
|
|
@@ -34352,7 +34565,7 @@ function toR3InputMetadata(mapping) {
|
|
|
34352
34565
|
};
|
|
34353
34566
|
}
|
|
34354
34567
|
|
|
34355
|
-
// bazel-out/
|
|
34568
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/symbol.mjs
|
|
34356
34569
|
var DirectiveSymbol = class extends SemanticSymbol {
|
|
34357
34570
|
constructor(decl, selector, inputs, outputs, exportAs, typeCheckMeta, typeParameters) {
|
|
34358
34571
|
super(decl);
|
|
@@ -34432,7 +34645,7 @@ function isBaseClassEqual(current, previous) {
|
|
|
34432
34645
|
return isSymbolEqual(current, previous);
|
|
34433
34646
|
}
|
|
34434
34647
|
|
|
34435
|
-
// bazel-out/
|
|
34648
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
|
|
34436
34649
|
var FIELD_DECORATORS = [
|
|
34437
34650
|
"Input",
|
|
34438
34651
|
"Output",
|
|
@@ -34604,10 +34817,10 @@ var DirectiveDecoratorHandler = class {
|
|
|
34604
34817
|
}
|
|
34605
34818
|
};
|
|
34606
34819
|
|
|
34607
|
-
// bazel-out/
|
|
34820
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
34608
34821
|
var import_typescript51 = __toESM(require("typescript"), 1);
|
|
34609
34822
|
|
|
34610
|
-
// bazel-out/
|
|
34823
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/module_with_providers.mjs
|
|
34611
34824
|
var import_typescript50 = __toESM(require("typescript"), 1);
|
|
34612
34825
|
function createModuleWithProvidersResolver(reflector, isCore) {
|
|
34613
34826
|
function _reflectModuleFromTypeParam(type, node) {
|
|
@@ -34674,7 +34887,7 @@ function isResolvedModuleWithProviders(sv) {
|
|
|
34674
34887
|
return typeof sv.value === "object" && sv.value != null && sv.value.hasOwnProperty("ngModule") && sv.value.hasOwnProperty("mwpCall");
|
|
34675
34888
|
}
|
|
34676
34889
|
|
|
34677
|
-
// bazel-out/
|
|
34890
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
34678
34891
|
var NgModuleSymbol = class extends SemanticSymbol {
|
|
34679
34892
|
constructor(decl, hasProviders) {
|
|
34680
34893
|
super(decl);
|
|
@@ -35239,7 +35452,7 @@ function isSyntheticReference(ref) {
|
|
|
35239
35452
|
return ref.synthetic;
|
|
35240
35453
|
}
|
|
35241
35454
|
|
|
35242
|
-
// bazel-out/
|
|
35455
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/diagnostics.mjs
|
|
35243
35456
|
function makeCyclicImportInfo(ref, type, cycle) {
|
|
35244
35457
|
const name = ref.debugName || "(unknown)";
|
|
35245
35458
|
const path4 = cycle.getPath().map((sf) => sf.fileName).join(" -> ");
|
|
@@ -35262,7 +35475,7 @@ function checkCustomElementSelectorForErrors(selector) {
|
|
|
35262
35475
|
return null;
|
|
35263
35476
|
}
|
|
35264
35477
|
|
|
35265
|
-
// bazel-out/
|
|
35478
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/resources.mjs
|
|
35266
35479
|
var import_typescript53 = __toESM(require("typescript"), 1);
|
|
35267
35480
|
function getTemplateDeclarationNodeForError(declaration) {
|
|
35268
35481
|
return declaration.isInline ? declaration.expression : declaration.templateUrlExpression;
|
|
@@ -35615,7 +35828,7 @@ function _extractTemplateStyleUrls(template2) {
|
|
|
35615
35828
|
return template2.styleUrls.map((url) => ({ url, source: 1, nodeForError }));
|
|
35616
35829
|
}
|
|
35617
35830
|
|
|
35618
|
-
// bazel-out/
|
|
35831
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/symbol.mjs
|
|
35619
35832
|
var ComponentSymbol = class extends DirectiveSymbol {
|
|
35620
35833
|
constructor() {
|
|
35621
35834
|
super(...arguments);
|
|
@@ -35650,7 +35863,7 @@ var ComponentSymbol = class extends DirectiveSymbol {
|
|
|
35650
35863
|
}
|
|
35651
35864
|
};
|
|
35652
35865
|
|
|
35653
|
-
// bazel-out/
|
|
35866
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/util.mjs
|
|
35654
35867
|
function collectAnimationNames(value, animationTriggerNames) {
|
|
35655
35868
|
if (value instanceof Map) {
|
|
35656
35869
|
const name = value.get("name");
|
|
@@ -35726,7 +35939,7 @@ function isLikelyModuleWithProviders(value) {
|
|
|
35726
35939
|
return false;
|
|
35727
35940
|
}
|
|
35728
35941
|
|
|
35729
|
-
// bazel-out/
|
|
35942
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
35730
35943
|
var EMPTY_ARRAY2 = [];
|
|
35731
35944
|
var isUsedDirective = (decl) => decl.kind === R3TemplateDependencyKind.Directive;
|
|
35732
35945
|
var isUsedPipe = (decl) => decl.kind === R3TemplateDependencyKind.Pipe;
|
|
@@ -36533,7 +36746,7 @@ function validateStandaloneImports(importRefs, importExpr2, metaReader, scopeRea
|
|
|
36533
36746
|
return diagnostics;
|
|
36534
36747
|
}
|
|
36535
36748
|
|
|
36536
|
-
// bazel-out/
|
|
36749
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
|
|
36537
36750
|
var import_typescript56 = __toESM(require("typescript"), 1);
|
|
36538
36751
|
var InjectableDecoratorHandler = class {
|
|
36539
36752
|
constructor(reflector, evaluator, isCore, strictCtorDeps, injectableRegistry, perf, includeClassMetadata, compilationMode, errorOnDuplicateProv = true) {
|
|
@@ -36758,7 +36971,7 @@ function getDep(dep, reflector) {
|
|
|
36758
36971
|
return meta;
|
|
36759
36972
|
}
|
|
36760
36973
|
|
|
36761
|
-
// bazel-out/
|
|
36974
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
|
|
36762
36975
|
var import_typescript57 = __toESM(require("typescript"), 1);
|
|
36763
36976
|
var PipeSymbol = class extends SemanticSymbol {
|
|
36764
36977
|
constructor(decl, name) {
|
|
@@ -36909,7 +37122,7 @@ var PipeDecoratorHandler = class {
|
|
|
36909
37122
|
}
|
|
36910
37123
|
};
|
|
36911
37124
|
|
|
36912
|
-
// bazel-out/
|
|
37125
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
|
|
36913
37126
|
var CycleAnalyzer = class {
|
|
36914
37127
|
constructor(importGraph) {
|
|
36915
37128
|
this.importGraph = importGraph;
|
|
@@ -36980,7 +37193,7 @@ var Cycle = class {
|
|
|
36980
37193
|
}
|
|
36981
37194
|
};
|
|
36982
37195
|
|
|
36983
|
-
// bazel-out/
|
|
37196
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/imports.mjs
|
|
36984
37197
|
var import_typescript58 = __toESM(require("typescript"), 1);
|
|
36985
37198
|
var ImportGraph = class {
|
|
36986
37199
|
constructor(checker, perf) {
|
|
@@ -37072,13 +37285,13 @@ var Found = class {
|
|
|
37072
37285
|
}
|
|
37073
37286
|
};
|
|
37074
37287
|
|
|
37075
|
-
// bazel-out/
|
|
37288
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/extractor.mjs
|
|
37076
37289
|
var import_typescript64 = __toESM(require("typescript"), 1);
|
|
37077
37290
|
|
|
37078
|
-
// bazel-out/
|
|
37291
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/class_extractor.mjs
|
|
37079
37292
|
var import_typescript61 = __toESM(require("typescript"), 1);
|
|
37080
37293
|
|
|
37081
|
-
// bazel-out/
|
|
37294
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/entities.mjs
|
|
37082
37295
|
var EntryType;
|
|
37083
37296
|
(function(EntryType2) {
|
|
37084
37297
|
EntryType2["Block"] = "block";
|
|
@@ -37121,17 +37334,17 @@ var MemberTags;
|
|
|
37121
37334
|
MemberTags2["Inherited"] = "override";
|
|
37122
37335
|
})(MemberTags || (MemberTags = {}));
|
|
37123
37336
|
|
|
37124
|
-
// bazel-out/
|
|
37337
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/filters.mjs
|
|
37125
37338
|
function isAngularPrivateName(name) {
|
|
37126
37339
|
var _a2;
|
|
37127
37340
|
const firstChar = (_a2 = name[0]) != null ? _a2 : "";
|
|
37128
37341
|
return firstChar === "\u0275" || firstChar === "_";
|
|
37129
37342
|
}
|
|
37130
37343
|
|
|
37131
|
-
// bazel-out/
|
|
37344
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/function_extractor.mjs
|
|
37132
37345
|
var import_typescript60 = __toESM(require("typescript"), 1);
|
|
37133
37346
|
|
|
37134
|
-
// bazel-out/
|
|
37347
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/generics_extractor.mjs
|
|
37135
37348
|
function extractGenerics(declaration) {
|
|
37136
37349
|
var _a2, _b2;
|
|
37137
37350
|
return (_b2 = (_a2 = declaration.typeParameters) == null ? void 0 : _a2.map((typeParam) => {
|
|
@@ -37144,7 +37357,7 @@ function extractGenerics(declaration) {
|
|
|
37144
37357
|
})) != null ? _b2 : [];
|
|
37145
37358
|
}
|
|
37146
37359
|
|
|
37147
|
-
// bazel-out/
|
|
37360
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/jsdoc_extractor.mjs
|
|
37148
37361
|
var import_typescript59 = __toESM(require("typescript"), 1);
|
|
37149
37362
|
var decoratorExpression = /@(?=(Injectable|Component|Directive|Pipe|NgModule|Input|Output|HostBinding|HostListener|Inject|Optional|Self|Host|SkipSelf))/g;
|
|
37150
37363
|
function extractJsDocTags(node) {
|
|
@@ -37188,12 +37401,12 @@ function unescapeAngularDecorators(comment) {
|
|
|
37188
37401
|
return comment.replace(/_NG_AT_/g, "@");
|
|
37189
37402
|
}
|
|
37190
37403
|
|
|
37191
|
-
// bazel-out/
|
|
37404
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/type_extractor.mjs
|
|
37192
37405
|
function extractResolvedTypeString(node, checker) {
|
|
37193
37406
|
return checker.typeToString(checker.getTypeAtLocation(node));
|
|
37194
37407
|
}
|
|
37195
37408
|
|
|
37196
|
-
// bazel-out/
|
|
37409
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/function_extractor.mjs
|
|
37197
37410
|
var FunctionExtractor = class {
|
|
37198
37411
|
constructor(declaration, typeChecker) {
|
|
37199
37412
|
this.declaration = declaration;
|
|
@@ -37247,7 +37460,7 @@ var FunctionExtractor = class {
|
|
|
37247
37460
|
}
|
|
37248
37461
|
};
|
|
37249
37462
|
|
|
37250
|
-
// bazel-out/
|
|
37463
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/class_extractor.mjs
|
|
37251
37464
|
var ClassExtractor = class {
|
|
37252
37465
|
constructor(declaration, typeChecker) {
|
|
37253
37466
|
this.declaration = declaration;
|
|
@@ -37474,7 +37687,7 @@ function extractInterface(declaration, typeChecker) {
|
|
|
37474
37687
|
return extractor.extract();
|
|
37475
37688
|
}
|
|
37476
37689
|
|
|
37477
|
-
// bazel-out/
|
|
37690
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/constant_extractor.mjs
|
|
37478
37691
|
function extractConstant(declaration, typeChecker) {
|
|
37479
37692
|
const resolvedType = typeChecker.getBaseTypeOfLiteralType(typeChecker.getTypeAtLocation(declaration));
|
|
37480
37693
|
const variableStatement = declaration.parent.parent;
|
|
@@ -37492,7 +37705,7 @@ function isSyntheticAngularConstant(declaration) {
|
|
|
37492
37705
|
return declaration.name.getText() === "USED_FOR_NG_TYPE_CHECKING";
|
|
37493
37706
|
}
|
|
37494
37707
|
|
|
37495
|
-
// bazel-out/
|
|
37708
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/decorator_extractor.mjs
|
|
37496
37709
|
var import_typescript62 = __toESM(require("typescript"), 1);
|
|
37497
37710
|
function extractorDecorator(declaration, typeChecker) {
|
|
37498
37711
|
const documentedNode = getDecoratorJsDocNode(declaration);
|
|
@@ -37565,7 +37778,7 @@ function getDecoratorJsDocNode(declaration) {
|
|
|
37565
37778
|
return callSignature;
|
|
37566
37779
|
}
|
|
37567
37780
|
|
|
37568
|
-
// bazel-out/
|
|
37781
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/enum_extractor.mjs
|
|
37569
37782
|
var import_typescript63 = __toESM(require("typescript"), 1);
|
|
37570
37783
|
function extractEnum(declaration, typeChecker) {
|
|
37571
37784
|
return {
|
|
@@ -37594,7 +37807,7 @@ function getEnumMemberValue(memberNode) {
|
|
|
37594
37807
|
return (_a2 = literal3 == null ? void 0 : literal3.getText()) != null ? _a2 : "";
|
|
37595
37808
|
}
|
|
37596
37809
|
|
|
37597
|
-
// bazel-out/
|
|
37810
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/type_alias_extractor.mjs
|
|
37598
37811
|
function extractTypeAlias(declaration) {
|
|
37599
37812
|
return {
|
|
37600
37813
|
name: declaration.name.getText(),
|
|
@@ -37606,7 +37819,7 @@ function extractTypeAlias(declaration) {
|
|
|
37606
37819
|
};
|
|
37607
37820
|
}
|
|
37608
37821
|
|
|
37609
|
-
// bazel-out/
|
|
37822
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/extractor.mjs
|
|
37610
37823
|
var DocsExtractor = class {
|
|
37611
37824
|
constructor(typeChecker, metadataReader) {
|
|
37612
37825
|
this.typeChecker = typeChecker;
|
|
@@ -37668,7 +37881,7 @@ function isIgnoredInterface(node) {
|
|
|
37668
37881
|
return node.name.getText().endsWith("Decorator") || isDecoratorOptionsInterface(node);
|
|
37669
37882
|
}
|
|
37670
37883
|
|
|
37671
|
-
// bazel-out/
|
|
37884
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
|
|
37672
37885
|
var import_typescript65 = __toESM(require("typescript"), 1);
|
|
37673
37886
|
var FlatIndexGenerator = class {
|
|
37674
37887
|
constructor(entryPoint, relativeFlatIndexPath, moduleName) {
|
|
@@ -37693,7 +37906,7 @@ export * from '${relativeEntryPoint}';
|
|
|
37693
37906
|
}
|
|
37694
37907
|
};
|
|
37695
37908
|
|
|
37696
|
-
// bazel-out/
|
|
37909
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/logic.mjs
|
|
37697
37910
|
function findFlatIndexEntryPoint(rootFiles) {
|
|
37698
37911
|
const tsFiles = rootFiles.filter((file) => isNonDeclarationTsPath(file));
|
|
37699
37912
|
let resolvedEntryPoint = null;
|
|
@@ -37709,7 +37922,7 @@ function findFlatIndexEntryPoint(rootFiles) {
|
|
|
37709
37922
|
return resolvedEntryPoint;
|
|
37710
37923
|
}
|
|
37711
37924
|
|
|
37712
|
-
// bazel-out/
|
|
37925
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
|
|
37713
37926
|
var import_typescript67 = __toESM(require("typescript"), 1);
|
|
37714
37927
|
function checkForPrivateExports(entryPoint, checker, refGraph) {
|
|
37715
37928
|
const diagnostics = [];
|
|
@@ -37789,7 +38002,7 @@ function getDescriptorOfDeclaration(decl) {
|
|
|
37789
38002
|
}
|
|
37790
38003
|
}
|
|
37791
38004
|
|
|
37792
|
-
// bazel-out/
|
|
38005
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/reference_graph.mjs
|
|
37793
38006
|
var ReferenceGraph = class {
|
|
37794
38007
|
constructor() {
|
|
37795
38008
|
this.references = /* @__PURE__ */ new Map();
|
|
@@ -37843,7 +38056,7 @@ var ReferenceGraph = class {
|
|
|
37843
38056
|
}
|
|
37844
38057
|
};
|
|
37845
38058
|
|
|
37846
|
-
// bazel-out/
|
|
38059
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/api.mjs
|
|
37847
38060
|
var NgOriginalFile = Symbol("NgOriginalFile");
|
|
37848
38061
|
var UpdateMode;
|
|
37849
38062
|
(function(UpdateMode2) {
|
|
@@ -37851,13 +38064,13 @@ var UpdateMode;
|
|
|
37851
38064
|
UpdateMode2[UpdateMode2["Incremental"] = 1] = "Incremental";
|
|
37852
38065
|
})(UpdateMode || (UpdateMode = {}));
|
|
37853
38066
|
|
|
37854
|
-
// bazel-out/
|
|
38067
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
|
|
37855
38068
|
var import_typescript71 = __toESM(require("typescript"), 1);
|
|
37856
38069
|
|
|
37857
|
-
// bazel-out/
|
|
38070
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
37858
38071
|
var import_typescript68 = __toESM(require("typescript"), 1);
|
|
37859
38072
|
|
|
37860
|
-
// bazel-out/
|
|
38073
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/expando.mjs
|
|
37861
38074
|
var NgExtension = Symbol("NgExtension");
|
|
37862
38075
|
function isExtended(sf) {
|
|
37863
38076
|
return sf[NgExtension] !== void 0;
|
|
@@ -37917,13 +38130,13 @@ function retagTsFile(sf) {
|
|
|
37917
38130
|
}
|
|
37918
38131
|
}
|
|
37919
38132
|
|
|
37920
|
-
// bazel-out/
|
|
38133
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/util.mjs
|
|
37921
38134
|
var TS_EXTENSIONS = /\.tsx?$/i;
|
|
37922
38135
|
function makeShimFileName(fileName, suffix) {
|
|
37923
38136
|
return absoluteFrom(fileName.replace(TS_EXTENSIONS, suffix));
|
|
37924
38137
|
}
|
|
37925
38138
|
|
|
37926
|
-
// bazel-out/
|
|
38139
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
37927
38140
|
var ShimAdapter = class {
|
|
37928
38141
|
constructor(delegate, tsRootFiles, topLevelGenerators, perFileGenerators, oldProgram) {
|
|
37929
38142
|
this.delegate = delegate;
|
|
@@ -38018,7 +38231,7 @@ var ShimAdapter = class {
|
|
|
38018
38231
|
}
|
|
38019
38232
|
};
|
|
38020
38233
|
|
|
38021
|
-
// bazel-out/
|
|
38234
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
|
|
38022
38235
|
var ShimReferenceTagger = class {
|
|
38023
38236
|
constructor(shimExtensions) {
|
|
38024
38237
|
this.tagged = /* @__PURE__ */ new Set();
|
|
@@ -38052,7 +38265,7 @@ var ShimReferenceTagger = class {
|
|
|
38052
38265
|
}
|
|
38053
38266
|
};
|
|
38054
38267
|
|
|
38055
|
-
// bazel-out/
|
|
38268
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
|
|
38056
38269
|
var DelegatingCompilerHost = class {
|
|
38057
38270
|
constructor(delegate) {
|
|
38058
38271
|
this.delegate = delegate;
|
|
@@ -38165,7 +38378,7 @@ var TsCreateProgramDriver = class {
|
|
|
38165
38378
|
}
|
|
38166
38379
|
};
|
|
38167
38380
|
|
|
38168
|
-
// bazel-out/
|
|
38381
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.mjs
|
|
38169
38382
|
var FileDependencyGraph = class {
|
|
38170
38383
|
constructor() {
|
|
38171
38384
|
this.nodes = /* @__PURE__ */ new Map();
|
|
@@ -38232,7 +38445,7 @@ function isLogicallyChanged(sf, node, changedTsPaths, deletedTsPaths, changedRes
|
|
|
38232
38445
|
return false;
|
|
38233
38446
|
}
|
|
38234
38447
|
|
|
38235
|
-
// bazel-out/
|
|
38448
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
|
|
38236
38449
|
var IncrementalStateKind;
|
|
38237
38450
|
(function(IncrementalStateKind2) {
|
|
38238
38451
|
IncrementalStateKind2[IncrementalStateKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -38240,7 +38453,7 @@ var IncrementalStateKind;
|
|
|
38240
38453
|
IncrementalStateKind2[IncrementalStateKind2["Analyzed"] = 2] = "Analyzed";
|
|
38241
38454
|
})(IncrementalStateKind || (IncrementalStateKind = {}));
|
|
38242
38455
|
|
|
38243
|
-
// bazel-out/
|
|
38456
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
|
|
38244
38457
|
var PhaseKind;
|
|
38245
38458
|
(function(PhaseKind2) {
|
|
38246
38459
|
PhaseKind2[PhaseKind2["Analysis"] = 0] = "Analysis";
|
|
@@ -38441,7 +38654,7 @@ function toOriginalSourceFile(sf) {
|
|
|
38441
38654
|
}
|
|
38442
38655
|
}
|
|
38443
38656
|
|
|
38444
|
-
// bazel-out/
|
|
38657
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
|
|
38445
38658
|
var TrackedIncrementalBuildStrategy = class {
|
|
38446
38659
|
constructor() {
|
|
38447
38660
|
this.state = null;
|
|
@@ -38462,7 +38675,7 @@ var TrackedIncrementalBuildStrategy = class {
|
|
|
38462
38675
|
};
|
|
38463
38676
|
var SYM_INCREMENTAL_STATE = Symbol("NgIncrementalState");
|
|
38464
38677
|
|
|
38465
|
-
// bazel-out/
|
|
38678
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
|
|
38466
38679
|
var IdentifierKind;
|
|
38467
38680
|
(function(IdentifierKind2) {
|
|
38468
38681
|
IdentifierKind2[IdentifierKind2["Property"] = 0] = "Property";
|
|
@@ -38480,7 +38693,7 @@ var AbsoluteSourceSpan2 = class {
|
|
|
38480
38693
|
}
|
|
38481
38694
|
};
|
|
38482
38695
|
|
|
38483
|
-
// bazel-out/
|
|
38696
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/context.mjs
|
|
38484
38697
|
var IndexingContext = class {
|
|
38485
38698
|
constructor() {
|
|
38486
38699
|
this.components = /* @__PURE__ */ new Set();
|
|
@@ -38490,7 +38703,7 @@ var IndexingContext = class {
|
|
|
38490
38703
|
}
|
|
38491
38704
|
};
|
|
38492
38705
|
|
|
38493
|
-
// bazel-out/
|
|
38706
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
|
|
38494
38707
|
var ExpressionVisitor = class extends RecursiveAstVisitor2 {
|
|
38495
38708
|
constructor(expressionStr, absoluteOffset, boundTemplate, targetToIdentifier) {
|
|
38496
38709
|
super();
|
|
@@ -38771,7 +38984,7 @@ function getTemplateIdentifiers(boundTemplate) {
|
|
|
38771
38984
|
return { identifiers: visitor.identifiers, errors: visitor.errors };
|
|
38772
38985
|
}
|
|
38773
38986
|
|
|
38774
|
-
// bazel-out/
|
|
38987
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
|
|
38775
38988
|
function generateAnalysis(context) {
|
|
38776
38989
|
const analysis = /* @__PURE__ */ new Map();
|
|
38777
38990
|
context.components.forEach(({ declaration, selector, boundTemplate, templateMeta }) => {
|
|
@@ -38807,7 +39020,7 @@ function generateAnalysis(context) {
|
|
|
38807
39020
|
return analysis;
|
|
38808
39021
|
}
|
|
38809
39022
|
|
|
38810
|
-
// bazel-out/
|
|
39023
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/ng_module_index.mjs
|
|
38811
39024
|
var NgModuleIndexImpl = class {
|
|
38812
39025
|
constructor(metaReader, localReader) {
|
|
38813
39026
|
this.metaReader = metaReader;
|
|
@@ -38896,7 +39109,7 @@ var NgModuleIndexImpl = class {
|
|
|
38896
39109
|
}
|
|
38897
39110
|
};
|
|
38898
39111
|
|
|
38899
|
-
// bazel-out/
|
|
39112
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
|
|
38900
39113
|
var import_typescript74 = __toESM(require("typescript"), 1);
|
|
38901
39114
|
var CSS_PREPROCESSOR_EXT = /(\.scss|\.sass|\.less|\.styl)$/;
|
|
38902
39115
|
var RESOURCE_MARKER = ".$ngresource$";
|
|
@@ -39044,7 +39257,7 @@ function createLookupResolutionHost(adapter) {
|
|
|
39044
39257
|
};
|
|
39045
39258
|
}
|
|
39046
39259
|
|
|
39047
|
-
// bazel-out/
|
|
39260
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/standalone.mjs
|
|
39048
39261
|
var StandaloneComponentScopeReader = class {
|
|
39049
39262
|
constructor(metaReader, localModuleReader, dtsModuleReader) {
|
|
39050
39263
|
this.metaReader = metaReader;
|
|
@@ -39122,21 +39335,21 @@ var StandaloneComponentScopeReader = class {
|
|
|
39122
39335
|
}
|
|
39123
39336
|
};
|
|
39124
39337
|
|
|
39125
|
-
// bazel-out/
|
|
39338
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/checker.mjs
|
|
39126
39339
|
var OptimizeFor;
|
|
39127
39340
|
(function(OptimizeFor2) {
|
|
39128
39341
|
OptimizeFor2[OptimizeFor2["SingleFile"] = 0] = "SingleFile";
|
|
39129
39342
|
OptimizeFor2[OptimizeFor2["WholeProgram"] = 1] = "WholeProgram";
|
|
39130
39343
|
})(OptimizeFor || (OptimizeFor = {}));
|
|
39131
39344
|
|
|
39132
|
-
// bazel-out/
|
|
39345
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/completion.mjs
|
|
39133
39346
|
var CompletionKind;
|
|
39134
39347
|
(function(CompletionKind2) {
|
|
39135
39348
|
CompletionKind2[CompletionKind2["Reference"] = 0] = "Reference";
|
|
39136
39349
|
CompletionKind2[CompletionKind2["Variable"] = 1] = "Variable";
|
|
39137
39350
|
})(CompletionKind || (CompletionKind = {}));
|
|
39138
39351
|
|
|
39139
|
-
// bazel-out/
|
|
39352
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/scope.mjs
|
|
39140
39353
|
var PotentialImportKind;
|
|
39141
39354
|
(function(PotentialImportKind2) {
|
|
39142
39355
|
PotentialImportKind2[PotentialImportKind2["NgModule"] = 0] = "NgModule";
|
|
@@ -39148,7 +39361,7 @@ var PotentialImportMode;
|
|
|
39148
39361
|
PotentialImportMode2[PotentialImportMode2["ForceDirect"] = 1] = "ForceDirect";
|
|
39149
39362
|
})(PotentialImportMode || (PotentialImportMode = {}));
|
|
39150
39363
|
|
|
39151
|
-
// bazel-out/
|
|
39364
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.mjs
|
|
39152
39365
|
var SymbolKind;
|
|
39153
39366
|
(function(SymbolKind2) {
|
|
39154
39367
|
SymbolKind2[SymbolKind2["Input"] = 0] = "Input";
|
|
@@ -39164,7 +39377,7 @@ var SymbolKind;
|
|
|
39164
39377
|
SymbolKind2[SymbolKind2["Pipe"] = 10] = "Pipe";
|
|
39165
39378
|
})(SymbolKind || (SymbolKind = {}));
|
|
39166
39379
|
|
|
39167
|
-
// bazel-out/
|
|
39380
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
|
|
39168
39381
|
var import_typescript75 = __toESM(require("typescript"), 1);
|
|
39169
39382
|
function makeTemplateDiagnostic(templateId, mapping, span, category, code, messageText, relatedMessages) {
|
|
39170
39383
|
var _a2;
|
|
@@ -39271,7 +39484,7 @@ function parseTemplateAsSourceFile(fileName, template2) {
|
|
|
39271
39484
|
return import_typescript75.default.createSourceFile(fileName, template2, import_typescript75.default.ScriptTarget.Latest, false, import_typescript75.default.ScriptKind.JSX);
|
|
39272
39485
|
}
|
|
39273
39486
|
|
|
39274
|
-
// bazel-out/
|
|
39487
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
|
|
39275
39488
|
var TEMPLATE_ID = Symbol("ngTemplateId");
|
|
39276
39489
|
var NEXT_TEMPLATE_ID = Symbol("ngNextTemplateId");
|
|
39277
39490
|
function getTemplateId(clazz) {
|
|
@@ -39288,10 +39501,10 @@ function allocateTemplateId(sf) {
|
|
|
39288
39501
|
return `tcb${sf[NEXT_TEMPLATE_ID]++}`;
|
|
39289
39502
|
}
|
|
39290
39503
|
|
|
39291
|
-
// bazel-out/
|
|
39504
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
39292
39505
|
var import_typescript77 = __toESM(require("typescript"), 1);
|
|
39293
39506
|
|
|
39294
|
-
// bazel-out/
|
|
39507
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
|
|
39295
39508
|
var import_typescript76 = __toESM(require("typescript"), 1);
|
|
39296
39509
|
var parseSpanComment = /^(\d+),(\d+)$/;
|
|
39297
39510
|
function readSpanComment(node, sourceFile = node.getSourceFile()) {
|
|
@@ -39420,7 +39633,7 @@ function hasExpressionIdentifier(sourceFile, node, identifier) {
|
|
|
39420
39633
|
}) || false;
|
|
39421
39634
|
}
|
|
39422
39635
|
|
|
39423
|
-
// bazel-out/
|
|
39636
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
39424
39637
|
var CompletionEngine = class {
|
|
39425
39638
|
constructor(tcb, data, tcbPath, tcbIsShim) {
|
|
39426
39639
|
this.tcb = tcb;
|
|
@@ -39577,10 +39790,10 @@ var CompletionEngine = class {
|
|
|
39577
39790
|
}
|
|
39578
39791
|
};
|
|
39579
39792
|
|
|
39580
|
-
// bazel-out/
|
|
39793
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
39581
39794
|
var import_typescript91 = __toESM(require("typescript"), 1);
|
|
39582
39795
|
|
|
39583
|
-
// bazel-out/
|
|
39796
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
|
|
39584
39797
|
var import_typescript78 = __toESM(require("typescript"), 1);
|
|
39585
39798
|
var REGISTRY = new DomElementSchemaRegistry();
|
|
39586
39799
|
var REMOVE_XHTML_REGEX = /^:xhtml:/;
|
|
@@ -39632,10 +39845,10 @@ var RegistryDomSchemaChecker = class {
|
|
|
39632
39845
|
}
|
|
39633
39846
|
};
|
|
39634
39847
|
|
|
39635
|
-
// bazel-out/
|
|
39848
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
39636
39849
|
var import_typescript84 = __toESM(require("typescript"), 1);
|
|
39637
39850
|
|
|
39638
|
-
// bazel-out/
|
|
39851
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
|
|
39639
39852
|
var import_typescript79 = __toESM(require("typescript"), 1);
|
|
39640
39853
|
var SAFE_TO_CAST_WITHOUT_PARENS = /* @__PURE__ */ new Set([
|
|
39641
39854
|
import_typescript79.default.SyntaxKind.ParenthesizedExpression,
|
|
@@ -39709,13 +39922,13 @@ function isAccessExpression2(node) {
|
|
|
39709
39922
|
return import_typescript79.default.isPropertyAccessExpression(node) || import_typescript79.default.isElementAccessExpression(node);
|
|
39710
39923
|
}
|
|
39711
39924
|
|
|
39712
|
-
// bazel-out/
|
|
39925
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
39713
39926
|
var import_typescript83 = __toESM(require("typescript"), 1);
|
|
39714
39927
|
|
|
39715
|
-
// bazel-out/
|
|
39928
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
39716
39929
|
var import_typescript81 = __toESM(require("typescript"), 1);
|
|
39717
39930
|
|
|
39718
|
-
// bazel-out/
|
|
39931
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
|
|
39719
39932
|
var import_typescript80 = __toESM(require("typescript"), 1);
|
|
39720
39933
|
var TypeParameterEmitter = class {
|
|
39721
39934
|
constructor(typeParameters, reflector) {
|
|
@@ -39793,7 +40006,7 @@ var TypeParameterEmitter = class {
|
|
|
39793
40006
|
}
|
|
39794
40007
|
};
|
|
39795
40008
|
|
|
39796
|
-
// bazel-out/
|
|
40009
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
39797
40010
|
var TcbInliningRequirement;
|
|
39798
40011
|
(function(TcbInliningRequirement2) {
|
|
39799
40012
|
TcbInliningRequirement2[TcbInliningRequirement2["MustInline"] = 0] = "MustInline";
|
|
@@ -39873,7 +40086,7 @@ function checkIfGenericTypeBoundsCanBeEmitted(node, reflector, env) {
|
|
|
39873
40086
|
return emitter.canEmit((ref) => env.canReferenceType(ref));
|
|
39874
40087
|
}
|
|
39875
40088
|
|
|
39876
|
-
// bazel-out/
|
|
40089
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
39877
40090
|
function generateTypeCtorDeclarationFn(node, meta, nodeTypeRef, typeParams) {
|
|
39878
40091
|
const rawTypeArgs = typeParams !== void 0 ? generateGenericArgs(typeParams) : void 0;
|
|
39879
40092
|
const rawType = import_typescript83.default.factory.createTypeReferenceNode(nodeTypeRef, rawTypeArgs);
|
|
@@ -39984,7 +40197,7 @@ function typeParametersWithDefaultTypes(params) {
|
|
|
39984
40197
|
});
|
|
39985
40198
|
}
|
|
39986
40199
|
|
|
39987
|
-
// bazel-out/
|
|
40200
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
39988
40201
|
var Environment = class {
|
|
39989
40202
|
constructor(config, importManager, refEmitter, reflector, contextFile) {
|
|
39990
40203
|
this.config = config;
|
|
@@ -40078,7 +40291,7 @@ var Environment = class {
|
|
|
40078
40291
|
}
|
|
40079
40292
|
};
|
|
40080
40293
|
|
|
40081
|
-
// bazel-out/
|
|
40294
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
|
|
40082
40295
|
var import_typescript85 = __toESM(require("typescript"), 1);
|
|
40083
40296
|
var OutOfBandDiagnosticRecorderImpl = class {
|
|
40084
40297
|
constructor(resolver) {
|
|
@@ -40232,7 +40445,7 @@ function makeInlineDiagnostic(templateId, code, node, messageText, relatedInform
|
|
|
40232
40445
|
});
|
|
40233
40446
|
}
|
|
40234
40447
|
|
|
40235
|
-
// bazel-out/
|
|
40448
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
|
|
40236
40449
|
var import_typescript86 = __toESM(require("typescript"), 1);
|
|
40237
40450
|
var TypeCheckShimGenerator = class {
|
|
40238
40451
|
constructor() {
|
|
@@ -40250,10 +40463,10 @@ var TypeCheckShimGenerator = class {
|
|
|
40250
40463
|
}
|
|
40251
40464
|
};
|
|
40252
40465
|
|
|
40253
|
-
// bazel-out/
|
|
40466
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
40254
40467
|
var import_typescript89 = __toESM(require("typescript"), 1);
|
|
40255
40468
|
|
|
40256
|
-
// bazel-out/
|
|
40469
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
|
|
40257
40470
|
var import_typescript87 = __toESM(require("typescript"), 1);
|
|
40258
40471
|
function wrapForDiagnostics(expr) {
|
|
40259
40472
|
return import_typescript87.default.factory.createParenthesizedExpression(expr);
|
|
@@ -40298,7 +40511,7 @@ function translateDiagnostic(diagnostic, resolver) {
|
|
|
40298
40511
|
return makeTemplateDiagnostic(sourceLocation.id, templateSourceMapping, span, diagnostic.category, diagnostic.code, diagnostic.messageText);
|
|
40299
40512
|
}
|
|
40300
40513
|
|
|
40301
|
-
// bazel-out/
|
|
40514
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
|
|
40302
40515
|
var import_typescript88 = __toESM(require("typescript"), 1);
|
|
40303
40516
|
var NULL_AS_ANY = import_typescript88.default.factory.createAsExpression(import_typescript88.default.factory.createNull(), import_typescript88.default.factory.createKeywordTypeNode(import_typescript88.default.SyntaxKind.AnyKeyword));
|
|
40304
40517
|
var UNDEFINED = import_typescript88.default.factory.createIdentifier("undefined");
|
|
@@ -40630,7 +40843,7 @@ var VeSafeLhsInferenceBugDetector = _VeSafeLhsInferenceBugDetector;
|
|
|
40630
40843
|
_VeSafeLhsInferenceBugDetector.SINGLETON = new _VeSafeLhsInferenceBugDetector();
|
|
40631
40844
|
})();
|
|
40632
40845
|
|
|
40633
|
-
// bazel-out/
|
|
40846
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_semantics.mjs
|
|
40634
40847
|
var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
|
|
40635
40848
|
constructor(templateId, boundTarget, oob) {
|
|
40636
40849
|
super();
|
|
@@ -40653,7 +40866,7 @@ var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
|
|
|
40653
40866
|
}
|
|
40654
40867
|
};
|
|
40655
40868
|
|
|
40656
|
-
// bazel-out/
|
|
40869
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
40657
40870
|
var TcbGenericContextBehavior;
|
|
40658
40871
|
(function(TcbGenericContextBehavior2) {
|
|
40659
40872
|
TcbGenericContextBehavior2[TcbGenericContextBehavior2["UseEmitter"] = 0] = "UseEmitter";
|
|
@@ -42025,7 +42238,7 @@ var TcbForLoopTrackTranslator = class extends TcbExpressionTranslator {
|
|
|
42025
42238
|
}
|
|
42026
42239
|
};
|
|
42027
42240
|
|
|
42028
|
-
// bazel-out/
|
|
42241
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
|
|
42029
42242
|
var import_typescript90 = __toESM(require("typescript"), 1);
|
|
42030
42243
|
var TypeCheckFile = class extends Environment {
|
|
42031
42244
|
constructor(fileName, config, refEmitter, reflector, compilerHost) {
|
|
@@ -42061,7 +42274,7 @@ var TypeCheckFile = class extends Environment {
|
|
|
42061
42274
|
}
|
|
42062
42275
|
};
|
|
42063
42276
|
|
|
42064
|
-
// bazel-out/
|
|
42277
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
42065
42278
|
var InliningMode;
|
|
42066
42279
|
(function(InliningMode2) {
|
|
42067
42280
|
InliningMode2[InliningMode2["InlineOps"] = 0] = "InlineOps";
|
|
@@ -42298,7 +42511,7 @@ function splitStringAtPoints(str, points) {
|
|
|
42298
42511
|
return splits;
|
|
42299
42512
|
}
|
|
42300
42513
|
|
|
42301
|
-
// bazel-out/
|
|
42514
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/line_mappings.mjs
|
|
42302
42515
|
var LF_CHAR = 10;
|
|
42303
42516
|
var CR_CHAR = 13;
|
|
42304
42517
|
var LINE_SEP_CHAR = 8232;
|
|
@@ -42339,7 +42552,7 @@ function findClosestLineStartPosition(linesMap, position, low = 0, high = linesM
|
|
|
42339
42552
|
return low - 1;
|
|
42340
42553
|
}
|
|
42341
42554
|
|
|
42342
|
-
// bazel-out/
|
|
42555
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
|
|
42343
42556
|
var TemplateSource = class {
|
|
42344
42557
|
constructor(mapping, file) {
|
|
42345
42558
|
this.mapping = mapping;
|
|
@@ -42390,7 +42603,7 @@ var TemplateSourceManager = class {
|
|
|
42390
42603
|
}
|
|
42391
42604
|
};
|
|
42392
42605
|
|
|
42393
|
-
// bazel-out/
|
|
42606
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
|
|
42394
42607
|
var import_typescript92 = __toESM(require("typescript"), 1);
|
|
42395
42608
|
var SymbolBuilder = class {
|
|
42396
42609
|
constructor(tcbPath, tcbIsShim, typeCheckBlock, templateData, componentScopeReader, getTypeChecker) {
|
|
@@ -42867,7 +43080,7 @@ function sourceSpanEqual(a, b) {
|
|
|
42867
43080
|
return a.start.offset === b.start.offset && a.end.offset === b.end.offset;
|
|
42868
43081
|
}
|
|
42869
43082
|
|
|
42870
|
-
// bazel-out/
|
|
43083
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
|
|
42871
43084
|
var REGISTRY2 = new DomElementSchemaRegistry();
|
|
42872
43085
|
var TemplateTypeCheckerImpl = class {
|
|
42873
43086
|
constructor(originalProgram, programDriver, typeCheckAdapter, config, refEmitter, reflector, compilerHost, priorBuild, metaReader, localMetaReader, ngModuleIndex, componentScopeReader, typeCheckScopeRegistry, perf) {
|
|
@@ -43563,7 +43776,7 @@ var SingleShimTypeCheckingHost = class extends SingleFileTypeCheckingHost {
|
|
|
43563
43776
|
}
|
|
43564
43777
|
};
|
|
43565
43778
|
|
|
43566
|
-
// bazel-out/
|
|
43779
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
|
|
43567
43780
|
var TemplateCheckWithVisitor = class {
|
|
43568
43781
|
run(ctx, component, template2) {
|
|
43569
43782
|
const visitor = new TemplateVisitor2(ctx, component, this);
|
|
@@ -43686,7 +43899,7 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor2 {
|
|
|
43686
43899
|
}
|
|
43687
43900
|
};
|
|
43688
43901
|
|
|
43689
|
-
// bazel-out/
|
|
43902
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
|
|
43690
43903
|
var InvalidBananaInBoxCheck = class extends TemplateCheckWithVisitor {
|
|
43691
43904
|
constructor() {
|
|
43692
43905
|
super(...arguments);
|
|
@@ -43711,7 +43924,7 @@ var factory = {
|
|
|
43711
43924
|
create: () => new InvalidBananaInBoxCheck()
|
|
43712
43925
|
};
|
|
43713
43926
|
|
|
43714
|
-
// bazel-out/
|
|
43927
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.mjs
|
|
43715
43928
|
var KNOWN_CONTROL_FLOW_DIRECTIVES = /* @__PURE__ */ new Map([
|
|
43716
43929
|
["ngIf", { directive: "NgIf", builtIn: "@if" }],
|
|
43717
43930
|
["ngFor", { directive: "NgFor", builtIn: "@for" }],
|
|
@@ -43755,7 +43968,7 @@ var factory2 = {
|
|
|
43755
43968
|
}
|
|
43756
43969
|
};
|
|
43757
43970
|
|
|
43758
|
-
// bazel-out/
|
|
43971
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.mjs
|
|
43759
43972
|
var MissingNgForOfLetCheck = class extends TemplateCheckWithVisitor {
|
|
43760
43973
|
constructor() {
|
|
43761
43974
|
super(...arguments);
|
|
@@ -43787,7 +44000,7 @@ var factory3 = {
|
|
|
43787
44000
|
create: () => new MissingNgForOfLetCheck()
|
|
43788
44001
|
};
|
|
43789
44002
|
|
|
43790
|
-
// bazel-out/
|
|
44003
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
|
|
43791
44004
|
var import_typescript95 = __toESM(require("typescript"), 1);
|
|
43792
44005
|
var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
43793
44006
|
constructor() {
|
|
@@ -43831,7 +44044,7 @@ var factory4 = {
|
|
|
43831
44044
|
}
|
|
43832
44045
|
};
|
|
43833
44046
|
|
|
43834
|
-
// bazel-out/
|
|
44047
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.mjs
|
|
43835
44048
|
var import_typescript96 = __toESM(require("typescript"), 1);
|
|
43836
44049
|
var OptionalChainNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
43837
44050
|
constructor() {
|
|
@@ -43876,7 +44089,7 @@ var factory5 = {
|
|
|
43876
44089
|
}
|
|
43877
44090
|
};
|
|
43878
44091
|
|
|
43879
|
-
// bazel-out/
|
|
44092
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.mjs
|
|
43880
44093
|
var STYLE_SUFFIXES = ["px", "%", "em"];
|
|
43881
44094
|
var SuffixNotSupportedCheck = class extends TemplateCheckWithVisitor {
|
|
43882
44095
|
constructor() {
|
|
@@ -43899,7 +44112,7 @@ var factory6 = {
|
|
|
43899
44112
|
create: () => new SuffixNotSupportedCheck()
|
|
43900
44113
|
};
|
|
43901
44114
|
|
|
43902
|
-
// bazel-out/
|
|
44115
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.mjs
|
|
43903
44116
|
var TextAttributeNotBindingSpec = class extends TemplateCheckWithVisitor {
|
|
43904
44117
|
constructor() {
|
|
43905
44118
|
super(...arguments);
|
|
@@ -43937,10 +44150,10 @@ var factory7 = {
|
|
|
43937
44150
|
create: () => new TextAttributeNotBindingSpec()
|
|
43938
44151
|
};
|
|
43939
44152
|
|
|
43940
|
-
// bazel-out/
|
|
44153
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
43941
44154
|
var import_typescript97 = __toESM(require("typescript"), 1);
|
|
43942
44155
|
|
|
43943
|
-
// bazel-out/
|
|
44156
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
|
|
43944
44157
|
var DiagnosticCategoryLabel;
|
|
43945
44158
|
(function(DiagnosticCategoryLabel2) {
|
|
43946
44159
|
DiagnosticCategoryLabel2["Warning"] = "warning";
|
|
@@ -43948,7 +44161,7 @@ var DiagnosticCategoryLabel;
|
|
|
43948
44161
|
DiagnosticCategoryLabel2["Suppress"] = "suppress";
|
|
43949
44162
|
})(DiagnosticCategoryLabel || (DiagnosticCategoryLabel = {}));
|
|
43950
44163
|
|
|
43951
|
-
// bazel-out/
|
|
44164
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
43952
44165
|
var ExtendedTemplateCheckerImpl = class {
|
|
43953
44166
|
constructor(templateTypeChecker, typeChecker, templateCheckFactories, options) {
|
|
43954
44167
|
var _a2, _b2, _c2, _d2, _e2;
|
|
@@ -44000,7 +44213,7 @@ function assertNever(value) {
|
|
|
44000
44213
|
${value}`);
|
|
44001
44214
|
}
|
|
44002
44215
|
|
|
44003
|
-
// bazel-out/
|
|
44216
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
|
|
44004
44217
|
var ALL_DIAGNOSTIC_FACTORIES = [
|
|
44005
44218
|
factory,
|
|
44006
44219
|
factory4,
|
|
@@ -44011,7 +44224,7 @@ var ALL_DIAGNOSTIC_FACTORIES = [
|
|
|
44011
44224
|
factory6
|
|
44012
44225
|
];
|
|
44013
44226
|
|
|
44014
|
-
// bazel-out/
|
|
44227
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
44015
44228
|
var CompilationTicketKind;
|
|
44016
44229
|
(function(CompilationTicketKind2) {
|
|
44017
44230
|
CompilationTicketKind2[CompilationTicketKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -44754,7 +44967,7 @@ function versionMapFromProgram(program, driver) {
|
|
|
44754
44967
|
return versions;
|
|
44755
44968
|
}
|
|
44756
44969
|
|
|
44757
|
-
// bazel-out/
|
|
44970
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
|
|
44758
44971
|
var import_typescript100 = __toESM(require("typescript"), 1);
|
|
44759
44972
|
var DelegatingCompilerHost2 = class {
|
|
44760
44973
|
constructor(delegate) {
|
|
@@ -44887,7 +45100,7 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
|
|
|
44887
45100
|
}
|
|
44888
45101
|
};
|
|
44889
45102
|
|
|
44890
|
-
// bazel-out/
|
|
45103
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
44891
45104
|
var NgtscProgram = class {
|
|
44892
45105
|
constructor(rootNames, options, delegateHost, oldProgram) {
|
|
44893
45106
|
this.options = options;
|
|
@@ -45114,21 +45327,21 @@ function mergeEmitResults(emitResults) {
|
|
|
45114
45327
|
return { diagnostics, emitSkipped, emittedFiles };
|
|
45115
45328
|
}
|
|
45116
45329
|
|
|
45117
|
-
// bazel-out/
|
|
45330
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
|
|
45118
45331
|
function createProgram({ rootNames, options, host, oldProgram }) {
|
|
45119
45332
|
return new NgtscProgram(rootNames, options, host, oldProgram);
|
|
45120
45333
|
}
|
|
45121
45334
|
|
|
45122
|
-
// bazel-out/
|
|
45335
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
45123
45336
|
var import_typescript104 = __toESM(require("typescript"), 1);
|
|
45124
45337
|
|
|
45125
|
-
// bazel-out/
|
|
45338
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
|
|
45126
45339
|
var import_typescript103 = __toESM(require("typescript"), 1);
|
|
45127
45340
|
|
|
45128
|
-
// bazel-out/
|
|
45341
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/downlevel_decorators_transform/downlevel_decorators_transform.mjs
|
|
45129
45342
|
var import_typescript105 = __toESM(require("typescript"), 1);
|
|
45130
45343
|
|
|
45131
|
-
// bazel-out/
|
|
45344
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/private/tooling.mjs
|
|
45132
45345
|
var GLOBAL_DEFS_FOR_TERSER = {
|
|
45133
45346
|
ngDevMode: false,
|
|
45134
45347
|
ngI18nClosureMode: false
|
|
@@ -45137,7 +45350,7 @@ var GLOBAL_DEFS_FOR_TERSER_WITH_AOT = __spreadProps(__spreadValues({}, GLOBAL_DE
|
|
|
45137
45350
|
ngJitMode: false
|
|
45138
45351
|
});
|
|
45139
45352
|
|
|
45140
|
-
// bazel-out/
|
|
45353
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/logging/src/logger.mjs
|
|
45141
45354
|
var LogLevel;
|
|
45142
45355
|
(function(LogLevel2) {
|
|
45143
45356
|
LogLevel2[LogLevel2["debug"] = 0] = "debug";
|
|
@@ -45146,7 +45359,7 @@ var LogLevel;
|
|
|
45146
45359
|
LogLevel2[LogLevel2["error"] = 3] = "error";
|
|
45147
45360
|
})(LogLevel || (LogLevel = {}));
|
|
45148
45361
|
|
|
45149
|
-
// bazel-out/
|
|
45362
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/logging/src/console_logger.mjs
|
|
45150
45363
|
var RESET = "\x1B[0m";
|
|
45151
45364
|
var RED = "\x1B[31m";
|
|
45152
45365
|
var YELLOW = "\x1B[33m";
|
|
@@ -45155,18 +45368,18 @@ var DEBUG = `${BLUE}Debug:${RESET}`;
|
|
|
45155
45368
|
var WARN = `${YELLOW}Warning:${RESET}`;
|
|
45156
45369
|
var ERROR = `${RED}Error:${RESET}`;
|
|
45157
45370
|
|
|
45158
|
-
// bazel-out/
|
|
45371
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/index.mjs
|
|
45159
45372
|
setFileSystem(new NodeJSFileSystem());
|
|
45160
45373
|
|
|
45161
|
-
// bazel-out/
|
|
45374
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/index.mjs
|
|
45162
45375
|
var import_fs2 = require("fs");
|
|
45163
45376
|
var import_path8 = require("path");
|
|
45164
45377
|
var import_typescript118 = __toESM(require("typescript"), 1);
|
|
45165
45378
|
|
|
45166
|
-
// bazel-out/
|
|
45379
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
|
|
45167
45380
|
var import_typescript107 = __toESM(require("typescript"), 1);
|
|
45168
45381
|
|
|
45169
|
-
// bazel-out/
|
|
45382
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/import_manager.mjs
|
|
45170
45383
|
var import_path4 = require("path");
|
|
45171
45384
|
var import_typescript106 = __toESM(require("typescript"), 1);
|
|
45172
45385
|
var ImportManager2 = class {
|
|
@@ -45350,7 +45563,7 @@ ${text2}`;
|
|
|
45350
45563
|
}
|
|
45351
45564
|
};
|
|
45352
45565
|
|
|
45353
|
-
// bazel-out/
|
|
45566
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
|
|
45354
45567
|
var ChangeTracker = class {
|
|
45355
45568
|
constructor(_printer, _importRemapper) {
|
|
45356
45569
|
__publicField(this, "_printer");
|
|
@@ -45409,7 +45622,7 @@ function normalizePath(path4) {
|
|
|
45409
45622
|
return path4.replace(/\\/g, "/");
|
|
45410
45623
|
}
|
|
45411
45624
|
|
|
45412
|
-
// bazel-out/
|
|
45625
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
|
|
45413
45626
|
var import_core16 = require("@angular-devkit/core");
|
|
45414
45627
|
function getProjectTsConfigPaths(tree) {
|
|
45415
45628
|
return __async(this, null, function* () {
|
|
@@ -45489,11 +45702,11 @@ function getWorkspace(tree) {
|
|
|
45489
45702
|
});
|
|
45490
45703
|
}
|
|
45491
45704
|
|
|
45492
|
-
// bazel-out/
|
|
45705
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
45493
45706
|
var import_path5 = require("path");
|
|
45494
45707
|
var import_typescript109 = __toESM(require("typescript"), 1);
|
|
45495
45708
|
|
|
45496
|
-
// bazel-out/
|
|
45709
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
|
|
45497
45710
|
var path3 = __toESM(require("path"), 1);
|
|
45498
45711
|
var import_typescript108 = __toESM(require("typescript"), 1);
|
|
45499
45712
|
function parseTsconfigFile(tsconfigPath, basePath) {
|
|
@@ -45510,7 +45723,7 @@ function parseTsconfigFile(tsconfigPath, basePath) {
|
|
|
45510
45723
|
return import_typescript108.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
|
|
45511
45724
|
}
|
|
45512
45725
|
|
|
45513
|
-
// bazel-out/
|
|
45726
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
45514
45727
|
function createProgramOptions(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles, optionOverrides) {
|
|
45515
45728
|
tsconfigPath = (0, import_path5.resolve)(basePath, tsconfigPath);
|
|
45516
45729
|
const parsed = parseTsconfigFile(tsconfigPath, (0, import_path5.dirname)(tsconfigPath));
|
|
@@ -45539,13 +45752,13 @@ function canMigrateFile(basePath, sourceFile, program) {
|
|
|
45539
45752
|
return !(0, import_path5.relative)(basePath, sourceFile.fileName).startsWith("..");
|
|
45540
45753
|
}
|
|
45541
45754
|
|
|
45542
|
-
// bazel-out/
|
|
45755
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/prune-modules.mjs
|
|
45543
45756
|
var import_typescript114 = __toESM(require("typescript"), 1);
|
|
45544
45757
|
|
|
45545
|
-
// bazel-out/
|
|
45758
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
|
|
45546
45759
|
var import_typescript111 = __toESM(require("typescript"), 1);
|
|
45547
45760
|
|
|
45548
|
-
// bazel-out/
|
|
45761
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
|
|
45549
45762
|
var import_typescript110 = __toESM(require("typescript"), 1);
|
|
45550
45763
|
function getImportOfIdentifier(typeChecker, node) {
|
|
45551
45764
|
const symbol = typeChecker.getSymbolAtLocation(node);
|
|
@@ -45596,7 +45809,7 @@ function findImportSpecifier(nodes, specifierName) {
|
|
|
45596
45809
|
});
|
|
45597
45810
|
}
|
|
45598
45811
|
|
|
45599
|
-
// bazel-out/
|
|
45812
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
|
|
45600
45813
|
function getCallDecoratorImport(typeChecker, decorator) {
|
|
45601
45814
|
if (!import_typescript111.default.isCallExpression(decorator.expression) || !import_typescript111.default.isIdentifier(decorator.expression.expression)) {
|
|
45602
45815
|
return null;
|
|
@@ -45605,7 +45818,7 @@ function getCallDecoratorImport(typeChecker, decorator) {
|
|
|
45605
45818
|
return getImportOfIdentifier(typeChecker, identifier);
|
|
45606
45819
|
}
|
|
45607
45820
|
|
|
45608
|
-
// bazel-out/
|
|
45821
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/ng_decorators.mjs
|
|
45609
45822
|
function getAngularDecorators(typeChecker, decorators) {
|
|
45610
45823
|
return decorators.map((node) => ({ node, importData: getCallDecoratorImport(typeChecker, node) })).filter(({ importData }) => importData && importData.importModule.startsWith("@angular/")).map(({ node, importData }) => ({
|
|
45611
45824
|
node,
|
|
@@ -45615,7 +45828,7 @@ function getAngularDecorators(typeChecker, decorators) {
|
|
|
45615
45828
|
}));
|
|
45616
45829
|
}
|
|
45617
45830
|
|
|
45618
|
-
// bazel-out/
|
|
45831
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/nodes.mjs
|
|
45619
45832
|
var import_typescript112 = __toESM(require("typescript"), 1);
|
|
45620
45833
|
function closestNode(node, predicate) {
|
|
45621
45834
|
let current = node.parent;
|
|
@@ -45628,7 +45841,7 @@ function closestNode(node, predicate) {
|
|
|
45628
45841
|
return null;
|
|
45629
45842
|
}
|
|
45630
45843
|
|
|
45631
|
-
// bazel-out/
|
|
45844
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/util.mjs
|
|
45632
45845
|
var import_path6 = require("path");
|
|
45633
45846
|
var import_typescript113 = __toESM(require("typescript"), 1);
|
|
45634
45847
|
var UniqueItemTracker = class {
|
|
@@ -45804,7 +46017,7 @@ function isClassReferenceInAngularModule(node, className, moduleName, typeChecke
|
|
|
45804
46017
|
}));
|
|
45805
46018
|
}
|
|
45806
46019
|
|
|
45807
|
-
// bazel-out/
|
|
46020
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/prune-modules.mjs
|
|
45808
46021
|
function pruneNgModules(program, host, basePath, rootFileNames, sourceFiles, printer, importRemapper, referenceLookupExcludedFiles) {
|
|
45809
46022
|
const filesToRemove = /* @__PURE__ */ new Set();
|
|
45810
46023
|
const tracker = new ChangeTracker(printer, importRemapper);
|
|
@@ -46003,14 +46216,14 @@ function findNgModuleDecorator(node, typeChecker) {
|
|
|
46003
46216
|
return decorators.find((decorator) => decorator.name === "NgModule") || null;
|
|
46004
46217
|
}
|
|
46005
46218
|
|
|
46006
|
-
// bazel-out/
|
|
46219
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/standalone-bootstrap.mjs
|
|
46007
46220
|
var import_path7 = require("path");
|
|
46008
46221
|
var import_typescript117 = __toESM(require("typescript"), 1);
|
|
46009
46222
|
|
|
46010
|
-
// bazel-out/
|
|
46223
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/to-standalone.mjs
|
|
46011
46224
|
var import_typescript116 = __toESM(require("typescript"), 1);
|
|
46012
46225
|
|
|
46013
|
-
// bazel-out/
|
|
46226
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/symbol.mjs
|
|
46014
46227
|
var import_typescript115 = __toESM(require("typescript"), 1);
|
|
46015
46228
|
function isReferenceToImport(typeChecker, node, importSpecifier) {
|
|
46016
46229
|
var _a2, _b2;
|
|
@@ -46019,7 +46232,7 @@ function isReferenceToImport(typeChecker, node, importSpecifier) {
|
|
|
46019
46232
|
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];
|
|
46020
46233
|
}
|
|
46021
46234
|
|
|
46022
|
-
// bazel-out/
|
|
46235
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/to-standalone.mjs
|
|
46023
46236
|
function toStandalone(sourceFiles, program, printer, fileImportRemapper, componentImportRemapper) {
|
|
46024
46237
|
const templateTypeChecker = program.compiler.getTemplateTypeChecker();
|
|
46025
46238
|
const typeChecker = program.getTsProgram().getTypeChecker();
|
|
@@ -46382,7 +46595,7 @@ function isStandaloneDeclaration(node, declarationsInMigration, templateTypeChec
|
|
|
46382
46595
|
return metadata != null && metadata.isStandalone;
|
|
46383
46596
|
}
|
|
46384
46597
|
|
|
46385
|
-
// bazel-out/
|
|
46598
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/standalone-bootstrap.mjs
|
|
46386
46599
|
function toStandaloneBootstrap(program, host, basePath, rootFileNames, sourceFiles, printer, importRemapper, referenceLookupExcludedFiles, componentImportRemapper) {
|
|
46387
46600
|
const tracker = new ChangeTracker(printer, importRemapper);
|
|
46388
46601
|
const typeChecker = program.getTsProgram().getTypeChecker();
|
|
@@ -46759,7 +46972,7 @@ function hasImport(program, rootFileNames, moduleName) {
|
|
|
46759
46972
|
return false;
|
|
46760
46973
|
}
|
|
46761
46974
|
|
|
46762
|
-
// bazel-out/
|
|
46975
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/index.mjs
|
|
46763
46976
|
var MigrationMode;
|
|
46764
46977
|
(function(MigrationMode2) {
|
|
46765
46978
|
MigrationMode2["toStandalone"] = "convert-to-standalone";
|