@angular/core 16.1.0-next.3 → 16.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/src/application_init.mjs +2 -3
- package/esm2022/src/application_module.mjs +2 -3
- package/esm2022/src/application_ref.mjs +6 -9
- package/esm2022/src/change_detection/change_detector_ref.mjs +2 -3
- package/esm2022/src/change_detection/differs/iterable_differs.mjs +2 -3
- package/esm2022/src/change_detection/differs/keyvalue_differs.mjs +2 -3
- package/esm2022/src/console.mjs +2 -3
- package/esm2022/src/di/injector.mjs +2 -3
- package/esm2022/src/hydration/annotate.mjs +4 -5
- package/esm2022/src/hydration/skip_hydration.mjs +10 -4
- package/esm2022/src/initial_render_pending_tasks.mjs +2 -3
- package/esm2022/src/linker/compiler.mjs +2 -3
- package/esm2022/src/linker/component_factory_resolver.mjs +2 -3
- package/esm2022/src/linker/destroy_ref.mjs +2 -3
- package/esm2022/src/linker/element_ref.mjs +2 -3
- package/esm2022/src/linker/template_ref.mjs +2 -3
- package/esm2022/src/linker/view_container_ref.mjs +2 -3
- package/esm2022/src/render/api.mjs +2 -3
- package/esm2022/src/render3/instructions/element.mjs +7 -4
- package/esm2022/src/render3/instructions/shared.mjs +3 -3
- package/esm2022/src/render3/interfaces/renderer_dom.mjs +1 -1
- package/esm2022/src/render3/interfaces/type_checks.mjs +4 -1
- package/esm2022/src/render3/jit/directive.mjs +2 -2
- package/esm2022/src/render3/reactivity/effect.mjs +2 -3
- package/esm2022/src/sanitization/sanitizer.mjs +2 -3
- package/esm2022/src/testability/testability.mjs +3 -5
- package/esm2022/src/transfer_state.mjs +2 -3
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/logger.mjs +5 -6
- package/esm2022/testing/src/test_bed.mjs +2 -3
- package/fesm2022/core.mjs +24 -13
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/rxjs-interop.mjs +1 -1
- package/fesm2022/testing.mjs +20 -8
- package/fesm2022/testing.mjs.map +1 -1
- package/index.d.ts +2 -1
- package/package.json +1 -1
- package/rxjs-interop/index.d.ts +1 -1
- package/schematics/migrations/guard-and-resolve-interfaces/bundle.js +13 -13
- package/schematics/migrations/remove-module-id/bundle.js +14 -14
- package/schematics/ng-generate/standalone-migration/bundle.js +1118 -569
- 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_arm64-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_arm64-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_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/invalid_file_system.mjs
|
|
78
78
|
var InvalidFileSystem = class {
|
|
79
79
|
exists(path3) {
|
|
80
80
|
throw makeError();
|
|
@@ -162,7 +162,7 @@ function makeError() {
|
|
|
162
162
|
return new Error("FileSystem has not been configured. Please call `setFileSystem()` before calling this method.");
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
-
// bazel-out/
|
|
165
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/util.mjs
|
|
166
166
|
var TS_DTS_JS_EXTENSION = /(?:\.d)?\.ts$|\.js$/;
|
|
167
167
|
function stripExtension(path3) {
|
|
168
168
|
return path3.replace(TS_DTS_JS_EXTENSION, "");
|
|
@@ -175,7 +175,7 @@ function getSourceFileOrError(program, fileName) {
|
|
|
175
175
|
return sf;
|
|
176
176
|
}
|
|
177
177
|
|
|
178
|
-
// bazel-out/
|
|
178
|
+
// bazel-out/darwin_arm64-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_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/logical.mjs
|
|
223
223
|
var LogicalProjectPath = {
|
|
224
224
|
relativePathBetween: function(from, to) {
|
|
225
225
|
const relativePath = relative(dirname(resolve(from)), resolve(to));
|
|
@@ -265,7 +265,7 @@ function isWithinBasePath(base, path3) {
|
|
|
265
265
|
return isLocalRelativePath(relative(base, path3));
|
|
266
266
|
}
|
|
267
267
|
|
|
268
|
-
// bazel-out/
|
|
268
|
+
// bazel-out/darwin_arm64-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_arm64-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_arm64-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_arm64-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,
|
|
@@ -829,7 +829,7 @@ __export(output_ast_exports, {
|
|
|
829
829
|
variable: () => variable
|
|
830
830
|
});
|
|
831
831
|
|
|
832
|
-
// bazel-out/
|
|
832
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/big_integer.mjs
|
|
833
833
|
var BigInteger = class {
|
|
834
834
|
static zero() {
|
|
835
835
|
return new BigInteger([0]);
|
|
@@ -921,7 +921,7 @@ var BigIntExponentiation = class {
|
|
|
921
921
|
}
|
|
922
922
|
};
|
|
923
923
|
|
|
924
|
-
// bazel-out/
|
|
924
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/digest.mjs
|
|
925
925
|
var textEncoder;
|
|
926
926
|
function digest(message) {
|
|
927
927
|
return message.id || computeDigest(message);
|
|
@@ -1184,7 +1184,7 @@ function wordsToDecimalString(hi, lo) {
|
|
|
1184
1184
|
return decimal.toString();
|
|
1185
1185
|
}
|
|
1186
1186
|
|
|
1187
|
-
// bazel-out/
|
|
1187
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/output_ast.mjs
|
|
1188
1188
|
var TypeModifier;
|
|
1189
1189
|
(function(TypeModifier2) {
|
|
1190
1190
|
TypeModifier2[TypeModifier2["None"] = 0] = "None";
|
|
@@ -1618,12 +1618,12 @@ var LocalizedString = class extends Expression {
|
|
|
1618
1618
|
return createCookedRawString(metaBlock, this.messageParts[0].text, this.getMessagePartSourceSpan(0));
|
|
1619
1619
|
}
|
|
1620
1620
|
getMessagePartSourceSpan(i) {
|
|
1621
|
-
var _a2,
|
|
1622
|
-
return (
|
|
1621
|
+
var _a2, _b2;
|
|
1622
|
+
return (_b2 = (_a2 = this.messageParts[i]) == null ? void 0 : _a2.sourceSpan) != null ? _b2 : this.sourceSpan;
|
|
1623
1623
|
}
|
|
1624
1624
|
getPlaceholderSourceSpan(i) {
|
|
1625
|
-
var _a2,
|
|
1626
|
-
return (
|
|
1625
|
+
var _a2, _b2, _c2, _d2;
|
|
1626
|
+
return (_d2 = (_c2 = (_a2 = this.placeHolderNames[i]) == null ? void 0 : _a2.sourceSpan) != null ? _c2 : (_b2 = this.expressions[i]) == null ? void 0 : _b2.sourceSpan) != null ? _d2 : this.sourceSpan;
|
|
1627
1627
|
}
|
|
1628
1628
|
serializeI18nTemplatePart(partIndex) {
|
|
1629
1629
|
var _a2;
|
|
@@ -2226,7 +2226,7 @@ function serializeTags(tags) {
|
|
|
2226
2226
|
return out;
|
|
2227
2227
|
}
|
|
2228
2228
|
|
|
2229
|
-
// bazel-out/
|
|
2229
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/constant_pool.mjs
|
|
2230
2230
|
var CONSTANT_PREFIX = "_c";
|
|
2231
2231
|
var UNKNOWN_VALUE_KEY = variable("<unknown>");
|
|
2232
2232
|
var KEY_CONTEXT = {};
|
|
@@ -2262,13 +2262,14 @@ var ConstantPool = class {
|
|
|
2262
2262
|
this.statements = [];
|
|
2263
2263
|
this.literals = /* @__PURE__ */ new Map();
|
|
2264
2264
|
this.literalFactories = /* @__PURE__ */ new Map();
|
|
2265
|
+
this.sharedConstants = /* @__PURE__ */ new Map();
|
|
2265
2266
|
this.nextNameIndex = 0;
|
|
2266
2267
|
}
|
|
2267
2268
|
getConstLiteral(literal3, forceShared) {
|
|
2268
2269
|
if (literal3 instanceof LiteralExpr && !isLongStringLiteral(literal3) || literal3 instanceof FixupExpression) {
|
|
2269
2270
|
return literal3;
|
|
2270
2271
|
}
|
|
2271
|
-
const key =
|
|
2272
|
+
const key = GenericKeyFn.INSTANCE.keyOf(literal3);
|
|
2272
2273
|
let fixup = this.literals.get(key);
|
|
2273
2274
|
let newValue = false;
|
|
2274
2275
|
if (!fixup) {
|
|
@@ -2297,10 +2298,19 @@ var ConstantPool = class {
|
|
|
2297
2298
|
}
|
|
2298
2299
|
return fixup;
|
|
2299
2300
|
}
|
|
2301
|
+
getSharedConstant(def, expr) {
|
|
2302
|
+
const key = def.keyOf(expr);
|
|
2303
|
+
if (!this.sharedConstants.has(key)) {
|
|
2304
|
+
const id = this.freshName();
|
|
2305
|
+
this.sharedConstants.set(key, variable(id));
|
|
2306
|
+
this.statements.push(def.toSharedConstantDeclaration(id, expr));
|
|
2307
|
+
}
|
|
2308
|
+
return this.sharedConstants.get(key);
|
|
2309
|
+
}
|
|
2300
2310
|
getLiteralFactory(literal3) {
|
|
2301
2311
|
if (literal3 instanceof LiteralArrayExpr) {
|
|
2302
2312
|
const argumentsForKey = literal3.entries.map((e) => e.isConstant() ? e : UNKNOWN_VALUE_KEY);
|
|
2303
|
-
const key =
|
|
2313
|
+
const key = GenericKeyFn.INSTANCE.keyOf(literalArr(argumentsForKey));
|
|
2304
2314
|
return this._getLiteralFactory(key, literal3.entries, (entries) => literalArr(entries));
|
|
2305
2315
|
} else {
|
|
2306
2316
|
const expressionForKey = literalMap(literal3.entries.map((e) => ({
|
|
@@ -2308,7 +2318,7 @@ var ConstantPool = class {
|
|
|
2308
2318
|
value: e.value.isConstant() ? e.value : UNKNOWN_VALUE_KEY,
|
|
2309
2319
|
quoted: e.quoted
|
|
2310
2320
|
})));
|
|
2311
|
-
const key =
|
|
2321
|
+
const key = GenericKeyFn.INSTANCE.keyOf(expressionForKey);
|
|
2312
2322
|
return this._getLiteralFactory(key, literal3.entries.map((e) => e.value), (entries) => literalMap(entries.map((value, index) => ({
|
|
2313
2323
|
key: literal3.entries[index].key,
|
|
2314
2324
|
value,
|
|
@@ -2336,58 +2346,44 @@ var ConstantPool = class {
|
|
|
2336
2346
|
freshName() {
|
|
2337
2347
|
return this.uniqueName(CONSTANT_PREFIX);
|
|
2338
2348
|
}
|
|
2339
|
-
keyOf(expression) {
|
|
2340
|
-
return expression.visitExpression(new KeyVisitor(), KEY_CONTEXT);
|
|
2341
|
-
}
|
|
2342
2349
|
};
|
|
2343
|
-
var
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
};
|
|
2375
|
-
const mapEntry = (entry) => `${mapKey(entry)}:${entry.value.visitExpression(this, context)}`;
|
|
2376
|
-
return `{${ast.entries.map(mapEntry).join(",")}`;
|
|
2377
|
-
}
|
|
2378
|
-
visitExternalExpr(ast) {
|
|
2379
|
-
return ast.value.moduleName ? `EX:${ast.value.moduleName}:${ast.value.name}` : `EX:${ast.value.runtime.name}`;
|
|
2380
|
-
}
|
|
2381
|
-
visitReadVarExpr(node) {
|
|
2382
|
-
return `VAR:${node.name}`;
|
|
2383
|
-
}
|
|
2384
|
-
visitTypeofExpr(node, context) {
|
|
2385
|
-
return `TYPEOF:${node.expr.visitExpression(this, context)}`;
|
|
2350
|
+
var _GenericKeyFn = class {
|
|
2351
|
+
keyOf(expr) {
|
|
2352
|
+
if (expr instanceof LiteralExpr && typeof expr.value === "string") {
|
|
2353
|
+
return `"${expr.value}"`;
|
|
2354
|
+
} else if (expr instanceof LiteralExpr) {
|
|
2355
|
+
return String(expr.value);
|
|
2356
|
+
} else if (expr instanceof LiteralArrayExpr) {
|
|
2357
|
+
const entries = [];
|
|
2358
|
+
for (const entry of expr.entries) {
|
|
2359
|
+
entries.push(this.keyOf(entry));
|
|
2360
|
+
}
|
|
2361
|
+
return `[${entries.join(",")}]`;
|
|
2362
|
+
} else if (expr instanceof LiteralMapExpr) {
|
|
2363
|
+
const entries = [];
|
|
2364
|
+
for (const entry of expr.entries) {
|
|
2365
|
+
let key = entry.key;
|
|
2366
|
+
if (entry.quoted) {
|
|
2367
|
+
key = `"${key}"`;
|
|
2368
|
+
}
|
|
2369
|
+
entries.push(key + ":" + this.keyOf(entry.value));
|
|
2370
|
+
}
|
|
2371
|
+
return `{${entries.join(",")}}`;
|
|
2372
|
+
} else if (expr instanceof ExternalExpr) {
|
|
2373
|
+
return `import("${expr.value.moduleName}", ${expr.value.name})`;
|
|
2374
|
+
} else if (expr instanceof ReadVarExpr) {
|
|
2375
|
+
return `read(${expr.name})`;
|
|
2376
|
+
} else if (expr instanceof TypeofExpr) {
|
|
2377
|
+
return `typeof(${this.keyOf(expr.expr)})`;
|
|
2378
|
+
} else {
|
|
2379
|
+
throw new Error(`${this.constructor.name} does not handle expressions of type ${expr.constructor.name}`);
|
|
2380
|
+
}
|
|
2386
2381
|
}
|
|
2387
2382
|
};
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2383
|
+
var GenericKeyFn = _GenericKeyFn;
|
|
2384
|
+
(() => {
|
|
2385
|
+
_GenericKeyFn.INSTANCE = new _GenericKeyFn();
|
|
2386
|
+
})();
|
|
2391
2387
|
function isVariable(e) {
|
|
2392
2388
|
return e instanceof ReadVarExpr;
|
|
2393
2389
|
}
|
|
@@ -2395,7 +2391,7 @@ function isLongStringLiteral(expr) {
|
|
|
2395
2391
|
return expr instanceof LiteralExpr && typeof expr.value === "string" && expr.value.length >= POOL_INCLUSION_LENGTH_THRESHOLD_FOR_STRINGS;
|
|
2396
2392
|
}
|
|
2397
2393
|
|
|
2398
|
-
// bazel-out/
|
|
2394
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_identifiers.mjs
|
|
2399
2395
|
var CORE = "@angular/core";
|
|
2400
2396
|
var _Identifiers = class {
|
|
2401
2397
|
};
|
|
@@ -2953,7 +2949,7 @@ var Identifiers = _Identifiers;
|
|
|
2953
2949
|
_Identifiers.validateIframeAttribute = { name: "\u0275\u0275validateIframeAttribute", moduleName: CORE };
|
|
2954
2950
|
})();
|
|
2955
2951
|
|
|
2956
|
-
// bazel-out/
|
|
2952
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/util.mjs
|
|
2957
2953
|
var DASH_CASE_REGEXP = /-+([a-z0-9])/g;
|
|
2958
2954
|
function dashCaseToCamelCase(input) {
|
|
2959
2955
|
return input.replace(DASH_CASE_REGEXP, (...m) => m[1].toUpperCase());
|
|
@@ -3041,7 +3037,7 @@ function partitionArray(arr, conditionFn) {
|
|
|
3041
3037
|
return [truthy, falsy];
|
|
3042
3038
|
}
|
|
3043
3039
|
|
|
3044
|
-
// bazel-out/
|
|
3040
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/source_map.mjs
|
|
3045
3041
|
var VERSION = 3;
|
|
3046
3042
|
var JS_B64_PREFIX = "# sourceMappingURL=data:application/json;base64,";
|
|
3047
3043
|
var SourceMapGenerator = class {
|
|
@@ -3170,7 +3166,7 @@ function toBase64Digit(value) {
|
|
|
3170
3166
|
return B64_DIGITS[value];
|
|
3171
3167
|
}
|
|
3172
3168
|
|
|
3173
|
-
// bazel-out/
|
|
3169
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/abstract_emitter.mjs
|
|
3174
3170
|
var _SINGLE_QUOTE_ESCAPE_STRING_RE = /'|\\|\n|\r|\$/g;
|
|
3175
3171
|
var _LEGAL_IDENTIFIER_RE = /^[$A-Z_][0-9A-Z_$]*$/i;
|
|
3176
3172
|
var _INDENT_WITH = " ";
|
|
@@ -3645,7 +3641,7 @@ function _createIndent(count) {
|
|
|
3645
3641
|
return res;
|
|
3646
3642
|
}
|
|
3647
3643
|
|
|
3648
|
-
// bazel-out/
|
|
3644
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/util.mjs
|
|
3649
3645
|
function typeWithParameters(type, numParams) {
|
|
3650
3646
|
if (numParams === 0) {
|
|
3651
3647
|
return expressionType(type);
|
|
@@ -3713,7 +3709,7 @@ function generateForwardRef(expr) {
|
|
|
3713
3709
|
return importExpr(Identifiers.forwardRef).callFn([fn([], [new ReturnStatement(expr)])]);
|
|
3714
3710
|
}
|
|
3715
3711
|
|
|
3716
|
-
// bazel-out/
|
|
3712
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_factory.mjs
|
|
3717
3713
|
var R3FactoryDelegateType;
|
|
3718
3714
|
(function(R3FactoryDelegateType2) {
|
|
3719
3715
|
R3FactoryDelegateType2[R3FactoryDelegateType2["Class"] = 0] = "Class";
|
|
@@ -3858,7 +3854,7 @@ function getInjectFn(target) {
|
|
|
3858
3854
|
}
|
|
3859
3855
|
}
|
|
3860
3856
|
|
|
3861
|
-
// bazel-out/
|
|
3857
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_ast.mjs
|
|
3862
3858
|
var Comment = class {
|
|
3863
3859
|
constructor(value, sourceSpan) {
|
|
3864
3860
|
this.value = value;
|
|
@@ -4080,7 +4076,7 @@ function visitAll(visitor, nodes) {
|
|
|
4080
4076
|
return result;
|
|
4081
4077
|
}
|
|
4082
4078
|
|
|
4083
|
-
// bazel-out/
|
|
4079
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/i18n_ast.mjs
|
|
4084
4080
|
var Message = class {
|
|
4085
4081
|
constructor(nodes, placeholders, placeholderToMessage, meaning, description, customId) {
|
|
4086
4082
|
this.nodes = nodes;
|
|
@@ -4243,7 +4239,7 @@ var LocalizeMessageStringVisitor = class {
|
|
|
4243
4239
|
}
|
|
4244
4240
|
};
|
|
4245
4241
|
|
|
4246
|
-
// bazel-out/
|
|
4242
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/serializers/serializer.mjs
|
|
4247
4243
|
var Serializer = class {
|
|
4248
4244
|
createNameMapper(message) {
|
|
4249
4245
|
return null;
|
|
@@ -4295,7 +4291,7 @@ var SimplePlaceholderMapper = class extends RecurseVisitor {
|
|
|
4295
4291
|
}
|
|
4296
4292
|
};
|
|
4297
4293
|
|
|
4298
|
-
// bazel-out/
|
|
4294
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/serializers/xml_helper.mjs
|
|
4299
4295
|
var _Visitor = class {
|
|
4300
4296
|
visitTag(tag) {
|
|
4301
4297
|
const strAttrs = this._serializeAttributes(tag.attrs);
|
|
@@ -4383,7 +4379,7 @@ function escapeXml(text2) {
|
|
|
4383
4379
|
return _ESCAPED_CHARS.reduce((text3, entry) => text3.replace(entry[0], entry[1]), text2);
|
|
4384
4380
|
}
|
|
4385
4381
|
|
|
4386
|
-
// bazel-out/
|
|
4382
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/serializers/xmb.mjs
|
|
4387
4383
|
var _MESSAGES_TAG = "messagebundle";
|
|
4388
4384
|
var _MESSAGE_TAG = "msg";
|
|
4389
4385
|
var _PLACEHOLDER_TAG = "ph";
|
|
@@ -4526,7 +4522,7 @@ function toPublicName(internalName) {
|
|
|
4526
4522
|
return internalName.toUpperCase().replace(/[^A-Z0-9_]/g, "_");
|
|
4527
4523
|
}
|
|
4528
4524
|
|
|
4529
|
-
// bazel-out/
|
|
4525
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/i18n/util.mjs
|
|
4530
4526
|
var CLOSURE_TRANSLATION_VAR_PREFIX = "MSG_";
|
|
4531
4527
|
var TRANSLATION_VAR_PREFIX = "i18n_";
|
|
4532
4528
|
var I18N_ATTR = "i18n";
|
|
@@ -4628,7 +4624,7 @@ function declareI18nVariable(variable2) {
|
|
|
4628
4624
|
return new DeclareVarStmt(variable2.name, void 0, INFERRED_TYPE, void 0, variable2.sourceSpan);
|
|
4629
4625
|
}
|
|
4630
4626
|
|
|
4631
|
-
// bazel-out/
|
|
4627
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/util.mjs
|
|
4632
4628
|
var UNSAFE_OBJECT_KEY_NAME_REGEXP = /[-.]/;
|
|
4633
4629
|
var TEMPORARY_NAME = "_t";
|
|
4634
4630
|
var CONTEXT_NAME = "ctx";
|
|
@@ -4705,7 +4701,7 @@ function temporaryAllocator(statements, name) {
|
|
|
4705
4701
|
return temp;
|
|
4706
4702
|
};
|
|
4707
4703
|
}
|
|
4708
|
-
function
|
|
4704
|
+
function invalid(arg) {
|
|
4709
4705
|
throw new Error(`Invalid state: Visitor ${this.constructor.name} doesn't handle ${arg.constructor.name}`);
|
|
4710
4706
|
}
|
|
4711
4707
|
function asLiteral(value) {
|
|
@@ -4844,7 +4840,7 @@ function getInstructionStatements(instructions) {
|
|
|
4844
4840
|
return statements;
|
|
4845
4841
|
}
|
|
4846
4842
|
|
|
4847
|
-
// bazel-out/
|
|
4843
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/injectable_compiler_2.mjs
|
|
4848
4844
|
function compileInjectable(meta, resolveForwardRefs) {
|
|
4849
4845
|
let result = null;
|
|
4850
4846
|
const factoryMeta = {
|
|
@@ -4932,7 +4928,7 @@ function createFactoryFunction(type) {
|
|
|
4932
4928
|
return fn([new FnParam("t", DYNAMIC_TYPE)], [new ReturnStatement(type.prop("\u0275fac").callFn([variable("t")]))]);
|
|
4933
4929
|
}
|
|
4934
4930
|
|
|
4935
|
-
// bazel-out/
|
|
4931
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/assertions.mjs
|
|
4936
4932
|
var UNUSABLE_INTERPOLATION_REGEXPS = [
|
|
4937
4933
|
/^\s*$/,
|
|
4938
4934
|
/[<>]/,
|
|
@@ -4954,7 +4950,7 @@ function assertInterpolationSymbols(identifier, value) {
|
|
|
4954
4950
|
}
|
|
4955
4951
|
}
|
|
4956
4952
|
|
|
4957
|
-
// bazel-out/
|
|
4953
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/interpolation_config.mjs
|
|
4958
4954
|
var InterpolationConfig = class {
|
|
4959
4955
|
static fromArray(markers) {
|
|
4960
4956
|
if (!markers) {
|
|
@@ -4970,7 +4966,7 @@ var InterpolationConfig = class {
|
|
|
4970
4966
|
};
|
|
4971
4967
|
var DEFAULT_INTERPOLATION_CONFIG = new InterpolationConfig("{{", "}}");
|
|
4972
4968
|
|
|
4973
|
-
// bazel-out/
|
|
4969
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/chars.mjs
|
|
4974
4970
|
var $EOF = 0;
|
|
4975
4971
|
var $BSPACE = 8;
|
|
4976
4972
|
var $TAB = 9;
|
|
@@ -5051,7 +5047,7 @@ function isQuote(code) {
|
|
|
5051
5047
|
return code === $SQ || code === $DQ || code === $BT;
|
|
5052
5048
|
}
|
|
5053
5049
|
|
|
5054
|
-
// bazel-out/
|
|
5050
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/parse_util.mjs
|
|
5055
5051
|
var ParseLocation = class {
|
|
5056
5052
|
constructor(file, offset, line, col) {
|
|
5057
5053
|
this.file = file;
|
|
@@ -5198,7 +5194,7 @@ function sanitizeIdentifier(name) {
|
|
|
5198
5194
|
return name.replace(/\W/g, "_");
|
|
5199
5195
|
}
|
|
5200
5196
|
|
|
5201
|
-
// bazel-out/
|
|
5197
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/abstract_js_emitter.mjs
|
|
5202
5198
|
var makeTemplateObjectPolyfill = '(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})';
|
|
5203
5199
|
var AbstractJsEmitterVisitor = class extends AbstractEmitterVisitor {
|
|
5204
5200
|
constructor() {
|
|
@@ -5269,7 +5265,7 @@ var AbstractJsEmitterVisitor = class extends AbstractEmitterVisitor {
|
|
|
5269
5265
|
}
|
|
5270
5266
|
};
|
|
5271
5267
|
|
|
5272
|
-
// bazel-out/
|
|
5268
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/output_jit_trusted_types.mjs
|
|
5273
5269
|
var policy;
|
|
5274
5270
|
function getPolicy() {
|
|
5275
5271
|
if (policy === void 0) {
|
|
@@ -5306,7 +5302,7 @@ function newTrustedFunctionForJIT(...args) {
|
|
|
5306
5302
|
return fn2.bind(_global);
|
|
5307
5303
|
}
|
|
5308
5304
|
|
|
5309
|
-
// bazel-out/
|
|
5305
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/output_jit.mjs
|
|
5310
5306
|
var JitEvaluator = class {
|
|
5311
5307
|
evaluateStatements(sourceUrl, statements, refResolver, createSourceMaps) {
|
|
5312
5308
|
const converter = new JitEmitterVisitor(refResolver);
|
|
@@ -5397,7 +5393,7 @@ function isUseStrictStatement(statement) {
|
|
|
5397
5393
|
return statement.isEquivalent(literal("use strict").toStmt());
|
|
5398
5394
|
}
|
|
5399
5395
|
|
|
5400
|
-
// bazel-out/
|
|
5396
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_injector_compiler.mjs
|
|
5401
5397
|
function compileInjector(meta) {
|
|
5402
5398
|
const definitionMap = new DefinitionMap();
|
|
5403
5399
|
if (meta.providers !== null) {
|
|
@@ -5414,7 +5410,7 @@ function createInjectorType(meta) {
|
|
|
5414
5410
|
return new ExpressionType(importExpr(Identifiers.InjectorDeclaration, [new ExpressionType(meta.type.type)]));
|
|
5415
5411
|
}
|
|
5416
5412
|
|
|
5417
|
-
// bazel-out/
|
|
5413
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_jit.mjs
|
|
5418
5414
|
var R3JitReflector = class {
|
|
5419
5415
|
constructor(context) {
|
|
5420
5416
|
this.context = context;
|
|
@@ -5430,7 +5426,7 @@ var R3JitReflector = class {
|
|
|
5430
5426
|
}
|
|
5431
5427
|
};
|
|
5432
5428
|
|
|
5433
|
-
// bazel-out/
|
|
5429
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_module_compiler.mjs
|
|
5434
5430
|
var R3SelectorScopeMode;
|
|
5435
5431
|
(function(R3SelectorScopeMode2) {
|
|
5436
5432
|
R3SelectorScopeMode2[R3SelectorScopeMode2["Inline"] = 0] = "Inline";
|
|
@@ -5543,7 +5539,7 @@ function tupleOfTypes(types) {
|
|
|
5543
5539
|
return types.length > 0 ? expressionType(literalArr(typeofTypes)) : NONE_TYPE;
|
|
5544
5540
|
}
|
|
5545
5541
|
|
|
5546
|
-
// bazel-out/
|
|
5542
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_pipe_compiler.mjs
|
|
5547
5543
|
function compilePipeFromMetadata(metadata) {
|
|
5548
5544
|
const definitionMapValues = [];
|
|
5549
5545
|
definitionMapValues.push({ key: "name", value: literal(metadata.pipeName), quoted: false });
|
|
@@ -5564,7 +5560,7 @@ function createPipeType(metadata) {
|
|
|
5564
5560
|
]));
|
|
5565
5561
|
}
|
|
5566
5562
|
|
|
5567
|
-
// bazel-out/
|
|
5563
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/api.mjs
|
|
5568
5564
|
var R3TemplateDependencyKind;
|
|
5569
5565
|
(function(R3TemplateDependencyKind2) {
|
|
5570
5566
|
R3TemplateDependencyKind2[R3TemplateDependencyKind2["Directive"] = 0] = "Directive";
|
|
@@ -5572,7 +5568,7 @@ var R3TemplateDependencyKind;
|
|
|
5572
5568
|
R3TemplateDependencyKind2[R3TemplateDependencyKind2["NgModule"] = 2] = "NgModule";
|
|
5573
5569
|
})(R3TemplateDependencyKind || (R3TemplateDependencyKind = {}));
|
|
5574
5570
|
|
|
5575
|
-
// bazel-out/
|
|
5571
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/expression_parser/ast.mjs
|
|
5576
5572
|
var ParserError = class {
|
|
5577
5573
|
constructor(message, input, errLocation, ctxLocation) {
|
|
5578
5574
|
this.input = input;
|
|
@@ -6238,7 +6234,7 @@ var BoundElementProperty = class {
|
|
|
6238
6234
|
}
|
|
6239
6235
|
};
|
|
6240
6236
|
|
|
6241
|
-
// bazel-out/
|
|
6237
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/compiler_util/expression_converter.mjs
|
|
6242
6238
|
var _EventHandlerVars = class {
|
|
6243
6239
|
};
|
|
6244
6240
|
var EventHandlerVars = _EventHandlerVars;
|
|
@@ -6859,7 +6855,7 @@ var BuiltinFunctionCall = class extends Call {
|
|
|
6859
6855
|
}
|
|
6860
6856
|
};
|
|
6861
6857
|
|
|
6862
|
-
// bazel-out/
|
|
6858
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/schema/dom_security_schema.mjs
|
|
6863
6859
|
var _SECURITY_SCHEMA;
|
|
6864
6860
|
function SECURITY_SCHEMA() {
|
|
6865
6861
|
if (!_SECURITY_SCHEMA) {
|
|
@@ -6917,7 +6913,7 @@ function isIframeSecuritySensitiveAttr(attrName) {
|
|
|
6917
6913
|
return IFRAME_SECURITY_SENSITIVE_ATTRS.has(attrName.toLowerCase());
|
|
6918
6914
|
}
|
|
6919
6915
|
|
|
6920
|
-
// bazel-out/
|
|
6916
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/shadow_css.mjs
|
|
6921
6917
|
var animationKeywords = /* @__PURE__ */ new Set([
|
|
6922
6918
|
"inherit",
|
|
6923
6919
|
"initial",
|
|
@@ -6952,11 +6948,21 @@ var ShadowCss = class {
|
|
|
6952
6948
|
this._animationDeclarationKeyframesRe = /(^|\s+)(?:(?:(['"])((?:\\\\|\\\2|(?!\2).)+)\2)|(-?[A-Za-z][\w\-]*))(?=[,\s]|$)/g;
|
|
6953
6949
|
}
|
|
6954
6950
|
shimCssText(cssText, selector, hostSelector = "") {
|
|
6955
|
-
const
|
|
6956
|
-
cssText =
|
|
6951
|
+
const comments = [];
|
|
6952
|
+
cssText = cssText.replace(_commentRe, (m) => {
|
|
6953
|
+
var _a2;
|
|
6954
|
+
if (m.match(_commentWithHashRe)) {
|
|
6955
|
+
comments.push(m);
|
|
6956
|
+
} else {
|
|
6957
|
+
const newLinesMatches = m.match(_newLinesRe);
|
|
6958
|
+
comments.push(((_a2 = newLinesMatches == null ? void 0 : newLinesMatches.join("")) != null ? _a2 : "") + "\n");
|
|
6959
|
+
}
|
|
6960
|
+
return COMMENT_PLACEHOLDER;
|
|
6961
|
+
});
|
|
6957
6962
|
cssText = this._insertDirectives(cssText);
|
|
6958
6963
|
const scopedCssText = this._scopeCssText(cssText, selector, hostSelector);
|
|
6959
|
-
|
|
6964
|
+
let commentIdx = 0;
|
|
6965
|
+
return scopedCssText.replace(_commentWithHashPlaceHolderRe, () => comments[commentIdx++]);
|
|
6960
6966
|
}
|
|
6961
6967
|
_insertDirectives(cssText) {
|
|
6962
6968
|
cssText = this._insertPolyfillDirectivesInCssText(cssText);
|
|
@@ -7221,17 +7227,14 @@ var _selectorReSuffix = "([>\\s~+[.,{:][\\s\\S]*)?$";
|
|
|
7221
7227
|
var _polyfillHostRe = /-shadowcsshost/gim;
|
|
7222
7228
|
var _colonHostRe = /:host/gim;
|
|
7223
7229
|
var _colonHostContextRe = /:host-context/gim;
|
|
7230
|
+
var _newLinesRe = /\r?\n/g;
|
|
7224
7231
|
var _commentRe = /\/\*[\s\S]*?\*\//g;
|
|
7232
|
+
var _commentWithHashRe = /\/\*\s*#\s*source(Mapping)?URL=/g;
|
|
7233
|
+
var COMMENT_PLACEHOLDER = "%COMMENT%";
|
|
7234
|
+
var _commentWithHashPlaceHolderRe = new RegExp(COMMENT_PLACEHOLDER, "g");
|
|
7225
7235
|
var _placeholderRe = /__ph-(\d+)__/g;
|
|
7226
|
-
function stripComments(input) {
|
|
7227
|
-
return input.replace(_commentRe, "");
|
|
7228
|
-
}
|
|
7229
|
-
var _commentWithHashRe = /\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g;
|
|
7230
|
-
function extractCommentsWithHash(input) {
|
|
7231
|
-
return input.match(_commentWithHashRe) || [];
|
|
7232
|
-
}
|
|
7233
7236
|
var BLOCK_PLACEHOLDER = "%BLOCK%";
|
|
7234
|
-
var _ruleRe =
|
|
7237
|
+
var _ruleRe = new RegExp(`(\\s*(?:${COMMENT_PLACEHOLDER}\\s*)*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))`, "g");
|
|
7235
7238
|
var CONTENT_PAIRS = /* @__PURE__ */ new Map([["{", "}"]]);
|
|
7236
7239
|
var COMMA_IN_PLACEHOLDER = "%COMMA_IN_PLACEHOLDER%";
|
|
7237
7240
|
var SEMI_IN_PLACEHOLDER = "%SEMI_IN_PLACEHOLDER%";
|
|
@@ -7377,7 +7380,7 @@ function repeatGroups(groups, multiples) {
|
|
|
7377
7380
|
}
|
|
7378
7381
|
}
|
|
7379
7382
|
|
|
7380
|
-
// bazel-out/
|
|
7383
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/tags.mjs
|
|
7381
7384
|
var TagContentType;
|
|
7382
7385
|
(function(TagContentType2) {
|
|
7383
7386
|
TagContentType2[TagContentType2["RAW_TEXT"] = 0] = "RAW_TEXT";
|
|
@@ -7410,7 +7413,7 @@ function mergeNsAndName(prefix, localName) {
|
|
|
7410
7413
|
return prefix ? `:${prefix}:${localName}` : localName;
|
|
7411
7414
|
}
|
|
7412
7415
|
|
|
7413
|
-
// bazel-out/
|
|
7416
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/element.mjs
|
|
7414
7417
|
var ElementAttributeKind;
|
|
7415
7418
|
(function(ElementAttributeKind2) {
|
|
7416
7419
|
ElementAttributeKind2[ElementAttributeKind2["Attribute"] = 0] = "Attribute";
|
|
@@ -7487,7 +7490,7 @@ function assertIsElementAttributes(attrs) {
|
|
|
7487
7490
|
}
|
|
7488
7491
|
}
|
|
7489
7492
|
|
|
7490
|
-
// bazel-out/
|
|
7493
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/enums.mjs
|
|
7491
7494
|
var OpKind;
|
|
7492
7495
|
(function(OpKind2) {
|
|
7493
7496
|
OpKind2[OpKind2["ListEnd"] = 0] = "ListEnd";
|
|
@@ -7504,7 +7507,9 @@ var OpKind;
|
|
|
7504
7507
|
OpKind2[OpKind2["Listener"] = 11] = "Listener";
|
|
7505
7508
|
OpKind2[OpKind2["InterpolateText"] = 12] = "InterpolateText";
|
|
7506
7509
|
OpKind2[OpKind2["Property"] = 13] = "Property";
|
|
7507
|
-
OpKind2[OpKind2["
|
|
7510
|
+
OpKind2[OpKind2["InterpolateProperty"] = 14] = "InterpolateProperty";
|
|
7511
|
+
OpKind2[OpKind2["Advance"] = 15] = "Advance";
|
|
7512
|
+
OpKind2[OpKind2["Pipe"] = 16] = "Pipe";
|
|
7508
7513
|
})(OpKind || (OpKind = {}));
|
|
7509
7514
|
var ExpressionKind;
|
|
7510
7515
|
(function(ExpressionKind2) {
|
|
@@ -7516,6 +7521,10 @@ var ExpressionKind;
|
|
|
7516
7521
|
ExpressionKind2[ExpressionKind2["GetCurrentView"] = 5] = "GetCurrentView";
|
|
7517
7522
|
ExpressionKind2[ExpressionKind2["RestoreView"] = 6] = "RestoreView";
|
|
7518
7523
|
ExpressionKind2[ExpressionKind2["ResetView"] = 7] = "ResetView";
|
|
7524
|
+
ExpressionKind2[ExpressionKind2["PureFunctionExpr"] = 8] = "PureFunctionExpr";
|
|
7525
|
+
ExpressionKind2[ExpressionKind2["PureFunctionParameterExpr"] = 9] = "PureFunctionParameterExpr";
|
|
7526
|
+
ExpressionKind2[ExpressionKind2["PipeBinding"] = 10] = "PipeBinding";
|
|
7527
|
+
ExpressionKind2[ExpressionKind2["PipeBindingVariadic"] = 11] = "PipeBindingVariadic";
|
|
7519
7528
|
})(ExpressionKind || (ExpressionKind = {}));
|
|
7520
7529
|
var SemanticVariableKind;
|
|
7521
7530
|
(function(SemanticVariableKind2) {
|
|
@@ -7524,11 +7533,12 @@ var SemanticVariableKind;
|
|
|
7524
7533
|
SemanticVariableKind2[SemanticVariableKind2["SavedView"] = 2] = "SavedView";
|
|
7525
7534
|
})(SemanticVariableKind || (SemanticVariableKind = {}));
|
|
7526
7535
|
|
|
7527
|
-
// bazel-out/
|
|
7536
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/traits.mjs
|
|
7528
7537
|
var ConsumesSlot = Symbol("ConsumesSlot");
|
|
7529
7538
|
var DependsOnSlotContext = Symbol("DependsOnSlotContext");
|
|
7530
7539
|
var UsesSlotIndex = Symbol("UsesSlotIndex");
|
|
7531
|
-
var ConsumesVarsTrait = Symbol("
|
|
7540
|
+
var ConsumesVarsTrait = Symbol("ConsumesVars");
|
|
7541
|
+
var UsesVarOffset = Symbol("UsesVarOffset");
|
|
7532
7542
|
var TRAIT_CONSUMES_SLOT = {
|
|
7533
7543
|
[ConsumesSlot]: true,
|
|
7534
7544
|
slot: null,
|
|
@@ -7544,6 +7554,10 @@ var TRAIT_DEPENDS_ON_SLOT_CONTEXT = {
|
|
|
7544
7554
|
var TRAIT_CONSUMES_VARS = {
|
|
7545
7555
|
[ConsumesVarsTrait]: true
|
|
7546
7556
|
};
|
|
7557
|
+
var TRAIT_USES_VAR_OFFSET = {
|
|
7558
|
+
[UsesVarOffset]: true,
|
|
7559
|
+
varOffset: null
|
|
7560
|
+
};
|
|
7547
7561
|
function hasConsumesSlotTrait(op) {
|
|
7548
7562
|
return op[ConsumesSlot] === true;
|
|
7549
7563
|
}
|
|
@@ -7553,12 +7567,26 @@ function hasDependsOnSlotContextTrait(op) {
|
|
|
7553
7567
|
function hasConsumesVarsTrait(value) {
|
|
7554
7568
|
return value[ConsumesVarsTrait] === true;
|
|
7555
7569
|
}
|
|
7570
|
+
function hasUsesVarOffsetTrait(expr) {
|
|
7571
|
+
return expr[UsesVarOffset] === true;
|
|
7572
|
+
}
|
|
7556
7573
|
function hasUsesSlotIndexTrait(value) {
|
|
7557
7574
|
return value[UsesSlotIndex] === true;
|
|
7558
7575
|
}
|
|
7559
7576
|
|
|
7560
|
-
// bazel-out/
|
|
7577
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/expression.mjs
|
|
7561
7578
|
var _a;
|
|
7579
|
+
var _b;
|
|
7580
|
+
var _c;
|
|
7581
|
+
var _d;
|
|
7582
|
+
var _e;
|
|
7583
|
+
var _f;
|
|
7584
|
+
var _g;
|
|
7585
|
+
var _h;
|
|
7586
|
+
var _j;
|
|
7587
|
+
function isIrExpression(expr) {
|
|
7588
|
+
return expr instanceof ExpressionBase;
|
|
7589
|
+
}
|
|
7562
7590
|
var ExpressionBase = class extends Expression {
|
|
7563
7591
|
constructor(sourceSpan = null) {
|
|
7564
7592
|
super(null, sourceSpan);
|
|
@@ -7722,6 +7750,128 @@ var ReadVariableExpr = class extends ExpressionBase {
|
|
|
7722
7750
|
transformInternalExpressions() {
|
|
7723
7751
|
}
|
|
7724
7752
|
};
|
|
7753
|
+
var _PureFunctionExpr = class extends ExpressionBase {
|
|
7754
|
+
constructor(expression, args) {
|
|
7755
|
+
super();
|
|
7756
|
+
this.kind = ExpressionKind.PureFunctionExpr;
|
|
7757
|
+
this[_b] = true;
|
|
7758
|
+
this[_c] = true;
|
|
7759
|
+
this.varOffset = null;
|
|
7760
|
+
this.fn = null;
|
|
7761
|
+
this.body = expression;
|
|
7762
|
+
this.args = args;
|
|
7763
|
+
}
|
|
7764
|
+
visitExpression(visitor, context) {
|
|
7765
|
+
var _a2;
|
|
7766
|
+
(_a2 = this.body) == null ? void 0 : _a2.visitExpression(visitor, context);
|
|
7767
|
+
for (const arg of this.args) {
|
|
7768
|
+
arg.visitExpression(visitor, context);
|
|
7769
|
+
}
|
|
7770
|
+
}
|
|
7771
|
+
isEquivalent(other) {
|
|
7772
|
+
if (!(other instanceof _PureFunctionExpr) || other.args.length !== this.args.length) {
|
|
7773
|
+
return false;
|
|
7774
|
+
}
|
|
7775
|
+
return other.body !== null && this.body !== null && other.body.isEquivalent(this.body) && other.args.every((arg, idx) => arg.isEquivalent(this.args[idx]));
|
|
7776
|
+
}
|
|
7777
|
+
isConstant() {
|
|
7778
|
+
return false;
|
|
7779
|
+
}
|
|
7780
|
+
transformInternalExpressions(transform, flags) {
|
|
7781
|
+
if (this.body !== null) {
|
|
7782
|
+
this.body = transformExpressionsInExpression(this.body, transform, flags | VisitorContextFlag.InChildOperation);
|
|
7783
|
+
} else if (this.fn !== null) {
|
|
7784
|
+
this.fn = transformExpressionsInExpression(this.fn, transform, flags);
|
|
7785
|
+
}
|
|
7786
|
+
for (let i = 0; i < this.args.length; i++) {
|
|
7787
|
+
this.args[i] = transformExpressionsInExpression(this.args[i], transform, flags);
|
|
7788
|
+
}
|
|
7789
|
+
}
|
|
7790
|
+
};
|
|
7791
|
+
var PureFunctionExpr = _PureFunctionExpr;
|
|
7792
|
+
(() => {
|
|
7793
|
+
_b = ConsumesVarsTrait, _c = UsesVarOffset;
|
|
7794
|
+
})();
|
|
7795
|
+
var PureFunctionParameterExpr = class extends ExpressionBase {
|
|
7796
|
+
constructor(index) {
|
|
7797
|
+
super();
|
|
7798
|
+
this.index = index;
|
|
7799
|
+
this.kind = ExpressionKind.PureFunctionParameterExpr;
|
|
7800
|
+
}
|
|
7801
|
+
visitExpression() {
|
|
7802
|
+
}
|
|
7803
|
+
isEquivalent(other) {
|
|
7804
|
+
return other instanceof PureFunctionParameterExpr && other.index === this.index;
|
|
7805
|
+
}
|
|
7806
|
+
isConstant() {
|
|
7807
|
+
return true;
|
|
7808
|
+
}
|
|
7809
|
+
transformInternalExpressions() {
|
|
7810
|
+
}
|
|
7811
|
+
};
|
|
7812
|
+
var PipeBindingExpr = class extends ExpressionBase {
|
|
7813
|
+
constructor(target, name, args) {
|
|
7814
|
+
super();
|
|
7815
|
+
this.target = target;
|
|
7816
|
+
this.name = name;
|
|
7817
|
+
this.args = args;
|
|
7818
|
+
this.kind = ExpressionKind.PipeBinding;
|
|
7819
|
+
this[_d] = true;
|
|
7820
|
+
this[_e] = true;
|
|
7821
|
+
this[_f] = true;
|
|
7822
|
+
this.slot = null;
|
|
7823
|
+
this.varOffset = null;
|
|
7824
|
+
}
|
|
7825
|
+
visitExpression(visitor, context) {
|
|
7826
|
+
for (const arg of this.args) {
|
|
7827
|
+
arg.visitExpression(visitor, context);
|
|
7828
|
+
}
|
|
7829
|
+
}
|
|
7830
|
+
isEquivalent() {
|
|
7831
|
+
return false;
|
|
7832
|
+
}
|
|
7833
|
+
isConstant() {
|
|
7834
|
+
return false;
|
|
7835
|
+
}
|
|
7836
|
+
transformInternalExpressions(transform, flags) {
|
|
7837
|
+
for (let idx = 0; idx < this.args.length; idx++) {
|
|
7838
|
+
this.args[idx] = transformExpressionsInExpression(this.args[idx], transform, flags);
|
|
7839
|
+
}
|
|
7840
|
+
}
|
|
7841
|
+
};
|
|
7842
|
+
(() => {
|
|
7843
|
+
_d = UsesSlotIndex, _e = ConsumesVarsTrait, _f = UsesVarOffset;
|
|
7844
|
+
})();
|
|
7845
|
+
var PipeBindingVariadicExpr = class extends ExpressionBase {
|
|
7846
|
+
constructor(target, name, args, numArgs) {
|
|
7847
|
+
super();
|
|
7848
|
+
this.target = target;
|
|
7849
|
+
this.name = name;
|
|
7850
|
+
this.args = args;
|
|
7851
|
+
this.numArgs = numArgs;
|
|
7852
|
+
this.kind = ExpressionKind.PipeBindingVariadic;
|
|
7853
|
+
this[_g] = true;
|
|
7854
|
+
this[_h] = true;
|
|
7855
|
+
this[_j] = true;
|
|
7856
|
+
this.slot = null;
|
|
7857
|
+
this.varOffset = null;
|
|
7858
|
+
}
|
|
7859
|
+
visitExpression(visitor, context) {
|
|
7860
|
+
this.args.visitExpression(visitor, context);
|
|
7861
|
+
}
|
|
7862
|
+
isEquivalent() {
|
|
7863
|
+
return false;
|
|
7864
|
+
}
|
|
7865
|
+
isConstant() {
|
|
7866
|
+
return false;
|
|
7867
|
+
}
|
|
7868
|
+
transformInternalExpressions(transform, flags) {
|
|
7869
|
+
this.args = transformExpressionsInExpression(this.args, transform, flags);
|
|
7870
|
+
}
|
|
7871
|
+
};
|
|
7872
|
+
(() => {
|
|
7873
|
+
_g = UsesSlotIndex, _h = ConsumesVarsTrait, _j = UsesVarOffset;
|
|
7874
|
+
})();
|
|
7725
7875
|
function visitExpressionsInOp(op, visitor) {
|
|
7726
7876
|
transformExpressionsInOp(op, (expr, flags) => {
|
|
7727
7877
|
visitor(expr, flags);
|
|
@@ -7738,6 +7888,11 @@ function transformExpressionsInOp(op, transform, flags) {
|
|
|
7738
7888
|
case OpKind.Property:
|
|
7739
7889
|
op.expression = transformExpressionsInExpression(op.expression, transform, flags);
|
|
7740
7890
|
break;
|
|
7891
|
+
case OpKind.InterpolateProperty:
|
|
7892
|
+
for (let i = 0; i < op.expressions.length; i++) {
|
|
7893
|
+
op.expressions[i] = transformExpressionsInExpression(op.expressions[i], transform, flags);
|
|
7894
|
+
}
|
|
7895
|
+
break;
|
|
7741
7896
|
case OpKind.Statement:
|
|
7742
7897
|
transformExpressionsInStatement(op.statement, transform, flags);
|
|
7743
7898
|
break;
|
|
@@ -7762,6 +7917,7 @@ function transformExpressionsInOp(op, transform, flags) {
|
|
|
7762
7917
|
case OpKind.ContainerEnd:
|
|
7763
7918
|
case OpKind.Template:
|
|
7764
7919
|
case OpKind.Text:
|
|
7920
|
+
case OpKind.Pipe:
|
|
7765
7921
|
case OpKind.Advance:
|
|
7766
7922
|
break;
|
|
7767
7923
|
default:
|
|
@@ -7771,7 +7927,6 @@ function transformExpressionsInOp(op, transform, flags) {
|
|
|
7771
7927
|
function transformExpressionsInExpression(expr, transform, flags) {
|
|
7772
7928
|
if (expr instanceof ExpressionBase) {
|
|
7773
7929
|
expr.transformInternalExpressions(transform, flags);
|
|
7774
|
-
return transform(expr, flags);
|
|
7775
7930
|
} else if (expr instanceof BinaryOperatorExpr) {
|
|
7776
7931
|
expr.lhs = transformExpressionsInExpression(expr.lhs, transform, flags);
|
|
7777
7932
|
expr.rhs = transformExpressionsInExpression(expr.rhs, transform, flags);
|
|
@@ -7780,16 +7935,37 @@ function transformExpressionsInExpression(expr, transform, flags) {
|
|
|
7780
7935
|
} else if (expr instanceof ReadKeyExpr) {
|
|
7781
7936
|
expr.receiver = transformExpressionsInExpression(expr.receiver, transform, flags);
|
|
7782
7937
|
expr.index = transformExpressionsInExpression(expr.index, transform, flags);
|
|
7938
|
+
} else if (expr instanceof WritePropExpr) {
|
|
7939
|
+
expr.receiver = transformExpressionsInExpression(expr.receiver, transform, flags);
|
|
7940
|
+
expr.value = transformExpressionsInExpression(expr.value, transform, flags);
|
|
7941
|
+
} else if (expr instanceof WriteKeyExpr) {
|
|
7942
|
+
expr.receiver = transformExpressionsInExpression(expr.receiver, transform, flags);
|
|
7943
|
+
expr.index = transformExpressionsInExpression(expr.index, transform, flags);
|
|
7944
|
+
expr.value = transformExpressionsInExpression(expr.value, transform, flags);
|
|
7783
7945
|
} else if (expr instanceof InvokeFunctionExpr) {
|
|
7784
7946
|
expr.fn = transformExpressionsInExpression(expr.fn, transform, flags);
|
|
7785
7947
|
for (let i = 0; i < expr.args.length; i++) {
|
|
7786
7948
|
expr.args[i] = transformExpressionsInExpression(expr.args[i], transform, flags);
|
|
7787
7949
|
}
|
|
7950
|
+
} else if (expr instanceof LiteralArrayExpr) {
|
|
7951
|
+
for (let i = 0; i < expr.entries.length; i++) {
|
|
7952
|
+
expr.entries[i] = transformExpressionsInExpression(expr.entries[i], transform, flags);
|
|
7953
|
+
}
|
|
7954
|
+
} else if (expr instanceof LiteralMapExpr) {
|
|
7955
|
+
for (let i = 0; i < expr.entries.length; i++) {
|
|
7956
|
+
expr.entries[i].value = transformExpressionsInExpression(expr.entries[i].value, transform, flags);
|
|
7957
|
+
}
|
|
7958
|
+
} else if (expr instanceof ConditionalExpr) {
|
|
7959
|
+
expr.condition = transformExpressionsInExpression(expr.condition, transform, flags);
|
|
7960
|
+
expr.trueCase = transformExpressionsInExpression(expr.trueCase, transform, flags);
|
|
7961
|
+
if (expr.falseCase !== null) {
|
|
7962
|
+
expr.falseCase = transformExpressionsInExpression(expr.falseCase, transform, flags);
|
|
7963
|
+
}
|
|
7788
7964
|
} else if (expr instanceof ReadVarExpr || expr instanceof ExternalExpr || expr instanceof LiteralExpr) {
|
|
7789
7965
|
} else {
|
|
7790
7966
|
throw new Error(`Unhandled expression kind: ${expr.constructor.name}`);
|
|
7791
7967
|
}
|
|
7792
|
-
return expr;
|
|
7968
|
+
return transform(expr, flags);
|
|
7793
7969
|
}
|
|
7794
7970
|
function transformExpressionsInStatement(stmt, transform, flags) {
|
|
7795
7971
|
if (stmt instanceof ExpressionStatement) {
|
|
@@ -7801,7 +7977,7 @@ function transformExpressionsInStatement(stmt, transform, flags) {
|
|
|
7801
7977
|
}
|
|
7802
7978
|
}
|
|
7803
7979
|
|
|
7804
|
-
// bazel-out/
|
|
7980
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/operations.mjs
|
|
7805
7981
|
var _OpList = class {
|
|
7806
7982
|
constructor() {
|
|
7807
7983
|
this.debugListId = _OpList.nextListId++;
|
|
@@ -7931,10 +8107,12 @@ var _OpList = class {
|
|
|
7931
8107
|
op.next = null;
|
|
7932
8108
|
}
|
|
7933
8109
|
static insertBefore(op, before) {
|
|
7934
|
-
_OpList.
|
|
8110
|
+
_OpList.assertIsOwned(before);
|
|
8111
|
+
if (before.prev === null) {
|
|
8112
|
+
throw new Error(`AssertionError: illegal operation on list start`);
|
|
8113
|
+
}
|
|
7935
8114
|
_OpList.assertIsNotEnd(op);
|
|
7936
8115
|
_OpList.assertIsUnowned(op);
|
|
7937
|
-
_OpList.assertIsOwned(before);
|
|
7938
8116
|
op.debugListId = before.debugListId;
|
|
7939
8117
|
op.prev = null;
|
|
7940
8118
|
before.prev.next = op;
|
|
@@ -7965,7 +8143,7 @@ var OpList = _OpList;
|
|
|
7965
8143
|
_OpList.nextListId = 0;
|
|
7966
8144
|
})();
|
|
7967
8145
|
|
|
7968
|
-
// bazel-out/
|
|
8146
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/shared.mjs
|
|
7969
8147
|
function createStatementOp(statement) {
|
|
7970
8148
|
return __spreadValues({
|
|
7971
8149
|
kind: OpKind.Statement,
|
|
@@ -7986,7 +8164,7 @@ var NEW_OP = {
|
|
|
7986
8164
|
next: null
|
|
7987
8165
|
};
|
|
7988
8166
|
|
|
7989
|
-
// bazel-out/
|
|
8167
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/create.mjs
|
|
7990
8168
|
function createElementStartOp(tag, xref) {
|
|
7991
8169
|
return __spreadValues(__spreadValues({
|
|
7992
8170
|
kind: OpKind.ElementStart,
|
|
@@ -8030,8 +8208,15 @@ function createListenerOp(target, name, tag) {
|
|
|
8030
8208
|
handlerFnName: null
|
|
8031
8209
|
}, NEW_OP), TRAIT_USES_SLOT_INDEX);
|
|
8032
8210
|
}
|
|
8211
|
+
function createPipeOp(xref, name) {
|
|
8212
|
+
return __spreadValues(__spreadValues({
|
|
8213
|
+
kind: OpKind.Pipe,
|
|
8214
|
+
xref,
|
|
8215
|
+
name
|
|
8216
|
+
}, NEW_OP), TRAIT_CONSUMES_SLOT);
|
|
8217
|
+
}
|
|
8033
8218
|
|
|
8034
|
-
// bazel-out/
|
|
8219
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/update.mjs
|
|
8035
8220
|
function createInterpolateTextOp(xref, strings, expressions) {
|
|
8036
8221
|
return __spreadValues(__spreadValues(__spreadValues({
|
|
8037
8222
|
kind: OpKind.InterpolateText,
|
|
@@ -8048,6 +8233,15 @@ function createPropertyOp(xref, name, expression) {
|
|
|
8048
8233
|
expression
|
|
8049
8234
|
}, TRAIT_DEPENDS_ON_SLOT_CONTEXT), TRAIT_CONSUMES_VARS), NEW_OP);
|
|
8050
8235
|
}
|
|
8236
|
+
function createInterpolatePropertyOp(xref, name, strings, expressions) {
|
|
8237
|
+
return __spreadValues(__spreadValues(__spreadValues({
|
|
8238
|
+
kind: OpKind.InterpolateProperty,
|
|
8239
|
+
target: xref,
|
|
8240
|
+
name,
|
|
8241
|
+
strings,
|
|
8242
|
+
expressions
|
|
8243
|
+
}, TRAIT_DEPENDS_ON_SLOT_CONTEXT), TRAIT_CONSUMES_VARS), NEW_OP);
|
|
8244
|
+
}
|
|
8051
8245
|
function createAdvanceOp(delta) {
|
|
8052
8246
|
return __spreadValues({
|
|
8053
8247
|
kind: OpKind.Advance,
|
|
@@ -8055,7 +8249,7 @@ function createAdvanceOp(delta) {
|
|
|
8055
8249
|
}, NEW_OP);
|
|
8056
8250
|
}
|
|
8057
8251
|
|
|
8058
|
-
// bazel-out/
|
|
8252
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/const_collection.mjs
|
|
8059
8253
|
function phaseConstCollection(cpl) {
|
|
8060
8254
|
for (const [_, view] of cpl.views) {
|
|
8061
8255
|
for (const op of view.create) {
|
|
@@ -8096,7 +8290,7 @@ function serializeAttributes({ attributes, bindings, classes, i18n, projectAs, s
|
|
|
8096
8290
|
return literalArr(attrArray);
|
|
8097
8291
|
}
|
|
8098
8292
|
|
|
8099
|
-
// bazel-out/
|
|
8293
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/empty_elements.mjs
|
|
8100
8294
|
var REPLACEMENTS = /* @__PURE__ */ new Map([
|
|
8101
8295
|
[OpKind.ElementEnd, [OpKind.ElementStart, OpKind.Element]],
|
|
8102
8296
|
[OpKind.ContainerEnd, [OpKind.ContainerStart, OpKind.Container]]
|
|
@@ -8117,7 +8311,7 @@ function phaseEmptyElements(cpl) {
|
|
|
8117
8311
|
}
|
|
8118
8312
|
}
|
|
8119
8313
|
|
|
8120
|
-
// bazel-out/
|
|
8314
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_advance.mjs
|
|
8121
8315
|
function phaseGenerateAdvance(cpl) {
|
|
8122
8316
|
for (const [_, view] of cpl.views) {
|
|
8123
8317
|
const slotMap = /* @__PURE__ */ new Map();
|
|
@@ -8149,7 +8343,7 @@ function phaseGenerateAdvance(cpl) {
|
|
|
8149
8343
|
}
|
|
8150
8344
|
}
|
|
8151
8345
|
|
|
8152
|
-
// bazel-out/
|
|
8346
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/instruction.mjs
|
|
8153
8347
|
function element(slot, tag, constIndex, localRefIndex) {
|
|
8154
8348
|
return elementOrContainerBase(Identifiers.element, slot, tag, constIndex, localRefIndex);
|
|
8155
8349
|
}
|
|
@@ -8199,6 +8393,12 @@ function listener(name, handlerFn) {
|
|
|
8199
8393
|
handlerFn
|
|
8200
8394
|
]);
|
|
8201
8395
|
}
|
|
8396
|
+
function pipe(slot, name) {
|
|
8397
|
+
return call(Identifiers.pipe, [
|
|
8398
|
+
literal(slot),
|
|
8399
|
+
literal(name)
|
|
8400
|
+
]);
|
|
8401
|
+
}
|
|
8202
8402
|
function advance(delta) {
|
|
8203
8403
|
return call(Identifiers.advance, [
|
|
8204
8404
|
literal(delta)
|
|
@@ -8238,6 +8438,30 @@ function property(name, expression) {
|
|
|
8238
8438
|
expression
|
|
8239
8439
|
]);
|
|
8240
8440
|
}
|
|
8441
|
+
var PIPE_BINDINGS = [
|
|
8442
|
+
Identifiers.pipeBind1,
|
|
8443
|
+
Identifiers.pipeBind2,
|
|
8444
|
+
Identifiers.pipeBind3,
|
|
8445
|
+
Identifiers.pipeBind4
|
|
8446
|
+
];
|
|
8447
|
+
function pipeBind(slot, varOffset, args) {
|
|
8448
|
+
if (args.length < 1 || args.length > PIPE_BINDINGS.length) {
|
|
8449
|
+
throw new Error(`pipeBind() argument count out of bounds`);
|
|
8450
|
+
}
|
|
8451
|
+
const instruction = PIPE_BINDINGS[args.length - 1];
|
|
8452
|
+
return importExpr(instruction).callFn([
|
|
8453
|
+
literal(slot),
|
|
8454
|
+
literal(varOffset),
|
|
8455
|
+
...args
|
|
8456
|
+
]);
|
|
8457
|
+
}
|
|
8458
|
+
function pipeBindV(slot, varOffset, args) {
|
|
8459
|
+
return importExpr(Identifiers.pipeBindV).callFn([
|
|
8460
|
+
literal(slot),
|
|
8461
|
+
literal(varOffset),
|
|
8462
|
+
args
|
|
8463
|
+
]);
|
|
8464
|
+
}
|
|
8241
8465
|
function textInterpolate(strings, expressions) {
|
|
8242
8466
|
if (strings.length < 1 || expressions.length !== strings.length - 1) {
|
|
8243
8467
|
throw new Error(`AssertionError: expected specific shape of args for strings/expressions in interpolation`);
|
|
@@ -8252,7 +8476,29 @@ function textInterpolate(strings, expressions) {
|
|
|
8252
8476
|
}
|
|
8253
8477
|
interpolationArgs.push(literal(strings[idx]));
|
|
8254
8478
|
}
|
|
8255
|
-
return
|
|
8479
|
+
return callVariadicInstruction(TEXT_INTERPOLATE_CONFIG, [], interpolationArgs);
|
|
8480
|
+
}
|
|
8481
|
+
function propertyInterpolate(name, strings, expressions) {
|
|
8482
|
+
if (strings.length < 1 || expressions.length !== strings.length - 1) {
|
|
8483
|
+
throw new Error(`AssertionError: expected specific shape of args for strings/expressions in interpolation`);
|
|
8484
|
+
}
|
|
8485
|
+
const interpolationArgs = [];
|
|
8486
|
+
if (expressions.length === 1 && strings[0] === "" && strings[1] === "") {
|
|
8487
|
+
interpolationArgs.push(expressions[0]);
|
|
8488
|
+
} else {
|
|
8489
|
+
let idx;
|
|
8490
|
+
for (idx = 0; idx < expressions.length; idx++) {
|
|
8491
|
+
interpolationArgs.push(literal(strings[idx]), expressions[idx]);
|
|
8492
|
+
}
|
|
8493
|
+
interpolationArgs.push(literal(strings[idx]));
|
|
8494
|
+
}
|
|
8495
|
+
return callVariadicInstruction(PROPERTY_INTERPOLATE_CONFIG, [literal(name)], interpolationArgs);
|
|
8496
|
+
}
|
|
8497
|
+
function pureFunction(varOffset, fn2, args) {
|
|
8498
|
+
return callVariadicInstructionExpr(PURE_FUNCTION_CONFIG, [
|
|
8499
|
+
literal(varOffset),
|
|
8500
|
+
fn2
|
|
8501
|
+
], args);
|
|
8256
8502
|
}
|
|
8257
8503
|
function call(instruction, args) {
|
|
8258
8504
|
return createStatementOp(importExpr(instruction).callFn(args).toStmt());
|
|
@@ -8269,21 +8515,64 @@ var TEXT_INTERPOLATE_CONFIG = {
|
|
|
8269
8515
|
Identifiers.textInterpolate7,
|
|
8270
8516
|
Identifiers.textInterpolate8
|
|
8271
8517
|
],
|
|
8272
|
-
variable: Identifiers.textInterpolateV
|
|
8518
|
+
variable: Identifiers.textInterpolateV,
|
|
8519
|
+
mapping: (n) => {
|
|
8520
|
+
if (n % 2 === 0) {
|
|
8521
|
+
throw new Error(`Expected odd number of arguments`);
|
|
8522
|
+
}
|
|
8523
|
+
return (n - 1) / 2;
|
|
8524
|
+
}
|
|
8273
8525
|
};
|
|
8274
|
-
|
|
8275
|
-
|
|
8276
|
-
|
|
8526
|
+
var PROPERTY_INTERPOLATE_CONFIG = {
|
|
8527
|
+
constant: [
|
|
8528
|
+
Identifiers.propertyInterpolate,
|
|
8529
|
+
Identifiers.propertyInterpolate1,
|
|
8530
|
+
Identifiers.propertyInterpolate2,
|
|
8531
|
+
Identifiers.propertyInterpolate3,
|
|
8532
|
+
Identifiers.propertyInterpolate4,
|
|
8533
|
+
Identifiers.propertyInterpolate5,
|
|
8534
|
+
Identifiers.propertyInterpolate6,
|
|
8535
|
+
Identifiers.propertyInterpolate7,
|
|
8536
|
+
Identifiers.propertyInterpolate8
|
|
8537
|
+
],
|
|
8538
|
+
variable: Identifiers.propertyInterpolateV,
|
|
8539
|
+
mapping: (n) => {
|
|
8540
|
+
if (n % 2 === 0) {
|
|
8541
|
+
throw new Error(`Expected odd number of arguments`);
|
|
8542
|
+
}
|
|
8543
|
+
return (n - 1) / 2;
|
|
8277
8544
|
}
|
|
8278
|
-
|
|
8545
|
+
};
|
|
8546
|
+
var PURE_FUNCTION_CONFIG = {
|
|
8547
|
+
constant: [
|
|
8548
|
+
Identifiers.pureFunction0,
|
|
8549
|
+
Identifiers.pureFunction1,
|
|
8550
|
+
Identifiers.pureFunction2,
|
|
8551
|
+
Identifiers.pureFunction3,
|
|
8552
|
+
Identifiers.pureFunction4,
|
|
8553
|
+
Identifiers.pureFunction5,
|
|
8554
|
+
Identifiers.pureFunction6,
|
|
8555
|
+
Identifiers.pureFunction7,
|
|
8556
|
+
Identifiers.pureFunction8
|
|
8557
|
+
],
|
|
8558
|
+
variable: Identifiers.pureFunctionV,
|
|
8559
|
+
mapping: (n) => n
|
|
8560
|
+
};
|
|
8561
|
+
function callVariadicInstructionExpr(config, baseArgs, interpolationArgs) {
|
|
8562
|
+
const n = config.mapping(interpolationArgs.length);
|
|
8279
8563
|
if (n < config.constant.length) {
|
|
8280
|
-
return
|
|
8564
|
+
return importExpr(config.constant[n]).callFn([...baseArgs, ...interpolationArgs]);
|
|
8565
|
+
} else if (config.variable !== null) {
|
|
8566
|
+
return importExpr(config.variable).callFn([...baseArgs, literalArr(interpolationArgs)]);
|
|
8281
8567
|
} else {
|
|
8282
|
-
|
|
8568
|
+
throw new Error(`AssertionError: unable to call variadic function`);
|
|
8283
8569
|
}
|
|
8284
8570
|
}
|
|
8571
|
+
function callVariadicInstruction(config, baseArgs, interpolationArgs) {
|
|
8572
|
+
return createStatementOp(callVariadicInstructionExpr(config, baseArgs, interpolationArgs).toStmt());
|
|
8573
|
+
}
|
|
8285
8574
|
|
|
8286
|
-
// bazel-out/
|
|
8575
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/reify.mjs
|
|
8287
8576
|
function phaseReify(cpl) {
|
|
8288
8577
|
for (const [_, view] of cpl.views) {
|
|
8289
8578
|
reifyCreateOperations(view, view.create);
|
|
@@ -8319,6 +8608,9 @@ function reifyCreateOperations(view, ops) {
|
|
|
8319
8608
|
const childView = view.tpl.views.get(op.xref);
|
|
8320
8609
|
OpList.replace(op, template(op.slot, variable(childView.fnName), childView.decls, childView.vars, op.tag, op.attributes));
|
|
8321
8610
|
break;
|
|
8611
|
+
case OpKind.Pipe:
|
|
8612
|
+
OpList.replace(op, pipe(op.slot, op.name));
|
|
8613
|
+
break;
|
|
8322
8614
|
case OpKind.Listener:
|
|
8323
8615
|
const listenerFn = reifyListenerHandler(view, op.handlerFnName, op.handlerOps);
|
|
8324
8616
|
OpList.replace(op, listener(op.name, listenerFn));
|
|
@@ -8346,6 +8638,9 @@ function reifyUpdateOperations(_view, ops) {
|
|
|
8346
8638
|
case OpKind.Property:
|
|
8347
8639
|
OpList.replace(op, property(op.name, op.expression));
|
|
8348
8640
|
break;
|
|
8641
|
+
case OpKind.InterpolateProperty:
|
|
8642
|
+
OpList.replace(op, propertyInterpolate(op.name, op.strings, op.expressions));
|
|
8643
|
+
break;
|
|
8349
8644
|
case OpKind.InterpolateText:
|
|
8350
8645
|
OpList.replace(op, textInterpolate(op.strings, op.expressions));
|
|
8351
8646
|
break;
|
|
@@ -8363,6 +8658,9 @@ function reifyUpdateOperations(_view, ops) {
|
|
|
8363
8658
|
}
|
|
8364
8659
|
}
|
|
8365
8660
|
function reifyIrExpression(expr) {
|
|
8661
|
+
if (!isIrExpression(expr)) {
|
|
8662
|
+
return expr;
|
|
8663
|
+
}
|
|
8366
8664
|
switch (expr.kind) {
|
|
8367
8665
|
case ExpressionKind.NextContext:
|
|
8368
8666
|
return nextContext(expr.steps);
|
|
@@ -8384,6 +8682,17 @@ function reifyIrExpression(expr) {
|
|
|
8384
8682
|
throw new Error(`Read of unnamed variable ${expr.xref}`);
|
|
8385
8683
|
}
|
|
8386
8684
|
return variable(expr.name);
|
|
8685
|
+
case ExpressionKind.PureFunctionExpr:
|
|
8686
|
+
if (expr.fn === null) {
|
|
8687
|
+
throw new Error(`AssertionError: expected PureFunctions to have been extracted`);
|
|
8688
|
+
}
|
|
8689
|
+
return pureFunction(expr.varOffset, expr.fn, expr.args);
|
|
8690
|
+
case ExpressionKind.PureFunctionParameterExpr:
|
|
8691
|
+
throw new Error(`AssertionError: expected PureFunctionParameterExpr to have been extracted`);
|
|
8692
|
+
case ExpressionKind.PipeBinding:
|
|
8693
|
+
return pipeBind(expr.slot, expr.varOffset, expr.args);
|
|
8694
|
+
case ExpressionKind.PipeBindingVariadic:
|
|
8695
|
+
return pipeBindV(expr.slot, expr.varOffset, expr.args);
|
|
8387
8696
|
default:
|
|
8388
8697
|
throw new Error(`AssertionError: Unsupported reification of ir.Expression kind: ${ExpressionKind[expr.kind]}`);
|
|
8389
8698
|
}
|
|
@@ -8417,7 +8726,7 @@ var LookForEventVisitor = class extends RecursiveAstVisitor {
|
|
|
8417
8726
|
}
|
|
8418
8727
|
};
|
|
8419
8728
|
|
|
8420
|
-
// bazel-out/
|
|
8729
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/slot_allocation.mjs
|
|
8421
8730
|
function phaseSlotAllocation(cpl) {
|
|
8422
8731
|
const slotMap = /* @__PURE__ */ new Map();
|
|
8423
8732
|
for (const [_, view] of cpl.views) {
|
|
@@ -8445,6 +8754,9 @@ function phaseSlotAllocation(cpl) {
|
|
|
8445
8754
|
op.slot = slotMap.get(op.target);
|
|
8446
8755
|
}
|
|
8447
8756
|
visitExpressionsInOp(op, (expr) => {
|
|
8757
|
+
if (!isIrExpression(expr)) {
|
|
8758
|
+
return;
|
|
8759
|
+
}
|
|
8448
8760
|
if (!hasUsesSlotIndexTrait(expr) || expr.slot !== null) {
|
|
8449
8761
|
return;
|
|
8450
8762
|
}
|
|
@@ -8457,7 +8769,7 @@ function phaseSlotAllocation(cpl) {
|
|
|
8457
8769
|
}
|
|
8458
8770
|
}
|
|
8459
8771
|
|
|
8460
|
-
// bazel-out/
|
|
8772
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/var_counting.mjs
|
|
8461
8773
|
function phaseVarCounting(cpl) {
|
|
8462
8774
|
for (const [_, view] of cpl.views) {
|
|
8463
8775
|
let varCount = 0;
|
|
@@ -8466,6 +8778,12 @@ function phaseVarCounting(cpl) {
|
|
|
8466
8778
|
varCount += varsUsedByOp(op);
|
|
8467
8779
|
}
|
|
8468
8780
|
visitExpressionsInOp(op, (expr) => {
|
|
8781
|
+
if (!isIrExpression(expr)) {
|
|
8782
|
+
return;
|
|
8783
|
+
}
|
|
8784
|
+
if (hasUsesVarOffsetTrait(expr)) {
|
|
8785
|
+
expr.varOffset = varCount;
|
|
8786
|
+
}
|
|
8469
8787
|
if (hasConsumesVarsTrait(expr)) {
|
|
8470
8788
|
varCount += varsUsedByIrExpression(expr);
|
|
8471
8789
|
}
|
|
@@ -8489,15 +8807,26 @@ function varsUsedByOp(op) {
|
|
|
8489
8807
|
return 1;
|
|
8490
8808
|
case OpKind.InterpolateText:
|
|
8491
8809
|
return op.expressions.length;
|
|
8810
|
+
case OpKind.InterpolateProperty:
|
|
8811
|
+
return 1 + op.expressions.length;
|
|
8492
8812
|
default:
|
|
8493
8813
|
throw new Error(`Unhandled op: ${OpKind[op.kind]}`);
|
|
8494
8814
|
}
|
|
8495
8815
|
}
|
|
8496
8816
|
function varsUsedByIrExpression(expr) {
|
|
8497
|
-
|
|
8817
|
+
switch (expr.kind) {
|
|
8818
|
+
case ExpressionKind.PureFunctionExpr:
|
|
8819
|
+
return 1 + expr.args.length;
|
|
8820
|
+
case ExpressionKind.PipeBinding:
|
|
8821
|
+
return 1 + expr.args.length;
|
|
8822
|
+
case ExpressionKind.PipeBindingVariadic:
|
|
8823
|
+
return 1 + expr.numArgs;
|
|
8824
|
+
default:
|
|
8825
|
+
throw new Error(`AssertionError: unhandled ConsumesVarsTrait expression ${expr.constructor.name}`);
|
|
8826
|
+
}
|
|
8498
8827
|
}
|
|
8499
8828
|
|
|
8500
|
-
// bazel-out/
|
|
8829
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/naming.mjs
|
|
8501
8830
|
function phaseNaming(cpl) {
|
|
8502
8831
|
addNamesToView(cpl.root, cpl.componentName, { index: 0 });
|
|
8503
8832
|
}
|
|
@@ -8555,7 +8884,7 @@ function getVariableName(variable2, state) {
|
|
|
8555
8884
|
return variable2.name;
|
|
8556
8885
|
}
|
|
8557
8886
|
|
|
8558
|
-
// bazel-out/
|
|
8887
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/local_refs.mjs
|
|
8559
8888
|
function phaseLocalRefs(cpl) {
|
|
8560
8889
|
for (const view of cpl.views.values()) {
|
|
8561
8890
|
for (const op of view.create) {
|
|
@@ -8586,7 +8915,7 @@ function serializeLocalRefs(refs) {
|
|
|
8586
8915
|
return literalArr(constRefs);
|
|
8587
8916
|
}
|
|
8588
8917
|
|
|
8589
|
-
// bazel-out/
|
|
8918
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_variables.mjs
|
|
8590
8919
|
function phaseGenerateVariables(cpl) {
|
|
8591
8920
|
recursivelyProcessView(cpl.root, null);
|
|
8592
8921
|
}
|
|
@@ -8668,7 +8997,7 @@ function generateVariablesInScopeForView(view, scope) {
|
|
|
8668
8997
|
return newOps;
|
|
8669
8998
|
}
|
|
8670
8999
|
|
|
8671
|
-
// bazel-out/
|
|
9000
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_names.mjs
|
|
8672
9001
|
function phaseResolveNames(cpl) {
|
|
8673
9002
|
for (const [_, view] of cpl.views) {
|
|
8674
9003
|
processLexicalScope(view, view.create, null);
|
|
@@ -8721,7 +9050,7 @@ function processLexicalScope(view, ops, savedView) {
|
|
|
8721
9050
|
}
|
|
8722
9051
|
}
|
|
8723
9052
|
|
|
8724
|
-
// bazel-out/
|
|
9053
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_contexts.mjs
|
|
8725
9054
|
function phaseResolveContexts(cpl) {
|
|
8726
9055
|
for (const view of cpl.views.values()) {
|
|
8727
9056
|
processLexicalScope2(view, view.create);
|
|
@@ -8759,7 +9088,7 @@ function processLexicalScope2(view, ops) {
|
|
|
8759
9088
|
}
|
|
8760
9089
|
}
|
|
8761
9090
|
|
|
8762
|
-
// bazel-out/
|
|
9091
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/variable_optimization.mjs
|
|
8763
9092
|
function phaseVariableOptimization(cpl, options) {
|
|
8764
9093
|
for (const [_, view] of cpl.views) {
|
|
8765
9094
|
optimizeVariablesInOpList(view.create, options);
|
|
@@ -8870,6 +9199,9 @@ function collectOpInfo(op) {
|
|
|
8870
9199
|
let fences = Fence.None;
|
|
8871
9200
|
const variablesUsed = /* @__PURE__ */ new Set();
|
|
8872
9201
|
visitExpressionsInOp(op, (expr) => {
|
|
9202
|
+
if (!isIrExpression(expr)) {
|
|
9203
|
+
return;
|
|
9204
|
+
}
|
|
8873
9205
|
switch (expr.kind) {
|
|
8874
9206
|
case ExpressionKind.ReadVariable:
|
|
8875
9207
|
variablesUsed.add(expr.xref);
|
|
@@ -8882,6 +9214,9 @@ function collectOpInfo(op) {
|
|
|
8882
9214
|
}
|
|
8883
9215
|
function countVariableUsages(op, varUsages, varRemoteUsage) {
|
|
8884
9216
|
visitExpressionsInOp(op, (expr, flags) => {
|
|
9217
|
+
if (!isIrExpression(expr)) {
|
|
9218
|
+
return;
|
|
9219
|
+
}
|
|
8885
9220
|
if (expr.kind !== ExpressionKind.ReadVariable) {
|
|
8886
9221
|
return;
|
|
8887
9222
|
}
|
|
@@ -8897,6 +9232,9 @@ function countVariableUsages(op, varUsages, varRemoteUsage) {
|
|
|
8897
9232
|
}
|
|
8898
9233
|
function uncountVariableUsages(op, varUsages) {
|
|
8899
9234
|
visitExpressionsInOp(op, (expr) => {
|
|
9235
|
+
if (!isIrExpression(expr)) {
|
|
9236
|
+
return;
|
|
9237
|
+
}
|
|
8900
9238
|
if (expr.kind !== ExpressionKind.ReadVariable) {
|
|
8901
9239
|
return;
|
|
8902
9240
|
}
|
|
@@ -8925,6 +9263,9 @@ function tryInlineVariableInitializer(id, initializer, target, declFences) {
|
|
|
8925
9263
|
let inlined = false;
|
|
8926
9264
|
let inliningAllowed = true;
|
|
8927
9265
|
transformExpressionsInOp(target, (expr, flags) => {
|
|
9266
|
+
if (!isIrExpression(expr)) {
|
|
9267
|
+
return expr;
|
|
9268
|
+
}
|
|
8928
9269
|
if (inlined || !inliningAllowed) {
|
|
8929
9270
|
return expr;
|
|
8930
9271
|
} else if (flags & VisitorContextFlag.InChildOperation && declFences & Fence.ViewContextRead) {
|
|
@@ -8957,7 +9298,7 @@ function allowConservativeInlining(decl, target) {
|
|
|
8957
9298
|
}
|
|
8958
9299
|
}
|
|
8959
9300
|
|
|
8960
|
-
// bazel-out/
|
|
9301
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/chaining.mjs
|
|
8961
9302
|
var CHAINABLE = /* @__PURE__ */ new Set([
|
|
8962
9303
|
Identifiers.elementStart,
|
|
8963
9304
|
Identifiers.elementEnd,
|
|
@@ -9003,7 +9344,7 @@ function chainOperationsInList(opList) {
|
|
|
9003
9344
|
}
|
|
9004
9345
|
}
|
|
9005
9346
|
|
|
9006
|
-
// bazel-out/
|
|
9347
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/next_context_merging.mjs
|
|
9007
9348
|
function phaseMergeNextContext(cpl) {
|
|
9008
9349
|
for (const view of cpl.views.values()) {
|
|
9009
9350
|
for (const op of view.create) {
|
|
@@ -9023,6 +9364,9 @@ function mergeNextContextsInOps(ops) {
|
|
|
9023
9364
|
let tryToMerge = true;
|
|
9024
9365
|
for (let candidate = op.next; candidate.kind !== OpKind.ListEnd && tryToMerge; candidate = candidate.next) {
|
|
9025
9366
|
visitExpressionsInOp(candidate, (expr, flags) => {
|
|
9367
|
+
if (!isIrExpression(expr)) {
|
|
9368
|
+
return expr;
|
|
9369
|
+
}
|
|
9026
9370
|
if (!tryToMerge) {
|
|
9027
9371
|
return;
|
|
9028
9372
|
}
|
|
@@ -9045,7 +9389,7 @@ function mergeNextContextsInOps(ops) {
|
|
|
9045
9389
|
}
|
|
9046
9390
|
}
|
|
9047
9391
|
|
|
9048
|
-
// bazel-out/
|
|
9392
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/ng_container.mjs
|
|
9049
9393
|
var CONTAINER_TAG = "ng-container";
|
|
9050
9394
|
function phaseNgContainer(cpl) {
|
|
9051
9395
|
for (const [_, view] of cpl.views) {
|
|
@@ -9062,7 +9406,7 @@ function phaseNgContainer(cpl) {
|
|
|
9062
9406
|
}
|
|
9063
9407
|
}
|
|
9064
9408
|
|
|
9065
|
-
// bazel-out/
|
|
9409
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/save_restore_view.mjs
|
|
9066
9410
|
function phaseSaveRestoreView(cpl) {
|
|
9067
9411
|
for (const view of cpl.views.values()) {
|
|
9068
9412
|
if (view === cpl.root) {
|
|
@@ -9095,8 +9439,181 @@ function phaseSaveRestoreView(cpl) {
|
|
|
9095
9439
|
}
|
|
9096
9440
|
}
|
|
9097
9441
|
|
|
9098
|
-
// bazel-out/
|
|
9442
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pure_function_extraction.mjs
|
|
9443
|
+
function phasePureFunctionExtraction(cpl) {
|
|
9444
|
+
for (const view of cpl.views.values()) {
|
|
9445
|
+
for (const op of view.ops()) {
|
|
9446
|
+
visitExpressionsInOp(op, (expr) => {
|
|
9447
|
+
if (!(expr instanceof PureFunctionExpr) || expr.body === null) {
|
|
9448
|
+
return;
|
|
9449
|
+
}
|
|
9450
|
+
const constantDef = new PureFunctionConstant(expr.args.length);
|
|
9451
|
+
expr.fn = cpl.pool.getSharedConstant(constantDef, expr.body);
|
|
9452
|
+
expr.body = null;
|
|
9453
|
+
});
|
|
9454
|
+
}
|
|
9455
|
+
}
|
|
9456
|
+
}
|
|
9457
|
+
var PureFunctionConstant = class extends GenericKeyFn {
|
|
9458
|
+
constructor(numArgs) {
|
|
9459
|
+
super();
|
|
9460
|
+
this.numArgs = numArgs;
|
|
9461
|
+
}
|
|
9462
|
+
keyOf(expr) {
|
|
9463
|
+
if (expr instanceof PureFunctionParameterExpr) {
|
|
9464
|
+
return `param(${expr.index})`;
|
|
9465
|
+
} else {
|
|
9466
|
+
return super.keyOf(expr);
|
|
9467
|
+
}
|
|
9468
|
+
}
|
|
9469
|
+
toSharedConstantDeclaration(declName, keyExpr) {
|
|
9470
|
+
const fnParams = [];
|
|
9471
|
+
for (let idx = 0; idx < this.numArgs; idx++) {
|
|
9472
|
+
fnParams.push(new FnParam("_p" + idx));
|
|
9473
|
+
}
|
|
9474
|
+
const returnExpr = transformExpressionsInExpression(keyExpr, (expr) => {
|
|
9475
|
+
if (!(expr instanceof PureFunctionParameterExpr)) {
|
|
9476
|
+
return expr;
|
|
9477
|
+
}
|
|
9478
|
+
return variable("_p" + expr.index);
|
|
9479
|
+
}, VisitorContextFlag.None);
|
|
9480
|
+
return new DeclareFunctionStmt(declName, fnParams, [new ReturnStatement(returnExpr)]);
|
|
9481
|
+
}
|
|
9482
|
+
};
|
|
9483
|
+
|
|
9484
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pipe_creation.mjs
|
|
9485
|
+
function phasePipeCreation(cpl) {
|
|
9486
|
+
for (const view of cpl.views.values()) {
|
|
9487
|
+
processPipeBindingsInView(view);
|
|
9488
|
+
}
|
|
9489
|
+
}
|
|
9490
|
+
function processPipeBindingsInView(view) {
|
|
9491
|
+
for (const updateOp of view.update) {
|
|
9492
|
+
visitExpressionsInOp(updateOp, (expr, flags) => {
|
|
9493
|
+
if (!isIrExpression(expr)) {
|
|
9494
|
+
return;
|
|
9495
|
+
}
|
|
9496
|
+
if (expr.kind !== ExpressionKind.PipeBinding) {
|
|
9497
|
+
return;
|
|
9498
|
+
}
|
|
9499
|
+
if (flags & VisitorContextFlag.InChildOperation) {
|
|
9500
|
+
throw new Error(`AssertionError: pipe bindings should not appear in child expressions`);
|
|
9501
|
+
}
|
|
9502
|
+
if (!hasDependsOnSlotContextTrait(updateOp)) {
|
|
9503
|
+
throw new Error(`AssertionError: pipe binding associated with non-slot operation ${OpKind[updateOp.kind]}`);
|
|
9504
|
+
}
|
|
9505
|
+
addPipeToCreationBlock(view, updateOp.target, expr);
|
|
9506
|
+
});
|
|
9507
|
+
}
|
|
9508
|
+
}
|
|
9509
|
+
function addPipeToCreationBlock(view, afterTargetXref, binding) {
|
|
9510
|
+
for (let op = view.create.head.next; op.kind !== OpKind.ListEnd; op = op.next) {
|
|
9511
|
+
if (!hasConsumesSlotTrait(op)) {
|
|
9512
|
+
continue;
|
|
9513
|
+
}
|
|
9514
|
+
if (op.xref !== afterTargetXref) {
|
|
9515
|
+
continue;
|
|
9516
|
+
}
|
|
9517
|
+
while (op.next.kind === OpKind.Pipe) {
|
|
9518
|
+
op = op.next;
|
|
9519
|
+
}
|
|
9520
|
+
const pipe2 = createPipeOp(binding.target, binding.name);
|
|
9521
|
+
OpList.insertBefore(pipe2, op.next);
|
|
9522
|
+
return;
|
|
9523
|
+
}
|
|
9524
|
+
throw new Error(`AssertionError: unable to find insertion point for pipe ${binding.name}`);
|
|
9525
|
+
}
|
|
9526
|
+
|
|
9527
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pipe_variadic.mjs
|
|
9528
|
+
function phasePipeVariadic(cpl) {
|
|
9529
|
+
for (const view of cpl.views.values()) {
|
|
9530
|
+
for (const op of view.update) {
|
|
9531
|
+
transformExpressionsInOp(op, (expr) => {
|
|
9532
|
+
if (!(expr instanceof PipeBindingExpr)) {
|
|
9533
|
+
return expr;
|
|
9534
|
+
}
|
|
9535
|
+
if (expr.args.length <= 4) {
|
|
9536
|
+
return expr;
|
|
9537
|
+
}
|
|
9538
|
+
return new PipeBindingVariadicExpr(expr.target, expr.name, literalArr(expr.args), expr.args.length);
|
|
9539
|
+
}, VisitorContextFlag.None);
|
|
9540
|
+
}
|
|
9541
|
+
}
|
|
9542
|
+
}
|
|
9543
|
+
|
|
9544
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pure_literal_structures.mjs
|
|
9545
|
+
function phasePureLiteralStructures(cpl) {
|
|
9546
|
+
for (const view of cpl.views.values()) {
|
|
9547
|
+
for (const op of view.update) {
|
|
9548
|
+
transformExpressionsInOp(op, (expr, flags) => {
|
|
9549
|
+
if (flags & VisitorContextFlag.InChildOperation) {
|
|
9550
|
+
return expr;
|
|
9551
|
+
}
|
|
9552
|
+
if (expr instanceof LiteralArrayExpr) {
|
|
9553
|
+
return transformLiteralArray(expr);
|
|
9554
|
+
} else if (expr instanceof LiteralMapExpr) {
|
|
9555
|
+
return transformLiteralMap(expr);
|
|
9556
|
+
}
|
|
9557
|
+
return expr;
|
|
9558
|
+
}, VisitorContextFlag.None);
|
|
9559
|
+
}
|
|
9560
|
+
}
|
|
9561
|
+
}
|
|
9562
|
+
function transformLiteralArray(expr) {
|
|
9563
|
+
const derivedEntries = [];
|
|
9564
|
+
const nonConstantArgs = [];
|
|
9565
|
+
for (const entry of expr.entries) {
|
|
9566
|
+
if (entry.isConstant()) {
|
|
9567
|
+
derivedEntries.push(entry);
|
|
9568
|
+
} else {
|
|
9569
|
+
const idx = nonConstantArgs.length;
|
|
9570
|
+
nonConstantArgs.push(entry);
|
|
9571
|
+
derivedEntries.push(new PureFunctionParameterExpr(idx));
|
|
9572
|
+
}
|
|
9573
|
+
}
|
|
9574
|
+
return new PureFunctionExpr(literalArr(derivedEntries), nonConstantArgs);
|
|
9575
|
+
}
|
|
9576
|
+
function transformLiteralMap(expr) {
|
|
9577
|
+
let derivedEntries = [];
|
|
9578
|
+
const nonConstantArgs = [];
|
|
9579
|
+
for (const entry of expr.entries) {
|
|
9580
|
+
if (entry.value.isConstant()) {
|
|
9581
|
+
derivedEntries.push(entry);
|
|
9582
|
+
} else {
|
|
9583
|
+
const idx = nonConstantArgs.length;
|
|
9584
|
+
nonConstantArgs.push(entry.value);
|
|
9585
|
+
derivedEntries.push(new LiteralMapEntry(entry.key, new PureFunctionParameterExpr(idx), entry.quoted));
|
|
9586
|
+
}
|
|
9587
|
+
}
|
|
9588
|
+
return new PureFunctionExpr(literalMap(derivedEntries), nonConstantArgs);
|
|
9589
|
+
}
|
|
9590
|
+
|
|
9591
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/align_pipe_variadic_var_offset.mjs
|
|
9592
|
+
function phaseAlignPipeVariadicVarOffset(cpl) {
|
|
9593
|
+
for (const view of cpl.views.values()) {
|
|
9594
|
+
for (const op of view.update) {
|
|
9595
|
+
visitExpressionsInOp(op, (expr) => {
|
|
9596
|
+
if (!(expr instanceof PipeBindingVariadicExpr)) {
|
|
9597
|
+
return expr;
|
|
9598
|
+
}
|
|
9599
|
+
if (!(expr.args instanceof PureFunctionExpr)) {
|
|
9600
|
+
return expr;
|
|
9601
|
+
}
|
|
9602
|
+
if (expr.varOffset === null || expr.args.varOffset === null) {
|
|
9603
|
+
throw new Error(`Must run after variable counting`);
|
|
9604
|
+
}
|
|
9605
|
+
expr.varOffset = expr.args.varOffset;
|
|
9606
|
+
expr.args.varOffset = expr.varOffset + varsUsedByIrExpression(expr);
|
|
9607
|
+
});
|
|
9608
|
+
}
|
|
9609
|
+
}
|
|
9610
|
+
}
|
|
9611
|
+
|
|
9612
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/emit.mjs
|
|
9099
9613
|
function transformTemplate(cpl) {
|
|
9614
|
+
phasePipeCreation(cpl);
|
|
9615
|
+
phasePipeVariadic(cpl);
|
|
9616
|
+
phasePureLiteralStructures(cpl);
|
|
9100
9617
|
phaseGenerateVariables(cpl);
|
|
9101
9618
|
phaseSaveRestoreView(cpl);
|
|
9102
9619
|
phaseResolveNames(cpl);
|
|
@@ -9111,6 +9628,8 @@ function transformTemplate(cpl) {
|
|
|
9111
9628
|
phaseMergeNextContext(cpl);
|
|
9112
9629
|
phaseNgContainer(cpl);
|
|
9113
9630
|
phaseEmptyElements(cpl);
|
|
9631
|
+
phasePureFunctionExtraction(cpl);
|
|
9632
|
+
phaseAlignPipeVariadicVarOffset(cpl);
|
|
9114
9633
|
phaseReify(cpl);
|
|
9115
9634
|
phaseChaining(cpl);
|
|
9116
9635
|
}
|
|
@@ -9172,10 +9691,11 @@ function maybeGenerateRfBlock(flag, statements) {
|
|
|
9172
9691
|
];
|
|
9173
9692
|
}
|
|
9174
9693
|
|
|
9175
|
-
// bazel-out/
|
|
9694
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/compilation.mjs
|
|
9176
9695
|
var ComponentCompilation = class {
|
|
9177
|
-
constructor(componentName) {
|
|
9696
|
+
constructor(componentName, pool) {
|
|
9178
9697
|
this.componentName = componentName;
|
|
9698
|
+
this.pool = pool;
|
|
9179
9699
|
this.nextXrefId = 0;
|
|
9180
9700
|
this.views = /* @__PURE__ */ new Map();
|
|
9181
9701
|
this.consts = [];
|
|
@@ -9229,7 +9749,7 @@ var ViewCompilation = class {
|
|
|
9229
9749
|
}
|
|
9230
9750
|
};
|
|
9231
9751
|
|
|
9232
|
-
// bazel-out/
|
|
9752
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/conversion.mjs
|
|
9233
9753
|
var BINARY_OPERATORS = /* @__PURE__ */ new Map([
|
|
9234
9754
|
["&&", BinaryOperator.And],
|
|
9235
9755
|
[">", BinaryOperator.Bigger],
|
|
@@ -9250,9 +9770,9 @@ var BINARY_OPERATORS = /* @__PURE__ */ new Map([
|
|
|
9250
9770
|
["+", BinaryOperator.Plus]
|
|
9251
9771
|
]);
|
|
9252
9772
|
|
|
9253
|
-
// bazel-out/
|
|
9254
|
-
function ingest(componentName, template2) {
|
|
9255
|
-
const cpl = new ComponentCompilation(componentName);
|
|
9773
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/ingest.mjs
|
|
9774
|
+
function ingest(componentName, template2, constantPool) {
|
|
9775
|
+
const cpl = new ComponentCompilation(componentName, constantPool);
|
|
9256
9776
|
ingestNodes(cpl.root, template2);
|
|
9257
9777
|
return cpl;
|
|
9258
9778
|
}
|
|
@@ -9322,6 +9842,10 @@ function convertAst(ast, cpl) {
|
|
|
9322
9842
|
} else {
|
|
9323
9843
|
return new ReadPropExpr(convertAst(ast.receiver, cpl), ast.name);
|
|
9324
9844
|
}
|
|
9845
|
+
} else if (ast instanceof PropertyWrite) {
|
|
9846
|
+
return new WritePropExpr(convertAst(ast.receiver, cpl), ast.name, convertAst(ast.value, cpl));
|
|
9847
|
+
} else if (ast instanceof KeyedWrite) {
|
|
9848
|
+
return new WriteKeyExpr(convertAst(ast.receiver, cpl), convertAst(ast.key, cpl), convertAst(ast.value, cpl));
|
|
9325
9849
|
} else if (ast instanceof Call) {
|
|
9326
9850
|
if (ast.receiver instanceof ImplicitReceiver) {
|
|
9327
9851
|
throw new Error(`Unexpected ImplicitReceiver`);
|
|
@@ -9342,6 +9866,21 @@ function convertAst(ast, cpl) {
|
|
|
9342
9866
|
return new ReadKeyExpr(convertAst(ast.receiver, cpl), convertAst(ast.key, cpl));
|
|
9343
9867
|
} else if (ast instanceof Chain) {
|
|
9344
9868
|
throw new Error(`AssertionError: Chain in unknown context`);
|
|
9869
|
+
} else if (ast instanceof LiteralMap) {
|
|
9870
|
+
const entries = ast.keys.map((key, idx) => {
|
|
9871
|
+
const value = ast.values[idx];
|
|
9872
|
+
return new LiteralMapEntry(key.key, convertAst(value, cpl), key.quoted);
|
|
9873
|
+
});
|
|
9874
|
+
return new LiteralMapExpr(entries);
|
|
9875
|
+
} else if (ast instanceof LiteralArray) {
|
|
9876
|
+
return new LiteralArrayExpr(ast.expressions.map((expr) => convertAst(expr, cpl)));
|
|
9877
|
+
} else if (ast instanceof Conditional) {
|
|
9878
|
+
return new ConditionalExpr(convertAst(ast.condition, cpl), convertAst(ast.trueExp, cpl), convertAst(ast.falseExp, cpl));
|
|
9879
|
+
} else if (ast instanceof BindingPipe) {
|
|
9880
|
+
return new PipeBindingExpr(cpl.allocateXrefId(), ast.name, [
|
|
9881
|
+
convertAst(ast.exp, cpl),
|
|
9882
|
+
...ast.args.map((arg) => convertAst(arg, cpl))
|
|
9883
|
+
]);
|
|
9345
9884
|
} else {
|
|
9346
9885
|
throw new Error(`Unhandled expression type: ${ast.constructor.name}`);
|
|
9347
9886
|
}
|
|
@@ -9365,15 +9904,15 @@ function ingestAttributes(op, element2) {
|
|
|
9365
9904
|
}
|
|
9366
9905
|
function ingestBindings(view, op, element2) {
|
|
9367
9906
|
if (element2 instanceof Template) {
|
|
9368
|
-
for (const
|
|
9369
|
-
if (!(
|
|
9907
|
+
for (const attr of [...element2.templateAttrs, ...element2.inputs]) {
|
|
9908
|
+
if (!(attr instanceof BoundAttribute)) {
|
|
9370
9909
|
continue;
|
|
9371
9910
|
}
|
|
9372
|
-
view
|
|
9911
|
+
ingestPropertyBinding(view, op.xref, attr.name, attr.value);
|
|
9373
9912
|
}
|
|
9374
9913
|
} else {
|
|
9375
9914
|
for (const input of element2.inputs) {
|
|
9376
|
-
view
|
|
9915
|
+
ingestPropertyBinding(view, op.xref, input.name, input.value);
|
|
9377
9916
|
}
|
|
9378
9917
|
for (const output of element2.outputs) {
|
|
9379
9918
|
const listenerOp = createListenerOp(op.xref, output.name, op.tag);
|
|
@@ -9401,6 +9940,16 @@ function ingestBindings(view, op, element2) {
|
|
|
9401
9940
|
}
|
|
9402
9941
|
}
|
|
9403
9942
|
}
|
|
9943
|
+
function ingestPropertyBinding(view, xref, name, value) {
|
|
9944
|
+
if (value instanceof ASTWithSource) {
|
|
9945
|
+
value = value.ast;
|
|
9946
|
+
}
|
|
9947
|
+
if (value instanceof Interpolation) {
|
|
9948
|
+
view.update.push(createInterpolatePropertyOp(xref, name, value.strings, value.expressions.map((expr) => convertAst(expr, view.tpl))));
|
|
9949
|
+
} else {
|
|
9950
|
+
view.update.push(createPropertyOp(xref, name, convertAst(value, view.tpl)));
|
|
9951
|
+
}
|
|
9952
|
+
}
|
|
9404
9953
|
function ingestReferences(op, element2) {
|
|
9405
9954
|
assertIsArray(op.localRefs);
|
|
9406
9955
|
for (const { name, value } of element2.references) {
|
|
@@ -9416,10 +9965,10 @@ function assertIsArray(value) {
|
|
|
9416
9965
|
}
|
|
9417
9966
|
}
|
|
9418
9967
|
|
|
9419
|
-
// bazel-out/
|
|
9968
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/switch/index.mjs
|
|
9420
9969
|
var USE_TEMPLATE_PIPELINE = false;
|
|
9421
9970
|
|
|
9422
|
-
// bazel-out/
|
|
9971
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/style_parser.mjs
|
|
9423
9972
|
function parse(value) {
|
|
9424
9973
|
const styles = [];
|
|
9425
9974
|
let i = 0;
|
|
@@ -9480,7 +10029,7 @@ function hyphenate(value) {
|
|
|
9480
10029
|
}).toLowerCase();
|
|
9481
10030
|
}
|
|
9482
10031
|
|
|
9483
|
-
// bazel-out/
|
|
10032
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/styling_builder.mjs
|
|
9484
10033
|
var IMPORTANT_FLAG = "!important";
|
|
9485
10034
|
var MIN_STYLING_BINDING_SLOTS_REQUIRED = 2;
|
|
9486
10035
|
var StylingBuilder = class {
|
|
@@ -9813,7 +10362,7 @@ function isEmptyExpression(ast) {
|
|
|
9813
10362
|
return ast instanceof EmptyExpr;
|
|
9814
10363
|
}
|
|
9815
10364
|
|
|
9816
|
-
// bazel-out/
|
|
10365
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/expression_parser/lexer.mjs
|
|
9817
10366
|
var TokenType;
|
|
9818
10367
|
(function(TokenType2) {
|
|
9819
10368
|
TokenType2[TokenType2["Character"] = 0] = "Character";
|
|
@@ -10174,7 +10723,7 @@ function parseIntAutoRadix(text2) {
|
|
|
10174
10723
|
return result;
|
|
10175
10724
|
}
|
|
10176
10725
|
|
|
10177
|
-
// bazel-out/
|
|
10726
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/expression_parser/parser.mjs
|
|
10178
10727
|
var SplitInterpolation = class {
|
|
10179
10728
|
constructor(strings, expressions, offsets) {
|
|
10180
10729
|
this.strings = strings;
|
|
@@ -11068,7 +11617,7 @@ function getIndexMapForOriginalTemplate(interpolatedTokens) {
|
|
|
11068
11617
|
return offsetMap;
|
|
11069
11618
|
}
|
|
11070
11619
|
|
|
11071
|
-
// bazel-out/
|
|
11620
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/ast.mjs
|
|
11072
11621
|
var NodeWithI18n = class {
|
|
11073
11622
|
constructor(sourceSpan, i18n) {
|
|
11074
11623
|
this.sourceSpan = sourceSpan;
|
|
@@ -11156,11 +11705,11 @@ function visitAll2(visitor, nodes, context = null) {
|
|
|
11156
11705
|
return result;
|
|
11157
11706
|
}
|
|
11158
11707
|
|
|
11159
|
-
// bazel-out/
|
|
11708
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/schema/element_schema_registry.mjs
|
|
11160
11709
|
var ElementSchemaRegistry = class {
|
|
11161
11710
|
};
|
|
11162
11711
|
|
|
11163
|
-
// bazel-out/
|
|
11712
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/schema/dom_element_schema_registry.mjs
|
|
11164
11713
|
var BOOLEAN = "boolean";
|
|
11165
11714
|
var NUMBER = "number";
|
|
11166
11715
|
var STRING = "string";
|
|
@@ -11513,7 +12062,7 @@ function _isPixelDimensionStyle(prop) {
|
|
|
11513
12062
|
}
|
|
11514
12063
|
}
|
|
11515
12064
|
|
|
11516
|
-
// bazel-out/
|
|
12065
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/html_tags.mjs
|
|
11517
12066
|
var HtmlTagDefinition = class {
|
|
11518
12067
|
constructor({ closedByChildren, implicitNamespacePrefix, contentType = TagContentType.PARSABLE_DATA, closedByParent = false, isVoid = false, ignoreFirstLf = false, preventNamespaceInheritance = false, canSelfClose = false } = {}) {
|
|
11519
12068
|
this.closedByChildren = {};
|
|
@@ -11543,7 +12092,7 @@ var HtmlTagDefinition = class {
|
|
|
11543
12092
|
var DEFAULT_TAG_DEFINITION;
|
|
11544
12093
|
var TAG_DEFINITIONS;
|
|
11545
12094
|
function getHtmlTagDefinition(tagName) {
|
|
11546
|
-
var _a2,
|
|
12095
|
+
var _a2, _b2;
|
|
11547
12096
|
if (!TAG_DEFINITIONS) {
|
|
11548
12097
|
DEFAULT_TAG_DEFINITION = new HtmlTagDefinition({ canSelfClose: true });
|
|
11549
12098
|
TAG_DEFINITIONS = {
|
|
@@ -11628,10 +12177,10 @@ function getHtmlTagDefinition(tagName) {
|
|
|
11628
12177
|
}
|
|
11629
12178
|
});
|
|
11630
12179
|
}
|
|
11631
|
-
return (
|
|
12180
|
+
return (_b2 = (_a2 = TAG_DEFINITIONS[tagName]) != null ? _a2 : TAG_DEFINITIONS[tagName.toLowerCase()]) != null ? _b2 : DEFAULT_TAG_DEFINITION;
|
|
11632
12181
|
}
|
|
11633
12182
|
|
|
11634
|
-
// bazel-out/
|
|
12183
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/entities.mjs
|
|
11635
12184
|
var NAMED_ENTITIES = {
|
|
11636
12185
|
"AElig": "\xC6",
|
|
11637
12186
|
"AMP": "&",
|
|
@@ -13762,7 +14311,7 @@ var NAMED_ENTITIES = {
|
|
|
13762
14311
|
var NGSP_UNICODE = "\uE500";
|
|
13763
14312
|
NAMED_ENTITIES["ngsp"] = NGSP_UNICODE;
|
|
13764
14313
|
|
|
13765
|
-
// bazel-out/
|
|
14314
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/lexer.mjs
|
|
13766
14315
|
var TokenError = class extends ParseError {
|
|
13767
14316
|
constructor(errorMsg, tokenType, span) {
|
|
13768
14317
|
super(span, errorMsg);
|
|
@@ -14597,7 +15146,7 @@ var CursorError = class {
|
|
|
14597
15146
|
}
|
|
14598
15147
|
};
|
|
14599
15148
|
|
|
14600
|
-
// bazel-out/
|
|
15149
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/parser.mjs
|
|
14601
15150
|
var TreeError = class extends ParseError {
|
|
14602
15151
|
static create(elementName, span, msg) {
|
|
14603
15152
|
return new TreeError(elementName, span, msg);
|
|
@@ -14924,7 +15473,7 @@ function decodeEntity(match, entity) {
|
|
|
14924
15473
|
return match;
|
|
14925
15474
|
}
|
|
14926
15475
|
|
|
14927
|
-
// bazel-out/
|
|
15476
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/html_parser.mjs
|
|
14928
15477
|
var HtmlParser = class extends Parser2 {
|
|
14929
15478
|
constructor() {
|
|
14930
15479
|
super(getHtmlTagDefinition);
|
|
@@ -14934,7 +15483,7 @@ var HtmlParser = class extends Parser2 {
|
|
|
14934
15483
|
}
|
|
14935
15484
|
};
|
|
14936
15485
|
|
|
14937
|
-
// bazel-out/
|
|
15486
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/html_whitespaces.mjs
|
|
14938
15487
|
var PRESERVE_WS_ATTR_NAME = "ngPreserveWhitespaces";
|
|
14939
15488
|
var SKIP_WS_TRIM_TAGS = /* @__PURE__ */ new Set(["pre", "template", "textarea", "script", "style"]);
|
|
14940
15489
|
var WS_CHARS = " \f\n\r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF";
|
|
@@ -14994,7 +15543,7 @@ function visitAllWithSiblings(visitor, nodes) {
|
|
|
14994
15543
|
return result;
|
|
14995
15544
|
}
|
|
14996
15545
|
|
|
14997
|
-
// bazel-out/
|
|
15546
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/map_util.mjs
|
|
14998
15547
|
function mapLiteral(obj, quoted = false) {
|
|
14999
15548
|
return literalMap(Object.keys(obj).map((key) => ({
|
|
15000
15549
|
key,
|
|
@@ -15003,7 +15552,7 @@ function mapLiteral(obj, quoted = false) {
|
|
|
15003
15552
|
})));
|
|
15004
15553
|
}
|
|
15005
15554
|
|
|
15006
|
-
// bazel-out/
|
|
15555
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/schema/trusted_types_sinks.mjs
|
|
15007
15556
|
var TRUSTED_TYPES_SINKS = /* @__PURE__ */ new Set([
|
|
15008
15557
|
"iframe|srcdoc",
|
|
15009
15558
|
"*|innerhtml",
|
|
@@ -15018,7 +15567,7 @@ function isTrustedTypesSink(tagName, propName) {
|
|
|
15018
15567
|
return TRUSTED_TYPES_SINKS.has(tagName + "|" + propName) || TRUSTED_TYPES_SINKS.has("*|" + propName);
|
|
15019
15568
|
}
|
|
15020
15569
|
|
|
15021
|
-
// bazel-out/
|
|
15570
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template_parser/binding_parser.mjs
|
|
15022
15571
|
var PROPERTY_PARTS_SEPARATOR = ".";
|
|
15023
15572
|
var ATTRIBUTE_PREFIX = "attr";
|
|
15024
15573
|
var CLASS_PREFIX = "class";
|
|
@@ -15338,7 +15887,7 @@ function moveParseSourceSpan(sourceSpan, absoluteSpan) {
|
|
|
15338
15887
|
return new ParseSourceSpan(sourceSpan.start.moveBy(startDiff), sourceSpan.end.moveBy(endDiff), sourceSpan.fullStart.moveBy(startDiff), sourceSpan.details);
|
|
15339
15888
|
}
|
|
15340
15889
|
|
|
15341
|
-
// bazel-out/
|
|
15890
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/style_url_resolver.mjs
|
|
15342
15891
|
function isStyleUrlResolvable(url) {
|
|
15343
15892
|
if (url == null || url.length === 0 || url[0] == "/")
|
|
15344
15893
|
return false;
|
|
@@ -15347,7 +15896,7 @@ function isStyleUrlResolvable(url) {
|
|
|
15347
15896
|
}
|
|
15348
15897
|
var URL_WITH_SCHEMA_REGEXP = /^([^:/?#]+):/;
|
|
15349
15898
|
|
|
15350
|
-
// bazel-out/
|
|
15899
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template_parser/template_preparser.mjs
|
|
15351
15900
|
var NG_CONTENT_SELECT_ATTR = "select";
|
|
15352
15901
|
var LINK_ELEMENT = "link";
|
|
15353
15902
|
var LINK_STYLE_REL_ATTR = "rel";
|
|
@@ -15417,7 +15966,7 @@ function normalizeNgContentSelect(selectAttr) {
|
|
|
15417
15966
|
return selectAttr;
|
|
15418
15967
|
}
|
|
15419
15968
|
|
|
15420
|
-
// bazel-out/
|
|
15969
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_template_transform.mjs
|
|
15421
15970
|
var BIND_NAME_REGEXP = /^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/;
|
|
15422
15971
|
var KW_BIND_IDX = 1;
|
|
15423
15972
|
var KW_LET_IDX = 2;
|
|
@@ -15765,7 +16314,7 @@ function textContents(node) {
|
|
|
15765
16314
|
}
|
|
15766
16315
|
}
|
|
15767
16316
|
|
|
15768
|
-
// bazel-out/
|
|
16317
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/i18n/context.mjs
|
|
15769
16318
|
var TagType;
|
|
15770
16319
|
(function(TagType2) {
|
|
15771
16320
|
TagType2[TagType2["ELEMENT"] = 0] = "ELEMENT";
|
|
@@ -15900,7 +16449,7 @@ function serializePlaceholderValue(value) {
|
|
|
15900
16449
|
}
|
|
15901
16450
|
}
|
|
15902
16451
|
|
|
15903
|
-
// bazel-out/
|
|
16452
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/i18n/icu_serializer.mjs
|
|
15904
16453
|
var IcuSerializerVisitor = class {
|
|
15905
16454
|
visitText(text2) {
|
|
15906
16455
|
return text2.value;
|
|
@@ -15931,7 +16480,7 @@ function serializeIcuNode(icu) {
|
|
|
15931
16480
|
return icu.visit(serializer);
|
|
15932
16481
|
}
|
|
15933
16482
|
|
|
15934
|
-
// bazel-out/
|
|
16483
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/serializers/placeholder.mjs
|
|
15935
16484
|
var TAG_TO_PLACEHOLDER_NAMES = {
|
|
15936
16485
|
"A": "LINK",
|
|
15937
16486
|
"B": "BOLD_TEXT",
|
|
@@ -16025,7 +16574,7 @@ var PlaceholderRegistry = class {
|
|
|
16025
16574
|
}
|
|
16026
16575
|
};
|
|
16027
16576
|
|
|
16028
|
-
// bazel-out/
|
|
16577
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/i18n_parser.mjs
|
|
16029
16578
|
var _expParser = new Parser(new Lexer());
|
|
16030
16579
|
function createI18nMessageFactory(interpolationConfig) {
|
|
16031
16580
|
const visitor = new _I18nVisitor(_expParser, interpolationConfig);
|
|
@@ -16180,14 +16729,14 @@ function extractPlaceholderName(input) {
|
|
|
16180
16729
|
return input.split(_CUSTOM_PH_EXP)[2];
|
|
16181
16730
|
}
|
|
16182
16731
|
|
|
16183
|
-
// bazel-out/
|
|
16732
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/parse_util.mjs
|
|
16184
16733
|
var I18nError = class extends ParseError {
|
|
16185
16734
|
constructor(span, msg) {
|
|
16186
16735
|
super(span, msg);
|
|
16187
16736
|
}
|
|
16188
16737
|
};
|
|
16189
16738
|
|
|
16190
|
-
// bazel-out/
|
|
16739
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/i18n/meta.mjs
|
|
16191
16740
|
var setI18nRefs = (htmlNode, i18nNode) => {
|
|
16192
16741
|
if (htmlNode instanceof NodeWithI18n) {
|
|
16193
16742
|
if (i18nNode instanceof IcuPlaceholder && htmlNode.i18n instanceof Message) {
|
|
@@ -16336,7 +16885,7 @@ function i18nMetaToJSDoc(meta) {
|
|
|
16336
16885
|
return jsDocComment(tags);
|
|
16337
16886
|
}
|
|
16338
16887
|
|
|
16339
|
-
// bazel-out/
|
|
16888
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/i18n/get_msg_utils.mjs
|
|
16340
16889
|
var GOOG_GET_MSG = "goog.getMsg";
|
|
16341
16890
|
function createGoogleGetMsgStatements(variable2, message, closureVar, placeholderValues) {
|
|
16342
16891
|
const messageString = serializeI18nMessageForGetMsg(message);
|
|
@@ -16384,7 +16933,7 @@ function serializeI18nMessageForGetMsg(message) {
|
|
|
16384
16933
|
return message.nodes.map((node) => node.visit(serializerVisitor2, null)).join("");
|
|
16385
16934
|
}
|
|
16386
16935
|
|
|
16387
|
-
// bazel-out/
|
|
16936
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/i18n/localize_utils.mjs
|
|
16388
16937
|
function createLocalizeStatements(variable2, message, params) {
|
|
16389
16938
|
const { messageParts, placeHolders } = serializeI18nMessageForLocalize(message);
|
|
16390
16939
|
const sourceSpan = getSourceSpan(message);
|
|
@@ -16413,11 +16962,11 @@ var LocalizeSerializerVisitor = class {
|
|
|
16413
16962
|
this.pieces.push(new LiteralPiece(serializeIcuNode(icu), icu.sourceSpan));
|
|
16414
16963
|
}
|
|
16415
16964
|
visitTagPlaceholder(ph) {
|
|
16416
|
-
var _a2,
|
|
16965
|
+
var _a2, _b2;
|
|
16417
16966
|
this.pieces.push(this.createPlaceholderPiece(ph.startName, (_a2 = ph.startSourceSpan) != null ? _a2 : ph.sourceSpan));
|
|
16418
16967
|
if (!ph.isVoid) {
|
|
16419
16968
|
ph.children.forEach((child) => child.visit(this));
|
|
16420
|
-
this.pieces.push(this.createPlaceholderPiece(ph.closeName, (
|
|
16969
|
+
this.pieces.push(this.createPlaceholderPiece(ph.closeName, (_b2 = ph.endSourceSpan) != null ? _b2 : ph.sourceSpan));
|
|
16421
16970
|
}
|
|
16422
16971
|
}
|
|
16423
16972
|
visitPlaceholder(ph) {
|
|
@@ -16467,7 +17016,7 @@ function createEmptyMessagePart(location) {
|
|
|
16467
17016
|
return new LiteralPiece("", new ParseSourceSpan(location, location));
|
|
16468
17017
|
}
|
|
16469
17018
|
|
|
16470
|
-
// bazel-out/
|
|
17019
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/template.mjs
|
|
16471
17020
|
var NG_CONTENT_SELECT_ATTR2 = "select";
|
|
16472
17021
|
var NG_PROJECT_AS_ATTR_NAME = "ngProjectAs";
|
|
16473
17022
|
var EVENT_BINDING_SCOPE_GLOBALS = /* @__PURE__ */ new Set(["$event"]);
|
|
@@ -16550,11 +17099,11 @@ var TemplateDefinitionBuilder = class {
|
|
|
16550
17099
|
this._ngContentReservedSlots = [];
|
|
16551
17100
|
this._ngContentSelectorsOffset = 0;
|
|
16552
17101
|
this._implicitReceiverExpr = null;
|
|
16553
|
-
this.visitReference =
|
|
16554
|
-
this.visitVariable =
|
|
16555
|
-
this.visitTextAttribute =
|
|
16556
|
-
this.visitBoundAttribute =
|
|
16557
|
-
this.visitBoundEvent =
|
|
17102
|
+
this.visitReference = invalid;
|
|
17103
|
+
this.visitVariable = invalid;
|
|
17104
|
+
this.visitTextAttribute = invalid;
|
|
17105
|
+
this.visitBoundAttribute = invalid;
|
|
17106
|
+
this.visitBoundEvent = invalid;
|
|
16558
17107
|
this._bindingScope = parentBindingScope.nestedScope(level);
|
|
16559
17108
|
this.fileBasedI18nSuffix = relativeContextFilePath.replace(/[^A-Za-z0-9]/g, "_") + "_";
|
|
16560
17109
|
this._valueConverter = new ValueConverter(constantPool, () => this.allocateDataSlot(), (numSlots) => this.allocatePureFunctionSlots(numSlots), (name, localName, slot, value) => {
|
|
@@ -16808,7 +17357,7 @@ var TemplateDefinitionBuilder = class {
|
|
|
16808
17357
|
}
|
|
16809
17358
|
}
|
|
16810
17359
|
visitElement(element2) {
|
|
16811
|
-
var _a2,
|
|
17360
|
+
var _a2, _b2;
|
|
16812
17361
|
const elementIndex = this.allocateDataSlot();
|
|
16813
17362
|
const stylingBuilder = new StylingBuilder(null);
|
|
16814
17363
|
let isNonBindableMode = false;
|
|
@@ -16966,7 +17515,7 @@ var TemplateDefinitionBuilder = class {
|
|
|
16966
17515
|
this.i18n.appendElement(element2.i18n, elementIndex, true);
|
|
16967
17516
|
}
|
|
16968
17517
|
if (!createSelfClosingInstruction) {
|
|
16969
|
-
const span = (
|
|
17518
|
+
const span = (_b2 = element2.endSourceSpan) != null ? _b2 : element2.sourceSpan;
|
|
16970
17519
|
if (isI18nRootElement) {
|
|
16971
17520
|
this.i18nEnd(span, createSelfClosingI18nInstruction);
|
|
16972
17521
|
}
|
|
@@ -17295,26 +17844,26 @@ var ValueConverter = class extends AstMemoryEfficientTransformer {
|
|
|
17295
17844
|
this.definePipe = definePipe;
|
|
17296
17845
|
this._pipeBindExprs = [];
|
|
17297
17846
|
}
|
|
17298
|
-
visitPipe(
|
|
17847
|
+
visitPipe(pipe2, context) {
|
|
17299
17848
|
const slot = this.allocateSlot();
|
|
17300
17849
|
const slotPseudoLocal = `PIPE:${slot}`;
|
|
17301
|
-
const pureFunctionSlot = this.allocatePureFunctionSlots(2 +
|
|
17302
|
-
const target = new PropertyRead(
|
|
17303
|
-
const { identifier, isVarLength } = pipeBindingCallInfo(
|
|
17304
|
-
this.definePipe(
|
|
17305
|
-
const args = [
|
|
17306
|
-
const convertedArgs = isVarLength ? this.visitAll([new LiteralArray(
|
|
17307
|
-
const pipeBindExpr = new Call(
|
|
17308
|
-
new LiteralPrimitive(
|
|
17309
|
-
new LiteralPrimitive(
|
|
17850
|
+
const pureFunctionSlot = this.allocatePureFunctionSlots(2 + pipe2.args.length);
|
|
17851
|
+
const target = new PropertyRead(pipe2.span, pipe2.sourceSpan, pipe2.nameSpan, new ImplicitReceiver(pipe2.span, pipe2.sourceSpan), slotPseudoLocal);
|
|
17852
|
+
const { identifier, isVarLength } = pipeBindingCallInfo(pipe2.args);
|
|
17853
|
+
this.definePipe(pipe2.name, slotPseudoLocal, slot, importExpr(identifier));
|
|
17854
|
+
const args = [pipe2.exp, ...pipe2.args];
|
|
17855
|
+
const convertedArgs = isVarLength ? this.visitAll([new LiteralArray(pipe2.span, pipe2.sourceSpan, args)]) : this.visitAll(args);
|
|
17856
|
+
const pipeBindExpr = new Call(pipe2.span, pipe2.sourceSpan, target, [
|
|
17857
|
+
new LiteralPrimitive(pipe2.span, pipe2.sourceSpan, slot),
|
|
17858
|
+
new LiteralPrimitive(pipe2.span, pipe2.sourceSpan, pureFunctionSlot),
|
|
17310
17859
|
...convertedArgs
|
|
17311
17860
|
], null);
|
|
17312
17861
|
this._pipeBindExprs.push(pipeBindExpr);
|
|
17313
17862
|
return pipeBindExpr;
|
|
17314
17863
|
}
|
|
17315
17864
|
updatePipeSlotOffsets(bindingSlots) {
|
|
17316
|
-
this._pipeBindExprs.forEach((
|
|
17317
|
-
const slotOffset =
|
|
17865
|
+
this._pipeBindExprs.forEach((pipe2) => {
|
|
17866
|
+
const slotOffset = pipe2.args[1];
|
|
17318
17867
|
slotOffset.value += bindingSlots;
|
|
17319
17868
|
});
|
|
17320
17869
|
}
|
|
@@ -17769,7 +18318,7 @@ function createClosureModeGuard() {
|
|
|
17769
18318
|
return typeofExpr(variable(NG_I18N_CLOSURE_MODE)).notIdentical(literal("undefined", STRING_TYPE)).and(variable(NG_I18N_CLOSURE_MODE));
|
|
17770
18319
|
}
|
|
17771
18320
|
|
|
17772
|
-
// bazel-out/
|
|
18321
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/compiler.mjs
|
|
17773
18322
|
var ATTR_REGEX = /attr\.([^\]]+)/;
|
|
17774
18323
|
var COMPONENT_VARIABLE = "%COMP%";
|
|
17775
18324
|
var HOST_ATTR = `_nghost-${COMPONENT_VARIABLE}`;
|
|
@@ -17883,7 +18432,7 @@ function compileComponentFromMetadata(meta, constantPool, bindingParser) {
|
|
|
17883
18432
|
}
|
|
17884
18433
|
definitionMap.set("template", templateFunctionExpression);
|
|
17885
18434
|
} else {
|
|
17886
|
-
const tpl = ingest(meta.name, meta.template.nodes);
|
|
18435
|
+
const tpl = ingest(meta.name, meta.template.nodes, constantPool);
|
|
17887
18436
|
transformTemplate(tpl);
|
|
17888
18437
|
const templateFn = emitTemplateFn(tpl, constantPool);
|
|
17889
18438
|
definitionMap.set("decls", literal(tpl.root.decls));
|
|
@@ -18325,11 +18874,11 @@ function createHostDirectivesMappingArray(mapping) {
|
|
|
18325
18874
|
return elements.length > 0 ? literalArr(elements) : null;
|
|
18326
18875
|
}
|
|
18327
18876
|
|
|
18328
|
-
// bazel-out/
|
|
18877
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/resource_loader.mjs
|
|
18329
18878
|
var ResourceLoader = class {
|
|
18330
18879
|
};
|
|
18331
18880
|
|
|
18332
|
-
// bazel-out/
|
|
18881
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/jit_compiler_facade.mjs
|
|
18333
18882
|
var CompilerFacadeImpl = class {
|
|
18334
18883
|
constructor(jitEvaluator = new JitEvaluator()) {
|
|
18335
18884
|
this.jitEvaluator = jitEvaluator;
|
|
@@ -18513,15 +19062,15 @@ function convertToR3QueryMetadata(facade) {
|
|
|
18513
19062
|
});
|
|
18514
19063
|
}
|
|
18515
19064
|
function convertQueryDeclarationToMetadata(declaration) {
|
|
18516
|
-
var _a2,
|
|
19065
|
+
var _a2, _b2, _c2, _d2;
|
|
18517
19066
|
return {
|
|
18518
19067
|
propertyName: declaration.propertyName,
|
|
18519
19068
|
first: (_a2 = declaration.first) != null ? _a2 : false,
|
|
18520
19069
|
predicate: convertQueryPredicate(declaration.predicate),
|
|
18521
|
-
descendants: (
|
|
19070
|
+
descendants: (_b2 = declaration.descendants) != null ? _b2 : false,
|
|
18522
19071
|
read: declaration.read ? new WrappedNodeExpr(declaration.read) : null,
|
|
18523
|
-
static: (
|
|
18524
|
-
emitDistinctChangesOnly: (
|
|
19072
|
+
static: (_c2 = declaration.static) != null ? _c2 : false,
|
|
19073
|
+
emitDistinctChangesOnly: (_d2 = declaration.emitDistinctChangesOnly) != null ? _d2 : true
|
|
18525
19074
|
};
|
|
18526
19075
|
}
|
|
18527
19076
|
function convertQueryPredicate(predicate) {
|
|
@@ -18565,35 +19114,35 @@ function convertDirectiveFacadeToMetadata(facade) {
|
|
|
18565
19114
|
});
|
|
18566
19115
|
}
|
|
18567
19116
|
function convertDeclareDirectiveFacadeToMetadata(declaration, typeSourceSpan) {
|
|
18568
|
-
var _a2,
|
|
19117
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i;
|
|
18569
19118
|
return {
|
|
18570
19119
|
name: declaration.type.name,
|
|
18571
19120
|
type: wrapReference(declaration.type),
|
|
18572
19121
|
typeSourceSpan,
|
|
18573
19122
|
selector: (_a2 = declaration.selector) != null ? _a2 : null,
|
|
18574
19123
|
inputs: declaration.inputs ? inputsMappingToInputMetadata(declaration.inputs) : {},
|
|
18575
|
-
outputs: (
|
|
19124
|
+
outputs: (_b2 = declaration.outputs) != null ? _b2 : {},
|
|
18576
19125
|
host: convertHostDeclarationToMetadata(declaration.host),
|
|
18577
|
-
queries: ((
|
|
18578
|
-
viewQueries: ((
|
|
19126
|
+
queries: ((_c2 = declaration.queries) != null ? _c2 : []).map(convertQueryDeclarationToMetadata),
|
|
19127
|
+
viewQueries: ((_d2 = declaration.viewQueries) != null ? _d2 : []).map(convertQueryDeclarationToMetadata),
|
|
18579
19128
|
providers: declaration.providers !== void 0 ? new WrappedNodeExpr(declaration.providers) : null,
|
|
18580
|
-
exportAs: (
|
|
18581
|
-
usesInheritance: (
|
|
18582
|
-
lifecycle: { usesOnChanges: (
|
|
19129
|
+
exportAs: (_e2 = declaration.exportAs) != null ? _e2 : null,
|
|
19130
|
+
usesInheritance: (_f2 = declaration.usesInheritance) != null ? _f2 : false,
|
|
19131
|
+
lifecycle: { usesOnChanges: (_g2 = declaration.usesOnChanges) != null ? _g2 : false },
|
|
18583
19132
|
deps: null,
|
|
18584
19133
|
typeArgumentCount: 0,
|
|
18585
19134
|
fullInheritance: false,
|
|
18586
|
-
isStandalone: (
|
|
19135
|
+
isStandalone: (_h2 = declaration.isStandalone) != null ? _h2 : false,
|
|
18587
19136
|
isSignal: (_i = declaration.isSignal) != null ? _i : false,
|
|
18588
19137
|
hostDirectives: convertHostDirectivesToMetadata(declaration)
|
|
18589
19138
|
};
|
|
18590
19139
|
}
|
|
18591
19140
|
function convertHostDeclarationToMetadata(host = {}) {
|
|
18592
|
-
var _a2,
|
|
19141
|
+
var _a2, _b2, _c2;
|
|
18593
19142
|
return {
|
|
18594
19143
|
attributes: convertOpaqueValuesToExpressions((_a2 = host.attributes) != null ? _a2 : {}),
|
|
18595
|
-
listeners: (
|
|
18596
|
-
properties: (
|
|
19144
|
+
listeners: (_b2 = host.listeners) != null ? _b2 : {},
|
|
19145
|
+
properties: (_c2 = host.properties) != null ? _c2 : {},
|
|
18597
19146
|
specialAttributes: {
|
|
18598
19147
|
classAttr: host.classAttribute,
|
|
18599
19148
|
styleAttr: host.styleAttribute
|
|
@@ -18627,7 +19176,7 @@ function convertOpaqueValuesToExpressions(obj) {
|
|
|
18627
19176
|
return result;
|
|
18628
19177
|
}
|
|
18629
19178
|
function convertDeclareComponentFacadeToMetadata(decl, typeSourceSpan, sourceMapUrl) {
|
|
18630
|
-
var _a2,
|
|
19179
|
+
var _a2, _b2, _c2, _d2;
|
|
18631
19180
|
const { template: template2, interpolation } = parseJitTemplate(decl.template, decl.type.name, sourceMapUrl, (_a2 = decl.preserveWhitespaces) != null ? _a2 : false, decl.interpolation);
|
|
18632
19181
|
const declarations = [];
|
|
18633
19182
|
if (decl.dependencies) {
|
|
@@ -18649,12 +19198,12 @@ function convertDeclareComponentFacadeToMetadata(decl, typeSourceSpan, sourceMap
|
|
|
18649
19198
|
}
|
|
18650
19199
|
return __spreadProps(__spreadValues({}, convertDeclareDirectiveFacadeToMetadata(decl, typeSourceSpan)), {
|
|
18651
19200
|
template: template2,
|
|
18652
|
-
styles: (
|
|
19201
|
+
styles: (_b2 = decl.styles) != null ? _b2 : [],
|
|
18653
19202
|
declarations,
|
|
18654
19203
|
viewProviders: decl.viewProviders !== void 0 ? new WrappedNodeExpr(decl.viewProviders) : null,
|
|
18655
19204
|
animations: decl.animations !== void 0 ? new WrappedNodeExpr(decl.animations) : null,
|
|
18656
|
-
changeDetection: (
|
|
18657
|
-
encapsulation: (
|
|
19205
|
+
changeDetection: (_c2 = decl.changeDetection) != null ? _c2 : ChangeDetectionStrategy.Default,
|
|
19206
|
+
encapsulation: (_d2 = decl.encapsulation) != null ? _d2 : ViewEncapsulation.Emulated,
|
|
18658
19207
|
interpolation,
|
|
18659
19208
|
declarationListEmitMode: 2,
|
|
18660
19209
|
relativeContextFilePath: "",
|
|
@@ -18667,15 +19216,15 @@ function convertDeclarationFacadeToMetadata(declaration) {
|
|
|
18667
19216
|
});
|
|
18668
19217
|
}
|
|
18669
19218
|
function convertDirectiveDeclarationToMetadata(declaration, isComponent = null) {
|
|
18670
|
-
var _a2,
|
|
19219
|
+
var _a2, _b2, _c2;
|
|
18671
19220
|
return {
|
|
18672
19221
|
kind: R3TemplateDependencyKind.Directive,
|
|
18673
19222
|
isComponent: isComponent || declaration.kind === "component",
|
|
18674
19223
|
selector: declaration.selector,
|
|
18675
19224
|
type: new WrappedNodeExpr(declaration.type),
|
|
18676
19225
|
inputs: (_a2 = declaration.inputs) != null ? _a2 : [],
|
|
18677
|
-
outputs: (
|
|
18678
|
-
exportAs: (
|
|
19226
|
+
outputs: (_b2 = declaration.outputs) != null ? _b2 : [],
|
|
19227
|
+
exportAs: (_c2 = declaration.exportAs) != null ? _c2 : null
|
|
18679
19228
|
};
|
|
18680
19229
|
}
|
|
18681
19230
|
function convertPipeMapToMetadata(pipes) {
|
|
@@ -18690,11 +19239,11 @@ function convertPipeMapToMetadata(pipes) {
|
|
|
18690
19239
|
};
|
|
18691
19240
|
});
|
|
18692
19241
|
}
|
|
18693
|
-
function convertPipeDeclarationToMetadata(
|
|
19242
|
+
function convertPipeDeclarationToMetadata(pipe2) {
|
|
18694
19243
|
return {
|
|
18695
19244
|
kind: R3TemplateDependencyKind.Pipe,
|
|
18696
|
-
name:
|
|
18697
|
-
type: new WrappedNodeExpr(
|
|
19245
|
+
name: pipe2.name,
|
|
19246
|
+
type: new WrappedNodeExpr(pipe2.type)
|
|
18698
19247
|
};
|
|
18699
19248
|
}
|
|
18700
19249
|
function parseJitTemplate(template2, typeName, sourceMapUrl, preserveWhitespaces, interpolation) {
|
|
@@ -18734,10 +19283,10 @@ function convertR3DependencyMetadata(facade) {
|
|
|
18734
19283
|
return createR3DependencyMetadata(token, isAttributeDep, facade.host, facade.optional, facade.self, facade.skipSelf);
|
|
18735
19284
|
}
|
|
18736
19285
|
function convertR3DeclareDependencyMetadata(facade) {
|
|
18737
|
-
var _a2,
|
|
19286
|
+
var _a2, _b2, _c2, _d2, _e2;
|
|
18738
19287
|
const isAttributeDep = (_a2 = facade.attribute) != null ? _a2 : false;
|
|
18739
19288
|
const token = facade.token === null ? null : new WrappedNodeExpr(facade.token);
|
|
18740
|
-
return createR3DependencyMetadata(token, isAttributeDep, (
|
|
19289
|
+
return createR3DependencyMetadata(token, isAttributeDep, (_b2 = facade.host) != null ? _b2 : false, (_c2 = facade.optional) != null ? _c2 : false, (_d2 = facade.self) != null ? _d2 : false, (_e2 = facade.skipSelf) != null ? _e2 : false);
|
|
18741
19290
|
}
|
|
18742
19291
|
function createR3DependencyMetadata(token, isAttributeDep, host, optional, self2, skipSelf) {
|
|
18743
19292
|
const attributeNameType = isAttributeDep ? literal("unknown") : null;
|
|
@@ -18788,7 +19337,7 @@ function inputsMappingToInputMetadata(inputs) {
|
|
|
18788
19337
|
result[key] = {
|
|
18789
19338
|
bindingPropertyName: value[0],
|
|
18790
19339
|
classPropertyName: value[1],
|
|
18791
|
-
transformFunction: value[2]
|
|
19340
|
+
transformFunction: value[2] ? new WrappedNodeExpr(value[2]) : null,
|
|
18792
19341
|
required: false
|
|
18793
19342
|
};
|
|
18794
19343
|
}
|
|
@@ -18828,7 +19377,7 @@ function parseMappingString(value) {
|
|
|
18828
19377
|
return [bindingPropertyName != null ? bindingPropertyName : fieldName, fieldName];
|
|
18829
19378
|
}
|
|
18830
19379
|
function convertDeclarePipeFacadeToMetadata(declaration) {
|
|
18831
|
-
var _a2,
|
|
19380
|
+
var _a2, _b2;
|
|
18832
19381
|
return {
|
|
18833
19382
|
name: declaration.type.name,
|
|
18834
19383
|
type: wrapReference(declaration.type),
|
|
@@ -18836,7 +19385,7 @@ function convertDeclarePipeFacadeToMetadata(declaration) {
|
|
|
18836
19385
|
pipeName: declaration.name,
|
|
18837
19386
|
deps: null,
|
|
18838
19387
|
pure: (_a2 = declaration.pure) != null ? _a2 : true,
|
|
18839
|
-
isStandalone: (
|
|
19388
|
+
isStandalone: (_b2 = declaration.isStandalone) != null ? _b2 : false
|
|
18840
19389
|
};
|
|
18841
19390
|
}
|
|
18842
19391
|
function convertDeclareInjectorFacadeToMetadata(declaration) {
|
|
@@ -18852,10 +19401,10 @@ function publishFacade(global2) {
|
|
|
18852
19401
|
ng.\u0275compilerFacade = new CompilerFacadeImpl();
|
|
18853
19402
|
}
|
|
18854
19403
|
|
|
18855
|
-
// bazel-out/
|
|
18856
|
-
var VERSION2 = new Version("16.1.0
|
|
19404
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/version.mjs
|
|
19405
|
+
var VERSION2 = new Version("16.1.0");
|
|
18857
19406
|
|
|
18858
|
-
// bazel-out/
|
|
19407
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
|
|
18859
19408
|
var _I18N_ATTR = "i18n";
|
|
18860
19409
|
var _I18N_ATTR_PREFIX = "i18n-";
|
|
18861
19410
|
var _I18N_COMMENT_PREFIX_REGEXP = /^i18n:?/;
|
|
@@ -19159,7 +19708,7 @@ function _parseMessageMeta(i18n) {
|
|
|
19159
19708
|
return { meaning, description, id: id.trim() };
|
|
19160
19709
|
}
|
|
19161
19710
|
|
|
19162
|
-
// bazel-out/
|
|
19711
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/xml_tags.mjs
|
|
19163
19712
|
var XmlTagDefinition = class {
|
|
19164
19713
|
constructor() {
|
|
19165
19714
|
this.closedByParent = false;
|
|
@@ -19184,7 +19733,7 @@ function getXmlTagDefinition(tagName) {
|
|
|
19184
19733
|
return _TAG_DEFINITION;
|
|
19185
19734
|
}
|
|
19186
19735
|
|
|
19187
|
-
// bazel-out/
|
|
19736
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/xml_parser.mjs
|
|
19188
19737
|
var XmlParser = class extends Parser2 {
|
|
19189
19738
|
constructor() {
|
|
19190
19739
|
super(getXmlTagDefinition);
|
|
@@ -19194,7 +19743,7 @@ var XmlParser = class extends Parser2 {
|
|
|
19194
19743
|
}
|
|
19195
19744
|
};
|
|
19196
19745
|
|
|
19197
|
-
// bazel-out/
|
|
19746
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/serializers/xliff.mjs
|
|
19198
19747
|
var _VERSION = "1.2";
|
|
19199
19748
|
var _XMLNS = "urn:oasis:names:tc:xliff:document:1.2";
|
|
19200
19749
|
var _DEFAULT_SOURCE_LANG = "en";
|
|
@@ -19434,7 +19983,7 @@ function getCtypeForTag(tag) {
|
|
|
19434
19983
|
}
|
|
19435
19984
|
}
|
|
19436
19985
|
|
|
19437
|
-
// bazel-out/
|
|
19986
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/serializers/xliff2.mjs
|
|
19438
19987
|
var _VERSION2 = "2.0";
|
|
19439
19988
|
var _XMLNS2 = "urn:oasis:names:tc:xliff:document:2.0";
|
|
19440
19989
|
var _DEFAULT_SOURCE_LANG2 = "en";
|
|
@@ -19725,7 +20274,7 @@ function getTypeForTag(tag) {
|
|
|
19725
20274
|
}
|
|
19726
20275
|
}
|
|
19727
20276
|
|
|
19728
|
-
// bazel-out/
|
|
20277
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/message_bundle.mjs
|
|
19729
20278
|
var MessageBundle = class {
|
|
19730
20279
|
constructor(_htmlParser, _implicitTags, _implicitAttrs, _locale = null) {
|
|
19731
20280
|
this._htmlParser = _htmlParser;
|
|
@@ -19792,7 +20341,7 @@ var MapPlaceholderNames = class extends CloneVisitor {
|
|
|
19792
20341
|
}
|
|
19793
20342
|
};
|
|
19794
20343
|
|
|
19795
|
-
// bazel-out/
|
|
20344
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/partial/api.mjs
|
|
19796
20345
|
var FactoryTarget2;
|
|
19797
20346
|
(function(FactoryTarget3) {
|
|
19798
20347
|
FactoryTarget3[FactoryTarget3["Directive"] = 0] = "Directive";
|
|
@@ -19802,7 +20351,7 @@ var FactoryTarget2;
|
|
|
19802
20351
|
FactoryTarget3[FactoryTarget3["NgModule"] = 4] = "NgModule";
|
|
19803
20352
|
})(FactoryTarget2 || (FactoryTarget2 = {}));
|
|
19804
20353
|
|
|
19805
|
-
// bazel-out/
|
|
20354
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/t2_binder.mjs
|
|
19806
20355
|
var R3TargetBinder = class {
|
|
19807
20356
|
constructor(directiveMatcher) {
|
|
19808
20357
|
this.directiveMatcher = directiveMatcher;
|
|
@@ -20154,25 +20703,25 @@ function extractTemplateEntities(rootScope) {
|
|
|
20154
20703
|
return templateEntities;
|
|
20155
20704
|
}
|
|
20156
20705
|
|
|
20157
|
-
// bazel-out/
|
|
20706
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_class_metadata_compiler.mjs
|
|
20158
20707
|
function compileClassMetadata(metadata) {
|
|
20159
|
-
var _a2,
|
|
20708
|
+
var _a2, _b2;
|
|
20160
20709
|
const fnCall = importExpr(Identifiers.setClassMetadata).callFn([
|
|
20161
20710
|
metadata.type,
|
|
20162
20711
|
metadata.decorators,
|
|
20163
20712
|
(_a2 = metadata.ctorParameters) != null ? _a2 : literal(null),
|
|
20164
|
-
(
|
|
20713
|
+
(_b2 = metadata.propDecorators) != null ? _b2 : literal(null)
|
|
20165
20714
|
]);
|
|
20166
20715
|
const iife = fn([], [devOnlyGuardedExpression(fnCall).toStmt()]);
|
|
20167
20716
|
return iife.callFn([]);
|
|
20168
20717
|
}
|
|
20169
20718
|
|
|
20170
|
-
// bazel-out/
|
|
20719
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/partial/class_metadata.mjs
|
|
20171
20720
|
var MINIMUM_PARTIAL_LINKER_VERSION = "12.0.0";
|
|
20172
20721
|
function compileDeclareClassMetadata(metadata) {
|
|
20173
20722
|
const definitionMap = new DefinitionMap();
|
|
20174
20723
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
20175
|
-
definitionMap.set("version", literal("16.1.0
|
|
20724
|
+
definitionMap.set("version", literal("16.1.0"));
|
|
20176
20725
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
20177
20726
|
definitionMap.set("type", metadata.type);
|
|
20178
20727
|
definitionMap.set("decorators", metadata.decorators);
|
|
@@ -20181,7 +20730,7 @@ function compileDeclareClassMetadata(metadata) {
|
|
|
20181
20730
|
return importExpr(Identifiers.declareClassMetadata).callFn([definitionMap.toLiteralMap()]);
|
|
20182
20731
|
}
|
|
20183
20732
|
|
|
20184
|
-
// bazel-out/
|
|
20733
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/partial/util.mjs
|
|
20185
20734
|
function toOptionalLiteralArray(values, mapper) {
|
|
20186
20735
|
if (values === null || values.length === 0) {
|
|
20187
20736
|
return null;
|
|
@@ -20229,7 +20778,7 @@ function compileDependency(dep) {
|
|
|
20229
20778
|
return depMeta.toLiteralMap();
|
|
20230
20779
|
}
|
|
20231
20780
|
|
|
20232
|
-
// bazel-out/
|
|
20781
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/partial/directive.mjs
|
|
20233
20782
|
var MINIMUM_PARTIAL_LINKER_VERSION2 = "14.0.0";
|
|
20234
20783
|
function compileDeclareDirectiveFromMetadata(meta) {
|
|
20235
20784
|
const definitionMap = createDirectiveDefinitionMap(meta);
|
|
@@ -20241,7 +20790,7 @@ function createDirectiveDefinitionMap(meta) {
|
|
|
20241
20790
|
var _a2;
|
|
20242
20791
|
const definitionMap = new DefinitionMap();
|
|
20243
20792
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION2));
|
|
20244
|
-
definitionMap.set("version", literal("16.1.0
|
|
20793
|
+
definitionMap.set("version", literal("16.1.0"));
|
|
20245
20794
|
definitionMap.set("type", meta.type.value);
|
|
20246
20795
|
if (meta.isStandalone) {
|
|
20247
20796
|
definitionMap.set("isStandalone", literal(meta.isStandalone));
|
|
@@ -20334,7 +20883,7 @@ function createHostDirectives(hostDirectives) {
|
|
|
20334
20883
|
return literalArr(expressions);
|
|
20335
20884
|
}
|
|
20336
20885
|
|
|
20337
|
-
// bazel-out/
|
|
20886
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/partial/component.mjs
|
|
20338
20887
|
function compileDeclareComponentFromMetadata(meta, template2, additionalTemplateInfo) {
|
|
20339
20888
|
const definitionMap = createComponentDefinitionMap(meta, template2, additionalTemplateInfo);
|
|
20340
20889
|
const expression = importExpr(Identifiers.declareComponent).callFn([definitionMap.toLiteralMap()]);
|
|
@@ -20421,12 +20970,12 @@ function compileUsedDependenciesMetadata(meta) {
|
|
|
20421
20970
|
});
|
|
20422
20971
|
}
|
|
20423
20972
|
|
|
20424
|
-
// bazel-out/
|
|
20973
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/partial/factory.mjs
|
|
20425
20974
|
var MINIMUM_PARTIAL_LINKER_VERSION3 = "12.0.0";
|
|
20426
20975
|
function compileDeclareFactoryFunction(meta) {
|
|
20427
20976
|
const definitionMap = new DefinitionMap();
|
|
20428
20977
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION3));
|
|
20429
|
-
definitionMap.set("version", literal("16.1.0
|
|
20978
|
+
definitionMap.set("version", literal("16.1.0"));
|
|
20430
20979
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
20431
20980
|
definitionMap.set("type", meta.type.value);
|
|
20432
20981
|
definitionMap.set("deps", compileDependencies(meta.deps));
|
|
@@ -20438,7 +20987,7 @@ function compileDeclareFactoryFunction(meta) {
|
|
|
20438
20987
|
};
|
|
20439
20988
|
}
|
|
20440
20989
|
|
|
20441
|
-
// bazel-out/
|
|
20990
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/partial/injectable.mjs
|
|
20442
20991
|
var MINIMUM_PARTIAL_LINKER_VERSION4 = "12.0.0";
|
|
20443
20992
|
function compileDeclareInjectableFromMetadata(meta) {
|
|
20444
20993
|
const definitionMap = createInjectableDefinitionMap(meta);
|
|
@@ -20449,7 +20998,7 @@ function compileDeclareInjectableFromMetadata(meta) {
|
|
|
20449
20998
|
function createInjectableDefinitionMap(meta) {
|
|
20450
20999
|
const definitionMap = new DefinitionMap();
|
|
20451
21000
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION4));
|
|
20452
|
-
definitionMap.set("version", literal("16.1.0
|
|
21001
|
+
definitionMap.set("version", literal("16.1.0"));
|
|
20453
21002
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
20454
21003
|
definitionMap.set("type", meta.type.value);
|
|
20455
21004
|
if (meta.providedIn !== void 0) {
|
|
@@ -20476,7 +21025,7 @@ function createInjectableDefinitionMap(meta) {
|
|
|
20476
21025
|
return definitionMap;
|
|
20477
21026
|
}
|
|
20478
21027
|
|
|
20479
|
-
// bazel-out/
|
|
21028
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/partial/injector.mjs
|
|
20480
21029
|
var MINIMUM_PARTIAL_LINKER_VERSION5 = "12.0.0";
|
|
20481
21030
|
function compileDeclareInjectorFromMetadata(meta) {
|
|
20482
21031
|
const definitionMap = createInjectorDefinitionMap(meta);
|
|
@@ -20487,7 +21036,7 @@ function compileDeclareInjectorFromMetadata(meta) {
|
|
|
20487
21036
|
function createInjectorDefinitionMap(meta) {
|
|
20488
21037
|
const definitionMap = new DefinitionMap();
|
|
20489
21038
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION5));
|
|
20490
|
-
definitionMap.set("version", literal("16.1.0
|
|
21039
|
+
definitionMap.set("version", literal("16.1.0"));
|
|
20491
21040
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
20492
21041
|
definitionMap.set("type", meta.type.value);
|
|
20493
21042
|
definitionMap.set("providers", meta.providers);
|
|
@@ -20497,7 +21046,7 @@ function createInjectorDefinitionMap(meta) {
|
|
|
20497
21046
|
return definitionMap;
|
|
20498
21047
|
}
|
|
20499
21048
|
|
|
20500
|
-
// bazel-out/
|
|
21049
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/partial/ng_module.mjs
|
|
20501
21050
|
var MINIMUM_PARTIAL_LINKER_VERSION6 = "14.0.0";
|
|
20502
21051
|
function compileDeclareNgModuleFromMetadata(meta) {
|
|
20503
21052
|
const definitionMap = createNgModuleDefinitionMap(meta);
|
|
@@ -20508,7 +21057,7 @@ function compileDeclareNgModuleFromMetadata(meta) {
|
|
|
20508
21057
|
function createNgModuleDefinitionMap(meta) {
|
|
20509
21058
|
const definitionMap = new DefinitionMap();
|
|
20510
21059
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION6));
|
|
20511
|
-
definitionMap.set("version", literal("16.1.0
|
|
21060
|
+
definitionMap.set("version", literal("16.1.0"));
|
|
20512
21061
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
20513
21062
|
definitionMap.set("type", meta.type.value);
|
|
20514
21063
|
if (meta.bootstrap.length > 0) {
|
|
@@ -20532,7 +21081,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
20532
21081
|
return definitionMap;
|
|
20533
21082
|
}
|
|
20534
21083
|
|
|
20535
|
-
// bazel-out/
|
|
21084
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/partial/pipe.mjs
|
|
20536
21085
|
var MINIMUM_PARTIAL_LINKER_VERSION7 = "14.0.0";
|
|
20537
21086
|
function compileDeclarePipeFromMetadata(meta) {
|
|
20538
21087
|
const definitionMap = createPipeDefinitionMap(meta);
|
|
@@ -20543,7 +21092,7 @@ function compileDeclarePipeFromMetadata(meta) {
|
|
|
20543
21092
|
function createPipeDefinitionMap(meta) {
|
|
20544
21093
|
const definitionMap = new DefinitionMap();
|
|
20545
21094
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION7));
|
|
20546
|
-
definitionMap.set("version", literal("16.1.0
|
|
21095
|
+
definitionMap.set("version", literal("16.1.0"));
|
|
20547
21096
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
20548
21097
|
definitionMap.set("type", meta.type.value);
|
|
20549
21098
|
if (meta.isStandalone) {
|
|
@@ -20556,13 +21105,13 @@ function createPipeDefinitionMap(meta) {
|
|
|
20556
21105
|
return definitionMap;
|
|
20557
21106
|
}
|
|
20558
21107
|
|
|
20559
|
-
// bazel-out/
|
|
21108
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/compiler.mjs
|
|
20560
21109
|
publishFacade(_global);
|
|
20561
21110
|
|
|
20562
|
-
// bazel-out/
|
|
20563
|
-
var VERSION3 = new Version("16.1.0
|
|
21111
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/version.mjs
|
|
21112
|
+
var VERSION3 = new Version("16.1.0");
|
|
20564
21113
|
|
|
20565
|
-
// bazel-out/
|
|
21114
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
|
|
20566
21115
|
var EmitFlags;
|
|
20567
21116
|
(function(EmitFlags2) {
|
|
20568
21117
|
EmitFlags2[EmitFlags2["DTS"] = 1] = "DTS";
|
|
@@ -20574,13 +21123,13 @@ var EmitFlags;
|
|
|
20574
21123
|
EmitFlags2[EmitFlags2["All"] = 31] = "All";
|
|
20575
21124
|
})(EmitFlags || (EmitFlags = {}));
|
|
20576
21125
|
|
|
20577
|
-
// bazel-out/
|
|
21126
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/compiler_host.mjs
|
|
20578
21127
|
var import_typescript2 = __toESM(require("typescript"), 1);
|
|
20579
21128
|
|
|
20580
|
-
// bazel-out/
|
|
21129
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
20581
21130
|
var import_typescript94 = __toESM(require("typescript"), 1);
|
|
20582
21131
|
|
|
20583
|
-
// bazel-out/
|
|
21132
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
|
|
20584
21133
|
var path = __toESM(require("path"), 1);
|
|
20585
21134
|
function i18nGetExtension(formatName) {
|
|
20586
21135
|
const format = formatName.toLowerCase();
|
|
@@ -20630,10 +21179,10 @@ function getPathNormalizer(basePath) {
|
|
|
20630
21179
|
};
|
|
20631
21180
|
}
|
|
20632
21181
|
|
|
20633
|
-
// bazel-out/
|
|
21182
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
20634
21183
|
var import_typescript3 = __toESM(require("typescript"), 1);
|
|
20635
21184
|
|
|
20636
|
-
// bazel-out/
|
|
21185
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/version_helpers.mjs
|
|
20637
21186
|
function toNumbers(value) {
|
|
20638
21187
|
const suffixIndex = value.lastIndexOf("-");
|
|
20639
21188
|
return value.slice(0, suffixIndex === -1 ? value.length : suffixIndex).split(".").map((segment) => {
|
|
@@ -20668,7 +21217,7 @@ function compareVersions(v1, v2) {
|
|
|
20668
21217
|
return compareNumbers(toNumbers(v1), toNumbers(v2));
|
|
20669
21218
|
}
|
|
20670
21219
|
|
|
20671
|
-
// bazel-out/
|
|
21220
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
20672
21221
|
var MIN_TS_VERSION = "4.9.3";
|
|
20673
21222
|
var MAX_TS_VERSION = "5.2.0";
|
|
20674
21223
|
var tsVersion = import_typescript3.default.version;
|
|
@@ -20681,13 +21230,13 @@ function verifySupportedTypeScriptVersion() {
|
|
|
20681
21230
|
checkVersion(tsVersion, MIN_TS_VERSION, MAX_TS_VERSION);
|
|
20682
21231
|
}
|
|
20683
21232
|
|
|
20684
|
-
// bazel-out/
|
|
21233
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
20685
21234
|
var import_typescript90 = __toESM(require("typescript"), 1);
|
|
20686
21235
|
|
|
20687
|
-
// bazel-out/
|
|
21236
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
|
|
20688
21237
|
var import_typescript14 = __toESM(require("typescript"), 1);
|
|
20689
21238
|
|
|
20690
|
-
// bazel-out/
|
|
21239
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_code.mjs
|
|
20691
21240
|
var ErrorCode;
|
|
20692
21241
|
(function(ErrorCode2) {
|
|
20693
21242
|
ErrorCode2[ErrorCode2["DECORATOR_ARG_NOT_LITERAL"] = 1001] = "DECORATOR_ARG_NOT_LITERAL";
|
|
@@ -20761,7 +21310,7 @@ var ErrorCode;
|
|
|
20761
21310
|
ErrorCode2[ErrorCode2["SUGGEST_SUBOPTIMAL_TYPE_INFERENCE"] = 10002] = "SUGGEST_SUBOPTIMAL_TYPE_INFERENCE";
|
|
20762
21311
|
})(ErrorCode || (ErrorCode = {}));
|
|
20763
21312
|
|
|
20764
|
-
// bazel-out/
|
|
21313
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/docs.mjs
|
|
20765
21314
|
var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
|
|
20766
21315
|
ErrorCode.DECORATOR_ARG_NOT_LITERAL,
|
|
20767
21316
|
ErrorCode.IMPORT_CYCLE_DETECTED,
|
|
@@ -20773,15 +21322,15 @@ var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
|
|
|
20773
21322
|
ErrorCode.WARN_NGMODULE_ID_UNNECESSARY
|
|
20774
21323
|
]);
|
|
20775
21324
|
|
|
20776
|
-
// bazel-out/
|
|
21325
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
|
|
20777
21326
|
var import_typescript4 = __toESM(require("typescript"), 1);
|
|
20778
21327
|
|
|
20779
|
-
// bazel-out/
|
|
21328
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/util.mjs
|
|
20780
21329
|
function ngErrorCode(code) {
|
|
20781
21330
|
return parseInt("-99" + code);
|
|
20782
21331
|
}
|
|
20783
21332
|
|
|
20784
|
-
// bazel-out/
|
|
21333
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
|
|
20785
21334
|
var FatalDiagnosticError = class {
|
|
20786
21335
|
constructor(code, node, message, relatedInformation) {
|
|
20787
21336
|
this.code = code;
|
|
@@ -20837,10 +21386,10 @@ function addDiagnosticChain(messageText, add) {
|
|
|
20837
21386
|
return messageText;
|
|
20838
21387
|
}
|
|
20839
21388
|
|
|
20840
|
-
// bazel-out/
|
|
21389
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.mjs
|
|
20841
21390
|
var ERROR_DETAILS_PAGE_BASE_URL = "https://angular.io/errors";
|
|
20842
21391
|
|
|
20843
|
-
// bazel-out/
|
|
21392
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.mjs
|
|
20844
21393
|
var ExtendedTemplateDiagnosticName;
|
|
20845
21394
|
(function(ExtendedTemplateDiagnosticName2) {
|
|
20846
21395
|
ExtendedTemplateDiagnosticName2["INVALID_BANANA_IN_BOX"] = "invalidBananaInBox";
|
|
@@ -20853,13 +21402,13 @@ var ExtendedTemplateDiagnosticName;
|
|
|
20853
21402
|
ExtendedTemplateDiagnosticName2["SKIP_HYDRATION_NOT_STATIC"] = "skipHydrationNotStatic";
|
|
20854
21403
|
})(ExtendedTemplateDiagnosticName || (ExtendedTemplateDiagnosticName = {}));
|
|
20855
21404
|
|
|
20856
|
-
// bazel-out/
|
|
21405
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
|
|
20857
21406
|
var import_typescript13 = __toESM(require("typescript"), 1);
|
|
20858
21407
|
|
|
20859
|
-
// bazel-out/
|
|
21408
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
|
|
20860
21409
|
var import_typescript7 = __toESM(require("typescript"), 1);
|
|
20861
21410
|
|
|
20862
|
-
// bazel-out/
|
|
21411
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/typescript.mjs
|
|
20863
21412
|
var import_typescript5 = __toESM(require("typescript"), 1);
|
|
20864
21413
|
var TS = /\.tsx?$/i;
|
|
20865
21414
|
var D_TS = /\.d\.ts$/i;
|
|
@@ -20960,7 +21509,7 @@ function toUnredirectedSourceFile(sf) {
|
|
|
20960
21509
|
return redirectInfo.unredirected;
|
|
20961
21510
|
}
|
|
20962
21511
|
|
|
20963
|
-
// bazel-out/
|
|
21512
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/find_export.mjs
|
|
20964
21513
|
function findExportedNameOfNode(target, file, reflector) {
|
|
20965
21514
|
const exports = reflector.getExportsOfModule(file);
|
|
20966
21515
|
if (exports === null) {
|
|
@@ -20980,7 +21529,7 @@ function findExportedNameOfNode(target, file, reflector) {
|
|
|
20980
21529
|
return foundExportName;
|
|
20981
21530
|
}
|
|
20982
21531
|
|
|
20983
|
-
// bazel-out/
|
|
21532
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
|
|
20984
21533
|
var ImportFlags;
|
|
20985
21534
|
(function(ImportFlags2) {
|
|
20986
21535
|
ImportFlags2[ImportFlags2["None"] = 0] = "None";
|
|
@@ -21196,7 +21745,7 @@ var UnifiedModulesStrategy = class {
|
|
|
21196
21745
|
}
|
|
21197
21746
|
};
|
|
21198
21747
|
|
|
21199
|
-
// bazel-out/
|
|
21748
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
|
|
21200
21749
|
var CHARS_TO_ESCAPE = /[^a-zA-Z0-9/_]/g;
|
|
21201
21750
|
var UnifiedModulesAliasingHost = class {
|
|
21202
21751
|
constructor(unifiedModulesHost) {
|
|
@@ -21263,7 +21812,7 @@ var AliasStrategy = class {
|
|
|
21263
21812
|
}
|
|
21264
21813
|
};
|
|
21265
21814
|
|
|
21266
|
-
// bazel-out/
|
|
21815
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/path.mjs
|
|
21267
21816
|
function relativePathBetween(from, to) {
|
|
21268
21817
|
const relativePath = stripExtension(relative(dirname(resolve(from)), resolve(to)));
|
|
21269
21818
|
return relativePath !== "" ? toRelativeImport(relativePath) : null;
|
|
@@ -21272,7 +21821,7 @@ function normalizeSeparators2(path3) {
|
|
|
21272
21821
|
return path3.replace(/\\/g, "/");
|
|
21273
21822
|
}
|
|
21274
21823
|
|
|
21275
|
-
// bazel-out/
|
|
21824
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/core.mjs
|
|
21276
21825
|
var NoopImportRewriter = class {
|
|
21277
21826
|
shouldImportSymbol(symbol, specifier) {
|
|
21278
21827
|
return true;
|
|
@@ -21330,7 +21879,7 @@ function validateAndRewriteCoreSymbol(name) {
|
|
|
21330
21879
|
return CORE_SUPPORTED_SYMBOLS.get(name);
|
|
21331
21880
|
}
|
|
21332
21881
|
|
|
21333
|
-
// bazel-out/
|
|
21882
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/patch_alias_reference_resolution.mjs
|
|
21334
21883
|
var import_typescript9 = __toESM(require("typescript"), 1);
|
|
21335
21884
|
var patchedReferencedAliasesSymbol = Symbol("patchedReferencedAliases");
|
|
21336
21885
|
function loadIsReferencedAliasDeclarationPatch(context) {
|
|
@@ -21365,7 +21914,7 @@ function throwIncompatibleTransformationContextError() {
|
|
|
21365
21914
|
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.");
|
|
21366
21915
|
}
|
|
21367
21916
|
|
|
21368
|
-
// bazel-out/
|
|
21917
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/default.mjs
|
|
21369
21918
|
var DefaultImportDeclaration = Symbol("DefaultImportDeclaration");
|
|
21370
21919
|
function attachDefaultImportDeclaration(expr, importDecl) {
|
|
21371
21920
|
expr[DefaultImportDeclaration] = importDecl;
|
|
@@ -21406,7 +21955,7 @@ var DefaultImportTracker = class {
|
|
|
21406
21955
|
}
|
|
21407
21956
|
};
|
|
21408
21957
|
|
|
21409
|
-
// bazel-out/
|
|
21958
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/references.mjs
|
|
21410
21959
|
var Reference2 = class {
|
|
21411
21960
|
constructor(node, bestGuessOwningModule = null) {
|
|
21412
21961
|
this.node = node;
|
|
@@ -21469,7 +22018,7 @@ var Reference2 = class {
|
|
|
21469
22018
|
}
|
|
21470
22019
|
};
|
|
21471
22020
|
|
|
21472
|
-
// bazel-out/
|
|
22021
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/resolver.mjs
|
|
21473
22022
|
var ModuleResolver = class {
|
|
21474
22023
|
constructor(program, compilerOptions, host, moduleResolutionCache) {
|
|
21475
22024
|
this.program = program;
|
|
@@ -21486,7 +22035,7 @@ var ModuleResolver = class {
|
|
|
21486
22035
|
}
|
|
21487
22036
|
};
|
|
21488
22037
|
|
|
21489
|
-
// bazel-out/
|
|
22038
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
|
|
21490
22039
|
function valueReferenceToExpression(valueRef) {
|
|
21491
22040
|
if (valueRef.kind === 2) {
|
|
21492
22041
|
return null;
|
|
@@ -21725,7 +22274,7 @@ function isAbstractClassDeclaration(clazz) {
|
|
|
21725
22274
|
return import_typescript13.default.canHaveModifiers(clazz) && clazz.modifiers !== void 0 ? clazz.modifiers.some((mod) => mod.kind === import_typescript13.default.SyntaxKind.AbstractKeyword) : false;
|
|
21726
22275
|
}
|
|
21727
22276
|
|
|
21728
|
-
// bazel-out/
|
|
22277
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
|
|
21729
22278
|
function getConstructorDependencies(clazz, reflector, isCore) {
|
|
21730
22279
|
const deps = [];
|
|
21731
22280
|
const errors = [];
|
|
@@ -21867,10 +22416,10 @@ function createUnsuitableInjectionTokenError(clazz, error2) {
|
|
|
21867
22416
|
return new FatalDiagnosticError(ErrorCode.PARAM_MISSING_TOKEN, param.nameNode, chain, hints);
|
|
21868
22417
|
}
|
|
21869
22418
|
|
|
21870
|
-
// bazel-out/
|
|
22419
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
|
|
21871
22420
|
var import_typescript27 = __toESM(require("typescript"), 1);
|
|
21872
22421
|
|
|
21873
|
-
// bazel-out/
|
|
22422
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/api.mjs
|
|
21874
22423
|
var MetaKind;
|
|
21875
22424
|
(function(MetaKind2) {
|
|
21876
22425
|
MetaKind2[MetaKind2["Directive"] = 0] = "Directive";
|
|
@@ -21883,10 +22432,10 @@ var MatchSource;
|
|
|
21883
22432
|
MatchSource2[MatchSource2["HostDirective"] = 1] = "HostDirective";
|
|
21884
22433
|
})(MatchSource || (MatchSource = {}));
|
|
21885
22434
|
|
|
21886
|
-
// bazel-out/
|
|
22435
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
21887
22436
|
var import_typescript22 = __toESM(require("typescript"), 1);
|
|
21888
22437
|
|
|
21889
|
-
// bazel-out/
|
|
22438
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/host.mjs
|
|
21890
22439
|
var import_typescript15 = __toESM(require("typescript"), 1);
|
|
21891
22440
|
function isDecoratorIdentifier(exp) {
|
|
21892
22441
|
return import_typescript15.default.isIdentifier(exp) || import_typescript15.default.isPropertyAccessExpression(exp) && import_typescript15.default.isIdentifier(exp.expression) && import_typescript15.default.isIdentifier(exp.name);
|
|
@@ -21900,7 +22449,7 @@ var ClassMemberKind;
|
|
|
21900
22449
|
ClassMemberKind2[ClassMemberKind2["Method"] = 4] = "Method";
|
|
21901
22450
|
})(ClassMemberKind || (ClassMemberKind = {}));
|
|
21902
22451
|
|
|
21903
|
-
// bazel-out/
|
|
22452
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/type_to_value.mjs
|
|
21904
22453
|
var import_typescript16 = __toESM(require("typescript"), 1);
|
|
21905
22454
|
function typeToValue(typeNode, checker) {
|
|
21906
22455
|
if (typeNode === null) {
|
|
@@ -22066,10 +22615,10 @@ function extractModuleName(node) {
|
|
|
22066
22615
|
return node.moduleSpecifier.text;
|
|
22067
22616
|
}
|
|
22068
22617
|
|
|
22069
|
-
// bazel-out/
|
|
22618
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
|
|
22070
22619
|
var import_typescript18 = __toESM(require("typescript"), 1);
|
|
22071
22620
|
|
|
22072
|
-
// bazel-out/
|
|
22621
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/util.mjs
|
|
22073
22622
|
var import_typescript17 = __toESM(require("typescript"), 1);
|
|
22074
22623
|
function isNamedClassDeclaration(node) {
|
|
22075
22624
|
return import_typescript17.default.isClassDeclaration(node) && isIdentifier(node.name);
|
|
@@ -22078,7 +22627,7 @@ function isIdentifier(node) {
|
|
|
22078
22627
|
return node !== void 0 && import_typescript17.default.isIdentifier(node);
|
|
22079
22628
|
}
|
|
22080
22629
|
|
|
22081
|
-
// bazel-out/
|
|
22630
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
|
|
22082
22631
|
var TypeScriptReflectionHost = class {
|
|
22083
22632
|
constructor(checker) {
|
|
22084
22633
|
this.checker = checker;
|
|
@@ -22507,7 +23056,7 @@ function getExportedName(decl, originalId) {
|
|
|
22507
23056
|
}
|
|
22508
23057
|
var LocalExportedDeclarations = Symbol("LocalExportedDeclarations");
|
|
22509
23058
|
|
|
22510
|
-
// bazel-out/
|
|
23059
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/property_mapping.mjs
|
|
22511
23060
|
var ClassPropertyMapping = class {
|
|
22512
23061
|
constructor(forwardMap) {
|
|
22513
23062
|
this.forwardMap = forwardMap;
|
|
@@ -22585,7 +23134,7 @@ function reverseMapFromForwardMap(forwardMap) {
|
|
|
22585
23134
|
return reverseMap;
|
|
22586
23135
|
}
|
|
22587
23136
|
|
|
22588
|
-
// bazel-out/
|
|
23137
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/util.mjs
|
|
22589
23138
|
var import_typescript20 = __toESM(require("typescript"), 1);
|
|
22590
23139
|
function extractReferencesFromType(checker, def, bestGuessOwningModule) {
|
|
22591
23140
|
if (!import_typescript20.default.isTupleTypeNode(def)) {
|
|
@@ -22770,7 +23319,7 @@ function hasInjectableFields(clazz, host) {
|
|
|
22770
23319
|
return members.some(({ isStatic, name }) => isStatic && (name === "\u0275prov" || name === "\u0275fac"));
|
|
22771
23320
|
}
|
|
22772
23321
|
|
|
22773
|
-
// bazel-out/
|
|
23322
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
22774
23323
|
var DtsMetadataReader = class {
|
|
22775
23324
|
constructor(checker, reflector) {
|
|
22776
23325
|
this.checker = checker;
|
|
@@ -22800,7 +23349,7 @@ var DtsMetadataReader = class {
|
|
|
22800
23349
|
};
|
|
22801
23350
|
}
|
|
22802
23351
|
getDirectiveMetadata(ref) {
|
|
22803
|
-
var _a2,
|
|
23352
|
+
var _a2, _b2;
|
|
22804
23353
|
const clazz = ref.node;
|
|
22805
23354
|
const def = this.reflector.getMembersOfClass(clazz).find((field) => field.isStatic && (field.name === "\u0275cmp" || field.name === "\u0275dir"));
|
|
22806
23355
|
if (def === void 0) {
|
|
@@ -22817,7 +23366,7 @@ var DtsMetadataReader = class {
|
|
|
22817
23366
|
const inputs = ClassPropertyMapping.fromMappedObject(readInputsType(def.type.typeArguments[3]));
|
|
22818
23367
|
const outputs = ClassPropertyMapping.fromMappedObject(readMapType(def.type.typeArguments[4], readStringType));
|
|
22819
23368
|
const hostDirectives = def.type.typeArguments.length > 8 ? readHostDirectivesType(this.checker, def.type.typeArguments[8], ref.bestGuessOwningModule) : null;
|
|
22820
|
-
const isSignal = def.type.typeArguments.length > 9 && ((
|
|
23369
|
+
const isSignal = def.type.typeArguments.length > 9 && ((_b2 = readBooleanType(def.type.typeArguments[9])) != null ? _b2 : false);
|
|
22821
23370
|
return __spreadProps(__spreadValues({
|
|
22822
23371
|
kind: MetaKind.Directive,
|
|
22823
23372
|
matchSource: MatchSource.Selector,
|
|
@@ -22945,7 +23494,7 @@ function readHostDirectivesType(checker, type, bestGuessOwningModule) {
|
|
|
22945
23494
|
return result.length > 0 ? result : null;
|
|
22946
23495
|
}
|
|
22947
23496
|
|
|
22948
|
-
// bazel-out/
|
|
23497
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/inheritance.mjs
|
|
22949
23498
|
function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
22950
23499
|
const topMeta = reader.getDirectiveMetadata(dir);
|
|
22951
23500
|
if (topMeta === null) {
|
|
@@ -23002,7 +23551,7 @@ function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
|
23002
23551
|
});
|
|
23003
23552
|
}
|
|
23004
23553
|
|
|
23005
|
-
// bazel-out/
|
|
23554
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/registry.mjs
|
|
23006
23555
|
var LocalMetadataRegistry = class {
|
|
23007
23556
|
constructor() {
|
|
23008
23557
|
this.directives = /* @__PURE__ */ new Map();
|
|
@@ -23059,7 +23608,7 @@ var CompoundMetadataRegistry = class {
|
|
|
23059
23608
|
}
|
|
23060
23609
|
};
|
|
23061
23610
|
|
|
23062
|
-
// bazel-out/
|
|
23611
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/resource_registry.mjs
|
|
23063
23612
|
var ResourceRegistry = class {
|
|
23064
23613
|
constructor() {
|
|
23065
23614
|
this.externalTemplateToComponentsMap = /* @__PURE__ */ new Map();
|
|
@@ -23124,7 +23673,7 @@ var ResourceRegistry = class {
|
|
|
23124
23673
|
}
|
|
23125
23674
|
};
|
|
23126
23675
|
|
|
23127
|
-
// bazel-out/
|
|
23676
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/providers.mjs
|
|
23128
23677
|
var ExportedProviderStatusResolver = class {
|
|
23129
23678
|
constructor(metaReader) {
|
|
23130
23679
|
this.metaReader = metaReader;
|
|
@@ -23168,7 +23717,7 @@ var ExportedProviderStatusResolver = class {
|
|
|
23168
23717
|
}
|
|
23169
23718
|
};
|
|
23170
23719
|
|
|
23171
|
-
// bazel-out/
|
|
23720
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/host_directives_resolver.mjs
|
|
23172
23721
|
var EMPTY_ARRAY = [];
|
|
23173
23722
|
var HostDirectivesResolver = class {
|
|
23174
23723
|
constructor(metaReader) {
|
|
@@ -23229,10 +23778,10 @@ function resolveOutput(bindingName) {
|
|
|
23229
23778
|
return bindingName;
|
|
23230
23779
|
}
|
|
23231
23780
|
|
|
23232
|
-
// bazel-out/
|
|
23781
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
|
|
23233
23782
|
var import_typescript24 = __toESM(require("typescript"), 1);
|
|
23234
23783
|
|
|
23235
|
-
// bazel-out/
|
|
23784
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/dynamic.mjs
|
|
23236
23785
|
var DynamicValue = class {
|
|
23237
23786
|
constructor(node, reason, code) {
|
|
23238
23787
|
this.node = node;
|
|
@@ -23322,7 +23871,7 @@ var DynamicValue = class {
|
|
|
23322
23871
|
}
|
|
23323
23872
|
};
|
|
23324
23873
|
|
|
23325
|
-
// bazel-out/
|
|
23874
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/result.mjs
|
|
23326
23875
|
var ResolvedModule = class {
|
|
23327
23876
|
constructor(exports, evaluate) {
|
|
23328
23877
|
this.exports = exports;
|
|
@@ -23352,9 +23901,9 @@ var EnumValue = class {
|
|
|
23352
23901
|
var KnownFn = class {
|
|
23353
23902
|
};
|
|
23354
23903
|
|
|
23355
|
-
// bazel-out/
|
|
23904
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
|
|
23356
23905
|
function describeResolvedType(value, maxDepth = 1) {
|
|
23357
|
-
var _a2,
|
|
23906
|
+
var _a2, _b2;
|
|
23358
23907
|
if (value === null) {
|
|
23359
23908
|
return "null";
|
|
23360
23909
|
} else if (value === void 0) {
|
|
@@ -23374,7 +23923,7 @@ function describeResolvedType(value, maxDepth = 1) {
|
|
|
23374
23923
|
} else if (value instanceof EnumValue) {
|
|
23375
23924
|
return (_a2 = value.enumRef.debugName) != null ? _a2 : "(anonymous)";
|
|
23376
23925
|
} else if (value instanceof Reference2) {
|
|
23377
|
-
return (
|
|
23926
|
+
return (_b2 = value.debugName) != null ? _b2 : "(anonymous)";
|
|
23378
23927
|
} else if (Array.isArray(value)) {
|
|
23379
23928
|
if (maxDepth === 0) {
|
|
23380
23929
|
return "Array";
|
|
@@ -23481,10 +24030,10 @@ function getContainerNode(node) {
|
|
|
23481
24030
|
return node.getSourceFile();
|
|
23482
24031
|
}
|
|
23483
24032
|
|
|
23484
|
-
// bazel-out/
|
|
24033
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
23485
24034
|
var import_typescript25 = __toESM(require("typescript"), 1);
|
|
23486
24035
|
|
|
23487
|
-
// bazel-out/
|
|
24036
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/builtin.mjs
|
|
23488
24037
|
var ArraySliceBuiltinFn = class extends KnownFn {
|
|
23489
24038
|
constructor(lhs) {
|
|
23490
24039
|
super();
|
|
@@ -23536,14 +24085,14 @@ var StringConcatBuiltinFn = class extends KnownFn {
|
|
|
23536
24085
|
}
|
|
23537
24086
|
};
|
|
23538
24087
|
|
|
23539
|
-
// bazel-out/
|
|
24088
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/synthetic.mjs
|
|
23540
24089
|
var SyntheticValue = class {
|
|
23541
24090
|
constructor(value) {
|
|
23542
24091
|
this.value = value;
|
|
23543
24092
|
}
|
|
23544
24093
|
};
|
|
23545
24094
|
|
|
23546
|
-
// bazel-out/
|
|
24095
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
23547
24096
|
function literalBinaryOp(op) {
|
|
23548
24097
|
return { op, literal: true };
|
|
23549
24098
|
}
|
|
@@ -24121,7 +24670,7 @@ function getOriginalKeywordKind(identifier) {
|
|
|
24121
24670
|
return typeof import_typescript25.default.identifierToKeywordKind === "function" ? import_typescript25.default.identifierToKeywordKind(identifier) : identifier.originalKeywordKind;
|
|
24122
24671
|
}
|
|
24123
24672
|
|
|
24124
|
-
// bazel-out/
|
|
24673
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interface.mjs
|
|
24125
24674
|
var PartialEvaluator = class {
|
|
24126
24675
|
constructor(host, checker, dependencyTracker) {
|
|
24127
24676
|
this.host = host;
|
|
@@ -24141,7 +24690,7 @@ var PartialEvaluator = class {
|
|
|
24141
24690
|
}
|
|
24142
24691
|
};
|
|
24143
24692
|
|
|
24144
|
-
// bazel-out/
|
|
24693
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
|
|
24145
24694
|
function makeDuplicateDeclarationError(node, data, kind) {
|
|
24146
24695
|
const context = [];
|
|
24147
24696
|
for (const decl of data) {
|
|
@@ -24337,7 +24886,7 @@ function getInheritedUndecoratedCtorDiagnostic(node, baseClass, kind) {
|
|
|
24337
24886
|
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}.`);
|
|
24338
24887
|
}
|
|
24339
24888
|
|
|
24340
|
-
// bazel-out/
|
|
24889
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/evaluation.mjs
|
|
24341
24890
|
var import_typescript29 = __toESM(require("typescript"), 1);
|
|
24342
24891
|
function resolveEnumValue(evaluator, metadata, field, enumSymbolName) {
|
|
24343
24892
|
let resolved = null;
|
|
@@ -24370,7 +24919,7 @@ function resolveLiteral(decorator, literalCache) {
|
|
|
24370
24919
|
return meta;
|
|
24371
24920
|
}
|
|
24372
24921
|
|
|
24373
|
-
// bazel-out/
|
|
24922
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/factory.mjs
|
|
24374
24923
|
function compileNgFactoryDefField(metadata) {
|
|
24375
24924
|
const res = compileFactoryFunction(metadata);
|
|
24376
24925
|
return { name: "\u0275fac", initializer: res.expression, statements: res.statements, type: res.type };
|
|
@@ -24380,7 +24929,7 @@ function compileDeclareFactory(metadata) {
|
|
|
24380
24929
|
return { name: "\u0275fac", initializer: res.expression, statements: res.statements, type: res.type };
|
|
24381
24930
|
}
|
|
24382
24931
|
|
|
24383
|
-
// bazel-out/
|
|
24932
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/injectable_registry.mjs
|
|
24384
24933
|
var InjectableClassRegistry = class {
|
|
24385
24934
|
constructor(host, isCore) {
|
|
24386
24935
|
this.host = host;
|
|
@@ -24406,7 +24955,7 @@ var InjectableClassRegistry = class {
|
|
|
24406
24955
|
}
|
|
24407
24956
|
};
|
|
24408
24957
|
|
|
24409
|
-
// bazel-out/
|
|
24958
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/metadata.mjs
|
|
24410
24959
|
var import_typescript30 = __toESM(require("typescript"), 1);
|
|
24411
24960
|
function extractClassMetadata(clazz, reflection, isCore, annotateForClosureCompiler, angularDecoratorTransform = (dec) => dec) {
|
|
24412
24961
|
if (!reflection.isClass(clazz)) {
|
|
@@ -24492,13 +25041,13 @@ function removeIdentifierReferences(node, name) {
|
|
|
24492
25041
|
return result.transformed[0];
|
|
24493
25042
|
}
|
|
24494
25043
|
|
|
24495
|
-
// bazel-out/
|
|
25044
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/references_registry.mjs
|
|
24496
25045
|
var NoopReferencesRegistry = class {
|
|
24497
25046
|
add(source, ...references) {
|
|
24498
25047
|
}
|
|
24499
25048
|
};
|
|
24500
25049
|
|
|
24501
|
-
// bazel-out/
|
|
25050
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/schema.mjs
|
|
24502
25051
|
function extractSchemas(rawExpr, evaluator, context) {
|
|
24503
25052
|
const schemas = [];
|
|
24504
25053
|
const result = evaluator.evaluate(rawExpr);
|
|
@@ -24527,7 +25076,7 @@ function extractSchemas(rawExpr, evaluator, context) {
|
|
|
24527
25076
|
return schemas;
|
|
24528
25077
|
}
|
|
24529
25078
|
|
|
24530
|
-
// bazel-out/
|
|
25079
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/input_transforms.mjs
|
|
24531
25080
|
function compileInputTransformFields(inputs) {
|
|
24532
25081
|
const extraFields = [];
|
|
24533
25082
|
for (const input of inputs) {
|
|
@@ -24543,10 +25092,10 @@ function compileInputTransformFields(inputs) {
|
|
|
24543
25092
|
return extraFields;
|
|
24544
25093
|
}
|
|
24545
25094
|
|
|
24546
|
-
// bazel-out/
|
|
25095
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
24547
25096
|
var import_typescript51 = __toESM(require("typescript"), 1);
|
|
24548
25097
|
|
|
24549
|
-
// bazel-out/
|
|
25098
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.mjs
|
|
24550
25099
|
var import_typescript31 = __toESM(require("typescript"), 1);
|
|
24551
25100
|
var SemanticSymbol = class {
|
|
24552
25101
|
constructor(decl) {
|
|
@@ -24562,7 +25111,7 @@ function getSymbolIdentifier(decl) {
|
|
|
24562
25111
|
return decl.name.text;
|
|
24563
25112
|
}
|
|
24564
25113
|
|
|
24565
|
-
// bazel-out/
|
|
25114
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.mjs
|
|
24566
25115
|
var OpaqueSymbol = class extends SemanticSymbol {
|
|
24567
25116
|
isPublicApiAffected() {
|
|
24568
25117
|
return false;
|
|
@@ -24704,10 +25253,10 @@ function getImportPath(expr) {
|
|
|
24704
25253
|
}
|
|
24705
25254
|
}
|
|
24706
25255
|
|
|
24707
|
-
// bazel-out/
|
|
25256
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
24708
25257
|
var import_typescript32 = __toESM(require("typescript"), 1);
|
|
24709
25258
|
|
|
24710
|
-
// bazel-out/
|
|
25259
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/util.mjs
|
|
24711
25260
|
function isSymbolEqual(a, b) {
|
|
24712
25261
|
if (a.decl === b.decl) {
|
|
24713
25262
|
return true;
|
|
@@ -24757,7 +25306,7 @@ function isSetEqual(a, b, equalityTester = referenceEquality) {
|
|
|
24757
25306
|
return true;
|
|
24758
25307
|
}
|
|
24759
25308
|
|
|
24760
|
-
// bazel-out/
|
|
25309
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
24761
25310
|
function extractSemanticTypeParameters(node) {
|
|
24762
25311
|
if (!import_typescript32.default.isClassDeclaration(node) || node.typeParameters === void 0) {
|
|
24763
25312
|
return null;
|
|
@@ -24777,7 +25326,7 @@ function isTypeParameterEqual(a, b) {
|
|
|
24777
25326
|
return a.hasGenericTypeBound === b.hasGenericTypeBound;
|
|
24778
25327
|
}
|
|
24779
25328
|
|
|
24780
|
-
// bazel-out/
|
|
25329
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/api.mjs
|
|
24781
25330
|
var PerfPhase;
|
|
24782
25331
|
(function(PerfPhase2) {
|
|
24783
25332
|
PerfPhase2[PerfPhase2["Unaccounted"] = 0] = "Unaccounted";
|
|
@@ -24844,7 +25393,7 @@ var PerfCheckpoint;
|
|
|
24844
25393
|
PerfCheckpoint2[PerfCheckpoint2["LAST"] = 9] = "LAST";
|
|
24845
25394
|
})(PerfCheckpoint || (PerfCheckpoint = {}));
|
|
24846
25395
|
|
|
24847
|
-
// bazel-out/
|
|
25396
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/noop.mjs
|
|
24848
25397
|
var NoopPerfRecorder = class {
|
|
24849
25398
|
eventCount() {
|
|
24850
25399
|
}
|
|
@@ -24861,7 +25410,7 @@ var NoopPerfRecorder = class {
|
|
|
24861
25410
|
};
|
|
24862
25411
|
var NOOP_PERF_RECORDER = new NoopPerfRecorder();
|
|
24863
25412
|
|
|
24864
|
-
// bazel-out/
|
|
25413
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/clock.mjs
|
|
24865
25414
|
function mark() {
|
|
24866
25415
|
return process.hrtime();
|
|
24867
25416
|
}
|
|
@@ -24870,7 +25419,7 @@ function timeSinceInMicros(mark2) {
|
|
|
24870
25419
|
return delta[0] * 1e6 + Math.floor(delta[1] / 1e3);
|
|
24871
25420
|
}
|
|
24872
25421
|
|
|
24873
|
-
// bazel-out/
|
|
25422
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/recorder.mjs
|
|
24874
25423
|
var ActivePerfRecorder = class {
|
|
24875
25424
|
static zeroedToNow() {
|
|
24876
25425
|
return new ActivePerfRecorder(mark());
|
|
@@ -24964,14 +25513,14 @@ var DelegatingPerfRecorder = class {
|
|
|
24964
25513
|
}
|
|
24965
25514
|
};
|
|
24966
25515
|
|
|
24967
|
-
// bazel-out/
|
|
25516
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/api.mjs
|
|
24968
25517
|
var ComponentScopeKind;
|
|
24969
25518
|
(function(ComponentScopeKind2) {
|
|
24970
25519
|
ComponentScopeKind2[ComponentScopeKind2["NgModule"] = 0] = "NgModule";
|
|
24971
25520
|
ComponentScopeKind2[ComponentScopeKind2["Standalone"] = 1] = "Standalone";
|
|
24972
25521
|
})(ComponentScopeKind || (ComponentScopeKind = {}));
|
|
24973
25522
|
|
|
24974
|
-
// bazel-out/
|
|
25523
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/component_scope.mjs
|
|
24975
25524
|
var CompoundComponentScopeReader = class {
|
|
24976
25525
|
constructor(readers) {
|
|
24977
25526
|
this.readers = readers;
|
|
@@ -24996,7 +25545,7 @@ var CompoundComponentScopeReader = class {
|
|
|
24996
25545
|
}
|
|
24997
25546
|
};
|
|
24998
25547
|
|
|
24999
|
-
// bazel-out/
|
|
25548
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/dependency.mjs
|
|
25000
25549
|
var MetadataDtsModuleScopeResolver = class {
|
|
25001
25550
|
constructor(dtsMetaReader, aliasingHost) {
|
|
25002
25551
|
this.dtsMetaReader = dtsMetaReader;
|
|
@@ -25029,10 +25578,10 @@ var MetadataDtsModuleScopeResolver = class {
|
|
|
25029
25578
|
dependencies.push(this.maybeAlias(directive, sourceFile, isReExport));
|
|
25030
25579
|
continue;
|
|
25031
25580
|
}
|
|
25032
|
-
const
|
|
25033
|
-
if (
|
|
25581
|
+
const pipe2 = this.dtsMetaReader.getPipeMetadata(exportRef);
|
|
25582
|
+
if (pipe2 !== null) {
|
|
25034
25583
|
const isReExport = !declarations.has(exportRef.node);
|
|
25035
|
-
dependencies.push(this.maybeAlias(
|
|
25584
|
+
dependencies.push(this.maybeAlias(pipe2, sourceFile, isReExport));
|
|
25036
25585
|
continue;
|
|
25037
25586
|
}
|
|
25038
25587
|
const exportScope2 = this.resolve(exportRef);
|
|
@@ -25071,10 +25620,10 @@ var MetadataDtsModuleScopeResolver = class {
|
|
|
25071
25620
|
}
|
|
25072
25621
|
};
|
|
25073
25622
|
|
|
25074
|
-
// bazel-out/
|
|
25623
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
|
|
25075
25624
|
var import_typescript33 = __toESM(require("typescript"), 1);
|
|
25076
25625
|
|
|
25077
|
-
// bazel-out/
|
|
25626
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/util.mjs
|
|
25078
25627
|
function getDiagnosticNode(ref, rawExpr) {
|
|
25079
25628
|
return rawExpr !== null ? ref.getOriginForDiagnostics(rawExpr) : ref.node.name;
|
|
25080
25629
|
}
|
|
@@ -25097,7 +25646,7 @@ function makeUnknownComponentImportDiagnostic(ref, rawExpr) {
|
|
|
25097
25646
|
return makeDiagnostic(ErrorCode.COMPONENT_UNKNOWN_IMPORT, getDiagnosticNode(ref, rawExpr), `Component imports must be standalone components, directives, pipes, or must be NgModules.`);
|
|
25098
25647
|
}
|
|
25099
25648
|
|
|
25100
|
-
// bazel-out/
|
|
25649
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
|
|
25101
25650
|
var LocalModuleScopeRegistry = class {
|
|
25102
25651
|
constructor(localReader, fullReader, dependencyScopeReader, refEmitter, aliasingHost) {
|
|
25103
25652
|
this.localReader = localReader;
|
|
@@ -25124,7 +25673,7 @@ var LocalModuleScopeRegistry = class {
|
|
|
25124
25673
|
}
|
|
25125
25674
|
registerDirectiveMetadata(directive) {
|
|
25126
25675
|
}
|
|
25127
|
-
registerPipeMetadata(
|
|
25676
|
+
registerPipeMetadata(pipe2) {
|
|
25128
25677
|
}
|
|
25129
25678
|
getScopeForComponent(clazz) {
|
|
25130
25679
|
const scope = !this.declarationToModule.has(clazz) ? null : this.getScopeOfModule(this.declarationToModule.get(clazz).ngModule);
|
|
@@ -25217,10 +25766,10 @@ var LocalModuleScopeRegistry = class {
|
|
|
25217
25766
|
}
|
|
25218
25767
|
continue;
|
|
25219
25768
|
}
|
|
25220
|
-
const
|
|
25221
|
-
if (
|
|
25222
|
-
if (
|
|
25223
|
-
compilationPipes.set(
|
|
25769
|
+
const pipe2 = this.fullReader.getPipeMetadata(decl);
|
|
25770
|
+
if (pipe2 !== null) {
|
|
25771
|
+
if (pipe2.isStandalone) {
|
|
25772
|
+
compilationPipes.set(pipe2.ref.node, pipe2);
|
|
25224
25773
|
} else {
|
|
25225
25774
|
diagnostics.push(makeNotStandaloneDiagnostic(this, decl, ngModule.rawImports, "pipe"));
|
|
25226
25775
|
isPoisoned = true;
|
|
@@ -25232,7 +25781,7 @@ var LocalModuleScopeRegistry = class {
|
|
|
25232
25781
|
}
|
|
25233
25782
|
for (const decl of ngModule.declarations) {
|
|
25234
25783
|
const directive = this.localReader.getDirectiveMetadata(decl);
|
|
25235
|
-
const
|
|
25784
|
+
const pipe2 = this.localReader.getPipeMetadata(decl);
|
|
25236
25785
|
if (directive !== null) {
|
|
25237
25786
|
if (directive.isStandalone) {
|
|
25238
25787
|
const refType = directive.isComponent ? "Component" : "Directive";
|
|
@@ -25244,13 +25793,13 @@ var LocalModuleScopeRegistry = class {
|
|
|
25244
25793
|
if (directive.isPoisoned) {
|
|
25245
25794
|
isPoisoned = true;
|
|
25246
25795
|
}
|
|
25247
|
-
} else if (
|
|
25248
|
-
if (
|
|
25796
|
+
} else if (pipe2 !== null) {
|
|
25797
|
+
if (pipe2.isStandalone) {
|
|
25249
25798
|
diagnostics.push(makeDiagnostic(ErrorCode.NGMODULE_DECLARATION_IS_STANDALONE, decl.getOriginForDiagnostics(ngModule.rawDeclarations), `Pipe ${decl.node.name.text} is standalone, and cannot be declared in an NgModule. Did you mean to import it instead?`));
|
|
25250
25799
|
isPoisoned = true;
|
|
25251
25800
|
continue;
|
|
25252
25801
|
}
|
|
25253
|
-
compilationPipes.set(decl.node, __spreadProps(__spreadValues({},
|
|
25802
|
+
compilationPipes.set(decl.node, __spreadProps(__spreadValues({}, pipe2), { ref: decl }));
|
|
25254
25803
|
} else {
|
|
25255
25804
|
const errorNode = decl.getOriginForDiagnostics(ngModule.rawDeclarations);
|
|
25256
25805
|
diagnostics.push(makeDiagnostic(ErrorCode.NGMODULE_INVALID_DECLARATION, errorNode, `The class '${decl.node.name.text}' is listed in the declarations of the NgModule '${ngModule.ref.node.name.text}', but is not a directive, a component, or a pipe. Either remove it from the NgModule's declarations, or add an appropriate Angular decorator.`, [makeRelatedInformation(decl.node.name, `'${decl.node.name.text}' is declared here.`)]));
|
|
@@ -25279,8 +25828,8 @@ var LocalModuleScopeRegistry = class {
|
|
|
25279
25828
|
const directive = compilationDirectives.get(decl.node);
|
|
25280
25829
|
exportDirectives.set(decl.node, directive);
|
|
25281
25830
|
} else if (compilationPipes.has(decl.node)) {
|
|
25282
|
-
const
|
|
25283
|
-
exportPipes.set(decl.node,
|
|
25831
|
+
const pipe2 = compilationPipes.get(decl.node);
|
|
25832
|
+
exportPipes.set(decl.node, pipe2);
|
|
25284
25833
|
} else {
|
|
25285
25834
|
const dirMeta = this.fullReader.getDirectiveMetadata(decl);
|
|
25286
25835
|
const pipeMeta = this.fullReader.getPipeMetadata(decl);
|
|
@@ -25436,7 +25985,7 @@ function reexportCollision(module3, refA, refB) {
|
|
|
25436
25985
|
]);
|
|
25437
25986
|
}
|
|
25438
25987
|
|
|
25439
|
-
// bazel-out/
|
|
25988
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/typecheck.mjs
|
|
25440
25989
|
var import_typescript35 = __toESM(require("typescript"), 1);
|
|
25441
25990
|
var TypeCheckScopeRegistry = class {
|
|
25442
25991
|
constructor(scopeReader, metaReader, hostDirectivesResolver) {
|
|
@@ -25504,7 +26053,7 @@ var TypeCheckScopeRegistry = class {
|
|
|
25504
26053
|
}
|
|
25505
26054
|
};
|
|
25506
26055
|
|
|
25507
|
-
// bazel-out/
|
|
26056
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/api.mjs
|
|
25508
26057
|
var CompilationMode;
|
|
25509
26058
|
(function(CompilationMode2) {
|
|
25510
26059
|
CompilationMode2[CompilationMode2["FULL"] = 0] = "FULL";
|
|
@@ -25523,7 +26072,7 @@ var HandlerFlags;
|
|
|
25523
26072
|
HandlerFlags2[HandlerFlags2["FULL_INHERITANCE"] = 1] = "FULL_INHERITANCE";
|
|
25524
26073
|
})(HandlerFlags || (HandlerFlags = {}));
|
|
25525
26074
|
|
|
25526
|
-
// bazel-out/
|
|
26075
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/alias.mjs
|
|
25527
26076
|
var import_typescript36 = __toESM(require("typescript"), 1);
|
|
25528
26077
|
function aliasTransformFactory(exportStatements) {
|
|
25529
26078
|
return () => {
|
|
@@ -25546,10 +26095,10 @@ function aliasTransformFactory(exportStatements) {
|
|
|
25546
26095
|
};
|
|
25547
26096
|
}
|
|
25548
26097
|
|
|
25549
|
-
// bazel-out/
|
|
26098
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
25550
26099
|
var import_typescript37 = __toESM(require("typescript"), 1);
|
|
25551
26100
|
|
|
25552
|
-
// bazel-out/
|
|
26101
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/trait.mjs
|
|
25553
26102
|
var TraitState;
|
|
25554
26103
|
(function(TraitState2) {
|
|
25555
26104
|
TraitState2[TraitState2["Pending"] = 0] = "Pending";
|
|
@@ -25606,7 +26155,7 @@ var TraitImpl = class {
|
|
|
25606
26155
|
}
|
|
25607
26156
|
};
|
|
25608
26157
|
|
|
25609
|
-
// bazel-out/
|
|
26158
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
25610
26159
|
var TraitCompiler = class {
|
|
25611
26160
|
constructor(handlers, reflector, perf, incrementalBuild, compileNonExportedClasses, compilationMode, dtsTransforms, semanticDepGraphUpdater, sourceFileTypeIdentifier) {
|
|
25612
26161
|
this.handlers = handlers;
|
|
@@ -25817,7 +26366,7 @@ var TraitCompiler = class {
|
|
|
25817
26366
|
}
|
|
25818
26367
|
}
|
|
25819
26368
|
analyzeTrait(clazz, trait, flags) {
|
|
25820
|
-
var _a2,
|
|
26369
|
+
var _a2, _b2, _c2;
|
|
25821
26370
|
if (trait.state !== TraitState.Pending) {
|
|
25822
26371
|
throw new Error(`Attempt to analyze trait of ${clazz.name.text} in state ${TraitState[trait.state]} (expected DETECTED)`);
|
|
25823
26372
|
}
|
|
@@ -25837,10 +26386,10 @@ var TraitCompiler = class {
|
|
|
25837
26386
|
if (result.analysis !== void 0 && trait.handler.register !== void 0) {
|
|
25838
26387
|
trait.handler.register(clazz, result.analysis);
|
|
25839
26388
|
}
|
|
25840
|
-
trait = trait.toAnalyzed((
|
|
26389
|
+
trait = trait.toAnalyzed((_b2 = result.analysis) != null ? _b2 : null, (_c2 = result.diagnostics) != null ? _c2 : null, symbol);
|
|
25841
26390
|
}
|
|
25842
26391
|
resolve() {
|
|
25843
|
-
var _a2,
|
|
26392
|
+
var _a2, _b2;
|
|
25844
26393
|
const classes = this.classes.keys();
|
|
25845
26394
|
for (const clazz of classes) {
|
|
25846
26395
|
const record = this.classes.get(clazz);
|
|
@@ -25872,7 +26421,7 @@ var TraitCompiler = class {
|
|
|
25872
26421
|
throw err;
|
|
25873
26422
|
}
|
|
25874
26423
|
}
|
|
25875
|
-
trait = trait.toResolved((_a2 = result.data) != null ? _a2 : null, (
|
|
26424
|
+
trait = trait.toResolved((_a2 = result.data) != null ? _a2 : null, (_b2 = result.diagnostics) != null ? _b2 : null);
|
|
25876
26425
|
if (result.reexports !== void 0) {
|
|
25877
26426
|
const fileName = clazz.getSourceFile().fileName;
|
|
25878
26427
|
if (!this.reexportMap.has(fileName)) {
|
|
@@ -26041,10 +26590,10 @@ function containsErrors(diagnostics) {
|
|
|
26041
26590
|
return diagnostics !== null && diagnostics.some((diag) => diag.category === import_typescript37.default.DiagnosticCategory.Error);
|
|
26042
26591
|
}
|
|
26043
26592
|
|
|
26044
|
-
// bazel-out/
|
|
26593
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
|
|
26045
26594
|
var import_typescript43 = __toESM(require("typescript"), 1);
|
|
26046
26595
|
|
|
26047
|
-
// bazel-out/
|
|
26596
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/context.mjs
|
|
26048
26597
|
var Context = class {
|
|
26049
26598
|
constructor(isStatement) {
|
|
26050
26599
|
this.isStatement = isStatement;
|
|
@@ -26057,7 +26606,7 @@ var Context = class {
|
|
|
26057
26606
|
}
|
|
26058
26607
|
};
|
|
26059
26608
|
|
|
26060
|
-
// bazel-out/
|
|
26609
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager.mjs
|
|
26061
26610
|
var import_typescript39 = __toESM(require("typescript"), 1);
|
|
26062
26611
|
var ImportManager = class {
|
|
26063
26612
|
constructor(rewriter = new NoopImportRewriter(), prefix = "i") {
|
|
@@ -26093,7 +26642,7 @@ var ImportManager = class {
|
|
|
26093
26642
|
}
|
|
26094
26643
|
};
|
|
26095
26644
|
|
|
26096
|
-
// bazel-out/
|
|
26645
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/translator.mjs
|
|
26097
26646
|
var UNARY_OPERATORS2 = /* @__PURE__ */ new Map([
|
|
26098
26647
|
[UnaryOperator.Minus, "-"],
|
|
26099
26648
|
[UnaryOperator.Plus, "+"]
|
|
@@ -26324,7 +26873,7 @@ function createRange(span) {
|
|
|
26324
26873
|
};
|
|
26325
26874
|
}
|
|
26326
26875
|
|
|
26327
|
-
// bazel-out/
|
|
26876
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
|
|
26328
26877
|
var import_typescript40 = __toESM(require("typescript"), 1);
|
|
26329
26878
|
function translateType(type, contextFile, reflector, refEmitter, imports) {
|
|
26330
26879
|
return type.visitType(new TypeTranslatorVisitor(imports, contextFile, reflector, refEmitter), new Context(false));
|
|
@@ -26540,7 +27089,7 @@ var TypeTranslatorVisitor = class {
|
|
|
26540
27089
|
}
|
|
26541
27090
|
};
|
|
26542
27091
|
|
|
26543
|
-
// bazel-out/
|
|
27092
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_ast_factory.mjs
|
|
26544
27093
|
var import_typescript41 = __toESM(require("typescript"), 1);
|
|
26545
27094
|
var PureAnnotation;
|
|
26546
27095
|
(function(PureAnnotation2) {
|
|
@@ -26723,7 +27272,7 @@ function attachComments(statement, leadingComments) {
|
|
|
26723
27272
|
}
|
|
26724
27273
|
}
|
|
26725
27274
|
|
|
26726
|
-
// bazel-out/
|
|
27275
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_translator.mjs
|
|
26727
27276
|
function translateExpression(expression, imports, options = {}) {
|
|
26728
27277
|
return expression.visitExpression(new ExpressionTranslatorVisitor(new TypeScriptAstFactory(options.annotateForClosureCompiler === true), imports, options), new Context(false));
|
|
26729
27278
|
}
|
|
@@ -26731,7 +27280,7 @@ function translateStatement(statement, imports, options = {}) {
|
|
|
26731
27280
|
return statement.visitStatement(new ExpressionTranslatorVisitor(new TypeScriptAstFactory(options.annotateForClosureCompiler === true), imports, options), new Context(true));
|
|
26732
27281
|
}
|
|
26733
27282
|
|
|
26734
|
-
// bazel-out/
|
|
27283
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/utils.mjs
|
|
26735
27284
|
var import_typescript42 = __toESM(require("typescript"), 1);
|
|
26736
27285
|
function addImports(importManager, sf, extraStatements = []) {
|
|
26737
27286
|
const addedImports = importManager.getAllImports(sf.fileName).map((i) => {
|
|
@@ -26767,7 +27316,7 @@ function isImportStatement(stmt) {
|
|
|
26767
27316
|
return import_typescript42.default.isImportDeclaration(stmt) || import_typescript42.default.isImportEqualsDeclaration(stmt) || import_typescript42.default.isNamespaceImport(stmt);
|
|
26768
27317
|
}
|
|
26769
27318
|
|
|
26770
|
-
// bazel-out/
|
|
27319
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
|
|
26771
27320
|
var DtsTransformRegistry = class {
|
|
26772
27321
|
constructor() {
|
|
26773
27322
|
this.ivyDeclarationTransforms = /* @__PURE__ */ new Map();
|
|
@@ -26914,10 +27463,10 @@ function markForEmitAsSingleLine(node) {
|
|
|
26914
27463
|
import_typescript43.default.forEachChild(node, markForEmitAsSingleLine);
|
|
26915
27464
|
}
|
|
26916
27465
|
|
|
26917
|
-
// bazel-out/
|
|
27466
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
26918
27467
|
var import_typescript45 = __toESM(require("typescript"), 1);
|
|
26919
27468
|
|
|
26920
|
-
// bazel-out/
|
|
27469
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/visitor.mjs
|
|
26921
27470
|
var import_typescript44 = __toESM(require("typescript"), 1);
|
|
26922
27471
|
function visit(node, visitor, context) {
|
|
26923
27472
|
return visitor._visit(node, context);
|
|
@@ -26978,7 +27527,7 @@ var Visitor = class {
|
|
|
26978
27527
|
}
|
|
26979
27528
|
};
|
|
26980
27529
|
|
|
26981
|
-
// bazel-out/
|
|
27530
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
26982
27531
|
var NO_DECORATORS = /* @__PURE__ */ new Set();
|
|
26983
27532
|
var CLOSURE_FILE_OVERVIEW_REGEXP = /\s+@fileoverview\s+/i;
|
|
26984
27533
|
function ivyTransformFactory(compilation, reflector, importRewriter, defaultImportTracker, perf, isCore, isClosureCompilerEnabled) {
|
|
@@ -27189,7 +27738,7 @@ function nodeArrayFromDecoratorsArray(decorators) {
|
|
|
27189
27738
|
return array;
|
|
27190
27739
|
}
|
|
27191
27740
|
|
|
27192
|
-
// bazel-out/
|
|
27741
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
|
|
27193
27742
|
var import_typescript46 = __toESM(require("typescript"), 1);
|
|
27194
27743
|
var EMPTY_OBJECT = {};
|
|
27195
27744
|
var QUERY_TYPES = /* @__PURE__ */ new Set([
|
|
@@ -27752,7 +28301,7 @@ function toR3InputMetadata(mapping) {
|
|
|
27752
28301
|
};
|
|
27753
28302
|
}
|
|
27754
28303
|
|
|
27755
|
-
// bazel-out/
|
|
28304
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/symbol.mjs
|
|
27756
28305
|
var DirectiveSymbol = class extends SemanticSymbol {
|
|
27757
28306
|
constructor(decl, selector, inputs, outputs, exportAs, typeCheckMeta, typeParameters) {
|
|
27758
28307
|
super(decl);
|
|
@@ -27832,7 +28381,7 @@ function isBaseClassEqual(current, previous) {
|
|
|
27832
28381
|
return isSymbolEqual(current, previous);
|
|
27833
28382
|
}
|
|
27834
28383
|
|
|
27835
|
-
// bazel-out/
|
|
28384
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
|
|
27836
28385
|
var FIELD_DECORATORS = [
|
|
27837
28386
|
"Input",
|
|
27838
28387
|
"Output",
|
|
@@ -27995,10 +28544,10 @@ var DirectiveDecoratorHandler = class {
|
|
|
27995
28544
|
}
|
|
27996
28545
|
};
|
|
27997
28546
|
|
|
27998
|
-
// bazel-out/
|
|
28547
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
27999
28548
|
var import_typescript48 = __toESM(require("typescript"), 1);
|
|
28000
28549
|
|
|
28001
|
-
// bazel-out/
|
|
28550
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/module_with_providers.mjs
|
|
28002
28551
|
var import_typescript47 = __toESM(require("typescript"), 1);
|
|
28003
28552
|
function createModuleWithProvidersResolver(reflector, isCore) {
|
|
28004
28553
|
function _reflectModuleFromTypeParam(type, node) {
|
|
@@ -28065,7 +28614,7 @@ function isResolvedModuleWithProviders(sv) {
|
|
|
28065
28614
|
return typeof sv.value === "object" && sv.value != null && sv.value.hasOwnProperty("ngModule") && sv.value.hasOwnProperty("mwpCall");
|
|
28066
28615
|
}
|
|
28067
28616
|
|
|
28068
|
-
// bazel-out/
|
|
28617
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
28069
28618
|
var NgModuleSymbol = class extends SemanticSymbol {
|
|
28070
28619
|
constructor(decl, hasProviders) {
|
|
28071
28620
|
super(decl);
|
|
@@ -28489,8 +29038,8 @@ var NgModuleDecoratorHandler = class {
|
|
|
28489
29038
|
assertSuccessfulReferenceEmit(type, node, "directive");
|
|
28490
29039
|
return type.expression;
|
|
28491
29040
|
});
|
|
28492
|
-
const pipes = remoteScope.pipes.map((
|
|
28493
|
-
const type = this.refEmitter.emit(
|
|
29041
|
+
const pipes = remoteScope.pipes.map((pipe2) => {
|
|
29042
|
+
const type = this.refEmitter.emit(pipe2, context);
|
|
28494
29043
|
assertSuccessfulReferenceEmit(type, node, "pipe");
|
|
28495
29044
|
return type.expression;
|
|
28496
29045
|
});
|
|
@@ -28587,7 +29136,7 @@ function isSyntheticReference(ref) {
|
|
|
28587
29136
|
return ref.synthetic;
|
|
28588
29137
|
}
|
|
28589
29138
|
|
|
28590
|
-
// bazel-out/
|
|
29139
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/diagnostics.mjs
|
|
28591
29140
|
function makeCyclicImportInfo(ref, type, cycle) {
|
|
28592
29141
|
const name = ref.debugName || "(unknown)";
|
|
28593
29142
|
const path3 = cycle.getPath().map((sf) => sf.fileName).join(" -> ");
|
|
@@ -28610,7 +29159,7 @@ function checkCustomElementSelectorForErrors(selector) {
|
|
|
28610
29159
|
return null;
|
|
28611
29160
|
}
|
|
28612
29161
|
|
|
28613
|
-
// bazel-out/
|
|
29162
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/resources.mjs
|
|
28614
29163
|
var import_typescript50 = __toESM(require("typescript"), 1);
|
|
28615
29164
|
function getTemplateDeclarationNodeForError(declaration) {
|
|
28616
29165
|
return declaration.isInline ? declaration.expression : declaration.templateUrlExpression;
|
|
@@ -28920,7 +29469,7 @@ function _extractTemplateStyleUrls(template2) {
|
|
|
28920
29469
|
return template2.styleUrls.map((url) => ({ url, source: 1, nodeForError }));
|
|
28921
29470
|
}
|
|
28922
29471
|
|
|
28923
|
-
// bazel-out/
|
|
29472
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/symbol.mjs
|
|
28924
29473
|
var ComponentSymbol = class extends DirectiveSymbol {
|
|
28925
29474
|
constructor() {
|
|
28926
29475
|
super(...arguments);
|
|
@@ -28955,7 +29504,7 @@ var ComponentSymbol = class extends DirectiveSymbol {
|
|
|
28955
29504
|
}
|
|
28956
29505
|
};
|
|
28957
29506
|
|
|
28958
|
-
// bazel-out/
|
|
29507
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/util.mjs
|
|
28959
29508
|
function collectAnimationNames(value, animationTriggerNames) {
|
|
28960
29509
|
if (value instanceof Map) {
|
|
28961
29510
|
const name = value.get("name");
|
|
@@ -29031,7 +29580,7 @@ function isLikelyModuleWithProviders(value) {
|
|
|
29031
29580
|
return false;
|
|
29032
29581
|
}
|
|
29033
29582
|
|
|
29034
|
-
// bazel-out/
|
|
29583
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
29035
29584
|
var EMPTY_ARRAY2 = [];
|
|
29036
29585
|
var ComponentDecoratorHandler = class {
|
|
29037
29586
|
constructor(reflector, evaluator, metaRegistry, metaReader, scopeReader, dtsScopeReader, scopeRegistry, typeCheckScopeRegistry, resourceRegistry, isCore, strictCtorDeps, resourceLoader, rootDirs, defaultPreserveWhitespaces, i18nUseExternalIds, enableI18nLegacyMessageIdFormat, usePoisonedData, i18nNormalizeLineEndingsInICUs, moduleResolver, cycleAnalyzer, cycleHandlingStrategy, refEmitter, referencesRegistry, depTracker, injectableRegistry, semanticDepGraphUpdater, annotateForClosureCompiler, perf, hostDirectivesResolver) {
|
|
@@ -29133,7 +29682,7 @@ var ComponentDecoratorHandler = class {
|
|
|
29133
29682
|
]).then(() => void 0);
|
|
29134
29683
|
}
|
|
29135
29684
|
analyze(node, decorator, flags = HandlerFlags.NONE) {
|
|
29136
|
-
var _a2,
|
|
29685
|
+
var _a2, _b2, _c2;
|
|
29137
29686
|
this.perf.eventCount(PerfEvent.AnalyzeComponent);
|
|
29138
29687
|
const containingFile = node.getSourceFile().fileName;
|
|
29139
29688
|
this.literalCache.delete(decorator);
|
|
@@ -29297,7 +29846,7 @@ var ComponentDecoratorHandler = class {
|
|
|
29297
29846
|
ngContentSelectors: template2.ngContentSelectors
|
|
29298
29847
|
},
|
|
29299
29848
|
encapsulation,
|
|
29300
|
-
interpolation: (
|
|
29849
|
+
interpolation: (_b2 = template2.interpolationConfig) != null ? _b2 : DEFAULT_INTERPOLATION_CONFIG,
|
|
29301
29850
|
styles,
|
|
29302
29851
|
animations,
|
|
29303
29852
|
viewProviders: wrappedViewProviders,
|
|
@@ -29320,7 +29869,7 @@ var ComponentDecoratorHandler = class {
|
|
|
29320
29869
|
rawImports,
|
|
29321
29870
|
resolvedImports,
|
|
29322
29871
|
schemas,
|
|
29323
|
-
decorator: (
|
|
29872
|
+
decorator: (_c2 = decorator == null ? void 0 : decorator.node) != null ? _c2 : null
|
|
29324
29873
|
},
|
|
29325
29874
|
diagnostics
|
|
29326
29875
|
};
|
|
@@ -29536,7 +30085,7 @@ var ComponentDecoratorHandler = class {
|
|
|
29536
30085
|
data.declarationListEmitMode = wrapDirectivesAndPipesInClosure ? 1 : 0;
|
|
29537
30086
|
} else {
|
|
29538
30087
|
if (this.cycleHandlingStrategy === 0) {
|
|
29539
|
-
this.scopeRegistry.setComponentRemoteScope(node, declarations.filter(isUsedDirective).map((dir) => dir.ref), declarations.filter(isUsedPipe).map((
|
|
30088
|
+
this.scopeRegistry.setComponentRemoteScope(node, declarations.filter(isUsedDirective).map((dir) => dir.ref), declarations.filter(isUsedPipe).map((pipe2) => pipe2.ref));
|
|
29540
30089
|
symbol.isRemotelyScoped = true;
|
|
29541
30090
|
if (this.semanticDepGraphUpdater !== null && scope.kind === ComponentScopeKind.NgModule && scope.ngModule !== null) {
|
|
29542
30091
|
const moduleSymbol = this.semanticDepGraphUpdater.getSymbol(scope.ngModule);
|
|
@@ -29550,8 +30099,8 @@ var ComponentDecoratorHandler = class {
|
|
|
29550
30099
|
for (const [dir, cycle] of cyclesFromDirectives) {
|
|
29551
30100
|
relatedMessages.push(makeCyclicImportInfo(dir.ref, dir.isComponent ? "component" : "directive", cycle));
|
|
29552
30101
|
}
|
|
29553
|
-
for (const [
|
|
29554
|
-
relatedMessages.push(makeCyclicImportInfo(
|
|
30102
|
+
for (const [pipe2, cycle] of cyclesFromPipes) {
|
|
30103
|
+
relatedMessages.push(makeCyclicImportInfo(pipe2.ref, "pipe", cycle));
|
|
29555
30104
|
}
|
|
29556
30105
|
throw new FatalDiagnosticError(ErrorCode.IMPORT_CYCLE_DETECTED, node, "One or more import cycles would need to be created to compile this component, which is not supported by the current compiler configuration.", relatedMessages);
|
|
29557
30106
|
}
|
|
@@ -29682,7 +30231,7 @@ function validateStandaloneImports(importRefs, importExpr2, metaReader, scopeRea
|
|
|
29682
30231
|
return diagnostics;
|
|
29683
30232
|
}
|
|
29684
30233
|
|
|
29685
|
-
// bazel-out/
|
|
30234
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
|
|
29686
30235
|
var import_typescript53 = __toESM(require("typescript"), 1);
|
|
29687
30236
|
var InjectableDecoratorHandler = class {
|
|
29688
30237
|
constructor(reflector, evaluator, isCore, strictCtorDeps, injectableRegistry, perf, errorOnDuplicateProv = true) {
|
|
@@ -29896,7 +30445,7 @@ function getDep(dep, reflector) {
|
|
|
29896
30445
|
return meta;
|
|
29897
30446
|
}
|
|
29898
30447
|
|
|
29899
|
-
// bazel-out/
|
|
30448
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
|
|
29900
30449
|
var import_typescript54 = __toESM(require("typescript"), 1);
|
|
29901
30450
|
var PipeSymbol = class extends SemanticSymbol {
|
|
29902
30451
|
constructor(decl, name) {
|
|
@@ -29955,18 +30504,18 @@ var PipeDecoratorHandler = class {
|
|
|
29955
30504
|
if (!import_typescript54.default.isObjectLiteralExpression(meta)) {
|
|
29956
30505
|
throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARG_NOT_LITERAL, meta, "@Pipe must have a literal argument");
|
|
29957
30506
|
}
|
|
29958
|
-
const
|
|
29959
|
-
if (!
|
|
30507
|
+
const pipe2 = reflectObjectLiteral(meta);
|
|
30508
|
+
if (!pipe2.has("name")) {
|
|
29960
30509
|
throw new FatalDiagnosticError(ErrorCode.PIPE_MISSING_NAME, meta, `@Pipe decorator is missing name field`);
|
|
29961
30510
|
}
|
|
29962
|
-
const pipeNameExpr =
|
|
30511
|
+
const pipeNameExpr = pipe2.get("name");
|
|
29963
30512
|
const pipeName = this.evaluator.evaluate(pipeNameExpr);
|
|
29964
30513
|
if (typeof pipeName !== "string") {
|
|
29965
30514
|
throw createValueHasWrongTypeError(pipeNameExpr, pipeName, `@Pipe.name must be a string`);
|
|
29966
30515
|
}
|
|
29967
30516
|
let pure = true;
|
|
29968
|
-
if (
|
|
29969
|
-
const expr =
|
|
30517
|
+
if (pipe2.has("pure")) {
|
|
30518
|
+
const expr = pipe2.get("pure");
|
|
29970
30519
|
const pureValue = this.evaluator.evaluate(expr);
|
|
29971
30520
|
if (typeof pureValue !== "boolean") {
|
|
29972
30521
|
throw createValueHasWrongTypeError(expr, pureValue, `@Pipe.pure must be a boolean`);
|
|
@@ -29974,8 +30523,8 @@ var PipeDecoratorHandler = class {
|
|
|
29974
30523
|
pure = pureValue;
|
|
29975
30524
|
}
|
|
29976
30525
|
let isStandalone = false;
|
|
29977
|
-
if (
|
|
29978
|
-
const expr =
|
|
30526
|
+
if (pipe2.has("standalone")) {
|
|
30527
|
+
const expr = pipe2.get("standalone");
|
|
29979
30528
|
const resolved = this.evaluator.evaluate(expr);
|
|
29980
30529
|
if (typeof resolved !== "boolean") {
|
|
29981
30530
|
throw createValueHasWrongTypeError(expr, resolved, `standalone flag must be a boolean`);
|
|
@@ -30039,7 +30588,7 @@ var PipeDecoratorHandler = class {
|
|
|
30039
30588
|
}
|
|
30040
30589
|
};
|
|
30041
30590
|
|
|
30042
|
-
// bazel-out/
|
|
30591
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
|
|
30043
30592
|
var CycleAnalyzer = class {
|
|
30044
30593
|
constructor(importGraph) {
|
|
30045
30594
|
this.importGraph = importGraph;
|
|
@@ -30110,7 +30659,7 @@ var Cycle = class {
|
|
|
30110
30659
|
}
|
|
30111
30660
|
};
|
|
30112
30661
|
|
|
30113
|
-
// bazel-out/
|
|
30662
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/imports.mjs
|
|
30114
30663
|
var import_typescript55 = __toESM(require("typescript"), 1);
|
|
30115
30664
|
var ImportGraph = class {
|
|
30116
30665
|
constructor(checker, perf) {
|
|
@@ -30202,7 +30751,7 @@ var Found = class {
|
|
|
30202
30751
|
}
|
|
30203
30752
|
};
|
|
30204
30753
|
|
|
30205
|
-
// bazel-out/
|
|
30754
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
|
|
30206
30755
|
var import_typescript56 = __toESM(require("typescript"), 1);
|
|
30207
30756
|
var FlatIndexGenerator = class {
|
|
30208
30757
|
constructor(entryPoint, relativeFlatIndexPath, moduleName) {
|
|
@@ -30227,7 +30776,7 @@ export * from '${relativeEntryPoint}';
|
|
|
30227
30776
|
}
|
|
30228
30777
|
};
|
|
30229
30778
|
|
|
30230
|
-
// bazel-out/
|
|
30779
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/logic.mjs
|
|
30231
30780
|
function findFlatIndexEntryPoint(rootFiles) {
|
|
30232
30781
|
const tsFiles = rootFiles.filter((file) => isNonDeclarationTsPath(file));
|
|
30233
30782
|
let resolvedEntryPoint = null;
|
|
@@ -30243,7 +30792,7 @@ function findFlatIndexEntryPoint(rootFiles) {
|
|
|
30243
30792
|
return resolvedEntryPoint;
|
|
30244
30793
|
}
|
|
30245
30794
|
|
|
30246
|
-
// bazel-out/
|
|
30795
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
|
|
30247
30796
|
var import_typescript58 = __toESM(require("typescript"), 1);
|
|
30248
30797
|
function checkForPrivateExports(entryPoint, checker, refGraph) {
|
|
30249
30798
|
const diagnostics = [];
|
|
@@ -30323,7 +30872,7 @@ function getDescriptorOfDeclaration(decl) {
|
|
|
30323
30872
|
}
|
|
30324
30873
|
}
|
|
30325
30874
|
|
|
30326
|
-
// bazel-out/
|
|
30875
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/reference_graph.mjs
|
|
30327
30876
|
var ReferenceGraph = class {
|
|
30328
30877
|
constructor() {
|
|
30329
30878
|
this.references = /* @__PURE__ */ new Map();
|
|
@@ -30377,7 +30926,7 @@ var ReferenceGraph = class {
|
|
|
30377
30926
|
}
|
|
30378
30927
|
};
|
|
30379
30928
|
|
|
30380
|
-
// bazel-out/
|
|
30929
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/api.mjs
|
|
30381
30930
|
var NgOriginalFile = Symbol("NgOriginalFile");
|
|
30382
30931
|
var UpdateMode;
|
|
30383
30932
|
(function(UpdateMode2) {
|
|
@@ -30385,13 +30934,13 @@ var UpdateMode;
|
|
|
30385
30934
|
UpdateMode2[UpdateMode2["Incremental"] = 1] = "Incremental";
|
|
30386
30935
|
})(UpdateMode || (UpdateMode = {}));
|
|
30387
30936
|
|
|
30388
|
-
// bazel-out/
|
|
30937
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
|
|
30389
30938
|
var import_typescript62 = __toESM(require("typescript"), 1);
|
|
30390
30939
|
|
|
30391
|
-
// bazel-out/
|
|
30940
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
30392
30941
|
var import_typescript59 = __toESM(require("typescript"), 1);
|
|
30393
30942
|
|
|
30394
|
-
// bazel-out/
|
|
30943
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/expando.mjs
|
|
30395
30944
|
var NgExtension = Symbol("NgExtension");
|
|
30396
30945
|
function isExtended(sf) {
|
|
30397
30946
|
return sf[NgExtension] !== void 0;
|
|
@@ -30451,13 +31000,13 @@ function retagTsFile(sf) {
|
|
|
30451
31000
|
}
|
|
30452
31001
|
}
|
|
30453
31002
|
|
|
30454
|
-
// bazel-out/
|
|
31003
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/util.mjs
|
|
30455
31004
|
var TS_EXTENSIONS = /\.tsx?$/i;
|
|
30456
31005
|
function makeShimFileName(fileName, suffix) {
|
|
30457
31006
|
return absoluteFrom(fileName.replace(TS_EXTENSIONS, suffix));
|
|
30458
31007
|
}
|
|
30459
31008
|
|
|
30460
|
-
// bazel-out/
|
|
31009
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
30461
31010
|
var ShimAdapter = class {
|
|
30462
31011
|
constructor(delegate, tsRootFiles, topLevelGenerators, perFileGenerators, oldProgram) {
|
|
30463
31012
|
this.delegate = delegate;
|
|
@@ -30552,7 +31101,7 @@ var ShimAdapter = class {
|
|
|
30552
31101
|
}
|
|
30553
31102
|
};
|
|
30554
31103
|
|
|
30555
|
-
// bazel-out/
|
|
31104
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
|
|
30556
31105
|
var ShimReferenceTagger = class {
|
|
30557
31106
|
constructor(shimExtensions) {
|
|
30558
31107
|
this.tagged = /* @__PURE__ */ new Set();
|
|
@@ -30586,7 +31135,7 @@ var ShimReferenceTagger = class {
|
|
|
30586
31135
|
}
|
|
30587
31136
|
};
|
|
30588
31137
|
|
|
30589
|
-
// bazel-out/
|
|
31138
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
|
|
30590
31139
|
var DelegatingCompilerHost = class {
|
|
30591
31140
|
constructor(delegate) {
|
|
30592
31141
|
this.delegate = delegate;
|
|
@@ -30699,7 +31248,7 @@ var TsCreateProgramDriver = class {
|
|
|
30699
31248
|
}
|
|
30700
31249
|
};
|
|
30701
31250
|
|
|
30702
|
-
// bazel-out/
|
|
31251
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.mjs
|
|
30703
31252
|
var FileDependencyGraph = class {
|
|
30704
31253
|
constructor() {
|
|
30705
31254
|
this.nodes = /* @__PURE__ */ new Map();
|
|
@@ -30766,7 +31315,7 @@ function isLogicallyChanged(sf, node, changedTsPaths, deletedTsPaths, changedRes
|
|
|
30766
31315
|
return false;
|
|
30767
31316
|
}
|
|
30768
31317
|
|
|
30769
|
-
// bazel-out/
|
|
31318
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
|
|
30770
31319
|
var IncrementalStateKind;
|
|
30771
31320
|
(function(IncrementalStateKind2) {
|
|
30772
31321
|
IncrementalStateKind2[IncrementalStateKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -30774,7 +31323,7 @@ var IncrementalStateKind;
|
|
|
30774
31323
|
IncrementalStateKind2[IncrementalStateKind2["Analyzed"] = 2] = "Analyzed";
|
|
30775
31324
|
})(IncrementalStateKind || (IncrementalStateKind = {}));
|
|
30776
31325
|
|
|
30777
|
-
// bazel-out/
|
|
31326
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
|
|
30778
31327
|
var PhaseKind;
|
|
30779
31328
|
(function(PhaseKind2) {
|
|
30780
31329
|
PhaseKind2[PhaseKind2["Analysis"] = 0] = "Analysis";
|
|
@@ -30975,7 +31524,7 @@ function toOriginalSourceFile(sf) {
|
|
|
30975
31524
|
}
|
|
30976
31525
|
}
|
|
30977
31526
|
|
|
30978
|
-
// bazel-out/
|
|
31527
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
|
|
30979
31528
|
var TrackedIncrementalBuildStrategy = class {
|
|
30980
31529
|
constructor() {
|
|
30981
31530
|
this.state = null;
|
|
@@ -30996,7 +31545,7 @@ var TrackedIncrementalBuildStrategy = class {
|
|
|
30996
31545
|
};
|
|
30997
31546
|
var SYM_INCREMENTAL_STATE = Symbol("NgIncrementalState");
|
|
30998
31547
|
|
|
30999
|
-
// bazel-out/
|
|
31548
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
|
|
31000
31549
|
var IdentifierKind;
|
|
31001
31550
|
(function(IdentifierKind2) {
|
|
31002
31551
|
IdentifierKind2[IdentifierKind2["Property"] = 0] = "Property";
|
|
@@ -31014,7 +31563,7 @@ var AbsoluteSourceSpan2 = class {
|
|
|
31014
31563
|
}
|
|
31015
31564
|
};
|
|
31016
31565
|
|
|
31017
|
-
// bazel-out/
|
|
31566
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/context.mjs
|
|
31018
31567
|
var IndexingContext = class {
|
|
31019
31568
|
constructor() {
|
|
31020
31569
|
this.components = /* @__PURE__ */ new Set();
|
|
@@ -31024,7 +31573,7 @@ var IndexingContext = class {
|
|
|
31024
31573
|
}
|
|
31025
31574
|
};
|
|
31026
31575
|
|
|
31027
|
-
// bazel-out/
|
|
31576
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
|
|
31028
31577
|
var ExpressionVisitor = class extends RecursiveAstVisitor2 {
|
|
31029
31578
|
constructor(expressionStr, absoluteOffset, boundTemplate, targetToIdentifier) {
|
|
31030
31579
|
super();
|
|
@@ -31260,7 +31809,7 @@ function getTemplateIdentifiers(boundTemplate) {
|
|
|
31260
31809
|
return { identifiers: visitor.identifiers, errors: visitor.errors };
|
|
31261
31810
|
}
|
|
31262
31811
|
|
|
31263
|
-
// bazel-out/
|
|
31812
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
|
|
31264
31813
|
function generateAnalysis(context) {
|
|
31265
31814
|
const analysis = /* @__PURE__ */ new Map();
|
|
31266
31815
|
context.components.forEach(({ declaration, selector, boundTemplate, templateMeta }) => {
|
|
@@ -31296,7 +31845,7 @@ function generateAnalysis(context) {
|
|
|
31296
31845
|
return analysis;
|
|
31297
31846
|
}
|
|
31298
31847
|
|
|
31299
|
-
// bazel-out/
|
|
31848
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/ng_module_index.mjs
|
|
31300
31849
|
var NgModuleIndexImpl = class {
|
|
31301
31850
|
constructor(metaReader, localReader) {
|
|
31302
31851
|
this.metaReader = metaReader;
|
|
@@ -31326,7 +31875,7 @@ var NgModuleIndexImpl = class {
|
|
|
31326
31875
|
this.indexed = true;
|
|
31327
31876
|
}
|
|
31328
31877
|
indexTrait(ref, seenTypesWithReexports) {
|
|
31329
|
-
var _a2,
|
|
31878
|
+
var _a2, _b2, _c2;
|
|
31330
31879
|
if (seenTypesWithReexports.has(ref.node)) {
|
|
31331
31880
|
return;
|
|
31332
31881
|
}
|
|
@@ -31346,7 +31895,7 @@ var NgModuleIndexImpl = class {
|
|
|
31346
31895
|
}
|
|
31347
31896
|
for (const childRef of meta.exports) {
|
|
31348
31897
|
this.indexTrait(childRef, seenTypesWithReexports);
|
|
31349
|
-
const childMeta = (
|
|
31898
|
+
const childMeta = (_c2 = (_b2 = this.metaReader.getDirectiveMetadata(childRef)) != null ? _b2 : this.metaReader.getPipeMetadata(childRef)) != null ? _c2 : this.metaReader.getNgModuleMetadata(childRef);
|
|
31350
31899
|
if (childMeta === null) {
|
|
31351
31900
|
continue;
|
|
31352
31901
|
}
|
|
@@ -31385,7 +31934,7 @@ var NgModuleIndexImpl = class {
|
|
|
31385
31934
|
}
|
|
31386
31935
|
};
|
|
31387
31936
|
|
|
31388
|
-
// bazel-out/
|
|
31937
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
|
|
31389
31938
|
var import_typescript65 = __toESM(require("typescript"), 1);
|
|
31390
31939
|
var CSS_PREPROCESSOR_EXT = /(\.scss|\.sass|\.less|\.styl)$/;
|
|
31391
31940
|
var RESOURCE_MARKER = ".$ngresource$";
|
|
@@ -31506,7 +32055,7 @@ var AdapterResourceLoader = class {
|
|
|
31506
32055
|
}
|
|
31507
32056
|
};
|
|
31508
32057
|
function createLookupResolutionHost(adapter) {
|
|
31509
|
-
var _a2,
|
|
32058
|
+
var _a2, _b2, _c2;
|
|
31510
32059
|
return {
|
|
31511
32060
|
directoryExists(directoryName) {
|
|
31512
32061
|
if (directoryName.includes(RESOURCE_MARKER)) {
|
|
@@ -31527,13 +32076,13 @@ function createLookupResolutionHost(adapter) {
|
|
|
31527
32076
|
readFile: adapter.readFile.bind(adapter),
|
|
31528
32077
|
getCurrentDirectory: adapter.getCurrentDirectory.bind(adapter),
|
|
31529
32078
|
getDirectories: (_a2 = adapter.getDirectories) == null ? void 0 : _a2.bind(adapter),
|
|
31530
|
-
realpath: (
|
|
31531
|
-
trace: (
|
|
32079
|
+
realpath: (_b2 = adapter.realpath) == null ? void 0 : _b2.bind(adapter),
|
|
32080
|
+
trace: (_c2 = adapter.trace) == null ? void 0 : _c2.bind(adapter),
|
|
31532
32081
|
useCaseSensitiveFileNames: typeof adapter.useCaseSensitiveFileNames === "function" ? adapter.useCaseSensitiveFileNames.bind(adapter) : adapter.useCaseSensitiveFileNames
|
|
31533
32082
|
};
|
|
31534
32083
|
}
|
|
31535
32084
|
|
|
31536
|
-
// bazel-out/
|
|
32085
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/standalone.mjs
|
|
31537
32086
|
var StandaloneComponentScopeReader = class {
|
|
31538
32087
|
constructor(metaReader, localModuleReader, dtsModuleReader) {
|
|
31539
32088
|
this.metaReader = metaReader;
|
|
@@ -31611,21 +32160,21 @@ var StandaloneComponentScopeReader = class {
|
|
|
31611
32160
|
}
|
|
31612
32161
|
};
|
|
31613
32162
|
|
|
31614
|
-
// bazel-out/
|
|
32163
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/checker.mjs
|
|
31615
32164
|
var OptimizeFor;
|
|
31616
32165
|
(function(OptimizeFor2) {
|
|
31617
32166
|
OptimizeFor2[OptimizeFor2["SingleFile"] = 0] = "SingleFile";
|
|
31618
32167
|
OptimizeFor2[OptimizeFor2["WholeProgram"] = 1] = "WholeProgram";
|
|
31619
32168
|
})(OptimizeFor || (OptimizeFor = {}));
|
|
31620
32169
|
|
|
31621
|
-
// bazel-out/
|
|
32170
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/completion.mjs
|
|
31622
32171
|
var CompletionKind;
|
|
31623
32172
|
(function(CompletionKind2) {
|
|
31624
32173
|
CompletionKind2[CompletionKind2["Reference"] = 0] = "Reference";
|
|
31625
32174
|
CompletionKind2[CompletionKind2["Variable"] = 1] = "Variable";
|
|
31626
32175
|
})(CompletionKind || (CompletionKind = {}));
|
|
31627
32176
|
|
|
31628
|
-
// bazel-out/
|
|
32177
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/scope.mjs
|
|
31629
32178
|
var PotentialImportKind;
|
|
31630
32179
|
(function(PotentialImportKind2) {
|
|
31631
32180
|
PotentialImportKind2[PotentialImportKind2["NgModule"] = 0] = "NgModule";
|
|
@@ -31637,7 +32186,7 @@ var PotentialImportMode;
|
|
|
31637
32186
|
PotentialImportMode2[PotentialImportMode2["ForceDirect"] = 1] = "ForceDirect";
|
|
31638
32187
|
})(PotentialImportMode || (PotentialImportMode = {}));
|
|
31639
32188
|
|
|
31640
|
-
// bazel-out/
|
|
32189
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.mjs
|
|
31641
32190
|
var SymbolKind;
|
|
31642
32191
|
(function(SymbolKind2) {
|
|
31643
32192
|
SymbolKind2[SymbolKind2["Input"] = 0] = "Input";
|
|
@@ -31653,7 +32202,7 @@ var SymbolKind;
|
|
|
31653
32202
|
SymbolKind2[SymbolKind2["Pipe"] = 10] = "Pipe";
|
|
31654
32203
|
})(SymbolKind || (SymbolKind = {}));
|
|
31655
32204
|
|
|
31656
|
-
// bazel-out/
|
|
32205
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
|
|
31657
32206
|
var import_typescript66 = __toESM(require("typescript"), 1);
|
|
31658
32207
|
function makeTemplateDiagnostic(templateId, mapping, span, category, code, messageText, relatedMessages) {
|
|
31659
32208
|
var _a2;
|
|
@@ -31760,7 +32309,7 @@ function parseTemplateAsSourceFile(fileName, template2) {
|
|
|
31760
32309
|
return import_typescript66.default.createSourceFile(fileName, template2, import_typescript66.default.ScriptTarget.Latest, false, import_typescript66.default.ScriptKind.JSX);
|
|
31761
32310
|
}
|
|
31762
32311
|
|
|
31763
|
-
// bazel-out/
|
|
32312
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
|
|
31764
32313
|
var TEMPLATE_ID = Symbol("ngTemplateId");
|
|
31765
32314
|
var NEXT_TEMPLATE_ID = Symbol("ngNextTemplateId");
|
|
31766
32315
|
function getTemplateId(clazz) {
|
|
@@ -31777,10 +32326,10 @@ function allocateTemplateId(sf) {
|
|
|
31777
32326
|
return `tcb${sf[NEXT_TEMPLATE_ID]++}`;
|
|
31778
32327
|
}
|
|
31779
32328
|
|
|
31780
|
-
// bazel-out/
|
|
32329
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
31781
32330
|
var import_typescript68 = __toESM(require("typescript"), 1);
|
|
31782
32331
|
|
|
31783
|
-
// bazel-out/
|
|
32332
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
|
|
31784
32333
|
var import_typescript67 = __toESM(require("typescript"), 1);
|
|
31785
32334
|
var parseSpanComment = /^(\d+),(\d+)$/;
|
|
31786
32335
|
function readSpanComment(node, sourceFile = node.getSourceFile()) {
|
|
@@ -31909,7 +32458,7 @@ function hasExpressionIdentifier(sourceFile, node, identifier) {
|
|
|
31909
32458
|
}) || false;
|
|
31910
32459
|
}
|
|
31911
32460
|
|
|
31912
|
-
// bazel-out/
|
|
32461
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
31913
32462
|
var CompletionEngine = class {
|
|
31914
32463
|
constructor(tcb, data, tcbPath, tcbIsShim) {
|
|
31915
32464
|
this.tcb = tcb;
|
|
@@ -32066,10 +32615,10 @@ var CompletionEngine = class {
|
|
|
32066
32615
|
}
|
|
32067
32616
|
};
|
|
32068
32617
|
|
|
32069
|
-
// bazel-out/
|
|
32618
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
32070
32619
|
var import_typescript83 = __toESM(require("typescript"), 1);
|
|
32071
32620
|
|
|
32072
|
-
// bazel-out/
|
|
32621
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
|
|
32073
32622
|
var import_typescript69 = __toESM(require("typescript"), 1);
|
|
32074
32623
|
var REGISTRY = new DomElementSchemaRegistry();
|
|
32075
32624
|
var REMOVE_XHTML_REGEX = /^:xhtml:/;
|
|
@@ -32121,10 +32670,10 @@ var RegistryDomSchemaChecker = class {
|
|
|
32121
32670
|
}
|
|
32122
32671
|
};
|
|
32123
32672
|
|
|
32124
|
-
// bazel-out/
|
|
32673
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
32125
32674
|
var import_typescript76 = __toESM(require("typescript"), 1);
|
|
32126
32675
|
|
|
32127
|
-
// bazel-out/
|
|
32676
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
|
|
32128
32677
|
var import_typescript70 = __toESM(require("typescript"), 1);
|
|
32129
32678
|
var SAFE_TO_CAST_WITHOUT_PARENS = /* @__PURE__ */ new Set([
|
|
32130
32679
|
import_typescript70.default.SyntaxKind.ParenthesizedExpression,
|
|
@@ -32198,16 +32747,16 @@ function isAccessExpression(node) {
|
|
|
32198
32747
|
return import_typescript70.default.isPropertyAccessExpression(node) || import_typescript70.default.isElementAccessExpression(node);
|
|
32199
32748
|
}
|
|
32200
32749
|
|
|
32201
|
-
// bazel-out/
|
|
32750
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
32202
32751
|
var import_typescript75 = __toESM(require("typescript"), 1);
|
|
32203
32752
|
|
|
32204
|
-
// bazel-out/
|
|
32753
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
32205
32754
|
var import_typescript73 = __toESM(require("typescript"), 1);
|
|
32206
32755
|
|
|
32207
|
-
// bazel-out/
|
|
32756
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
|
|
32208
32757
|
var import_typescript72 = __toESM(require("typescript"), 1);
|
|
32209
32758
|
|
|
32210
|
-
// bazel-out/
|
|
32759
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_emitter.mjs
|
|
32211
32760
|
var import_typescript71 = __toESM(require("typescript"), 1);
|
|
32212
32761
|
var INELIGIBLE = {};
|
|
32213
32762
|
function canEmitType(type, canEmit) {
|
|
@@ -32282,7 +32831,7 @@ var TypeEmitter = class {
|
|
|
32282
32831
|
}
|
|
32283
32832
|
};
|
|
32284
32833
|
|
|
32285
|
-
// bazel-out/
|
|
32834
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
|
|
32286
32835
|
var TypeParameterEmitter = class {
|
|
32287
32836
|
constructor(typeParameters, reflector) {
|
|
32288
32837
|
this.typeParameters = typeParameters;
|
|
@@ -32359,7 +32908,7 @@ var TypeParameterEmitter = class {
|
|
|
32359
32908
|
}
|
|
32360
32909
|
};
|
|
32361
32910
|
|
|
32362
|
-
// bazel-out/
|
|
32911
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
32363
32912
|
var TcbInliningRequirement;
|
|
32364
32913
|
(function(TcbInliningRequirement2) {
|
|
32365
32914
|
TcbInliningRequirement2[TcbInliningRequirement2["MustInline"] = 0] = "MustInline";
|
|
@@ -32439,7 +32988,7 @@ function checkIfGenericTypeBoundsCanBeEmitted(node, reflector, env) {
|
|
|
32439
32988
|
return emitter.canEmit((ref) => env.canReferenceType(ref));
|
|
32440
32989
|
}
|
|
32441
32990
|
|
|
32442
|
-
// bazel-out/
|
|
32991
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
32443
32992
|
function generateTypeCtorDeclarationFn(node, meta, nodeTypeRef, typeParams) {
|
|
32444
32993
|
const rawTypeArgs = typeParams !== void 0 ? generateGenericArgs(typeParams) : void 0;
|
|
32445
32994
|
const rawType = import_typescript75.default.factory.createTypeReferenceNode(nodeTypeRef, rawTypeArgs);
|
|
@@ -32550,7 +33099,7 @@ function typeParametersWithDefaultTypes(params) {
|
|
|
32550
33099
|
});
|
|
32551
33100
|
}
|
|
32552
33101
|
|
|
32553
|
-
// bazel-out/
|
|
33102
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
32554
33103
|
var Environment = class {
|
|
32555
33104
|
constructor(config, importManager, refEmitter, reflector, contextFile) {
|
|
32556
33105
|
this.config = config;
|
|
@@ -32644,7 +33193,7 @@ var Environment = class {
|
|
|
32644
33193
|
}
|
|
32645
33194
|
};
|
|
32646
33195
|
|
|
32647
|
-
// bazel-out/
|
|
33196
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
|
|
32648
33197
|
var import_typescript77 = __toESM(require("typescript"), 1);
|
|
32649
33198
|
var OutOfBandDiagnosticRecorderImpl = class {
|
|
32650
33199
|
constructor(resolver) {
|
|
@@ -32675,7 +33224,7 @@ var OutOfBandDiagnosticRecorderImpl = class {
|
|
|
32675
33224
|
this.recordedPipes.add(ast);
|
|
32676
33225
|
}
|
|
32677
33226
|
illegalAssignmentToTemplateVar(templateId, assignment, target) {
|
|
32678
|
-
var _a2,
|
|
33227
|
+
var _a2, _b2;
|
|
32679
33228
|
const mapping = this.resolver.getSourceMapping(templateId);
|
|
32680
33229
|
const errorMsg = `Cannot use variable '${assignment.name}' as the left-hand side of an assignment expression. Template variables are read-only.`;
|
|
32681
33230
|
const sourceSpan = this.resolver.toParseSourceSpan(templateId, assignment.sourceSpan);
|
|
@@ -32685,7 +33234,7 @@ var OutOfBandDiagnosticRecorderImpl = class {
|
|
|
32685
33234
|
this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, sourceSpan, import_typescript77.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.WRITE_TO_READ_ONLY_VARIABLE), errorMsg, [{
|
|
32686
33235
|
text: `The variable ${assignment.name} is declared here.`,
|
|
32687
33236
|
start: ((_a2 = target.valueSpan) == null ? void 0 : _a2.start.offset) || target.sourceSpan.start.offset,
|
|
32688
|
-
end: ((
|
|
33237
|
+
end: ((_b2 = target.valueSpan) == null ? void 0 : _b2.end.offset) || target.sourceSpan.end.offset,
|
|
32689
33238
|
sourceFile: mapping.node.getSourceFile()
|
|
32690
33239
|
}]));
|
|
32691
33240
|
}
|
|
@@ -32779,7 +33328,7 @@ function makeInlineDiagnostic(templateId, code, node, messageText, relatedInform
|
|
|
32779
33328
|
});
|
|
32780
33329
|
}
|
|
32781
33330
|
|
|
32782
|
-
// bazel-out/
|
|
33331
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
|
|
32783
33332
|
var import_typescript78 = __toESM(require("typescript"), 1);
|
|
32784
33333
|
var TypeCheckShimGenerator = class {
|
|
32785
33334
|
constructor() {
|
|
@@ -32797,10 +33346,10 @@ var TypeCheckShimGenerator = class {
|
|
|
32797
33346
|
}
|
|
32798
33347
|
};
|
|
32799
33348
|
|
|
32800
|
-
// bazel-out/
|
|
33349
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
32801
33350
|
var import_typescript81 = __toESM(require("typescript"), 1);
|
|
32802
33351
|
|
|
32803
|
-
// bazel-out/
|
|
33352
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
|
|
32804
33353
|
var import_typescript79 = __toESM(require("typescript"), 1);
|
|
32805
33354
|
function wrapForDiagnostics(expr) {
|
|
32806
33355
|
return import_typescript79.default.factory.createParenthesizedExpression(expr);
|
|
@@ -32845,7 +33394,7 @@ function translateDiagnostic(diagnostic, resolver) {
|
|
|
32845
33394
|
return makeTemplateDiagnostic(sourceLocation.id, templateSourceMapping, span, diagnostic.category, diagnostic.code, diagnostic.messageText);
|
|
32846
33395
|
}
|
|
32847
33396
|
|
|
32848
|
-
// bazel-out/
|
|
33397
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
|
|
32849
33398
|
var import_typescript80 = __toESM(require("typescript"), 1);
|
|
32850
33399
|
var NULL_AS_ANY = import_typescript80.default.factory.createAsExpression(import_typescript80.default.factory.createNull(), import_typescript80.default.factory.createKeywordTypeNode(import_typescript80.default.SyntaxKind.AnyKeyword));
|
|
32851
33400
|
var UNDEFINED = import_typescript80.default.factory.createIdentifier("undefined");
|
|
@@ -33177,7 +33726,7 @@ var VeSafeLhsInferenceBugDetector = _VeSafeLhsInferenceBugDetector;
|
|
|
33177
33726
|
_VeSafeLhsInferenceBugDetector.SINGLETON = new _VeSafeLhsInferenceBugDetector();
|
|
33178
33727
|
})();
|
|
33179
33728
|
|
|
33180
|
-
// bazel-out/
|
|
33729
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_semantics.mjs
|
|
33181
33730
|
var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
|
|
33182
33731
|
constructor(templateId, boundTarget, oob) {
|
|
33183
33732
|
super();
|
|
@@ -33200,7 +33749,7 @@ var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
|
|
|
33200
33749
|
}
|
|
33201
33750
|
};
|
|
33202
33751
|
|
|
33203
|
-
// bazel-out/
|
|
33752
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
33204
33753
|
var TcbGenericContextBehavior;
|
|
33205
33754
|
(function(TcbGenericContextBehavior2) {
|
|
33206
33755
|
TcbGenericContextBehavior2[TcbGenericContextBehavior2["UseEmitter"] = 0] = "UseEmitter";
|
|
@@ -34141,15 +34690,15 @@ var TcbExpressionTranslator = class {
|
|
|
34141
34690
|
} else if (ast instanceof BindingPipe) {
|
|
34142
34691
|
const expr = this.translate(ast.exp);
|
|
34143
34692
|
const pipeRef = this.tcb.getPipeByName(ast.name);
|
|
34144
|
-
let
|
|
34693
|
+
let pipe2;
|
|
34145
34694
|
if (pipeRef === null) {
|
|
34146
34695
|
this.tcb.oobRecorder.missingPipe(this.tcb.id, ast);
|
|
34147
|
-
|
|
34696
|
+
pipe2 = NULL_AS_ANY;
|
|
34148
34697
|
} else {
|
|
34149
|
-
|
|
34698
|
+
pipe2 = this.tcb.env.pipeInst(pipeRef);
|
|
34150
34699
|
}
|
|
34151
34700
|
const args = ast.args.map((arg) => this.translate(arg));
|
|
34152
|
-
let methodAccess = import_typescript81.default.factory.createPropertyAccessExpression(
|
|
34701
|
+
let methodAccess = import_typescript81.default.factory.createPropertyAccessExpression(pipe2, "transform");
|
|
34153
34702
|
addParseSpanInfo(methodAccess, ast.nameSpan);
|
|
34154
34703
|
if (!this.tcb.env.config.checkTypeOfPipes) {
|
|
34155
34704
|
methodAccess = import_typescript81.default.factory.createAsExpression(methodAccess, import_typescript81.default.factory.createKeywordTypeNode(import_typescript81.default.SyntaxKind.AnyKeyword));
|
|
@@ -34327,7 +34876,7 @@ var TcbEventHandlerTranslator = class extends TcbExpressionTranslator {
|
|
|
34327
34876
|
}
|
|
34328
34877
|
};
|
|
34329
34878
|
|
|
34330
|
-
// bazel-out/
|
|
34879
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
|
|
34331
34880
|
var import_typescript82 = __toESM(require("typescript"), 1);
|
|
34332
34881
|
var TypeCheckFile = class extends Environment {
|
|
34333
34882
|
constructor(fileName, config, refEmitter, reflector, compilerHost) {
|
|
@@ -34363,7 +34912,7 @@ var TypeCheckFile = class extends Environment {
|
|
|
34363
34912
|
}
|
|
34364
34913
|
};
|
|
34365
34914
|
|
|
34366
|
-
// bazel-out/
|
|
34915
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
34367
34916
|
var InliningMode;
|
|
34368
34917
|
(function(InliningMode2) {
|
|
34369
34918
|
InliningMode2[InliningMode2["InlineOps"] = 0] = "InlineOps";
|
|
@@ -34600,7 +35149,7 @@ function splitStringAtPoints(str, points) {
|
|
|
34600
35149
|
return splits;
|
|
34601
35150
|
}
|
|
34602
35151
|
|
|
34603
|
-
// bazel-out/
|
|
35152
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/line_mappings.mjs
|
|
34604
35153
|
var LF_CHAR = 10;
|
|
34605
35154
|
var CR_CHAR = 13;
|
|
34606
35155
|
var LINE_SEP_CHAR = 8232;
|
|
@@ -34641,7 +35190,7 @@ function findClosestLineStartPosition(linesMap, position, low = 0, high = linesM
|
|
|
34641
35190
|
return low - 1;
|
|
34642
35191
|
}
|
|
34643
35192
|
|
|
34644
|
-
// bazel-out/
|
|
35193
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
|
|
34645
35194
|
var TemplateSource = class {
|
|
34646
35195
|
constructor(mapping, file) {
|
|
34647
35196
|
this.mapping = mapping;
|
|
@@ -34692,7 +35241,7 @@ var TemplateSourceManager = class {
|
|
|
34692
35241
|
}
|
|
34693
35242
|
};
|
|
34694
35243
|
|
|
34695
|
-
// bazel-out/
|
|
35244
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
|
|
34696
35245
|
var import_typescript84 = __toESM(require("typescript"), 1);
|
|
34697
35246
|
var SymbolBuilder = class {
|
|
34698
35247
|
constructor(tcbPath, tcbIsShim, typeCheckBlock, templateData, componentScopeReader, getTypeChecker) {
|
|
@@ -35169,7 +35718,7 @@ function sourceSpanEqual(a, b) {
|
|
|
35169
35718
|
return a.start.offset === b.start.offset && a.end.offset === b.end.offset;
|
|
35170
35719
|
}
|
|
35171
35720
|
|
|
35172
|
-
// bazel-out/
|
|
35721
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
|
|
35173
35722
|
var REGISTRY2 = new DomElementSchemaRegistry();
|
|
35174
35723
|
var TemplateTypeCheckerImpl = class {
|
|
35175
35724
|
constructor(originalProgram, programDriver, typeCheckAdapter, config, refEmitter, reflector, compilerHost, priorBuild, metaReader, localMetaReader, ngModuleIndex, componentScopeReader, typeCheckScopeRegistry, perf) {
|
|
@@ -35530,9 +36079,9 @@ var TemplateTypeCheckerImpl = class {
|
|
|
35530
36079
|
return builder;
|
|
35531
36080
|
}
|
|
35532
36081
|
getPotentialTemplateDirectives(component) {
|
|
35533
|
-
var _a2,
|
|
36082
|
+
var _a2, _b2;
|
|
35534
36083
|
const typeChecker = this.programDriver.getProgram().getTypeChecker();
|
|
35535
|
-
const inScopeDirectives = (
|
|
36084
|
+
const inScopeDirectives = (_b2 = (_a2 = this.getScopeData(component)) == null ? void 0 : _a2.directives) != null ? _b2 : [];
|
|
35536
36085
|
const resultingDirectives = /* @__PURE__ */ new Map();
|
|
35537
36086
|
for (const d of inScopeDirectives) {
|
|
35538
36087
|
resultingDirectives.set(d.ref.node, d);
|
|
@@ -35551,9 +36100,9 @@ var TemplateTypeCheckerImpl = class {
|
|
|
35551
36100
|
return Array.from(resultingDirectives.values());
|
|
35552
36101
|
}
|
|
35553
36102
|
getPotentialPipes(component) {
|
|
35554
|
-
var _a2,
|
|
36103
|
+
var _a2, _b2;
|
|
35555
36104
|
const typeChecker = this.programDriver.getProgram().getTypeChecker();
|
|
35556
|
-
const inScopePipes = (
|
|
36105
|
+
const inScopePipes = (_b2 = (_a2 = this.getScopeData(component)) == null ? void 0 : _a2.pipes) != null ? _b2 : [];
|
|
35557
36106
|
const resultingPipes = /* @__PURE__ */ new Map();
|
|
35558
36107
|
for (const p2 of inScopePipes) {
|
|
35559
36108
|
resultingPipes.set(p2.ref.node, p2);
|
|
@@ -35583,11 +36132,11 @@ var TemplateTypeCheckerImpl = class {
|
|
|
35583
36132
|
}
|
|
35584
36133
|
return this.metaReader.getNgModuleMetadata(new Reference2(module3));
|
|
35585
36134
|
}
|
|
35586
|
-
getPipeMetadata(
|
|
35587
|
-
if (!isNamedClassDeclaration(
|
|
36135
|
+
getPipeMetadata(pipe2) {
|
|
36136
|
+
if (!isNamedClassDeclaration(pipe2)) {
|
|
35588
36137
|
return null;
|
|
35589
36138
|
}
|
|
35590
|
-
return this.metaReader.getPipeMetadata(new Reference2(
|
|
36139
|
+
return this.metaReader.getPipeMetadata(new Reference2(pipe2));
|
|
35591
36140
|
}
|
|
35592
36141
|
getPotentialElementTags(component) {
|
|
35593
36142
|
if (this.elementTagCache.has(component)) {
|
|
@@ -35659,7 +36208,7 @@ var TemplateTypeCheckerImpl = class {
|
|
|
35659
36208
|
return scope.ngModule;
|
|
35660
36209
|
}
|
|
35661
36210
|
emit(kind, refTo, inContext) {
|
|
35662
|
-
var _a2,
|
|
36211
|
+
var _a2, _b2;
|
|
35663
36212
|
const emittedRef = this.refEmitter.emit(refTo, inContext.getSourceFile());
|
|
35664
36213
|
if (emittedRef.kind === 1) {
|
|
35665
36214
|
return null;
|
|
@@ -35668,7 +36217,7 @@ var TemplateTypeCheckerImpl = class {
|
|
|
35668
36217
|
if (emitted instanceof WrappedNodeExpr) {
|
|
35669
36218
|
let isForwardReference = false;
|
|
35670
36219
|
if (emitted.node.getStart() > inContext.getStart()) {
|
|
35671
|
-
const declaration = (
|
|
36220
|
+
const declaration = (_b2 = (_a2 = this.programDriver.getProgram().getTypeChecker().getTypeAtLocation(emitted.node).getSymbol()) == null ? void 0 : _a2.declarations) == null ? void 0 : _b2[0];
|
|
35672
36221
|
if (declaration && declaration.getSourceFile() === inContext.getSourceFile()) {
|
|
35673
36222
|
isForwardReference = true;
|
|
35674
36223
|
}
|
|
@@ -35862,7 +36411,7 @@ var SingleShimTypeCheckingHost = class extends SingleFileTypeCheckingHost {
|
|
|
35862
36411
|
}
|
|
35863
36412
|
};
|
|
35864
36413
|
|
|
35865
|
-
// bazel-out/
|
|
36414
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
|
|
35866
36415
|
var TemplateCheckWithVisitor = class {
|
|
35867
36416
|
run(ctx, component, template2) {
|
|
35868
36417
|
const visitor = new TemplateVisitor2(ctx, component, this);
|
|
@@ -35938,7 +36487,7 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor2 {
|
|
|
35938
36487
|
}
|
|
35939
36488
|
};
|
|
35940
36489
|
|
|
35941
|
-
// bazel-out/
|
|
36490
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
|
|
35942
36491
|
var InvalidBananaInBoxCheck = class extends TemplateCheckWithVisitor {
|
|
35943
36492
|
constructor() {
|
|
35944
36493
|
super(...arguments);
|
|
@@ -35963,7 +36512,7 @@ var factory = {
|
|
|
35963
36512
|
create: () => new InvalidBananaInBoxCheck()
|
|
35964
36513
|
};
|
|
35965
36514
|
|
|
35966
|
-
// bazel-out/
|
|
36515
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.mjs
|
|
35967
36516
|
var KNOWN_CONTROL_FLOW_DIRECTIVES = /* @__PURE__ */ new Map([
|
|
35968
36517
|
["ngIf", "NgIf"],
|
|
35969
36518
|
["ngFor", "NgFor"],
|
|
@@ -36007,7 +36556,7 @@ var factory2 = {
|
|
|
36007
36556
|
}
|
|
36008
36557
|
};
|
|
36009
36558
|
|
|
36010
|
-
// bazel-out/
|
|
36559
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.mjs
|
|
36011
36560
|
var MissingNgForOfLetCheck = class extends TemplateCheckWithVisitor {
|
|
36012
36561
|
constructor() {
|
|
36013
36562
|
super(...arguments);
|
|
@@ -36039,7 +36588,7 @@ var factory3 = {
|
|
|
36039
36588
|
create: () => new MissingNgForOfLetCheck()
|
|
36040
36589
|
};
|
|
36041
36590
|
|
|
36042
|
-
// bazel-out/
|
|
36591
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
|
|
36043
36592
|
var import_typescript87 = __toESM(require("typescript"), 1);
|
|
36044
36593
|
var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
36045
36594
|
constructor() {
|
|
@@ -36083,7 +36632,7 @@ var factory4 = {
|
|
|
36083
36632
|
}
|
|
36084
36633
|
};
|
|
36085
36634
|
|
|
36086
|
-
// bazel-out/
|
|
36635
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.mjs
|
|
36087
36636
|
var import_typescript88 = __toESM(require("typescript"), 1);
|
|
36088
36637
|
var OptionalChainNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
36089
36638
|
constructor() {
|
|
@@ -36128,7 +36677,7 @@ var factory5 = {
|
|
|
36128
36677
|
}
|
|
36129
36678
|
};
|
|
36130
36679
|
|
|
36131
|
-
// bazel-out/
|
|
36680
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.mjs
|
|
36132
36681
|
var STYLE_SUFFIXES = ["px", "%", "em"];
|
|
36133
36682
|
var SuffixNotSupportedCheck = class extends TemplateCheckWithVisitor {
|
|
36134
36683
|
constructor() {
|
|
@@ -36151,7 +36700,7 @@ var factory6 = {
|
|
|
36151
36700
|
create: () => new SuffixNotSupportedCheck()
|
|
36152
36701
|
};
|
|
36153
36702
|
|
|
36154
|
-
// bazel-out/
|
|
36703
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.mjs
|
|
36155
36704
|
var TextAttributeNotBindingSpec = class extends TemplateCheckWithVisitor {
|
|
36156
36705
|
constructor() {
|
|
36157
36706
|
super(...arguments);
|
|
@@ -36189,10 +36738,10 @@ var factory7 = {
|
|
|
36189
36738
|
create: () => new TextAttributeNotBindingSpec()
|
|
36190
36739
|
};
|
|
36191
36740
|
|
|
36192
|
-
// bazel-out/
|
|
36741
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
36193
36742
|
var import_typescript89 = __toESM(require("typescript"), 1);
|
|
36194
36743
|
|
|
36195
|
-
// bazel-out/
|
|
36744
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
|
|
36196
36745
|
var DiagnosticCategoryLabel;
|
|
36197
36746
|
(function(DiagnosticCategoryLabel2) {
|
|
36198
36747
|
DiagnosticCategoryLabel2["Warning"] = "warning";
|
|
@@ -36200,14 +36749,14 @@ var DiagnosticCategoryLabel;
|
|
|
36200
36749
|
DiagnosticCategoryLabel2["Suppress"] = "suppress";
|
|
36201
36750
|
})(DiagnosticCategoryLabel || (DiagnosticCategoryLabel = {}));
|
|
36202
36751
|
|
|
36203
|
-
// bazel-out/
|
|
36752
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
36204
36753
|
var ExtendedTemplateCheckerImpl = class {
|
|
36205
36754
|
constructor(templateTypeChecker, typeChecker, templateCheckFactories, options) {
|
|
36206
|
-
var _a2,
|
|
36755
|
+
var _a2, _b2, _c2, _d2, _e2;
|
|
36207
36756
|
this.partialCtx = { templateTypeChecker, typeChecker };
|
|
36208
36757
|
this.templateChecks = /* @__PURE__ */ new Map();
|
|
36209
36758
|
for (const factory8 of templateCheckFactories) {
|
|
36210
|
-
const category = diagnosticLabelToCategory((
|
|
36759
|
+
const category = diagnosticLabelToCategory((_e2 = (_d2 = (_b2 = (_a2 = options == null ? void 0 : options.extendedDiagnostics) == null ? void 0 : _a2.checks) == null ? void 0 : _b2[factory8.name]) != null ? _d2 : (_c2 = options == null ? void 0 : options.extendedDiagnostics) == null ? void 0 : _c2.defaultCategory) != null ? _e2 : DiagnosticCategoryLabel.Warning);
|
|
36211
36760
|
if (category === null) {
|
|
36212
36761
|
continue;
|
|
36213
36762
|
}
|
|
@@ -36252,7 +36801,7 @@ function assertNever(value) {
|
|
|
36252
36801
|
${value}`);
|
|
36253
36802
|
}
|
|
36254
36803
|
|
|
36255
|
-
// bazel-out/
|
|
36804
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
|
|
36256
36805
|
var ALL_DIAGNOSTIC_FACTORIES = [
|
|
36257
36806
|
factory,
|
|
36258
36807
|
factory4,
|
|
@@ -36263,7 +36812,7 @@ var ALL_DIAGNOSTIC_FACTORIES = [
|
|
|
36263
36812
|
factory6
|
|
36264
36813
|
];
|
|
36265
36814
|
|
|
36266
|
-
// bazel-out/
|
|
36815
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
36267
36816
|
var CompilationTicketKind;
|
|
36268
36817
|
(function(CompilationTicketKind2) {
|
|
36269
36818
|
CompilationTicketKind2[CompilationTicketKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -36519,7 +37068,7 @@ var NgCompiler = class {
|
|
|
36519
37068
|
defaultImportTracker.importPreservingTransformer()
|
|
36520
37069
|
];
|
|
36521
37070
|
const afterDeclarations = [];
|
|
36522
|
-
if (compilation.dtsTransforms !== null) {
|
|
37071
|
+
if (this.options.compilationMode !== "experimental-local" && compilation.dtsTransforms !== null) {
|
|
36523
37072
|
afterDeclarations.push(declarationTransformFactory(compilation.dtsTransforms, compilation.reflector, compilation.refEmitter, importRewriter));
|
|
36524
37073
|
}
|
|
36525
37074
|
if (compilation.aliasingHost !== null && compilation.aliasingHost.aliasExportsInDts) {
|
|
@@ -36849,7 +37398,7 @@ function getR3SymbolsFile(program) {
|
|
|
36849
37398
|
return program.getSourceFiles().find((file) => file.fileName.indexOf("r3_symbols.ts") >= 0) || null;
|
|
36850
37399
|
}
|
|
36851
37400
|
function* verifyCompatibleTypeCheckOptions(options) {
|
|
36852
|
-
var _a2,
|
|
37401
|
+
var _a2, _b2, _c2;
|
|
36853
37402
|
if (options.fullTemplateTypeCheck === false && options.strictTemplates === true) {
|
|
36854
37403
|
yield makeConfigDiagnostic({
|
|
36855
37404
|
category: import_typescript90.default.DiagnosticCategory.Error,
|
|
@@ -36899,7 +37448,7 @@ ${allowedCategoryLabels.join("\n")}
|
|
|
36899
37448
|
});
|
|
36900
37449
|
}
|
|
36901
37450
|
const allExtendedDiagnosticNames = ALL_DIAGNOSTIC_FACTORIES.map((factory8) => factory8.name);
|
|
36902
|
-
for (const [checkName, category] of Object.entries((
|
|
37451
|
+
for (const [checkName, category] of Object.entries((_c2 = (_b2 = options.extendedDiagnostics) == null ? void 0 : _b2.checks) != null ? _c2 : {})) {
|
|
36903
37452
|
if (!allExtendedDiagnosticNames.includes(checkName)) {
|
|
36904
37453
|
yield makeConfigDiagnostic({
|
|
36905
37454
|
category: import_typescript90.default.DiagnosticCategory.Error,
|
|
@@ -36982,7 +37531,7 @@ function versionMapFromProgram(program, driver) {
|
|
|
36982
37531
|
return versions;
|
|
36983
37532
|
}
|
|
36984
37533
|
|
|
36985
|
-
// bazel-out/
|
|
37534
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
|
|
36986
37535
|
var import_typescript92 = __toESM(require("typescript"), 1);
|
|
36987
37536
|
var DelegatingCompilerHost2 = class {
|
|
36988
37537
|
constructor(delegate) {
|
|
@@ -37115,7 +37664,7 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
|
|
|
37115
37664
|
}
|
|
37116
37665
|
};
|
|
37117
37666
|
|
|
37118
|
-
// bazel-out/
|
|
37667
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
37119
37668
|
var NgtscProgram = class {
|
|
37120
37669
|
constructor(rootNames, options, delegateHost, oldProgram) {
|
|
37121
37670
|
this.options = options;
|
|
@@ -37239,10 +37788,10 @@ var NgtscProgram = class {
|
|
|
37239
37788
|
return [];
|
|
37240
37789
|
}
|
|
37241
37790
|
emitXi18n() {
|
|
37242
|
-
var _a2,
|
|
37791
|
+
var _a2, _b2, _c2;
|
|
37243
37792
|
const ctx = new MessageBundle(new HtmlParser(), [], {}, (_a2 = this.options.i18nOutLocale) != null ? _a2 : null);
|
|
37244
37793
|
this.compiler.xi18n(ctx);
|
|
37245
|
-
i18nExtract((
|
|
37794
|
+
i18nExtract((_b2 = this.options.i18nOutFormat) != null ? _b2 : null, (_c2 = this.options.i18nOutFile) != null ? _c2 : null, this.host, this.options, ctx, resolve);
|
|
37246
37795
|
}
|
|
37247
37796
|
emit(opts) {
|
|
37248
37797
|
var _a2;
|
|
@@ -37333,21 +37882,21 @@ function mergeEmitResults(emitResults) {
|
|
|
37333
37882
|
return { diagnostics, emitSkipped, emittedFiles };
|
|
37334
37883
|
}
|
|
37335
37884
|
|
|
37336
|
-
// bazel-out/
|
|
37885
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
|
|
37337
37886
|
function createProgram({ rootNames, options, host, oldProgram }) {
|
|
37338
37887
|
return new NgtscProgram(rootNames, options, host, oldProgram);
|
|
37339
37888
|
}
|
|
37340
37889
|
|
|
37341
|
-
// bazel-out/
|
|
37890
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
37342
37891
|
var import_typescript96 = __toESM(require("typescript"), 1);
|
|
37343
37892
|
|
|
37344
|
-
// bazel-out/
|
|
37893
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
|
|
37345
37894
|
var import_typescript95 = __toESM(require("typescript"), 1);
|
|
37346
37895
|
|
|
37347
|
-
// bazel-out/
|
|
37896
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/downlevel_decorators_transform/downlevel_decorators_transform.mjs
|
|
37348
37897
|
var import_typescript97 = __toESM(require("typescript"), 1);
|
|
37349
37898
|
|
|
37350
|
-
// bazel-out/
|
|
37899
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/private/tooling.mjs
|
|
37351
37900
|
var GLOBAL_DEFS_FOR_TERSER = {
|
|
37352
37901
|
ngDevMode: false,
|
|
37353
37902
|
ngI18nClosureMode: false
|
|
@@ -37356,7 +37905,7 @@ var GLOBAL_DEFS_FOR_TERSER_WITH_AOT = __spreadProps(__spreadValues({}, GLOBAL_DE
|
|
|
37356
37905
|
ngJitMode: false
|
|
37357
37906
|
});
|
|
37358
37907
|
|
|
37359
|
-
// bazel-out/
|
|
37908
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/logging/src/logger.mjs
|
|
37360
37909
|
var LogLevel;
|
|
37361
37910
|
(function(LogLevel2) {
|
|
37362
37911
|
LogLevel2[LogLevel2["debug"] = 0] = "debug";
|
|
@@ -37365,7 +37914,7 @@ var LogLevel;
|
|
|
37365
37914
|
LogLevel2[LogLevel2["error"] = 3] = "error";
|
|
37366
37915
|
})(LogLevel || (LogLevel = {}));
|
|
37367
37916
|
|
|
37368
|
-
// bazel-out/
|
|
37917
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/logging/src/console_logger.mjs
|
|
37369
37918
|
var RESET = "\x1B[0m";
|
|
37370
37919
|
var RED = "\x1B[31m";
|
|
37371
37920
|
var YELLOW = "\x1B[33m";
|
|
@@ -37374,18 +37923,18 @@ var DEBUG = `${BLUE}Debug:${RESET}`;
|
|
|
37374
37923
|
var WARN = `${YELLOW}Warning:${RESET}`;
|
|
37375
37924
|
var ERROR = `${RED}Error:${RESET}`;
|
|
37376
37925
|
|
|
37377
|
-
// bazel-out/
|
|
37926
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/index.mjs
|
|
37378
37927
|
setFileSystem(new NodeJSFileSystem());
|
|
37379
37928
|
|
|
37380
|
-
// bazel-out/
|
|
37929
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/index.mjs
|
|
37381
37930
|
var import_fs2 = require("fs");
|
|
37382
37931
|
var import_path8 = require("path");
|
|
37383
37932
|
var import_typescript110 = __toESM(require("typescript"), 1);
|
|
37384
37933
|
|
|
37385
|
-
// bazel-out/
|
|
37934
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
|
|
37386
37935
|
var import_typescript99 = __toESM(require("typescript"), 1);
|
|
37387
37936
|
|
|
37388
|
-
// bazel-out/
|
|
37937
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/import_manager.mjs
|
|
37389
37938
|
var import_path4 = require("path");
|
|
37390
37939
|
var import_typescript98 = __toESM(require("typescript"), 1);
|
|
37391
37940
|
var ImportManager2 = class {
|
|
@@ -37569,7 +38118,7 @@ ${text2}`;
|
|
|
37569
38118
|
}
|
|
37570
38119
|
};
|
|
37571
38120
|
|
|
37572
|
-
// bazel-out/
|
|
38121
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
|
|
37573
38122
|
var ChangeTracker = class {
|
|
37574
38123
|
constructor(_printer, _importRemapper) {
|
|
37575
38124
|
__publicField(this, "_printer");
|
|
@@ -37625,7 +38174,7 @@ function normalizePath(path3) {
|
|
|
37625
38174
|
return path3.replace(/\\/g, "/");
|
|
37626
38175
|
}
|
|
37627
38176
|
|
|
37628
|
-
// bazel-out/
|
|
38177
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
|
|
37629
38178
|
var import_core13 = require("@angular-devkit/core");
|
|
37630
38179
|
function getProjectTsConfigPaths(tree) {
|
|
37631
38180
|
return __async(this, null, function* () {
|
|
@@ -37705,11 +38254,11 @@ function getWorkspace(tree) {
|
|
|
37705
38254
|
});
|
|
37706
38255
|
}
|
|
37707
38256
|
|
|
37708
|
-
// bazel-out/
|
|
38257
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
37709
38258
|
var import_path5 = require("path");
|
|
37710
38259
|
var import_typescript101 = __toESM(require("typescript"), 1);
|
|
37711
38260
|
|
|
37712
|
-
// bazel-out/
|
|
38261
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
|
|
37713
38262
|
var path2 = __toESM(require("path"), 1);
|
|
37714
38263
|
var import_typescript100 = __toESM(require("typescript"), 1);
|
|
37715
38264
|
function parseTsconfigFile(tsconfigPath, basePath) {
|
|
@@ -37726,7 +38275,7 @@ function parseTsconfigFile(tsconfigPath, basePath) {
|
|
|
37726
38275
|
return import_typescript100.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
|
|
37727
38276
|
}
|
|
37728
38277
|
|
|
37729
|
-
// bazel-out/
|
|
38278
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
37730
38279
|
function createProgramOptions(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles, optionOverrides) {
|
|
37731
38280
|
tsconfigPath = (0, import_path5.resolve)(basePath, tsconfigPath);
|
|
37732
38281
|
const parsed = parseTsconfigFile(tsconfigPath, (0, import_path5.dirname)(tsconfigPath));
|
|
@@ -37755,13 +38304,13 @@ function canMigrateFile(basePath, sourceFile, program) {
|
|
|
37755
38304
|
return !(0, import_path5.relative)(basePath, sourceFile.fileName).startsWith("..");
|
|
37756
38305
|
}
|
|
37757
38306
|
|
|
37758
|
-
// bazel-out/
|
|
38307
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/prune-modules.mjs
|
|
37759
38308
|
var import_typescript106 = __toESM(require("typescript"), 1);
|
|
37760
38309
|
|
|
37761
|
-
// bazel-out/
|
|
38310
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
|
|
37762
38311
|
var import_typescript103 = __toESM(require("typescript"), 1);
|
|
37763
38312
|
|
|
37764
|
-
// bazel-out/
|
|
38313
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
|
|
37765
38314
|
var import_typescript102 = __toESM(require("typescript"), 1);
|
|
37766
38315
|
function getImportOfIdentifier(typeChecker, node) {
|
|
37767
38316
|
const symbol = typeChecker.getSymbolAtLocation(node);
|
|
@@ -37812,7 +38361,7 @@ function findImportSpecifier(nodes, specifierName) {
|
|
|
37812
38361
|
});
|
|
37813
38362
|
}
|
|
37814
38363
|
|
|
37815
|
-
// bazel-out/
|
|
38364
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
|
|
37816
38365
|
function getCallDecoratorImport(typeChecker, decorator) {
|
|
37817
38366
|
if (!import_typescript103.default.isCallExpression(decorator.expression) || !import_typescript103.default.isIdentifier(decorator.expression.expression)) {
|
|
37818
38367
|
return null;
|
|
@@ -37821,7 +38370,7 @@ function getCallDecoratorImport(typeChecker, decorator) {
|
|
|
37821
38370
|
return getImportOfIdentifier(typeChecker, identifier);
|
|
37822
38371
|
}
|
|
37823
38372
|
|
|
37824
|
-
// bazel-out/
|
|
38373
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/ng_decorators.mjs
|
|
37825
38374
|
function getAngularDecorators(typeChecker, decorators) {
|
|
37826
38375
|
return decorators.map((node) => ({ node, importData: getCallDecoratorImport(typeChecker, node) })).filter(({ importData }) => importData && importData.importModule.startsWith("@angular/")).map(({ node, importData }) => ({
|
|
37827
38376
|
node,
|
|
@@ -37831,7 +38380,7 @@ function getAngularDecorators(typeChecker, decorators) {
|
|
|
37831
38380
|
}));
|
|
37832
38381
|
}
|
|
37833
38382
|
|
|
37834
|
-
// bazel-out/
|
|
38383
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/nodes.mjs
|
|
37835
38384
|
var import_typescript104 = __toESM(require("typescript"), 1);
|
|
37836
38385
|
function closestNode(node, predicate) {
|
|
37837
38386
|
let current = node.parent;
|
|
@@ -37844,7 +38393,7 @@ function closestNode(node, predicate) {
|
|
|
37844
38393
|
return null;
|
|
37845
38394
|
}
|
|
37846
38395
|
|
|
37847
|
-
// bazel-out/
|
|
38396
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/util.mjs
|
|
37848
38397
|
var import_path6 = require("path");
|
|
37849
38398
|
var import_typescript105 = __toESM(require("typescript"), 1);
|
|
37850
38399
|
var UniqueItemTracker = class {
|
|
@@ -37986,8 +38535,8 @@ function offsetsToNodes(lookup, offsets, results) {
|
|
|
37986
38535
|
return results;
|
|
37987
38536
|
}
|
|
37988
38537
|
function findClassDeclaration(reference2, typeChecker) {
|
|
37989
|
-
var _a2,
|
|
37990
|
-
return ((
|
|
38538
|
+
var _a2, _b2;
|
|
38539
|
+
return ((_b2 = (_a2 = typeChecker.getTypeAtLocation(reference2).getSymbol()) == null ? void 0 : _a2.declarations) == null ? void 0 : _b2.find(import_typescript105.default.isClassDeclaration)) || null;
|
|
37991
38540
|
}
|
|
37992
38541
|
function findLiteralProperty(literal3, name) {
|
|
37993
38542
|
return literal3.properties.find((prop) => prop.name && import_typescript105.default.isIdentifier(prop.name) && prop.name.text === name);
|
|
@@ -38020,7 +38569,7 @@ function isClassReferenceInAngularModule(node, className, moduleName, typeChecke
|
|
|
38020
38569
|
}));
|
|
38021
38570
|
}
|
|
38022
38571
|
|
|
38023
|
-
// bazel-out/
|
|
38572
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/prune-modules.mjs
|
|
38024
38573
|
function pruneNgModules(program, host, basePath, rootFileNames, sourceFiles, printer, importRemapper, referenceLookupExcludedFiles) {
|
|
38025
38574
|
const filesToRemove = /* @__PURE__ */ new Set();
|
|
38026
38575
|
const tracker = new ChangeTracker(printer, importRemapper);
|
|
@@ -38037,12 +38586,12 @@ function pruneNgModules(program, host, basePath, rootFileNames, sourceFiles, pri
|
|
|
38037
38586
|
const barrelExports = new UniqueItemTracker();
|
|
38038
38587
|
const nodesToRemove = /* @__PURE__ */ new Set();
|
|
38039
38588
|
sourceFiles.forEach(function walk(node) {
|
|
38040
|
-
var _a2,
|
|
38589
|
+
var _a2, _b2;
|
|
38041
38590
|
if (import_typescript106.default.isClassDeclaration(node) && canRemoveClass(node, typeChecker)) {
|
|
38042
38591
|
collectRemovalLocations(node, removalLocations, referenceResolver, program);
|
|
38043
38592
|
classesToRemove.add(node);
|
|
38044
38593
|
} else if (import_typescript106.default.isExportDeclaration(node) && !node.exportClause && node.moduleSpecifier && import_typescript106.default.isStringLiteralLike(node.moduleSpecifier) && node.moduleSpecifier.text.startsWith(".")) {
|
|
38045
|
-
const exportedSourceFile = (
|
|
38594
|
+
const exportedSourceFile = (_b2 = (_a2 = typeChecker.getSymbolAtLocation(node.moduleSpecifier)) == null ? void 0 : _a2.valueDeclaration) == null ? void 0 : _b2.getSourceFile();
|
|
38046
38595
|
if (exportedSourceFile) {
|
|
38047
38596
|
barrelExports.track(exportedSourceFile, node);
|
|
38048
38597
|
}
|
|
@@ -38219,23 +38768,23 @@ function findNgModuleDecorator(node, typeChecker) {
|
|
|
38219
38768
|
return decorators.find((decorator) => decorator.name === "NgModule") || null;
|
|
38220
38769
|
}
|
|
38221
38770
|
|
|
38222
|
-
// bazel-out/
|
|
38771
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/standalone-bootstrap.mjs
|
|
38223
38772
|
var import_path7 = require("path");
|
|
38224
38773
|
var import_typescript109 = __toESM(require("typescript"), 1);
|
|
38225
38774
|
|
|
38226
|
-
// bazel-out/
|
|
38775
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/to-standalone.mjs
|
|
38227
38776
|
var import_typescript108 = __toESM(require("typescript"), 1);
|
|
38228
38777
|
|
|
38229
|
-
// bazel-out/
|
|
38778
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/symbol.mjs
|
|
38230
38779
|
var import_typescript107 = __toESM(require("typescript"), 1);
|
|
38231
38780
|
function isReferenceToImport(typeChecker, node, importSpecifier) {
|
|
38232
|
-
var _a2,
|
|
38781
|
+
var _a2, _b2;
|
|
38233
38782
|
const nodeSymbol = typeChecker.getTypeAtLocation(node).getSymbol();
|
|
38234
38783
|
const importSymbol = typeChecker.getTypeAtLocation(importSpecifier).getSymbol();
|
|
38235
|
-
return !!(((_a2 = nodeSymbol == null ? void 0 : nodeSymbol.declarations) == null ? void 0 : _a2[0]) && ((
|
|
38784
|
+
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];
|
|
38236
38785
|
}
|
|
38237
38786
|
|
|
38238
|
-
// bazel-out/
|
|
38787
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/to-standalone.mjs
|
|
38239
38788
|
function toStandalone(sourceFiles, program, printer, fileImportRemapper, componentImportRemapper) {
|
|
38240
38789
|
const templateTypeChecker = program.compiler.getTemplateTypeChecker();
|
|
38241
38790
|
const typeChecker = program.getTsProgram().getTypeChecker();
|
|
@@ -38477,9 +39026,9 @@ function findTemplateDependencies(decl, typeChecker) {
|
|
|
38477
39026
|
}
|
|
38478
39027
|
if (usedPipes !== null) {
|
|
38479
39028
|
const potentialPipes = typeChecker.getPotentialPipes(decl);
|
|
38480
|
-
for (const
|
|
38481
|
-
if (import_typescript108.default.isClassDeclaration(
|
|
38482
|
-
results.push(
|
|
39029
|
+
for (const pipe2 of potentialPipes) {
|
|
39030
|
+
if (import_typescript108.default.isClassDeclaration(pipe2.ref.node) && usedPipes.some((current) => pipe2.name === current)) {
|
|
39031
|
+
results.push(pipe2.ref);
|
|
38483
39032
|
}
|
|
38484
39033
|
}
|
|
38485
39034
|
}
|
|
@@ -38598,7 +39147,7 @@ function isStandaloneDeclaration(node, declarationsInMigration, templateTypeChec
|
|
|
38598
39147
|
return metadata != null && metadata.isStandalone;
|
|
38599
39148
|
}
|
|
38600
39149
|
|
|
38601
|
-
// bazel-out/
|
|
39150
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/standalone-bootstrap.mjs
|
|
38602
39151
|
function toStandaloneBootstrap(program, host, basePath, rootFileNames, sourceFiles, printer, importRemapper, referenceLookupExcludedFiles, componentImportRemapper) {
|
|
38603
39152
|
const tracker = new ChangeTracker(printer, importRemapper);
|
|
38604
39153
|
const typeChecker = program.getTsProgram().getTypeChecker();
|
|
@@ -38975,7 +39524,7 @@ function hasImport(program, rootFileNames, moduleName) {
|
|
|
38975
39524
|
return false;
|
|
38976
39525
|
}
|
|
38977
39526
|
|
|
38978
|
-
// bazel-out/
|
|
39527
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/index.mjs
|
|
38979
39528
|
var MigrationMode;
|
|
38980
39529
|
(function(MigrationMode2) {
|
|
38981
39530
|
MigrationMode2["toStandalone"] = "convert-to-standalone";
|