@angular/core 17.0.0-rc.0 → 17.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/src/application_init.mjs +3 -2
- package/esm2022/src/application_ref.mjs +3 -3
- package/esm2022/src/application_tokens.mjs +1 -11
- package/esm2022/src/core.mjs +2 -2
- package/esm2022/src/core_private_export.mjs +2 -2
- package/esm2022/src/defer/cleanup.mjs +23 -53
- package/esm2022/src/defer/dom_triggers.mjs +15 -15
- package/esm2022/src/defer/idle_scheduler.mjs +20 -17
- package/esm2022/src/defer/instructions.mjs +66 -45
- package/esm2022/src/defer/interfaces.mjs +3 -1
- package/esm2022/src/defer/timer_scheduler.mjs +43 -34
- package/esm2022/src/defer/utils.mjs +2 -14
- package/esm2022/src/di/r3_injector.mjs +6 -1
- package/esm2022/src/errors.mjs +1 -1
- package/esm2022/src/hydration/api.mjs +2 -3
- package/esm2022/src/hydration/skip_hydration.mjs +7 -7
- package/esm2022/src/linker/view_container_ref.mjs +4 -6
- package/esm2022/src/metadata/directives.mjs +1 -1
- package/esm2022/src/render3/after_render_hooks.mjs +25 -21
- package/esm2022/src/render3/debug/injector_profiler.mjs +26 -8
- package/esm2022/src/render3/instructions/change_detection.mjs +24 -3
- package/esm2022/src/render3/util/injector_discovery_utils.mjs +26 -2
- package/esm2022/src/render3/util/view_utils.mjs +1 -4
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/defer.mjs +6 -3
- package/esm2022/testing/src/logger.mjs +3 -3
- package/fesm2022/core.mjs +376 -329
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/primitives/signals.mjs +1 -1
- package/fesm2022/rxjs-interop.mjs +1 -1
- package/fesm2022/testing.mjs +6 -3
- package/fesm2022/testing.mjs.map +1 -1
- package/index.d.ts +12 -13
- 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 +788 -370
- 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 +988 -528
- package/schematics/ng-generate/control-flow-migration/bundle.js.map +4 -4
- package/schematics/ng-generate/standalone-migration/bundle.js +1047 -628
- package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
- package/testing/index.d.ts +1 -1
|
@@ -63,7 +63,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
63
63
|
});
|
|
64
64
|
};
|
|
65
65
|
|
|
66
|
-
// bazel-out/
|
|
66
|
+
// bazel-out/darwin-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/darwin-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/darwin-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/darwin-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/darwin-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/darwin-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/darwin-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/darwin-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/darwin-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/darwin-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/darwin-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/darwin-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/darwin-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/darwin-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/darwin-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/darwin-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/darwin-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/darwin-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/darwin-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/darwin-fastbuild/bin/packages/compiler/src/render3/r3_ast.mjs
|
|
3998
3998
|
var Comment = class {
|
|
3999
3999
|
constructor(value, sourceSpan) {
|
|
4000
4000
|
this.value = value;
|
|
@@ -4283,9 +4283,10 @@ var IfBlockBranch = class {
|
|
|
4283
4283
|
}
|
|
4284
4284
|
};
|
|
4285
4285
|
var UnknownBlock = class {
|
|
4286
|
-
constructor(name, sourceSpan) {
|
|
4286
|
+
constructor(name, sourceSpan, nameSpan) {
|
|
4287
4287
|
this.name = name;
|
|
4288
4288
|
this.sourceSpan = sourceSpan;
|
|
4289
|
+
this.nameSpan = nameSpan;
|
|
4289
4290
|
}
|
|
4290
4291
|
visit(visitor) {
|
|
4291
4292
|
return visitor.visitUnknownBlock(this);
|
|
@@ -4447,7 +4448,7 @@ function visitAll(visitor, nodes) {
|
|
|
4447
4448
|
return result;
|
|
4448
4449
|
}
|
|
4449
4450
|
|
|
4450
|
-
// bazel-out/
|
|
4451
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/i18n_ast.mjs
|
|
4451
4452
|
var Message = class {
|
|
4452
4453
|
constructor(nodes, placeholders, placeholderToMessage, meaning, description, customId) {
|
|
4453
4454
|
this.nodes = nodes;
|
|
@@ -4610,7 +4611,7 @@ var LocalizeMessageStringVisitor = class {
|
|
|
4610
4611
|
}
|
|
4611
4612
|
};
|
|
4612
4613
|
|
|
4613
|
-
// bazel-out/
|
|
4614
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/serializers/serializer.mjs
|
|
4614
4615
|
var Serializer = class {
|
|
4615
4616
|
createNameMapper(message) {
|
|
4616
4617
|
return null;
|
|
@@ -4662,7 +4663,7 @@ var SimplePlaceholderMapper = class extends RecurseVisitor {
|
|
|
4662
4663
|
}
|
|
4663
4664
|
};
|
|
4664
4665
|
|
|
4665
|
-
// bazel-out/
|
|
4666
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/serializers/xml_helper.mjs
|
|
4666
4667
|
var _Visitor = class {
|
|
4667
4668
|
visitTag(tag) {
|
|
4668
4669
|
const strAttrs = this._serializeAttributes(tag.attrs);
|
|
@@ -4750,7 +4751,7 @@ function escapeXml(text2) {
|
|
|
4750
4751
|
return _ESCAPED_CHARS.reduce((text3, entry) => text3.replace(entry[0], entry[1]), text2);
|
|
4751
4752
|
}
|
|
4752
4753
|
|
|
4753
|
-
// bazel-out/
|
|
4754
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/serializers/xmb.mjs
|
|
4754
4755
|
var _MESSAGES_TAG = "messagebundle";
|
|
4755
4756
|
var _MESSAGE_TAG = "msg";
|
|
4756
4757
|
var _PLACEHOLDER_TAG = "ph";
|
|
@@ -4893,7 +4894,7 @@ function toPublicName(internalName) {
|
|
|
4893
4894
|
return internalName.toUpperCase().replace(/[^A-Z0-9_]/g, "_");
|
|
4894
4895
|
}
|
|
4895
4896
|
|
|
4896
|
-
// bazel-out/
|
|
4897
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/i18n/util.mjs
|
|
4897
4898
|
var CLOSURE_TRANSLATION_VAR_PREFIX = "MSG_";
|
|
4898
4899
|
var TRANSLATION_VAR_PREFIX = "i18n_";
|
|
4899
4900
|
var I18N_ATTR = "i18n";
|
|
@@ -4995,7 +4996,7 @@ function declareI18nVariable(variable2) {
|
|
|
4995
4996
|
return new DeclareVarStmt(variable2.name, void 0, INFERRED_TYPE, void 0, variable2.sourceSpan);
|
|
4996
4997
|
}
|
|
4997
4998
|
|
|
4998
|
-
// bazel-out/
|
|
4999
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/util.mjs
|
|
4999
5000
|
var UNSAFE_OBJECT_KEY_NAME_REGEXP = /[-.]/;
|
|
5000
5001
|
var TEMPORARY_NAME = "_t";
|
|
5001
5002
|
var CONTEXT_NAME = "ctx";
|
|
@@ -5218,7 +5219,7 @@ function getInstructionStatements(instructions) {
|
|
|
5218
5219
|
return statements;
|
|
5219
5220
|
}
|
|
5220
5221
|
|
|
5221
|
-
// bazel-out/
|
|
5222
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/injectable_compiler_2.mjs
|
|
5222
5223
|
function compileInjectable(meta, resolveForwardRefs) {
|
|
5223
5224
|
let result = null;
|
|
5224
5225
|
const factoryMeta = {
|
|
@@ -5303,7 +5304,7 @@ function createFactoryFunction(type) {
|
|
|
5303
5304
|
return arrowFn([new FnParam("t", DYNAMIC_TYPE)], type.prop("\u0275fac").callFn([variable("t")]));
|
|
5304
5305
|
}
|
|
5305
5306
|
|
|
5306
|
-
// bazel-out/
|
|
5307
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/assertions.mjs
|
|
5307
5308
|
var UNUSABLE_INTERPOLATION_REGEXPS = [
|
|
5308
5309
|
/^\s*$/,
|
|
5309
5310
|
/[<>]/,
|
|
@@ -5325,7 +5326,7 @@ function assertInterpolationSymbols(identifier, value) {
|
|
|
5325
5326
|
}
|
|
5326
5327
|
}
|
|
5327
5328
|
|
|
5328
|
-
// bazel-out/
|
|
5329
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/interpolation_config.mjs
|
|
5329
5330
|
var InterpolationConfig = class {
|
|
5330
5331
|
static fromArray(markers) {
|
|
5331
5332
|
if (!markers) {
|
|
@@ -5341,7 +5342,7 @@ var InterpolationConfig = class {
|
|
|
5341
5342
|
};
|
|
5342
5343
|
var DEFAULT_INTERPOLATION_CONFIG = new InterpolationConfig("{{", "}}");
|
|
5343
5344
|
|
|
5344
|
-
// bazel-out/
|
|
5345
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/chars.mjs
|
|
5345
5346
|
var $EOF = 0;
|
|
5346
5347
|
var $BSPACE = 8;
|
|
5347
5348
|
var $TAB = 9;
|
|
@@ -5423,7 +5424,7 @@ function isQuote(code) {
|
|
|
5423
5424
|
return code === $SQ || code === $DQ || code === $BT;
|
|
5424
5425
|
}
|
|
5425
5426
|
|
|
5426
|
-
// bazel-out/
|
|
5427
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/parse_util.mjs
|
|
5427
5428
|
var ParseLocation = class {
|
|
5428
5429
|
constructor(file, offset, line, col) {
|
|
5429
5430
|
this.file = file;
|
|
@@ -5570,7 +5571,7 @@ function sanitizeIdentifier(name) {
|
|
|
5570
5571
|
return name.replace(/\W/g, "_");
|
|
5571
5572
|
}
|
|
5572
5573
|
|
|
5573
|
-
// bazel-out/
|
|
5574
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/output/abstract_js_emitter.mjs
|
|
5574
5575
|
var makeTemplateObjectPolyfill = '(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})';
|
|
5575
5576
|
var AbstractJsEmitterVisitor = class extends AbstractEmitterVisitor {
|
|
5576
5577
|
constructor() {
|
|
@@ -5663,7 +5664,7 @@ var AbstractJsEmitterVisitor = class extends AbstractEmitterVisitor {
|
|
|
5663
5664
|
}
|
|
5664
5665
|
};
|
|
5665
5666
|
|
|
5666
|
-
// bazel-out/
|
|
5667
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/output/output_jit_trusted_types.mjs
|
|
5667
5668
|
var policy;
|
|
5668
5669
|
function getPolicy() {
|
|
5669
5670
|
if (policy === void 0) {
|
|
@@ -5701,7 +5702,7 @@ function newTrustedFunctionForJIT(...args) {
|
|
|
5701
5702
|
return fn2.bind(_global);
|
|
5702
5703
|
}
|
|
5703
5704
|
|
|
5704
|
-
// bazel-out/
|
|
5705
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/output/output_jit.mjs
|
|
5705
5706
|
var JitEvaluator = class {
|
|
5706
5707
|
evaluateStatements(sourceUrl, statements, refResolver, createSourceMaps) {
|
|
5707
5708
|
const converter = new JitEmitterVisitor(refResolver);
|
|
@@ -5792,7 +5793,7 @@ function isUseStrictStatement(statement) {
|
|
|
5792
5793
|
return statement.isEquivalent(literal("use strict").toStmt());
|
|
5793
5794
|
}
|
|
5794
5795
|
|
|
5795
|
-
// bazel-out/
|
|
5796
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_injector_compiler.mjs
|
|
5796
5797
|
function compileInjector(meta) {
|
|
5797
5798
|
const definitionMap = new DefinitionMap();
|
|
5798
5799
|
if (meta.providers !== null) {
|
|
@@ -5809,7 +5810,7 @@ function createInjectorType(meta) {
|
|
|
5809
5810
|
return new ExpressionType(importExpr(Identifiers.InjectorDeclaration, [new ExpressionType(meta.type.type)]));
|
|
5810
5811
|
}
|
|
5811
5812
|
|
|
5812
|
-
// bazel-out/
|
|
5813
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_jit.mjs
|
|
5813
5814
|
var R3JitReflector = class {
|
|
5814
5815
|
constructor(context) {
|
|
5815
5816
|
this.context = context;
|
|
@@ -5825,7 +5826,7 @@ var R3JitReflector = class {
|
|
|
5825
5826
|
}
|
|
5826
5827
|
};
|
|
5827
5828
|
|
|
5828
|
-
// bazel-out/
|
|
5829
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_module_compiler.mjs
|
|
5829
5830
|
var R3SelectorScopeMode;
|
|
5830
5831
|
(function(R3SelectorScopeMode2) {
|
|
5831
5832
|
R3SelectorScopeMode2[R3SelectorScopeMode2["Inline"] = 0] = "Inline";
|
|
@@ -5966,7 +5967,7 @@ function tupleOfTypes(types) {
|
|
|
5966
5967
|
return types.length > 0 ? expressionType(literalArr(typeofTypes)) : NONE_TYPE;
|
|
5967
5968
|
}
|
|
5968
5969
|
|
|
5969
|
-
// bazel-out/
|
|
5970
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_pipe_compiler.mjs
|
|
5970
5971
|
function compilePipeFromMetadata(metadata) {
|
|
5971
5972
|
const definitionMapValues = [];
|
|
5972
5973
|
definitionMapValues.push({ key: "name", value: literal(metadata.pipeName), quoted: false });
|
|
@@ -5987,7 +5988,7 @@ function createPipeType(metadata) {
|
|
|
5987
5988
|
]));
|
|
5988
5989
|
}
|
|
5989
5990
|
|
|
5990
|
-
// bazel-out/
|
|
5991
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/api.mjs
|
|
5991
5992
|
var R3TemplateDependencyKind;
|
|
5992
5993
|
(function(R3TemplateDependencyKind2) {
|
|
5993
5994
|
R3TemplateDependencyKind2[R3TemplateDependencyKind2["Directive"] = 0] = "Directive";
|
|
@@ -5995,7 +5996,7 @@ var R3TemplateDependencyKind;
|
|
|
5995
5996
|
R3TemplateDependencyKind2[R3TemplateDependencyKind2["NgModule"] = 2] = "NgModule";
|
|
5996
5997
|
})(R3TemplateDependencyKind || (R3TemplateDependencyKind = {}));
|
|
5997
5998
|
|
|
5998
|
-
// bazel-out/
|
|
5999
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/expression_parser/ast.mjs
|
|
5999
6000
|
var ParserError = class {
|
|
6000
6001
|
constructor(message, input, errLocation, ctxLocation) {
|
|
6001
6002
|
this.input = input;
|
|
@@ -6661,7 +6662,7 @@ var BoundElementProperty = class {
|
|
|
6661
6662
|
}
|
|
6662
6663
|
};
|
|
6663
6664
|
|
|
6664
|
-
// bazel-out/
|
|
6665
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/compiler_util/expression_converter.mjs
|
|
6665
6666
|
var _EventHandlerVars = class {
|
|
6666
6667
|
};
|
|
6667
6668
|
var EventHandlerVars = _EventHandlerVars;
|
|
@@ -7302,7 +7303,7 @@ var BuiltinFunctionCall = class extends Call {
|
|
|
7302
7303
|
}
|
|
7303
7304
|
};
|
|
7304
7305
|
|
|
7305
|
-
// bazel-out/
|
|
7306
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/schema/dom_security_schema.mjs
|
|
7306
7307
|
var _SECURITY_SCHEMA;
|
|
7307
7308
|
function SECURITY_SCHEMA() {
|
|
7308
7309
|
if (!_SECURITY_SCHEMA) {
|
|
@@ -7360,7 +7361,7 @@ function isIframeSecuritySensitiveAttr(attrName) {
|
|
|
7360
7361
|
return IFRAME_SECURITY_SENSITIVE_ATTRS.has(attrName.toLowerCase());
|
|
7361
7362
|
}
|
|
7362
7363
|
|
|
7363
|
-
// bazel-out/
|
|
7364
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/shadow_css.mjs
|
|
7364
7365
|
var animationKeywords = /* @__PURE__ */ new Set([
|
|
7365
7366
|
"inherit",
|
|
7366
7367
|
"initial",
|
|
@@ -7831,7 +7832,7 @@ function repeatGroups(groups, multiples) {
|
|
|
7831
7832
|
}
|
|
7832
7833
|
}
|
|
7833
7834
|
|
|
7834
|
-
// bazel-out/
|
|
7835
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/enums.mjs
|
|
7835
7836
|
var OpKind;
|
|
7836
7837
|
(function(OpKind2) {
|
|
7837
7838
|
OpKind2[OpKind2["ListEnd"] = 0] = "ListEnd";
|
|
@@ -7868,44 +7869,54 @@ var OpKind;
|
|
|
7868
7869
|
OpKind2[OpKind2["Namespace"] = 31] = "Namespace";
|
|
7869
7870
|
OpKind2[OpKind2["ProjectionDef"] = 32] = "ProjectionDef";
|
|
7870
7871
|
OpKind2[OpKind2["Projection"] = 33] = "Projection";
|
|
7871
|
-
OpKind2[OpKind2["
|
|
7872
|
-
OpKind2[OpKind2["
|
|
7873
|
-
OpKind2[OpKind2["
|
|
7874
|
-
OpKind2[OpKind2["
|
|
7875
|
-
OpKind2[OpKind2["
|
|
7876
|
-
OpKind2[OpKind2["
|
|
7877
|
-
OpKind2[OpKind2["
|
|
7872
|
+
OpKind2[OpKind2["RepeaterCreate"] = 34] = "RepeaterCreate";
|
|
7873
|
+
OpKind2[OpKind2["Repeater"] = 35] = "Repeater";
|
|
7874
|
+
OpKind2[OpKind2["I18nStart"] = 36] = "I18nStart";
|
|
7875
|
+
OpKind2[OpKind2["I18n"] = 37] = "I18n";
|
|
7876
|
+
OpKind2[OpKind2["I18nEnd"] = 38] = "I18nEnd";
|
|
7877
|
+
OpKind2[OpKind2["I18nExpression"] = 39] = "I18nExpression";
|
|
7878
|
+
OpKind2[OpKind2["I18nApply"] = 40] = "I18nApply";
|
|
7879
|
+
OpKind2[OpKind2["Icu"] = 41] = "Icu";
|
|
7880
|
+
OpKind2[OpKind2["IcuUpdate"] = 42] = "IcuUpdate";
|
|
7878
7881
|
})(OpKind || (OpKind = {}));
|
|
7879
7882
|
var ExpressionKind;
|
|
7880
7883
|
(function(ExpressionKind2) {
|
|
7881
7884
|
ExpressionKind2[ExpressionKind2["LexicalRead"] = 0] = "LexicalRead";
|
|
7882
7885
|
ExpressionKind2[ExpressionKind2["Context"] = 1] = "Context";
|
|
7883
|
-
ExpressionKind2[ExpressionKind2["
|
|
7884
|
-
ExpressionKind2[ExpressionKind2["
|
|
7885
|
-
ExpressionKind2[ExpressionKind2["
|
|
7886
|
-
ExpressionKind2[ExpressionKind2["
|
|
7887
|
-
ExpressionKind2[ExpressionKind2["
|
|
7888
|
-
ExpressionKind2[ExpressionKind2["
|
|
7889
|
-
ExpressionKind2[ExpressionKind2["
|
|
7890
|
-
ExpressionKind2[ExpressionKind2["
|
|
7891
|
-
ExpressionKind2[ExpressionKind2["
|
|
7892
|
-
ExpressionKind2[ExpressionKind2["
|
|
7893
|
-
ExpressionKind2[ExpressionKind2["
|
|
7894
|
-
ExpressionKind2[ExpressionKind2["
|
|
7895
|
-
ExpressionKind2[ExpressionKind2["
|
|
7896
|
-
ExpressionKind2[ExpressionKind2["
|
|
7897
|
-
ExpressionKind2[ExpressionKind2["
|
|
7898
|
-
ExpressionKind2[ExpressionKind2["
|
|
7899
|
-
ExpressionKind2[ExpressionKind2["
|
|
7900
|
-
ExpressionKind2[ExpressionKind2["
|
|
7901
|
-
ExpressionKind2[ExpressionKind2["
|
|
7902
|
-
ExpressionKind2[ExpressionKind2["
|
|
7886
|
+
ExpressionKind2[ExpressionKind2["TrackContext"] = 2] = "TrackContext";
|
|
7887
|
+
ExpressionKind2[ExpressionKind2["ReadVariable"] = 3] = "ReadVariable";
|
|
7888
|
+
ExpressionKind2[ExpressionKind2["NextContext"] = 4] = "NextContext";
|
|
7889
|
+
ExpressionKind2[ExpressionKind2["Reference"] = 5] = "Reference";
|
|
7890
|
+
ExpressionKind2[ExpressionKind2["GetCurrentView"] = 6] = "GetCurrentView";
|
|
7891
|
+
ExpressionKind2[ExpressionKind2["RestoreView"] = 7] = "RestoreView";
|
|
7892
|
+
ExpressionKind2[ExpressionKind2["ResetView"] = 8] = "ResetView";
|
|
7893
|
+
ExpressionKind2[ExpressionKind2["PureFunctionExpr"] = 9] = "PureFunctionExpr";
|
|
7894
|
+
ExpressionKind2[ExpressionKind2["PureFunctionParameterExpr"] = 10] = "PureFunctionParameterExpr";
|
|
7895
|
+
ExpressionKind2[ExpressionKind2["PipeBinding"] = 11] = "PipeBinding";
|
|
7896
|
+
ExpressionKind2[ExpressionKind2["PipeBindingVariadic"] = 12] = "PipeBindingVariadic";
|
|
7897
|
+
ExpressionKind2[ExpressionKind2["SafePropertyRead"] = 13] = "SafePropertyRead";
|
|
7898
|
+
ExpressionKind2[ExpressionKind2["SafeKeyedRead"] = 14] = "SafeKeyedRead";
|
|
7899
|
+
ExpressionKind2[ExpressionKind2["SafeInvokeFunction"] = 15] = "SafeInvokeFunction";
|
|
7900
|
+
ExpressionKind2[ExpressionKind2["SafeTernaryExpr"] = 16] = "SafeTernaryExpr";
|
|
7901
|
+
ExpressionKind2[ExpressionKind2["EmptyExpr"] = 17] = "EmptyExpr";
|
|
7902
|
+
ExpressionKind2[ExpressionKind2["AssignTemporaryExpr"] = 18] = "AssignTemporaryExpr";
|
|
7903
|
+
ExpressionKind2[ExpressionKind2["ReadTemporaryExpr"] = 19] = "ReadTemporaryExpr";
|
|
7904
|
+
ExpressionKind2[ExpressionKind2["SanitizerExpr"] = 20] = "SanitizerExpr";
|
|
7905
|
+
ExpressionKind2[ExpressionKind2["SlotLiteralExpr"] = 21] = "SlotLiteralExpr";
|
|
7906
|
+
ExpressionKind2[ExpressionKind2["ConditionalCase"] = 22] = "ConditionalCase";
|
|
7907
|
+
ExpressionKind2[ExpressionKind2["DerivedRepeaterVar"] = 23] = "DerivedRepeaterVar";
|
|
7903
7908
|
})(ExpressionKind || (ExpressionKind = {}));
|
|
7909
|
+
var VariableFlags;
|
|
7910
|
+
(function(VariableFlags2) {
|
|
7911
|
+
VariableFlags2[VariableFlags2["None"] = 0] = "None";
|
|
7912
|
+
VariableFlags2[VariableFlags2["AlwaysInline"] = 1] = "AlwaysInline";
|
|
7913
|
+
})(VariableFlags || (VariableFlags = {}));
|
|
7904
7914
|
var SemanticVariableKind;
|
|
7905
7915
|
(function(SemanticVariableKind2) {
|
|
7906
7916
|
SemanticVariableKind2[SemanticVariableKind2["Context"] = 0] = "Context";
|
|
7907
7917
|
SemanticVariableKind2[SemanticVariableKind2["Identifier"] = 1] = "Identifier";
|
|
7908
7918
|
SemanticVariableKind2[SemanticVariableKind2["SavedView"] = 2] = "SavedView";
|
|
7919
|
+
SemanticVariableKind2[SemanticVariableKind2["Alias"] = 3] = "Alias";
|
|
7909
7920
|
})(SemanticVariableKind || (SemanticVariableKind = {}));
|
|
7910
7921
|
var CompatibilityMode;
|
|
7911
7922
|
(function(CompatibilityMode2) {
|
|
@@ -7943,7 +7954,7 @@ var I18nParamResolutionTime;
|
|
|
7943
7954
|
I18nParamResolutionTime2[I18nParamResolutionTime2["Postproccessing"] = 1] = "Postproccessing";
|
|
7944
7955
|
})(I18nParamResolutionTime || (I18nParamResolutionTime = {}));
|
|
7945
7956
|
|
|
7946
|
-
// bazel-out/
|
|
7957
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/traits.mjs
|
|
7947
7958
|
var ConsumesSlot = Symbol("ConsumesSlot");
|
|
7948
7959
|
var DependsOnSlotContext = Symbol("DependsOnSlotContext");
|
|
7949
7960
|
var UsesSlotIndex = Symbol("UsesSlotIndex");
|
|
@@ -7992,19 +8003,20 @@ function hasConstTrait(value) {
|
|
|
7992
8003
|
return value[HasConst] === true;
|
|
7993
8004
|
}
|
|
7994
8005
|
|
|
7995
|
-
// bazel-out/
|
|
8006
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/shared.mjs
|
|
7996
8007
|
function createStatementOp(statement) {
|
|
7997
8008
|
return __spreadValues({
|
|
7998
8009
|
kind: OpKind.Statement,
|
|
7999
8010
|
statement
|
|
8000
8011
|
}, NEW_OP);
|
|
8001
8012
|
}
|
|
8002
|
-
function createVariableOp(xref, variable2, initializer) {
|
|
8013
|
+
function createVariableOp(xref, variable2, initializer, flags) {
|
|
8003
8014
|
return __spreadValues({
|
|
8004
8015
|
kind: OpKind.Variable,
|
|
8005
8016
|
xref,
|
|
8006
8017
|
variable: variable2,
|
|
8007
|
-
initializer
|
|
8018
|
+
initializer,
|
|
8019
|
+
flags
|
|
8008
8020
|
}, NEW_OP);
|
|
8009
8021
|
}
|
|
8010
8022
|
var NEW_OP = {
|
|
@@ -8013,7 +8025,7 @@ var NEW_OP = {
|
|
|
8013
8025
|
next: null
|
|
8014
8026
|
};
|
|
8015
8027
|
|
|
8016
|
-
// bazel-out/
|
|
8028
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/update.mjs
|
|
8017
8029
|
function createInterpolateTextOp(xref, interpolation, i18nPlaceholders, sourceSpan) {
|
|
8018
8030
|
return __spreadValues(__spreadValues(__spreadValues({
|
|
8019
8031
|
kind: OpKind.InterpolateText,
|
|
@@ -8122,6 +8134,14 @@ function createConditionalOp(target, test, conditions, sourceSpan) {
|
|
|
8122
8134
|
contextValue: null
|
|
8123
8135
|
}, NEW_OP), TRAIT_USES_SLOT_INDEX), TRAIT_DEPENDS_ON_SLOT_CONTEXT), TRAIT_CONSUMES_VARS);
|
|
8124
8136
|
}
|
|
8137
|
+
function createRepeaterOp(repeaterCreate2, collection, sourceSpan) {
|
|
8138
|
+
return __spreadValues(__spreadValues({
|
|
8139
|
+
kind: OpKind.Repeater,
|
|
8140
|
+
target: repeaterCreate2,
|
|
8141
|
+
collection,
|
|
8142
|
+
sourceSpan
|
|
8143
|
+
}, NEW_OP), TRAIT_USES_SLOT_INDEX);
|
|
8144
|
+
}
|
|
8125
8145
|
function createI18nExpressionOp(owner, expression, i18nPlaceholder, resolutionTime, sourceSpan) {
|
|
8126
8146
|
return __spreadValues(__spreadValues(__spreadValues({
|
|
8127
8147
|
kind: OpKind.I18nExpression,
|
|
@@ -8148,7 +8168,7 @@ function createIcuUpdateOp(xref, sourceSpan) {
|
|
|
8148
8168
|
}, NEW_OP);
|
|
8149
8169
|
}
|
|
8150
8170
|
|
|
8151
|
-
// bazel-out/
|
|
8171
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/expression.mjs
|
|
8152
8172
|
var _a;
|
|
8153
8173
|
var _b;
|
|
8154
8174
|
var _c;
|
|
@@ -8175,8 +8195,8 @@ var LexicalReadExpr = class extends ExpressionBase {
|
|
|
8175
8195
|
}
|
|
8176
8196
|
visitExpression(visitor, context) {
|
|
8177
8197
|
}
|
|
8178
|
-
isEquivalent() {
|
|
8179
|
-
return
|
|
8198
|
+
isEquivalent(other) {
|
|
8199
|
+
return this.name === other.name;
|
|
8180
8200
|
}
|
|
8181
8201
|
isConstant() {
|
|
8182
8202
|
return false;
|
|
@@ -8236,6 +8256,26 @@ var ContextExpr = class extends ExpressionBase {
|
|
|
8236
8256
|
return new ContextExpr(this.view);
|
|
8237
8257
|
}
|
|
8238
8258
|
};
|
|
8259
|
+
var TrackContextExpr = class extends ExpressionBase {
|
|
8260
|
+
constructor(view) {
|
|
8261
|
+
super();
|
|
8262
|
+
this.view = view;
|
|
8263
|
+
this.kind = ExpressionKind.TrackContext;
|
|
8264
|
+
}
|
|
8265
|
+
visitExpression() {
|
|
8266
|
+
}
|
|
8267
|
+
isEquivalent(e) {
|
|
8268
|
+
return e instanceof TrackContextExpr && e.view === this.view;
|
|
8269
|
+
}
|
|
8270
|
+
isConstant() {
|
|
8271
|
+
return false;
|
|
8272
|
+
}
|
|
8273
|
+
transformInternalExpressions() {
|
|
8274
|
+
}
|
|
8275
|
+
clone() {
|
|
8276
|
+
return new TrackContextExpr(this.view);
|
|
8277
|
+
}
|
|
8278
|
+
};
|
|
8239
8279
|
var NextContextExpr = class extends ExpressionBase {
|
|
8240
8280
|
constructor() {
|
|
8241
8281
|
super();
|
|
@@ -8750,6 +8790,34 @@ var ConditionalCaseExpr = class extends ExpressionBase {
|
|
|
8750
8790
|
}
|
|
8751
8791
|
}
|
|
8752
8792
|
};
|
|
8793
|
+
var DerivedRepeaterVarIdentity;
|
|
8794
|
+
(function(DerivedRepeaterVarIdentity2) {
|
|
8795
|
+
DerivedRepeaterVarIdentity2[DerivedRepeaterVarIdentity2["First"] = 0] = "First";
|
|
8796
|
+
DerivedRepeaterVarIdentity2[DerivedRepeaterVarIdentity2["Last"] = 1] = "Last";
|
|
8797
|
+
DerivedRepeaterVarIdentity2[DerivedRepeaterVarIdentity2["Even"] = 2] = "Even";
|
|
8798
|
+
DerivedRepeaterVarIdentity2[DerivedRepeaterVarIdentity2["Odd"] = 3] = "Odd";
|
|
8799
|
+
})(DerivedRepeaterVarIdentity || (DerivedRepeaterVarIdentity = {}));
|
|
8800
|
+
var DerivedRepeaterVarExpr = class extends ExpressionBase {
|
|
8801
|
+
constructor(xref, identity) {
|
|
8802
|
+
super();
|
|
8803
|
+
this.xref = xref;
|
|
8804
|
+
this.identity = identity;
|
|
8805
|
+
this.kind = ExpressionKind.DerivedRepeaterVar;
|
|
8806
|
+
}
|
|
8807
|
+
transformInternalExpressions(transform2, flags) {
|
|
8808
|
+
}
|
|
8809
|
+
visitExpression(visitor, context) {
|
|
8810
|
+
}
|
|
8811
|
+
isEquivalent(e) {
|
|
8812
|
+
return e instanceof DerivedRepeaterVarExpr && e.identity === this.identity && e.xref === this.xref;
|
|
8813
|
+
}
|
|
8814
|
+
isConstant() {
|
|
8815
|
+
return false;
|
|
8816
|
+
}
|
|
8817
|
+
clone() {
|
|
8818
|
+
return new DerivedRepeaterVarExpr(this.xref, this.identity);
|
|
8819
|
+
}
|
|
8820
|
+
};
|
|
8753
8821
|
function visitExpressionsInOp(op, visitor) {
|
|
8754
8822
|
transformExpressionsInOp(op, (expr, flags) => {
|
|
8755
8823
|
visitor(expr, flags);
|
|
@@ -8829,6 +8897,15 @@ function transformExpressionsInOp(op, transform2, flags) {
|
|
|
8829
8897
|
transformExpressionsInStatement(statement, transform2, flags);
|
|
8830
8898
|
}
|
|
8831
8899
|
break;
|
|
8900
|
+
case OpKind.RepeaterCreate:
|
|
8901
|
+
op.track = transformExpressionsInExpression(op.track, transform2, flags);
|
|
8902
|
+
if (op.trackByFn !== null) {
|
|
8903
|
+
op.trackByFn = transformExpressionsInExpression(op.trackByFn, transform2, flags);
|
|
8904
|
+
}
|
|
8905
|
+
break;
|
|
8906
|
+
case OpKind.Repeater:
|
|
8907
|
+
op.collection = transformExpressionsInExpression(op.collection, transform2, flags);
|
|
8908
|
+
break;
|
|
8832
8909
|
case OpKind.I18n:
|
|
8833
8910
|
case OpKind.I18nStart:
|
|
8834
8911
|
for (const [placeholder, expression] of op.params) {
|
|
@@ -8938,7 +9015,7 @@ function isStringLiteral(expr) {
|
|
|
8938
9015
|
return expr instanceof LiteralExpr && typeof expr.value === "string";
|
|
8939
9016
|
}
|
|
8940
9017
|
|
|
8941
|
-
// bazel-out/
|
|
9018
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/operations.mjs
|
|
8942
9019
|
var _OpList = class {
|
|
8943
9020
|
constructor() {
|
|
8944
9021
|
this.debugListId = _OpList.nextListId++;
|
|
@@ -9129,14 +9206,14 @@ var OpList = _OpList;
|
|
|
9129
9206
|
_OpList.nextListId = 0;
|
|
9130
9207
|
})();
|
|
9131
9208
|
|
|
9132
|
-
// bazel-out/
|
|
9209
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/create.mjs
|
|
9133
9210
|
var elementContainerOpKinds = /* @__PURE__ */ new Set([
|
|
9134
9211
|
OpKind.Element,
|
|
9135
9212
|
OpKind.ElementStart,
|
|
9136
9213
|
OpKind.Container,
|
|
9137
9214
|
OpKind.ContainerStart,
|
|
9138
9215
|
OpKind.Template,
|
|
9139
|
-
OpKind.
|
|
9216
|
+
OpKind.RepeaterCreate
|
|
9140
9217
|
]);
|
|
9141
9218
|
function isElementOrContainerOp(op) {
|
|
9142
9219
|
return elementContainerOpKinds.has(op.kind);
|
|
@@ -9170,6 +9247,27 @@ function createTemplateOp(xref, tag, namespace, generatedInBlock, i18nPlaceholde
|
|
|
9170
9247
|
sourceSpan
|
|
9171
9248
|
}, TRAIT_CONSUMES_SLOT), NEW_OP);
|
|
9172
9249
|
}
|
|
9250
|
+
function createRepeaterCreateOp(primaryView, emptyView, track, varNames, sourceSpan) {
|
|
9251
|
+
return __spreadProps(__spreadValues(__spreadValues({
|
|
9252
|
+
kind: OpKind.RepeaterCreate,
|
|
9253
|
+
attributes: null,
|
|
9254
|
+
xref: primaryView,
|
|
9255
|
+
emptyView,
|
|
9256
|
+
track,
|
|
9257
|
+
trackByFn: null,
|
|
9258
|
+
tag: "For",
|
|
9259
|
+
namespace: Namespace.HTML,
|
|
9260
|
+
nonBindable: false,
|
|
9261
|
+
localRefs: [],
|
|
9262
|
+
decls: null,
|
|
9263
|
+
vars: null,
|
|
9264
|
+
varNames,
|
|
9265
|
+
usesComponentInstance: false,
|
|
9266
|
+
sourceSpan
|
|
9267
|
+
}, TRAIT_CONSUMES_SLOT), NEW_OP), {
|
|
9268
|
+
numSlotsUsed: emptyView === null ? 2 : 3
|
|
9269
|
+
});
|
|
9270
|
+
}
|
|
9173
9271
|
function createElementEndOp(xref, sourceSpan) {
|
|
9174
9272
|
return __spreadValues({
|
|
9175
9273
|
kind: OpKind.ElementEnd,
|
|
@@ -9237,16 +9335,15 @@ function createProjectionDefOp(def) {
|
|
|
9237
9335
|
def
|
|
9238
9336
|
}, NEW_OP);
|
|
9239
9337
|
}
|
|
9240
|
-
function createProjectionOp(xref, selector) {
|
|
9338
|
+
function createProjectionOp(xref, selector, sourceSpan) {
|
|
9241
9339
|
return __spreadValues(__spreadValues({
|
|
9242
9340
|
kind: OpKind.Projection,
|
|
9243
9341
|
xref,
|
|
9244
9342
|
selector,
|
|
9245
9343
|
projectionSlotIndex: 0,
|
|
9246
|
-
attributes:
|
|
9344
|
+
attributes: [],
|
|
9247
9345
|
localRefs: [],
|
|
9248
|
-
|
|
9249
|
-
sourceSpan: null
|
|
9346
|
+
sourceSpan
|
|
9250
9347
|
}, NEW_OP), TRAIT_CONSUMES_SLOT);
|
|
9251
9348
|
}
|
|
9252
9349
|
function createExtractedAttributeOp(target, bindingKind, name, expression) {
|
|
@@ -9328,7 +9425,7 @@ function literalOrArrayLiteral(value) {
|
|
|
9328
9425
|
return literal(value, INFERRED_TYPE);
|
|
9329
9426
|
}
|
|
9330
9427
|
|
|
9331
|
-
// bazel-out/
|
|
9428
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/host.mjs
|
|
9332
9429
|
function createHostPropertyOp(name, expression, isAnimationTrigger, sourceSpan) {
|
|
9333
9430
|
return __spreadValues(__spreadValues({
|
|
9334
9431
|
kind: OpKind.HostProperty,
|
|
@@ -9339,10 +9436,10 @@ function createHostPropertyOp(name, expression, isAnimationTrigger, sourceSpan)
|
|
|
9339
9436
|
}, TRAIT_CONSUMES_VARS), NEW_OP);
|
|
9340
9437
|
}
|
|
9341
9438
|
|
|
9342
|
-
// bazel-out/
|
|
9439
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/variable.mjs
|
|
9343
9440
|
var CTX_REF = "CTX_REF_MARKER";
|
|
9344
9441
|
|
|
9345
|
-
// bazel-out/
|
|
9442
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/compilation.mjs
|
|
9346
9443
|
var CompilationJobKind;
|
|
9347
9444
|
(function(CompilationJobKind2) {
|
|
9348
9445
|
CompilationJobKind2[CompilationJobKind2["Tmpl"] = 0] = "Tmpl";
|
|
@@ -9425,6 +9522,7 @@ var ViewCompilationUnit = class extends CompilationUnit {
|
|
|
9425
9522
|
this.job = job;
|
|
9426
9523
|
this.parent = parent;
|
|
9427
9524
|
this.contextVariables = /* @__PURE__ */ new Map();
|
|
9525
|
+
this.aliases = /* @__PURE__ */ new Set();
|
|
9428
9526
|
this.decls = null;
|
|
9429
9527
|
}
|
|
9430
9528
|
};
|
|
@@ -9447,107 +9545,7 @@ var HostBindingCompilationUnit = class extends CompilationUnit {
|
|
|
9447
9545
|
}
|
|
9448
9546
|
};
|
|
9449
9547
|
|
|
9450
|
-
// bazel-out/
|
|
9451
|
-
function phaseVarCounting(job) {
|
|
9452
|
-
for (const unit of job.units) {
|
|
9453
|
-
let varCount = 0;
|
|
9454
|
-
for (const op of unit.ops()) {
|
|
9455
|
-
if (hasConsumesVarsTrait(op)) {
|
|
9456
|
-
varCount += varsUsedByOp(op);
|
|
9457
|
-
}
|
|
9458
|
-
}
|
|
9459
|
-
for (const op of unit.ops()) {
|
|
9460
|
-
visitExpressionsInOp(op, (expr) => {
|
|
9461
|
-
if (!isIrExpression(expr)) {
|
|
9462
|
-
return;
|
|
9463
|
-
}
|
|
9464
|
-
if (hasUsesVarOffsetTrait(expr)) {
|
|
9465
|
-
expr.varOffset = varCount;
|
|
9466
|
-
}
|
|
9467
|
-
if (hasConsumesVarsTrait(expr)) {
|
|
9468
|
-
varCount += varsUsedByIrExpression(expr);
|
|
9469
|
-
}
|
|
9470
|
-
});
|
|
9471
|
-
}
|
|
9472
|
-
unit.vars = varCount;
|
|
9473
|
-
}
|
|
9474
|
-
if (job instanceof ComponentCompilationJob) {
|
|
9475
|
-
for (const unit of job.units) {
|
|
9476
|
-
for (const op of unit.create) {
|
|
9477
|
-
if (op.kind !== OpKind.Template) {
|
|
9478
|
-
continue;
|
|
9479
|
-
}
|
|
9480
|
-
const childView = job.views.get(op.xref);
|
|
9481
|
-
op.vars = childView.vars;
|
|
9482
|
-
}
|
|
9483
|
-
}
|
|
9484
|
-
}
|
|
9485
|
-
}
|
|
9486
|
-
function varsUsedByOp(op) {
|
|
9487
|
-
let slots;
|
|
9488
|
-
switch (op.kind) {
|
|
9489
|
-
case OpKind.Property:
|
|
9490
|
-
case OpKind.HostProperty:
|
|
9491
|
-
case OpKind.Attribute:
|
|
9492
|
-
slots = 1;
|
|
9493
|
-
if (op.expression instanceof Interpolation2) {
|
|
9494
|
-
slots += op.expression.expressions.length;
|
|
9495
|
-
}
|
|
9496
|
-
return slots;
|
|
9497
|
-
case OpKind.StyleProp:
|
|
9498
|
-
case OpKind.ClassProp:
|
|
9499
|
-
case OpKind.StyleMap:
|
|
9500
|
-
case OpKind.ClassMap:
|
|
9501
|
-
slots = 2;
|
|
9502
|
-
if (op.expression instanceof Interpolation2) {
|
|
9503
|
-
slots += op.expression.expressions.length;
|
|
9504
|
-
}
|
|
9505
|
-
return slots;
|
|
9506
|
-
case OpKind.InterpolateText:
|
|
9507
|
-
return op.interpolation.expressions.length;
|
|
9508
|
-
case OpKind.I18nExpression:
|
|
9509
|
-
case OpKind.Conditional:
|
|
9510
|
-
return 1;
|
|
9511
|
-
default:
|
|
9512
|
-
throw new Error(`Unhandled op: ${OpKind[op.kind]}`);
|
|
9513
|
-
}
|
|
9514
|
-
}
|
|
9515
|
-
function varsUsedByIrExpression(expr) {
|
|
9516
|
-
switch (expr.kind) {
|
|
9517
|
-
case ExpressionKind.PureFunctionExpr:
|
|
9518
|
-
return 1 + expr.args.length;
|
|
9519
|
-
case ExpressionKind.PipeBinding:
|
|
9520
|
-
return 1 + expr.args.length;
|
|
9521
|
-
case ExpressionKind.PipeBindingVariadic:
|
|
9522
|
-
return 1 + expr.numArgs;
|
|
9523
|
-
default:
|
|
9524
|
-
throw new Error(`AssertionError: unhandled ConsumesVarsTrait expression ${expr.constructor.name}`);
|
|
9525
|
-
}
|
|
9526
|
-
}
|
|
9527
|
-
|
|
9528
|
-
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/align_pipe_variadic_var_offset.mjs
|
|
9529
|
-
function phaseAlignPipeVariadicVarOffset(job) {
|
|
9530
|
-
for (const unit of job.units) {
|
|
9531
|
-
for (const op of unit.update) {
|
|
9532
|
-
visitExpressionsInOp(op, (expr) => {
|
|
9533
|
-
if (!(expr instanceof PipeBindingVariadicExpr)) {
|
|
9534
|
-
return expr;
|
|
9535
|
-
}
|
|
9536
|
-
if (!(expr.args instanceof PureFunctionExpr)) {
|
|
9537
|
-
return expr;
|
|
9538
|
-
}
|
|
9539
|
-
if (expr.varOffset === null || expr.args.varOffset === null) {
|
|
9540
|
-
throw new Error(`Must run after variable counting`);
|
|
9541
|
-
}
|
|
9542
|
-
expr.varOffset = expr.args.varOffset;
|
|
9543
|
-
expr.args.varOffset = expr.varOffset + varsUsedByIrExpression(expr);
|
|
9544
|
-
return void 0;
|
|
9545
|
-
});
|
|
9546
|
-
}
|
|
9547
|
-
}
|
|
9548
|
-
}
|
|
9549
|
-
|
|
9550
|
-
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/any_cast.mjs
|
|
9548
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/any_cast.mjs
|
|
9551
9549
|
function phaseFindAnyCasts(job) {
|
|
9552
9550
|
for (const unit of job.units) {
|
|
9553
9551
|
for (const op of unit.ops()) {
|
|
@@ -9565,7 +9563,7 @@ function removeAnys(e) {
|
|
|
9565
9563
|
return e;
|
|
9566
9564
|
}
|
|
9567
9565
|
|
|
9568
|
-
// bazel-out/
|
|
9566
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/apply_i18n_expressions.mjs
|
|
9569
9567
|
function phaseApplyI18nExpressions(job) {
|
|
9570
9568
|
for (const unit of job.units) {
|
|
9571
9569
|
for (const op of unit.update) {
|
|
@@ -9586,7 +9584,7 @@ function needsApplication(op) {
|
|
|
9586
9584
|
return false;
|
|
9587
9585
|
}
|
|
9588
9586
|
|
|
9589
|
-
// bazel-out/
|
|
9587
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/assign_i18n_slot_dependencies.mjs
|
|
9590
9588
|
function phaseAssignI18nSlotDependencies(job) {
|
|
9591
9589
|
const i18nLastSlotConsumers = /* @__PURE__ */ new Map();
|
|
9592
9590
|
let lastSlotConsumer = null;
|
|
@@ -9607,22 +9605,34 @@ function phaseAssignI18nSlotDependencies(job) {
|
|
|
9607
9605
|
}
|
|
9608
9606
|
}
|
|
9609
9607
|
|
|
9610
|
-
// bazel-out/
|
|
9611
|
-
function
|
|
9612
|
-
const
|
|
9608
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/collapse_singleton_interpolations.mjs
|
|
9609
|
+
function phaseCollapseSingletonInterpolations(job) {
|
|
9610
|
+
for (const unit of job.units) {
|
|
9611
|
+
for (const op of unit.update) {
|
|
9612
|
+
const eligibleOpKind = op.kind === OpKind.Attribute;
|
|
9613
|
+
if (eligibleOpKind && op.expression instanceof Interpolation2 && op.expression.strings.length === 2 && op.expression.strings.every((s) => s === "")) {
|
|
9614
|
+
op.expression = op.expression.expressions[0];
|
|
9615
|
+
}
|
|
9616
|
+
}
|
|
9617
|
+
}
|
|
9618
|
+
}
|
|
9619
|
+
|
|
9620
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/util/elements.mjs
|
|
9621
|
+
function createOpXrefMap(unit) {
|
|
9622
|
+
const map = /* @__PURE__ */ new Map();
|
|
9613
9623
|
for (const op of unit.create) {
|
|
9614
|
-
if (!
|
|
9624
|
+
if (!hasConsumesSlotTrait(op)) {
|
|
9615
9625
|
continue;
|
|
9616
9626
|
}
|
|
9617
|
-
|
|
9627
|
+
map.set(op.xref, op);
|
|
9618
9628
|
}
|
|
9619
|
-
return
|
|
9629
|
+
return map;
|
|
9620
9630
|
}
|
|
9621
9631
|
|
|
9622
|
-
// bazel-out/
|
|
9632
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/attribute_extraction.mjs
|
|
9623
9633
|
function phaseAttributeExtraction(job) {
|
|
9624
9634
|
for (const unit of job.units) {
|
|
9625
|
-
const elements =
|
|
9635
|
+
const elements = createOpXrefMap(unit);
|
|
9626
9636
|
for (const op of unit.ops()) {
|
|
9627
9637
|
switch (op.kind) {
|
|
9628
9638
|
case OpKind.Attribute:
|
|
@@ -9686,7 +9696,7 @@ function extractAttributeOp(unit, op, elements) {
|
|
|
9686
9696
|
}
|
|
9687
9697
|
}
|
|
9688
9698
|
|
|
9689
|
-
// bazel-out/
|
|
9699
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/binding_specialization.mjs
|
|
9690
9700
|
function lookupElement2(elements, xref) {
|
|
9691
9701
|
const el = elements.get(xref);
|
|
9692
9702
|
if (el === void 0) {
|
|
@@ -9736,7 +9746,7 @@ function phaseBindingSpecialization(job) {
|
|
|
9736
9746
|
}
|
|
9737
9747
|
}
|
|
9738
9748
|
|
|
9739
|
-
// bazel-out/
|
|
9749
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/chaining.mjs
|
|
9740
9750
|
var CHAINABLE = /* @__PURE__ */ new Set([
|
|
9741
9751
|
Identifiers.attribute,
|
|
9742
9752
|
Identifiers.classProp,
|
|
@@ -9802,7 +9812,7 @@ function chainOperationsInList(opList) {
|
|
|
9802
9812
|
}
|
|
9803
9813
|
}
|
|
9804
9814
|
|
|
9805
|
-
// bazel-out/
|
|
9815
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/conditionals.mjs
|
|
9806
9816
|
function phaseConditionals(job) {
|
|
9807
9817
|
for (const unit of job.units) {
|
|
9808
9818
|
for (const op of unit.ops()) {
|
|
@@ -9834,11 +9844,12 @@ function phaseConditionals(job) {
|
|
|
9834
9844
|
test = new ConditionalExpr(conditionalCase.expr, new SlotLiteralExpr(conditionalCase.target), test);
|
|
9835
9845
|
}
|
|
9836
9846
|
op.processed = test;
|
|
9847
|
+
op.conditions = [];
|
|
9837
9848
|
}
|
|
9838
9849
|
}
|
|
9839
9850
|
}
|
|
9840
9851
|
|
|
9841
|
-
// bazel-out/
|
|
9852
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/tags.mjs
|
|
9842
9853
|
var TagContentType;
|
|
9843
9854
|
(function(TagContentType2) {
|
|
9844
9855
|
TagContentType2[TagContentType2["RAW_TEXT"] = 0] = "RAW_TEXT";
|
|
@@ -9871,7 +9882,7 @@ function mergeNsAndName(prefix, localName) {
|
|
|
9871
9882
|
return prefix ? `:${prefix}:${localName}` : localName;
|
|
9872
9883
|
}
|
|
9873
9884
|
|
|
9874
|
-
// bazel-out/
|
|
9885
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/conversion.mjs
|
|
9875
9886
|
var BINARY_OPERATORS = /* @__PURE__ */ new Map([
|
|
9876
9887
|
["&&", BinaryOperator.And],
|
|
9877
9888
|
[">", BinaryOperator.Bigger],
|
|
@@ -9921,7 +9932,7 @@ function literalOrArrayLiteral2(value) {
|
|
|
9921
9932
|
return literal(value, INFERRED_TYPE);
|
|
9922
9933
|
}
|
|
9923
9934
|
|
|
9924
|
-
// bazel-out/
|
|
9935
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/const_collection.mjs
|
|
9925
9936
|
function phaseConstCollection(job) {
|
|
9926
9937
|
const allElementAttributes = /* @__PURE__ */ new Map();
|
|
9927
9938
|
for (const unit of job.units) {
|
|
@@ -10055,7 +10066,7 @@ function serializeAttributes({ attributes, bindings, classes, i18n: i18n2, proje
|
|
|
10055
10066
|
return literalArr(attrArray);
|
|
10056
10067
|
}
|
|
10057
10068
|
|
|
10058
|
-
// bazel-out/
|
|
10069
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/empty_elements.mjs
|
|
10059
10070
|
var REPLACEMENTS = /* @__PURE__ */ new Map([
|
|
10060
10071
|
[OpKind.ElementEnd, [OpKind.ElementStart, OpKind.Element]],
|
|
10061
10072
|
[OpKind.ContainerEnd, [OpKind.ContainerStart, OpKind.Container]],
|
|
@@ -10082,7 +10093,7 @@ function phaseEmptyElements(job) {
|
|
|
10082
10093
|
}
|
|
10083
10094
|
}
|
|
10084
10095
|
|
|
10085
|
-
// bazel-out/
|
|
10096
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/expand_safe_reads.mjs
|
|
10086
10097
|
function phaseExpandSafeReads(job) {
|
|
10087
10098
|
for (const unit of job.units) {
|
|
10088
10099
|
for (const op of unit.ops()) {
|
|
@@ -10218,7 +10229,39 @@ function ternaryTransform(e) {
|
|
|
10218
10229
|
return new ConditionalExpr(new BinaryOperatorExpr(BinaryOperator.Equals, e.guard, NULL_EXPR), NULL_EXPR, e.expr);
|
|
10219
10230
|
}
|
|
10220
10231
|
|
|
10221
|
-
// bazel-out/
|
|
10232
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/repeater_derived_vars.mjs
|
|
10233
|
+
function phaseRepeaterDerivedVars(job) {
|
|
10234
|
+
const repeaters = /* @__PURE__ */ new Map();
|
|
10235
|
+
for (const unit of job.units) {
|
|
10236
|
+
for (const op of unit.ops()) {
|
|
10237
|
+
if (op.kind === OpKind.RepeaterCreate) {
|
|
10238
|
+
repeaters.set(op.xref, op);
|
|
10239
|
+
}
|
|
10240
|
+
}
|
|
10241
|
+
}
|
|
10242
|
+
for (const unit of job.units) {
|
|
10243
|
+
for (const op of unit.ops()) {
|
|
10244
|
+
transformExpressionsInOp(op, (expr) => {
|
|
10245
|
+
if (!(expr instanceof DerivedRepeaterVarExpr)) {
|
|
10246
|
+
return expr;
|
|
10247
|
+
}
|
|
10248
|
+
const repeaterOp = repeaters.get(expr.xref);
|
|
10249
|
+
switch (expr.identity) {
|
|
10250
|
+
case DerivedRepeaterVarIdentity.First:
|
|
10251
|
+
return new BinaryOperatorExpr(BinaryOperator.Identical, new LexicalReadExpr(repeaterOp.varNames.$index), literal(0));
|
|
10252
|
+
case DerivedRepeaterVarIdentity.Last:
|
|
10253
|
+
return new BinaryOperatorExpr(BinaryOperator.Identical, new LexicalReadExpr(repeaterOp.varNames.$index), new BinaryOperatorExpr(BinaryOperator.Minus, new LexicalReadExpr(repeaterOp.varNames.$count), literal(1)));
|
|
10254
|
+
case DerivedRepeaterVarIdentity.Even:
|
|
10255
|
+
return new BinaryOperatorExpr(BinaryOperator.Identical, new BinaryOperatorExpr(BinaryOperator.Modulo, new LexicalReadExpr(repeaterOp.varNames.$index), literal(2)), literal(0));
|
|
10256
|
+
case DerivedRepeaterVarIdentity.Odd:
|
|
10257
|
+
return new BinaryOperatorExpr(BinaryOperator.NotIdentical, new BinaryOperatorExpr(BinaryOperator.Modulo, new LexicalReadExpr(repeaterOp.varNames.$index), literal(2)), literal(0));
|
|
10258
|
+
}
|
|
10259
|
+
}, VisitorContextFlag.None);
|
|
10260
|
+
}
|
|
10261
|
+
}
|
|
10262
|
+
}
|
|
10263
|
+
|
|
10264
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_advance.mjs
|
|
10222
10265
|
function phaseGenerateAdvance(job) {
|
|
10223
10266
|
for (const unit of job.units) {
|
|
10224
10267
|
const slotMap = /* @__PURE__ */ new Map();
|
|
@@ -10250,7 +10293,7 @@ function phaseGenerateAdvance(job) {
|
|
|
10250
10293
|
}
|
|
10251
10294
|
}
|
|
10252
10295
|
|
|
10253
|
-
// bazel-out/
|
|
10296
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_projection_def.mjs
|
|
10254
10297
|
function phaseGenerateProjectionDef(job) {
|
|
10255
10298
|
const share = job.compatibility === CompatibilityMode.TemplateDefinitionBuilder;
|
|
10256
10299
|
const selectors = [];
|
|
@@ -10274,7 +10317,7 @@ function phaseGenerateProjectionDef(job) {
|
|
|
10274
10317
|
}
|
|
10275
10318
|
}
|
|
10276
10319
|
|
|
10277
|
-
// bazel-out/
|
|
10320
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_variables.mjs
|
|
10278
10321
|
function phaseGenerateVariables(job) {
|
|
10279
10322
|
recursivelyProcessView(job.root, null);
|
|
10280
10323
|
}
|
|
@@ -10283,6 +10326,7 @@ function recursivelyProcessView(view, parentScope) {
|
|
|
10283
10326
|
for (const op of view.create) {
|
|
10284
10327
|
switch (op.kind) {
|
|
10285
10328
|
case OpKind.Template:
|
|
10329
|
+
case OpKind.RepeaterCreate:
|
|
10286
10330
|
recursivelyProcessView(view.job.views.get(op.xref), scope);
|
|
10287
10331
|
break;
|
|
10288
10332
|
case OpKind.Listener:
|
|
@@ -10302,6 +10346,7 @@ function getScopeForView(view, parent) {
|
|
|
10302
10346
|
view: view.xref
|
|
10303
10347
|
},
|
|
10304
10348
|
contextVariables: /* @__PURE__ */ new Map(),
|
|
10349
|
+
aliases: view.aliases,
|
|
10305
10350
|
references: [],
|
|
10306
10351
|
parent
|
|
10307
10352
|
};
|
|
@@ -10339,15 +10384,19 @@ function getScopeForView(view, parent) {
|
|
|
10339
10384
|
function generateVariablesInScopeForView(view, scope) {
|
|
10340
10385
|
const newOps = [];
|
|
10341
10386
|
if (scope.view !== view.xref) {
|
|
10342
|
-
newOps.push(createVariableOp(view.job.allocateXrefId(), scope.viewContextVariable, new NextContextExpr()));
|
|
10387
|
+
newOps.push(createVariableOp(view.job.allocateXrefId(), scope.viewContextVariable, new NextContextExpr(), VariableFlags.None));
|
|
10343
10388
|
}
|
|
10344
|
-
|
|
10389
|
+
const scopeView = view.job.views.get(scope.view);
|
|
10390
|
+
for (const [name, value] of scopeView.contextVariables) {
|
|
10345
10391
|
const context = new ContextExpr(scope.view);
|
|
10346
10392
|
const variable2 = value === CTX_REF ? context : new ReadPropExpr(context, value);
|
|
10347
|
-
newOps.push(createVariableOp(view.job.allocateXrefId(), scope.contextVariables.get(name), variable2));
|
|
10393
|
+
newOps.push(createVariableOp(view.job.allocateXrefId(), scope.contextVariables.get(name), variable2, VariableFlags.None));
|
|
10394
|
+
}
|
|
10395
|
+
for (const alias of scopeView.aliases) {
|
|
10396
|
+
newOps.push(createVariableOp(view.job.allocateXrefId(), alias, alias.expression.clone(), VariableFlags.AlwaysInline));
|
|
10348
10397
|
}
|
|
10349
10398
|
for (const ref of scope.references) {
|
|
10350
|
-
newOps.push(createVariableOp(view.job.allocateXrefId(), ref.variable, new ReferenceExpr(ref.targetId, ref.offset)));
|
|
10399
|
+
newOps.push(createVariableOp(view.job.allocateXrefId(), ref.variable, new ReferenceExpr(ref.targetId, ref.offset), VariableFlags.None));
|
|
10351
10400
|
}
|
|
10352
10401
|
if (scope.parent !== null) {
|
|
10353
10402
|
newOps.push(...generateVariablesInScopeForView(view, scope.parent));
|
|
@@ -10355,7 +10404,7 @@ function generateVariablesInScopeForView(view, scope) {
|
|
|
10355
10404
|
return newOps;
|
|
10356
10405
|
}
|
|
10357
10406
|
|
|
10358
|
-
// bazel-out/
|
|
10407
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/has_const_trait_collection.mjs
|
|
10359
10408
|
function phaseConstTraitCollection(job) {
|
|
10360
10409
|
const collectGlobalConsts = (e) => {
|
|
10361
10410
|
if (e instanceof ExpressionBase && hasConstTrait(e)) {
|
|
@@ -10376,7 +10425,7 @@ function phaseConstTraitCollection(job) {
|
|
|
10376
10425
|
}
|
|
10377
10426
|
}
|
|
10378
10427
|
|
|
10379
|
-
// bazel-out/
|
|
10428
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/host_style_property_parsing.mjs
|
|
10380
10429
|
var STYLE_DOT = "style.";
|
|
10381
10430
|
var CLASS_DOT = "class.";
|
|
10382
10431
|
var STYLE_BANG = "style!";
|
|
@@ -10434,7 +10483,7 @@ function parseProperty(name) {
|
|
|
10434
10483
|
return { property: property2, suffix };
|
|
10435
10484
|
}
|
|
10436
10485
|
|
|
10437
|
-
// bazel-out/
|
|
10486
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/i18n_const_collection.mjs
|
|
10438
10487
|
function phaseI18nConstCollection(job) {
|
|
10439
10488
|
const messageConstIndices = {};
|
|
10440
10489
|
for (const unit of job.units) {
|
|
@@ -10454,7 +10503,7 @@ function phaseI18nConstCollection(job) {
|
|
|
10454
10503
|
}
|
|
10455
10504
|
}
|
|
10456
10505
|
|
|
10457
|
-
// bazel-out/
|
|
10506
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/output/map_util.mjs
|
|
10458
10507
|
function mapLiteral(obj, quoted = false) {
|
|
10459
10508
|
return literalMap(Object.keys(obj).map((key) => ({
|
|
10460
10509
|
key,
|
|
@@ -10463,7 +10512,7 @@ function mapLiteral(obj, quoted = false) {
|
|
|
10463
10512
|
})));
|
|
10464
10513
|
}
|
|
10465
10514
|
|
|
10466
|
-
// bazel-out/
|
|
10515
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/i18n/icu_serializer.mjs
|
|
10467
10516
|
var IcuSerializerVisitor = class {
|
|
10468
10517
|
visitText(text2) {
|
|
10469
10518
|
return text2.value;
|
|
@@ -10494,7 +10543,7 @@ function serializeIcuNode(icu) {
|
|
|
10494
10543
|
return icu.visit(serializer);
|
|
10495
10544
|
}
|
|
10496
10545
|
|
|
10497
|
-
// bazel-out/
|
|
10546
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/expression_parser/lexer.mjs
|
|
10498
10547
|
var TokenType;
|
|
10499
10548
|
(function(TokenType2) {
|
|
10500
10549
|
TokenType2[TokenType2["Character"] = 0] = "Character";
|
|
@@ -10855,7 +10904,7 @@ function parseIntAutoRadix(text2) {
|
|
|
10855
10904
|
return result;
|
|
10856
10905
|
}
|
|
10857
10906
|
|
|
10858
|
-
// bazel-out/
|
|
10907
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/expression_parser/parser.mjs
|
|
10859
10908
|
var SplitInterpolation = class {
|
|
10860
10909
|
constructor(strings, expressions, offsets) {
|
|
10861
10910
|
this.strings = strings;
|
|
@@ -11749,7 +11798,7 @@ function getIndexMapForOriginalTemplate(interpolatedTokens) {
|
|
|
11749
11798
|
return offsetMap;
|
|
11750
11799
|
}
|
|
11751
11800
|
|
|
11752
|
-
// bazel-out/
|
|
11801
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/ast.mjs
|
|
11753
11802
|
var NodeWithI18n = class {
|
|
11754
11803
|
constructor(sourceSpan, i18n2) {
|
|
11755
11804
|
this.sourceSpan = sourceSpan;
|
|
@@ -11826,11 +11875,12 @@ var Comment2 = class {
|
|
|
11826
11875
|
}
|
|
11827
11876
|
};
|
|
11828
11877
|
var Block = class {
|
|
11829
|
-
constructor(name, parameters, children, sourceSpan, startSourceSpan, endSourceSpan = null) {
|
|
11878
|
+
constructor(name, parameters, children, sourceSpan, nameSpan, startSourceSpan, endSourceSpan = null) {
|
|
11830
11879
|
this.name = name;
|
|
11831
11880
|
this.parameters = parameters;
|
|
11832
11881
|
this.children = children;
|
|
11833
11882
|
this.sourceSpan = sourceSpan;
|
|
11883
|
+
this.nameSpan = nameSpan;
|
|
11834
11884
|
this.startSourceSpan = startSourceSpan;
|
|
11835
11885
|
this.endSourceSpan = endSourceSpan;
|
|
11836
11886
|
}
|
|
@@ -11859,11 +11909,11 @@ function visitAll2(visitor, nodes, context = null) {
|
|
|
11859
11909
|
return result;
|
|
11860
11910
|
}
|
|
11861
11911
|
|
|
11862
|
-
// bazel-out/
|
|
11912
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/schema/element_schema_registry.mjs
|
|
11863
11913
|
var ElementSchemaRegistry = class {
|
|
11864
11914
|
};
|
|
11865
11915
|
|
|
11866
|
-
// bazel-out/
|
|
11916
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/schema/dom_element_schema_registry.mjs
|
|
11867
11917
|
var BOOLEAN = "boolean";
|
|
11868
11918
|
var NUMBER = "number";
|
|
11869
11919
|
var STRING = "string";
|
|
@@ -12216,7 +12266,7 @@ function _isPixelDimensionStyle(prop) {
|
|
|
12216
12266
|
}
|
|
12217
12267
|
}
|
|
12218
12268
|
|
|
12219
|
-
// bazel-out/
|
|
12269
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/html_tags.mjs
|
|
12220
12270
|
var HtmlTagDefinition = class {
|
|
12221
12271
|
constructor({ closedByChildren, implicitNamespacePrefix, contentType = TagContentType.PARSABLE_DATA, closedByParent = false, isVoid = false, ignoreFirstLf = false, preventNamespaceInheritance = false, canSelfClose = false } = {}) {
|
|
12222
12272
|
this.closedByChildren = {};
|
|
@@ -12334,7 +12384,7 @@ function getHtmlTagDefinition(tagName) {
|
|
|
12334
12384
|
return (_b2 = (_a2 = TAG_DEFINITIONS[tagName]) != null ? _a2 : TAG_DEFINITIONS[tagName.toLowerCase()]) != null ? _b2 : DEFAULT_TAG_DEFINITION;
|
|
12335
12385
|
}
|
|
12336
12386
|
|
|
12337
|
-
// bazel-out/
|
|
12387
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/serializers/placeholder.mjs
|
|
12338
12388
|
var TAG_TO_PLACEHOLDER_NAMES = {
|
|
12339
12389
|
"A": "LINK",
|
|
12340
12390
|
"B": "BOLD_TEXT",
|
|
@@ -12428,7 +12478,7 @@ var PlaceholderRegistry = class {
|
|
|
12428
12478
|
}
|
|
12429
12479
|
};
|
|
12430
12480
|
|
|
12431
|
-
// bazel-out/
|
|
12481
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/i18n_parser.mjs
|
|
12432
12482
|
var _expParser = new Parser(new Lexer());
|
|
12433
12483
|
function createI18nMessageFactory(interpolationConfig) {
|
|
12434
12484
|
const visitor = new _I18nVisitor(_expParser, interpolationConfig);
|
|
@@ -12590,14 +12640,14 @@ function extractPlaceholderName(input) {
|
|
|
12590
12640
|
return input.split(_CUSTOM_PH_EXP)[2];
|
|
12591
12641
|
}
|
|
12592
12642
|
|
|
12593
|
-
// bazel-out/
|
|
12643
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/parse_util.mjs
|
|
12594
12644
|
var I18nError = class extends ParseError {
|
|
12595
12645
|
constructor(span, msg) {
|
|
12596
12646
|
super(span, msg);
|
|
12597
12647
|
}
|
|
12598
12648
|
};
|
|
12599
12649
|
|
|
12600
|
-
// bazel-out/
|
|
12650
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/entities.mjs
|
|
12601
12651
|
var NAMED_ENTITIES = {
|
|
12602
12652
|
"AElig": "\xC6",
|
|
12603
12653
|
"AMP": "&",
|
|
@@ -14728,7 +14778,7 @@ var NAMED_ENTITIES = {
|
|
|
14728
14778
|
var NGSP_UNICODE = "\uE500";
|
|
14729
14779
|
NAMED_ENTITIES["ngsp"] = NGSP_UNICODE;
|
|
14730
14780
|
|
|
14731
|
-
// bazel-out/
|
|
14781
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/lexer.mjs
|
|
14732
14782
|
var TokenError = class extends ParseError {
|
|
14733
14783
|
constructor(errorMsg, tokenType, span) {
|
|
14734
14784
|
super(span, errorMsg);
|
|
@@ -15362,7 +15412,7 @@ var _Tokenizer = class {
|
|
|
15362
15412
|
return true;
|
|
15363
15413
|
}
|
|
15364
15414
|
}
|
|
15365
|
-
if (this._tokenizeBlocks && !this._inInterpolation && !this._isInExpansion() && (this.
|
|
15415
|
+
if (this._tokenizeBlocks && !this._inInterpolation && !this._isInExpansion() && (this._cursor.peek() === $AT || this._cursor.peek() === $RBRACE)) {
|
|
15366
15416
|
return true;
|
|
15367
15417
|
}
|
|
15368
15418
|
return false;
|
|
@@ -15378,16 +15428,6 @@ var _Tokenizer = class {
|
|
|
15378
15428
|
}
|
|
15379
15429
|
return false;
|
|
15380
15430
|
}
|
|
15381
|
-
_isBlockStart() {
|
|
15382
|
-
if (this._tokenizeBlocks && this._cursor.peek() === $AT) {
|
|
15383
|
-
const tmp = this._cursor.clone();
|
|
15384
|
-
tmp.advance();
|
|
15385
|
-
if (isBlockNameChar(tmp.peek())) {
|
|
15386
|
-
return true;
|
|
15387
|
-
}
|
|
15388
|
-
}
|
|
15389
|
-
return false;
|
|
15390
|
-
}
|
|
15391
15431
|
_readUntil(char) {
|
|
15392
15432
|
const start = this._cursor.clone();
|
|
15393
15433
|
this._attemptUntilChar(char);
|
|
@@ -15659,7 +15699,7 @@ var CursorError = class {
|
|
|
15659
15699
|
}
|
|
15660
15700
|
};
|
|
15661
15701
|
|
|
15662
|
-
// bazel-out/
|
|
15702
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/parser.mjs
|
|
15663
15703
|
var TreeError = class extends ParseError {
|
|
15664
15704
|
static create(elementName, span, msg) {
|
|
15665
15705
|
return new TreeError(elementName, span, msg);
|
|
@@ -15972,7 +16012,7 @@ var _TreeBuilder = class {
|
|
|
15972
16012
|
const end = this._peek.sourceSpan.fullStart;
|
|
15973
16013
|
const span = new ParseSourceSpan(token.sourceSpan.start, end, token.sourceSpan.fullStart);
|
|
15974
16014
|
const startSpan = new ParseSourceSpan(token.sourceSpan.start, end, token.sourceSpan.fullStart);
|
|
15975
|
-
const block = new Block(token.parts[0], parameters, [], span, startSpan);
|
|
16015
|
+
const block = new Block(token.parts[0], parameters, [], span, token.sourceSpan, startSpan);
|
|
15976
16016
|
this._pushContainer(block, false);
|
|
15977
16017
|
}
|
|
15978
16018
|
_consumeBlockClose(token) {
|
|
@@ -15989,7 +16029,7 @@ var _TreeBuilder = class {
|
|
|
15989
16029
|
const end = this._peek.sourceSpan.fullStart;
|
|
15990
16030
|
const span = new ParseSourceSpan(token.sourceSpan.start, end, token.sourceSpan.fullStart);
|
|
15991
16031
|
const startSpan = new ParseSourceSpan(token.sourceSpan.start, end, token.sourceSpan.fullStart);
|
|
15992
|
-
const block = new Block(token.parts[0], parameters, [], span, startSpan);
|
|
16032
|
+
const block = new Block(token.parts[0], parameters, [], span, token.sourceSpan, startSpan);
|
|
15993
16033
|
this._pushContainer(block, false);
|
|
15994
16034
|
this._popContainer(null, Block, null);
|
|
15995
16035
|
this.errors.push(TreeError.create(token.parts[0], span, `Incomplete block "${token.parts[0]}". If you meant to write the @ character, you should use the "@" HTML entity instead.`));
|
|
@@ -16043,7 +16083,7 @@ function decodeEntity(match, entity) {
|
|
|
16043
16083
|
return match;
|
|
16044
16084
|
}
|
|
16045
16085
|
|
|
16046
|
-
// bazel-out/
|
|
16086
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/schema/trusted_types_sinks.mjs
|
|
16047
16087
|
var TRUSTED_TYPES_SINKS = /* @__PURE__ */ new Set([
|
|
16048
16088
|
"iframe|srcdoc",
|
|
16049
16089
|
"*|innerhtml",
|
|
@@ -16058,7 +16098,7 @@ function isTrustedTypesSink(tagName, propName) {
|
|
|
16058
16098
|
return TRUSTED_TYPES_SINKS.has(tagName + "|" + propName) || TRUSTED_TYPES_SINKS.has("*|" + propName);
|
|
16059
16099
|
}
|
|
16060
16100
|
|
|
16061
|
-
// bazel-out/
|
|
16101
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/i18n/meta.mjs
|
|
16062
16102
|
var setI18nRefs = (htmlNode, i18nNode) => {
|
|
16063
16103
|
if (htmlNode instanceof NodeWithI18n) {
|
|
16064
16104
|
if (i18nNode instanceof IcuPlaceholder && htmlNode.i18n instanceof Message) {
|
|
@@ -16214,7 +16254,7 @@ function i18nMetaToJSDoc(meta) {
|
|
|
16214
16254
|
return jsDocComment(tags);
|
|
16215
16255
|
}
|
|
16216
16256
|
|
|
16217
|
-
// bazel-out/
|
|
16257
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/i18n/get_msg_utils.mjs
|
|
16218
16258
|
var GOOG_GET_MSG = "goog.getMsg";
|
|
16219
16259
|
function createGoogleGetMsgStatements(variable2, message, closureVar, placeholderValues) {
|
|
16220
16260
|
const messageString = serializeI18nMessageForGetMsg(message);
|
|
@@ -16262,7 +16302,7 @@ function serializeI18nMessageForGetMsg(message) {
|
|
|
16262
16302
|
return message.nodes.map((node) => node.visit(serializerVisitor2, null)).join("");
|
|
16263
16303
|
}
|
|
16264
16304
|
|
|
16265
|
-
// bazel-out/
|
|
16305
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/i18n/localize_utils.mjs
|
|
16266
16306
|
function createLocalizeStatements(variable2, message, params) {
|
|
16267
16307
|
const { messageParts, placeHolders } = serializeI18nMessageForLocalize(message);
|
|
16268
16308
|
const sourceSpan = getSourceSpan(message);
|
|
@@ -16345,7 +16385,7 @@ function createEmptyMessagePart(location) {
|
|
|
16345
16385
|
return new LiteralPiece("", new ParseSourceSpan(location, location));
|
|
16346
16386
|
}
|
|
16347
16387
|
|
|
16348
|
-
// bazel-out/
|
|
16388
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/i18n_message_extraction.mjs
|
|
16349
16389
|
var NG_I18N_CLOSURE_MODE = "ngI18nClosureMode";
|
|
16350
16390
|
var TRANSLATION_VAR_PREFIX2 = "i18n_";
|
|
16351
16391
|
function phaseI18nMessageExtraction(job) {
|
|
@@ -16400,7 +16440,7 @@ function i18nGenerateClosureVar(pool, messageId, fileBasedI18nSuffix, useExterna
|
|
|
16400
16440
|
return variable(name);
|
|
16401
16441
|
}
|
|
16402
16442
|
|
|
16403
|
-
// bazel-out/
|
|
16443
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/i18n_text_extraction.mjs
|
|
16404
16444
|
function phaseI18nTextExtraction(job) {
|
|
16405
16445
|
var _a2;
|
|
16406
16446
|
for (const unit of job.units) {
|
|
@@ -16444,7 +16484,7 @@ function phaseI18nTextExtraction(job) {
|
|
|
16444
16484
|
}
|
|
16445
16485
|
}
|
|
16446
16486
|
|
|
16447
|
-
// bazel-out/
|
|
16487
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/icu_extraction.mjs
|
|
16448
16488
|
function phaseIcuExtraction(job) {
|
|
16449
16489
|
for (const unit of job.units) {
|
|
16450
16490
|
const icus = /* @__PURE__ */ new Map();
|
|
@@ -16484,7 +16524,7 @@ function phaseIcuExtraction(job) {
|
|
|
16484
16524
|
}
|
|
16485
16525
|
}
|
|
16486
16526
|
|
|
16487
|
-
// bazel-out/
|
|
16527
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/local_refs.mjs
|
|
16488
16528
|
function phaseLocalRefs(job) {
|
|
16489
16529
|
for (const unit of job.units) {
|
|
16490
16530
|
for (const op of unit.create) {
|
|
@@ -16514,7 +16554,7 @@ function serializeLocalRefs(refs) {
|
|
|
16514
16554
|
return literalArr(constRefs);
|
|
16515
16555
|
}
|
|
16516
16556
|
|
|
16517
|
-
// bazel-out/
|
|
16557
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/namespace.mjs
|
|
16518
16558
|
function phaseNamespace(job) {
|
|
16519
16559
|
for (const unit of job.units) {
|
|
16520
16560
|
let activeNamespace = Namespace.HTML;
|
|
@@ -16530,7 +16570,7 @@ function phaseNamespace(job) {
|
|
|
16530
16570
|
}
|
|
16531
16571
|
}
|
|
16532
16572
|
|
|
16533
|
-
// bazel-out/
|
|
16573
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/style_parser.mjs
|
|
16534
16574
|
function parse(value) {
|
|
16535
16575
|
const styles = [];
|
|
16536
16576
|
let i = 0;
|
|
@@ -16591,7 +16631,7 @@ function hyphenate2(value) {
|
|
|
16591
16631
|
}).toLowerCase();
|
|
16592
16632
|
}
|
|
16593
16633
|
|
|
16594
|
-
// bazel-out/
|
|
16634
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/naming.mjs
|
|
16595
16635
|
function phaseNaming(cpl) {
|
|
16596
16636
|
addNamesToView(cpl.root, cpl.componentName, { index: 0 }, cpl.compatibility === CompatibilityMode.TemplateDefinitionBuilder);
|
|
16597
16637
|
}
|
|
@@ -16630,6 +16670,20 @@ function addNamesToView(unit, baseName, state, compatibility) {
|
|
|
16630
16670
|
case OpKind.Variable:
|
|
16631
16671
|
varNames.set(op.xref, getVariableName(op.variable, state));
|
|
16632
16672
|
break;
|
|
16673
|
+
case OpKind.RepeaterCreate:
|
|
16674
|
+
if (!(unit instanceof ViewCompilationUnit)) {
|
|
16675
|
+
throw new Error(`AssertionError: must be compiling a component`);
|
|
16676
|
+
}
|
|
16677
|
+
if (op.slot === null) {
|
|
16678
|
+
throw new Error(`Expected slot to be assigned`);
|
|
16679
|
+
}
|
|
16680
|
+
if (op.emptyView !== null) {
|
|
16681
|
+
const emptyView = unit.job.views.get(op.emptyView);
|
|
16682
|
+
addNamesToView(emptyView, `${baseName}_${prefixWithNamespace(`${op.tag}Empty`, op.namespace)}_${op.slot + 2}`, state, compatibility);
|
|
16683
|
+
}
|
|
16684
|
+
const repeaterToken = op.tag === null ? "" : "_" + prefixWithNamespace(op.tag, op.namespace);
|
|
16685
|
+
addNamesToView(unit.job.views.get(op.xref), `${baseName}${repeaterToken}_${op.slot + 1}`, state, compatibility);
|
|
16686
|
+
break;
|
|
16633
16687
|
case OpKind.Template:
|
|
16634
16688
|
if (!(unit instanceof ViewCompilationUnit)) {
|
|
16635
16689
|
throw new Error(`AssertionError: must be compiling a component`);
|
|
@@ -16673,10 +16727,10 @@ function getVariableName(variable2, state) {
|
|
|
16673
16727
|
variable2.name = `ctx_r${state.index++}`;
|
|
16674
16728
|
break;
|
|
16675
16729
|
case SemanticVariableKind.Identifier:
|
|
16676
|
-
variable2.name = `${variable2.identifier}
|
|
16730
|
+
variable2.name = `${variable2.identifier}_r${++state.index}`;
|
|
16677
16731
|
break;
|
|
16678
16732
|
default:
|
|
16679
|
-
variable2.name = `_r${state.index
|
|
16733
|
+
variable2.name = `_r${++state.index}`;
|
|
16680
16734
|
break;
|
|
16681
16735
|
}
|
|
16682
16736
|
}
|
|
@@ -16693,7 +16747,7 @@ function stripImportant(name) {
|
|
|
16693
16747
|
return name;
|
|
16694
16748
|
}
|
|
16695
16749
|
|
|
16696
|
-
// bazel-out/
|
|
16750
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/next_context_merging.mjs
|
|
16697
16751
|
function phaseMergeNextContext(job) {
|
|
16698
16752
|
for (const unit of job.units) {
|
|
16699
16753
|
for (const op of unit.create) {
|
|
@@ -16739,7 +16793,7 @@ function mergeNextContextsInOps(ops) {
|
|
|
16739
16793
|
}
|
|
16740
16794
|
}
|
|
16741
16795
|
|
|
16742
|
-
// bazel-out/
|
|
16796
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/ng_container.mjs
|
|
16743
16797
|
var CONTAINER_TAG = "ng-container";
|
|
16744
16798
|
function phaseNgContainer(job) {
|
|
16745
16799
|
for (const unit of job.units) {
|
|
@@ -16756,7 +16810,7 @@ function phaseNgContainer(job) {
|
|
|
16756
16810
|
}
|
|
16757
16811
|
}
|
|
16758
16812
|
|
|
16759
|
-
// bazel-out/
|
|
16813
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/nonbindable.mjs
|
|
16760
16814
|
function lookupElement3(elements, xref) {
|
|
16761
16815
|
const el = elements.get(xref);
|
|
16762
16816
|
if (el === void 0) {
|
|
@@ -16786,7 +16840,7 @@ function phaseNonbindable(job) {
|
|
|
16786
16840
|
}
|
|
16787
16841
|
}
|
|
16788
16842
|
|
|
16789
|
-
// bazel-out/
|
|
16843
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/nullish_coalescing.mjs
|
|
16790
16844
|
function phaseNullishCoalescing(job) {
|
|
16791
16845
|
for (const unit of job.units) {
|
|
16792
16846
|
for (const op of unit.ops()) {
|
|
@@ -16802,24 +16856,30 @@ function phaseNullishCoalescing(job) {
|
|
|
16802
16856
|
}
|
|
16803
16857
|
}
|
|
16804
16858
|
|
|
16805
|
-
// bazel-out/
|
|
16859
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/ordering.mjs
|
|
16806
16860
|
function kindTest(kind) {
|
|
16807
16861
|
return (op) => op.kind === kind;
|
|
16808
16862
|
}
|
|
16863
|
+
function kindWithInterpolationTest(kind, interpolation) {
|
|
16864
|
+
return (op) => {
|
|
16865
|
+
return op.kind === kind && interpolation === op.expression instanceof Interpolation2;
|
|
16866
|
+
};
|
|
16867
|
+
}
|
|
16809
16868
|
var CREATE_ORDERING = [
|
|
16810
16869
|
{ test: (op) => op.kind === OpKind.Listener && op.hostListener && op.isAnimationListener },
|
|
16811
16870
|
{ test: (op) => op.kind === OpKind.Listener && !(op.hostListener && op.isAnimationListener) }
|
|
16812
16871
|
];
|
|
16813
16872
|
var UPDATE_ORDERING = [
|
|
16814
|
-
{ test: (
|
|
16815
|
-
{ test: (
|
|
16873
|
+
{ test: kindWithInterpolationTest(OpKind.HostProperty, true) },
|
|
16874
|
+
{ test: kindWithInterpolationTest(OpKind.HostProperty, false) },
|
|
16816
16875
|
{ test: kindTest(OpKind.StyleMap), transform: keepLast },
|
|
16817
16876
|
{ test: kindTest(OpKind.ClassMap), transform: keepLast },
|
|
16818
16877
|
{ test: kindTest(OpKind.StyleProp) },
|
|
16819
16878
|
{ test: kindTest(OpKind.ClassProp) },
|
|
16820
|
-
{ test: (
|
|
16821
|
-
{ test: (
|
|
16822
|
-
{ test:
|
|
16879
|
+
{ test: kindWithInterpolationTest(OpKind.Property, true) },
|
|
16880
|
+
{ test: kindWithInterpolationTest(OpKind.Attribute, true) },
|
|
16881
|
+
{ test: kindWithInterpolationTest(OpKind.Property, false) },
|
|
16882
|
+
{ test: kindWithInterpolationTest(OpKind.Attribute, false) }
|
|
16823
16883
|
];
|
|
16824
16884
|
var handledOpKinds = /* @__PURE__ */ new Set([
|
|
16825
16885
|
OpKind.Listener,
|
|
@@ -16833,29 +16893,27 @@ var handledOpKinds = /* @__PURE__ */ new Set([
|
|
|
16833
16893
|
]);
|
|
16834
16894
|
function phaseOrdering(job) {
|
|
16835
16895
|
for (const unit of job.units) {
|
|
16836
|
-
|
|
16837
|
-
|
|
16838
|
-
|
|
16839
|
-
|
|
16840
|
-
|
|
16841
|
-
|
|
16842
|
-
|
|
16843
|
-
|
|
16844
|
-
|
|
16845
|
-
|
|
16846
|
-
|
|
16847
|
-
|
|
16848
|
-
|
|
16849
|
-
|
|
16850
|
-
|
|
16851
|
-
|
|
16852
|
-
|
|
16853
|
-
|
|
16854
|
-
opsToOrder = [];
|
|
16855
|
-
}
|
|
16896
|
+
orderWithin(unit.create, CREATE_ORDERING);
|
|
16897
|
+
orderWithin(unit.update, UPDATE_ORDERING);
|
|
16898
|
+
}
|
|
16899
|
+
}
|
|
16900
|
+
function orderWithin(opList, ordering) {
|
|
16901
|
+
let opsToOrder = [];
|
|
16902
|
+
let firstTargetInGroup = null;
|
|
16903
|
+
for (const op of opList) {
|
|
16904
|
+
const currentTarget = hasDependsOnSlotContextTrait(op) ? op.target : null;
|
|
16905
|
+
if (!handledOpKinds.has(op.kind) || currentTarget !== firstTargetInGroup && (firstTargetInGroup !== null && currentTarget !== null)) {
|
|
16906
|
+
OpList.insertBefore(reorder(opsToOrder, ordering), op);
|
|
16907
|
+
opsToOrder = [];
|
|
16908
|
+
firstTargetInGroup = null;
|
|
16909
|
+
}
|
|
16910
|
+
if (handledOpKinds.has(op.kind)) {
|
|
16911
|
+
opsToOrder.push(op);
|
|
16912
|
+
OpList.remove(op);
|
|
16913
|
+
firstTargetInGroup = currentTarget != null ? currentTarget : firstTargetInGroup;
|
|
16856
16914
|
}
|
|
16857
|
-
unit.update.push(reorder(opsToOrder, UPDATE_ORDERING));
|
|
16858
16915
|
}
|
|
16916
|
+
opList.push(reorder(opsToOrder, ordering));
|
|
16859
16917
|
}
|
|
16860
16918
|
function reorder(ops, ordering) {
|
|
16861
16919
|
const groups = Array.from(ordering, () => new Array());
|
|
@@ -16872,7 +16930,7 @@ function keepLast(ops) {
|
|
|
16872
16930
|
return ops.slice(ops.length - 1);
|
|
16873
16931
|
}
|
|
16874
16932
|
|
|
16875
|
-
// bazel-out/
|
|
16933
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/parse_extracted_styles.mjs
|
|
16876
16934
|
function phaseParseExtractedStyles(cpl) {
|
|
16877
16935
|
for (const unit of cpl.units) {
|
|
16878
16936
|
for (const op of unit.create) {
|
|
@@ -16895,31 +16953,31 @@ function phaseParseExtractedStyles(cpl) {
|
|
|
16895
16953
|
}
|
|
16896
16954
|
}
|
|
16897
16955
|
|
|
16898
|
-
// bazel-out/
|
|
16956
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/phase_remove_content_selectors.mjs
|
|
16899
16957
|
function phaseRemoveContentSelectors(job) {
|
|
16900
16958
|
for (const unit of job.units) {
|
|
16901
|
-
const elements =
|
|
16959
|
+
const elements = createOpXrefMap(unit);
|
|
16902
16960
|
for (const op of unit.update) {
|
|
16903
16961
|
switch (op.kind) {
|
|
16904
16962
|
case OpKind.Binding:
|
|
16905
|
-
const target =
|
|
16963
|
+
const target = lookupInXrefMap(elements, op.target);
|
|
16906
16964
|
if (op.name.toLowerCase() === "select" && target.kind === OpKind.Projection) {
|
|
16907
16965
|
OpList.remove(op);
|
|
16908
16966
|
}
|
|
16909
|
-
|
|
16967
|
+
break;
|
|
16910
16968
|
}
|
|
16911
16969
|
}
|
|
16912
16970
|
}
|
|
16913
16971
|
}
|
|
16914
|
-
function
|
|
16915
|
-
const el =
|
|
16972
|
+
function lookupInXrefMap(map, xref) {
|
|
16973
|
+
const el = map.get(xref);
|
|
16916
16974
|
if (el === void 0) {
|
|
16917
|
-
throw new Error("All attributes should have an
|
|
16975
|
+
throw new Error("All attributes should have an slottable target.");
|
|
16918
16976
|
}
|
|
16919
16977
|
return el;
|
|
16920
16978
|
}
|
|
16921
16979
|
|
|
16922
|
-
// bazel-out/
|
|
16980
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pipe_creation.mjs
|
|
16923
16981
|
function phasePipeCreation(job) {
|
|
16924
16982
|
for (const unit of job.units) {
|
|
16925
16983
|
processPipeBindingsInView(unit);
|
|
@@ -16937,10 +16995,14 @@ function processPipeBindingsInView(unit) {
|
|
|
16937
16995
|
if (flags & VisitorContextFlag.InChildOperation) {
|
|
16938
16996
|
throw new Error(`AssertionError: pipe bindings should not appear in child expressions`);
|
|
16939
16997
|
}
|
|
16940
|
-
if (!hasDependsOnSlotContextTrait(updateOp)) {
|
|
16998
|
+
if (!hasDependsOnSlotContextTrait(updateOp) && !hasUsesSlotIndexTrait(updateOp)) {
|
|
16941
16999
|
throw new Error(`AssertionError: pipe binding associated with non-slot operation ${OpKind[updateOp.kind]}`);
|
|
16942
17000
|
}
|
|
16943
|
-
|
|
17001
|
+
if (unit.job.compatibility) {
|
|
17002
|
+
addPipeToCreationBlock(unit, updateOp.target, expr);
|
|
17003
|
+
} else {
|
|
17004
|
+
unit.create.push(createPipeOp(expr.target, expr.name));
|
|
17005
|
+
}
|
|
16944
17006
|
});
|
|
16945
17007
|
}
|
|
16946
17008
|
}
|
|
@@ -16962,7 +17024,7 @@ function addPipeToCreationBlock(unit, afterTargetXref, binding) {
|
|
|
16962
17024
|
throw new Error(`AssertionError: unable to find insertion point for pipe ${binding.name}`);
|
|
16963
17025
|
}
|
|
16964
17026
|
|
|
16965
|
-
// bazel-out/
|
|
17027
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pipe_variadic.mjs
|
|
16966
17028
|
function phasePipeVariadic(job) {
|
|
16967
17029
|
for (const unit of job.units) {
|
|
16968
17030
|
for (const op of unit.update) {
|
|
@@ -16979,7 +17041,7 @@ function phasePipeVariadic(job) {
|
|
|
16979
17041
|
}
|
|
16980
17042
|
}
|
|
16981
17043
|
|
|
16982
|
-
// bazel-out/
|
|
17044
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/propagate_i18n_blocks.mjs
|
|
16983
17045
|
function phasePropagateI18nBlocks(job) {
|
|
16984
17046
|
propagateI18nBlocksToTemplates(job.root, 0);
|
|
16985
17047
|
}
|
|
@@ -17016,7 +17078,7 @@ function wrapTemplateWithI18n(unit, parentI18n) {
|
|
|
17016
17078
|
}
|
|
17017
17079
|
}
|
|
17018
17080
|
|
|
17019
|
-
// bazel-out/
|
|
17081
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pure_function_extraction.mjs
|
|
17020
17082
|
function phasePureFunctionExtraction(job) {
|
|
17021
17083
|
for (const view of job.units) {
|
|
17022
17084
|
for (const op of view.ops()) {
|
|
@@ -17058,7 +17120,7 @@ var PureFunctionConstant = class extends GenericKeyFn {
|
|
|
17058
17120
|
}
|
|
17059
17121
|
};
|
|
17060
17122
|
|
|
17061
|
-
// bazel-out/
|
|
17123
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pure_literal_structures.mjs
|
|
17062
17124
|
function phasePureLiteralStructures(job) {
|
|
17063
17125
|
for (const view of job.units) {
|
|
17064
17126
|
for (const op of view.update) {
|
|
@@ -17105,7 +17167,7 @@ function transformLiteralMap(expr) {
|
|
|
17105
17167
|
return new PureFunctionExpr(literalMap(derivedEntries), nonConstantArgs);
|
|
17106
17168
|
}
|
|
17107
17169
|
|
|
17108
|
-
// bazel-out/
|
|
17170
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/instruction.mjs
|
|
17109
17171
|
function element(slot, tag, constIndex, localRefIndex, sourceSpan) {
|
|
17110
17172
|
return elementOrContainerBase(Identifiers.element, slot, tag, constIndex, localRefIndex, sourceSpan);
|
|
17111
17173
|
}
|
|
@@ -17237,15 +17299,15 @@ function deferOn(sourceSpan) {
|
|
|
17237
17299
|
function projectionDef(def) {
|
|
17238
17300
|
return call(Identifiers.projectionDef, def ? [def] : [], null);
|
|
17239
17301
|
}
|
|
17240
|
-
function projection(slot, projectionSlotIndex, attributes) {
|
|
17302
|
+
function projection(slot, projectionSlotIndex, attributes, sourceSpan) {
|
|
17241
17303
|
const args = [literal(slot)];
|
|
17242
|
-
if (projectionSlotIndex !== 0 || attributes
|
|
17304
|
+
if (projectionSlotIndex !== 0 || attributes.length > 0) {
|
|
17243
17305
|
args.push(literal(projectionSlotIndex));
|
|
17244
|
-
if (attributes
|
|
17245
|
-
args.push(
|
|
17306
|
+
if (attributes.length > 0) {
|
|
17307
|
+
args.push(literalArr(attributes.map((attr) => literal(attr))));
|
|
17246
17308
|
}
|
|
17247
17309
|
}
|
|
17248
|
-
return call(Identifiers.projection, args,
|
|
17310
|
+
return call(Identifiers.projection, args, sourceSpan);
|
|
17249
17311
|
}
|
|
17250
17312
|
function i18nStart(slot, constIndex, subTemplateIndex) {
|
|
17251
17313
|
const args = [literal(slot), literal(constIndex)];
|
|
@@ -17254,6 +17316,27 @@ function i18nStart(slot, constIndex, subTemplateIndex) {
|
|
|
17254
17316
|
}
|
|
17255
17317
|
return call(Identifiers.i18nStart, args, null);
|
|
17256
17318
|
}
|
|
17319
|
+
function repeaterCreate(slot, viewFnName, decls, vars, trackByFn, trackByUsesComponentInstance, emptyViewFnName, emptyDecls, emptyVars, sourceSpan) {
|
|
17320
|
+
let args = [
|
|
17321
|
+
literal(slot),
|
|
17322
|
+
variable(viewFnName),
|
|
17323
|
+
literal(decls),
|
|
17324
|
+
literal(vars),
|
|
17325
|
+
trackByFn
|
|
17326
|
+
];
|
|
17327
|
+
if (trackByUsesComponentInstance || emptyViewFnName !== null) {
|
|
17328
|
+
args.push(literal(trackByUsesComponentInstance));
|
|
17329
|
+
if (emptyViewFnName !== null) {
|
|
17330
|
+
args.push(variable(emptyViewFnName));
|
|
17331
|
+
args.push(literal(emptyDecls));
|
|
17332
|
+
args.push(literal(emptyVars));
|
|
17333
|
+
}
|
|
17334
|
+
}
|
|
17335
|
+
return call(Identifiers.repeaterCreate, args, sourceSpan);
|
|
17336
|
+
}
|
|
17337
|
+
function repeater(metadataSlot, collection, sourceSpan) {
|
|
17338
|
+
return call(Identifiers.repeater, [literal(metadataSlot), collection], sourceSpan);
|
|
17339
|
+
}
|
|
17257
17340
|
function i18n(slot, constIndex, subTemplateIndex) {
|
|
17258
17341
|
const args = [literal(slot), literal(constIndex)];
|
|
17259
17342
|
if (subTemplateIndex) {
|
|
@@ -17560,7 +17643,7 @@ function callVariadicInstruction(config, baseArgs, interpolationArgs, extraArgs,
|
|
|
17560
17643
|
return createStatementOp(callVariadicInstructionExpr(config, baseArgs, interpolationArgs, extraArgs, sourceSpan).toStmt());
|
|
17561
17644
|
}
|
|
17562
17645
|
|
|
17563
|
-
// bazel-out/
|
|
17646
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/reify.mjs
|
|
17564
17647
|
var sanitizerIdentifierMap = /* @__PURE__ */ new Map([
|
|
17565
17648
|
[SanitizerFn.Html, Identifiers.sanitizeHtml],
|
|
17566
17649
|
[SanitizerFn.IframeAttribute, Identifiers.validateIframeAttribute],
|
|
@@ -17666,7 +17749,35 @@ function reifyCreateOperations(unit, ops) {
|
|
|
17666
17749
|
if (op.slot === null) {
|
|
17667
17750
|
throw new Error("No slot was assigned for project instruction");
|
|
17668
17751
|
}
|
|
17669
|
-
OpList.replace(op, projection(op.slot, op.projectionSlotIndex, op.attributes));
|
|
17752
|
+
OpList.replace(op, projection(op.slot, op.projectionSlotIndex, op.attributes, op.sourceSpan));
|
|
17753
|
+
break;
|
|
17754
|
+
case OpKind.RepeaterCreate:
|
|
17755
|
+
if (op.slot === null) {
|
|
17756
|
+
throw new Error("No slot was assigned for repeater instruction");
|
|
17757
|
+
}
|
|
17758
|
+
if (!(unit instanceof ViewCompilationUnit)) {
|
|
17759
|
+
throw new Error(`AssertionError: must be compiling a component`);
|
|
17760
|
+
}
|
|
17761
|
+
const repeaterView = unit.job.views.get(op.xref);
|
|
17762
|
+
if (repeaterView.fnName === null) {
|
|
17763
|
+
throw new Error(`AssertionError: expected repeater primary view to have been named`);
|
|
17764
|
+
}
|
|
17765
|
+
let emptyViewFnName = null;
|
|
17766
|
+
let emptyDecls = null;
|
|
17767
|
+
let emptyVars = null;
|
|
17768
|
+
if (op.emptyView !== null) {
|
|
17769
|
+
const emptyView = unit.job.views.get(op.emptyView);
|
|
17770
|
+
if (emptyView === void 0) {
|
|
17771
|
+
throw new Error("AssertionError: repeater had empty view xref, but empty view was not found");
|
|
17772
|
+
}
|
|
17773
|
+
if (emptyView.fnName === null || emptyView.decls === null || emptyView.vars === null) {
|
|
17774
|
+
throw new Error(`AssertionError: expected repeater empty view to have been named and counted`);
|
|
17775
|
+
}
|
|
17776
|
+
emptyViewFnName = emptyView.fnName;
|
|
17777
|
+
emptyDecls = emptyView.decls;
|
|
17778
|
+
emptyVars = emptyView.vars;
|
|
17779
|
+
}
|
|
17780
|
+
OpList.replace(op, repeaterCreate(op.slot, repeaterView.fnName, op.decls, op.vars, op.trackByFn, op.usesComponentInstance, emptyViewFnName, emptyDecls, emptyVars, op.sourceSpan));
|
|
17670
17781
|
break;
|
|
17671
17782
|
case OpKind.Statement:
|
|
17672
17783
|
break;
|
|
@@ -17755,6 +17866,9 @@ function reifyUpdateOperations(_unit, ops) {
|
|
|
17755
17866
|
}
|
|
17756
17867
|
OpList.replace(op, conditional(op.targetSlot, op.processed, op.contextValue, op.sourceSpan));
|
|
17757
17868
|
break;
|
|
17869
|
+
case OpKind.Repeater:
|
|
17870
|
+
OpList.replace(op, repeater(op.targetSlot, op.collection, op.sourceSpan));
|
|
17871
|
+
break;
|
|
17758
17872
|
case OpKind.Statement:
|
|
17759
17873
|
break;
|
|
17760
17874
|
default:
|
|
@@ -17832,7 +17946,7 @@ function reifyListenerHandler(unit, name, handlerOps, consumesDollarEvent) {
|
|
|
17832
17946
|
return fn(params, handlerStmts, void 0, void 0, name);
|
|
17833
17947
|
}
|
|
17834
17948
|
|
|
17835
|
-
// bazel-out/
|
|
17949
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/remove_empty_bindings.mjs
|
|
17836
17950
|
function phaseRemoveEmptyBindings(job) {
|
|
17837
17951
|
for (const unit of job.units) {
|
|
17838
17952
|
for (const op of unit.update) {
|
|
@@ -17853,7 +17967,7 @@ function phaseRemoveEmptyBindings(job) {
|
|
|
17853
17967
|
}
|
|
17854
17968
|
}
|
|
17855
17969
|
|
|
17856
|
-
// bazel-out/
|
|
17970
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_contexts.mjs
|
|
17857
17971
|
function phaseResolveContexts(cpl) {
|
|
17858
17972
|
for (const unit of cpl.units) {
|
|
17859
17973
|
processLexicalScope(unit, unit.create);
|
|
@@ -17877,6 +17991,9 @@ function processLexicalScope(view, ops) {
|
|
|
17877
17991
|
break;
|
|
17878
17992
|
}
|
|
17879
17993
|
}
|
|
17994
|
+
if (view === view.job.root) {
|
|
17995
|
+
scope.set(view.xref, variable("ctx"));
|
|
17996
|
+
}
|
|
17880
17997
|
for (const op of ops) {
|
|
17881
17998
|
transformExpressionsInOp(op, (expr) => {
|
|
17882
17999
|
if (expr instanceof ContextExpr) {
|
|
@@ -17891,7 +18008,7 @@ function processLexicalScope(view, ops) {
|
|
|
17891
18008
|
}
|
|
17892
18009
|
}
|
|
17893
18010
|
|
|
17894
|
-
// bazel-out/
|
|
18011
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_dollar_event.mjs
|
|
17895
18012
|
function phaseResolveDollarEvent(job) {
|
|
17896
18013
|
for (const unit of job.units) {
|
|
17897
18014
|
resolveDollarEvent(unit, unit.create);
|
|
@@ -17912,7 +18029,7 @@ function resolveDollarEvent(unit, ops) {
|
|
|
17912
18029
|
}
|
|
17913
18030
|
}
|
|
17914
18031
|
|
|
17915
|
-
// bazel-out/
|
|
18032
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_i18n_placeholders.mjs
|
|
17916
18033
|
var ESCAPE = "\uFFFD";
|
|
17917
18034
|
var ELEMENT_MARKER = "#";
|
|
17918
18035
|
var TEMPLATE_MARKER = "*";
|
|
@@ -18098,7 +18215,7 @@ function propagatePlaceholders(params, i18nOps) {
|
|
|
18098
18215
|
}
|
|
18099
18216
|
}
|
|
18100
18217
|
|
|
18101
|
-
// bazel-out/
|
|
18218
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_names.mjs
|
|
18102
18219
|
function phaseResolveNames(cpl) {
|
|
18103
18220
|
for (const unit of cpl.units) {
|
|
18104
18221
|
processLexicalScope2(unit, unit.create, null);
|
|
@@ -18112,6 +18229,7 @@ function processLexicalScope2(unit, ops, savedView) {
|
|
|
18112
18229
|
case OpKind.Variable:
|
|
18113
18230
|
switch (op.variable.kind) {
|
|
18114
18231
|
case SemanticVariableKind.Identifier:
|
|
18232
|
+
case SemanticVariableKind.Alias:
|
|
18115
18233
|
if (scope.has(op.variable.identifier)) {
|
|
18116
18234
|
continue;
|
|
18117
18235
|
}
|
|
@@ -18161,7 +18279,7 @@ function processLexicalScope2(unit, ops, savedView) {
|
|
|
18161
18279
|
}
|
|
18162
18280
|
}
|
|
18163
18281
|
|
|
18164
|
-
// bazel-out/
|
|
18282
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_sanitizers.mjs
|
|
18165
18283
|
var sanitizers = /* @__PURE__ */ new Map([
|
|
18166
18284
|
[SecurityContext.HTML, SanitizerFn.Html],
|
|
18167
18285
|
[SecurityContext.SCRIPT, SanitizerFn.Script],
|
|
@@ -18171,7 +18289,7 @@ var sanitizers = /* @__PURE__ */ new Map([
|
|
|
18171
18289
|
]);
|
|
18172
18290
|
function phaseResolveSanitizers(job) {
|
|
18173
18291
|
for (const unit of job.units) {
|
|
18174
|
-
const elements =
|
|
18292
|
+
const elements = createOpXrefMap(unit);
|
|
18175
18293
|
let sanitizerFn;
|
|
18176
18294
|
for (const op of unit.update) {
|
|
18177
18295
|
switch (op.kind) {
|
|
@@ -18181,7 +18299,7 @@ function phaseResolveSanitizers(job) {
|
|
|
18181
18299
|
op.sanitizer = sanitizerFn ? new SanitizerExpr(sanitizerFn) : null;
|
|
18182
18300
|
if (op.sanitizer === null) {
|
|
18183
18301
|
const ownerOp = elements.get(op.target);
|
|
18184
|
-
if (ownerOp === void 0) {
|
|
18302
|
+
if (ownerOp === void 0 || !isElementOrContainerOp(ownerOp)) {
|
|
18185
18303
|
throw Error("Property should have an element-like owner");
|
|
18186
18304
|
}
|
|
18187
18305
|
if (isIframeElement(ownerOp) && isIframeSecuritySensitiveAttr(op.name)) {
|
|
@@ -18198,7 +18316,7 @@ function isIframeElement(op) {
|
|
|
18198
18316
|
return op.kind === OpKind.ElementStart && ((_a2 = op.tag) == null ? void 0 : _a2.toLowerCase()) === "iframe";
|
|
18199
18317
|
}
|
|
18200
18318
|
|
|
18201
|
-
// bazel-out/
|
|
18319
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/save_restore_view.mjs
|
|
18202
18320
|
function phaseSaveRestoreView(job) {
|
|
18203
18321
|
for (const view of job.views.values()) {
|
|
18204
18322
|
view.create.prepend([
|
|
@@ -18206,7 +18324,7 @@ function phaseSaveRestoreView(job) {
|
|
|
18206
18324
|
kind: SemanticVariableKind.SavedView,
|
|
18207
18325
|
name: null,
|
|
18208
18326
|
view: view.xref
|
|
18209
|
-
}, new GetCurrentViewExpr())
|
|
18327
|
+
}, new GetCurrentViewExpr(), VariableFlags.None)
|
|
18210
18328
|
]);
|
|
18211
18329
|
for (const op of view.create) {
|
|
18212
18330
|
if (op.kind !== OpKind.Listener) {
|
|
@@ -18234,7 +18352,7 @@ function addSaveRestoreViewOperationToListener(unit, op) {
|
|
|
18234
18352
|
kind: SemanticVariableKind.Context,
|
|
18235
18353
|
name: null,
|
|
18236
18354
|
view: unit.xref
|
|
18237
|
-
}, new RestoreViewExpr(unit.xref))
|
|
18355
|
+
}, new RestoreViewExpr(unit.xref), VariableFlags.None)
|
|
18238
18356
|
]);
|
|
18239
18357
|
for (const handlerOp of op.handlerOps) {
|
|
18240
18358
|
if (handlerOp.kind === OpKind.Statement && handlerOp.statement instanceof ReturnStatement) {
|
|
@@ -18243,7 +18361,7 @@ function addSaveRestoreViewOperationToListener(unit, op) {
|
|
|
18243
18361
|
}
|
|
18244
18362
|
}
|
|
18245
18363
|
|
|
18246
|
-
// bazel-out/
|
|
18364
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/slot_allocation.mjs
|
|
18247
18365
|
function phaseSlotAllocation(job) {
|
|
18248
18366
|
const slotMap = /* @__PURE__ */ new Map();
|
|
18249
18367
|
for (const unit of job.units) {
|
|
@@ -18260,11 +18378,11 @@ function phaseSlotAllocation(job) {
|
|
|
18260
18378
|
}
|
|
18261
18379
|
for (const unit of job.units) {
|
|
18262
18380
|
for (const op of unit.ops()) {
|
|
18263
|
-
if (op.kind === OpKind.Template) {
|
|
18381
|
+
if (op.kind === OpKind.Template || op.kind === OpKind.RepeaterCreate) {
|
|
18264
18382
|
const childView = job.views.get(op.xref);
|
|
18265
18383
|
op.decls = childView.decls;
|
|
18266
18384
|
}
|
|
18267
|
-
if (hasUsesSlotIndexTrait(op) && op.targetSlot === null) {
|
|
18385
|
+
if (hasUsesSlotIndexTrait(op) && op.target !== null && op.targetSlot === null) {
|
|
18268
18386
|
if (!slotMap.has(op.target)) {
|
|
18269
18387
|
throw new Error(`AssertionError: no slot allocated for ${OpKind[op.kind]} target ${op.target}`);
|
|
18270
18388
|
}
|
|
@@ -18286,7 +18404,7 @@ function phaseSlotAllocation(job) {
|
|
|
18286
18404
|
}
|
|
18287
18405
|
}
|
|
18288
18406
|
|
|
18289
|
-
// bazel-out/
|
|
18407
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/style_binding_specialization.mjs
|
|
18290
18408
|
function phaseStyleBindingSpecialization(cpl) {
|
|
18291
18409
|
for (const unit of cpl.units) {
|
|
18292
18410
|
for (const op of unit.update) {
|
|
@@ -18316,7 +18434,7 @@ function phaseStyleBindingSpecialization(cpl) {
|
|
|
18316
18434
|
}
|
|
18317
18435
|
}
|
|
18318
18436
|
|
|
18319
|
-
// bazel-out/
|
|
18437
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/temporary_variables.mjs
|
|
18320
18438
|
function phaseTemporaryVariables(cpl) {
|
|
18321
18439
|
for (const unit of cpl.units) {
|
|
18322
18440
|
unit.create.prepend(generateTemporaries(unit.create));
|
|
@@ -18374,9 +18492,121 @@ function assignName(names, expr) {
|
|
|
18374
18492
|
expr.name = name;
|
|
18375
18493
|
}
|
|
18376
18494
|
|
|
18377
|
-
// bazel-out/
|
|
18495
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/var_counting.mjs
|
|
18496
|
+
function phaseVarCounting(job) {
|
|
18497
|
+
for (const unit of job.units) {
|
|
18498
|
+
let varCount = 0;
|
|
18499
|
+
for (const op of unit.ops()) {
|
|
18500
|
+
if (hasConsumesVarsTrait(op)) {
|
|
18501
|
+
varCount += varsUsedByOp(op);
|
|
18502
|
+
}
|
|
18503
|
+
}
|
|
18504
|
+
for (const op of unit.ops()) {
|
|
18505
|
+
visitExpressionsInOp(op, (expr) => {
|
|
18506
|
+
if (!isIrExpression(expr)) {
|
|
18507
|
+
return;
|
|
18508
|
+
}
|
|
18509
|
+
if (job.compatibility === CompatibilityMode.TemplateDefinitionBuilder && expr instanceof PureFunctionExpr) {
|
|
18510
|
+
return;
|
|
18511
|
+
}
|
|
18512
|
+
if (hasUsesVarOffsetTrait(expr)) {
|
|
18513
|
+
expr.varOffset = varCount;
|
|
18514
|
+
}
|
|
18515
|
+
if (hasConsumesVarsTrait(expr)) {
|
|
18516
|
+
varCount += varsUsedByIrExpression(expr);
|
|
18517
|
+
}
|
|
18518
|
+
});
|
|
18519
|
+
}
|
|
18520
|
+
if (job.compatibility === CompatibilityMode.TemplateDefinitionBuilder) {
|
|
18521
|
+
for (const op of unit.ops()) {
|
|
18522
|
+
visitExpressionsInOp(op, (expr) => {
|
|
18523
|
+
if (!isIrExpression(expr) || !(expr instanceof PureFunctionExpr)) {
|
|
18524
|
+
return;
|
|
18525
|
+
}
|
|
18526
|
+
if (hasUsesVarOffsetTrait(expr)) {
|
|
18527
|
+
expr.varOffset = varCount;
|
|
18528
|
+
}
|
|
18529
|
+
if (hasConsumesVarsTrait(expr)) {
|
|
18530
|
+
varCount += varsUsedByIrExpression(expr);
|
|
18531
|
+
}
|
|
18532
|
+
});
|
|
18533
|
+
}
|
|
18534
|
+
}
|
|
18535
|
+
unit.vars = varCount;
|
|
18536
|
+
}
|
|
18537
|
+
if (job instanceof ComponentCompilationJob) {
|
|
18538
|
+
for (const unit of job.units) {
|
|
18539
|
+
for (const op of unit.create) {
|
|
18540
|
+
if (op.kind !== OpKind.Template && op.kind !== OpKind.RepeaterCreate) {
|
|
18541
|
+
continue;
|
|
18542
|
+
}
|
|
18543
|
+
const childView = job.views.get(op.xref);
|
|
18544
|
+
op.vars = childView.vars;
|
|
18545
|
+
}
|
|
18546
|
+
}
|
|
18547
|
+
}
|
|
18548
|
+
}
|
|
18549
|
+
function varsUsedByOp(op) {
|
|
18550
|
+
let slots;
|
|
18551
|
+
switch (op.kind) {
|
|
18552
|
+
case OpKind.Property:
|
|
18553
|
+
case OpKind.HostProperty:
|
|
18554
|
+
case OpKind.Attribute:
|
|
18555
|
+
slots = 1;
|
|
18556
|
+
if (op.expression instanceof Interpolation2 && !isSingletonInterpolation(op.expression)) {
|
|
18557
|
+
slots += op.expression.expressions.length;
|
|
18558
|
+
}
|
|
18559
|
+
return slots;
|
|
18560
|
+
case OpKind.StyleProp:
|
|
18561
|
+
case OpKind.ClassProp:
|
|
18562
|
+
case OpKind.StyleMap:
|
|
18563
|
+
case OpKind.ClassMap:
|
|
18564
|
+
slots = 2;
|
|
18565
|
+
if (op.expression instanceof Interpolation2) {
|
|
18566
|
+
slots += op.expression.expressions.length;
|
|
18567
|
+
}
|
|
18568
|
+
return slots;
|
|
18569
|
+
case OpKind.InterpolateText:
|
|
18570
|
+
return op.interpolation.expressions.length;
|
|
18571
|
+
case OpKind.I18nExpression:
|
|
18572
|
+
case OpKind.Conditional:
|
|
18573
|
+
return 1;
|
|
18574
|
+
default:
|
|
18575
|
+
throw new Error(`Unhandled op: ${OpKind[op.kind]}`);
|
|
18576
|
+
}
|
|
18577
|
+
}
|
|
18578
|
+
function varsUsedByIrExpression(expr) {
|
|
18579
|
+
switch (expr.kind) {
|
|
18580
|
+
case ExpressionKind.PureFunctionExpr:
|
|
18581
|
+
return 1 + expr.args.length;
|
|
18582
|
+
case ExpressionKind.PipeBinding:
|
|
18583
|
+
return 1 + expr.args.length;
|
|
18584
|
+
case ExpressionKind.PipeBindingVariadic:
|
|
18585
|
+
return 1 + expr.numArgs;
|
|
18586
|
+
default:
|
|
18587
|
+
throw new Error(`AssertionError: unhandled ConsumesVarsTrait expression ${expr.constructor.name}`);
|
|
18588
|
+
}
|
|
18589
|
+
}
|
|
18590
|
+
function isSingletonInterpolation(expr) {
|
|
18591
|
+
if (expr.expressions.length !== 1 || expr.strings.length !== 2) {
|
|
18592
|
+
return false;
|
|
18593
|
+
}
|
|
18594
|
+
if (expr.strings[0] !== "" || expr.strings[1] !== "") {
|
|
18595
|
+
return false;
|
|
18596
|
+
}
|
|
18597
|
+
return true;
|
|
18598
|
+
}
|
|
18599
|
+
|
|
18600
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/variable_optimization.mjs
|
|
18378
18601
|
function phaseVariableOptimization(job) {
|
|
18379
18602
|
for (const unit of job.units) {
|
|
18603
|
+
inlineAlwaysInlineVariables(unit.create);
|
|
18604
|
+
inlineAlwaysInlineVariables(unit.update);
|
|
18605
|
+
for (const op of unit.create) {
|
|
18606
|
+
if (op.kind === OpKind.Listener) {
|
|
18607
|
+
inlineAlwaysInlineVariables(op.handlerOps);
|
|
18608
|
+
}
|
|
18609
|
+
}
|
|
18380
18610
|
optimizeVariablesInOpList(unit.create, job.compatibility);
|
|
18381
18611
|
optimizeVariablesInOpList(unit.update, job.compatibility);
|
|
18382
18612
|
for (const op of unit.create) {
|
|
@@ -18393,6 +18623,29 @@ var Fence;
|
|
|
18393
18623
|
Fence2[Fence2["ViewContextWrite"] = 3] = "ViewContextWrite";
|
|
18394
18624
|
Fence2[Fence2["SideEffectful"] = 4] = "SideEffectful";
|
|
18395
18625
|
})(Fence || (Fence = {}));
|
|
18626
|
+
function inlineAlwaysInlineVariables(ops) {
|
|
18627
|
+
const vars = /* @__PURE__ */ new Map();
|
|
18628
|
+
for (const op of ops) {
|
|
18629
|
+
if (op.kind === OpKind.Variable && op.flags & VariableFlags.AlwaysInline) {
|
|
18630
|
+
visitExpressionsInOp(op, (expr) => {
|
|
18631
|
+
if (isIrExpression(expr) && fencesForIrExpression(expr) !== Fence.None) {
|
|
18632
|
+
throw new Error(`AssertionError: A context-sensitive variable was marked AlwaysInline`);
|
|
18633
|
+
}
|
|
18634
|
+
});
|
|
18635
|
+
vars.set(op.xref, op);
|
|
18636
|
+
}
|
|
18637
|
+
transformExpressionsInOp(op, (expr) => {
|
|
18638
|
+
if (expr instanceof ReadVariableExpr && vars.has(expr.xref)) {
|
|
18639
|
+
const varOp = vars.get(expr.xref);
|
|
18640
|
+
return varOp.initializer.clone();
|
|
18641
|
+
}
|
|
18642
|
+
return expr;
|
|
18643
|
+
}, VisitorContextFlag.None);
|
|
18644
|
+
}
|
|
18645
|
+
for (const op of vars.values()) {
|
|
18646
|
+
OpList.remove(op);
|
|
18647
|
+
}
|
|
18648
|
+
}
|
|
18396
18649
|
function optimizeVariablesInOpList(ops, compatibility) {
|
|
18397
18650
|
const varDecls = /* @__PURE__ */ new Map();
|
|
18398
18651
|
const varUsages = /* @__PURE__ */ new Map();
|
|
@@ -18432,7 +18685,10 @@ function optimizeVariablesInOpList(ops, compatibility) {
|
|
|
18432
18685
|
}
|
|
18433
18686
|
const toInline = [];
|
|
18434
18687
|
for (const [id, count] of varUsages) {
|
|
18435
|
-
|
|
18688
|
+
const decl = varDecls.get(id);
|
|
18689
|
+
const varInfo = opMap.get(decl);
|
|
18690
|
+
const isAlwaysInline = !!(decl.flags & VariableFlags.AlwaysInline);
|
|
18691
|
+
if (count !== 1 || isAlwaysInline) {
|
|
18436
18692
|
continue;
|
|
18437
18693
|
}
|
|
18438
18694
|
if (varRemoteUsages.has(id)) {
|
|
@@ -18444,6 +18700,10 @@ function optimizeVariablesInOpList(ops, compatibility) {
|
|
|
18444
18700
|
while (candidate = toInline.pop()) {
|
|
18445
18701
|
const decl = varDecls.get(candidate);
|
|
18446
18702
|
const varInfo = opMap.get(decl);
|
|
18703
|
+
const isAlwaysInline = !!(decl.flags & VariableFlags.AlwaysInline);
|
|
18704
|
+
if (isAlwaysInline) {
|
|
18705
|
+
throw new Error(`AssertionError: Found an 'AlwaysInline' variable after the always inlining pass.`);
|
|
18706
|
+
}
|
|
18447
18707
|
for (let targetOp = decl.next; targetOp.kind !== OpKind.ListEnd; targetOp = targetOp.next) {
|
|
18448
18708
|
const opInfo = opMap.get(targetOp);
|
|
18449
18709
|
if (opInfo.variablesUsed.has(candidate)) {
|
|
@@ -18587,7 +18847,7 @@ function allowConservativeInlining(decl, target) {
|
|
|
18587
18847
|
}
|
|
18588
18848
|
}
|
|
18589
18849
|
|
|
18590
|
-
// bazel-out/
|
|
18850
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/wrap_icus.mjs
|
|
18591
18851
|
function phaseWrapIcus(job) {
|
|
18592
18852
|
for (const unit of job.units) {
|
|
18593
18853
|
let currentI18nOp = null;
|
|
@@ -18611,7 +18871,105 @@ function phaseWrapIcus(job) {
|
|
|
18611
18871
|
}
|
|
18612
18872
|
}
|
|
18613
18873
|
|
|
18614
|
-
// bazel-out/
|
|
18874
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_variables.mjs
|
|
18875
|
+
function phaseTrackVariables(job) {
|
|
18876
|
+
for (const unit of job.units) {
|
|
18877
|
+
for (const op of unit.create) {
|
|
18878
|
+
if (op.kind !== OpKind.RepeaterCreate) {
|
|
18879
|
+
continue;
|
|
18880
|
+
}
|
|
18881
|
+
op.track = transformExpressionsInExpression(op.track, (expr) => {
|
|
18882
|
+
if (expr instanceof LexicalReadExpr) {
|
|
18883
|
+
if (expr.name === op.varNames.$index) {
|
|
18884
|
+
return variable("$index");
|
|
18885
|
+
} else if (expr.name === op.varNames.$implicit) {
|
|
18886
|
+
return variable("$item");
|
|
18887
|
+
}
|
|
18888
|
+
}
|
|
18889
|
+
return expr;
|
|
18890
|
+
}, VisitorContextFlag.None);
|
|
18891
|
+
}
|
|
18892
|
+
}
|
|
18893
|
+
}
|
|
18894
|
+
|
|
18895
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_fn_generation.mjs
|
|
18896
|
+
function phaseTrackFnGeneration(job) {
|
|
18897
|
+
for (const unit of job.units) {
|
|
18898
|
+
for (const op of unit.create) {
|
|
18899
|
+
if (op.kind !== OpKind.RepeaterCreate) {
|
|
18900
|
+
continue;
|
|
18901
|
+
}
|
|
18902
|
+
if (op.trackByFn !== null) {
|
|
18903
|
+
continue;
|
|
18904
|
+
}
|
|
18905
|
+
let usesComponentContext = false;
|
|
18906
|
+
op.track = transformExpressionsInExpression(op.track, (expr) => {
|
|
18907
|
+
if (expr instanceof TrackContextExpr) {
|
|
18908
|
+
usesComponentContext = true;
|
|
18909
|
+
return variable("this");
|
|
18910
|
+
}
|
|
18911
|
+
return expr;
|
|
18912
|
+
}, VisitorContextFlag.None);
|
|
18913
|
+
let fn2;
|
|
18914
|
+
const fnParams = [new FnParam("$index"), new FnParam("$item")];
|
|
18915
|
+
if (usesComponentContext) {
|
|
18916
|
+
fn2 = new FunctionExpr(fnParams, [new ReturnStatement(op.track)]);
|
|
18917
|
+
} else {
|
|
18918
|
+
fn2 = arrowFn(fnParams, op.track);
|
|
18919
|
+
}
|
|
18920
|
+
op.trackByFn = job.pool.getSharedFunctionReference(fn2, "_forTrack");
|
|
18921
|
+
}
|
|
18922
|
+
}
|
|
18923
|
+
}
|
|
18924
|
+
|
|
18925
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_fn_optimization.mjs
|
|
18926
|
+
function phaseTrackFnOptimization(job) {
|
|
18927
|
+
for (const unit of job.units) {
|
|
18928
|
+
for (const op of unit.create) {
|
|
18929
|
+
if (op.kind !== OpKind.RepeaterCreate) {
|
|
18930
|
+
continue;
|
|
18931
|
+
}
|
|
18932
|
+
if (op.track instanceof ReadVarExpr && op.track.name === "$index") {
|
|
18933
|
+
op.trackByFn = importExpr(Identifiers.repeaterTrackByIndex);
|
|
18934
|
+
} else if (op.track instanceof ReadVarExpr && op.track.name === "$item") {
|
|
18935
|
+
op.trackByFn = importExpr(Identifiers.repeaterTrackByIdentity);
|
|
18936
|
+
} else if (isTrackByFunctionCall(job.root.xref, op.track)) {
|
|
18937
|
+
if (op.track.receiver.receiver.view === unit.xref) {
|
|
18938
|
+
op.trackByFn = op.track.receiver;
|
|
18939
|
+
} else {
|
|
18940
|
+
op.trackByFn = importExpr(Identifiers.componentInstance).callFn([]).prop(op.track.receiver.name);
|
|
18941
|
+
op.track = op.trackByFn;
|
|
18942
|
+
}
|
|
18943
|
+
} else {
|
|
18944
|
+
op.track = transformExpressionsInExpression(op.track, (expr) => {
|
|
18945
|
+
if (expr instanceof ContextExpr) {
|
|
18946
|
+
op.usesComponentInstance = true;
|
|
18947
|
+
return new TrackContextExpr(expr.view);
|
|
18948
|
+
}
|
|
18949
|
+
return expr;
|
|
18950
|
+
}, VisitorContextFlag.None);
|
|
18951
|
+
}
|
|
18952
|
+
}
|
|
18953
|
+
}
|
|
18954
|
+
}
|
|
18955
|
+
function isTrackByFunctionCall(rootView, expr) {
|
|
18956
|
+
if (!(expr instanceof InvokeFunctionExpr) || expr.args.length !== 2) {
|
|
18957
|
+
return false;
|
|
18958
|
+
}
|
|
18959
|
+
if (!(expr.receiver instanceof ReadPropExpr && expr.receiver.receiver instanceof ContextExpr) || expr.receiver.receiver.view !== rootView) {
|
|
18960
|
+
return false;
|
|
18961
|
+
}
|
|
18962
|
+
const [arg0, arg1] = expr.args;
|
|
18963
|
+
if (!(arg0 instanceof ReadVarExpr) || arg0.name !== "$index") {
|
|
18964
|
+
return false;
|
|
18965
|
+
}
|
|
18966
|
+
if (!(arg1 instanceof ReadVarExpr) || arg1.name !== "$item") {
|
|
18967
|
+
return false;
|
|
18968
|
+
}
|
|
18969
|
+
return true;
|
|
18970
|
+
}
|
|
18971
|
+
|
|
18972
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/emit.mjs
|
|
18615
18973
|
var phases = [
|
|
18616
18974
|
{ kind: CompilationJobKind.Tmpl, fn: phaseRemoveContentSelectors },
|
|
18617
18975
|
{ kind: CompilationJobKind.Host, fn: phaseHostStylePropertyParsing },
|
|
@@ -18623,6 +18981,8 @@ var phases = [
|
|
|
18623
18981
|
{ kind: CompilationJobKind.Both, fn: phaseAttributeExtraction },
|
|
18624
18982
|
{ kind: CompilationJobKind.Both, fn: phaseParseExtractedStyles },
|
|
18625
18983
|
{ kind: CompilationJobKind.Tmpl, fn: phaseRemoveEmptyBindings },
|
|
18984
|
+
{ kind: CompilationJobKind.Both, fn: phaseCollapseSingletonInterpolations },
|
|
18985
|
+
{ kind: CompilationJobKind.Both, fn: phaseOrdering },
|
|
18626
18986
|
{ kind: CompilationJobKind.Tmpl, fn: phaseConditionals },
|
|
18627
18987
|
{ kind: CompilationJobKind.Tmpl, fn: phasePipeCreation },
|
|
18628
18988
|
{ kind: CompilationJobKind.Tmpl, fn: phaseI18nTextExtraction },
|
|
@@ -18635,7 +18995,10 @@ var phases = [
|
|
|
18635
18995
|
{ kind: CompilationJobKind.Tmpl, fn: phaseSaveRestoreView },
|
|
18636
18996
|
{ kind: CompilationJobKind.Tmpl, fn: phaseFindAnyCasts },
|
|
18637
18997
|
{ kind: CompilationJobKind.Both, fn: phaseResolveDollarEvent },
|
|
18998
|
+
{ kind: CompilationJobKind.Tmpl, fn: phaseRepeaterDerivedVars },
|
|
18999
|
+
{ kind: CompilationJobKind.Tmpl, fn: phaseTrackVariables },
|
|
18638
19000
|
{ kind: CompilationJobKind.Both, fn: phaseResolveNames },
|
|
19001
|
+
{ kind: CompilationJobKind.Tmpl, fn: phaseTrackFnOptimization },
|
|
18639
19002
|
{ kind: CompilationJobKind.Both, fn: phaseResolveContexts },
|
|
18640
19003
|
{ kind: CompilationJobKind.Tmpl, fn: phaseResolveSanitizers },
|
|
18641
19004
|
{ kind: CompilationJobKind.Tmpl, fn: phaseLocalRefs },
|
|
@@ -18644,6 +19007,7 @@ var phases = [
|
|
|
18644
19007
|
{ kind: CompilationJobKind.Both, fn: phaseTemporaryVariables },
|
|
18645
19008
|
{ kind: CompilationJobKind.Tmpl, fn: phaseSlotAllocation },
|
|
18646
19009
|
{ kind: CompilationJobKind.Tmpl, fn: phaseResolveI18nPlaceholders },
|
|
19010
|
+
{ kind: CompilationJobKind.Tmpl, fn: phaseTrackFnGeneration },
|
|
18647
19011
|
{ kind: CompilationJobKind.Tmpl, fn: phaseI18nMessageExtraction },
|
|
18648
19012
|
{ kind: CompilationJobKind.Tmpl, fn: phaseI18nConstCollection },
|
|
18649
19013
|
{ kind: CompilationJobKind.Tmpl, fn: phaseConstTraitCollection },
|
|
@@ -18658,8 +19022,6 @@ var phases = [
|
|
|
18658
19022
|
{ kind: CompilationJobKind.Tmpl, fn: phaseEmptyElements },
|
|
18659
19023
|
{ kind: CompilationJobKind.Tmpl, fn: phaseNonbindable },
|
|
18660
19024
|
{ kind: CompilationJobKind.Both, fn: phasePureFunctionExtraction },
|
|
18661
|
-
{ kind: CompilationJobKind.Tmpl, fn: phaseAlignPipeVariadicVarOffset },
|
|
18662
|
-
{ kind: CompilationJobKind.Both, fn: phaseOrdering },
|
|
18663
19025
|
{ kind: CompilationJobKind.Both, fn: phaseReify },
|
|
18664
19026
|
{ kind: CompilationJobKind.Both, fn: phaseChaining }
|
|
18665
19027
|
];
|
|
@@ -18765,7 +19127,7 @@ function emitHostBindingFunction(job) {
|
|
|
18765
19127
|
);
|
|
18766
19128
|
}
|
|
18767
19129
|
|
|
18768
|
-
// bazel-out/
|
|
19130
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/ingest.mjs
|
|
18769
19131
|
var compatibilityMode = CompatibilityMode.TemplateDefinitionBuilder;
|
|
18770
19132
|
function ingestComponent(componentName, template2, constantPool, relativeContextFilePath, i18nUseExternalIds) {
|
|
18771
19133
|
const cpl = new ComponentCompilationJob(componentName, constantPool, compatibilityMode, relativeContextFilePath, i18nUseExternalIds);
|
|
@@ -18843,6 +19205,8 @@ function ingestNodes(unit, template2) {
|
|
|
18843
19205
|
ingestDeferBlock(unit, node);
|
|
18844
19206
|
} else if (node instanceof Icu) {
|
|
18845
19207
|
ingestIcu(unit, node);
|
|
19208
|
+
} else if (node instanceof ForLoopBlock) {
|
|
19209
|
+
ingestForBlock(unit, node);
|
|
18846
19210
|
} else {
|
|
18847
19211
|
throw new Error(`Unsupported template node: ${node.constructor.name}`);
|
|
18848
19212
|
}
|
|
@@ -18888,7 +19252,7 @@ function ingestTemplate(unit, tmpl) {
|
|
|
18888
19252
|
ingestReferences(tplOp, tmpl);
|
|
18889
19253
|
ingestNodes(childView, tmpl.children);
|
|
18890
19254
|
for (const { name, value } of tmpl.variables) {
|
|
18891
|
-
childView.contextVariables.set(name, value);
|
|
19255
|
+
childView.contextVariables.set(name, value !== "" ? value : "$implicit");
|
|
18892
19256
|
}
|
|
18893
19257
|
if (isPlainTemplate(tmpl) && tmpl.i18n instanceof Message) {
|
|
18894
19258
|
const id = unit.job.allocateXrefId();
|
|
@@ -18897,7 +19261,7 @@ function ingestTemplate(unit, tmpl) {
|
|
|
18897
19261
|
}
|
|
18898
19262
|
}
|
|
18899
19263
|
function ingestContent(unit, content) {
|
|
18900
|
-
const op = createProjectionOp(unit.job.allocateXrefId(), content.selector);
|
|
19264
|
+
const op = createProjectionOp(unit.job.allocateXrefId(), content.selector, content.sourceSpan);
|
|
18901
19265
|
for (const attr of content.attributes) {
|
|
18902
19266
|
ingestBinding(unit, op.xref, attr.name, literal(attr.value), 1, null, SecurityContext.NONE, attr.sourceSpan, BindingFlags.TextValue);
|
|
18903
19267
|
}
|
|
@@ -19010,6 +19374,47 @@ function ingestIcu(unit, icu) {
|
|
|
19010
19374
|
throw Error(`Unhandled i18n metadata type for ICU: ${(_a2 = icu.i18n) == null ? void 0 : _a2.constructor.name}`);
|
|
19011
19375
|
}
|
|
19012
19376
|
}
|
|
19377
|
+
function ingestForBlock(unit, forBlock) {
|
|
19378
|
+
var _a2;
|
|
19379
|
+
const repeaterView = unit.job.allocateView(unit.xref);
|
|
19380
|
+
const createRepeaterAlias = (ident, repeaterVar) => {
|
|
19381
|
+
repeaterView.aliases.add({
|
|
19382
|
+
kind: SemanticVariableKind.Alias,
|
|
19383
|
+
name: null,
|
|
19384
|
+
identifier: ident,
|
|
19385
|
+
expression: new DerivedRepeaterVarExpr(repeaterView.xref, repeaterVar)
|
|
19386
|
+
});
|
|
19387
|
+
};
|
|
19388
|
+
repeaterView.contextVariables.set(forBlock.item.name, forBlock.item.value);
|
|
19389
|
+
repeaterView.contextVariables.set(forBlock.contextVariables.$index.name, forBlock.contextVariables.$index.value);
|
|
19390
|
+
repeaterView.contextVariables.set(forBlock.contextVariables.$count.name, forBlock.contextVariables.$count.value);
|
|
19391
|
+
createRepeaterAlias(forBlock.contextVariables.$first.name, DerivedRepeaterVarIdentity.First);
|
|
19392
|
+
createRepeaterAlias(forBlock.contextVariables.$last.name, DerivedRepeaterVarIdentity.Last);
|
|
19393
|
+
createRepeaterAlias(forBlock.contextVariables.$even.name, DerivedRepeaterVarIdentity.Even);
|
|
19394
|
+
createRepeaterAlias(forBlock.contextVariables.$odd.name, DerivedRepeaterVarIdentity.Odd);
|
|
19395
|
+
const sourceSpan = convertSourceSpan(forBlock.trackBy.span, forBlock.sourceSpan);
|
|
19396
|
+
const track = convertAst(forBlock.trackBy, unit.job, sourceSpan);
|
|
19397
|
+
ingestNodes(repeaterView, forBlock.children);
|
|
19398
|
+
let emptyView = null;
|
|
19399
|
+
if (forBlock.empty !== null) {
|
|
19400
|
+
emptyView = unit.job.allocateView(unit.xref);
|
|
19401
|
+
ingestNodes(emptyView, forBlock.empty.children);
|
|
19402
|
+
}
|
|
19403
|
+
const varNames = {
|
|
19404
|
+
$index: forBlock.contextVariables.$index.name,
|
|
19405
|
+
$count: forBlock.contextVariables.$count.name,
|
|
19406
|
+
$first: forBlock.contextVariables.$first.name,
|
|
19407
|
+
$last: forBlock.contextVariables.$last.name,
|
|
19408
|
+
$even: forBlock.contextVariables.$even.name,
|
|
19409
|
+
$odd: forBlock.contextVariables.$odd.name,
|
|
19410
|
+
$implicit: forBlock.item.name
|
|
19411
|
+
};
|
|
19412
|
+
const repeaterCreate2 = createRepeaterCreateOp(repeaterView.xref, (_a2 = emptyView == null ? void 0 : emptyView.xref) != null ? _a2 : null, track, varNames, forBlock.sourceSpan);
|
|
19413
|
+
unit.create.push(repeaterCreate2);
|
|
19414
|
+
const expression = convertAst(forBlock.expression, unit.job, convertSourceSpan(forBlock.expression.span, forBlock.sourceSpan));
|
|
19415
|
+
const repeater2 = createRepeaterOp(repeaterCreate2.xref, expression, forBlock.sourceSpan);
|
|
19416
|
+
unit.update.push(repeater2);
|
|
19417
|
+
}
|
|
19013
19418
|
function convertAst(ast, job, baseSourceSpan) {
|
|
19014
19419
|
if (ast instanceof ASTWithSource) {
|
|
19015
19420
|
return convertAst(ast.ast, job, baseSourceSpan);
|
|
@@ -19191,10 +19596,10 @@ function convertSourceSpan(span, baseSourceSpan) {
|
|
|
19191
19596
|
return new ParseSourceSpan(start, end, fullStart);
|
|
19192
19597
|
}
|
|
19193
19598
|
|
|
19194
|
-
// bazel-out/
|
|
19599
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/switch/index.mjs
|
|
19195
19600
|
var USE_TEMPLATE_PIPELINE = false;
|
|
19196
19601
|
|
|
19197
|
-
// bazel-out/
|
|
19602
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/styling_builder.mjs
|
|
19198
19603
|
var IMPORTANT_FLAG = "!important";
|
|
19199
19604
|
var MIN_STYLING_BINDING_SLOTS_REQUIRED = 2;
|
|
19200
19605
|
var StylingBuilder = class {
|
|
@@ -19527,7 +19932,7 @@ function isEmptyExpression(ast) {
|
|
|
19527
19932
|
return ast instanceof EmptyExpr;
|
|
19528
19933
|
}
|
|
19529
19934
|
|
|
19530
|
-
// bazel-out/
|
|
19935
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/html_parser.mjs
|
|
19531
19936
|
var HtmlParser = class extends Parser2 {
|
|
19532
19937
|
constructor() {
|
|
19533
19938
|
super(getHtmlTagDefinition);
|
|
@@ -19537,7 +19942,7 @@ var HtmlParser = class extends Parser2 {
|
|
|
19537
19942
|
}
|
|
19538
19943
|
};
|
|
19539
19944
|
|
|
19540
|
-
// bazel-out/
|
|
19945
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/html_whitespaces.mjs
|
|
19541
19946
|
var PRESERVE_WS_ATTR_NAME = "ngPreserveWhitespaces";
|
|
19542
19947
|
var SKIP_WS_TRIM_TAGS = /* @__PURE__ */ new Set(["pre", "template", "textarea", "script", "style"]);
|
|
19543
19948
|
var WS_CHARS = " \f\n\r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF";
|
|
@@ -19579,7 +19984,7 @@ var WhitespaceVisitor = class {
|
|
|
19579
19984
|
return expansionCase;
|
|
19580
19985
|
}
|
|
19581
19986
|
visitBlock(block, context) {
|
|
19582
|
-
return new Block(block.name, block.parameters, visitAllWithSiblings(this, block.children), block.sourceSpan, block.startSourceSpan, block.endSourceSpan);
|
|
19987
|
+
return new Block(block.name, block.parameters, visitAllWithSiblings(this, block.children), block.sourceSpan, block.nameSpan, block.startSourceSpan, block.endSourceSpan);
|
|
19583
19988
|
}
|
|
19584
19989
|
visitBlockParameter(parameter, context) {
|
|
19585
19990
|
return parameter;
|
|
@@ -19603,7 +20008,7 @@ function visitAllWithSiblings(visitor, nodes) {
|
|
|
19603
20008
|
return result;
|
|
19604
20009
|
}
|
|
19605
20010
|
|
|
19606
|
-
// bazel-out/
|
|
20011
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template_parser/binding_parser.mjs
|
|
19607
20012
|
var PROPERTY_PARTS_SEPARATOR = ".";
|
|
19608
20013
|
var ATTRIBUTE_PREFIX = "attr";
|
|
19609
20014
|
var CLASS_PREFIX = "class";
|
|
@@ -19923,7 +20328,7 @@ function moveParseSourceSpan(sourceSpan, absoluteSpan) {
|
|
|
19923
20328
|
return new ParseSourceSpan(sourceSpan.start.moveBy(startDiff), sourceSpan.end.moveBy(endDiff), sourceSpan.fullStart.moveBy(startDiff), sourceSpan.details);
|
|
19924
20329
|
}
|
|
19925
20330
|
|
|
19926
|
-
// bazel-out/
|
|
20331
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/style_url_resolver.mjs
|
|
19927
20332
|
function isStyleUrlResolvable(url) {
|
|
19928
20333
|
if (url == null || url.length === 0 || url[0] == "/")
|
|
19929
20334
|
return false;
|
|
@@ -19932,7 +20337,7 @@ function isStyleUrlResolvable(url) {
|
|
|
19932
20337
|
}
|
|
19933
20338
|
var URL_WITH_SCHEMA_REGEXP = /^([^:/?#]+):/;
|
|
19934
20339
|
|
|
19935
|
-
// bazel-out/
|
|
20340
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template_parser/template_preparser.mjs
|
|
19936
20341
|
var NG_CONTENT_SELECT_ATTR = "select";
|
|
19937
20342
|
var LINK_ELEMENT = "link";
|
|
19938
20343
|
var LINK_STYLE_REL_ATTR = "rel";
|
|
@@ -20002,7 +20407,7 @@ function normalizeNgContentSelect(selectAttr) {
|
|
|
20002
20407
|
return selectAttr;
|
|
20003
20408
|
}
|
|
20004
20409
|
|
|
20005
|
-
// bazel-out/
|
|
20410
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_control_flow.mjs
|
|
20006
20411
|
var FOR_LOOP_EXPRESSION_PATTERN = /^\s*([0-9A-Za-z_$]*)\s+of\s+(.*)/;
|
|
20007
20412
|
var FOR_LOOP_TRACK_PATTERN = /^track\s+([\S\s]*)/;
|
|
20008
20413
|
var CONDITIONAL_ALIAS_PATTERN = /^as\s+(.*)/;
|
|
@@ -20087,7 +20492,7 @@ function createSwitchBlock(ast, visitor, bindingParser) {
|
|
|
20087
20492
|
continue;
|
|
20088
20493
|
}
|
|
20089
20494
|
if ((node.name !== "case" || node.parameters.length === 0) && node.name !== "default") {
|
|
20090
|
-
unknownBlocks.push(new UnknownBlock(node.name, node.sourceSpan));
|
|
20495
|
+
unknownBlocks.push(new UnknownBlock(node.name, node.sourceSpan, node.nameSpan));
|
|
20091
20496
|
continue;
|
|
20092
20497
|
}
|
|
20093
20498
|
const expression = node.name === "case" ? parseBlockParameterToBinding(node.parameters[0], bindingParser) : null;
|
|
@@ -20291,7 +20696,7 @@ function stripOptionalParentheses(param, errors) {
|
|
|
20291
20696
|
return expression.slice(start, end);
|
|
20292
20697
|
}
|
|
20293
20698
|
|
|
20294
|
-
// bazel-out/
|
|
20699
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_deferred_triggers.mjs
|
|
20295
20700
|
var TIME_PATTERN = /^\d+(ms|s)?$/;
|
|
20296
20701
|
var SEPARATOR_PATTERN = /^\s$/;
|
|
20297
20702
|
var COMMA_DELIMITED_SYNTAX = /* @__PURE__ */ new Map([
|
|
@@ -20539,7 +20944,7 @@ function parseDeferredTime(value) {
|
|
|
20539
20944
|
return parseInt(time) * (units === "s" ? 1e3 : 1);
|
|
20540
20945
|
}
|
|
20541
20946
|
|
|
20542
|
-
// bazel-out/
|
|
20947
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_deferred_blocks.mjs
|
|
20543
20948
|
var PREFETCH_WHEN_PATTERN = /^prefetch\s+when\s/;
|
|
20544
20949
|
var PREFETCH_ON_PATTERN = /^prefetch\s+on\s/;
|
|
20545
20950
|
var MINIMUM_PARAMETER_PATTERN = /^minimum\s/;
|
|
@@ -20674,7 +21079,7 @@ function parsePrimaryTriggers(params, bindingParser, errors, placeholder) {
|
|
|
20674
21079
|
return { triggers, prefetchTriggers };
|
|
20675
21080
|
}
|
|
20676
21081
|
|
|
20677
|
-
// bazel-out/
|
|
21082
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_template_transform.mjs
|
|
20678
21083
|
var BIND_NAME_REGEXP = /^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/;
|
|
20679
21084
|
var KW_BIND_IDX = 1;
|
|
20680
21085
|
var KW_LET_IDX = 2;
|
|
@@ -20892,7 +21297,7 @@ var HtmlAstToIvyAst = class {
|
|
|
20892
21297
|
errorMessage = `Unrecognized block @${block.name}.`;
|
|
20893
21298
|
}
|
|
20894
21299
|
result = {
|
|
20895
|
-
node: new UnknownBlock(block.name, block.sourceSpan),
|
|
21300
|
+
node: new UnknownBlock(block.name, block.sourceSpan, block.nameSpan),
|
|
20896
21301
|
errors: [new ParseError(block.sourceSpan, errorMessage)]
|
|
20897
21302
|
};
|
|
20898
21303
|
break;
|
|
@@ -21105,7 +21510,7 @@ function textContents(node) {
|
|
|
21105
21510
|
}
|
|
21106
21511
|
}
|
|
21107
21512
|
|
|
21108
|
-
// bazel-out/
|
|
21513
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/i18n/context.mjs
|
|
21109
21514
|
var TagType;
|
|
21110
21515
|
(function(TagType2) {
|
|
21111
21516
|
TagType2[TagType2["ELEMENT"] = 0] = "ELEMENT";
|
|
@@ -21240,7 +21645,7 @@ function serializePlaceholderValue(value) {
|
|
|
21240
21645
|
}
|
|
21241
21646
|
}
|
|
21242
21647
|
|
|
21243
|
-
// bazel-out/
|
|
21648
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/template.mjs
|
|
21244
21649
|
var NG_CONTENT_SELECT_ATTR2 = "select";
|
|
21245
21650
|
var NG_PROJECT_AS_ATTR_NAME = "ngProjectAs";
|
|
21246
21651
|
var EVENT_BINDING_SCOPE_GLOBALS = /* @__PURE__ */ new Set(["$event"]);
|
|
@@ -22870,7 +23275,7 @@ function createClosureModeGuard2() {
|
|
|
22870
23275
|
return typeofExpr(variable(NG_I18N_CLOSURE_MODE2)).notIdentical(literal("undefined", STRING_TYPE)).and(variable(NG_I18N_CLOSURE_MODE2));
|
|
22871
23276
|
}
|
|
22872
23277
|
|
|
22873
|
-
// bazel-out/
|
|
23278
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/compiler.mjs
|
|
22874
23279
|
var ATTR_REGEX = /attr\.([^\]]+)/;
|
|
22875
23280
|
var COMPONENT_VARIABLE = "%COMP%";
|
|
22876
23281
|
var HOST_ATTR = `_nghost-${COMPONENT_VARIABLE}`;
|
|
@@ -23472,7 +23877,7 @@ function createHostDirectivesMappingArray(mapping) {
|
|
|
23472
23877
|
return elements.length > 0 ? literalArr(elements) : null;
|
|
23473
23878
|
}
|
|
23474
23879
|
|
|
23475
|
-
// bazel-out/
|
|
23880
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/t2_binder.mjs
|
|
23476
23881
|
var R3TargetBinder = class {
|
|
23477
23882
|
constructor(directiveMatcher) {
|
|
23478
23883
|
this.directiveMatcher = directiveMatcher;
|
|
@@ -24064,11 +24469,11 @@ function extractScopedNodeEntities(rootScope) {
|
|
|
24064
24469
|
return templateEntities;
|
|
24065
24470
|
}
|
|
24066
24471
|
|
|
24067
|
-
// bazel-out/
|
|
24472
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/resource_loader.mjs
|
|
24068
24473
|
var ResourceLoader = class {
|
|
24069
24474
|
};
|
|
24070
24475
|
|
|
24071
|
-
// bazel-out/
|
|
24476
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/jit_compiler_facade.mjs
|
|
24072
24477
|
var CompilerFacadeImpl = class {
|
|
24073
24478
|
constructor(jitEvaluator = new JitEvaluator()) {
|
|
24074
24479
|
this.jitEvaluator = jitEvaluator;
|
|
@@ -24620,10 +25025,10 @@ function publishFacade(global) {
|
|
|
24620
25025
|
ng.\u0275compilerFacade = new CompilerFacadeImpl();
|
|
24621
25026
|
}
|
|
24622
25027
|
|
|
24623
|
-
// bazel-out/
|
|
24624
|
-
var VERSION2 = new Version("17.0.0-rc.
|
|
25028
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/version.mjs
|
|
25029
|
+
var VERSION2 = new Version("17.0.0-rc.1");
|
|
24625
25030
|
|
|
24626
|
-
// bazel-out/
|
|
25031
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
|
|
24627
25032
|
var _I18N_ATTR = "i18n";
|
|
24628
25033
|
var _I18N_ATTR_PREFIX = "i18n-";
|
|
24629
25034
|
var _I18N_COMMENT_PREFIX_REGEXP = /^i18n:?/;
|
|
@@ -24932,7 +25337,7 @@ function _parseMessageMeta(i18n2) {
|
|
|
24932
25337
|
return { meaning, description, id: id.trim() };
|
|
24933
25338
|
}
|
|
24934
25339
|
|
|
24935
|
-
// bazel-out/
|
|
25340
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/xml_tags.mjs
|
|
24936
25341
|
var XmlTagDefinition = class {
|
|
24937
25342
|
constructor() {
|
|
24938
25343
|
this.closedByParent = false;
|
|
@@ -24957,7 +25362,7 @@ function getXmlTagDefinition(tagName) {
|
|
|
24957
25362
|
return _TAG_DEFINITION;
|
|
24958
25363
|
}
|
|
24959
25364
|
|
|
24960
|
-
// bazel-out/
|
|
25365
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/xml_parser.mjs
|
|
24961
25366
|
var XmlParser = class extends Parser2 {
|
|
24962
25367
|
constructor() {
|
|
24963
25368
|
super(getXmlTagDefinition);
|
|
@@ -24967,7 +25372,7 @@ var XmlParser = class extends Parser2 {
|
|
|
24967
25372
|
}
|
|
24968
25373
|
};
|
|
24969
25374
|
|
|
24970
|
-
// bazel-out/
|
|
25375
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/serializers/xliff.mjs
|
|
24971
25376
|
var _VERSION = "1.2";
|
|
24972
25377
|
var _XMLNS = "urn:oasis:names:tc:xliff:document:1.2";
|
|
24973
25378
|
var _DEFAULT_SOURCE_LANG = "en";
|
|
@@ -25215,7 +25620,7 @@ function getCtypeForTag(tag) {
|
|
|
25215
25620
|
}
|
|
25216
25621
|
}
|
|
25217
25622
|
|
|
25218
|
-
// bazel-out/
|
|
25623
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/serializers/xliff2.mjs
|
|
25219
25624
|
var _VERSION2 = "2.0";
|
|
25220
25625
|
var _XMLNS2 = "urn:oasis:names:tc:xliff:document:2.0";
|
|
25221
25626
|
var _DEFAULT_SOURCE_LANG2 = "en";
|
|
@@ -25514,7 +25919,7 @@ function getTypeForTag(tag) {
|
|
|
25514
25919
|
}
|
|
25515
25920
|
}
|
|
25516
25921
|
|
|
25517
|
-
// bazel-out/
|
|
25922
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/message_bundle.mjs
|
|
25518
25923
|
var MessageBundle = class {
|
|
25519
25924
|
constructor(_htmlParser, _implicitTags, _implicitAttrs, _locale = null) {
|
|
25520
25925
|
this._htmlParser = _htmlParser;
|
|
@@ -25581,7 +25986,7 @@ var MapPlaceholderNames = class extends CloneVisitor {
|
|
|
25581
25986
|
}
|
|
25582
25987
|
};
|
|
25583
25988
|
|
|
25584
|
-
// bazel-out/
|
|
25989
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/partial/api.mjs
|
|
25585
25990
|
var FactoryTarget2;
|
|
25586
25991
|
(function(FactoryTarget3) {
|
|
25587
25992
|
FactoryTarget3[FactoryTarget3["Directive"] = 0] = "Directive";
|
|
@@ -25591,7 +25996,7 @@ var FactoryTarget2;
|
|
|
25591
25996
|
FactoryTarget3[FactoryTarget3["NgModule"] = 4] = "NgModule";
|
|
25592
25997
|
})(FactoryTarget2 || (FactoryTarget2 = {}));
|
|
25593
25998
|
|
|
25594
|
-
// bazel-out/
|
|
25999
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_class_metadata_compiler.mjs
|
|
25595
26000
|
function compileClassMetadata(metadata) {
|
|
25596
26001
|
var _a2, _b2;
|
|
25597
26002
|
const fnCall = importExpr(Identifiers.setClassMetadata).callFn([
|
|
@@ -25633,7 +26038,7 @@ function compileComponentClassMetadata(metadata, deferrableTypes) {
|
|
|
25633
26038
|
return iife.callFn([]);
|
|
25634
26039
|
}
|
|
25635
26040
|
|
|
25636
|
-
// bazel-out/
|
|
26041
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_class_debug_info_compiler.mjs
|
|
25637
26042
|
function compileClassDebugInfo(debugInfo) {
|
|
25638
26043
|
const debugInfoObject = {
|
|
25639
26044
|
className: debugInfo.className
|
|
@@ -25653,12 +26058,12 @@ function compileClassDebugInfo(debugInfo) {
|
|
|
25653
26058
|
return iife.callFn([]);
|
|
25654
26059
|
}
|
|
25655
26060
|
|
|
25656
|
-
// bazel-out/
|
|
26061
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/partial/class_metadata.mjs
|
|
25657
26062
|
var MINIMUM_PARTIAL_LINKER_VERSION = "12.0.0";
|
|
25658
26063
|
function compileDeclareClassMetadata(metadata) {
|
|
25659
26064
|
const definitionMap = new DefinitionMap();
|
|
25660
26065
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
25661
|
-
definitionMap.set("version", literal("17.0.0-rc.
|
|
26066
|
+
definitionMap.set("version", literal("17.0.0-rc.1"));
|
|
25662
26067
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
25663
26068
|
definitionMap.set("type", metadata.type);
|
|
25664
26069
|
definitionMap.set("decorators", metadata.decorators);
|
|
@@ -25667,7 +26072,7 @@ function compileDeclareClassMetadata(metadata) {
|
|
|
25667
26072
|
return importExpr(Identifiers.declareClassMetadata).callFn([definitionMap.toLiteralMap()]);
|
|
25668
26073
|
}
|
|
25669
26074
|
|
|
25670
|
-
// bazel-out/
|
|
26075
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/partial/util.mjs
|
|
25671
26076
|
function toOptionalLiteralArray(values, mapper) {
|
|
25672
26077
|
if (values === null || values.length === 0) {
|
|
25673
26078
|
return null;
|
|
@@ -25715,7 +26120,7 @@ function compileDependency(dep) {
|
|
|
25715
26120
|
return depMeta.toLiteralMap();
|
|
25716
26121
|
}
|
|
25717
26122
|
|
|
25718
|
-
// bazel-out/
|
|
26123
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/partial/directive.mjs
|
|
25719
26124
|
var MINIMUM_PARTIAL_LINKER_VERSION2 = "16.1.0";
|
|
25720
26125
|
function compileDeclareDirectiveFromMetadata(meta) {
|
|
25721
26126
|
const definitionMap = createDirectiveDefinitionMap(meta);
|
|
@@ -25729,7 +26134,7 @@ function createDirectiveDefinitionMap(meta) {
|
|
|
25729
26134
|
const hasTransformFunctions = Object.values(meta.inputs).some((input) => input.transformFunction !== null);
|
|
25730
26135
|
const minVersion = hasTransformFunctions ? MINIMUM_PARTIAL_LINKER_VERSION2 : "14.0.0";
|
|
25731
26136
|
definitionMap.set("minVersion", literal(minVersion));
|
|
25732
|
-
definitionMap.set("version", literal("17.0.0-rc.
|
|
26137
|
+
definitionMap.set("version", literal("17.0.0-rc.1"));
|
|
25733
26138
|
definitionMap.set("type", meta.type.value);
|
|
25734
26139
|
if (meta.isStandalone) {
|
|
25735
26140
|
definitionMap.set("isStandalone", literal(meta.isStandalone));
|
|
@@ -25822,7 +26227,7 @@ function createHostDirectives(hostDirectives) {
|
|
|
25822
26227
|
return literalArr(expressions);
|
|
25823
26228
|
}
|
|
25824
26229
|
|
|
25825
|
-
// bazel-out/
|
|
26230
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/partial/component.mjs
|
|
25826
26231
|
function compileDeclareComponentFromMetadata(meta, template2, additionalTemplateInfo) {
|
|
25827
26232
|
const definitionMap = createComponentDefinitionMap(meta, template2, additionalTemplateInfo);
|
|
25828
26233
|
const expression = importExpr(Identifiers.declareComponent).callFn([definitionMap.toLiteralMap()]);
|
|
@@ -25956,12 +26361,12 @@ var BlockPresenceVisitor = class extends RecursiveVisitor {
|
|
|
25956
26361
|
}
|
|
25957
26362
|
};
|
|
25958
26363
|
|
|
25959
|
-
// bazel-out/
|
|
26364
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/partial/factory.mjs
|
|
25960
26365
|
var MINIMUM_PARTIAL_LINKER_VERSION3 = "12.0.0";
|
|
25961
26366
|
function compileDeclareFactoryFunction(meta) {
|
|
25962
26367
|
const definitionMap = new DefinitionMap();
|
|
25963
26368
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION3));
|
|
25964
|
-
definitionMap.set("version", literal("17.0.0-rc.
|
|
26369
|
+
definitionMap.set("version", literal("17.0.0-rc.1"));
|
|
25965
26370
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
25966
26371
|
definitionMap.set("type", meta.type.value);
|
|
25967
26372
|
definitionMap.set("deps", compileDependencies(meta.deps));
|
|
@@ -25973,7 +26378,7 @@ function compileDeclareFactoryFunction(meta) {
|
|
|
25973
26378
|
};
|
|
25974
26379
|
}
|
|
25975
26380
|
|
|
25976
|
-
// bazel-out/
|
|
26381
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/partial/injectable.mjs
|
|
25977
26382
|
var MINIMUM_PARTIAL_LINKER_VERSION4 = "12.0.0";
|
|
25978
26383
|
function compileDeclareInjectableFromMetadata(meta) {
|
|
25979
26384
|
const definitionMap = createInjectableDefinitionMap(meta);
|
|
@@ -25984,7 +26389,7 @@ function compileDeclareInjectableFromMetadata(meta) {
|
|
|
25984
26389
|
function createInjectableDefinitionMap(meta) {
|
|
25985
26390
|
const definitionMap = new DefinitionMap();
|
|
25986
26391
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION4));
|
|
25987
|
-
definitionMap.set("version", literal("17.0.0-rc.
|
|
26392
|
+
definitionMap.set("version", literal("17.0.0-rc.1"));
|
|
25988
26393
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
25989
26394
|
definitionMap.set("type", meta.type.value);
|
|
25990
26395
|
if (meta.providedIn !== void 0) {
|
|
@@ -26011,7 +26416,7 @@ function createInjectableDefinitionMap(meta) {
|
|
|
26011
26416
|
return definitionMap;
|
|
26012
26417
|
}
|
|
26013
26418
|
|
|
26014
|
-
// bazel-out/
|
|
26419
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/partial/injector.mjs
|
|
26015
26420
|
var MINIMUM_PARTIAL_LINKER_VERSION5 = "12.0.0";
|
|
26016
26421
|
function compileDeclareInjectorFromMetadata(meta) {
|
|
26017
26422
|
const definitionMap = createInjectorDefinitionMap(meta);
|
|
@@ -26022,7 +26427,7 @@ function compileDeclareInjectorFromMetadata(meta) {
|
|
|
26022
26427
|
function createInjectorDefinitionMap(meta) {
|
|
26023
26428
|
const definitionMap = new DefinitionMap();
|
|
26024
26429
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION5));
|
|
26025
|
-
definitionMap.set("version", literal("17.0.0-rc.
|
|
26430
|
+
definitionMap.set("version", literal("17.0.0-rc.1"));
|
|
26026
26431
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
26027
26432
|
definitionMap.set("type", meta.type.value);
|
|
26028
26433
|
definitionMap.set("providers", meta.providers);
|
|
@@ -26032,7 +26437,7 @@ function createInjectorDefinitionMap(meta) {
|
|
|
26032
26437
|
return definitionMap;
|
|
26033
26438
|
}
|
|
26034
26439
|
|
|
26035
|
-
// bazel-out/
|
|
26440
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/partial/ng_module.mjs
|
|
26036
26441
|
var MINIMUM_PARTIAL_LINKER_VERSION6 = "14.0.0";
|
|
26037
26442
|
function compileDeclareNgModuleFromMetadata(meta) {
|
|
26038
26443
|
const definitionMap = createNgModuleDefinitionMap(meta);
|
|
@@ -26046,7 +26451,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
26046
26451
|
throw new Error("Invalid path! Local compilation mode should not get into the partial compilation path");
|
|
26047
26452
|
}
|
|
26048
26453
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION6));
|
|
26049
|
-
definitionMap.set("version", literal("17.0.0-rc.
|
|
26454
|
+
definitionMap.set("version", literal("17.0.0-rc.1"));
|
|
26050
26455
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
26051
26456
|
definitionMap.set("type", meta.type.value);
|
|
26052
26457
|
if (meta.bootstrap.length > 0) {
|
|
@@ -26070,7 +26475,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
26070
26475
|
return definitionMap;
|
|
26071
26476
|
}
|
|
26072
26477
|
|
|
26073
|
-
// bazel-out/
|
|
26478
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/partial/pipe.mjs
|
|
26074
26479
|
var MINIMUM_PARTIAL_LINKER_VERSION7 = "14.0.0";
|
|
26075
26480
|
function compileDeclarePipeFromMetadata(meta) {
|
|
26076
26481
|
const definitionMap = createPipeDefinitionMap(meta);
|
|
@@ -26081,7 +26486,7 @@ function compileDeclarePipeFromMetadata(meta) {
|
|
|
26081
26486
|
function createPipeDefinitionMap(meta) {
|
|
26082
26487
|
const definitionMap = new DefinitionMap();
|
|
26083
26488
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION7));
|
|
26084
|
-
definitionMap.set("version", literal("17.0.0-rc.
|
|
26489
|
+
definitionMap.set("version", literal("17.0.0-rc.1"));
|
|
26085
26490
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
26086
26491
|
definitionMap.set("type", meta.type.value);
|
|
26087
26492
|
if (meta.isStandalone) {
|
|
@@ -26094,13 +26499,13 @@ function createPipeDefinitionMap(meta) {
|
|
|
26094
26499
|
return definitionMap;
|
|
26095
26500
|
}
|
|
26096
26501
|
|
|
26097
|
-
// bazel-out/
|
|
26502
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/compiler.mjs
|
|
26098
26503
|
publishFacade(_global);
|
|
26099
26504
|
|
|
26100
|
-
// bazel-out/
|
|
26101
|
-
var VERSION3 = new Version("17.0.0-rc.
|
|
26505
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/version.mjs
|
|
26506
|
+
var VERSION3 = new Version("17.0.0-rc.1");
|
|
26102
26507
|
|
|
26103
|
-
// bazel-out/
|
|
26508
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
|
|
26104
26509
|
var EmitFlags;
|
|
26105
26510
|
(function(EmitFlags2) {
|
|
26106
26511
|
EmitFlags2[EmitFlags2["DTS"] = 1] = "DTS";
|
|
@@ -26112,13 +26517,13 @@ var EmitFlags;
|
|
|
26112
26517
|
EmitFlags2[EmitFlags2["All"] = 31] = "All";
|
|
26113
26518
|
})(EmitFlags || (EmitFlags = {}));
|
|
26114
26519
|
|
|
26115
|
-
// bazel-out/
|
|
26520
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/compiler_host.mjs
|
|
26116
26521
|
var import_typescript2 = __toESM(require("typescript"), 1);
|
|
26117
26522
|
|
|
26118
|
-
// bazel-out/
|
|
26523
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
26119
26524
|
var import_typescript101 = __toESM(require("typescript"), 1);
|
|
26120
26525
|
|
|
26121
|
-
// bazel-out/
|
|
26526
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
|
|
26122
26527
|
var path = __toESM(require("path"), 1);
|
|
26123
26528
|
function i18nGetExtension(formatName) {
|
|
26124
26529
|
const format = formatName.toLowerCase();
|
|
@@ -26168,10 +26573,10 @@ function getPathNormalizer(basePath) {
|
|
|
26168
26573
|
};
|
|
26169
26574
|
}
|
|
26170
26575
|
|
|
26171
|
-
// bazel-out/
|
|
26576
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
26172
26577
|
var import_typescript3 = __toESM(require("typescript"), 1);
|
|
26173
26578
|
|
|
26174
|
-
// bazel-out/
|
|
26579
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/version_helpers.mjs
|
|
26175
26580
|
function toNumbers(value) {
|
|
26176
26581
|
const suffixIndex = value.lastIndexOf("-");
|
|
26177
26582
|
return value.slice(0, suffixIndex === -1 ? value.length : suffixIndex).split(".").map((segment) => {
|
|
@@ -26206,7 +26611,7 @@ function compareVersions(v1, v2) {
|
|
|
26206
26611
|
return compareNumbers(toNumbers(v1), toNumbers(v2));
|
|
26207
26612
|
}
|
|
26208
26613
|
|
|
26209
|
-
// bazel-out/
|
|
26614
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
26210
26615
|
var MIN_TS_VERSION = "5.2.0";
|
|
26211
26616
|
var MAX_TS_VERSION = "5.3.0";
|
|
26212
26617
|
var tsVersion = import_typescript3.default.version;
|
|
@@ -26219,13 +26624,13 @@ function verifySupportedTypeScriptVersion() {
|
|
|
26219
26624
|
checkVersion(tsVersion, MIN_TS_VERSION, MAX_TS_VERSION);
|
|
26220
26625
|
}
|
|
26221
26626
|
|
|
26222
|
-
// bazel-out/
|
|
26627
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
26223
26628
|
var import_typescript97 = __toESM(require("typescript"), 1);
|
|
26224
26629
|
|
|
26225
|
-
// bazel-out/
|
|
26630
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
|
|
26226
26631
|
var import_typescript31 = __toESM(require("typescript"), 1);
|
|
26227
26632
|
|
|
26228
|
-
// bazel-out/
|
|
26633
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_code.mjs
|
|
26229
26634
|
var ErrorCode;
|
|
26230
26635
|
(function(ErrorCode2) {
|
|
26231
26636
|
ErrorCode2[ErrorCode2["DECORATOR_ARG_NOT_LITERAL"] = 1001] = "DECORATOR_ARG_NOT_LITERAL";
|
|
@@ -26304,7 +26709,7 @@ var ErrorCode;
|
|
|
26304
26709
|
ErrorCode2[ErrorCode2["LOCAL_COMPILATION_IMPORTED_STYLES_STRING"] = 11002] = "LOCAL_COMPILATION_IMPORTED_STYLES_STRING";
|
|
26305
26710
|
})(ErrorCode || (ErrorCode = {}));
|
|
26306
26711
|
|
|
26307
|
-
// bazel-out/
|
|
26712
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/docs.mjs
|
|
26308
26713
|
var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
|
|
26309
26714
|
ErrorCode.DECORATOR_ARG_NOT_LITERAL,
|
|
26310
26715
|
ErrorCode.IMPORT_CYCLE_DETECTED,
|
|
@@ -26316,15 +26721,15 @@ var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
|
|
|
26316
26721
|
ErrorCode.WARN_NGMODULE_ID_UNNECESSARY
|
|
26317
26722
|
]);
|
|
26318
26723
|
|
|
26319
|
-
// bazel-out/
|
|
26724
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
|
|
26320
26725
|
var import_typescript4 = __toESM(require("typescript"), 1);
|
|
26321
26726
|
|
|
26322
|
-
// bazel-out/
|
|
26727
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/util.mjs
|
|
26323
26728
|
function ngErrorCode(code) {
|
|
26324
26729
|
return parseInt("-99" + code);
|
|
26325
26730
|
}
|
|
26326
26731
|
|
|
26327
|
-
// bazel-out/
|
|
26732
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
|
|
26328
26733
|
var FatalDiagnosticError = class {
|
|
26329
26734
|
constructor(code, node, message, relatedInformation) {
|
|
26330
26735
|
this.code = code;
|
|
@@ -26380,10 +26785,10 @@ function addDiagnosticChain(messageText, add) {
|
|
|
26380
26785
|
return messageText;
|
|
26381
26786
|
}
|
|
26382
26787
|
|
|
26383
|
-
// bazel-out/
|
|
26788
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.mjs
|
|
26384
26789
|
var ERROR_DETAILS_PAGE_BASE_URL = "https://angular.io/errors";
|
|
26385
26790
|
|
|
26386
|
-
// bazel-out/
|
|
26791
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.mjs
|
|
26387
26792
|
var ExtendedTemplateDiagnosticName;
|
|
26388
26793
|
(function(ExtendedTemplateDiagnosticName2) {
|
|
26389
26794
|
ExtendedTemplateDiagnosticName2["INVALID_BANANA_IN_BOX"] = "invalidBananaInBox";
|
|
@@ -26397,7 +26802,7 @@ var ExtendedTemplateDiagnosticName;
|
|
|
26397
26802
|
ExtendedTemplateDiagnosticName2["INTERPOLATED_SIGNAL_NOT_INVOKED"] = "interpolatedSignalNotInvoked";
|
|
26398
26803
|
})(ExtendedTemplateDiagnosticName || (ExtendedTemplateDiagnosticName = {}));
|
|
26399
26804
|
|
|
26400
|
-
// bazel-out/
|
|
26805
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/api.mjs
|
|
26401
26806
|
var CompilationMode;
|
|
26402
26807
|
(function(CompilationMode2) {
|
|
26403
26808
|
CompilationMode2[CompilationMode2["FULL"] = 0] = "FULL";
|
|
@@ -26411,7 +26816,7 @@ var HandlerPrecedence;
|
|
|
26411
26816
|
HandlerPrecedence2[HandlerPrecedence2["WEAK"] = 2] = "WEAK";
|
|
26412
26817
|
})(HandlerPrecedence || (HandlerPrecedence = {}));
|
|
26413
26818
|
|
|
26414
|
-
// bazel-out/
|
|
26819
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/alias.mjs
|
|
26415
26820
|
var import_typescript5 = __toESM(require("typescript"), 1);
|
|
26416
26821
|
function aliasTransformFactory(exportStatements) {
|
|
26417
26822
|
return () => {
|
|
@@ -26434,10 +26839,10 @@ function aliasTransformFactory(exportStatements) {
|
|
|
26434
26839
|
};
|
|
26435
26840
|
}
|
|
26436
26841
|
|
|
26437
|
-
// bazel-out/
|
|
26842
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
26438
26843
|
var import_typescript12 = __toESM(require("typescript"), 1);
|
|
26439
26844
|
|
|
26440
|
-
// bazel-out/
|
|
26845
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/api.mjs
|
|
26441
26846
|
var PerfPhase;
|
|
26442
26847
|
(function(PerfPhase2) {
|
|
26443
26848
|
PerfPhase2[PerfPhase2["Unaccounted"] = 0] = "Unaccounted";
|
|
@@ -26505,7 +26910,7 @@ var PerfCheckpoint;
|
|
|
26505
26910
|
PerfCheckpoint2[PerfCheckpoint2["LAST"] = 9] = "LAST";
|
|
26506
26911
|
})(PerfCheckpoint || (PerfCheckpoint = {}));
|
|
26507
26912
|
|
|
26508
|
-
// bazel-out/
|
|
26913
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/noop.mjs
|
|
26509
26914
|
var NoopPerfRecorder = class {
|
|
26510
26915
|
eventCount() {
|
|
26511
26916
|
}
|
|
@@ -26522,7 +26927,7 @@ var NoopPerfRecorder = class {
|
|
|
26522
26927
|
};
|
|
26523
26928
|
var NOOP_PERF_RECORDER = new NoopPerfRecorder();
|
|
26524
26929
|
|
|
26525
|
-
// bazel-out/
|
|
26930
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/clock.mjs
|
|
26526
26931
|
function mark() {
|
|
26527
26932
|
return process.hrtime();
|
|
26528
26933
|
}
|
|
@@ -26531,7 +26936,7 @@ function timeSinceInMicros(mark2) {
|
|
|
26531
26936
|
return delta[0] * 1e6 + Math.floor(delta[1] / 1e3);
|
|
26532
26937
|
}
|
|
26533
26938
|
|
|
26534
|
-
// bazel-out/
|
|
26939
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/recorder.mjs
|
|
26535
26940
|
var ActivePerfRecorder = class {
|
|
26536
26941
|
static zeroedToNow() {
|
|
26537
26942
|
return new ActivePerfRecorder(mark());
|
|
@@ -26625,7 +27030,7 @@ var DelegatingPerfRecorder = class {
|
|
|
26625
27030
|
}
|
|
26626
27031
|
};
|
|
26627
27032
|
|
|
26628
|
-
// bazel-out/
|
|
27033
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/host.mjs
|
|
26629
27034
|
var import_typescript6 = __toESM(require("typescript"), 1);
|
|
26630
27035
|
function isDecoratorIdentifier(exp) {
|
|
26631
27036
|
return import_typescript6.default.isIdentifier(exp) || import_typescript6.default.isPropertyAccessExpression(exp) && import_typescript6.default.isIdentifier(exp.expression) && import_typescript6.default.isIdentifier(exp.name);
|
|
@@ -26639,7 +27044,7 @@ var ClassMemberKind;
|
|
|
26639
27044
|
ClassMemberKind2[ClassMemberKind2["Method"] = 4] = "Method";
|
|
26640
27045
|
})(ClassMemberKind || (ClassMemberKind = {}));
|
|
26641
27046
|
|
|
26642
|
-
// bazel-out/
|
|
27047
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/type_to_value.mjs
|
|
26643
27048
|
var import_typescript7 = __toESM(require("typescript"), 1);
|
|
26644
27049
|
function typeToValue(typeNode, checker) {
|
|
26645
27050
|
if (typeNode === null) {
|
|
@@ -26805,10 +27210,10 @@ function extractModuleName(node) {
|
|
|
26805
27210
|
return node.moduleSpecifier.text;
|
|
26806
27211
|
}
|
|
26807
27212
|
|
|
26808
|
-
// bazel-out/
|
|
27213
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
|
|
26809
27214
|
var import_typescript9 = __toESM(require("typescript"), 1);
|
|
26810
27215
|
|
|
26811
|
-
// bazel-out/
|
|
27216
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/util.mjs
|
|
26812
27217
|
var import_typescript8 = __toESM(require("typescript"), 1);
|
|
26813
27218
|
function isNamedClassDeclaration(node) {
|
|
26814
27219
|
return import_typescript8.default.isClassDeclaration(node) && isIdentifier(node.name);
|
|
@@ -26817,7 +27222,7 @@ function isIdentifier(node) {
|
|
|
26817
27222
|
return node !== void 0 && import_typescript8.default.isIdentifier(node);
|
|
26818
27223
|
}
|
|
26819
27224
|
|
|
26820
|
-
// bazel-out/
|
|
27225
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
|
|
26821
27226
|
var TypeScriptReflectionHost = class {
|
|
26822
27227
|
constructor(checker) {
|
|
26823
27228
|
this.checker = checker;
|
|
@@ -27251,7 +27656,7 @@ function getExportedName(decl, originalId) {
|
|
|
27251
27656
|
}
|
|
27252
27657
|
var LocalExportedDeclarations = Symbol("LocalExportedDeclarations");
|
|
27253
27658
|
|
|
27254
|
-
// bazel-out/
|
|
27659
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/typescript.mjs
|
|
27255
27660
|
var import_typescript11 = __toESM(require("typescript"), 1);
|
|
27256
27661
|
var TS = /\.tsx?$/i;
|
|
27257
27662
|
var D_TS = /\.d\.ts$/i;
|
|
@@ -27352,7 +27757,7 @@ function toUnredirectedSourceFile(sf) {
|
|
|
27352
27757
|
return redirectInfo.unredirected;
|
|
27353
27758
|
}
|
|
27354
27759
|
|
|
27355
|
-
// bazel-out/
|
|
27760
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/trait.mjs
|
|
27356
27761
|
var TraitState;
|
|
27357
27762
|
(function(TraitState2) {
|
|
27358
27763
|
TraitState2[TraitState2["Pending"] = 0] = "Pending";
|
|
@@ -27409,7 +27814,7 @@ var TraitImpl = class {
|
|
|
27409
27814
|
}
|
|
27410
27815
|
};
|
|
27411
27816
|
|
|
27412
|
-
// bazel-out/
|
|
27817
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
27413
27818
|
var TraitCompiler = class {
|
|
27414
27819
|
constructor(handlers, reflector, perf, incrementalBuild, compileNonExportedClasses, compilationMode, dtsTransforms, semanticDepGraphUpdater, sourceFileTypeIdentifier) {
|
|
27415
27820
|
this.handlers = handlers;
|
|
@@ -27857,10 +28262,10 @@ function containsErrors(diagnostics) {
|
|
|
27857
28262
|
return diagnostics !== null && diagnostics.some((diag) => diag.category === import_typescript12.default.DiagnosticCategory.Error);
|
|
27858
28263
|
}
|
|
27859
28264
|
|
|
27860
|
-
// bazel-out/
|
|
28265
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
|
|
27861
28266
|
var import_typescript27 = __toESM(require("typescript"), 1);
|
|
27862
28267
|
|
|
27863
|
-
// bazel-out/
|
|
28268
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/context.mjs
|
|
27864
28269
|
var Context = class {
|
|
27865
28270
|
constructor(isStatement) {
|
|
27866
28271
|
this.isStatement = isStatement;
|
|
@@ -27873,13 +28278,13 @@ var Context = class {
|
|
|
27873
28278
|
}
|
|
27874
28279
|
};
|
|
27875
28280
|
|
|
27876
|
-
// bazel-out/
|
|
28281
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager.mjs
|
|
27877
28282
|
var import_typescript23 = __toESM(require("typescript"), 1);
|
|
27878
28283
|
|
|
27879
|
-
// bazel-out/
|
|
28284
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
|
|
27880
28285
|
var import_typescript15 = __toESM(require("typescript"), 1);
|
|
27881
28286
|
|
|
27882
|
-
// bazel-out/
|
|
28287
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/find_export.mjs
|
|
27883
28288
|
function findExportedNameOfNode(target, file, reflector) {
|
|
27884
28289
|
const exports = reflector.getExportsOfModule(file);
|
|
27885
28290
|
if (exports === null) {
|
|
@@ -27899,7 +28304,7 @@ function findExportedNameOfNode(target, file, reflector) {
|
|
|
27899
28304
|
return foundExportName;
|
|
27900
28305
|
}
|
|
27901
28306
|
|
|
27902
|
-
// bazel-out/
|
|
28307
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
|
|
27903
28308
|
var ImportFlags;
|
|
27904
28309
|
(function(ImportFlags2) {
|
|
27905
28310
|
ImportFlags2[ImportFlags2["None"] = 0] = "None";
|
|
@@ -28115,7 +28520,7 @@ var UnifiedModulesStrategy = class {
|
|
|
28115
28520
|
}
|
|
28116
28521
|
};
|
|
28117
28522
|
|
|
28118
|
-
// bazel-out/
|
|
28523
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
|
|
28119
28524
|
var CHARS_TO_ESCAPE = /[^a-zA-Z0-9/_]/g;
|
|
28120
28525
|
var UnifiedModulesAliasingHost = class {
|
|
28121
28526
|
constructor(unifiedModulesHost) {
|
|
@@ -28182,7 +28587,7 @@ var AliasStrategy = class {
|
|
|
28182
28587
|
}
|
|
28183
28588
|
};
|
|
28184
28589
|
|
|
28185
|
-
// bazel-out/
|
|
28590
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/path.mjs
|
|
28186
28591
|
function relativePathBetween(from, to) {
|
|
28187
28592
|
const relativePath = stripExtension(relative(dirname(resolve(from)), resolve(to)));
|
|
28188
28593
|
return relativePath !== "" ? toRelativeImport(relativePath) : null;
|
|
@@ -28191,7 +28596,7 @@ function normalizeSeparators2(path4) {
|
|
|
28191
28596
|
return path4.replace(/\\/g, "/");
|
|
28192
28597
|
}
|
|
28193
28598
|
|
|
28194
|
-
// bazel-out/
|
|
28599
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/core.mjs
|
|
28195
28600
|
var NoopImportRewriter = class {
|
|
28196
28601
|
shouldImportSymbol(symbol, specifier) {
|
|
28197
28602
|
return true;
|
|
@@ -28250,7 +28655,7 @@ function validateAndRewriteCoreSymbol(name) {
|
|
|
28250
28655
|
return CORE_SUPPORTED_SYMBOLS.get(name);
|
|
28251
28656
|
}
|
|
28252
28657
|
|
|
28253
|
-
// bazel-out/
|
|
28658
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/patch_alias_reference_resolution.mjs
|
|
28254
28659
|
var import_typescript17 = __toESM(require("typescript"), 1);
|
|
28255
28660
|
var patchedReferencedAliasesSymbol = Symbol("patchedReferencedAliases");
|
|
28256
28661
|
function loadIsReferencedAliasDeclarationPatch(context) {
|
|
@@ -28285,7 +28690,7 @@ function throwIncompatibleTransformationContextError() {
|
|
|
28285
28690
|
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.");
|
|
28286
28691
|
}
|
|
28287
28692
|
|
|
28288
|
-
// bazel-out/
|
|
28693
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/default.mjs
|
|
28289
28694
|
var DefaultImportDeclaration = Symbol("DefaultImportDeclaration");
|
|
28290
28695
|
function attachDefaultImportDeclaration(expr, importDecl) {
|
|
28291
28696
|
expr[DefaultImportDeclaration] = importDecl;
|
|
@@ -28326,7 +28731,7 @@ var DefaultImportTracker = class {
|
|
|
28326
28731
|
}
|
|
28327
28732
|
};
|
|
28328
28733
|
|
|
28329
|
-
// bazel-out/
|
|
28734
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/deferred_symbol_tracker.mjs
|
|
28330
28735
|
var import_typescript19 = __toESM(require("typescript"), 1);
|
|
28331
28736
|
var AssumeEager = "AssumeEager";
|
|
28332
28737
|
var DeferredSymbolTracker = class {
|
|
@@ -28339,11 +28744,16 @@ var DeferredSymbolTracker = class {
|
|
|
28339
28744
|
if (importDecl.importClause === void 0) {
|
|
28340
28745
|
throw new Error(`Provided import declaration doesn't have any symbols.`);
|
|
28341
28746
|
}
|
|
28747
|
+
if (importDecl.importClause.isTypeOnly) {
|
|
28748
|
+
return symbolMap;
|
|
28749
|
+
}
|
|
28342
28750
|
if (importDecl.importClause.namedBindings !== void 0) {
|
|
28343
28751
|
const bindings = importDecl.importClause.namedBindings;
|
|
28344
28752
|
if (import_typescript19.default.isNamedImports(bindings)) {
|
|
28345
28753
|
for (const element2 of bindings.elements) {
|
|
28346
|
-
|
|
28754
|
+
if (!element2.isTypeOnly) {
|
|
28755
|
+
symbolMap.set(element2.name.text, AssumeEager);
|
|
28756
|
+
}
|
|
28347
28757
|
}
|
|
28348
28758
|
} else {
|
|
28349
28759
|
symbolMap.set(bindings.name.text, AssumeEager);
|
|
@@ -28419,7 +28829,7 @@ var DeferredSymbolTracker = class {
|
|
|
28419
28829
|
}
|
|
28420
28830
|
};
|
|
28421
28831
|
|
|
28422
|
-
// bazel-out/
|
|
28832
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/references.mjs
|
|
28423
28833
|
var Reference2 = class {
|
|
28424
28834
|
constructor(node, bestGuessOwningModule = null) {
|
|
28425
28835
|
this.node = node;
|
|
@@ -28482,7 +28892,7 @@ var Reference2 = class {
|
|
|
28482
28892
|
}
|
|
28483
28893
|
};
|
|
28484
28894
|
|
|
28485
|
-
// bazel-out/
|
|
28895
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/resolver.mjs
|
|
28486
28896
|
var ModuleResolver = class {
|
|
28487
28897
|
constructor(program, compilerOptions, host, moduleResolutionCache) {
|
|
28488
28898
|
this.program = program;
|
|
@@ -28499,7 +28909,7 @@ var ModuleResolver = class {
|
|
|
28499
28909
|
}
|
|
28500
28910
|
};
|
|
28501
28911
|
|
|
28502
|
-
// bazel-out/
|
|
28912
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager.mjs
|
|
28503
28913
|
var ImportManager = class {
|
|
28504
28914
|
constructor(rewriter = new NoopImportRewriter(), prefix = "i") {
|
|
28505
28915
|
this.rewriter = rewriter;
|
|
@@ -28534,7 +28944,7 @@ var ImportManager = class {
|
|
|
28534
28944
|
}
|
|
28535
28945
|
};
|
|
28536
28946
|
|
|
28537
|
-
// bazel-out/
|
|
28947
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/translator.mjs
|
|
28538
28948
|
var UNARY_OPERATORS = /* @__PURE__ */ new Map([
|
|
28539
28949
|
[UnaryOperator.Minus, "-"],
|
|
28540
28950
|
[UnaryOperator.Plus, "+"]
|
|
@@ -28771,7 +29181,7 @@ function createRange(span) {
|
|
|
28771
29181
|
};
|
|
28772
29182
|
}
|
|
28773
29183
|
|
|
28774
|
-
// bazel-out/
|
|
29184
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
|
|
28775
29185
|
var import_typescript24 = __toESM(require("typescript"), 1);
|
|
28776
29186
|
function translateType(type, contextFile, reflector, refEmitter, imports) {
|
|
28777
29187
|
return type.visitType(new TypeTranslatorVisitor(imports, contextFile, reflector, refEmitter), new Context(false));
|
|
@@ -28993,7 +29403,7 @@ var TypeTranslatorVisitor = class {
|
|
|
28993
29403
|
}
|
|
28994
29404
|
};
|
|
28995
29405
|
|
|
28996
|
-
// bazel-out/
|
|
29406
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_ast_factory.mjs
|
|
28997
29407
|
var import_typescript25 = __toESM(require("typescript"), 1);
|
|
28998
29408
|
var PureAnnotation;
|
|
28999
29409
|
(function(PureAnnotation2) {
|
|
@@ -29189,7 +29599,7 @@ function attachComments(statement, leadingComments) {
|
|
|
29189
29599
|
}
|
|
29190
29600
|
}
|
|
29191
29601
|
|
|
29192
|
-
// bazel-out/
|
|
29602
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_translator.mjs
|
|
29193
29603
|
function translateExpression(expression, imports, options = {}) {
|
|
29194
29604
|
return expression.visitExpression(new ExpressionTranslatorVisitor(new TypeScriptAstFactory(options.annotateForClosureCompiler === true), imports, options), new Context(false));
|
|
29195
29605
|
}
|
|
@@ -29197,7 +29607,7 @@ function translateStatement(statement, imports, options = {}) {
|
|
|
29197
29607
|
return statement.visitStatement(new ExpressionTranslatorVisitor(new TypeScriptAstFactory(options.annotateForClosureCompiler === true), imports, options), new Context(true));
|
|
29198
29608
|
}
|
|
29199
29609
|
|
|
29200
|
-
// bazel-out/
|
|
29610
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/utils.mjs
|
|
29201
29611
|
var import_typescript26 = __toESM(require("typescript"), 1);
|
|
29202
29612
|
function addImports(importManager, sf, extraStatements = []) {
|
|
29203
29613
|
const addedImports = importManager.getAllImports(sf.fileName).map((i) => {
|
|
@@ -29233,7 +29643,7 @@ function isImportStatement(stmt) {
|
|
|
29233
29643
|
return import_typescript26.default.isImportDeclaration(stmt) || import_typescript26.default.isImportEqualsDeclaration(stmt) || import_typescript26.default.isNamespaceImport(stmt);
|
|
29234
29644
|
}
|
|
29235
29645
|
|
|
29236
|
-
// bazel-out/
|
|
29646
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
|
|
29237
29647
|
var DtsTransformRegistry = class {
|
|
29238
29648
|
constructor() {
|
|
29239
29649
|
this.ivyDeclarationTransforms = /* @__PURE__ */ new Map();
|
|
@@ -29380,10 +29790,10 @@ function markForEmitAsSingleLine(node) {
|
|
|
29380
29790
|
import_typescript27.default.forEachChild(node, markForEmitAsSingleLine);
|
|
29381
29791
|
}
|
|
29382
29792
|
|
|
29383
|
-
// bazel-out/
|
|
29793
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
29384
29794
|
var import_typescript29 = __toESM(require("typescript"), 1);
|
|
29385
29795
|
|
|
29386
|
-
// bazel-out/
|
|
29796
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/visitor.mjs
|
|
29387
29797
|
var import_typescript28 = __toESM(require("typescript"), 1);
|
|
29388
29798
|
function visit(node, visitor, context) {
|
|
29389
29799
|
return visitor._visit(node, context);
|
|
@@ -29444,7 +29854,7 @@ var Visitor = class {
|
|
|
29444
29854
|
}
|
|
29445
29855
|
};
|
|
29446
29856
|
|
|
29447
|
-
// bazel-out/
|
|
29857
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
29448
29858
|
var NO_DECORATORS = /* @__PURE__ */ new Set();
|
|
29449
29859
|
var CLOSURE_FILE_OVERVIEW_REGEXP = /\s+@fileoverview\s+/i;
|
|
29450
29860
|
function ivyTransformFactory(compilation, reflector, importRewriter, defaultImportTracker, perf, isCore, isClosureCompilerEnabled) {
|
|
@@ -29668,7 +30078,7 @@ function nodeArrayFromDecoratorsArray(decorators) {
|
|
|
29668
30078
|
return array;
|
|
29669
30079
|
}
|
|
29670
30080
|
|
|
29671
|
-
// bazel-out/
|
|
30081
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
|
|
29672
30082
|
var import_typescript30 = __toESM(require("typescript"), 1);
|
|
29673
30083
|
function valueReferenceToExpression(valueRef) {
|
|
29674
30084
|
if (valueRef.kind === 2) {
|
|
@@ -29912,7 +30322,7 @@ function isAbstractClassDeclaration(clazz) {
|
|
|
29912
30322
|
return import_typescript30.default.canHaveModifiers(clazz) && clazz.modifiers !== void 0 ? clazz.modifiers.some((mod) => mod.kind === import_typescript30.default.SyntaxKind.AbstractKeyword) : false;
|
|
29913
30323
|
}
|
|
29914
30324
|
|
|
29915
|
-
// bazel-out/
|
|
30325
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
|
|
29916
30326
|
function getConstructorDependencies(clazz, reflector, isCore, compilationMode) {
|
|
29917
30327
|
const deps = [];
|
|
29918
30328
|
const errors = [];
|
|
@@ -30068,10 +30478,10 @@ function createUnsuitableInjectionTokenError(clazz, error2) {
|
|
|
30068
30478
|
return new FatalDiagnosticError(ErrorCode.PARAM_MISSING_TOKEN, param.nameNode, chain, hints);
|
|
30069
30479
|
}
|
|
30070
30480
|
|
|
30071
|
-
// bazel-out/
|
|
30481
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
|
|
30072
30482
|
var import_typescript39 = __toESM(require("typescript"), 1);
|
|
30073
30483
|
|
|
30074
|
-
// bazel-out/
|
|
30484
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/api.mjs
|
|
30075
30485
|
var MetaKind;
|
|
30076
30486
|
(function(MetaKind2) {
|
|
30077
30487
|
MetaKind2[MetaKind2["Directive"] = 0] = "Directive";
|
|
@@ -30084,10 +30494,10 @@ var MatchSource;
|
|
|
30084
30494
|
MatchSource2[MatchSource2["HostDirective"] = 1] = "HostDirective";
|
|
30085
30495
|
})(MatchSource || (MatchSource = {}));
|
|
30086
30496
|
|
|
30087
|
-
// bazel-out/
|
|
30497
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
30088
30498
|
var import_typescript34 = __toESM(require("typescript"), 1);
|
|
30089
30499
|
|
|
30090
|
-
// bazel-out/
|
|
30500
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/property_mapping.mjs
|
|
30091
30501
|
var ClassPropertyMapping = class {
|
|
30092
30502
|
constructor(forwardMap) {
|
|
30093
30503
|
this.forwardMap = forwardMap;
|
|
@@ -30165,7 +30575,7 @@ function reverseMapFromForwardMap(forwardMap) {
|
|
|
30165
30575
|
return reverseMap;
|
|
30166
30576
|
}
|
|
30167
30577
|
|
|
30168
|
-
// bazel-out/
|
|
30578
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/util.mjs
|
|
30169
30579
|
var import_typescript32 = __toESM(require("typescript"), 1);
|
|
30170
30580
|
function extractReferencesFromType(checker, def, bestGuessOwningModule) {
|
|
30171
30581
|
if (!import_typescript32.default.isTupleTypeNode(def)) {
|
|
@@ -30349,7 +30759,7 @@ function hasInjectableFields(clazz, host) {
|
|
|
30349
30759
|
return members.some(({ isStatic, name }) => isStatic && (name === "\u0275prov" || name === "\u0275fac"));
|
|
30350
30760
|
}
|
|
30351
30761
|
|
|
30352
|
-
// bazel-out/
|
|
30762
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
30353
30763
|
var DtsMetadataReader = class {
|
|
30354
30764
|
constructor(checker, reflector) {
|
|
30355
30765
|
this.checker = checker;
|
|
@@ -30524,7 +30934,7 @@ function readHostDirectivesType(checker, type, bestGuessOwningModule) {
|
|
|
30524
30934
|
return result.length > 0 ? result : null;
|
|
30525
30935
|
}
|
|
30526
30936
|
|
|
30527
|
-
// bazel-out/
|
|
30937
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/inheritance.mjs
|
|
30528
30938
|
function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
30529
30939
|
const topMeta = reader.getDirectiveMetadata(dir);
|
|
30530
30940
|
if (topMeta === null) {
|
|
@@ -30581,7 +30991,7 @@ function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
|
30581
30991
|
});
|
|
30582
30992
|
}
|
|
30583
30993
|
|
|
30584
|
-
// bazel-out/
|
|
30994
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/registry.mjs
|
|
30585
30995
|
var LocalMetadataRegistry = class {
|
|
30586
30996
|
constructor() {
|
|
30587
30997
|
this.directives = /* @__PURE__ */ new Map();
|
|
@@ -30638,7 +31048,7 @@ var CompoundMetadataRegistry = class {
|
|
|
30638
31048
|
}
|
|
30639
31049
|
};
|
|
30640
31050
|
|
|
30641
|
-
// bazel-out/
|
|
31051
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/resource_registry.mjs
|
|
30642
31052
|
var ResourceRegistry = class {
|
|
30643
31053
|
constructor() {
|
|
30644
31054
|
this.externalTemplateToComponentsMap = /* @__PURE__ */ new Map();
|
|
@@ -30703,7 +31113,7 @@ var ResourceRegistry = class {
|
|
|
30703
31113
|
}
|
|
30704
31114
|
};
|
|
30705
31115
|
|
|
30706
|
-
// bazel-out/
|
|
31116
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/providers.mjs
|
|
30707
31117
|
var ExportedProviderStatusResolver = class {
|
|
30708
31118
|
constructor(metaReader) {
|
|
30709
31119
|
this.metaReader = metaReader;
|
|
@@ -30747,7 +31157,7 @@ var ExportedProviderStatusResolver = class {
|
|
|
30747
31157
|
}
|
|
30748
31158
|
};
|
|
30749
31159
|
|
|
30750
|
-
// bazel-out/
|
|
31160
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/host_directives_resolver.mjs
|
|
30751
31161
|
var EMPTY_ARRAY = [];
|
|
30752
31162
|
var HostDirectivesResolver = class {
|
|
30753
31163
|
constructor(metaReader) {
|
|
@@ -30808,10 +31218,10 @@ function resolveOutput(bindingName) {
|
|
|
30808
31218
|
return bindingName;
|
|
30809
31219
|
}
|
|
30810
31220
|
|
|
30811
|
-
// bazel-out/
|
|
31221
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
|
|
30812
31222
|
var import_typescript36 = __toESM(require("typescript"), 1);
|
|
30813
31223
|
|
|
30814
|
-
// bazel-out/
|
|
31224
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/dynamic.mjs
|
|
30815
31225
|
var DynamicValue = class {
|
|
30816
31226
|
constructor(node, reason, code) {
|
|
30817
31227
|
this.node = node;
|
|
@@ -30901,7 +31311,7 @@ var DynamicValue = class {
|
|
|
30901
31311
|
}
|
|
30902
31312
|
};
|
|
30903
31313
|
|
|
30904
|
-
// bazel-out/
|
|
31314
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/result.mjs
|
|
30905
31315
|
var ResolvedModule = class {
|
|
30906
31316
|
constructor(exports, evaluate) {
|
|
30907
31317
|
this.exports = exports;
|
|
@@ -30931,7 +31341,7 @@ var EnumValue = class {
|
|
|
30931
31341
|
var KnownFn = class {
|
|
30932
31342
|
};
|
|
30933
31343
|
|
|
30934
|
-
// bazel-out/
|
|
31344
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
|
|
30935
31345
|
function describeResolvedType(value, maxDepth = 1) {
|
|
30936
31346
|
var _a2, _b2;
|
|
30937
31347
|
if (value === null) {
|
|
@@ -31060,10 +31470,10 @@ function getContainerNode(node) {
|
|
|
31060
31470
|
return node.getSourceFile();
|
|
31061
31471
|
}
|
|
31062
31472
|
|
|
31063
|
-
// bazel-out/
|
|
31473
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
31064
31474
|
var import_typescript37 = __toESM(require("typescript"), 1);
|
|
31065
31475
|
|
|
31066
|
-
// bazel-out/
|
|
31476
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/builtin.mjs
|
|
31067
31477
|
var ArraySliceBuiltinFn = class extends KnownFn {
|
|
31068
31478
|
constructor(lhs) {
|
|
31069
31479
|
super();
|
|
@@ -31115,14 +31525,14 @@ var StringConcatBuiltinFn = class extends KnownFn {
|
|
|
31115
31525
|
}
|
|
31116
31526
|
};
|
|
31117
31527
|
|
|
31118
|
-
// bazel-out/
|
|
31528
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/synthetic.mjs
|
|
31119
31529
|
var SyntheticValue = class {
|
|
31120
31530
|
constructor(value) {
|
|
31121
31531
|
this.value = value;
|
|
31122
31532
|
}
|
|
31123
31533
|
};
|
|
31124
31534
|
|
|
31125
|
-
// bazel-out/
|
|
31535
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
31126
31536
|
function literalBinaryOp(op) {
|
|
31127
31537
|
return { op, literal: true };
|
|
31128
31538
|
}
|
|
@@ -31697,7 +32107,7 @@ function owningModule(context, override = null) {
|
|
|
31697
32107
|
}
|
|
31698
32108
|
}
|
|
31699
32109
|
|
|
31700
|
-
// bazel-out/
|
|
32110
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interface.mjs
|
|
31701
32111
|
var PartialEvaluator = class {
|
|
31702
32112
|
constructor(host, checker, dependencyTracker) {
|
|
31703
32113
|
this.host = host;
|
|
@@ -31717,7 +32127,7 @@ var PartialEvaluator = class {
|
|
|
31717
32127
|
}
|
|
31718
32128
|
};
|
|
31719
32129
|
|
|
31720
|
-
// bazel-out/
|
|
32130
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
|
|
31721
32131
|
function makeDuplicateDeclarationError(node, data, kind) {
|
|
31722
32132
|
const context = [];
|
|
31723
32133
|
for (const decl of data) {
|
|
@@ -31913,7 +32323,7 @@ function getInheritedUndecoratedCtorDiagnostic(node, baseClass, kind) {
|
|
|
31913
32323
|
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}.`);
|
|
31914
32324
|
}
|
|
31915
32325
|
|
|
31916
|
-
// bazel-out/
|
|
32326
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/evaluation.mjs
|
|
31917
32327
|
var import_typescript41 = __toESM(require("typescript"), 1);
|
|
31918
32328
|
function resolveEnumValue(evaluator, metadata, field, enumSymbolName) {
|
|
31919
32329
|
let resolved = null;
|
|
@@ -31963,7 +32373,7 @@ function resolveLiteral(decorator, literalCache) {
|
|
|
31963
32373
|
return meta;
|
|
31964
32374
|
}
|
|
31965
32375
|
|
|
31966
|
-
// bazel-out/
|
|
32376
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/factory.mjs
|
|
31967
32377
|
function compileNgFactoryDefField(metadata) {
|
|
31968
32378
|
const res = compileFactoryFunction(metadata);
|
|
31969
32379
|
return {
|
|
@@ -31985,7 +32395,7 @@ function compileDeclareFactory(metadata) {
|
|
|
31985
32395
|
};
|
|
31986
32396
|
}
|
|
31987
32397
|
|
|
31988
|
-
// bazel-out/
|
|
32398
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/injectable_registry.mjs
|
|
31989
32399
|
var InjectableClassRegistry = class {
|
|
31990
32400
|
constructor(host, isCore) {
|
|
31991
32401
|
this.host = host;
|
|
@@ -32011,7 +32421,7 @@ var InjectableClassRegistry = class {
|
|
|
32011
32421
|
}
|
|
32012
32422
|
};
|
|
32013
32423
|
|
|
32014
|
-
// bazel-out/
|
|
32424
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/metadata.mjs
|
|
32015
32425
|
var import_typescript42 = __toESM(require("typescript"), 1);
|
|
32016
32426
|
function extractClassMetadata(clazz, reflection, isCore, annotateForClosureCompiler, angularDecoratorTransform = (dec) => dec) {
|
|
32017
32427
|
if (!reflection.isClass(clazz)) {
|
|
@@ -32095,7 +32505,7 @@ function removeIdentifierReferences(node, names) {
|
|
|
32095
32505
|
return result.transformed[0];
|
|
32096
32506
|
}
|
|
32097
32507
|
|
|
32098
|
-
// bazel-out/
|
|
32508
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/debug_info.mjs
|
|
32099
32509
|
var path2 = __toESM(require("path"), 1);
|
|
32100
32510
|
function extractClassDebugInfo(clazz, reflection, rootDirs, forbidOrphanRendering) {
|
|
32101
32511
|
if (!reflection.isClass(clazz)) {
|
|
@@ -32121,13 +32531,13 @@ function computeRelativePathIfPossible(filePath, rootDirs) {
|
|
|
32121
32531
|
return null;
|
|
32122
32532
|
}
|
|
32123
32533
|
|
|
32124
|
-
// bazel-out/
|
|
32534
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/references_registry.mjs
|
|
32125
32535
|
var NoopReferencesRegistry = class {
|
|
32126
32536
|
add(source, ...references) {
|
|
32127
32537
|
}
|
|
32128
32538
|
};
|
|
32129
32539
|
|
|
32130
|
-
// bazel-out/
|
|
32540
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/schema.mjs
|
|
32131
32541
|
function extractSchemas(rawExpr, evaluator, context) {
|
|
32132
32542
|
const schemas = [];
|
|
32133
32543
|
const result = evaluator.evaluate(rawExpr);
|
|
@@ -32156,7 +32566,7 @@ function extractSchemas(rawExpr, evaluator, context) {
|
|
|
32156
32566
|
return schemas;
|
|
32157
32567
|
}
|
|
32158
32568
|
|
|
32159
|
-
// bazel-out/
|
|
32569
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/input_transforms.mjs
|
|
32160
32570
|
function compileInputTransformFields(inputs) {
|
|
32161
32571
|
const extraFields = [];
|
|
32162
32572
|
for (const input of inputs) {
|
|
@@ -32173,10 +32583,10 @@ function compileInputTransformFields(inputs) {
|
|
|
32173
32583
|
return extraFields;
|
|
32174
32584
|
}
|
|
32175
32585
|
|
|
32176
|
-
// bazel-out/
|
|
32586
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
32177
32587
|
var import_typescript53 = __toESM(require("typescript"), 1);
|
|
32178
32588
|
|
|
32179
|
-
// bazel-out/
|
|
32589
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.mjs
|
|
32180
32590
|
var import_typescript43 = __toESM(require("typescript"), 1);
|
|
32181
32591
|
var SemanticSymbol = class {
|
|
32182
32592
|
constructor(decl) {
|
|
@@ -32192,7 +32602,7 @@ function getSymbolIdentifier(decl) {
|
|
|
32192
32602
|
return decl.name.text;
|
|
32193
32603
|
}
|
|
32194
32604
|
|
|
32195
|
-
// bazel-out/
|
|
32605
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.mjs
|
|
32196
32606
|
var OpaqueSymbol = class extends SemanticSymbol {
|
|
32197
32607
|
isPublicApiAffected() {
|
|
32198
32608
|
return false;
|
|
@@ -32334,10 +32744,10 @@ function getImportPath(expr) {
|
|
|
32334
32744
|
}
|
|
32335
32745
|
}
|
|
32336
32746
|
|
|
32337
|
-
// bazel-out/
|
|
32747
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
32338
32748
|
var import_typescript44 = __toESM(require("typescript"), 1);
|
|
32339
32749
|
|
|
32340
|
-
// bazel-out/
|
|
32750
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/util.mjs
|
|
32341
32751
|
function isSymbolEqual(a, b) {
|
|
32342
32752
|
if (a.decl === b.decl) {
|
|
32343
32753
|
return true;
|
|
@@ -32387,7 +32797,7 @@ function isSetEqual(a, b, equalityTester = referenceEquality) {
|
|
|
32387
32797
|
return true;
|
|
32388
32798
|
}
|
|
32389
32799
|
|
|
32390
|
-
// bazel-out/
|
|
32800
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
32391
32801
|
function extractSemanticTypeParameters(node) {
|
|
32392
32802
|
if (!import_typescript44.default.isClassDeclaration(node) || node.typeParameters === void 0) {
|
|
32393
32803
|
return null;
|
|
@@ -32407,14 +32817,14 @@ function isTypeParameterEqual(a, b) {
|
|
|
32407
32817
|
return a.hasGenericTypeBound === b.hasGenericTypeBound;
|
|
32408
32818
|
}
|
|
32409
32819
|
|
|
32410
|
-
// bazel-out/
|
|
32820
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/api.mjs
|
|
32411
32821
|
var ComponentScopeKind;
|
|
32412
32822
|
(function(ComponentScopeKind2) {
|
|
32413
32823
|
ComponentScopeKind2[ComponentScopeKind2["NgModule"] = 0] = "NgModule";
|
|
32414
32824
|
ComponentScopeKind2[ComponentScopeKind2["Standalone"] = 1] = "Standalone";
|
|
32415
32825
|
})(ComponentScopeKind || (ComponentScopeKind = {}));
|
|
32416
32826
|
|
|
32417
|
-
// bazel-out/
|
|
32827
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/component_scope.mjs
|
|
32418
32828
|
var CompoundComponentScopeReader = class {
|
|
32419
32829
|
constructor(readers) {
|
|
32420
32830
|
this.readers = readers;
|
|
@@ -32439,7 +32849,7 @@ var CompoundComponentScopeReader = class {
|
|
|
32439
32849
|
}
|
|
32440
32850
|
};
|
|
32441
32851
|
|
|
32442
|
-
// bazel-out/
|
|
32852
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/dependency.mjs
|
|
32443
32853
|
var MetadataDtsModuleScopeResolver = class {
|
|
32444
32854
|
constructor(dtsMetaReader, aliasingHost) {
|
|
32445
32855
|
this.dtsMetaReader = dtsMetaReader;
|
|
@@ -32514,10 +32924,10 @@ var MetadataDtsModuleScopeResolver = class {
|
|
|
32514
32924
|
}
|
|
32515
32925
|
};
|
|
32516
32926
|
|
|
32517
|
-
// bazel-out/
|
|
32927
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
|
|
32518
32928
|
var import_typescript45 = __toESM(require("typescript"), 1);
|
|
32519
32929
|
|
|
32520
|
-
// bazel-out/
|
|
32930
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/util.mjs
|
|
32521
32931
|
function getDiagnosticNode(ref, rawExpr) {
|
|
32522
32932
|
return rawExpr !== null ? ref.getOriginForDiagnostics(rawExpr) : ref.node.name;
|
|
32523
32933
|
}
|
|
@@ -32540,7 +32950,7 @@ function makeUnknownComponentImportDiagnostic(ref, rawExpr) {
|
|
|
32540
32950
|
return makeDiagnostic(ErrorCode.COMPONENT_UNKNOWN_IMPORT, getDiagnosticNode(ref, rawExpr), `Component imports must be standalone components, directives, pipes, or must be NgModules.`);
|
|
32541
32951
|
}
|
|
32542
32952
|
|
|
32543
|
-
// bazel-out/
|
|
32953
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
|
|
32544
32954
|
var LocalModuleScopeRegistry = class {
|
|
32545
32955
|
constructor(localReader, fullReader, dependencyScopeReader, refEmitter, aliasingHost) {
|
|
32546
32956
|
this.localReader = localReader;
|
|
@@ -32879,7 +33289,7 @@ function reexportCollision(module3, refA, refB) {
|
|
|
32879
33289
|
]);
|
|
32880
33290
|
}
|
|
32881
33291
|
|
|
32882
|
-
// bazel-out/
|
|
33292
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/typecheck.mjs
|
|
32883
33293
|
var import_typescript47 = __toESM(require("typescript"), 1);
|
|
32884
33294
|
var TypeCheckScopeRegistry = class {
|
|
32885
33295
|
constructor(scopeReader, metaReader, hostDirectivesResolver) {
|
|
@@ -32947,7 +33357,7 @@ var TypeCheckScopeRegistry = class {
|
|
|
32947
33357
|
}
|
|
32948
33358
|
};
|
|
32949
33359
|
|
|
32950
|
-
// bazel-out/
|
|
33360
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
|
|
32951
33361
|
var import_typescript48 = __toESM(require("typescript"), 1);
|
|
32952
33362
|
var EMPTY_OBJECT = {};
|
|
32953
33363
|
var QUERY_TYPES = /* @__PURE__ */ new Set([
|
|
@@ -33535,7 +33945,7 @@ function toR3InputMetadata(mapping) {
|
|
|
33535
33945
|
};
|
|
33536
33946
|
}
|
|
33537
33947
|
|
|
33538
|
-
// bazel-out/
|
|
33948
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/symbol.mjs
|
|
33539
33949
|
var DirectiveSymbol = class extends SemanticSymbol {
|
|
33540
33950
|
constructor(decl, selector, inputs, outputs, exportAs, typeCheckMeta, typeParameters) {
|
|
33541
33951
|
super(decl);
|
|
@@ -33615,7 +34025,7 @@ function isBaseClassEqual(current, previous) {
|
|
|
33615
34025
|
return isSymbolEqual(current, previous);
|
|
33616
34026
|
}
|
|
33617
34027
|
|
|
33618
|
-
// bazel-out/
|
|
34028
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
|
|
33619
34029
|
var FIELD_DECORATORS = [
|
|
33620
34030
|
"Input",
|
|
33621
34031
|
"Output",
|
|
@@ -33787,10 +34197,10 @@ var DirectiveDecoratorHandler = class {
|
|
|
33787
34197
|
}
|
|
33788
34198
|
};
|
|
33789
34199
|
|
|
33790
|
-
// bazel-out/
|
|
34200
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
33791
34201
|
var import_typescript50 = __toESM(require("typescript"), 1);
|
|
33792
34202
|
|
|
33793
|
-
// bazel-out/
|
|
34203
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/module_with_providers.mjs
|
|
33794
34204
|
var import_typescript49 = __toESM(require("typescript"), 1);
|
|
33795
34205
|
function createModuleWithProvidersResolver(reflector, isCore) {
|
|
33796
34206
|
function _reflectModuleFromTypeParam(type, node) {
|
|
@@ -33857,7 +34267,7 @@ function isResolvedModuleWithProviders(sv) {
|
|
|
33857
34267
|
return typeof sv.value === "object" && sv.value != null && sv.value.hasOwnProperty("ngModule") && sv.value.hasOwnProperty("mwpCall");
|
|
33858
34268
|
}
|
|
33859
34269
|
|
|
33860
|
-
// bazel-out/
|
|
34270
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
33861
34271
|
var NgModuleSymbol = class extends SemanticSymbol {
|
|
33862
34272
|
constructor(decl, hasProviders) {
|
|
33863
34273
|
super(decl);
|
|
@@ -34422,7 +34832,7 @@ function isSyntheticReference(ref) {
|
|
|
34422
34832
|
return ref.synthetic;
|
|
34423
34833
|
}
|
|
34424
34834
|
|
|
34425
|
-
// bazel-out/
|
|
34835
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/diagnostics.mjs
|
|
34426
34836
|
function makeCyclicImportInfo(ref, type, cycle) {
|
|
34427
34837
|
const name = ref.debugName || "(unknown)";
|
|
34428
34838
|
const path4 = cycle.getPath().map((sf) => sf.fileName).join(" -> ");
|
|
@@ -34445,7 +34855,7 @@ function checkCustomElementSelectorForErrors(selector) {
|
|
|
34445
34855
|
return null;
|
|
34446
34856
|
}
|
|
34447
34857
|
|
|
34448
|
-
// bazel-out/
|
|
34858
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/resources.mjs
|
|
34449
34859
|
var import_typescript52 = __toESM(require("typescript"), 1);
|
|
34450
34860
|
function getTemplateDeclarationNodeForError(declaration) {
|
|
34451
34861
|
return declaration.isInline ? declaration.expression : declaration.templateUrlExpression;
|
|
@@ -34798,7 +35208,7 @@ function _extractTemplateStyleUrls(template2) {
|
|
|
34798
35208
|
return template2.styleUrls.map((url) => ({ url, source: 1, nodeForError }));
|
|
34799
35209
|
}
|
|
34800
35210
|
|
|
34801
|
-
// bazel-out/
|
|
35211
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/symbol.mjs
|
|
34802
35212
|
var ComponentSymbol = class extends DirectiveSymbol {
|
|
34803
35213
|
constructor() {
|
|
34804
35214
|
super(...arguments);
|
|
@@ -34833,7 +35243,7 @@ var ComponentSymbol = class extends DirectiveSymbol {
|
|
|
34833
35243
|
}
|
|
34834
35244
|
};
|
|
34835
35245
|
|
|
34836
|
-
// bazel-out/
|
|
35246
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/util.mjs
|
|
34837
35247
|
function collectAnimationNames(value, animationTriggerNames) {
|
|
34838
35248
|
if (value instanceof Map) {
|
|
34839
35249
|
const name = value.get("name");
|
|
@@ -34909,7 +35319,7 @@ function isLikelyModuleWithProviders(value) {
|
|
|
34909
35319
|
return false;
|
|
34910
35320
|
}
|
|
34911
35321
|
|
|
34912
|
-
// bazel-out/
|
|
35322
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
34913
35323
|
var EMPTY_ARRAY2 = [];
|
|
34914
35324
|
var isUsedDirective = (decl) => decl.kind === R3TemplateDependencyKind.Directive;
|
|
34915
35325
|
var isUsedPipe = (decl) => decl.kind === R3TemplateDependencyKind.Pipe;
|
|
@@ -35716,7 +36126,7 @@ function validateStandaloneImports(importRefs, importExpr2, metaReader, scopeRea
|
|
|
35716
36126
|
return diagnostics;
|
|
35717
36127
|
}
|
|
35718
36128
|
|
|
35719
|
-
// bazel-out/
|
|
36129
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
|
|
35720
36130
|
var import_typescript55 = __toESM(require("typescript"), 1);
|
|
35721
36131
|
var InjectableDecoratorHandler = class {
|
|
35722
36132
|
constructor(reflector, evaluator, isCore, strictCtorDeps, injectableRegistry, perf, includeClassMetadata, compilationMode, errorOnDuplicateProv = true) {
|
|
@@ -35941,7 +36351,7 @@ function getDep(dep, reflector) {
|
|
|
35941
36351
|
return meta;
|
|
35942
36352
|
}
|
|
35943
36353
|
|
|
35944
|
-
// bazel-out/
|
|
36354
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
|
|
35945
36355
|
var import_typescript56 = __toESM(require("typescript"), 1);
|
|
35946
36356
|
var PipeSymbol = class extends SemanticSymbol {
|
|
35947
36357
|
constructor(decl, name) {
|
|
@@ -36092,7 +36502,7 @@ var PipeDecoratorHandler = class {
|
|
|
36092
36502
|
}
|
|
36093
36503
|
};
|
|
36094
36504
|
|
|
36095
|
-
// bazel-out/
|
|
36505
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
|
|
36096
36506
|
var CycleAnalyzer = class {
|
|
36097
36507
|
constructor(importGraph) {
|
|
36098
36508
|
this.importGraph = importGraph;
|
|
@@ -36163,7 +36573,7 @@ var Cycle = class {
|
|
|
36163
36573
|
}
|
|
36164
36574
|
};
|
|
36165
36575
|
|
|
36166
|
-
// bazel-out/
|
|
36576
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/imports.mjs
|
|
36167
36577
|
var import_typescript57 = __toESM(require("typescript"), 1);
|
|
36168
36578
|
var ImportGraph = class {
|
|
36169
36579
|
constructor(checker, perf) {
|
|
@@ -36255,7 +36665,7 @@ var Found = class {
|
|
|
36255
36665
|
}
|
|
36256
36666
|
};
|
|
36257
36667
|
|
|
36258
|
-
// bazel-out/
|
|
36668
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/entities.mjs
|
|
36259
36669
|
var EntryType;
|
|
36260
36670
|
(function(EntryType2) {
|
|
36261
36671
|
EntryType2["Block"] = "Block";
|
|
@@ -36291,7 +36701,7 @@ var MemberTags;
|
|
|
36291
36701
|
MemberTags2["Output"] = "output";
|
|
36292
36702
|
})(MemberTags || (MemberTags = {}));
|
|
36293
36703
|
|
|
36294
|
-
// bazel-out/
|
|
36704
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/jsdoc_extractor.mjs
|
|
36295
36705
|
var import_typescript58 = __toESM(require("typescript"), 1);
|
|
36296
36706
|
function extractJsDocTags(node) {
|
|
36297
36707
|
return import_typescript58.default.getJSDocTags(node).map((t) => {
|
|
@@ -36315,12 +36725,12 @@ function extractRawJsDoc(node) {
|
|
|
36315
36725
|
return (_b2 = (_a2 = import_typescript58.default.getJSDocCommentsAndTags(node).find(import_typescript58.default.isJSDoc)) == null ? void 0 : _a2.getFullText()) != null ? _b2 : "";
|
|
36316
36726
|
}
|
|
36317
36727
|
|
|
36318
|
-
// bazel-out/
|
|
36728
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/type_extractor.mjs
|
|
36319
36729
|
function extractResolvedTypeString(node, checker) {
|
|
36320
36730
|
return checker.typeToString(checker.getTypeAtLocation(node));
|
|
36321
36731
|
}
|
|
36322
36732
|
|
|
36323
|
-
// bazel-out/
|
|
36733
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/enum_extractor.mjs
|
|
36324
36734
|
var import_typescript59 = __toESM(require("typescript"), 1);
|
|
36325
36735
|
function extractEnum(declaration, typeChecker) {
|
|
36326
36736
|
return {
|
|
@@ -36349,10 +36759,10 @@ function getEnumMemberValue(memberNode) {
|
|
|
36349
36759
|
return (_a2 = literal3 == null ? void 0 : literal3.getText()) != null ? _a2 : "";
|
|
36350
36760
|
}
|
|
36351
36761
|
|
|
36352
|
-
// bazel-out/
|
|
36762
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/function_extractor.mjs
|
|
36353
36763
|
var import_typescript60 = __toESM(require("typescript"), 1);
|
|
36354
36764
|
|
|
36355
|
-
// bazel-out/
|
|
36765
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/generics_extractor.mjs
|
|
36356
36766
|
function extractGenerics(declaration) {
|
|
36357
36767
|
var _a2, _b2;
|
|
36358
36768
|
return (_b2 = (_a2 = declaration.typeParameters) == null ? void 0 : _a2.map((typeParam) => {
|
|
@@ -36365,7 +36775,7 @@ function extractGenerics(declaration) {
|
|
|
36365
36775
|
})) != null ? _b2 : [];
|
|
36366
36776
|
}
|
|
36367
36777
|
|
|
36368
|
-
// bazel-out/
|
|
36778
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/function_extractor.mjs
|
|
36369
36779
|
var FunctionExtractor = class {
|
|
36370
36780
|
constructor(declaration, typeChecker) {
|
|
36371
36781
|
this.declaration = declaration;
|
|
@@ -36419,20 +36829,20 @@ var FunctionExtractor = class {
|
|
|
36419
36829
|
}
|
|
36420
36830
|
};
|
|
36421
36831
|
|
|
36422
|
-
// bazel-out/
|
|
36832
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/extractor.mjs
|
|
36423
36833
|
var import_typescript62 = __toESM(require("typescript"), 1);
|
|
36424
36834
|
|
|
36425
|
-
// bazel-out/
|
|
36835
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/class_extractor.mjs
|
|
36426
36836
|
var import_typescript61 = __toESM(require("typescript"), 1);
|
|
36427
36837
|
|
|
36428
|
-
// bazel-out/
|
|
36838
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/filters.mjs
|
|
36429
36839
|
function isAngularPrivateName(name) {
|
|
36430
36840
|
var _a2;
|
|
36431
36841
|
const firstChar = (_a2 = name[0]) != null ? _a2 : "";
|
|
36432
36842
|
return firstChar === "\u0275" || firstChar === "_";
|
|
36433
36843
|
}
|
|
36434
36844
|
|
|
36435
|
-
// bazel-out/
|
|
36845
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/class_extractor.mjs
|
|
36436
36846
|
var ClassExtractor = class {
|
|
36437
36847
|
constructor(declaration, typeChecker) {
|
|
36438
36848
|
this.declaration = declaration;
|
|
@@ -36644,7 +37054,7 @@ function extractInterface(declaration, typeChecker) {
|
|
|
36644
37054
|
return extractor.extract();
|
|
36645
37055
|
}
|
|
36646
37056
|
|
|
36647
|
-
// bazel-out/
|
|
37057
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/constant_extractor.mjs
|
|
36648
37058
|
function extractConstant(declaration, typeChecker) {
|
|
36649
37059
|
const resolvedType = typeChecker.getBaseTypeOfLiteralType(typeChecker.getTypeAtLocation(declaration));
|
|
36650
37060
|
const variableStatement = declaration.parent.parent;
|
|
@@ -36662,7 +37072,7 @@ function isSyntheticAngularConstant(declaration) {
|
|
|
36662
37072
|
return declaration.name.getText() === "USED_FOR_NG_TYPE_CHECKING";
|
|
36663
37073
|
}
|
|
36664
37074
|
|
|
36665
|
-
// bazel-out/
|
|
37075
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/type_alias_extractor.mjs
|
|
36666
37076
|
function extractTypeAlias(declaration) {
|
|
36667
37077
|
return {
|
|
36668
37078
|
name: declaration.name.getText(),
|
|
@@ -36674,7 +37084,7 @@ function extractTypeAlias(declaration) {
|
|
|
36674
37084
|
};
|
|
36675
37085
|
}
|
|
36676
37086
|
|
|
36677
|
-
// bazel-out/
|
|
37087
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/extractor.mjs
|
|
36678
37088
|
var DocsExtractor = class {
|
|
36679
37089
|
constructor(typeChecker, metadataReader) {
|
|
36680
37090
|
this.typeChecker = typeChecker;
|
|
@@ -36733,7 +37143,7 @@ var DocsExtractor = class {
|
|
|
36733
37143
|
}
|
|
36734
37144
|
};
|
|
36735
37145
|
|
|
36736
|
-
// bazel-out/
|
|
37146
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
|
|
36737
37147
|
var import_typescript63 = __toESM(require("typescript"), 1);
|
|
36738
37148
|
var FlatIndexGenerator = class {
|
|
36739
37149
|
constructor(entryPoint, relativeFlatIndexPath, moduleName) {
|
|
@@ -36758,7 +37168,7 @@ export * from '${relativeEntryPoint}';
|
|
|
36758
37168
|
}
|
|
36759
37169
|
};
|
|
36760
37170
|
|
|
36761
|
-
// bazel-out/
|
|
37171
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/logic.mjs
|
|
36762
37172
|
function findFlatIndexEntryPoint(rootFiles) {
|
|
36763
37173
|
const tsFiles = rootFiles.filter((file) => isNonDeclarationTsPath(file));
|
|
36764
37174
|
let resolvedEntryPoint = null;
|
|
@@ -36774,7 +37184,7 @@ function findFlatIndexEntryPoint(rootFiles) {
|
|
|
36774
37184
|
return resolvedEntryPoint;
|
|
36775
37185
|
}
|
|
36776
37186
|
|
|
36777
|
-
// bazel-out/
|
|
37187
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
|
|
36778
37188
|
var import_typescript65 = __toESM(require("typescript"), 1);
|
|
36779
37189
|
function checkForPrivateExports(entryPoint, checker, refGraph) {
|
|
36780
37190
|
const diagnostics = [];
|
|
@@ -36854,7 +37264,7 @@ function getDescriptorOfDeclaration(decl) {
|
|
|
36854
37264
|
}
|
|
36855
37265
|
}
|
|
36856
37266
|
|
|
36857
|
-
// bazel-out/
|
|
37267
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/reference_graph.mjs
|
|
36858
37268
|
var ReferenceGraph = class {
|
|
36859
37269
|
constructor() {
|
|
36860
37270
|
this.references = /* @__PURE__ */ new Map();
|
|
@@ -36908,7 +37318,7 @@ var ReferenceGraph = class {
|
|
|
36908
37318
|
}
|
|
36909
37319
|
};
|
|
36910
37320
|
|
|
36911
|
-
// bazel-out/
|
|
37321
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/api.mjs
|
|
36912
37322
|
var NgOriginalFile = Symbol("NgOriginalFile");
|
|
36913
37323
|
var UpdateMode;
|
|
36914
37324
|
(function(UpdateMode2) {
|
|
@@ -36916,13 +37326,13 @@ var UpdateMode;
|
|
|
36916
37326
|
UpdateMode2[UpdateMode2["Incremental"] = 1] = "Incremental";
|
|
36917
37327
|
})(UpdateMode || (UpdateMode = {}));
|
|
36918
37328
|
|
|
36919
|
-
// bazel-out/
|
|
37329
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
|
|
36920
37330
|
var import_typescript69 = __toESM(require("typescript"), 1);
|
|
36921
37331
|
|
|
36922
|
-
// bazel-out/
|
|
37332
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
36923
37333
|
var import_typescript66 = __toESM(require("typescript"), 1);
|
|
36924
37334
|
|
|
36925
|
-
// bazel-out/
|
|
37335
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/expando.mjs
|
|
36926
37336
|
var NgExtension = Symbol("NgExtension");
|
|
36927
37337
|
function isExtended(sf) {
|
|
36928
37338
|
return sf[NgExtension] !== void 0;
|
|
@@ -36982,13 +37392,13 @@ function retagTsFile(sf) {
|
|
|
36982
37392
|
}
|
|
36983
37393
|
}
|
|
36984
37394
|
|
|
36985
|
-
// bazel-out/
|
|
37395
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/util.mjs
|
|
36986
37396
|
var TS_EXTENSIONS = /\.tsx?$/i;
|
|
36987
37397
|
function makeShimFileName(fileName, suffix) {
|
|
36988
37398
|
return absoluteFrom(fileName.replace(TS_EXTENSIONS, suffix));
|
|
36989
37399
|
}
|
|
36990
37400
|
|
|
36991
|
-
// bazel-out/
|
|
37401
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
36992
37402
|
var ShimAdapter = class {
|
|
36993
37403
|
constructor(delegate, tsRootFiles, topLevelGenerators, perFileGenerators, oldProgram) {
|
|
36994
37404
|
this.delegate = delegate;
|
|
@@ -37083,7 +37493,7 @@ var ShimAdapter = class {
|
|
|
37083
37493
|
}
|
|
37084
37494
|
};
|
|
37085
37495
|
|
|
37086
|
-
// bazel-out/
|
|
37496
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
|
|
37087
37497
|
var ShimReferenceTagger = class {
|
|
37088
37498
|
constructor(shimExtensions) {
|
|
37089
37499
|
this.tagged = /* @__PURE__ */ new Set();
|
|
@@ -37117,7 +37527,7 @@ var ShimReferenceTagger = class {
|
|
|
37117
37527
|
}
|
|
37118
37528
|
};
|
|
37119
37529
|
|
|
37120
|
-
// bazel-out/
|
|
37530
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
|
|
37121
37531
|
var DelegatingCompilerHost = class {
|
|
37122
37532
|
constructor(delegate) {
|
|
37123
37533
|
this.delegate = delegate;
|
|
@@ -37230,7 +37640,7 @@ var TsCreateProgramDriver = class {
|
|
|
37230
37640
|
}
|
|
37231
37641
|
};
|
|
37232
37642
|
|
|
37233
|
-
// bazel-out/
|
|
37643
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.mjs
|
|
37234
37644
|
var FileDependencyGraph = class {
|
|
37235
37645
|
constructor() {
|
|
37236
37646
|
this.nodes = /* @__PURE__ */ new Map();
|
|
@@ -37297,7 +37707,7 @@ function isLogicallyChanged(sf, node, changedTsPaths, deletedTsPaths, changedRes
|
|
|
37297
37707
|
return false;
|
|
37298
37708
|
}
|
|
37299
37709
|
|
|
37300
|
-
// bazel-out/
|
|
37710
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
|
|
37301
37711
|
var IncrementalStateKind;
|
|
37302
37712
|
(function(IncrementalStateKind2) {
|
|
37303
37713
|
IncrementalStateKind2[IncrementalStateKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -37305,7 +37715,7 @@ var IncrementalStateKind;
|
|
|
37305
37715
|
IncrementalStateKind2[IncrementalStateKind2["Analyzed"] = 2] = "Analyzed";
|
|
37306
37716
|
})(IncrementalStateKind || (IncrementalStateKind = {}));
|
|
37307
37717
|
|
|
37308
|
-
// bazel-out/
|
|
37718
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
|
|
37309
37719
|
var PhaseKind;
|
|
37310
37720
|
(function(PhaseKind2) {
|
|
37311
37721
|
PhaseKind2[PhaseKind2["Analysis"] = 0] = "Analysis";
|
|
@@ -37506,7 +37916,7 @@ function toOriginalSourceFile(sf) {
|
|
|
37506
37916
|
}
|
|
37507
37917
|
}
|
|
37508
37918
|
|
|
37509
|
-
// bazel-out/
|
|
37919
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
|
|
37510
37920
|
var TrackedIncrementalBuildStrategy = class {
|
|
37511
37921
|
constructor() {
|
|
37512
37922
|
this.state = null;
|
|
@@ -37527,7 +37937,7 @@ var TrackedIncrementalBuildStrategy = class {
|
|
|
37527
37937
|
};
|
|
37528
37938
|
var SYM_INCREMENTAL_STATE = Symbol("NgIncrementalState");
|
|
37529
37939
|
|
|
37530
|
-
// bazel-out/
|
|
37940
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
|
|
37531
37941
|
var IdentifierKind;
|
|
37532
37942
|
(function(IdentifierKind2) {
|
|
37533
37943
|
IdentifierKind2[IdentifierKind2["Property"] = 0] = "Property";
|
|
@@ -37545,7 +37955,7 @@ var AbsoluteSourceSpan2 = class {
|
|
|
37545
37955
|
}
|
|
37546
37956
|
};
|
|
37547
37957
|
|
|
37548
|
-
// bazel-out/
|
|
37958
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/context.mjs
|
|
37549
37959
|
var IndexingContext = class {
|
|
37550
37960
|
constructor() {
|
|
37551
37961
|
this.components = /* @__PURE__ */ new Set();
|
|
@@ -37555,7 +37965,7 @@ var IndexingContext = class {
|
|
|
37555
37965
|
}
|
|
37556
37966
|
};
|
|
37557
37967
|
|
|
37558
|
-
// bazel-out/
|
|
37968
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
|
|
37559
37969
|
var ExpressionVisitor = class extends RecursiveAstVisitor2 {
|
|
37560
37970
|
constructor(expressionStr, absoluteOffset, boundTemplate, targetToIdentifier) {
|
|
37561
37971
|
super();
|
|
@@ -37836,7 +38246,7 @@ function getTemplateIdentifiers(boundTemplate) {
|
|
|
37836
38246
|
return { identifiers: visitor.identifiers, errors: visitor.errors };
|
|
37837
38247
|
}
|
|
37838
38248
|
|
|
37839
|
-
// bazel-out/
|
|
38249
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
|
|
37840
38250
|
function generateAnalysis(context) {
|
|
37841
38251
|
const analysis = /* @__PURE__ */ new Map();
|
|
37842
38252
|
context.components.forEach(({ declaration, selector, boundTemplate, templateMeta }) => {
|
|
@@ -37872,7 +38282,7 @@ function generateAnalysis(context) {
|
|
|
37872
38282
|
return analysis;
|
|
37873
38283
|
}
|
|
37874
38284
|
|
|
37875
|
-
// bazel-out/
|
|
38285
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/ng_module_index.mjs
|
|
37876
38286
|
var NgModuleIndexImpl = class {
|
|
37877
38287
|
constructor(metaReader, localReader) {
|
|
37878
38288
|
this.metaReader = metaReader;
|
|
@@ -37961,7 +38371,7 @@ var NgModuleIndexImpl = class {
|
|
|
37961
38371
|
}
|
|
37962
38372
|
};
|
|
37963
38373
|
|
|
37964
|
-
// bazel-out/
|
|
38374
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
|
|
37965
38375
|
var import_typescript72 = __toESM(require("typescript"), 1);
|
|
37966
38376
|
var CSS_PREPROCESSOR_EXT = /(\.scss|\.sass|\.less|\.styl)$/;
|
|
37967
38377
|
var RESOURCE_MARKER = ".$ngresource$";
|
|
@@ -38109,7 +38519,7 @@ function createLookupResolutionHost(adapter) {
|
|
|
38109
38519
|
};
|
|
38110
38520
|
}
|
|
38111
38521
|
|
|
38112
|
-
// bazel-out/
|
|
38522
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/standalone.mjs
|
|
38113
38523
|
var StandaloneComponentScopeReader = class {
|
|
38114
38524
|
constructor(metaReader, localModuleReader, dtsModuleReader) {
|
|
38115
38525
|
this.metaReader = metaReader;
|
|
@@ -38187,21 +38597,21 @@ var StandaloneComponentScopeReader = class {
|
|
|
38187
38597
|
}
|
|
38188
38598
|
};
|
|
38189
38599
|
|
|
38190
|
-
// bazel-out/
|
|
38600
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/checker.mjs
|
|
38191
38601
|
var OptimizeFor;
|
|
38192
38602
|
(function(OptimizeFor2) {
|
|
38193
38603
|
OptimizeFor2[OptimizeFor2["SingleFile"] = 0] = "SingleFile";
|
|
38194
38604
|
OptimizeFor2[OptimizeFor2["WholeProgram"] = 1] = "WholeProgram";
|
|
38195
38605
|
})(OptimizeFor || (OptimizeFor = {}));
|
|
38196
38606
|
|
|
38197
|
-
// bazel-out/
|
|
38607
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/completion.mjs
|
|
38198
38608
|
var CompletionKind;
|
|
38199
38609
|
(function(CompletionKind2) {
|
|
38200
38610
|
CompletionKind2[CompletionKind2["Reference"] = 0] = "Reference";
|
|
38201
38611
|
CompletionKind2[CompletionKind2["Variable"] = 1] = "Variable";
|
|
38202
38612
|
})(CompletionKind || (CompletionKind = {}));
|
|
38203
38613
|
|
|
38204
|
-
// bazel-out/
|
|
38614
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/scope.mjs
|
|
38205
38615
|
var PotentialImportKind;
|
|
38206
38616
|
(function(PotentialImportKind2) {
|
|
38207
38617
|
PotentialImportKind2[PotentialImportKind2["NgModule"] = 0] = "NgModule";
|
|
@@ -38213,7 +38623,7 @@ var PotentialImportMode;
|
|
|
38213
38623
|
PotentialImportMode2[PotentialImportMode2["ForceDirect"] = 1] = "ForceDirect";
|
|
38214
38624
|
})(PotentialImportMode || (PotentialImportMode = {}));
|
|
38215
38625
|
|
|
38216
|
-
// bazel-out/
|
|
38626
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.mjs
|
|
38217
38627
|
var SymbolKind;
|
|
38218
38628
|
(function(SymbolKind2) {
|
|
38219
38629
|
SymbolKind2[SymbolKind2["Input"] = 0] = "Input";
|
|
@@ -38229,7 +38639,7 @@ var SymbolKind;
|
|
|
38229
38639
|
SymbolKind2[SymbolKind2["Pipe"] = 10] = "Pipe";
|
|
38230
38640
|
})(SymbolKind || (SymbolKind = {}));
|
|
38231
38641
|
|
|
38232
|
-
// bazel-out/
|
|
38642
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
|
|
38233
38643
|
var import_typescript73 = __toESM(require("typescript"), 1);
|
|
38234
38644
|
function makeTemplateDiagnostic(templateId, mapping, span, category, code, messageText, relatedMessages) {
|
|
38235
38645
|
var _a2;
|
|
@@ -38336,7 +38746,7 @@ function parseTemplateAsSourceFile(fileName, template2) {
|
|
|
38336
38746
|
return import_typescript73.default.createSourceFile(fileName, template2, import_typescript73.default.ScriptTarget.Latest, false, import_typescript73.default.ScriptKind.JSX);
|
|
38337
38747
|
}
|
|
38338
38748
|
|
|
38339
|
-
// bazel-out/
|
|
38749
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
|
|
38340
38750
|
var TEMPLATE_ID = Symbol("ngTemplateId");
|
|
38341
38751
|
var NEXT_TEMPLATE_ID = Symbol("ngNextTemplateId");
|
|
38342
38752
|
function getTemplateId(clazz) {
|
|
@@ -38353,10 +38763,10 @@ function allocateTemplateId(sf) {
|
|
|
38353
38763
|
return `tcb${sf[NEXT_TEMPLATE_ID]++}`;
|
|
38354
38764
|
}
|
|
38355
38765
|
|
|
38356
|
-
// bazel-out/
|
|
38766
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
38357
38767
|
var import_typescript75 = __toESM(require("typescript"), 1);
|
|
38358
38768
|
|
|
38359
|
-
// bazel-out/
|
|
38769
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
|
|
38360
38770
|
var import_typescript74 = __toESM(require("typescript"), 1);
|
|
38361
38771
|
var parseSpanComment = /^(\d+),(\d+)$/;
|
|
38362
38772
|
function readSpanComment(node, sourceFile = node.getSourceFile()) {
|
|
@@ -38485,7 +38895,7 @@ function hasExpressionIdentifier(sourceFile, node, identifier) {
|
|
|
38485
38895
|
}) || false;
|
|
38486
38896
|
}
|
|
38487
38897
|
|
|
38488
|
-
// bazel-out/
|
|
38898
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
38489
38899
|
var CompletionEngine = class {
|
|
38490
38900
|
constructor(tcb, data, tcbPath, tcbIsShim) {
|
|
38491
38901
|
this.tcb = tcb;
|
|
@@ -38642,10 +39052,10 @@ var CompletionEngine = class {
|
|
|
38642
39052
|
}
|
|
38643
39053
|
};
|
|
38644
39054
|
|
|
38645
|
-
// bazel-out/
|
|
39055
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
38646
39056
|
var import_typescript90 = __toESM(require("typescript"), 1);
|
|
38647
39057
|
|
|
38648
|
-
// bazel-out/
|
|
39058
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
|
|
38649
39059
|
var import_typescript76 = __toESM(require("typescript"), 1);
|
|
38650
39060
|
var REGISTRY = new DomElementSchemaRegistry();
|
|
38651
39061
|
var REMOVE_XHTML_REGEX = /^:xhtml:/;
|
|
@@ -38697,10 +39107,10 @@ var RegistryDomSchemaChecker = class {
|
|
|
38697
39107
|
}
|
|
38698
39108
|
};
|
|
38699
39109
|
|
|
38700
|
-
// bazel-out/
|
|
39110
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
38701
39111
|
var import_typescript83 = __toESM(require("typescript"), 1);
|
|
38702
39112
|
|
|
38703
|
-
// bazel-out/
|
|
39113
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
|
|
38704
39114
|
var import_typescript77 = __toESM(require("typescript"), 1);
|
|
38705
39115
|
var SAFE_TO_CAST_WITHOUT_PARENS = /* @__PURE__ */ new Set([
|
|
38706
39116
|
import_typescript77.default.SyntaxKind.ParenthesizedExpression,
|
|
@@ -38774,16 +39184,16 @@ function isAccessExpression2(node) {
|
|
|
38774
39184
|
return import_typescript77.default.isPropertyAccessExpression(node) || import_typescript77.default.isElementAccessExpression(node);
|
|
38775
39185
|
}
|
|
38776
39186
|
|
|
38777
|
-
// bazel-out/
|
|
39187
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
38778
39188
|
var import_typescript82 = __toESM(require("typescript"), 1);
|
|
38779
39189
|
|
|
38780
|
-
// bazel-out/
|
|
39190
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
38781
39191
|
var import_typescript80 = __toESM(require("typescript"), 1);
|
|
38782
39192
|
|
|
38783
|
-
// bazel-out/
|
|
39193
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
|
|
38784
39194
|
var import_typescript79 = __toESM(require("typescript"), 1);
|
|
38785
39195
|
|
|
38786
|
-
// bazel-out/
|
|
39196
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_emitter.mjs
|
|
38787
39197
|
var import_typescript78 = __toESM(require("typescript"), 1);
|
|
38788
39198
|
var INELIGIBLE = {};
|
|
38789
39199
|
function canEmitType(type, canEmit) {
|
|
@@ -38858,7 +39268,7 @@ var TypeEmitter = class {
|
|
|
38858
39268
|
}
|
|
38859
39269
|
};
|
|
38860
39270
|
|
|
38861
|
-
// bazel-out/
|
|
39271
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
|
|
38862
39272
|
var TypeParameterEmitter = class {
|
|
38863
39273
|
constructor(typeParameters, reflector) {
|
|
38864
39274
|
this.typeParameters = typeParameters;
|
|
@@ -38935,7 +39345,7 @@ var TypeParameterEmitter = class {
|
|
|
38935
39345
|
}
|
|
38936
39346
|
};
|
|
38937
39347
|
|
|
38938
|
-
// bazel-out/
|
|
39348
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
38939
39349
|
var TcbInliningRequirement;
|
|
38940
39350
|
(function(TcbInliningRequirement2) {
|
|
38941
39351
|
TcbInliningRequirement2[TcbInliningRequirement2["MustInline"] = 0] = "MustInline";
|
|
@@ -39015,7 +39425,7 @@ function checkIfGenericTypeBoundsCanBeEmitted(node, reflector, env) {
|
|
|
39015
39425
|
return emitter.canEmit((ref) => env.canReferenceType(ref));
|
|
39016
39426
|
}
|
|
39017
39427
|
|
|
39018
|
-
// bazel-out/
|
|
39428
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
39019
39429
|
function generateTypeCtorDeclarationFn(node, meta, nodeTypeRef, typeParams) {
|
|
39020
39430
|
const rawTypeArgs = typeParams !== void 0 ? generateGenericArgs(typeParams) : void 0;
|
|
39021
39431
|
const rawType = import_typescript82.default.factory.createTypeReferenceNode(nodeTypeRef, rawTypeArgs);
|
|
@@ -39126,7 +39536,7 @@ function typeParametersWithDefaultTypes(params) {
|
|
|
39126
39536
|
});
|
|
39127
39537
|
}
|
|
39128
39538
|
|
|
39129
|
-
// bazel-out/
|
|
39539
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
39130
39540
|
var Environment = class {
|
|
39131
39541
|
constructor(config, importManager, refEmitter, reflector, contextFile) {
|
|
39132
39542
|
this.config = config;
|
|
@@ -39220,7 +39630,7 @@ var Environment = class {
|
|
|
39220
39630
|
}
|
|
39221
39631
|
};
|
|
39222
39632
|
|
|
39223
|
-
// bazel-out/
|
|
39633
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
|
|
39224
39634
|
var import_typescript84 = __toESM(require("typescript"), 1);
|
|
39225
39635
|
var OutOfBandDiagnosticRecorderImpl = class {
|
|
39226
39636
|
constructor(resolver) {
|
|
@@ -39374,7 +39784,7 @@ function makeInlineDiagnostic(templateId, code, node, messageText, relatedInform
|
|
|
39374
39784
|
});
|
|
39375
39785
|
}
|
|
39376
39786
|
|
|
39377
|
-
// bazel-out/
|
|
39787
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
|
|
39378
39788
|
var import_typescript85 = __toESM(require("typescript"), 1);
|
|
39379
39789
|
var TypeCheckShimGenerator = class {
|
|
39380
39790
|
constructor() {
|
|
@@ -39392,10 +39802,10 @@ var TypeCheckShimGenerator = class {
|
|
|
39392
39802
|
}
|
|
39393
39803
|
};
|
|
39394
39804
|
|
|
39395
|
-
// bazel-out/
|
|
39805
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
39396
39806
|
var import_typescript88 = __toESM(require("typescript"), 1);
|
|
39397
39807
|
|
|
39398
|
-
// bazel-out/
|
|
39808
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
|
|
39399
39809
|
var import_typescript86 = __toESM(require("typescript"), 1);
|
|
39400
39810
|
function wrapForDiagnostics(expr) {
|
|
39401
39811
|
return import_typescript86.default.factory.createParenthesizedExpression(expr);
|
|
@@ -39440,7 +39850,7 @@ function translateDiagnostic(diagnostic, resolver) {
|
|
|
39440
39850
|
return makeTemplateDiagnostic(sourceLocation.id, templateSourceMapping, span, diagnostic.category, diagnostic.code, diagnostic.messageText);
|
|
39441
39851
|
}
|
|
39442
39852
|
|
|
39443
|
-
// bazel-out/
|
|
39853
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
|
|
39444
39854
|
var import_typescript87 = __toESM(require("typescript"), 1);
|
|
39445
39855
|
var NULL_AS_ANY = import_typescript87.default.factory.createAsExpression(import_typescript87.default.factory.createNull(), import_typescript87.default.factory.createKeywordTypeNode(import_typescript87.default.SyntaxKind.AnyKeyword));
|
|
39446
39856
|
var UNDEFINED = import_typescript87.default.factory.createIdentifier("undefined");
|
|
@@ -39772,7 +40182,7 @@ var VeSafeLhsInferenceBugDetector = _VeSafeLhsInferenceBugDetector;
|
|
|
39772
40182
|
_VeSafeLhsInferenceBugDetector.SINGLETON = new _VeSafeLhsInferenceBugDetector();
|
|
39773
40183
|
})();
|
|
39774
40184
|
|
|
39775
|
-
// bazel-out/
|
|
40185
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_semantics.mjs
|
|
39776
40186
|
var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
|
|
39777
40187
|
constructor(templateId, boundTarget, oob) {
|
|
39778
40188
|
super();
|
|
@@ -39795,7 +40205,7 @@ var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
|
|
|
39795
40205
|
}
|
|
39796
40206
|
};
|
|
39797
40207
|
|
|
39798
|
-
// bazel-out/
|
|
40208
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
39799
40209
|
var TcbGenericContextBehavior;
|
|
39800
40210
|
(function(TcbGenericContextBehavior2) {
|
|
39801
40211
|
TcbGenericContextBehavior2[TcbGenericContextBehavior2["UseEmitter"] = 0] = "UseEmitter";
|
|
@@ -40518,8 +40928,9 @@ var TcbSwitchOp = class extends TcbOp {
|
|
|
40518
40928
|
return false;
|
|
40519
40929
|
}
|
|
40520
40930
|
execute() {
|
|
40521
|
-
const
|
|
40522
|
-
markIgnoreDiagnostics(
|
|
40931
|
+
const comparisonExpression = tcbExpression(this.block.expression, this.tcb, this.scope);
|
|
40932
|
+
markIgnoreDiagnostics(comparisonExpression);
|
|
40933
|
+
const expression = import_typescript88.default.factory.createParenthesizedExpression(comparisonExpression);
|
|
40523
40934
|
const root = this.generateCase(0, expression, null);
|
|
40524
40935
|
if (root !== void 0) {
|
|
40525
40936
|
this.scope.addStatement(root);
|
|
@@ -41166,7 +41577,7 @@ var TcbForLoopTrackTranslator = class extends TcbExpressionTranslator {
|
|
|
41166
41577
|
}
|
|
41167
41578
|
};
|
|
41168
41579
|
|
|
41169
|
-
// bazel-out/
|
|
41580
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
|
|
41170
41581
|
var import_typescript89 = __toESM(require("typescript"), 1);
|
|
41171
41582
|
var TypeCheckFile = class extends Environment {
|
|
41172
41583
|
constructor(fileName, config, refEmitter, reflector, compilerHost) {
|
|
@@ -41202,7 +41613,7 @@ var TypeCheckFile = class extends Environment {
|
|
|
41202
41613
|
}
|
|
41203
41614
|
};
|
|
41204
41615
|
|
|
41205
|
-
// bazel-out/
|
|
41616
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
41206
41617
|
var InliningMode;
|
|
41207
41618
|
(function(InliningMode2) {
|
|
41208
41619
|
InliningMode2[InliningMode2["InlineOps"] = 0] = "InlineOps";
|
|
@@ -41439,7 +41850,7 @@ function splitStringAtPoints(str, points) {
|
|
|
41439
41850
|
return splits;
|
|
41440
41851
|
}
|
|
41441
41852
|
|
|
41442
|
-
// bazel-out/
|
|
41853
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/line_mappings.mjs
|
|
41443
41854
|
var LF_CHAR = 10;
|
|
41444
41855
|
var CR_CHAR = 13;
|
|
41445
41856
|
var LINE_SEP_CHAR = 8232;
|
|
@@ -41480,7 +41891,7 @@ function findClosestLineStartPosition(linesMap, position, low = 0, high = linesM
|
|
|
41480
41891
|
return low - 1;
|
|
41481
41892
|
}
|
|
41482
41893
|
|
|
41483
|
-
// bazel-out/
|
|
41894
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
|
|
41484
41895
|
var TemplateSource = class {
|
|
41485
41896
|
constructor(mapping, file) {
|
|
41486
41897
|
this.mapping = mapping;
|
|
@@ -41531,7 +41942,7 @@ var TemplateSourceManager = class {
|
|
|
41531
41942
|
}
|
|
41532
41943
|
};
|
|
41533
41944
|
|
|
41534
|
-
// bazel-out/
|
|
41945
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
|
|
41535
41946
|
var import_typescript91 = __toESM(require("typescript"), 1);
|
|
41536
41947
|
var SymbolBuilder = class {
|
|
41537
41948
|
constructor(tcbPath, tcbIsShim, typeCheckBlock, templateData, componentScopeReader, getTypeChecker) {
|
|
@@ -42008,7 +42419,7 @@ function sourceSpanEqual(a, b) {
|
|
|
42008
42419
|
return a.start.offset === b.start.offset && a.end.offset === b.end.offset;
|
|
42009
42420
|
}
|
|
42010
42421
|
|
|
42011
|
-
// bazel-out/
|
|
42422
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
|
|
42012
42423
|
var REGISTRY2 = new DomElementSchemaRegistry();
|
|
42013
42424
|
var TemplateTypeCheckerImpl = class {
|
|
42014
42425
|
constructor(originalProgram, programDriver, typeCheckAdapter, config, refEmitter, reflector, compilerHost, priorBuild, metaReader, localMetaReader, ngModuleIndex, componentScopeReader, typeCheckScopeRegistry, perf) {
|
|
@@ -42704,7 +43115,7 @@ var SingleShimTypeCheckingHost = class extends SingleFileTypeCheckingHost {
|
|
|
42704
43115
|
}
|
|
42705
43116
|
};
|
|
42706
43117
|
|
|
42707
|
-
// bazel-out/
|
|
43118
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
|
|
42708
43119
|
var TemplateCheckWithVisitor = class {
|
|
42709
43120
|
run(ctx, component, template2) {
|
|
42710
43121
|
const visitor = new TemplateVisitor2(ctx, component, this);
|
|
@@ -42827,7 +43238,7 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor2 {
|
|
|
42827
43238
|
}
|
|
42828
43239
|
};
|
|
42829
43240
|
|
|
42830
|
-
// bazel-out/
|
|
43241
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
|
|
42831
43242
|
var InvalidBananaInBoxCheck = class extends TemplateCheckWithVisitor {
|
|
42832
43243
|
constructor() {
|
|
42833
43244
|
super(...arguments);
|
|
@@ -42852,12 +43263,12 @@ var factory = {
|
|
|
42852
43263
|
create: () => new InvalidBananaInBoxCheck()
|
|
42853
43264
|
};
|
|
42854
43265
|
|
|
42855
|
-
// bazel-out/
|
|
43266
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.mjs
|
|
42856
43267
|
var KNOWN_CONTROL_FLOW_DIRECTIVES = /* @__PURE__ */ new Map([
|
|
42857
|
-
["ngIf", "NgIf"],
|
|
42858
|
-
["ngFor", "NgFor"],
|
|
42859
|
-
["ngSwitchCase", "NgSwitchCase"],
|
|
42860
|
-
["ngSwitchDefault", "NgSwitchDefault"]
|
|
43268
|
+
["ngIf", { directive: "NgIf", builtIn: "@if" }],
|
|
43269
|
+
["ngFor", { directive: "NgFor", builtIn: "@for" }],
|
|
43270
|
+
["ngSwitchCase", { directive: "NgSwitchCase", builtIn: "@switch with @case" }],
|
|
43271
|
+
["ngSwitchDefault", { directive: "NgSwitchDefault", builtIn: "@switch with @default" }]
|
|
42861
43272
|
]);
|
|
42862
43273
|
var MissingControlFlowDirectiveCheck = class extends TemplateCheckWithVisitor {
|
|
42863
43274
|
constructor() {
|
|
@@ -42882,8 +43293,8 @@ var MissingControlFlowDirectiveCheck = class extends TemplateCheckWithVisitor {
|
|
|
42882
43293
|
return [];
|
|
42883
43294
|
}
|
|
42884
43295
|
const sourceSpan = controlFlowAttr.keySpan || controlFlowAttr.sourceSpan;
|
|
42885
|
-
const
|
|
42886
|
-
const errorMessage = `The \`*${controlFlowAttr.name}\` directive was used in the template, but neither the \`${
|
|
43296
|
+
const directiveAndBuiltIn = KNOWN_CONTROL_FLOW_DIRECTIVES.get(controlFlowAttr.name);
|
|
43297
|
+
const errorMessage = `The \`*${controlFlowAttr.name}\` directive was used in the template, but neither the \`${directiveAndBuiltIn == null ? void 0 : directiveAndBuiltIn.directive}\` directive nor the \`CommonModule\` was imported. Use Angular's built-in control flow ${directiveAndBuiltIn == null ? void 0 : directiveAndBuiltIn.builtIn} or make sure that either the \`${directiveAndBuiltIn == null ? void 0 : directiveAndBuiltIn.directive}\` directive or the \`CommonModule\` is included in the \`@Component.imports\` array of this component.`;
|
|
42887
43298
|
const diagnostic = ctx.makeTemplateDiagnostic(sourceSpan, errorMessage);
|
|
42888
43299
|
return [diagnostic];
|
|
42889
43300
|
}
|
|
@@ -42896,7 +43307,7 @@ var factory2 = {
|
|
|
42896
43307
|
}
|
|
42897
43308
|
};
|
|
42898
43309
|
|
|
42899
|
-
// bazel-out/
|
|
43310
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.mjs
|
|
42900
43311
|
var MissingNgForOfLetCheck = class extends TemplateCheckWithVisitor {
|
|
42901
43312
|
constructor() {
|
|
42902
43313
|
super(...arguments);
|
|
@@ -42928,7 +43339,7 @@ var factory3 = {
|
|
|
42928
43339
|
create: () => new MissingNgForOfLetCheck()
|
|
42929
43340
|
};
|
|
42930
43341
|
|
|
42931
|
-
// bazel-out/
|
|
43342
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
|
|
42932
43343
|
var import_typescript94 = __toESM(require("typescript"), 1);
|
|
42933
43344
|
var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
42934
43345
|
constructor() {
|
|
@@ -42972,7 +43383,7 @@ var factory4 = {
|
|
|
42972
43383
|
}
|
|
42973
43384
|
};
|
|
42974
43385
|
|
|
42975
|
-
// bazel-out/
|
|
43386
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.mjs
|
|
42976
43387
|
var import_typescript95 = __toESM(require("typescript"), 1);
|
|
42977
43388
|
var OptionalChainNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
42978
43389
|
constructor() {
|
|
@@ -43017,7 +43428,7 @@ var factory5 = {
|
|
|
43017
43428
|
}
|
|
43018
43429
|
};
|
|
43019
43430
|
|
|
43020
|
-
// bazel-out/
|
|
43431
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.mjs
|
|
43021
43432
|
var STYLE_SUFFIXES = ["px", "%", "em"];
|
|
43022
43433
|
var SuffixNotSupportedCheck = class extends TemplateCheckWithVisitor {
|
|
43023
43434
|
constructor() {
|
|
@@ -43040,7 +43451,7 @@ var factory6 = {
|
|
|
43040
43451
|
create: () => new SuffixNotSupportedCheck()
|
|
43041
43452
|
};
|
|
43042
43453
|
|
|
43043
|
-
// bazel-out/
|
|
43454
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.mjs
|
|
43044
43455
|
var TextAttributeNotBindingSpec = class extends TemplateCheckWithVisitor {
|
|
43045
43456
|
constructor() {
|
|
43046
43457
|
super(...arguments);
|
|
@@ -43078,10 +43489,10 @@ var factory7 = {
|
|
|
43078
43489
|
create: () => new TextAttributeNotBindingSpec()
|
|
43079
43490
|
};
|
|
43080
43491
|
|
|
43081
|
-
// bazel-out/
|
|
43492
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
43082
43493
|
var import_typescript96 = __toESM(require("typescript"), 1);
|
|
43083
43494
|
|
|
43084
|
-
// bazel-out/
|
|
43495
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
|
|
43085
43496
|
var DiagnosticCategoryLabel;
|
|
43086
43497
|
(function(DiagnosticCategoryLabel2) {
|
|
43087
43498
|
DiagnosticCategoryLabel2["Warning"] = "warning";
|
|
@@ -43089,7 +43500,7 @@ var DiagnosticCategoryLabel;
|
|
|
43089
43500
|
DiagnosticCategoryLabel2["Suppress"] = "suppress";
|
|
43090
43501
|
})(DiagnosticCategoryLabel || (DiagnosticCategoryLabel = {}));
|
|
43091
43502
|
|
|
43092
|
-
// bazel-out/
|
|
43503
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
43093
43504
|
var ExtendedTemplateCheckerImpl = class {
|
|
43094
43505
|
constructor(templateTypeChecker, typeChecker, templateCheckFactories, options) {
|
|
43095
43506
|
var _a2, _b2, _c2, _d2, _e2;
|
|
@@ -43141,7 +43552,7 @@ function assertNever(value) {
|
|
|
43141
43552
|
${value}`);
|
|
43142
43553
|
}
|
|
43143
43554
|
|
|
43144
|
-
// bazel-out/
|
|
43555
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
|
|
43145
43556
|
var ALL_DIAGNOSTIC_FACTORIES = [
|
|
43146
43557
|
factory,
|
|
43147
43558
|
factory4,
|
|
@@ -43152,7 +43563,7 @@ var ALL_DIAGNOSTIC_FACTORIES = [
|
|
|
43152
43563
|
factory6
|
|
43153
43564
|
];
|
|
43154
43565
|
|
|
43155
|
-
// bazel-out/
|
|
43566
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
43156
43567
|
var CompilationTicketKind;
|
|
43157
43568
|
(function(CompilationTicketKind2) {
|
|
43158
43569
|
CompilationTicketKind2[CompilationTicketKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -43895,7 +44306,7 @@ function versionMapFromProgram(program, driver) {
|
|
|
43895
44306
|
return versions;
|
|
43896
44307
|
}
|
|
43897
44308
|
|
|
43898
|
-
// bazel-out/
|
|
44309
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
|
|
43899
44310
|
var import_typescript99 = __toESM(require("typescript"), 1);
|
|
43900
44311
|
var DelegatingCompilerHost2 = class {
|
|
43901
44312
|
constructor(delegate) {
|
|
@@ -44028,7 +44439,7 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
|
|
|
44028
44439
|
}
|
|
44029
44440
|
};
|
|
44030
44441
|
|
|
44031
|
-
// bazel-out/
|
|
44442
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
44032
44443
|
var NgtscProgram = class {
|
|
44033
44444
|
constructor(rootNames, options, delegateHost, oldProgram) {
|
|
44034
44445
|
this.options = options;
|
|
@@ -44255,21 +44666,21 @@ function mergeEmitResults(emitResults) {
|
|
|
44255
44666
|
return { diagnostics, emitSkipped, emittedFiles };
|
|
44256
44667
|
}
|
|
44257
44668
|
|
|
44258
|
-
// bazel-out/
|
|
44669
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
|
|
44259
44670
|
function createProgram({ rootNames, options, host, oldProgram }) {
|
|
44260
44671
|
return new NgtscProgram(rootNames, options, host, oldProgram);
|
|
44261
44672
|
}
|
|
44262
44673
|
|
|
44263
|
-
// bazel-out/
|
|
44674
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
44264
44675
|
var import_typescript103 = __toESM(require("typescript"), 1);
|
|
44265
44676
|
|
|
44266
|
-
// bazel-out/
|
|
44677
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
|
|
44267
44678
|
var import_typescript102 = __toESM(require("typescript"), 1);
|
|
44268
44679
|
|
|
44269
|
-
// bazel-out/
|
|
44680
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/downlevel_decorators_transform/downlevel_decorators_transform.mjs
|
|
44270
44681
|
var import_typescript104 = __toESM(require("typescript"), 1);
|
|
44271
44682
|
|
|
44272
|
-
// bazel-out/
|
|
44683
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/private/tooling.mjs
|
|
44273
44684
|
var GLOBAL_DEFS_FOR_TERSER = {
|
|
44274
44685
|
ngDevMode: false,
|
|
44275
44686
|
ngI18nClosureMode: false
|
|
@@ -44278,7 +44689,7 @@ var GLOBAL_DEFS_FOR_TERSER_WITH_AOT = __spreadProps(__spreadValues({}, GLOBAL_DE
|
|
|
44278
44689
|
ngJitMode: false
|
|
44279
44690
|
});
|
|
44280
44691
|
|
|
44281
|
-
// bazel-out/
|
|
44692
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/logging/src/logger.mjs
|
|
44282
44693
|
var LogLevel;
|
|
44283
44694
|
(function(LogLevel2) {
|
|
44284
44695
|
LogLevel2[LogLevel2["debug"] = 0] = "debug";
|
|
@@ -44287,7 +44698,7 @@ var LogLevel;
|
|
|
44287
44698
|
LogLevel2[LogLevel2["error"] = 3] = "error";
|
|
44288
44699
|
})(LogLevel || (LogLevel = {}));
|
|
44289
44700
|
|
|
44290
|
-
// bazel-out/
|
|
44701
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/logging/src/console_logger.mjs
|
|
44291
44702
|
var RESET = "\x1B[0m";
|
|
44292
44703
|
var RED = "\x1B[31m";
|
|
44293
44704
|
var YELLOW = "\x1B[33m";
|
|
@@ -44296,18 +44707,18 @@ var DEBUG = `${BLUE}Debug:${RESET}`;
|
|
|
44296
44707
|
var WARN = `${YELLOW}Warning:${RESET}`;
|
|
44297
44708
|
var ERROR = `${RED}Error:${RESET}`;
|
|
44298
44709
|
|
|
44299
|
-
// bazel-out/
|
|
44710
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/index.mjs
|
|
44300
44711
|
setFileSystem(new NodeJSFileSystem());
|
|
44301
44712
|
|
|
44302
|
-
// bazel-out/
|
|
44713
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/index.mjs
|
|
44303
44714
|
var import_fs2 = require("fs");
|
|
44304
44715
|
var import_path8 = require("path");
|
|
44305
44716
|
var import_typescript117 = __toESM(require("typescript"), 1);
|
|
44306
44717
|
|
|
44307
|
-
// bazel-out/
|
|
44718
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
|
|
44308
44719
|
var import_typescript106 = __toESM(require("typescript"), 1);
|
|
44309
44720
|
|
|
44310
|
-
// bazel-out/
|
|
44721
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/import_manager.mjs
|
|
44311
44722
|
var import_path4 = require("path");
|
|
44312
44723
|
var import_typescript105 = __toESM(require("typescript"), 1);
|
|
44313
44724
|
var ImportManager2 = class {
|
|
@@ -44491,7 +44902,7 @@ ${text2}`;
|
|
|
44491
44902
|
}
|
|
44492
44903
|
};
|
|
44493
44904
|
|
|
44494
|
-
// bazel-out/
|
|
44905
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
|
|
44495
44906
|
var ChangeTracker = class {
|
|
44496
44907
|
constructor(_printer, _importRemapper) {
|
|
44497
44908
|
__publicField(this, "_printer");
|
|
@@ -44550,7 +44961,7 @@ function normalizePath(path4) {
|
|
|
44550
44961
|
return path4.replace(/\\/g, "/");
|
|
44551
44962
|
}
|
|
44552
44963
|
|
|
44553
|
-
// bazel-out/
|
|
44964
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
|
|
44554
44965
|
var import_core16 = require("@angular-devkit/core");
|
|
44555
44966
|
function getProjectTsConfigPaths(tree) {
|
|
44556
44967
|
return __async(this, null, function* () {
|
|
@@ -44630,11 +45041,11 @@ function getWorkspace(tree) {
|
|
|
44630
45041
|
});
|
|
44631
45042
|
}
|
|
44632
45043
|
|
|
44633
|
-
// bazel-out/
|
|
45044
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
44634
45045
|
var import_path5 = require("path");
|
|
44635
45046
|
var import_typescript108 = __toESM(require("typescript"), 1);
|
|
44636
45047
|
|
|
44637
|
-
// bazel-out/
|
|
45048
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
|
|
44638
45049
|
var path3 = __toESM(require("path"), 1);
|
|
44639
45050
|
var import_typescript107 = __toESM(require("typescript"), 1);
|
|
44640
45051
|
function parseTsconfigFile(tsconfigPath, basePath) {
|
|
@@ -44651,7 +45062,7 @@ function parseTsconfigFile(tsconfigPath, basePath) {
|
|
|
44651
45062
|
return import_typescript107.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
|
|
44652
45063
|
}
|
|
44653
45064
|
|
|
44654
|
-
// bazel-out/
|
|
45065
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
44655
45066
|
function createProgramOptions(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles, optionOverrides) {
|
|
44656
45067
|
tsconfigPath = (0, import_path5.resolve)(basePath, tsconfigPath);
|
|
44657
45068
|
const parsed = parseTsconfigFile(tsconfigPath, (0, import_path5.dirname)(tsconfigPath));
|
|
@@ -44680,13 +45091,13 @@ function canMigrateFile(basePath, sourceFile, program) {
|
|
|
44680
45091
|
return !(0, import_path5.relative)(basePath, sourceFile.fileName).startsWith("..");
|
|
44681
45092
|
}
|
|
44682
45093
|
|
|
44683
|
-
// bazel-out/
|
|
45094
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/prune-modules.mjs
|
|
44684
45095
|
var import_typescript113 = __toESM(require("typescript"), 1);
|
|
44685
45096
|
|
|
44686
|
-
// bazel-out/
|
|
45097
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
|
|
44687
45098
|
var import_typescript110 = __toESM(require("typescript"), 1);
|
|
44688
45099
|
|
|
44689
|
-
// bazel-out/
|
|
45100
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
|
|
44690
45101
|
var import_typescript109 = __toESM(require("typescript"), 1);
|
|
44691
45102
|
function getImportOfIdentifier(typeChecker, node) {
|
|
44692
45103
|
const symbol = typeChecker.getSymbolAtLocation(node);
|
|
@@ -44737,7 +45148,7 @@ function findImportSpecifier(nodes, specifierName) {
|
|
|
44737
45148
|
});
|
|
44738
45149
|
}
|
|
44739
45150
|
|
|
44740
|
-
// bazel-out/
|
|
45151
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
|
|
44741
45152
|
function getCallDecoratorImport(typeChecker, decorator) {
|
|
44742
45153
|
if (!import_typescript110.default.isCallExpression(decorator.expression) || !import_typescript110.default.isIdentifier(decorator.expression.expression)) {
|
|
44743
45154
|
return null;
|
|
@@ -44746,7 +45157,7 @@ function getCallDecoratorImport(typeChecker, decorator) {
|
|
|
44746
45157
|
return getImportOfIdentifier(typeChecker, identifier);
|
|
44747
45158
|
}
|
|
44748
45159
|
|
|
44749
|
-
// bazel-out/
|
|
45160
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/ng_decorators.mjs
|
|
44750
45161
|
function getAngularDecorators(typeChecker, decorators) {
|
|
44751
45162
|
return decorators.map((node) => ({ node, importData: getCallDecoratorImport(typeChecker, node) })).filter(({ importData }) => importData && importData.importModule.startsWith("@angular/")).map(({ node, importData }) => ({
|
|
44752
45163
|
node,
|
|
@@ -44756,7 +45167,7 @@ function getAngularDecorators(typeChecker, decorators) {
|
|
|
44756
45167
|
}));
|
|
44757
45168
|
}
|
|
44758
45169
|
|
|
44759
|
-
// bazel-out/
|
|
45170
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/nodes.mjs
|
|
44760
45171
|
var import_typescript111 = __toESM(require("typescript"), 1);
|
|
44761
45172
|
function closestNode(node, predicate) {
|
|
44762
45173
|
let current = node.parent;
|
|
@@ -44769,7 +45180,7 @@ function closestNode(node, predicate) {
|
|
|
44769
45180
|
return null;
|
|
44770
45181
|
}
|
|
44771
45182
|
|
|
44772
|
-
// bazel-out/
|
|
45183
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/util.mjs
|
|
44773
45184
|
var import_path6 = require("path");
|
|
44774
45185
|
var import_typescript112 = __toESM(require("typescript"), 1);
|
|
44775
45186
|
var UniqueItemTracker = class {
|
|
@@ -44945,7 +45356,7 @@ function isClassReferenceInAngularModule(node, className, moduleName, typeChecke
|
|
|
44945
45356
|
}));
|
|
44946
45357
|
}
|
|
44947
45358
|
|
|
44948
|
-
// bazel-out/
|
|
45359
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/prune-modules.mjs
|
|
44949
45360
|
function pruneNgModules(program, host, basePath, rootFileNames, sourceFiles, printer, importRemapper, referenceLookupExcludedFiles) {
|
|
44950
45361
|
const filesToRemove = /* @__PURE__ */ new Set();
|
|
44951
45362
|
const tracker = new ChangeTracker(printer, importRemapper);
|
|
@@ -45144,14 +45555,14 @@ function findNgModuleDecorator(node, typeChecker) {
|
|
|
45144
45555
|
return decorators.find((decorator) => decorator.name === "NgModule") || null;
|
|
45145
45556
|
}
|
|
45146
45557
|
|
|
45147
|
-
// bazel-out/
|
|
45558
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/standalone-bootstrap.mjs
|
|
45148
45559
|
var import_path7 = require("path");
|
|
45149
45560
|
var import_typescript116 = __toESM(require("typescript"), 1);
|
|
45150
45561
|
|
|
45151
|
-
// bazel-out/
|
|
45562
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/to-standalone.mjs
|
|
45152
45563
|
var import_typescript115 = __toESM(require("typescript"), 1);
|
|
45153
45564
|
|
|
45154
|
-
// bazel-out/
|
|
45565
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/symbol.mjs
|
|
45155
45566
|
var import_typescript114 = __toESM(require("typescript"), 1);
|
|
45156
45567
|
function isReferenceToImport(typeChecker, node, importSpecifier) {
|
|
45157
45568
|
var _a2, _b2;
|
|
@@ -45160,7 +45571,7 @@ function isReferenceToImport(typeChecker, node, importSpecifier) {
|
|
|
45160
45571
|
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];
|
|
45161
45572
|
}
|
|
45162
45573
|
|
|
45163
|
-
// bazel-out/
|
|
45574
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/to-standalone.mjs
|
|
45164
45575
|
function toStandalone(sourceFiles, program, printer, fileImportRemapper, componentImportRemapper) {
|
|
45165
45576
|
const templateTypeChecker = program.compiler.getTemplateTypeChecker();
|
|
45166
45577
|
const typeChecker = program.getTsProgram().getTypeChecker();
|
|
@@ -45523,7 +45934,7 @@ function isStandaloneDeclaration(node, declarationsInMigration, templateTypeChec
|
|
|
45523
45934
|
return metadata != null && metadata.isStandalone;
|
|
45524
45935
|
}
|
|
45525
45936
|
|
|
45526
|
-
// bazel-out/
|
|
45937
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/standalone-bootstrap.mjs
|
|
45527
45938
|
function toStandaloneBootstrap(program, host, basePath, rootFileNames, sourceFiles, printer, importRemapper, referenceLookupExcludedFiles, componentImportRemapper) {
|
|
45528
45939
|
const tracker = new ChangeTracker(printer, importRemapper);
|
|
45529
45940
|
const typeChecker = program.getTsProgram().getTypeChecker();
|
|
@@ -45900,7 +46311,7 @@ function hasImport(program, rootFileNames, moduleName) {
|
|
|
45900
46311
|
return false;
|
|
45901
46312
|
}
|
|
45902
46313
|
|
|
45903
|
-
// bazel-out/
|
|
46314
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/index.mjs
|
|
45904
46315
|
var MigrationMode;
|
|
45905
46316
|
(function(MigrationMode2) {
|
|
45906
46317
|
MigrationMode2["toStandalone"] = "convert-to-standalone";
|
|
@@ -45991,6 +46402,14 @@ function standaloneMigration(tree, tsconfigPath, basePath, pathToMigrate, schema
|
|
|
45991
46402
|
* Use of this source code is governed by an MIT-style license that can be
|
|
45992
46403
|
* found in the LICENSE file at https://angular.io/license
|
|
45993
46404
|
*/
|
|
46405
|
+
/**
|
|
46406
|
+
*
|
|
46407
|
+
* @license
|
|
46408
|
+
* Copyright Google LLC All Rights Reserved.
|
|
46409
|
+
*
|
|
46410
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
46411
|
+
* found in the LICENSE file at https://angular.io/license
|
|
46412
|
+
*/
|
|
45994
46413
|
/**
|
|
45995
46414
|
* @license
|
|
45996
46415
|
* Copyright Google LLC All Rights Reserved.
|