@angular/core 16.2.0-next.1 → 16.2.0-next.2
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/rxjs-interop/src/take_until_destroyed.mjs +3 -3
- package/esm2022/rxjs-interop/src/to_observable.mjs +1 -1
- package/esm2022/rxjs-interop/src/to_signal.mjs +1 -1
- package/esm2022/src/di/contextual.mjs +10 -7
- package/esm2022/src/di/injection_token.mjs +2 -2
- package/esm2022/src/di/injector_compatibility.mjs +4 -3
- package/esm2022/src/di/interface/defs.mjs +3 -2
- package/esm2022/src/di/interface/injector.mjs +2 -2
- package/esm2022/src/di/provider_collection.mjs +2 -2
- package/esm2022/src/di/r3_injector.mjs +1 -1
- package/esm2022/src/errors.mjs +1 -1
- package/esm2022/src/linker/template_ref.mjs +1 -1
- package/esm2022/src/render3/assert.mjs +8 -3
- package/esm2022/src/render3/features/standalone_feature.mjs +4 -4
- package/esm2022/src/render3/pipe.mjs +26 -2
- package/esm2022/src/render3/reactivity/effect.mjs +1 -1
- package/esm2022/src/signals/src/graph.mjs +7 -3
- package/esm2022/src/util/raf.mjs +20 -5
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/src/zone/ng_zone.mjs +10 -1
- package/esm2022/testing/src/logger.mjs +3 -3
- package/fesm2022/core.mjs +87 -25
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/rxjs-interop.mjs +9 -5
- package/fesm2022/rxjs-interop.mjs.map +1 -1
- package/fesm2022/testing.mjs +59 -21
- package/fesm2022/testing.mjs.map +1 -1
- package/index.d.ts +33 -18
- package/package.json +1 -1
- package/rxjs-interop/index.d.ts +15 -12
- 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 +1218 -578
- package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
- package/testing/index.d.ts +1 -1
|
@@ -63,7 +63,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
63
63
|
});
|
|
64
64
|
};
|
|
65
65
|
|
|
66
|
-
// bazel-out/
|
|
66
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/index.mjs
|
|
67
67
|
var standalone_migration_exports = {};
|
|
68
68
|
__export(standalone_migration_exports, {
|
|
69
69
|
default: () => standalone_migration_default
|
|
@@ -71,10 +71,10 @@ __export(standalone_migration_exports, {
|
|
|
71
71
|
module.exports = __toCommonJS(standalone_migration_exports);
|
|
72
72
|
var import_schematics = require("@angular-devkit/schematics");
|
|
73
73
|
|
|
74
|
-
// bazel-out/
|
|
74
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/compiler_host.mjs
|
|
75
75
|
var import_typescript = __toESM(require("typescript"), 1);
|
|
76
76
|
|
|
77
|
-
// bazel-out/
|
|
77
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/invalid_file_system.mjs
|
|
78
78
|
var InvalidFileSystem = class {
|
|
79
79
|
exists(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-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-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/helpers.mjs
|
|
179
179
|
var fs = new InvalidFileSystem();
|
|
180
180
|
function getFileSystem() {
|
|
181
181
|
return fs;
|
|
@@ -219,7 +219,7 @@ function toRelativeImport(relativePath) {
|
|
|
219
219
|
return isLocalRelativePath(relativePath) ? `./${relativePath}` : relativePath;
|
|
220
220
|
}
|
|
221
221
|
|
|
222
|
-
// bazel-out/
|
|
222
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/logical.mjs
|
|
223
223
|
var LogicalProjectPath = {
|
|
224
224
|
relativePathBetween: function(from, to) {
|
|
225
225
|
const relativePath = relative(dirname(resolve(from)), resolve(to));
|
|
@@ -265,7 +265,7 @@ function isWithinBasePath(base, path3) {
|
|
|
265
265
|
return isLocalRelativePath(relative(base, path3));
|
|
266
266
|
}
|
|
267
267
|
|
|
268
|
-
// bazel-out/
|
|
268
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/node_js_file_system.mjs
|
|
269
269
|
var import_fs = __toESM(require("fs"), 1);
|
|
270
270
|
var import_module = __toESM(require("module"), 1);
|
|
271
271
|
var p = __toESM(require("path"), 1);
|
|
@@ -373,7 +373,7 @@ function toggleCase(str) {
|
|
|
373
373
|
return str.replace(/\w/g, (ch) => ch.toUpperCase() === ch ? ch.toLowerCase() : ch.toUpperCase());
|
|
374
374
|
}
|
|
375
375
|
|
|
376
|
-
// bazel-out/
|
|
376
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/selector.mjs
|
|
377
377
|
var _SELECTOR_REGEXP = new RegExp(
|
|
378
378
|
`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,
|
|
379
379
|
"g"
|
|
@@ -418,9 +418,9 @@ var CssSelector = class {
|
|
|
418
418
|
current.setElement(tag);
|
|
419
419
|
}
|
|
420
420
|
}
|
|
421
|
-
const
|
|
422
|
-
if (
|
|
423
|
-
current.addAttribute(current.unescapeAttribute(
|
|
421
|
+
const attribute2 = match[4];
|
|
422
|
+
if (attribute2) {
|
|
423
|
+
current.addAttribute(current.unescapeAttribute(attribute2), match[6]);
|
|
424
424
|
}
|
|
425
425
|
if (match[7]) {
|
|
426
426
|
inNot = false;
|
|
@@ -681,7 +681,7 @@ var SelectorContext = class {
|
|
|
681
681
|
}
|
|
682
682
|
};
|
|
683
683
|
|
|
684
|
-
// bazel-out/
|
|
684
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/core.mjs
|
|
685
685
|
var emitDistinctChangesOnlyDefaultValue = true;
|
|
686
686
|
var ViewEncapsulation;
|
|
687
687
|
(function(ViewEncapsulation2) {
|
|
@@ -744,7 +744,7 @@ function parseSelectorToR3Selector(selector) {
|
|
|
744
744
|
return selector ? CssSelector.parse(selector).map(parserSelectorToR3Selector) : [];
|
|
745
745
|
}
|
|
746
746
|
|
|
747
|
-
// bazel-out/
|
|
747
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/output/output_ast.mjs
|
|
748
748
|
var output_ast_exports = {};
|
|
749
749
|
__export(output_ast_exports, {
|
|
750
750
|
ArrayType: () => ArrayType,
|
|
@@ -829,7 +829,7 @@ __export(output_ast_exports, {
|
|
|
829
829
|
variable: () => variable
|
|
830
830
|
});
|
|
831
831
|
|
|
832
|
-
// bazel-out/
|
|
832
|
+
// bazel-out/darwin-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-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-fastbuild/bin/packages/compiler/src/output/output_ast.mjs
|
|
1188
1188
|
var TypeModifier;
|
|
1189
1189
|
(function(TypeModifier2) {
|
|
1190
1190
|
TypeModifier2[TypeModifier2["None"] = 0] = "None";
|
|
@@ -1516,6 +1516,9 @@ var InvokeFunctionExpr = class extends Expression {
|
|
|
1516
1516
|
this.args = args;
|
|
1517
1517
|
this.pure = pure;
|
|
1518
1518
|
}
|
|
1519
|
+
get receiver() {
|
|
1520
|
+
return this.fn;
|
|
1521
|
+
}
|
|
1519
1522
|
isEquivalent(e) {
|
|
1520
1523
|
return e instanceof InvokeFunctionExpr && this.fn.isEquivalent(e.fn) && areAllEquivalent(this.args, e.args) && this.pure === e.pure;
|
|
1521
1524
|
}
|
|
@@ -1841,6 +1844,9 @@ var ReadPropExpr = class extends Expression {
|
|
|
1841
1844
|
this.receiver = receiver;
|
|
1842
1845
|
this.name = name;
|
|
1843
1846
|
}
|
|
1847
|
+
get index() {
|
|
1848
|
+
return this.name;
|
|
1849
|
+
}
|
|
1844
1850
|
isEquivalent(e) {
|
|
1845
1851
|
return e instanceof ReadPropExpr && this.receiver.isEquivalent(e.receiver) && this.name === e.name;
|
|
1846
1852
|
}
|
|
@@ -2306,7 +2312,7 @@ function serializeTags(tags) {
|
|
|
2306
2312
|
return out;
|
|
2307
2313
|
}
|
|
2308
2314
|
|
|
2309
|
-
// bazel-out/
|
|
2315
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/constant_pool.mjs
|
|
2310
2316
|
var CONSTANT_PREFIX = "_c";
|
|
2311
2317
|
var UNKNOWN_VALUE_KEY = variable("<unknown>");
|
|
2312
2318
|
var KEY_CONTEXT = {};
|
|
@@ -2474,7 +2480,7 @@ function isLongStringLiteral(expr) {
|
|
|
2474
2480
|
return expr instanceof LiteralExpr && typeof expr.value === "string" && expr.value.length >= POOL_INCLUSION_LENGTH_THRESHOLD_FOR_STRINGS;
|
|
2475
2481
|
}
|
|
2476
2482
|
|
|
2477
|
-
// bazel-out/
|
|
2483
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_identifiers.mjs
|
|
2478
2484
|
var CORE = "@angular/core";
|
|
2479
2485
|
var _Identifiers = class {
|
|
2480
2486
|
};
|
|
@@ -3032,7 +3038,7 @@ var Identifiers = _Identifiers;
|
|
|
3032
3038
|
_Identifiers.validateIframeAttribute = { name: "\u0275\u0275validateIframeAttribute", moduleName: CORE };
|
|
3033
3039
|
})();
|
|
3034
3040
|
|
|
3035
|
-
// bazel-out/
|
|
3041
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/util.mjs
|
|
3036
3042
|
var DASH_CASE_REGEXP = /-+([a-z0-9])/g;
|
|
3037
3043
|
function dashCaseToCamelCase(input) {
|
|
3038
3044
|
return input.replace(DASH_CASE_REGEXP, (...m) => m[1].toUpperCase());
|
|
@@ -3120,7 +3126,7 @@ function partitionArray(arr, conditionFn) {
|
|
|
3120
3126
|
return [truthy, falsy];
|
|
3121
3127
|
}
|
|
3122
3128
|
|
|
3123
|
-
// bazel-out/
|
|
3129
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/output/source_map.mjs
|
|
3124
3130
|
var VERSION = 3;
|
|
3125
3131
|
var JS_B64_PREFIX = "# sourceMappingURL=data:application/json;base64,";
|
|
3126
3132
|
var SourceMapGenerator = class {
|
|
@@ -3249,7 +3255,7 @@ function toBase64Digit(value) {
|
|
|
3249
3255
|
return B64_DIGITS[value];
|
|
3250
3256
|
}
|
|
3251
3257
|
|
|
3252
|
-
// bazel-out/
|
|
3258
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/output/abstract_emitter.mjs
|
|
3253
3259
|
var _SINGLE_QUOTE_ESCAPE_STRING_RE = /'|\\|\n|\r|\$/g;
|
|
3254
3260
|
var _LEGAL_IDENTIFIER_RE = /^[$A-Z_][0-9A-Z_$]*$/i;
|
|
3255
3261
|
var _INDENT_WITH = " ";
|
|
@@ -3724,7 +3730,7 @@ function _createIndent(count) {
|
|
|
3724
3730
|
return res;
|
|
3725
3731
|
}
|
|
3726
3732
|
|
|
3727
|
-
// bazel-out/
|
|
3733
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/util.mjs
|
|
3728
3734
|
function typeWithParameters(type, numParams) {
|
|
3729
3735
|
if (numParams === 0) {
|
|
3730
3736
|
return expressionType(type);
|
|
@@ -3792,7 +3798,7 @@ function generateForwardRef(expr) {
|
|
|
3792
3798
|
return importExpr(Identifiers.forwardRef).callFn([fn([], [new ReturnStatement(expr)])]);
|
|
3793
3799
|
}
|
|
3794
3800
|
|
|
3795
|
-
// bazel-out/
|
|
3801
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_factory.mjs
|
|
3796
3802
|
var R3FactoryDelegateType;
|
|
3797
3803
|
(function(R3FactoryDelegateType2) {
|
|
3798
3804
|
R3FactoryDelegateType2[R3FactoryDelegateType2["Class"] = 0] = "Class";
|
|
@@ -3937,7 +3943,7 @@ function getInjectFn(target) {
|
|
|
3937
3943
|
}
|
|
3938
3944
|
}
|
|
3939
3945
|
|
|
3940
|
-
// bazel-out/
|
|
3946
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_ast.mjs
|
|
3941
3947
|
var Comment = class {
|
|
3942
3948
|
constructor(value, sourceSpan) {
|
|
3943
3949
|
this.value = value;
|
|
@@ -4129,11 +4135,11 @@ var RecursiveVisitor = class {
|
|
|
4129
4135
|
}
|
|
4130
4136
|
visitReference(reference2) {
|
|
4131
4137
|
}
|
|
4132
|
-
visitTextAttribute(
|
|
4138
|
+
visitTextAttribute(attribute2) {
|
|
4133
4139
|
}
|
|
4134
|
-
visitBoundAttribute(
|
|
4140
|
+
visitBoundAttribute(attribute2) {
|
|
4135
4141
|
}
|
|
4136
|
-
visitBoundEvent(
|
|
4142
|
+
visitBoundEvent(attribute2) {
|
|
4137
4143
|
}
|
|
4138
4144
|
visitText(text2) {
|
|
4139
4145
|
}
|
|
@@ -4159,7 +4165,7 @@ function visitAll(visitor, nodes) {
|
|
|
4159
4165
|
return result;
|
|
4160
4166
|
}
|
|
4161
4167
|
|
|
4162
|
-
// bazel-out/
|
|
4168
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/i18n_ast.mjs
|
|
4163
4169
|
var Message = class {
|
|
4164
4170
|
constructor(nodes, placeholders, placeholderToMessage, meaning, description, customId) {
|
|
4165
4171
|
this.nodes = nodes;
|
|
@@ -4322,7 +4328,7 @@ var LocalizeMessageStringVisitor = class {
|
|
|
4322
4328
|
}
|
|
4323
4329
|
};
|
|
4324
4330
|
|
|
4325
|
-
// bazel-out/
|
|
4331
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/serializers/serializer.mjs
|
|
4326
4332
|
var Serializer = class {
|
|
4327
4333
|
createNameMapper(message) {
|
|
4328
4334
|
return null;
|
|
@@ -4374,7 +4380,7 @@ var SimplePlaceholderMapper = class extends RecurseVisitor {
|
|
|
4374
4380
|
}
|
|
4375
4381
|
};
|
|
4376
4382
|
|
|
4377
|
-
// bazel-out/
|
|
4383
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/serializers/xml_helper.mjs
|
|
4378
4384
|
var _Visitor = class {
|
|
4379
4385
|
visitTag(tag) {
|
|
4380
4386
|
const strAttrs = this._serializeAttributes(tag.attrs);
|
|
@@ -4462,7 +4468,7 @@ function escapeXml(text2) {
|
|
|
4462
4468
|
return _ESCAPED_CHARS.reduce((text3, entry) => text3.replace(entry[0], entry[1]), text2);
|
|
4463
4469
|
}
|
|
4464
4470
|
|
|
4465
|
-
// bazel-out/
|
|
4471
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/serializers/xmb.mjs
|
|
4466
4472
|
var _MESSAGES_TAG = "messagebundle";
|
|
4467
4473
|
var _MESSAGE_TAG = "msg";
|
|
4468
4474
|
var _PLACEHOLDER_TAG = "ph";
|
|
@@ -4605,7 +4611,7 @@ function toPublicName(internalName) {
|
|
|
4605
4611
|
return internalName.toUpperCase().replace(/[^A-Z0-9_]/g, "_");
|
|
4606
4612
|
}
|
|
4607
4613
|
|
|
4608
|
-
// bazel-out/
|
|
4614
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/i18n/util.mjs
|
|
4609
4615
|
var CLOSURE_TRANSLATION_VAR_PREFIX = "MSG_";
|
|
4610
4616
|
var TRANSLATION_VAR_PREFIX = "i18n_";
|
|
4611
4617
|
var I18N_ATTR = "i18n";
|
|
@@ -4707,7 +4713,7 @@ function declareI18nVariable(variable2) {
|
|
|
4707
4713
|
return new DeclareVarStmt(variable2.name, void 0, INFERRED_TYPE, void 0, variable2.sourceSpan);
|
|
4708
4714
|
}
|
|
4709
4715
|
|
|
4710
|
-
// bazel-out/
|
|
4716
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/util.mjs
|
|
4711
4717
|
var UNSAFE_OBJECT_KEY_NAME_REGEXP = /[-.]/;
|
|
4712
4718
|
var TEMPORARY_NAME = "_t";
|
|
4713
4719
|
var CONTEXT_NAME = "ctx";
|
|
@@ -4923,7 +4929,7 @@ function getInstructionStatements(instructions) {
|
|
|
4923
4929
|
return statements;
|
|
4924
4930
|
}
|
|
4925
4931
|
|
|
4926
|
-
// bazel-out/
|
|
4932
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/injectable_compiler_2.mjs
|
|
4927
4933
|
function compileInjectable(meta, resolveForwardRefs) {
|
|
4928
4934
|
let result = null;
|
|
4929
4935
|
const factoryMeta = {
|
|
@@ -5011,7 +5017,7 @@ function createFactoryFunction(type) {
|
|
|
5011
5017
|
return fn([new FnParam("t", DYNAMIC_TYPE)], [new ReturnStatement(type.prop("\u0275fac").callFn([variable("t")]))]);
|
|
5012
5018
|
}
|
|
5013
5019
|
|
|
5014
|
-
// bazel-out/
|
|
5020
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/assertions.mjs
|
|
5015
5021
|
var UNUSABLE_INTERPOLATION_REGEXPS = [
|
|
5016
5022
|
/^\s*$/,
|
|
5017
5023
|
/[<>]/,
|
|
@@ -5033,7 +5039,7 @@ function assertInterpolationSymbols(identifier, value) {
|
|
|
5033
5039
|
}
|
|
5034
5040
|
}
|
|
5035
5041
|
|
|
5036
|
-
// bazel-out/
|
|
5042
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/interpolation_config.mjs
|
|
5037
5043
|
var InterpolationConfig = class {
|
|
5038
5044
|
static fromArray(markers) {
|
|
5039
5045
|
if (!markers) {
|
|
@@ -5049,7 +5055,7 @@ var InterpolationConfig = class {
|
|
|
5049
5055
|
};
|
|
5050
5056
|
var DEFAULT_INTERPOLATION_CONFIG = new InterpolationConfig("{{", "}}");
|
|
5051
5057
|
|
|
5052
|
-
// bazel-out/
|
|
5058
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/chars.mjs
|
|
5053
5059
|
var $EOF = 0;
|
|
5054
5060
|
var $BSPACE = 8;
|
|
5055
5061
|
var $TAB = 9;
|
|
@@ -5130,7 +5136,7 @@ function isQuote(code) {
|
|
|
5130
5136
|
return code === $SQ || code === $DQ || code === $BT;
|
|
5131
5137
|
}
|
|
5132
5138
|
|
|
5133
|
-
// bazel-out/
|
|
5139
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/parse_util.mjs
|
|
5134
5140
|
var ParseLocation = class {
|
|
5135
5141
|
constructor(file, offset, line, col) {
|
|
5136
5142
|
this.file = file;
|
|
@@ -5277,7 +5283,7 @@ function sanitizeIdentifier(name) {
|
|
|
5277
5283
|
return name.replace(/\W/g, "_");
|
|
5278
5284
|
}
|
|
5279
5285
|
|
|
5280
|
-
// bazel-out/
|
|
5286
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/output/abstract_js_emitter.mjs
|
|
5281
5287
|
var makeTemplateObjectPolyfill = '(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})';
|
|
5282
5288
|
var AbstractJsEmitterVisitor = class extends AbstractEmitterVisitor {
|
|
5283
5289
|
constructor() {
|
|
@@ -5348,7 +5354,7 @@ var AbstractJsEmitterVisitor = class extends AbstractEmitterVisitor {
|
|
|
5348
5354
|
}
|
|
5349
5355
|
};
|
|
5350
5356
|
|
|
5351
|
-
// bazel-out/
|
|
5357
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/output/output_jit_trusted_types.mjs
|
|
5352
5358
|
var policy;
|
|
5353
5359
|
function getPolicy() {
|
|
5354
5360
|
if (policy === void 0) {
|
|
@@ -5385,7 +5391,7 @@ function newTrustedFunctionForJIT(...args) {
|
|
|
5385
5391
|
return fn2.bind(_global);
|
|
5386
5392
|
}
|
|
5387
5393
|
|
|
5388
|
-
// bazel-out/
|
|
5394
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/output/output_jit.mjs
|
|
5389
5395
|
var JitEvaluator = class {
|
|
5390
5396
|
evaluateStatements(sourceUrl, statements, refResolver, createSourceMaps) {
|
|
5391
5397
|
const converter = new JitEmitterVisitor(refResolver);
|
|
@@ -5476,7 +5482,7 @@ function isUseStrictStatement(statement) {
|
|
|
5476
5482
|
return statement.isEquivalent(literal("use strict").toStmt());
|
|
5477
5483
|
}
|
|
5478
5484
|
|
|
5479
|
-
// bazel-out/
|
|
5485
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_injector_compiler.mjs
|
|
5480
5486
|
function compileInjector(meta) {
|
|
5481
5487
|
const definitionMap = new DefinitionMap();
|
|
5482
5488
|
if (meta.providers !== null) {
|
|
@@ -5493,7 +5499,7 @@ function createInjectorType(meta) {
|
|
|
5493
5499
|
return new ExpressionType(importExpr(Identifiers.InjectorDeclaration, [new ExpressionType(meta.type.type)]));
|
|
5494
5500
|
}
|
|
5495
5501
|
|
|
5496
|
-
// bazel-out/
|
|
5502
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_jit.mjs
|
|
5497
5503
|
var R3JitReflector = class {
|
|
5498
5504
|
constructor(context) {
|
|
5499
5505
|
this.context = context;
|
|
@@ -5509,44 +5515,54 @@ var R3JitReflector = class {
|
|
|
5509
5515
|
}
|
|
5510
5516
|
};
|
|
5511
5517
|
|
|
5512
|
-
// bazel-out/
|
|
5518
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_module_compiler.mjs
|
|
5513
5519
|
var R3SelectorScopeMode;
|
|
5514
5520
|
(function(R3SelectorScopeMode2) {
|
|
5515
5521
|
R3SelectorScopeMode2[R3SelectorScopeMode2["Inline"] = 0] = "Inline";
|
|
5516
5522
|
R3SelectorScopeMode2[R3SelectorScopeMode2["SideEffect"] = 1] = "SideEffect";
|
|
5517
5523
|
R3SelectorScopeMode2[R3SelectorScopeMode2["Omit"] = 2] = "Omit";
|
|
5518
5524
|
})(R3SelectorScopeMode || (R3SelectorScopeMode = {}));
|
|
5525
|
+
var R3NgModuleMetadataKind;
|
|
5526
|
+
(function(R3NgModuleMetadataKind2) {
|
|
5527
|
+
R3NgModuleMetadataKind2[R3NgModuleMetadataKind2["Global"] = 0] = "Global";
|
|
5528
|
+
R3NgModuleMetadataKind2[R3NgModuleMetadataKind2["Local"] = 1] = "Local";
|
|
5529
|
+
})(R3NgModuleMetadataKind || (R3NgModuleMetadataKind = {}));
|
|
5519
5530
|
function compileNgModule(meta) {
|
|
5520
|
-
const { type: moduleType, bootstrap, declarations, imports, exports, schemas, containsForwardDecls, selectorScopeMode, id } = meta;
|
|
5521
5531
|
const statements = [];
|
|
5522
5532
|
const definitionMap = new DefinitionMap();
|
|
5523
|
-
definitionMap.set("type",
|
|
5524
|
-
if (
|
|
5525
|
-
|
|
5533
|
+
definitionMap.set("type", meta.type.value);
|
|
5534
|
+
if (meta.kind === R3NgModuleMetadataKind.Global) {
|
|
5535
|
+
if (meta.bootstrap.length > 0) {
|
|
5536
|
+
definitionMap.set("bootstrap", refsToArray(meta.bootstrap, meta.containsForwardDecls));
|
|
5537
|
+
}
|
|
5538
|
+
} else {
|
|
5539
|
+
if (meta.bootstrapExpression) {
|
|
5540
|
+
definitionMap.set("bootstrap", meta.bootstrapExpression);
|
|
5541
|
+
}
|
|
5526
5542
|
}
|
|
5527
|
-
if (selectorScopeMode === R3SelectorScopeMode.Inline) {
|
|
5528
|
-
if (declarations.length > 0) {
|
|
5529
|
-
definitionMap.set("declarations", refsToArray(declarations, containsForwardDecls));
|
|
5543
|
+
if (meta.selectorScopeMode === R3SelectorScopeMode.Inline) {
|
|
5544
|
+
if (meta.declarations.length > 0) {
|
|
5545
|
+
definitionMap.set("declarations", refsToArray(meta.declarations, meta.containsForwardDecls));
|
|
5530
5546
|
}
|
|
5531
|
-
if (imports.length > 0) {
|
|
5532
|
-
definitionMap.set("imports", refsToArray(imports, containsForwardDecls));
|
|
5547
|
+
if (meta.imports.length > 0) {
|
|
5548
|
+
definitionMap.set("imports", refsToArray(meta.imports, meta.containsForwardDecls));
|
|
5533
5549
|
}
|
|
5534
|
-
if (exports.length > 0) {
|
|
5535
|
-
definitionMap.set("exports", refsToArray(exports, containsForwardDecls));
|
|
5550
|
+
if (meta.exports.length > 0) {
|
|
5551
|
+
definitionMap.set("exports", refsToArray(meta.exports, meta.containsForwardDecls));
|
|
5536
5552
|
}
|
|
5537
|
-
} else if (selectorScopeMode === R3SelectorScopeMode.SideEffect) {
|
|
5553
|
+
} else if (meta.selectorScopeMode === R3SelectorScopeMode.SideEffect) {
|
|
5538
5554
|
const setNgModuleScopeCall = generateSetNgModuleScopeCall(meta);
|
|
5539
5555
|
if (setNgModuleScopeCall !== null) {
|
|
5540
5556
|
statements.push(setNgModuleScopeCall);
|
|
5541
5557
|
}
|
|
5542
5558
|
} else {
|
|
5543
5559
|
}
|
|
5544
|
-
if (schemas !== null && schemas.length > 0) {
|
|
5545
|
-
definitionMap.set("schemas", literalArr(schemas.map((ref) => ref.value)));
|
|
5560
|
+
if (meta.schemas !== null && meta.schemas.length > 0) {
|
|
5561
|
+
definitionMap.set("schemas", literalArr(meta.schemas.map((ref) => ref.value)));
|
|
5546
5562
|
}
|
|
5547
|
-
if (id !== null) {
|
|
5548
|
-
definitionMap.set("id", id);
|
|
5549
|
-
statements.push(importExpr(Identifiers.registerNgModuleType).callFn([
|
|
5563
|
+
if (meta.id !== null) {
|
|
5564
|
+
definitionMap.set("id", meta.id);
|
|
5565
|
+
statements.push(importExpr(Identifiers.registerNgModuleType).callFn([meta.type.value, meta.id]).toStmt());
|
|
5550
5566
|
}
|
|
5551
5567
|
const expression = importExpr(Identifiers.defineNgModule).callFn([definitionMap.toLiteralMap()], void 0, true);
|
|
5552
5568
|
const type = createNgModuleType(meta);
|
|
@@ -5575,7 +5591,11 @@ function compileNgModuleDeclarationExpression(meta) {
|
|
|
5575
5591
|
}
|
|
5576
5592
|
return importExpr(Identifiers.defineNgModule).callFn([definitionMap.toLiteralMap()]);
|
|
5577
5593
|
}
|
|
5578
|
-
function createNgModuleType(
|
|
5594
|
+
function createNgModuleType(meta) {
|
|
5595
|
+
if (meta.kind === R3NgModuleMetadataKind.Local) {
|
|
5596
|
+
return new ExpressionType(meta.type.value);
|
|
5597
|
+
}
|
|
5598
|
+
const { type: moduleType, declarations, exports, imports, includeImportTypes, publicDeclarationTypes } = meta;
|
|
5579
5599
|
return new ExpressionType(importExpr(Identifiers.NgModuleDeclaration, [
|
|
5580
5600
|
new ExpressionType(moduleType.type),
|
|
5581
5601
|
publicDeclarationTypes === null ? tupleTypeOf(declarations) : tupleOfTypes(publicDeclarationTypes),
|
|
@@ -5584,23 +5604,40 @@ function createNgModuleType({ type: moduleType, declarations, exports, imports,
|
|
|
5584
5604
|
]));
|
|
5585
5605
|
}
|
|
5586
5606
|
function generateSetNgModuleScopeCall(meta) {
|
|
5587
|
-
const { type: moduleType, declarations, imports, exports, containsForwardDecls } = meta;
|
|
5588
5607
|
const scopeMap = new DefinitionMap();
|
|
5589
|
-
if (
|
|
5590
|
-
|
|
5608
|
+
if (meta.kind === R3NgModuleMetadataKind.Global) {
|
|
5609
|
+
if (meta.declarations.length > 0) {
|
|
5610
|
+
scopeMap.set("declarations", refsToArray(meta.declarations, meta.containsForwardDecls));
|
|
5611
|
+
}
|
|
5612
|
+
} else {
|
|
5613
|
+
if (meta.declarationsExpression) {
|
|
5614
|
+
scopeMap.set("declarations", meta.declarationsExpression);
|
|
5615
|
+
}
|
|
5591
5616
|
}
|
|
5592
|
-
if (
|
|
5593
|
-
|
|
5617
|
+
if (meta.kind === R3NgModuleMetadataKind.Global) {
|
|
5618
|
+
if (meta.imports.length > 0) {
|
|
5619
|
+
scopeMap.set("imports", refsToArray(meta.imports, meta.containsForwardDecls));
|
|
5620
|
+
}
|
|
5621
|
+
} else {
|
|
5622
|
+
if (meta.importsExpression) {
|
|
5623
|
+
scopeMap.set("imports", meta.importsExpression);
|
|
5624
|
+
}
|
|
5594
5625
|
}
|
|
5595
|
-
if (
|
|
5596
|
-
|
|
5626
|
+
if (meta.kind === R3NgModuleMetadataKind.Global) {
|
|
5627
|
+
if (meta.exports.length > 0) {
|
|
5628
|
+
scopeMap.set("exports", refsToArray(meta.exports, meta.containsForwardDecls));
|
|
5629
|
+
}
|
|
5630
|
+
} else {
|
|
5631
|
+
if (meta.exportsExpression) {
|
|
5632
|
+
scopeMap.set("exports", meta.exportsExpression);
|
|
5633
|
+
}
|
|
5597
5634
|
}
|
|
5598
5635
|
if (Object.keys(scopeMap.values).length === 0) {
|
|
5599
5636
|
return null;
|
|
5600
5637
|
}
|
|
5601
5638
|
const fnCall = new InvokeFunctionExpr(
|
|
5602
5639
|
importExpr(Identifiers.setNgModuleScope),
|
|
5603
|
-
[
|
|
5640
|
+
[meta.type.value, scopeMap.toLiteralMap()]
|
|
5604
5641
|
);
|
|
5605
5642
|
const guardedCall = jitOnlyGuardedExpression(fnCall);
|
|
5606
5643
|
const iife = new FunctionExpr(
|
|
@@ -5622,7 +5659,7 @@ function tupleOfTypes(types) {
|
|
|
5622
5659
|
return types.length > 0 ? expressionType(literalArr(typeofTypes)) : NONE_TYPE;
|
|
5623
5660
|
}
|
|
5624
5661
|
|
|
5625
|
-
// bazel-out/
|
|
5662
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_pipe_compiler.mjs
|
|
5626
5663
|
function compilePipeFromMetadata(metadata) {
|
|
5627
5664
|
const definitionMapValues = [];
|
|
5628
5665
|
definitionMapValues.push({ key: "name", value: literal(metadata.pipeName), quoted: false });
|
|
@@ -5643,7 +5680,7 @@ function createPipeType(metadata) {
|
|
|
5643
5680
|
]));
|
|
5644
5681
|
}
|
|
5645
5682
|
|
|
5646
|
-
// bazel-out/
|
|
5683
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/api.mjs
|
|
5647
5684
|
var R3TemplateDependencyKind;
|
|
5648
5685
|
(function(R3TemplateDependencyKind2) {
|
|
5649
5686
|
R3TemplateDependencyKind2[R3TemplateDependencyKind2["Directive"] = 0] = "Directive";
|
|
@@ -5651,7 +5688,7 @@ var R3TemplateDependencyKind;
|
|
|
5651
5688
|
R3TemplateDependencyKind2[R3TemplateDependencyKind2["NgModule"] = 2] = "NgModule";
|
|
5652
5689
|
})(R3TemplateDependencyKind || (R3TemplateDependencyKind = {}));
|
|
5653
5690
|
|
|
5654
|
-
// bazel-out/
|
|
5691
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/expression_parser/ast.mjs
|
|
5655
5692
|
var ParserError = class {
|
|
5656
5693
|
constructor(message, input, errLocation, ctxLocation) {
|
|
5657
5694
|
this.input = input;
|
|
@@ -6317,7 +6354,7 @@ var BoundElementProperty = class {
|
|
|
6317
6354
|
}
|
|
6318
6355
|
};
|
|
6319
6356
|
|
|
6320
|
-
// bazel-out/
|
|
6357
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/compiler_util/expression_converter.mjs
|
|
6321
6358
|
var _EventHandlerVars = class {
|
|
6322
6359
|
};
|
|
6323
6360
|
var EventHandlerVars = _EventHandlerVars;
|
|
@@ -6939,7 +6976,7 @@ var BuiltinFunctionCall = class extends Call {
|
|
|
6939
6976
|
}
|
|
6940
6977
|
};
|
|
6941
6978
|
|
|
6942
|
-
// bazel-out/
|
|
6979
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/schema/dom_security_schema.mjs
|
|
6943
6980
|
var _SECURITY_SCHEMA;
|
|
6944
6981
|
function SECURITY_SCHEMA() {
|
|
6945
6982
|
if (!_SECURITY_SCHEMA) {
|
|
@@ -6997,7 +7034,7 @@ function isIframeSecuritySensitiveAttr(attrName) {
|
|
|
6997
7034
|
return IFRAME_SECURITY_SENSITIVE_ATTRS.has(attrName.toLowerCase());
|
|
6998
7035
|
}
|
|
6999
7036
|
|
|
7000
|
-
// bazel-out/
|
|
7037
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/shadow_css.mjs
|
|
7001
7038
|
var animationKeywords = /* @__PURE__ */ new Set([
|
|
7002
7039
|
"inherit",
|
|
7003
7040
|
"initial",
|
|
@@ -7161,7 +7198,7 @@ var ShadowCss = class {
|
|
|
7161
7198
|
let content = rule.content;
|
|
7162
7199
|
if (rule.selector[0] !== "@") {
|
|
7163
7200
|
selector = this._scopeSelector(rule.selector, scopeSelector, hostSelector);
|
|
7164
|
-
} else if (rule.selector.startsWith("@media") || rule.selector.startsWith("@supports") || rule.selector.startsWith("@document") || rule.selector.startsWith("@layer") || rule.selector.startsWith("@container")) {
|
|
7201
|
+
} else if (rule.selector.startsWith("@media") || rule.selector.startsWith("@supports") || rule.selector.startsWith("@document") || rule.selector.startsWith("@layer") || rule.selector.startsWith("@container") || rule.selector.startsWith("@scope")) {
|
|
7165
7202
|
content = this._scopeSelectors(rule.content, scopeSelector, hostSelector);
|
|
7166
7203
|
} else if (rule.selector.startsWith("@font-face") || rule.selector.startsWith("@page")) {
|
|
7167
7204
|
content = this._stripScopingSelectors(rule.content);
|
|
@@ -7464,7 +7501,7 @@ function repeatGroups(groups, multiples) {
|
|
|
7464
7501
|
}
|
|
7465
7502
|
}
|
|
7466
7503
|
|
|
7467
|
-
// bazel-out/
|
|
7504
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/tags.mjs
|
|
7468
7505
|
var TagContentType;
|
|
7469
7506
|
(function(TagContentType2) {
|
|
7470
7507
|
TagContentType2[TagContentType2["RAW_TEXT"] = 0] = "RAW_TEXT";
|
|
@@ -7497,7 +7534,7 @@ function mergeNsAndName(prefix, localName) {
|
|
|
7497
7534
|
return prefix ? `:${prefix}:${localName}` : localName;
|
|
7498
7535
|
}
|
|
7499
7536
|
|
|
7500
|
-
// bazel-out/
|
|
7537
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/element.mjs
|
|
7501
7538
|
var ElementAttributeKind;
|
|
7502
7539
|
(function(ElementAttributeKind2) {
|
|
7503
7540
|
ElementAttributeKind2[ElementAttributeKind2["Attribute"] = 0] = "Attribute";
|
|
@@ -7577,7 +7614,7 @@ function assertIsElementAttributes(attrs) {
|
|
|
7577
7614
|
}
|
|
7578
7615
|
}
|
|
7579
7616
|
|
|
7580
|
-
// bazel-out/
|
|
7617
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/enums.mjs
|
|
7581
7618
|
var OpKind;
|
|
7582
7619
|
(function(OpKind2) {
|
|
7583
7620
|
OpKind2[OpKind2["ListEnd"] = 0] = "ListEnd";
|
|
@@ -7602,6 +7639,7 @@ var OpKind;
|
|
|
7602
7639
|
OpKind2[OpKind2["Advance"] = 19] = "Advance";
|
|
7603
7640
|
OpKind2[OpKind2["Pipe"] = 20] = "Pipe";
|
|
7604
7641
|
OpKind2[OpKind2["Attribute"] = 21] = "Attribute";
|
|
7642
|
+
OpKind2[OpKind2["InterpolateAttribute"] = 22] = "InterpolateAttribute";
|
|
7605
7643
|
})(OpKind || (OpKind = {}));
|
|
7606
7644
|
var ExpressionKind;
|
|
7607
7645
|
(function(ExpressionKind2) {
|
|
@@ -7622,6 +7660,8 @@ var ExpressionKind;
|
|
|
7622
7660
|
ExpressionKind2[ExpressionKind2["SafeInvokeFunction"] = 14] = "SafeInvokeFunction";
|
|
7623
7661
|
ExpressionKind2[ExpressionKind2["SafeTernaryExpr"] = 15] = "SafeTernaryExpr";
|
|
7624
7662
|
ExpressionKind2[ExpressionKind2["EmptyExpr"] = 16] = "EmptyExpr";
|
|
7663
|
+
ExpressionKind2[ExpressionKind2["AssignTemporaryExpr"] = 17] = "AssignTemporaryExpr";
|
|
7664
|
+
ExpressionKind2[ExpressionKind2["ReadTemporaryExpr"] = 18] = "ReadTemporaryExpr";
|
|
7625
7665
|
})(ExpressionKind || (ExpressionKind = {}));
|
|
7626
7666
|
var SemanticVariableKind;
|
|
7627
7667
|
(function(SemanticVariableKind2) {
|
|
@@ -7630,7 +7670,7 @@ var SemanticVariableKind;
|
|
|
7630
7670
|
SemanticVariableKind2[SemanticVariableKind2["SavedView"] = 2] = "SavedView";
|
|
7631
7671
|
})(SemanticVariableKind || (SemanticVariableKind = {}));
|
|
7632
7672
|
|
|
7633
|
-
// bazel-out/
|
|
7673
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/traits.mjs
|
|
7634
7674
|
var ConsumesSlot = Symbol("ConsumesSlot");
|
|
7635
7675
|
var DependsOnSlotContext = Symbol("DependsOnSlotContext");
|
|
7636
7676
|
var UsesSlotIndex = Symbol("UsesSlotIndex");
|
|
@@ -7671,7 +7711,7 @@ function hasUsesSlotIndexTrait(value) {
|
|
|
7671
7711
|
return value[UsesSlotIndex] === true;
|
|
7672
7712
|
}
|
|
7673
7713
|
|
|
7674
|
-
// bazel-out/
|
|
7714
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/expression.mjs
|
|
7675
7715
|
var _a;
|
|
7676
7716
|
var _b;
|
|
7677
7717
|
var _c;
|
|
@@ -8030,7 +8070,11 @@ var SafePropertyReadExpr = class extends ExpressionBase {
|
|
|
8030
8070
|
this.name = name;
|
|
8031
8071
|
this.kind = ExpressionKind.SafePropertyRead;
|
|
8032
8072
|
}
|
|
8073
|
+
get index() {
|
|
8074
|
+
return this.name;
|
|
8075
|
+
}
|
|
8033
8076
|
visitExpression(visitor, context) {
|
|
8077
|
+
this.receiver.visitExpression(visitor, context);
|
|
8034
8078
|
}
|
|
8035
8079
|
isEquivalent() {
|
|
8036
8080
|
return false;
|
|
@@ -8053,6 +8097,8 @@ var SafeKeyedReadExpr = class extends ExpressionBase {
|
|
|
8053
8097
|
this.kind = ExpressionKind.SafeKeyedRead;
|
|
8054
8098
|
}
|
|
8055
8099
|
visitExpression(visitor, context) {
|
|
8100
|
+
this.receiver.visitExpression(visitor, context);
|
|
8101
|
+
this.index.visitExpression(visitor, context);
|
|
8056
8102
|
}
|
|
8057
8103
|
isEquivalent() {
|
|
8058
8104
|
return false;
|
|
@@ -8076,6 +8122,10 @@ var SafeInvokeFunctionExpr = class extends ExpressionBase {
|
|
|
8076
8122
|
this.kind = ExpressionKind.SafeInvokeFunction;
|
|
8077
8123
|
}
|
|
8078
8124
|
visitExpression(visitor, context) {
|
|
8125
|
+
this.receiver.visitExpression(visitor, context);
|
|
8126
|
+
for (const a of this.args) {
|
|
8127
|
+
a.visitExpression(visitor, context);
|
|
8128
|
+
}
|
|
8079
8129
|
}
|
|
8080
8130
|
isEquivalent() {
|
|
8081
8131
|
return false;
|
|
@@ -8101,6 +8151,8 @@ var SafeTernaryExpr = class extends ExpressionBase {
|
|
|
8101
8151
|
this.kind = ExpressionKind.SafeTernaryExpr;
|
|
8102
8152
|
}
|
|
8103
8153
|
visitExpression(visitor, context) {
|
|
8154
|
+
this.guard.visitExpression(visitor, context);
|
|
8155
|
+
this.expr.visitExpression(visitor, context);
|
|
8104
8156
|
}
|
|
8105
8157
|
isEquivalent() {
|
|
8106
8158
|
return false;
|
|
@@ -8135,6 +8187,55 @@ var EmptyExpr2 = class extends ExpressionBase {
|
|
|
8135
8187
|
transformInternalExpressions() {
|
|
8136
8188
|
}
|
|
8137
8189
|
};
|
|
8190
|
+
var AssignTemporaryExpr = class extends ExpressionBase {
|
|
8191
|
+
constructor(expr, xref) {
|
|
8192
|
+
super();
|
|
8193
|
+
this.expr = expr;
|
|
8194
|
+
this.xref = xref;
|
|
8195
|
+
this.kind = ExpressionKind.AssignTemporaryExpr;
|
|
8196
|
+
this.name = null;
|
|
8197
|
+
}
|
|
8198
|
+
visitExpression(visitor, context) {
|
|
8199
|
+
this.expr.visitExpression(visitor, context);
|
|
8200
|
+
}
|
|
8201
|
+
isEquivalent() {
|
|
8202
|
+
return false;
|
|
8203
|
+
}
|
|
8204
|
+
isConstant() {
|
|
8205
|
+
return false;
|
|
8206
|
+
}
|
|
8207
|
+
transformInternalExpressions(transform, flags) {
|
|
8208
|
+
this.expr = transformExpressionsInExpression(this.expr, transform, flags);
|
|
8209
|
+
}
|
|
8210
|
+
clone() {
|
|
8211
|
+
const a = new AssignTemporaryExpr(this.expr, this.xref);
|
|
8212
|
+
a.name = this.name;
|
|
8213
|
+
return a;
|
|
8214
|
+
}
|
|
8215
|
+
};
|
|
8216
|
+
var ReadTemporaryExpr = class extends ExpressionBase {
|
|
8217
|
+
constructor(xref) {
|
|
8218
|
+
super();
|
|
8219
|
+
this.xref = xref;
|
|
8220
|
+
this.kind = ExpressionKind.ReadTemporaryExpr;
|
|
8221
|
+
this.name = null;
|
|
8222
|
+
}
|
|
8223
|
+
visitExpression(visitor, context) {
|
|
8224
|
+
}
|
|
8225
|
+
isEquivalent() {
|
|
8226
|
+
return this.xref === this.xref;
|
|
8227
|
+
}
|
|
8228
|
+
isConstant() {
|
|
8229
|
+
return false;
|
|
8230
|
+
}
|
|
8231
|
+
transformInternalExpressions(transform, flags) {
|
|
8232
|
+
}
|
|
8233
|
+
clone() {
|
|
8234
|
+
const r = new ReadTemporaryExpr(this.xref);
|
|
8235
|
+
r.name = this.name;
|
|
8236
|
+
return r;
|
|
8237
|
+
}
|
|
8238
|
+
};
|
|
8138
8239
|
function visitExpressionsInOp(op, visitor) {
|
|
8139
8240
|
transformExpressionsInOp(op, (expr, flags) => {
|
|
8140
8241
|
visitor(expr, flags);
|
|
@@ -8166,7 +8267,12 @@ function transformExpressionsInOp(op, transform, flags) {
|
|
|
8166
8267
|
break;
|
|
8167
8268
|
case OpKind.Attribute:
|
|
8168
8269
|
if (op.value) {
|
|
8169
|
-
transformExpressionsInExpression(op.value, transform, flags);
|
|
8270
|
+
op.value = transformExpressionsInExpression(op.value, transform, flags);
|
|
8271
|
+
}
|
|
8272
|
+
break;
|
|
8273
|
+
case OpKind.InterpolateAttribute:
|
|
8274
|
+
for (let i = 0; i < op.expressions.length; i++) {
|
|
8275
|
+
op.expressions[i] = transformExpressionsInExpression(op.expressions[i], transform, flags);
|
|
8170
8276
|
}
|
|
8171
8277
|
break;
|
|
8172
8278
|
case OpKind.Variable:
|
|
@@ -8240,12 +8346,16 @@ function transformExpressionsInStatement(stmt, transform, flags) {
|
|
|
8240
8346
|
stmt.expr = transformExpressionsInExpression(stmt.expr, transform, flags);
|
|
8241
8347
|
} else if (stmt instanceof ReturnStatement) {
|
|
8242
8348
|
stmt.value = transformExpressionsInExpression(stmt.value, transform, flags);
|
|
8349
|
+
} else if (stmt instanceof DeclareVarStmt) {
|
|
8350
|
+
if (stmt.value !== void 0) {
|
|
8351
|
+
stmt.value = transformExpressionsInExpression(stmt.value, transform, flags);
|
|
8352
|
+
}
|
|
8243
8353
|
} else {
|
|
8244
8354
|
throw new Error(`Unhandled statement kind: ${stmt.constructor.name}`);
|
|
8245
8355
|
}
|
|
8246
8356
|
}
|
|
8247
8357
|
|
|
8248
|
-
// bazel-out/
|
|
8358
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/operations.mjs
|
|
8249
8359
|
var _OpList = class {
|
|
8250
8360
|
constructor() {
|
|
8251
8361
|
this.debugListId = _OpList.nextListId++;
|
|
@@ -8411,7 +8521,7 @@ var OpList = _OpList;
|
|
|
8411
8521
|
_OpList.nextListId = 0;
|
|
8412
8522
|
})();
|
|
8413
8523
|
|
|
8414
|
-
// bazel-out/
|
|
8524
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/shared.mjs
|
|
8415
8525
|
function createStatementOp(statement) {
|
|
8416
8526
|
return __spreadValues({
|
|
8417
8527
|
kind: OpKind.Statement,
|
|
@@ -8432,7 +8542,7 @@ var NEW_OP = {
|
|
|
8432
8542
|
next: null
|
|
8433
8543
|
};
|
|
8434
8544
|
|
|
8435
|
-
// bazel-out/
|
|
8545
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/create.mjs
|
|
8436
8546
|
var elementContainerOpKinds = /* @__PURE__ */ new Set([
|
|
8437
8547
|
OpKind.Element,
|
|
8438
8548
|
OpKind.ElementStart,
|
|
@@ -8494,7 +8604,7 @@ function createPipeOp(xref, name) {
|
|
|
8494
8604
|
}, NEW_OP), TRAIT_CONSUMES_SLOT);
|
|
8495
8605
|
}
|
|
8496
8606
|
|
|
8497
|
-
// bazel-out/
|
|
8607
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/update.mjs
|
|
8498
8608
|
function createInterpolateTextOp(xref, strings, expressions) {
|
|
8499
8609
|
return __spreadValues(__spreadValues(__spreadValues({
|
|
8500
8610
|
kind: OpKind.InterpolateText,
|
|
@@ -8529,13 +8639,13 @@ function createStyleMapOp(xref, expression) {
|
|
|
8529
8639
|
}, TRAIT_DEPENDS_ON_SLOT_CONTEXT), TRAIT_CONSUMES_VARS), NEW_OP);
|
|
8530
8640
|
}
|
|
8531
8641
|
function createAttributeOp(target, attributeKind, name, value) {
|
|
8532
|
-
return __spreadValues({
|
|
8642
|
+
return __spreadValues(__spreadValues(__spreadValues({
|
|
8533
8643
|
kind: OpKind.Attribute,
|
|
8534
8644
|
target,
|
|
8535
8645
|
attributeKind,
|
|
8536
8646
|
name,
|
|
8537
8647
|
value
|
|
8538
|
-
}, NEW_OP);
|
|
8648
|
+
}, TRAIT_DEPENDS_ON_SLOT_CONTEXT), TRAIT_CONSUMES_VARS), NEW_OP);
|
|
8539
8649
|
}
|
|
8540
8650
|
function createInterpolatePropertyOp(xref, bindingKind, name, strings, expressions) {
|
|
8541
8651
|
return __spreadValues(__spreadValues(__spreadValues({
|
|
@@ -8547,6 +8657,16 @@ function createInterpolatePropertyOp(xref, bindingKind, name, strings, expressio
|
|
|
8547
8657
|
expressions
|
|
8548
8658
|
}, TRAIT_DEPENDS_ON_SLOT_CONTEXT), TRAIT_CONSUMES_VARS), NEW_OP);
|
|
8549
8659
|
}
|
|
8660
|
+
function createInterpolateAttributeOp(target, attributeKind, name, strings, expressions) {
|
|
8661
|
+
return __spreadValues(__spreadValues(__spreadValues({
|
|
8662
|
+
kind: OpKind.InterpolateAttribute,
|
|
8663
|
+
target,
|
|
8664
|
+
attributeKind,
|
|
8665
|
+
name,
|
|
8666
|
+
strings,
|
|
8667
|
+
expressions
|
|
8668
|
+
}, TRAIT_DEPENDS_ON_SLOT_CONTEXT), TRAIT_CONSUMES_VARS), NEW_OP);
|
|
8669
|
+
}
|
|
8550
8670
|
function createInterpolateStylePropOp(xref, name, strings, expressions, unit) {
|
|
8551
8671
|
return __spreadValues(__spreadValues(__spreadValues({
|
|
8552
8672
|
kind: OpKind.InterpolateStyleProp,
|
|
@@ -8572,7 +8692,7 @@ function createAdvanceOp(delta) {
|
|
|
8572
8692
|
}, NEW_OP);
|
|
8573
8693
|
}
|
|
8574
8694
|
|
|
8575
|
-
// bazel-out/
|
|
8695
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/var_counting.mjs
|
|
8576
8696
|
function phaseVarCounting(cpl) {
|
|
8577
8697
|
for (const [_, view] of cpl.views) {
|
|
8578
8698
|
let varCount = 0;
|
|
@@ -8610,12 +8730,16 @@ function varsUsedByOp(op) {
|
|
|
8610
8730
|
case OpKind.StyleProp:
|
|
8611
8731
|
case OpKind.StyleMap:
|
|
8612
8732
|
return 1;
|
|
8733
|
+
case OpKind.Attribute:
|
|
8734
|
+
return 1;
|
|
8613
8735
|
case OpKind.InterpolateText:
|
|
8614
8736
|
return op.expressions.length;
|
|
8615
8737
|
case OpKind.InterpolateProperty:
|
|
8616
8738
|
case OpKind.InterpolateStyleProp:
|
|
8617
8739
|
case OpKind.InterpolateStyleMap:
|
|
8618
8740
|
return 1 + op.expressions.length;
|
|
8741
|
+
case OpKind.InterpolateAttribute:
|
|
8742
|
+
return 1 + op.expressions.length;
|
|
8619
8743
|
default:
|
|
8620
8744
|
throw new Error(`Unhandled op: ${OpKind[op.kind]}`);
|
|
8621
8745
|
}
|
|
@@ -8633,7 +8757,7 @@ function varsUsedByIrExpression(expr) {
|
|
|
8633
8757
|
}
|
|
8634
8758
|
}
|
|
8635
8759
|
|
|
8636
|
-
// bazel-out/
|
|
8760
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/align_pipe_variadic_var_offset.mjs
|
|
8637
8761
|
function phaseAlignPipeVariadicVarOffset(cpl) {
|
|
8638
8762
|
for (const view of cpl.views.values()) {
|
|
8639
8763
|
for (const op of view.update) {
|
|
@@ -8654,7 +8778,7 @@ function phaseAlignPipeVariadicVarOffset(cpl) {
|
|
|
8654
8778
|
}
|
|
8655
8779
|
}
|
|
8656
8780
|
|
|
8657
|
-
// bazel-out/
|
|
8781
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/attribute_extraction.mjs
|
|
8658
8782
|
function phaseAttributeExtraction(cpl, compatibility) {
|
|
8659
8783
|
for (const [_, view] of cpl.views) {
|
|
8660
8784
|
populateElementAttributes(view, compatibility);
|
|
@@ -8724,12 +8848,13 @@ function populateElementAttributes(view, compatibility) {
|
|
|
8724
8848
|
}
|
|
8725
8849
|
}
|
|
8726
8850
|
|
|
8727
|
-
// bazel-out/
|
|
8851
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/chaining.mjs
|
|
8728
8852
|
var CHAINABLE = /* @__PURE__ */ new Set([
|
|
8729
8853
|
Identifiers.elementStart,
|
|
8730
8854
|
Identifiers.elementEnd,
|
|
8731
8855
|
Identifiers.property,
|
|
8732
8856
|
Identifiers.styleProp,
|
|
8857
|
+
Identifiers.attribute,
|
|
8733
8858
|
Identifiers.elementContainerStart,
|
|
8734
8859
|
Identifiers.elementContainerEnd,
|
|
8735
8860
|
Identifiers.elementContainer
|
|
@@ -8771,7 +8896,7 @@ function chainOperationsInList(opList) {
|
|
|
8771
8896
|
}
|
|
8772
8897
|
}
|
|
8773
8898
|
|
|
8774
|
-
// bazel-out/
|
|
8899
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/const_collection.mjs
|
|
8775
8900
|
function phaseConstCollection(cpl) {
|
|
8776
8901
|
for (const [_, view] of cpl.views) {
|
|
8777
8902
|
for (const op of view.create) {
|
|
@@ -8812,7 +8937,7 @@ function serializeAttributes({ attributes, bindings, classes, i18n, projectAs, s
|
|
|
8812
8937
|
return literalArr(attrArray);
|
|
8813
8938
|
}
|
|
8814
8939
|
|
|
8815
|
-
// bazel-out/
|
|
8940
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/empty_elements.mjs
|
|
8816
8941
|
var REPLACEMENTS = /* @__PURE__ */ new Map([
|
|
8817
8942
|
[OpKind.ElementEnd, [OpKind.ElementStart, OpKind.Element]],
|
|
8818
8943
|
[OpKind.ContainerEnd, [OpKind.ContainerStart, OpKind.Container]]
|
|
@@ -8833,7 +8958,7 @@ function phaseEmptyElements(cpl) {
|
|
|
8833
8958
|
}
|
|
8834
8959
|
}
|
|
8835
8960
|
|
|
8836
|
-
// bazel-out/
|
|
8961
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_advance.mjs
|
|
8837
8962
|
function phaseGenerateAdvance(cpl) {
|
|
8838
8963
|
for (const [_, view] of cpl.views) {
|
|
8839
8964
|
const slotMap = /* @__PURE__ */ new Map();
|
|
@@ -8865,7 +8990,7 @@ function phaseGenerateAdvance(cpl) {
|
|
|
8865
8990
|
}
|
|
8866
8991
|
}
|
|
8867
8992
|
|
|
8868
|
-
// bazel-out/
|
|
8993
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/nullish_coalescing.mjs
|
|
8869
8994
|
function phaseNullishCoalescing(cpl) {
|
|
8870
8995
|
for (const view of cpl.views.values()) {
|
|
8871
8996
|
for (const op of view.ops()) {
|
|
@@ -8873,20 +8998,20 @@ function phaseNullishCoalescing(cpl) {
|
|
|
8873
8998
|
if (!(expr instanceof BinaryOperatorExpr) || expr.operator !== BinaryOperator.NullishCoalesce) {
|
|
8874
8999
|
return expr;
|
|
8875
9000
|
}
|
|
8876
|
-
|
|
9001
|
+
const assignment = new AssignTemporaryExpr(expr.lhs.clone(), cpl.allocateXrefId());
|
|
9002
|
+
const read = new ReadTemporaryExpr(assignment.xref);
|
|
9003
|
+
return new ConditionalExpr(new BinaryOperatorExpr(BinaryOperator.And, new BinaryOperatorExpr(BinaryOperator.NotIdentical, assignment, NULL_EXPR), new BinaryOperatorExpr(BinaryOperator.NotIdentical, read, new LiteralExpr(void 0))), read.clone(), expr.rhs);
|
|
8877
9004
|
}, VisitorContextFlag.None);
|
|
8878
9005
|
}
|
|
8879
9006
|
}
|
|
8880
9007
|
}
|
|
8881
9008
|
|
|
8882
|
-
// bazel-out/
|
|
9009
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_variables.mjs
|
|
8883
9010
|
function phaseGenerateVariables(cpl) {
|
|
8884
9011
|
recursivelyProcessView(cpl.root, null);
|
|
8885
9012
|
}
|
|
8886
9013
|
function recursivelyProcessView(view, parentScope) {
|
|
8887
9014
|
const scope = getScopeForView(view, parentScope);
|
|
8888
|
-
if (view.parent !== null) {
|
|
8889
|
-
}
|
|
8890
9015
|
for (const op of view.create) {
|
|
8891
9016
|
switch (op.kind) {
|
|
8892
9017
|
case OpKind.Template:
|
|
@@ -8961,7 +9086,7 @@ function generateVariablesInScopeForView(view, scope) {
|
|
|
8961
9086
|
return newOps;
|
|
8962
9087
|
}
|
|
8963
9088
|
|
|
8964
|
-
// bazel-out/
|
|
9089
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/local_refs.mjs
|
|
8965
9090
|
function phaseLocalRefs(cpl) {
|
|
8966
9091
|
for (const view of cpl.views.values()) {
|
|
8967
9092
|
for (const op of view.create) {
|
|
@@ -8992,7 +9117,7 @@ function serializeLocalRefs(refs) {
|
|
|
8992
9117
|
return literalArr(constRefs);
|
|
8993
9118
|
}
|
|
8994
9119
|
|
|
8995
|
-
// bazel-out/
|
|
9120
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/naming.mjs
|
|
8996
9121
|
function phaseNaming(cpl) {
|
|
8997
9122
|
addNamesToView(cpl.root, cpl.componentName, { index: 0 });
|
|
8998
9123
|
}
|
|
@@ -9050,7 +9175,7 @@ function getVariableName(variable2, state) {
|
|
|
9050
9175
|
return variable2.name;
|
|
9051
9176
|
}
|
|
9052
9177
|
|
|
9053
|
-
// bazel-out/
|
|
9178
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/next_context_merging.mjs
|
|
9054
9179
|
function phaseMergeNextContext(cpl) {
|
|
9055
9180
|
for (const view of cpl.views.values()) {
|
|
9056
9181
|
for (const op of view.create) {
|
|
@@ -9095,7 +9220,7 @@ function mergeNextContextsInOps(ops) {
|
|
|
9095
9220
|
}
|
|
9096
9221
|
}
|
|
9097
9222
|
|
|
9098
|
-
// bazel-out/
|
|
9223
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/ng_container.mjs
|
|
9099
9224
|
var CONTAINER_TAG = "ng-container";
|
|
9100
9225
|
function phaseNgContainer(cpl) {
|
|
9101
9226
|
for (const [_, view] of cpl.views) {
|
|
@@ -9112,7 +9237,7 @@ function phaseNgContainer(cpl) {
|
|
|
9112
9237
|
}
|
|
9113
9238
|
}
|
|
9114
9239
|
|
|
9115
|
-
// bazel-out/
|
|
9240
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pipe_creation.mjs
|
|
9116
9241
|
function phasePipeCreation(cpl) {
|
|
9117
9242
|
for (const view of cpl.views.values()) {
|
|
9118
9243
|
processPipeBindingsInView(view);
|
|
@@ -9155,7 +9280,7 @@ function addPipeToCreationBlock(view, afterTargetXref, binding) {
|
|
|
9155
9280
|
throw new Error(`AssertionError: unable to find insertion point for pipe ${binding.name}`);
|
|
9156
9281
|
}
|
|
9157
9282
|
|
|
9158
|
-
// bazel-out/
|
|
9283
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pipe_variadic.mjs
|
|
9159
9284
|
function phasePipeVariadic(cpl) {
|
|
9160
9285
|
for (const view of cpl.views.values()) {
|
|
9161
9286
|
for (const op of view.update) {
|
|
@@ -9172,7 +9297,7 @@ function phasePipeVariadic(cpl) {
|
|
|
9172
9297
|
}
|
|
9173
9298
|
}
|
|
9174
9299
|
|
|
9175
|
-
// bazel-out/
|
|
9300
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pure_function_extraction.mjs
|
|
9176
9301
|
function phasePureFunctionExtraction(cpl) {
|
|
9177
9302
|
for (const view of cpl.views.values()) {
|
|
9178
9303
|
for (const op of view.ops()) {
|
|
@@ -9214,7 +9339,7 @@ var PureFunctionConstant = class extends GenericKeyFn {
|
|
|
9214
9339
|
}
|
|
9215
9340
|
};
|
|
9216
9341
|
|
|
9217
|
-
// bazel-out/
|
|
9342
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pure_literal_structures.mjs
|
|
9218
9343
|
function phasePureLiteralStructures(cpl) {
|
|
9219
9344
|
for (const view of cpl.views.values()) {
|
|
9220
9345
|
for (const op of view.update) {
|
|
@@ -9261,7 +9386,7 @@ function transformLiteralMap(expr) {
|
|
|
9261
9386
|
return new PureFunctionExpr(literalMap(derivedEntries), nonConstantArgs);
|
|
9262
9387
|
}
|
|
9263
9388
|
|
|
9264
|
-
// bazel-out/
|
|
9389
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/instruction.mjs
|
|
9265
9390
|
function element(slot, tag, constIndex, localRefIndex) {
|
|
9266
9391
|
return elementOrContainerBase(Identifiers.element, slot, tag, constIndex, localRefIndex);
|
|
9267
9392
|
}
|
|
@@ -9356,6 +9481,9 @@ function property(name, expression) {
|
|
|
9356
9481
|
expression
|
|
9357
9482
|
]);
|
|
9358
9483
|
}
|
|
9484
|
+
function attribute(name, expression) {
|
|
9485
|
+
return call(Identifiers.attribute, [literal(name), expression]);
|
|
9486
|
+
}
|
|
9359
9487
|
function styleProp(name, expression, unit) {
|
|
9360
9488
|
const args = [literal(name), expression];
|
|
9361
9489
|
if (unit !== null) {
|
|
@@ -9410,6 +9538,10 @@ function propertyInterpolate(name, strings, expressions) {
|
|
|
9410
9538
|
const interpolationArgs = collateInterpolationArgs(strings, expressions);
|
|
9411
9539
|
return callVariadicInstruction(PROPERTY_INTERPOLATE_CONFIG, [literal(name)], interpolationArgs);
|
|
9412
9540
|
}
|
|
9541
|
+
function attributeInterpolate(name, strings, expressions) {
|
|
9542
|
+
const interpolationArgs = collateInterpolationArgs(strings, expressions);
|
|
9543
|
+
return callVariadicInstruction(ATTRIBUTE_INTERPOLATE_CONFIG, [literal(name)], interpolationArgs);
|
|
9544
|
+
}
|
|
9413
9545
|
function stylePropInterpolate(name, strings, expressions, unit) {
|
|
9414
9546
|
const interpolationArgs = collateInterpolationArgs(strings, expressions);
|
|
9415
9547
|
const extraArgs = [];
|
|
@@ -9510,6 +9642,26 @@ var STYLE_PROP_INTERPOLATE_CONFIG = {
|
|
|
9510
9642
|
return (n - 1) / 2;
|
|
9511
9643
|
}
|
|
9512
9644
|
};
|
|
9645
|
+
var ATTRIBUTE_INTERPOLATE_CONFIG = {
|
|
9646
|
+
constant: [
|
|
9647
|
+
Identifiers.attribute,
|
|
9648
|
+
Identifiers.attributeInterpolate1,
|
|
9649
|
+
Identifiers.attributeInterpolate2,
|
|
9650
|
+
Identifiers.attributeInterpolate3,
|
|
9651
|
+
Identifiers.attributeInterpolate4,
|
|
9652
|
+
Identifiers.attributeInterpolate5,
|
|
9653
|
+
Identifiers.attributeInterpolate6,
|
|
9654
|
+
Identifiers.attributeInterpolate7,
|
|
9655
|
+
Identifiers.attributeInterpolate8
|
|
9656
|
+
],
|
|
9657
|
+
variable: Identifiers.attributeInterpolateV,
|
|
9658
|
+
mapping: (n) => {
|
|
9659
|
+
if (n % 2 === 0) {
|
|
9660
|
+
throw new Error(`Expected odd number of arguments`);
|
|
9661
|
+
}
|
|
9662
|
+
return (n - 1) / 2;
|
|
9663
|
+
}
|
|
9664
|
+
};
|
|
9513
9665
|
var STYLE_MAP_INTERPOLATE_CONFIG = {
|
|
9514
9666
|
constant: [
|
|
9515
9667
|
null,
|
|
@@ -9570,7 +9722,7 @@ function callVariadicInstruction(config, baseArgs, interpolationArgs, extraArgs
|
|
|
9570
9722
|
return createStatementOp(callVariadicInstructionExpr(config, baseArgs, interpolationArgs, extraArgs).toStmt());
|
|
9571
9723
|
}
|
|
9572
9724
|
|
|
9573
|
-
// bazel-out/
|
|
9725
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/reify.mjs
|
|
9574
9726
|
function phaseReify(cpl) {
|
|
9575
9727
|
for (const [_, view] of cpl.views) {
|
|
9576
9728
|
reifyCreateOperations(view, view.create);
|
|
@@ -9654,6 +9806,12 @@ function reifyUpdateOperations(_view, ops) {
|
|
|
9654
9806
|
case OpKind.InterpolateText:
|
|
9655
9807
|
OpList.replace(op, textInterpolate(op.strings, op.expressions));
|
|
9656
9808
|
break;
|
|
9809
|
+
case OpKind.Attribute:
|
|
9810
|
+
OpList.replace(op, attribute(op.name, op.value));
|
|
9811
|
+
break;
|
|
9812
|
+
case OpKind.InterpolateAttribute:
|
|
9813
|
+
OpList.replace(op, attributeInterpolate(op.name, op.strings, op.expressions));
|
|
9814
|
+
break;
|
|
9657
9815
|
case OpKind.Variable:
|
|
9658
9816
|
if (op.variable.name === null) {
|
|
9659
9817
|
throw new Error(`AssertionError: unnamed variable ${op.xref}`);
|
|
@@ -9692,6 +9850,16 @@ function reifyIrExpression(expr) {
|
|
|
9692
9850
|
throw new Error(`Read of unnamed variable ${expr.xref}`);
|
|
9693
9851
|
}
|
|
9694
9852
|
return variable(expr.name);
|
|
9853
|
+
case ExpressionKind.ReadTemporaryExpr:
|
|
9854
|
+
if (expr.name === null) {
|
|
9855
|
+
throw new Error(`Read of unnamed temporary ${expr.xref}`);
|
|
9856
|
+
}
|
|
9857
|
+
return variable(expr.name);
|
|
9858
|
+
case ExpressionKind.AssignTemporaryExpr:
|
|
9859
|
+
if (expr.name === null) {
|
|
9860
|
+
throw new Error(`Assign of unnamed temporary ${expr.xref}`);
|
|
9861
|
+
}
|
|
9862
|
+
return variable(expr.name).set(expr.expr);
|
|
9695
9863
|
case ExpressionKind.PureFunctionExpr:
|
|
9696
9864
|
if (expr.fn === null) {
|
|
9697
9865
|
throw new Error(`AssertionError: expected PureFunctions to have been extracted`);
|
|
@@ -9736,7 +9904,7 @@ var LookForEventVisitor = class extends RecursiveAstVisitor {
|
|
|
9736
9904
|
}
|
|
9737
9905
|
};
|
|
9738
9906
|
|
|
9739
|
-
// bazel-out/
|
|
9907
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_contexts.mjs
|
|
9740
9908
|
function phaseResolveContexts(cpl) {
|
|
9741
9909
|
for (const view of cpl.views.values()) {
|
|
9742
9910
|
processLexicalScope(view, view.create);
|
|
@@ -9774,7 +9942,7 @@ function processLexicalScope(view, ops) {
|
|
|
9774
9942
|
}
|
|
9775
9943
|
}
|
|
9776
9944
|
|
|
9777
|
-
// bazel-out/
|
|
9945
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_names.mjs
|
|
9778
9946
|
function phaseResolveNames(cpl) {
|
|
9779
9947
|
for (const [_, view] of cpl.views) {
|
|
9780
9948
|
processLexicalScope2(view, view.create, null);
|
|
@@ -9825,14 +9993,18 @@ function processLexicalScope2(view, ops, savedView) {
|
|
|
9825
9993
|
}
|
|
9826
9994
|
}, VisitorContextFlag.None);
|
|
9827
9995
|
}
|
|
9996
|
+
for (const op of ops) {
|
|
9997
|
+
visitExpressionsInOp(op, (expr) => {
|
|
9998
|
+
if (expr instanceof LexicalReadExpr) {
|
|
9999
|
+
throw new Error(`AssertionError: no lexical reads should remain, but found read of ${expr.name}`);
|
|
10000
|
+
}
|
|
10001
|
+
});
|
|
10002
|
+
}
|
|
9828
10003
|
}
|
|
9829
10004
|
|
|
9830
|
-
// bazel-out/
|
|
10005
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/save_restore_view.mjs
|
|
9831
10006
|
function phaseSaveRestoreView(cpl) {
|
|
9832
10007
|
for (const view of cpl.views.values()) {
|
|
9833
|
-
if (view === cpl.root) {
|
|
9834
|
-
continue;
|
|
9835
|
-
}
|
|
9836
10008
|
view.create.prepend([
|
|
9837
10009
|
createVariableOp(view.tpl.allocateXrefId(), {
|
|
9838
10010
|
kind: SemanticVariableKind.SavedView,
|
|
@@ -9844,23 +10016,38 @@ function phaseSaveRestoreView(cpl) {
|
|
|
9844
10016
|
if (op.kind !== OpKind.Listener) {
|
|
9845
10017
|
continue;
|
|
9846
10018
|
}
|
|
9847
|
-
|
|
9848
|
-
|
|
9849
|
-
|
|
9850
|
-
|
|
9851
|
-
|
|
9852
|
-
|
|
9853
|
-
|
|
9854
|
-
|
|
9855
|
-
if (handlerOp.kind === OpKind.Statement && handlerOp.statement instanceof ReturnStatement) {
|
|
9856
|
-
handlerOp.statement.value = new ResetViewExpr(handlerOp.statement.value);
|
|
10019
|
+
let needsRestoreView = view !== cpl.root;
|
|
10020
|
+
if (!needsRestoreView) {
|
|
10021
|
+
for (const handlerOp of op.handlerOps) {
|
|
10022
|
+
visitExpressionsInOp(handlerOp, (expr) => {
|
|
10023
|
+
if (expr instanceof ReferenceExpr) {
|
|
10024
|
+
needsRestoreView = true;
|
|
10025
|
+
}
|
|
10026
|
+
});
|
|
9857
10027
|
}
|
|
9858
10028
|
}
|
|
10029
|
+
if (needsRestoreView) {
|
|
10030
|
+
addSaveRestoreViewOperationToListener(view, op);
|
|
10031
|
+
}
|
|
10032
|
+
}
|
|
10033
|
+
}
|
|
10034
|
+
}
|
|
10035
|
+
function addSaveRestoreViewOperationToListener(view, op) {
|
|
10036
|
+
op.handlerOps.prepend([
|
|
10037
|
+
createVariableOp(view.tpl.allocateXrefId(), {
|
|
10038
|
+
kind: SemanticVariableKind.Context,
|
|
10039
|
+
name: null,
|
|
10040
|
+
view: view.xref
|
|
10041
|
+
}, new RestoreViewExpr(view.xref))
|
|
10042
|
+
]);
|
|
10043
|
+
for (const handlerOp of op.handlerOps) {
|
|
10044
|
+
if (handlerOp.kind === OpKind.Statement && handlerOp.statement instanceof ReturnStatement) {
|
|
10045
|
+
handlerOp.statement.value = new ResetViewExpr(handlerOp.statement.value);
|
|
9859
10046
|
}
|
|
9860
10047
|
}
|
|
9861
10048
|
}
|
|
9862
10049
|
|
|
9863
|
-
// bazel-out/
|
|
10050
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/slot_allocation.mjs
|
|
9864
10051
|
function phaseSlotAllocation(cpl) {
|
|
9865
10052
|
const slotMap = /* @__PURE__ */ new Map();
|
|
9866
10053
|
for (const [_, view] of cpl.views) {
|
|
@@ -9903,7 +10090,7 @@ function phaseSlotAllocation(cpl) {
|
|
|
9903
10090
|
}
|
|
9904
10091
|
}
|
|
9905
10092
|
|
|
9906
|
-
// bazel-out/
|
|
10093
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/variable_optimization.mjs
|
|
9907
10094
|
function phaseVariableOptimization(cpl, options) {
|
|
9908
10095
|
for (const [_, view] of cpl.views) {
|
|
9909
10096
|
optimizeVariablesInOpList(view.create, options);
|
|
@@ -10113,20 +10300,78 @@ function allowConservativeInlining(decl, target) {
|
|
|
10113
10300
|
}
|
|
10114
10301
|
}
|
|
10115
10302
|
|
|
10116
|
-
// bazel-out/
|
|
10117
|
-
function phaseExpandSafeReads(cpl) {
|
|
10303
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/expand_safe_reads.mjs
|
|
10304
|
+
function phaseExpandSafeReads(cpl, compatibility) {
|
|
10118
10305
|
for (const [_, view] of cpl.views) {
|
|
10119
10306
|
for (const op of view.ops()) {
|
|
10120
|
-
transformExpressionsInOp(op, safeTransform, VisitorContextFlag.None);
|
|
10307
|
+
transformExpressionsInOp(op, (e) => safeTransform(e, { cpl, compatibility }), VisitorContextFlag.None);
|
|
10121
10308
|
transformExpressionsInOp(op, ternaryTransform, VisitorContextFlag.None);
|
|
10122
10309
|
}
|
|
10123
10310
|
}
|
|
10124
10311
|
}
|
|
10312
|
+
var requiresTemporary = [
|
|
10313
|
+
InvokeFunctionExpr,
|
|
10314
|
+
LiteralArrayExpr,
|
|
10315
|
+
LiteralMapExpr,
|
|
10316
|
+
SafeInvokeFunctionExpr,
|
|
10317
|
+
PipeBindingExpr
|
|
10318
|
+
].map((e) => e.constructor.name);
|
|
10319
|
+
function needsTemporaryInSafeAccess(e) {
|
|
10320
|
+
if (e instanceof UnaryOperatorExpr) {
|
|
10321
|
+
return needsTemporaryInSafeAccess(e.expr);
|
|
10322
|
+
} else if (e instanceof BinaryOperatorExpr) {
|
|
10323
|
+
return needsTemporaryInSafeAccess(e.lhs) || needsTemporaryInSafeAccess(e.rhs);
|
|
10324
|
+
} else if (e instanceof ConditionalExpr) {
|
|
10325
|
+
if (e.falseCase && needsTemporaryInSafeAccess(e.falseCase))
|
|
10326
|
+
return true;
|
|
10327
|
+
return needsTemporaryInSafeAccess(e.condition) || needsTemporaryInSafeAccess(e.trueCase);
|
|
10328
|
+
} else if (e instanceof NotExpr) {
|
|
10329
|
+
return needsTemporaryInSafeAccess(e.condition);
|
|
10330
|
+
} else if (e instanceof AssignTemporaryExpr) {
|
|
10331
|
+
return needsTemporaryInSafeAccess(e.expr);
|
|
10332
|
+
} else if (e instanceof ReadPropExpr) {
|
|
10333
|
+
return needsTemporaryInSafeAccess(e.receiver);
|
|
10334
|
+
} else if (e instanceof ReadKeyExpr) {
|
|
10335
|
+
return needsTemporaryInSafeAccess(e.receiver) || needsTemporaryInSafeAccess(e.index);
|
|
10336
|
+
}
|
|
10337
|
+
return e instanceof InvokeFunctionExpr || e instanceof LiteralArrayExpr || e instanceof LiteralMapExpr || e instanceof SafeInvokeFunctionExpr || e instanceof PipeBindingExpr;
|
|
10338
|
+
}
|
|
10339
|
+
function temporariesIn(e) {
|
|
10340
|
+
const temporaries = /* @__PURE__ */ new Set();
|
|
10341
|
+
transformExpressionsInExpression(e, (e2) => {
|
|
10342
|
+
if (e2 instanceof AssignTemporaryExpr) {
|
|
10343
|
+
temporaries.add(e2.xref);
|
|
10344
|
+
}
|
|
10345
|
+
return e2;
|
|
10346
|
+
}, VisitorContextFlag.None);
|
|
10347
|
+
return temporaries;
|
|
10348
|
+
}
|
|
10349
|
+
function eliminateTemporaryAssignments(e, tmps, ctx) {
|
|
10350
|
+
transformExpressionsInExpression(e, (e2) => {
|
|
10351
|
+
if (e2 instanceof AssignTemporaryExpr && tmps.has(e2.xref)) {
|
|
10352
|
+
const read = new ReadTemporaryExpr(e2.xref);
|
|
10353
|
+
return ctx.compatibility ? new AssignTemporaryExpr(read, read.xref) : read;
|
|
10354
|
+
}
|
|
10355
|
+
return e2;
|
|
10356
|
+
}, VisitorContextFlag.None);
|
|
10357
|
+
return e;
|
|
10358
|
+
}
|
|
10359
|
+
function safeTernaryWithTemporary(guard, body, ctx) {
|
|
10360
|
+
let result;
|
|
10361
|
+
if (needsTemporaryInSafeAccess(guard)) {
|
|
10362
|
+
const xref = ctx.cpl.allocateXrefId();
|
|
10363
|
+
result = [new AssignTemporaryExpr(guard, xref), new ReadTemporaryExpr(xref)];
|
|
10364
|
+
} else {
|
|
10365
|
+
result = [guard, guard.clone()];
|
|
10366
|
+
eliminateTemporaryAssignments(result[1], temporariesIn(result[0]), ctx);
|
|
10367
|
+
}
|
|
10368
|
+
return new SafeTernaryExpr(result[0], body(result[1]));
|
|
10369
|
+
}
|
|
10125
10370
|
function isSafeAccessExpression(e) {
|
|
10126
10371
|
return e instanceof SafePropertyReadExpr || e instanceof SafeKeyedReadExpr;
|
|
10127
10372
|
}
|
|
10128
10373
|
function isUnsafeAccessExpression(e) {
|
|
10129
|
-
return e instanceof ReadPropExpr || e instanceof ReadKeyExpr;
|
|
10374
|
+
return e instanceof ReadPropExpr || e instanceof ReadKeyExpr || e instanceof InvokeFunctionExpr;
|
|
10130
10375
|
}
|
|
10131
10376
|
function isAccessExpression(e) {
|
|
10132
10377
|
return isSafeAccessExpression(e) || isUnsafeAccessExpression(e);
|
|
@@ -10141,7 +10386,7 @@ function deepestSafeTernary(e) {
|
|
|
10141
10386
|
}
|
|
10142
10387
|
return null;
|
|
10143
10388
|
}
|
|
10144
|
-
function safeTransform(e) {
|
|
10389
|
+
function safeTransform(e, ctx) {
|
|
10145
10390
|
if (e instanceof SafeInvokeFunctionExpr) {
|
|
10146
10391
|
return new InvokeFunctionExpr(e.receiver, e.args);
|
|
10147
10392
|
}
|
|
@@ -10150,6 +10395,10 @@ function safeTransform(e) {
|
|
|
10150
10395
|
}
|
|
10151
10396
|
const dst = deepestSafeTernary(e);
|
|
10152
10397
|
if (dst) {
|
|
10398
|
+
if (e instanceof InvokeFunctionExpr) {
|
|
10399
|
+
dst.expr = dst.expr.callFn(e.args);
|
|
10400
|
+
return e.receiver;
|
|
10401
|
+
}
|
|
10153
10402
|
if (e instanceof ReadPropExpr) {
|
|
10154
10403
|
dst.expr = dst.expr.prop(e.name);
|
|
10155
10404
|
return e.receiver;
|
|
@@ -10159,19 +10408,19 @@ function safeTransform(e) {
|
|
|
10159
10408
|
return e.receiver;
|
|
10160
10409
|
}
|
|
10161
10410
|
if (e instanceof SafePropertyReadExpr) {
|
|
10162
|
-
dst.expr =
|
|
10411
|
+
dst.expr = safeTernaryWithTemporary(dst.expr, (r) => r.prop(e.name), ctx);
|
|
10163
10412
|
return e.receiver;
|
|
10164
10413
|
}
|
|
10165
10414
|
if (e instanceof SafeKeyedReadExpr) {
|
|
10166
|
-
dst.expr =
|
|
10415
|
+
dst.expr = safeTernaryWithTemporary(dst.expr, (r) => r.key(e.index), ctx);
|
|
10167
10416
|
return e.receiver;
|
|
10168
10417
|
}
|
|
10169
10418
|
} else {
|
|
10170
10419
|
if (e instanceof SafePropertyReadExpr) {
|
|
10171
|
-
return
|
|
10420
|
+
return safeTernaryWithTemporary(e.receiver, (r) => r.prop(e.name), ctx);
|
|
10172
10421
|
}
|
|
10173
10422
|
if (e instanceof SafeKeyedReadExpr) {
|
|
10174
|
-
return
|
|
10423
|
+
return safeTernaryWithTemporary(e.receiver, (r) => r.key(e.index), ctx);
|
|
10175
10424
|
}
|
|
10176
10425
|
}
|
|
10177
10426
|
return e;
|
|
@@ -10183,7 +10432,40 @@ function ternaryTransform(e) {
|
|
|
10183
10432
|
return new ConditionalExpr(new BinaryOperatorExpr(BinaryOperator.Equals, e.guard, NULL_EXPR), NULL_EXPR, e.expr);
|
|
10184
10433
|
}
|
|
10185
10434
|
|
|
10186
|
-
// bazel-out/
|
|
10435
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/temporary_variables.mjs
|
|
10436
|
+
function phaseTemporaryVariables(cpl) {
|
|
10437
|
+
for (const view of cpl.views.values()) {
|
|
10438
|
+
let opCount = 0;
|
|
10439
|
+
let generatedStatements = [];
|
|
10440
|
+
for (const op of view.ops()) {
|
|
10441
|
+
let count = 0;
|
|
10442
|
+
let xrefs = /* @__PURE__ */ new Set();
|
|
10443
|
+
let defs = /* @__PURE__ */ new Map();
|
|
10444
|
+
visitExpressionsInOp(op, (expr) => {
|
|
10445
|
+
if (expr instanceof ReadTemporaryExpr || expr instanceof AssignTemporaryExpr) {
|
|
10446
|
+
xrefs.add(expr.xref);
|
|
10447
|
+
}
|
|
10448
|
+
});
|
|
10449
|
+
for (const xref of xrefs) {
|
|
10450
|
+
defs.set(xref, `tmp_${opCount}_${count++}`);
|
|
10451
|
+
}
|
|
10452
|
+
visitExpressionsInOp(op, (expr) => {
|
|
10453
|
+
if (expr instanceof ReadTemporaryExpr || expr instanceof AssignTemporaryExpr) {
|
|
10454
|
+
const name = defs.get(expr.xref);
|
|
10455
|
+
if (name === void 0) {
|
|
10456
|
+
throw new Error("Found xref with unassigned name");
|
|
10457
|
+
}
|
|
10458
|
+
expr.name = name;
|
|
10459
|
+
}
|
|
10460
|
+
});
|
|
10461
|
+
generatedStatements.push(...Array.from(defs.values()).map((name) => createStatementOp(new DeclareVarStmt(name))));
|
|
10462
|
+
opCount++;
|
|
10463
|
+
}
|
|
10464
|
+
view.update.prepend(generatedStatements);
|
|
10465
|
+
}
|
|
10466
|
+
}
|
|
10467
|
+
|
|
10468
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/emit.mjs
|
|
10187
10469
|
function transformTemplate(cpl) {
|
|
10188
10470
|
phaseAttributeExtraction(cpl, true);
|
|
10189
10471
|
phasePipeCreation(cpl);
|
|
@@ -10196,7 +10478,8 @@ function transformTemplate(cpl) {
|
|
|
10196
10478
|
phaseLocalRefs(cpl);
|
|
10197
10479
|
phaseConstCollection(cpl);
|
|
10198
10480
|
phaseNullishCoalescing(cpl);
|
|
10199
|
-
phaseExpandSafeReads(cpl);
|
|
10481
|
+
phaseExpandSafeReads(cpl, true);
|
|
10482
|
+
phaseTemporaryVariables(cpl);
|
|
10200
10483
|
phaseSlotAllocation(cpl);
|
|
10201
10484
|
phaseVarCounting(cpl);
|
|
10202
10485
|
phaseGenerateAdvance(cpl);
|
|
@@ -10268,7 +10551,7 @@ function maybeGenerateRfBlock(flag, statements) {
|
|
|
10268
10551
|
];
|
|
10269
10552
|
}
|
|
10270
10553
|
|
|
10271
|
-
// bazel-out/
|
|
10554
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/compilation.mjs
|
|
10272
10555
|
var ComponentCompilation = class {
|
|
10273
10556
|
constructor(componentName, pool) {
|
|
10274
10557
|
this.componentName = componentName;
|
|
@@ -10326,7 +10609,7 @@ var ViewCompilation = class {
|
|
|
10326
10609
|
}
|
|
10327
10610
|
};
|
|
10328
10611
|
|
|
10329
|
-
// bazel-out/
|
|
10612
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/conversion.mjs
|
|
10330
10613
|
var BINARY_OPERATORS = /* @__PURE__ */ new Map([
|
|
10331
10614
|
["&&", BinaryOperator.And],
|
|
10332
10615
|
[">", BinaryOperator.Bigger],
|
|
@@ -10347,7 +10630,7 @@ var BINARY_OPERATORS = /* @__PURE__ */ new Map([
|
|
|
10347
10630
|
["+", BinaryOperator.Plus]
|
|
10348
10631
|
]);
|
|
10349
10632
|
|
|
10350
|
-
// bazel-out/
|
|
10633
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/src/ingest.mjs
|
|
10351
10634
|
function ingest(componentName, template2, constantPool) {
|
|
10352
10635
|
const cpl = new ComponentCompilation(componentName, constantPool);
|
|
10353
10636
|
ingestNodes(cpl.root, template2);
|
|
@@ -10533,6 +10816,13 @@ function ingestPropertyBinding(view, xref, bindingKind, { name, value, type, uni
|
|
|
10533
10816
|
}
|
|
10534
10817
|
view.update.push(createInterpolateStylePropOp(xref, name, value.strings, value.expressions.map((expr) => convertAst(expr, view.tpl)), unit));
|
|
10535
10818
|
break;
|
|
10819
|
+
case 1:
|
|
10820
|
+
if (bindingKind !== ElementAttributeKind.Binding) {
|
|
10821
|
+
throw new Error("Attribute bindings on templates are not expected to be valid");
|
|
10822
|
+
}
|
|
10823
|
+
const attributeInterpolate2 = createInterpolateAttributeOp(xref, bindingKind, name, value.strings, value.expressions.map((expr) => convertAst(expr, view.tpl)));
|
|
10824
|
+
view.update.push(attributeInterpolate2);
|
|
10825
|
+
break;
|
|
10536
10826
|
default:
|
|
10537
10827
|
throw Error(`Interpolated property binding type not handled: ${type}`);
|
|
10538
10828
|
}
|
|
@@ -10554,6 +10844,13 @@ function ingestPropertyBinding(view, xref, bindingKind, { name, value, type, uni
|
|
|
10554
10844
|
}
|
|
10555
10845
|
view.update.push(createStylePropOp(xref, name, convertAst(value, view.tpl), unit));
|
|
10556
10846
|
break;
|
|
10847
|
+
case 1:
|
|
10848
|
+
if (bindingKind !== ElementAttributeKind.Binding) {
|
|
10849
|
+
throw new Error("Attribute bindings on templates are not expected to be valid");
|
|
10850
|
+
}
|
|
10851
|
+
const attrOp = createAttributeOp(xref, bindingKind, name, convertAst(value, view.tpl));
|
|
10852
|
+
view.update.push(attrOp);
|
|
10853
|
+
break;
|
|
10557
10854
|
default:
|
|
10558
10855
|
throw Error(`Property binding type not handled: ${type}`);
|
|
10559
10856
|
}
|
|
@@ -10574,10 +10871,10 @@ function assertIsArray(value) {
|
|
|
10574
10871
|
}
|
|
10575
10872
|
}
|
|
10576
10873
|
|
|
10577
|
-
// bazel-out/
|
|
10874
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template/pipeline/switch/index.mjs
|
|
10578
10875
|
var USE_TEMPLATE_PIPELINE = false;
|
|
10579
10876
|
|
|
10580
|
-
// bazel-out/
|
|
10877
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/style_parser.mjs
|
|
10581
10878
|
function parse(value) {
|
|
10582
10879
|
const styles = [];
|
|
10583
10880
|
let i = 0;
|
|
@@ -10638,7 +10935,7 @@ function hyphenate(value) {
|
|
|
10638
10935
|
}).toLowerCase();
|
|
10639
10936
|
}
|
|
10640
10937
|
|
|
10641
|
-
// bazel-out/
|
|
10938
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/styling_builder.mjs
|
|
10642
10939
|
var IMPORTANT_FLAG = "!important";
|
|
10643
10940
|
var MIN_STYLING_BINDING_SLOTS_REQUIRED = 2;
|
|
10644
10941
|
var StylingBuilder = class {
|
|
@@ -10971,7 +11268,7 @@ function isEmptyExpression(ast) {
|
|
|
10971
11268
|
return ast instanceof EmptyExpr;
|
|
10972
11269
|
}
|
|
10973
11270
|
|
|
10974
|
-
// bazel-out/
|
|
11271
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/expression_parser/lexer.mjs
|
|
10975
11272
|
var TokenType;
|
|
10976
11273
|
(function(TokenType2) {
|
|
10977
11274
|
TokenType2[TokenType2["Character"] = 0] = "Character";
|
|
@@ -11332,7 +11629,7 @@ function parseIntAutoRadix(text2) {
|
|
|
11332
11629
|
return result;
|
|
11333
11630
|
}
|
|
11334
11631
|
|
|
11335
|
-
// bazel-out/
|
|
11632
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/expression_parser/parser.mjs
|
|
11336
11633
|
var SplitInterpolation = class {
|
|
11337
11634
|
constructor(strings, expressions, offsets) {
|
|
11338
11635
|
this.strings = strings;
|
|
@@ -12226,7 +12523,7 @@ function getIndexMapForOriginalTemplate(interpolatedTokens) {
|
|
|
12226
12523
|
return offsetMap;
|
|
12227
12524
|
}
|
|
12228
12525
|
|
|
12229
|
-
// bazel-out/
|
|
12526
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/ast.mjs
|
|
12230
12527
|
var NodeWithI18n = class {
|
|
12231
12528
|
constructor(sourceSpan, i18n) {
|
|
12232
12529
|
this.sourceSpan = sourceSpan;
|
|
@@ -12302,6 +12599,39 @@ var Comment2 = class {
|
|
|
12302
12599
|
return visitor.visitComment(this, context);
|
|
12303
12600
|
}
|
|
12304
12601
|
};
|
|
12602
|
+
var BlockGroup = class {
|
|
12603
|
+
constructor(blocks, sourceSpan, startSourceSpan, endSourceSpan = null) {
|
|
12604
|
+
this.blocks = blocks;
|
|
12605
|
+
this.sourceSpan = sourceSpan;
|
|
12606
|
+
this.startSourceSpan = startSourceSpan;
|
|
12607
|
+
this.endSourceSpan = endSourceSpan;
|
|
12608
|
+
}
|
|
12609
|
+
visit(visitor, context) {
|
|
12610
|
+
return visitor.visitBlockGroup(this, context);
|
|
12611
|
+
}
|
|
12612
|
+
};
|
|
12613
|
+
var Block = class {
|
|
12614
|
+
constructor(name, parameters, children, sourceSpan, startSourceSpan, endSourceSpan = null) {
|
|
12615
|
+
this.name = name;
|
|
12616
|
+
this.parameters = parameters;
|
|
12617
|
+
this.children = children;
|
|
12618
|
+
this.sourceSpan = sourceSpan;
|
|
12619
|
+
this.startSourceSpan = startSourceSpan;
|
|
12620
|
+
this.endSourceSpan = endSourceSpan;
|
|
12621
|
+
}
|
|
12622
|
+
visit(visitor, context) {
|
|
12623
|
+
return visitor.visitBlock(this, context);
|
|
12624
|
+
}
|
|
12625
|
+
};
|
|
12626
|
+
var BlockParameter = class {
|
|
12627
|
+
constructor(expression, sourceSpan) {
|
|
12628
|
+
this.expression = expression;
|
|
12629
|
+
this.sourceSpan = sourceSpan;
|
|
12630
|
+
}
|
|
12631
|
+
visit(visitor, context) {
|
|
12632
|
+
return visitor.visitBlockParameter(this, context);
|
|
12633
|
+
}
|
|
12634
|
+
};
|
|
12305
12635
|
function visitAll2(visitor, nodes, context = null) {
|
|
12306
12636
|
const result = [];
|
|
12307
12637
|
const visit2 = visitor.visit ? (ast) => visitor.visit(ast, context) || ast.visit(visitor, context) : (ast) => ast.visit(visitor, context);
|
|
@@ -12314,11 +12644,11 @@ function visitAll2(visitor, nodes, context = null) {
|
|
|
12314
12644
|
return result;
|
|
12315
12645
|
}
|
|
12316
12646
|
|
|
12317
|
-
// bazel-out/
|
|
12647
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/schema/element_schema_registry.mjs
|
|
12318
12648
|
var ElementSchemaRegistry = class {
|
|
12319
12649
|
};
|
|
12320
12650
|
|
|
12321
|
-
// bazel-out/
|
|
12651
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/schema/dom_element_schema_registry.mjs
|
|
12322
12652
|
var BOOLEAN = "boolean";
|
|
12323
12653
|
var NUMBER = "number";
|
|
12324
12654
|
var STRING = "string";
|
|
@@ -12671,7 +13001,7 @@ function _isPixelDimensionStyle(prop) {
|
|
|
12671
13001
|
}
|
|
12672
13002
|
}
|
|
12673
13003
|
|
|
12674
|
-
// bazel-out/
|
|
13004
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/html_tags.mjs
|
|
12675
13005
|
var HtmlTagDefinition = class {
|
|
12676
13006
|
constructor({ closedByChildren, implicitNamespacePrefix, contentType = TagContentType.PARSABLE_DATA, closedByParent = false, isVoid = false, ignoreFirstLf = false, preventNamespaceInheritance = false, canSelfClose = false } = {}) {
|
|
12677
13007
|
this.closedByChildren = {};
|
|
@@ -12789,7 +13119,7 @@ function getHtmlTagDefinition(tagName) {
|
|
|
12789
13119
|
return (_b2 = (_a2 = TAG_DEFINITIONS[tagName]) != null ? _a2 : TAG_DEFINITIONS[tagName.toLowerCase()]) != null ? _b2 : DEFAULT_TAG_DEFINITION;
|
|
12790
13120
|
}
|
|
12791
13121
|
|
|
12792
|
-
// bazel-out/
|
|
13122
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/entities.mjs
|
|
12793
13123
|
var NAMED_ENTITIES = {
|
|
12794
13124
|
"AElig": "\xC6",
|
|
12795
13125
|
"AMP": "&",
|
|
@@ -14920,7 +15250,7 @@ var NAMED_ENTITIES = {
|
|
|
14920
15250
|
var NGSP_UNICODE = "\uE500";
|
|
14921
15251
|
NAMED_ENTITIES["ngsp"] = NGSP_UNICODE;
|
|
14922
15252
|
|
|
14923
|
-
// bazel-out/
|
|
15253
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/lexer.mjs
|
|
14924
15254
|
var TokenError = class extends ParseError {
|
|
14925
15255
|
constructor(errorMsg, tokenType, span) {
|
|
14926
15256
|
super(span, errorMsg);
|
|
@@ -14976,8 +15306,8 @@ var _Tokenizer = class {
|
|
|
14976
15306
|
const range = options.range || { endPos: _file.content.length, startPos: 0, startLine: 0, startCol: 0 };
|
|
14977
15307
|
this._cursor = options.escapedString ? new EscapedCharacterCursor(_file, range) : new PlainCharacterCursor(_file, range);
|
|
14978
15308
|
this._preserveLineEndings = options.preserveLineEndings || false;
|
|
14979
|
-
this._escapedString = options.escapedString || false;
|
|
14980
15309
|
this._i18nNormalizeLineEndingsInICUs = options.i18nNormalizeLineEndingsInICUs || false;
|
|
15310
|
+
this._tokenizeBlocks = options.tokenizeBlocks || false;
|
|
14981
15311
|
try {
|
|
14982
15312
|
this._cursor.init();
|
|
14983
15313
|
} catch (e) {
|
|
@@ -15008,6 +15338,12 @@ var _Tokenizer = class {
|
|
|
15008
15338
|
} else {
|
|
15009
15339
|
this._consumeTagOpen(start);
|
|
15010
15340
|
}
|
|
15341
|
+
} else if (this._tokenizeBlocks && this._attemptStr("{#")) {
|
|
15342
|
+
this._consumeBlockGroupOpen(start);
|
|
15343
|
+
} else if (this._tokenizeBlocks && this._attemptStr("{/")) {
|
|
15344
|
+
this._consumeBlockGroupClose(start);
|
|
15345
|
+
} else if (this._tokenizeBlocks && this._attemptStr("{:")) {
|
|
15346
|
+
this._consumeBlock(start);
|
|
15011
15347
|
} else if (!(this._tokenizeIcu && this._tokenizeExpansionForm())) {
|
|
15012
15348
|
this._consumeWithInterpolation(5, 8, () => this._isTextEnd(), () => this._isTagStart());
|
|
15013
15349
|
}
|
|
@@ -15018,6 +15354,55 @@ var _Tokenizer = class {
|
|
|
15018
15354
|
this._beginToken(24);
|
|
15019
15355
|
this._endToken([]);
|
|
15020
15356
|
}
|
|
15357
|
+
_consumeBlockGroupOpen(start) {
|
|
15358
|
+
this._beginToken(25, start);
|
|
15359
|
+
const nameCursor = this._cursor.clone();
|
|
15360
|
+
this._attemptCharCodeUntilFn((code) => !isBlockNameChar(code));
|
|
15361
|
+
this._endToken([this._cursor.getChars(nameCursor)]);
|
|
15362
|
+
this._consumeBlockParameters();
|
|
15363
|
+
this._beginToken(26);
|
|
15364
|
+
this._requireCharCode($RBRACE);
|
|
15365
|
+
this._endToken([]);
|
|
15366
|
+
}
|
|
15367
|
+
_consumeBlockGroupClose(start) {
|
|
15368
|
+
this._beginToken(27, start);
|
|
15369
|
+
const nameCursor = this._cursor.clone();
|
|
15370
|
+
this._attemptCharCodeUntilFn((code) => !isBlockNameChar(code));
|
|
15371
|
+
const name = this._cursor.getChars(nameCursor);
|
|
15372
|
+
this._requireCharCode($RBRACE);
|
|
15373
|
+
this._endToken([name]);
|
|
15374
|
+
}
|
|
15375
|
+
_consumeBlock(start) {
|
|
15376
|
+
this._beginToken(29, start);
|
|
15377
|
+
const nameCursor = this._cursor.clone();
|
|
15378
|
+
this._attemptCharCodeUntilFn((code) => !isBlockNameChar(code));
|
|
15379
|
+
this._endToken([this._cursor.getChars(nameCursor)]);
|
|
15380
|
+
this._consumeBlockParameters();
|
|
15381
|
+
this._beginToken(30);
|
|
15382
|
+
this._requireCharCode($RBRACE);
|
|
15383
|
+
this._endToken([]);
|
|
15384
|
+
}
|
|
15385
|
+
_consumeBlockParameters() {
|
|
15386
|
+
this._attemptCharCodeUntilFn(isBlockParameterChar);
|
|
15387
|
+
while (this._cursor.peek() !== $RBRACE && this._cursor.peek() !== $EOF) {
|
|
15388
|
+
this._beginToken(28);
|
|
15389
|
+
const start = this._cursor.clone();
|
|
15390
|
+
let inQuote = null;
|
|
15391
|
+
while (this._cursor.peek() !== $SEMICOLON && this._cursor.peek() !== $RBRACE && this._cursor.peek() !== $EOF || inQuote !== null) {
|
|
15392
|
+
const char = this._cursor.peek();
|
|
15393
|
+
if (char === $BACKSLASH) {
|
|
15394
|
+
this._cursor.advance();
|
|
15395
|
+
} else if (char === inQuote) {
|
|
15396
|
+
inQuote = null;
|
|
15397
|
+
} else if (inQuote === null && isQuote(char)) {
|
|
15398
|
+
inQuote = char;
|
|
15399
|
+
}
|
|
15400
|
+
this._cursor.advance();
|
|
15401
|
+
}
|
|
15402
|
+
this._endToken([this._cursor.getChars(start)]);
|
|
15403
|
+
this._attemptCharCodeUntilFn(isBlockParameterChar);
|
|
15404
|
+
}
|
|
15405
|
+
}
|
|
15021
15406
|
_tokenizeExpansionForm() {
|
|
15022
15407
|
if (this.isExpansionFormStart()) {
|
|
15023
15408
|
this._consumeExpansionFormStart();
|
|
@@ -15326,7 +15711,6 @@ var _Tokenizer = class {
|
|
|
15326
15711
|
this._endToken(prefixAndName);
|
|
15327
15712
|
}
|
|
15328
15713
|
_consumeAttributeValue() {
|
|
15329
|
-
let value;
|
|
15330
15714
|
if (this._cursor.peek() === $SQ || this._cursor.peek() === $DQ) {
|
|
15331
15715
|
const quoteChar = this._cursor.peek();
|
|
15332
15716
|
this._consumeQuote(quoteChar);
|
|
@@ -15469,7 +15853,7 @@ var _Tokenizer = class {
|
|
|
15469
15853
|
return this._processCarriageReturns(end.getChars(start));
|
|
15470
15854
|
}
|
|
15471
15855
|
_isTextEnd() {
|
|
15472
|
-
if (this._isTagStart() || this._cursor.peek() === $EOF) {
|
|
15856
|
+
if (this._isTagStart() || this._isBlockStart() || this._cursor.peek() === $EOF) {
|
|
15473
15857
|
return true;
|
|
15474
15858
|
}
|
|
15475
15859
|
if (this._tokenizeIcu && !this._inInterpolation) {
|
|
@@ -15493,6 +15877,21 @@ var _Tokenizer = class {
|
|
|
15493
15877
|
}
|
|
15494
15878
|
return false;
|
|
15495
15879
|
}
|
|
15880
|
+
_isBlockStart() {
|
|
15881
|
+
if (this._tokenizeBlocks && this._cursor.peek() === $LBRACE) {
|
|
15882
|
+
const tmp = this._cursor.clone();
|
|
15883
|
+
tmp.advance();
|
|
15884
|
+
const next = tmp.peek();
|
|
15885
|
+
if (next !== $BANG && next !== $SLASH && next !== $COLON) {
|
|
15886
|
+
return false;
|
|
15887
|
+
}
|
|
15888
|
+
tmp.advance();
|
|
15889
|
+
if (isBlockNameChar(tmp.peek())) {
|
|
15890
|
+
return true;
|
|
15891
|
+
}
|
|
15892
|
+
}
|
|
15893
|
+
return false;
|
|
15894
|
+
}
|
|
15496
15895
|
_readUntil(char) {
|
|
15497
15896
|
const start = this._cursor.clone();
|
|
15498
15897
|
this._attemptUntilChar(char);
|
|
@@ -15541,6 +15940,12 @@ function compareCharCodeCaseInsensitive(code1, code2) {
|
|
|
15541
15940
|
function toUpperCaseCharCode(code) {
|
|
15542
15941
|
return code >= $a && code <= $z ? code - $a + $A : code;
|
|
15543
15942
|
}
|
|
15943
|
+
function isBlockNameChar(code) {
|
|
15944
|
+
return isAsciiLetter(code) || isDigit(code) || code === $_;
|
|
15945
|
+
}
|
|
15946
|
+
function isBlockParameterChar(code) {
|
|
15947
|
+
return code !== $SEMICOLON && isNotWhitespace(code);
|
|
15948
|
+
}
|
|
15544
15949
|
function mergeTextTokens(srcTokens) {
|
|
15545
15950
|
const dstTokens = [];
|
|
15546
15951
|
let lastDstToken = void 0;
|
|
@@ -15755,7 +16160,7 @@ var CursorError = class {
|
|
|
15755
16160
|
}
|
|
15756
16161
|
};
|
|
15757
16162
|
|
|
15758
|
-
// bazel-out/
|
|
16163
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/parser.mjs
|
|
15759
16164
|
var TreeError = class extends ParseError {
|
|
15760
16165
|
static create(elementName, span, msg) {
|
|
15761
16166
|
return new TreeError(elementName, span, msg);
|
|
@@ -15787,7 +16192,7 @@ var _TreeBuilder = class {
|
|
|
15787
16192
|
this.tokens = tokens;
|
|
15788
16193
|
this.getTagDefinition = getTagDefinition;
|
|
15789
16194
|
this._index = -1;
|
|
15790
|
-
this.
|
|
16195
|
+
this._containerStack = [];
|
|
15791
16196
|
this.rootNodes = [];
|
|
15792
16197
|
this.errors = [];
|
|
15793
16198
|
this._advance();
|
|
@@ -15809,6 +16214,15 @@ var _TreeBuilder = class {
|
|
|
15809
16214
|
this._consumeText(this._advance());
|
|
15810
16215
|
} else if (this._peek.type === 19) {
|
|
15811
16216
|
this._consumeExpansion(this._advance());
|
|
16217
|
+
} else if (this._peek.type === 25) {
|
|
16218
|
+
this._closeVoidElement();
|
|
16219
|
+
this._consumeBlockGroupOpen(this._advance());
|
|
16220
|
+
} else if (this._peek.type === 29) {
|
|
16221
|
+
this._closeVoidElement();
|
|
16222
|
+
this._consumeBlock(this._advance(), 30);
|
|
16223
|
+
} else if (this._peek.type === 27) {
|
|
16224
|
+
this._closeVoidElement();
|
|
16225
|
+
this._consumeBlockGroupClose(this._advance());
|
|
15812
16226
|
} else {
|
|
15813
16227
|
this._advance();
|
|
15814
16228
|
}
|
|
@@ -15915,7 +16329,11 @@ var _TreeBuilder = class {
|
|
|
15915
16329
|
const startSpan = token.sourceSpan;
|
|
15916
16330
|
let text2 = token.parts[0];
|
|
15917
16331
|
if (text2.length > 0 && text2[0] === "\n") {
|
|
15918
|
-
const parent = this.
|
|
16332
|
+
const parent = this._getContainer();
|
|
16333
|
+
if (parent instanceof BlockGroup) {
|
|
16334
|
+
this.errors.push(TreeError.create(null, startSpan, "Text cannot be placed directly inside of a block group."));
|
|
16335
|
+
return null;
|
|
16336
|
+
}
|
|
15919
16337
|
if (parent != null && parent.children.length === 0 && this.getTagDefinition(parent.name).ignoreFirstLf) {
|
|
15920
16338
|
text2 = text2.substring(1);
|
|
15921
16339
|
tokens[0] = { type: token.type, sourceSpan: token.sourceSpan, parts: [text2] };
|
|
@@ -15938,9 +16356,9 @@ var _TreeBuilder = class {
|
|
|
15938
16356
|
}
|
|
15939
16357
|
}
|
|
15940
16358
|
_closeVoidElement() {
|
|
15941
|
-
const el = this.
|
|
15942
|
-
if (el && this.getTagDefinition(el.name).isVoid) {
|
|
15943
|
-
this.
|
|
16359
|
+
const el = this._getContainer();
|
|
16360
|
+
if (el instanceof Element2 && this.getTagDefinition(el.name).isVoid) {
|
|
16361
|
+
this._containerStack.pop();
|
|
15944
16362
|
}
|
|
15945
16363
|
}
|
|
15946
16364
|
_consumeStartTag(startTagToken) {
|
|
@@ -15949,7 +16367,7 @@ var _TreeBuilder = class {
|
|
|
15949
16367
|
while (this._peek.type === 14) {
|
|
15950
16368
|
attrs.push(this._consumeAttr(this._advance()));
|
|
15951
16369
|
}
|
|
15952
|
-
const fullName = this._getElementFullName(prefix, name, this.
|
|
16370
|
+
const fullName = this._getElementFullName(prefix, name, this._getClosestParentElement());
|
|
15953
16371
|
let selfClosing = false;
|
|
15954
16372
|
if (this._peek.type === 2) {
|
|
15955
16373
|
this._advance();
|
|
@@ -15966,42 +16384,44 @@ var _TreeBuilder = class {
|
|
|
15966
16384
|
const span = new ParseSourceSpan(startTagToken.sourceSpan.start, end, startTagToken.sourceSpan.fullStart);
|
|
15967
16385
|
const startSpan = new ParseSourceSpan(startTagToken.sourceSpan.start, end, startTagToken.sourceSpan.fullStart);
|
|
15968
16386
|
const el = new Element2(fullName, attrs, [], span, startSpan, void 0);
|
|
15969
|
-
this.
|
|
16387
|
+
const parentEl = this._getContainer();
|
|
16388
|
+
this._pushContainer(el, parentEl instanceof Element2 && this.getTagDefinition(parentEl.name).isClosedByChild(el.name));
|
|
15970
16389
|
if (selfClosing) {
|
|
15971
|
-
this.
|
|
16390
|
+
this._popContainer(fullName, Element2, span);
|
|
15972
16391
|
} else if (startTagToken.type === 4) {
|
|
15973
|
-
this.
|
|
16392
|
+
this._popContainer(fullName, Element2, null);
|
|
15974
16393
|
this.errors.push(TreeError.create(fullName, span, `Opening tag "${fullName}" not terminated.`));
|
|
15975
16394
|
}
|
|
15976
16395
|
}
|
|
15977
|
-
|
|
15978
|
-
|
|
15979
|
-
|
|
15980
|
-
this._elementStack.pop();
|
|
16396
|
+
_pushContainer(node, isClosedByChild) {
|
|
16397
|
+
if (isClosedByChild) {
|
|
16398
|
+
this._containerStack.pop();
|
|
15981
16399
|
}
|
|
15982
|
-
this._addToParent(
|
|
15983
|
-
this.
|
|
16400
|
+
this._addToParent(node);
|
|
16401
|
+
this._containerStack.push(node);
|
|
15984
16402
|
}
|
|
15985
16403
|
_consumeEndTag(endTagToken) {
|
|
15986
|
-
const fullName = this._getElementFullName(endTagToken.parts[0], endTagToken.parts[1], this.
|
|
16404
|
+
const fullName = this._getElementFullName(endTagToken.parts[0], endTagToken.parts[1], this._getClosestParentElement());
|
|
15987
16405
|
if (this.getTagDefinition(fullName).isVoid) {
|
|
15988
16406
|
this.errors.push(TreeError.create(fullName, endTagToken.sourceSpan, `Void elements do not have end tags "${endTagToken.parts[1]}"`));
|
|
15989
|
-
} else if (!this.
|
|
16407
|
+
} else if (!this._popContainer(fullName, Element2, endTagToken.sourceSpan)) {
|
|
15990
16408
|
const errMsg = `Unexpected closing tag "${fullName}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;
|
|
15991
16409
|
this.errors.push(TreeError.create(fullName, endTagToken.sourceSpan, errMsg));
|
|
15992
16410
|
}
|
|
15993
16411
|
}
|
|
15994
|
-
|
|
16412
|
+
_popContainer(fullName, expectedType, endSourceSpan) {
|
|
16413
|
+
var _a2;
|
|
15995
16414
|
let unexpectedCloseTagDetected = false;
|
|
15996
|
-
for (let stackIndex = this.
|
|
15997
|
-
const
|
|
15998
|
-
|
|
15999
|
-
|
|
16000
|
-
|
|
16001
|
-
|
|
16415
|
+
for (let stackIndex = this._containerStack.length - 1; stackIndex >= 0; stackIndex--) {
|
|
16416
|
+
const node = this._containerStack[stackIndex];
|
|
16417
|
+
const name = node instanceof BlockGroup ? (_a2 = node.blocks[0]) == null ? void 0 : _a2.name : node.name;
|
|
16418
|
+
if (name === fullName && node instanceof expectedType) {
|
|
16419
|
+
node.endSourceSpan = endSourceSpan;
|
|
16420
|
+
node.sourceSpan.end = endSourceSpan !== null ? endSourceSpan.end : node.sourceSpan.end;
|
|
16421
|
+
this._containerStack.splice(stackIndex, this._containerStack.length - stackIndex);
|
|
16002
16422
|
return !unexpectedCloseTagDetected;
|
|
16003
16423
|
}
|
|
16004
|
-
if (!this.getTagDefinition(
|
|
16424
|
+
if (node instanceof BlockGroup || node instanceof Element2 && !this.getTagDefinition(node.name).closedByParent) {
|
|
16005
16425
|
unexpectedCloseTagDetected = true;
|
|
16006
16426
|
}
|
|
16007
16427
|
}
|
|
@@ -16041,15 +16461,74 @@ var _TreeBuilder = class {
|
|
|
16041
16461
|
const valueSpan = valueStartSpan && valueEnd && new ParseSourceSpan(valueStartSpan.start, valueEnd, valueStartSpan.fullStart);
|
|
16042
16462
|
return new Attribute(fullName, value, new ParseSourceSpan(attrName.sourceSpan.start, attrEnd, attrName.sourceSpan.fullStart), attrName.sourceSpan, valueSpan, valueTokens.length > 0 ? valueTokens : void 0, void 0);
|
|
16043
16463
|
}
|
|
16044
|
-
|
|
16045
|
-
|
|
16464
|
+
_consumeBlockGroupOpen(token) {
|
|
16465
|
+
const end = this._peek.sourceSpan.fullStart;
|
|
16466
|
+
const span = new ParseSourceSpan(token.sourceSpan.start, end, token.sourceSpan.fullStart);
|
|
16467
|
+
const startSpan = new ParseSourceSpan(token.sourceSpan.start, end, token.sourceSpan.fullStart);
|
|
16468
|
+
const blockGroup = new BlockGroup([], span, startSpan, null);
|
|
16469
|
+
this._pushContainer(blockGroup, false);
|
|
16470
|
+
const implicitBlock = this._consumeBlock(token, 26);
|
|
16471
|
+
startSpan.end = implicitBlock.startSourceSpan.end;
|
|
16472
|
+
}
|
|
16473
|
+
_consumeBlock(token, closeToken) {
|
|
16474
|
+
this._conditionallyClosePreviousBlock();
|
|
16475
|
+
const parameters = [];
|
|
16476
|
+
while (this._peek.type === 28) {
|
|
16477
|
+
const paramToken = this._advance();
|
|
16478
|
+
parameters.push(new BlockParameter(paramToken.parts[0], paramToken.sourceSpan));
|
|
16479
|
+
}
|
|
16480
|
+
if (this._peek.type === closeToken) {
|
|
16481
|
+
this._advance();
|
|
16482
|
+
}
|
|
16483
|
+
const end = this._peek.sourceSpan.fullStart;
|
|
16484
|
+
const span = new ParseSourceSpan(token.sourceSpan.start, end, token.sourceSpan.fullStart);
|
|
16485
|
+
const startSpan = new ParseSourceSpan(token.sourceSpan.start, end, token.sourceSpan.fullStart);
|
|
16486
|
+
const block = new Block(token.parts[0], parameters, [], span, startSpan);
|
|
16487
|
+
const parent = this._getContainer();
|
|
16488
|
+
if (!(parent instanceof BlockGroup)) {
|
|
16489
|
+
this.errors.push(TreeError.create(block.name, block.sourceSpan, "Blocks can only be placed inside of block groups."));
|
|
16490
|
+
} else {
|
|
16491
|
+
parent.blocks.push(block);
|
|
16492
|
+
this._containerStack.push(block);
|
|
16493
|
+
}
|
|
16494
|
+
return block;
|
|
16495
|
+
}
|
|
16496
|
+
_consumeBlockGroupClose(token) {
|
|
16497
|
+
const name = token.parts[0];
|
|
16498
|
+
const previousContainer = this._getContainer();
|
|
16499
|
+
this._conditionallyClosePreviousBlock();
|
|
16500
|
+
if (!this._popContainer(name, BlockGroup, token.sourceSpan)) {
|
|
16501
|
+
const context = previousContainer instanceof Element2 ? `There is an unclosed "${previousContainer.name}" HTML tag named that may have to be closed first.` : `The block may have been closed earlier.`;
|
|
16502
|
+
this.errors.push(TreeError.create(name, token.sourceSpan, `Unexpected closing block "${name}". ${context}`));
|
|
16503
|
+
}
|
|
16504
|
+
}
|
|
16505
|
+
_conditionallyClosePreviousBlock() {
|
|
16506
|
+
const container = this._getContainer();
|
|
16507
|
+
if (container instanceof Block) {
|
|
16508
|
+
const lastChild = container.children.length ? container.children[container.children.length - 1] : null;
|
|
16509
|
+
const endSpan = lastChild === null ? null : new ParseSourceSpan(lastChild.sourceSpan.end, lastChild.sourceSpan.end);
|
|
16510
|
+
this._popContainer(container.name, Block, endSpan);
|
|
16511
|
+
}
|
|
16512
|
+
}
|
|
16513
|
+
_getContainer() {
|
|
16514
|
+
return this._containerStack.length > 0 ? this._containerStack[this._containerStack.length - 1] : null;
|
|
16515
|
+
}
|
|
16516
|
+
_getClosestParentElement() {
|
|
16517
|
+
for (let i = this._containerStack.length - 1; i > -1; i--) {
|
|
16518
|
+
if (this._containerStack[i] instanceof Element2) {
|
|
16519
|
+
return this._containerStack[i];
|
|
16520
|
+
}
|
|
16521
|
+
}
|
|
16522
|
+
return null;
|
|
16046
16523
|
}
|
|
16047
16524
|
_addToParent(node) {
|
|
16048
|
-
const parent = this.
|
|
16049
|
-
if (parent
|
|
16050
|
-
parent.children.push(node);
|
|
16051
|
-
} else {
|
|
16525
|
+
const parent = this._getContainer();
|
|
16526
|
+
if (parent === null) {
|
|
16052
16527
|
this.rootNodes.push(node);
|
|
16528
|
+
} else if (parent instanceof BlockGroup) {
|
|
16529
|
+
this.errors.push(TreeError.create(null, node.sourceSpan, "Block groups can only contain blocks."));
|
|
16530
|
+
} else {
|
|
16531
|
+
parent.children.push(node);
|
|
16053
16532
|
}
|
|
16054
16533
|
}
|
|
16055
16534
|
_getElementFullName(prefix, localName, parentElement) {
|
|
@@ -16082,7 +16561,7 @@ function decodeEntity(match, entity) {
|
|
|
16082
16561
|
return match;
|
|
16083
16562
|
}
|
|
16084
16563
|
|
|
16085
|
-
// bazel-out/
|
|
16564
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/html_parser.mjs
|
|
16086
16565
|
var HtmlParser = class extends Parser2 {
|
|
16087
16566
|
constructor() {
|
|
16088
16567
|
super(getHtmlTagDefinition);
|
|
@@ -16092,7 +16571,7 @@ var HtmlParser = class extends Parser2 {
|
|
|
16092
16571
|
}
|
|
16093
16572
|
};
|
|
16094
16573
|
|
|
16095
|
-
// bazel-out/
|
|
16574
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/html_whitespaces.mjs
|
|
16096
16575
|
var PRESERVE_WS_ATTR_NAME = "ngPreserveWhitespaces";
|
|
16097
16576
|
var SKIP_WS_TRIM_TAGS = /* @__PURE__ */ new Set(["pre", "template", "textarea", "script", "style"]);
|
|
16098
16577
|
var WS_CHARS = " \f\n\r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF";
|
|
@@ -16111,8 +16590,8 @@ var WhitespaceVisitor = class {
|
|
|
16111
16590
|
}
|
|
16112
16591
|
return new Element2(element2.name, element2.attrs, visitAllWithSiblings(this, element2.children), element2.sourceSpan, element2.startSourceSpan, element2.endSourceSpan, element2.i18n);
|
|
16113
16592
|
}
|
|
16114
|
-
visitAttribute(
|
|
16115
|
-
return
|
|
16593
|
+
visitAttribute(attribute2, context) {
|
|
16594
|
+
return attribute2.name !== PRESERVE_WS_ATTR_NAME ? attribute2 : null;
|
|
16116
16595
|
}
|
|
16117
16596
|
visitText(text2, context) {
|
|
16118
16597
|
const isNotBlank = text2.value.match(NO_WS_REGEXP);
|
|
@@ -16133,6 +16612,15 @@ var WhitespaceVisitor = class {
|
|
|
16133
16612
|
visitExpansionCase(expansionCase, context) {
|
|
16134
16613
|
return expansionCase;
|
|
16135
16614
|
}
|
|
16615
|
+
visitBlockGroup(group, context) {
|
|
16616
|
+
return new BlockGroup(visitAllWithSiblings(this, group.blocks), group.sourceSpan, group.startSourceSpan, group.endSourceSpan);
|
|
16617
|
+
}
|
|
16618
|
+
visitBlock(block, context) {
|
|
16619
|
+
return new Block(block.name, block.parameters, visitAllWithSiblings(this, block.children), block.sourceSpan, block.startSourceSpan);
|
|
16620
|
+
}
|
|
16621
|
+
visitBlockParameter(parameter, context) {
|
|
16622
|
+
return parameter;
|
|
16623
|
+
}
|
|
16136
16624
|
};
|
|
16137
16625
|
function createWhitespaceProcessedTextToken({ type, parts, sourceSpan }) {
|
|
16138
16626
|
return { type, parts: [processWhitespace(parts[0])], sourceSpan };
|
|
@@ -16152,7 +16640,7 @@ function visitAllWithSiblings(visitor, nodes) {
|
|
|
16152
16640
|
return result;
|
|
16153
16641
|
}
|
|
16154
16642
|
|
|
16155
|
-
// bazel-out/
|
|
16643
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/output/map_util.mjs
|
|
16156
16644
|
function mapLiteral(obj, quoted = false) {
|
|
16157
16645
|
return literalMap(Object.keys(obj).map((key) => ({
|
|
16158
16646
|
key,
|
|
@@ -16161,7 +16649,7 @@ function mapLiteral(obj, quoted = false) {
|
|
|
16161
16649
|
})));
|
|
16162
16650
|
}
|
|
16163
16651
|
|
|
16164
|
-
// bazel-out/
|
|
16652
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/schema/trusted_types_sinks.mjs
|
|
16165
16653
|
var TRUSTED_TYPES_SINKS = /* @__PURE__ */ new Set([
|
|
16166
16654
|
"iframe|srcdoc",
|
|
16167
16655
|
"*|innerhtml",
|
|
@@ -16176,7 +16664,7 @@ function isTrustedTypesSink(tagName, propName) {
|
|
|
16176
16664
|
return TRUSTED_TYPES_SINKS.has(tagName + "|" + propName) || TRUSTED_TYPES_SINKS.has("*|" + propName);
|
|
16177
16665
|
}
|
|
16178
16666
|
|
|
16179
|
-
// bazel-out/
|
|
16667
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template_parser/binding_parser.mjs
|
|
16180
16668
|
var PROPERTY_PARTS_SEPARATOR = ".";
|
|
16181
16669
|
var ATTRIBUTE_PREFIX = "attr";
|
|
16182
16670
|
var CLASS_PREFIX = "class";
|
|
@@ -16496,7 +16984,7 @@ function moveParseSourceSpan(sourceSpan, absoluteSpan) {
|
|
|
16496
16984
|
return new ParseSourceSpan(sourceSpan.start.moveBy(startDiff), sourceSpan.end.moveBy(endDiff), sourceSpan.fullStart.moveBy(startDiff), sourceSpan.details);
|
|
16497
16985
|
}
|
|
16498
16986
|
|
|
16499
|
-
// bazel-out/
|
|
16987
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/style_url_resolver.mjs
|
|
16500
16988
|
function isStyleUrlResolvable(url) {
|
|
16501
16989
|
if (url == null || url.length === 0 || url[0] == "/")
|
|
16502
16990
|
return false;
|
|
@@ -16505,7 +16993,7 @@ function isStyleUrlResolvable(url) {
|
|
|
16505
16993
|
}
|
|
16506
16994
|
var URL_WITH_SCHEMA_REGEXP = /^([^:/?#]+):/;
|
|
16507
16995
|
|
|
16508
|
-
// bazel-out/
|
|
16996
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template_parser/template_preparser.mjs
|
|
16509
16997
|
var NG_CONTENT_SELECT_ATTR = "select";
|
|
16510
16998
|
var LINK_ELEMENT = "link";
|
|
16511
16999
|
var LINK_STYLE_REL_ATTR = "rel";
|
|
@@ -16575,7 +17063,7 @@ function normalizeNgContentSelect(selectAttr) {
|
|
|
16575
17063
|
return selectAttr;
|
|
16576
17064
|
}
|
|
16577
17065
|
|
|
16578
|
-
// bazel-out/
|
|
17066
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_template_transform.mjs
|
|
16579
17067
|
var BIND_NAME_REGEXP = /^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/;
|
|
16580
17068
|
var KW_BIND_IDX = 1;
|
|
16581
17069
|
var KW_LET_IDX = 2;
|
|
@@ -16648,30 +17136,30 @@ var HtmlAstToIvyAst = class {
|
|
|
16648
17136
|
const templateParsedProperties = [];
|
|
16649
17137
|
const templateVariables = [];
|
|
16650
17138
|
let elementHasInlineTemplate = false;
|
|
16651
|
-
for (const
|
|
17139
|
+
for (const attribute2 of element2.attrs) {
|
|
16652
17140
|
let hasBinding = false;
|
|
16653
|
-
const normalizedName = normalizeAttributeName(
|
|
17141
|
+
const normalizedName = normalizeAttributeName(attribute2.name);
|
|
16654
17142
|
let isTemplateBinding = false;
|
|
16655
|
-
if (
|
|
16656
|
-
i18nAttrsMeta[
|
|
17143
|
+
if (attribute2.i18n) {
|
|
17144
|
+
i18nAttrsMeta[attribute2.name] = attribute2.i18n;
|
|
16657
17145
|
}
|
|
16658
17146
|
if (normalizedName.startsWith(TEMPLATE_ATTR_PREFIX2)) {
|
|
16659
17147
|
if (elementHasInlineTemplate) {
|
|
16660
|
-
this.reportError(`Can't have multiple template bindings on one element. Use only one attribute prefixed with *`,
|
|
17148
|
+
this.reportError(`Can't have multiple template bindings on one element. Use only one attribute prefixed with *`, attribute2.sourceSpan);
|
|
16661
17149
|
}
|
|
16662
17150
|
isTemplateBinding = true;
|
|
16663
17151
|
elementHasInlineTemplate = true;
|
|
16664
|
-
const templateValue =
|
|
17152
|
+
const templateValue = attribute2.value;
|
|
16665
17153
|
const templateKey = normalizedName.substring(TEMPLATE_ATTR_PREFIX2.length);
|
|
16666
17154
|
const parsedVariables = [];
|
|
16667
|
-
const absoluteValueOffset =
|
|
16668
|
-
this.bindingParser.parseInlineTemplateBinding(templateKey, templateValue,
|
|
17155
|
+
const absoluteValueOffset = attribute2.valueSpan ? attribute2.valueSpan.start.offset : attribute2.sourceSpan.start.offset + attribute2.name.length;
|
|
17156
|
+
this.bindingParser.parseInlineTemplateBinding(templateKey, templateValue, attribute2.sourceSpan, absoluteValueOffset, [], templateParsedProperties, parsedVariables, true);
|
|
16669
17157
|
templateVariables.push(...parsedVariables.map((v) => new Variable(v.name, v.value, v.sourceSpan, v.keySpan, v.valueSpan)));
|
|
16670
17158
|
} else {
|
|
16671
|
-
hasBinding = this.parseAttribute(isTemplateElement,
|
|
17159
|
+
hasBinding = this.parseAttribute(isTemplateElement, attribute2, [], parsedProperties, boundEvents, variables, references);
|
|
16672
17160
|
}
|
|
16673
17161
|
if (!hasBinding && !isTemplateBinding) {
|
|
16674
|
-
attributes.push(this.visitAttribute(
|
|
17162
|
+
attributes.push(this.visitAttribute(attribute2));
|
|
16675
17163
|
}
|
|
16676
17164
|
}
|
|
16677
17165
|
const children = visitAll2(preparsedElement.nonBindable ? NON_BINDABLE_VISITOR : this, element2.children);
|
|
@@ -16710,8 +17198,8 @@ var HtmlAstToIvyAst = class {
|
|
|
16710
17198
|
}
|
|
16711
17199
|
return parsedElement;
|
|
16712
17200
|
}
|
|
16713
|
-
visitAttribute(
|
|
16714
|
-
return new TextAttribute(
|
|
17201
|
+
visitAttribute(attribute2) {
|
|
17202
|
+
return new TextAttribute(attribute2.name, attribute2.value, attribute2.sourceSpan, attribute2.keySpan, attribute2.valueSpan, attribute2.i18n);
|
|
16715
17203
|
}
|
|
16716
17204
|
visitText(text2) {
|
|
16717
17205
|
return this._visitTextWithInterpolation(text2.value, text2.sourceSpan, text2.tokens, text2.i18n);
|
|
@@ -16747,6 +17235,15 @@ var HtmlAstToIvyAst = class {
|
|
|
16747
17235
|
}
|
|
16748
17236
|
return null;
|
|
16749
17237
|
}
|
|
17238
|
+
visitBlockGroup(group, context) {
|
|
17239
|
+
throw new Error("TODO");
|
|
17240
|
+
}
|
|
17241
|
+
visitBlock(block, context) {
|
|
17242
|
+
throw new Error("TODO");
|
|
17243
|
+
}
|
|
17244
|
+
visitBlockParameter(parameter, context) {
|
|
17245
|
+
throw new Error("TODO");
|
|
17246
|
+
}
|
|
16750
17247
|
extractAttributes(elementName, properties, i18nPropsMeta) {
|
|
16751
17248
|
const bound = [];
|
|
16752
17249
|
const literal3 = [];
|
|
@@ -16761,14 +17258,14 @@ var HtmlAstToIvyAst = class {
|
|
|
16761
17258
|
});
|
|
16762
17259
|
return { bound, literal: literal3 };
|
|
16763
17260
|
}
|
|
16764
|
-
parseAttribute(isTemplateElement,
|
|
17261
|
+
parseAttribute(isTemplateElement, attribute2, matchableAttributes, parsedProperties, boundEvents, variables, references) {
|
|
16765
17262
|
var _a2;
|
|
16766
|
-
const name = normalizeAttributeName(
|
|
16767
|
-
const value =
|
|
16768
|
-
const srcSpan =
|
|
16769
|
-
const absoluteOffset =
|
|
17263
|
+
const name = normalizeAttributeName(attribute2.name);
|
|
17264
|
+
const value = attribute2.value;
|
|
17265
|
+
const srcSpan = attribute2.sourceSpan;
|
|
17266
|
+
const absoluteOffset = attribute2.valueSpan ? attribute2.valueSpan.start.offset : srcSpan.start.offset;
|
|
16770
17267
|
function createKeySpan(srcSpan2, prefix, identifier) {
|
|
16771
|
-
const normalizationAdjustment =
|
|
17268
|
+
const normalizationAdjustment = attribute2.name.length - name.length;
|
|
16772
17269
|
const keySpanStart = srcSpan2.start.moveBy(prefix.length + normalizationAdjustment);
|
|
16773
17270
|
const keySpanEnd = keySpanStart.moveBy(identifier.length);
|
|
16774
17271
|
return new ParseSourceSpan(keySpanStart, keySpanEnd, keySpanStart, identifier);
|
|
@@ -16778,33 +17275,33 @@ var HtmlAstToIvyAst = class {
|
|
|
16778
17275
|
if (bindParts[KW_BIND_IDX] != null) {
|
|
16779
17276
|
const identifier = bindParts[IDENT_KW_IDX];
|
|
16780
17277
|
const keySpan2 = createKeySpan(srcSpan, bindParts[KW_BIND_IDX], identifier);
|
|
16781
|
-
this.bindingParser.parsePropertyBinding(identifier, value, false, srcSpan, absoluteOffset,
|
|
17278
|
+
this.bindingParser.parsePropertyBinding(identifier, value, false, srcSpan, absoluteOffset, attribute2.valueSpan, matchableAttributes, parsedProperties, keySpan2);
|
|
16782
17279
|
} else if (bindParts[KW_LET_IDX]) {
|
|
16783
17280
|
if (isTemplateElement) {
|
|
16784
17281
|
const identifier = bindParts[IDENT_KW_IDX];
|
|
16785
17282
|
const keySpan2 = createKeySpan(srcSpan, bindParts[KW_LET_IDX], identifier);
|
|
16786
|
-
this.parseVariable(identifier, value, srcSpan, keySpan2,
|
|
17283
|
+
this.parseVariable(identifier, value, srcSpan, keySpan2, attribute2.valueSpan, variables);
|
|
16787
17284
|
} else {
|
|
16788
17285
|
this.reportError(`"let-" is only supported on ng-template elements.`, srcSpan);
|
|
16789
17286
|
}
|
|
16790
17287
|
} else if (bindParts[KW_REF_IDX]) {
|
|
16791
17288
|
const identifier = bindParts[IDENT_KW_IDX];
|
|
16792
17289
|
const keySpan2 = createKeySpan(srcSpan, bindParts[KW_REF_IDX], identifier);
|
|
16793
|
-
this.parseReference(identifier, value, srcSpan, keySpan2,
|
|
17290
|
+
this.parseReference(identifier, value, srcSpan, keySpan2, attribute2.valueSpan, references);
|
|
16794
17291
|
} else if (bindParts[KW_ON_IDX]) {
|
|
16795
17292
|
const events = [];
|
|
16796
17293
|
const identifier = bindParts[IDENT_KW_IDX];
|
|
16797
17294
|
const keySpan2 = createKeySpan(srcSpan, bindParts[KW_ON_IDX], identifier);
|
|
16798
|
-
this.bindingParser.parseEvent(identifier, value, false, srcSpan,
|
|
17295
|
+
this.bindingParser.parseEvent(identifier, value, false, srcSpan, attribute2.valueSpan || srcSpan, matchableAttributes, events, keySpan2);
|
|
16799
17296
|
addEvents(events, boundEvents);
|
|
16800
17297
|
} else if (bindParts[KW_BINDON_IDX]) {
|
|
16801
17298
|
const identifier = bindParts[IDENT_KW_IDX];
|
|
16802
17299
|
const keySpan2 = createKeySpan(srcSpan, bindParts[KW_BINDON_IDX], identifier);
|
|
16803
|
-
this.bindingParser.parsePropertyBinding(identifier, value, false, srcSpan, absoluteOffset,
|
|
16804
|
-
this.parseAssignmentEvent(identifier, value, srcSpan,
|
|
17300
|
+
this.bindingParser.parsePropertyBinding(identifier, value, false, srcSpan, absoluteOffset, attribute2.valueSpan, matchableAttributes, parsedProperties, keySpan2);
|
|
17301
|
+
this.parseAssignmentEvent(identifier, value, srcSpan, attribute2.valueSpan, matchableAttributes, boundEvents, keySpan2);
|
|
16805
17302
|
} else if (bindParts[KW_AT_IDX]) {
|
|
16806
17303
|
const keySpan2 = createKeySpan(srcSpan, "", name);
|
|
16807
|
-
this.bindingParser.parseLiteralAttr(name, value, srcSpan, absoluteOffset,
|
|
17304
|
+
this.bindingParser.parseLiteralAttr(name, value, srcSpan, absoluteOffset, attribute2.valueSpan, matchableAttributes, parsedProperties, keySpan2);
|
|
16808
17305
|
}
|
|
16809
17306
|
return true;
|
|
16810
17307
|
}
|
|
@@ -16820,19 +17317,19 @@ var HtmlAstToIvyAst = class {
|
|
|
16820
17317
|
const identifier = name.substring(delims.start.length, name.length - delims.end.length);
|
|
16821
17318
|
const keySpan2 = createKeySpan(srcSpan, delims.start, identifier);
|
|
16822
17319
|
if (delims.start === BINDING_DELIMS.BANANA_BOX.start) {
|
|
16823
|
-
this.bindingParser.parsePropertyBinding(identifier, value, false, srcSpan, absoluteOffset,
|
|
16824
|
-
this.parseAssignmentEvent(identifier, value, srcSpan,
|
|
17320
|
+
this.bindingParser.parsePropertyBinding(identifier, value, false, srcSpan, absoluteOffset, attribute2.valueSpan, matchableAttributes, parsedProperties, keySpan2);
|
|
17321
|
+
this.parseAssignmentEvent(identifier, value, srcSpan, attribute2.valueSpan, matchableAttributes, boundEvents, keySpan2);
|
|
16825
17322
|
} else if (delims.start === BINDING_DELIMS.PROPERTY.start) {
|
|
16826
|
-
this.bindingParser.parsePropertyBinding(identifier, value, false, srcSpan, absoluteOffset,
|
|
17323
|
+
this.bindingParser.parsePropertyBinding(identifier, value, false, srcSpan, absoluteOffset, attribute2.valueSpan, matchableAttributes, parsedProperties, keySpan2);
|
|
16827
17324
|
} else {
|
|
16828
17325
|
const events = [];
|
|
16829
|
-
this.bindingParser.parseEvent(identifier, value, false, srcSpan,
|
|
17326
|
+
this.bindingParser.parseEvent(identifier, value, false, srcSpan, attribute2.valueSpan || srcSpan, matchableAttributes, events, keySpan2);
|
|
16830
17327
|
addEvents(events, boundEvents);
|
|
16831
17328
|
}
|
|
16832
17329
|
return true;
|
|
16833
17330
|
}
|
|
16834
17331
|
const keySpan = createKeySpan(srcSpan, "", name);
|
|
16835
|
-
const hasBinding = this.bindingParser.parsePropertyInterpolation(name, value, srcSpan,
|
|
17332
|
+
const hasBinding = this.bindingParser.parsePropertyInterpolation(name, value, srcSpan, attribute2.valueSpan, matchableAttributes, parsedProperties, keySpan, (_a2 = attribute2.valueTokens) != null ? _a2 : null);
|
|
16836
17333
|
return hasBinding;
|
|
16837
17334
|
}
|
|
16838
17335
|
_visitTextWithInterpolation(value, sourceSpan, interpolatedTokens, i18n) {
|
|
@@ -16889,8 +17386,8 @@ var NonBindableVisitor = class {
|
|
|
16889
17386
|
visitComment(comment) {
|
|
16890
17387
|
return null;
|
|
16891
17388
|
}
|
|
16892
|
-
visitAttribute(
|
|
16893
|
-
return new TextAttribute(
|
|
17389
|
+
visitAttribute(attribute2) {
|
|
17390
|
+
return new TextAttribute(attribute2.name, attribute2.value, attribute2.sourceSpan, attribute2.keySpan, attribute2.valueSpan, attribute2.i18n);
|
|
16894
17391
|
}
|
|
16895
17392
|
visitText(text2) {
|
|
16896
17393
|
return new Text(text2.value, text2.sourceSpan);
|
|
@@ -16901,6 +17398,15 @@ var NonBindableVisitor = class {
|
|
|
16901
17398
|
visitExpansionCase(expansionCase) {
|
|
16902
17399
|
return null;
|
|
16903
17400
|
}
|
|
17401
|
+
visitBlockGroup(group, context) {
|
|
17402
|
+
throw new Error("TODO");
|
|
17403
|
+
}
|
|
17404
|
+
visitBlock(block, context) {
|
|
17405
|
+
throw new Error("TODO");
|
|
17406
|
+
}
|
|
17407
|
+
visitBlockParameter(parameter, context) {
|
|
17408
|
+
throw new Error("TODO");
|
|
17409
|
+
}
|
|
16904
17410
|
};
|
|
16905
17411
|
var NON_BINDABLE_VISITOR = new NonBindableVisitor();
|
|
16906
17412
|
function normalizeAttributeName(attrName) {
|
|
@@ -16923,7 +17429,7 @@ function textContents(node) {
|
|
|
16923
17429
|
}
|
|
16924
17430
|
}
|
|
16925
17431
|
|
|
16926
|
-
// bazel-out/
|
|
17432
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/i18n/context.mjs
|
|
16927
17433
|
var TagType;
|
|
16928
17434
|
(function(TagType2) {
|
|
16929
17435
|
TagType2[TagType2["ELEMENT"] = 0] = "ELEMENT";
|
|
@@ -17058,7 +17564,7 @@ function serializePlaceholderValue(value) {
|
|
|
17058
17564
|
}
|
|
17059
17565
|
}
|
|
17060
17566
|
|
|
17061
|
-
// bazel-out/
|
|
17567
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/i18n/icu_serializer.mjs
|
|
17062
17568
|
var IcuSerializerVisitor = class {
|
|
17063
17569
|
visitText(text2) {
|
|
17064
17570
|
return text2.value;
|
|
@@ -17089,7 +17595,7 @@ function serializeIcuNode(icu) {
|
|
|
17089
17595
|
return icu.visit(serializer);
|
|
17090
17596
|
}
|
|
17091
17597
|
|
|
17092
|
-
// bazel-out/
|
|
17598
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/serializers/placeholder.mjs
|
|
17093
17599
|
var TAG_TO_PLACEHOLDER_NAMES = {
|
|
17094
17600
|
"A": "LINK",
|
|
17095
17601
|
"B": "BOLD_TEXT",
|
|
@@ -17183,7 +17689,7 @@ var PlaceholderRegistry = class {
|
|
|
17183
17689
|
}
|
|
17184
17690
|
};
|
|
17185
17691
|
|
|
17186
|
-
// bazel-out/
|
|
17692
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/i18n_parser.mjs
|
|
17187
17693
|
var _expParser = new Parser(new Lexer());
|
|
17188
17694
|
function createI18nMessageFactory(interpolationConfig) {
|
|
17189
17695
|
const visitor = new _I18nVisitor(_expParser, interpolationConfig);
|
|
@@ -17233,9 +17739,9 @@ var _I18nVisitor = class {
|
|
|
17233
17739
|
const node = new TagPlaceholder(el.name, attrs, startPhName, closePhName, children, isVoid, el.sourceSpan, el.startSourceSpan, el.endSourceSpan);
|
|
17234
17740
|
return context.visitNodeFn(el, node);
|
|
17235
17741
|
}
|
|
17236
|
-
visitAttribute(
|
|
17237
|
-
const node =
|
|
17238
|
-
return context.visitNodeFn(
|
|
17742
|
+
visitAttribute(attribute2, context) {
|
|
17743
|
+
const node = attribute2.valueTokens === void 0 || attribute2.valueTokens.length === 1 ? new Text2(attribute2.value, attribute2.valueSpan || attribute2.sourceSpan) : this._visitTextWithInterpolation(attribute2.valueTokens, attribute2.valueSpan || attribute2.sourceSpan, context, attribute2.i18n);
|
|
17744
|
+
return context.visitNodeFn(attribute2, node);
|
|
17239
17745
|
}
|
|
17240
17746
|
visitText(text2, context) {
|
|
17241
17747
|
const node = text2.tokens.length === 1 ? new Text2(text2.value, text2.sourceSpan) : this._visitTextWithInterpolation(text2.tokens, text2.sourceSpan, context, text2.i18n);
|
|
@@ -17269,6 +17775,18 @@ var _I18nVisitor = class {
|
|
|
17269
17775
|
visitExpansionCase(_icuCase, _context) {
|
|
17270
17776
|
throw new Error("Unreachable code");
|
|
17271
17777
|
}
|
|
17778
|
+
visitBlockGroup(group, context) {
|
|
17779
|
+
const children = visitAll2(this, group.blocks, context);
|
|
17780
|
+
const node = new Container(children, group.sourceSpan);
|
|
17781
|
+
return context.visitNodeFn(group, node);
|
|
17782
|
+
}
|
|
17783
|
+
visitBlock(block, context) {
|
|
17784
|
+
const children = visitAll2(this, block.children, context);
|
|
17785
|
+
const node = new Container(children, block.sourceSpan);
|
|
17786
|
+
return context.visitNodeFn(block, node);
|
|
17787
|
+
}
|
|
17788
|
+
visitBlockParameter(_parameter, _context) {
|
|
17789
|
+
}
|
|
17272
17790
|
_visitTextWithInterpolation(tokens, sourceSpan, context, previousI18n) {
|
|
17273
17791
|
const nodes = [];
|
|
17274
17792
|
let hasInterpolation = false;
|
|
@@ -17338,14 +17856,14 @@ function extractPlaceholderName(input) {
|
|
|
17338
17856
|
return input.split(_CUSTOM_PH_EXP)[2];
|
|
17339
17857
|
}
|
|
17340
17858
|
|
|
17341
|
-
// bazel-out/
|
|
17859
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/parse_util.mjs
|
|
17342
17860
|
var I18nError = class extends ParseError {
|
|
17343
17861
|
constructor(span, msg) {
|
|
17344
17862
|
super(span, msg);
|
|
17345
17863
|
}
|
|
17346
17864
|
};
|
|
17347
17865
|
|
|
17348
|
-
// bazel-out/
|
|
17866
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/i18n/meta.mjs
|
|
17349
17867
|
var setI18nRefs = (htmlNode, i18nNode) => {
|
|
17350
17868
|
if (htmlNode instanceof NodeWithI18n) {
|
|
17351
17869
|
if (i18nNode instanceof IcuPlaceholder && htmlNode.i18n instanceof Message) {
|
|
@@ -17436,8 +17954,8 @@ var I18nMetaVisitor = class {
|
|
|
17436
17954
|
visitText(text2) {
|
|
17437
17955
|
return text2;
|
|
17438
17956
|
}
|
|
17439
|
-
visitAttribute(
|
|
17440
|
-
return
|
|
17957
|
+
visitAttribute(attribute2) {
|
|
17958
|
+
return attribute2;
|
|
17441
17959
|
}
|
|
17442
17960
|
visitComment(comment) {
|
|
17443
17961
|
return comment;
|
|
@@ -17445,6 +17963,17 @@ var I18nMetaVisitor = class {
|
|
|
17445
17963
|
visitExpansionCase(expansionCase) {
|
|
17446
17964
|
return expansionCase;
|
|
17447
17965
|
}
|
|
17966
|
+
visitBlockGroup(group, context) {
|
|
17967
|
+
visitAll2(this, group.blocks, context);
|
|
17968
|
+
return group;
|
|
17969
|
+
}
|
|
17970
|
+
visitBlock(block, context) {
|
|
17971
|
+
visitAll2(this, block.children, context);
|
|
17972
|
+
return block;
|
|
17973
|
+
}
|
|
17974
|
+
visitBlockParameter(parameter, context) {
|
|
17975
|
+
return parameter;
|
|
17976
|
+
}
|
|
17448
17977
|
_parseMetadata(meta) {
|
|
17449
17978
|
return typeof meta === "string" ? parseI18nMeta(meta) : meta instanceof Message ? meta : {};
|
|
17450
17979
|
}
|
|
@@ -17494,7 +18023,7 @@ function i18nMetaToJSDoc(meta) {
|
|
|
17494
18023
|
return jsDocComment(tags);
|
|
17495
18024
|
}
|
|
17496
18025
|
|
|
17497
|
-
// bazel-out/
|
|
18026
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/i18n/get_msg_utils.mjs
|
|
17498
18027
|
var GOOG_GET_MSG = "goog.getMsg";
|
|
17499
18028
|
function createGoogleGetMsgStatements(variable2, message, closureVar, placeholderValues) {
|
|
17500
18029
|
const messageString = serializeI18nMessageForGetMsg(message);
|
|
@@ -17542,7 +18071,7 @@ function serializeI18nMessageForGetMsg(message) {
|
|
|
17542
18071
|
return message.nodes.map((node) => node.visit(serializerVisitor2, null)).join("");
|
|
17543
18072
|
}
|
|
17544
18073
|
|
|
17545
|
-
// bazel-out/
|
|
18074
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/i18n/localize_utils.mjs
|
|
17546
18075
|
function createLocalizeStatements(variable2, message, params) {
|
|
17547
18076
|
const { messageParts, placeHolders } = serializeI18nMessageForLocalize(message);
|
|
17548
18077
|
const sourceSpan = getSourceSpan(message);
|
|
@@ -17625,7 +18154,7 @@ function createEmptyMessagePart(location) {
|
|
|
17625
18154
|
return new LiteralPiece("", new ParseSourceSpan(location, location));
|
|
17626
18155
|
}
|
|
17627
18156
|
|
|
17628
|
-
// bazel-out/
|
|
18157
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/template.mjs
|
|
17629
18158
|
var NG_CONTENT_SELECT_ATTR2 = "select";
|
|
17630
18159
|
var NG_PROJECT_AS_ATTR_NAME = "ngProjectAs";
|
|
17631
18160
|
var EVENT_BINDING_SCOPE_GLOBALS = /* @__PURE__ */ new Set(["$event"]);
|
|
@@ -18717,8 +19246,8 @@ function createCssSelector(elementName, attributes) {
|
|
|
18717
19246
|
});
|
|
18718
19247
|
return cssSelector;
|
|
18719
19248
|
}
|
|
18720
|
-
function getNgProjectAsLiteral(
|
|
18721
|
-
const parsedR3Selector = parseSelectorToR3Selector(
|
|
19249
|
+
function getNgProjectAsLiteral(attribute2) {
|
|
19250
|
+
const parsedR3Selector = parseSelectorToR3Selector(attribute2.value)[0];
|
|
18722
19251
|
return [literal(5), asLiteral(parsedR3Selector)];
|
|
18723
19252
|
}
|
|
18724
19253
|
function getPropertyInterpolationExpression(interpolation) {
|
|
@@ -18927,7 +19456,7 @@ function createClosureModeGuard() {
|
|
|
18927
19456
|
return typeofExpr(variable(NG_I18N_CLOSURE_MODE)).notIdentical(literal("undefined", STRING_TYPE)).and(variable(NG_I18N_CLOSURE_MODE));
|
|
18928
19457
|
}
|
|
18929
19458
|
|
|
18930
|
-
// bazel-out/
|
|
19459
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/compiler.mjs
|
|
18931
19460
|
var ATTR_REGEX = /attr\.([^\]]+)/;
|
|
18932
19461
|
var COMPONENT_VARIABLE = "%COMP%";
|
|
18933
19462
|
var HOST_ATTR = `_nghost-${COMPONENT_VARIABLE}`;
|
|
@@ -19487,11 +20016,11 @@ function createHostDirectivesMappingArray(mapping) {
|
|
|
19487
20016
|
return elements.length > 0 ? literalArr(elements) : null;
|
|
19488
20017
|
}
|
|
19489
20018
|
|
|
19490
|
-
// bazel-out/
|
|
20019
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/resource_loader.mjs
|
|
19491
20020
|
var ResourceLoader = class {
|
|
19492
20021
|
};
|
|
19493
20022
|
|
|
19494
|
-
// bazel-out/
|
|
20023
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/jit_compiler_facade.mjs
|
|
19495
20024
|
var CompilerFacadeImpl = class {
|
|
19496
20025
|
constructor(jitEvaluator = new JitEvaluator()) {
|
|
19497
20026
|
this.jitEvaluator = jitEvaluator;
|
|
@@ -19570,6 +20099,7 @@ var CompilerFacadeImpl = class {
|
|
|
19570
20099
|
}
|
|
19571
20100
|
compileNgModule(angularCoreEnv, sourceMapUrl, facade) {
|
|
19572
20101
|
const meta = {
|
|
20102
|
+
kind: R3NgModuleMetadataKind.Global,
|
|
19573
20103
|
type: wrapReference(facade.type),
|
|
19574
20104
|
bootstrap: facade.bootstrap.map(wrapReference),
|
|
19575
20105
|
declarations: facade.declarations.map(wrapReference),
|
|
@@ -20014,10 +20544,10 @@ function publishFacade(global2) {
|
|
|
20014
20544
|
ng.\u0275compilerFacade = new CompilerFacadeImpl();
|
|
20015
20545
|
}
|
|
20016
20546
|
|
|
20017
|
-
// bazel-out/
|
|
20018
|
-
var VERSION2 = new Version("16.2.0-next.
|
|
20547
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/version.mjs
|
|
20548
|
+
var VERSION2 = new Version("16.2.0-next.2");
|
|
20019
20549
|
|
|
20020
|
-
// bazel-out/
|
|
20550
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
|
|
20021
20551
|
var _I18N_ATTR = "i18n";
|
|
20022
20552
|
var _I18N_ATTR_PREFIX = "i18n-";
|
|
20023
20553
|
var _I18N_COMMENT_PREFIX_REGEXP = /^i18n:?/;
|
|
@@ -20184,9 +20714,17 @@ var _Visitor3 = class {
|
|
|
20184
20714
|
}
|
|
20185
20715
|
return null;
|
|
20186
20716
|
}
|
|
20187
|
-
visitAttribute(
|
|
20717
|
+
visitAttribute(attribute2, context) {
|
|
20188
20718
|
throw new Error("unreachable code");
|
|
20189
20719
|
}
|
|
20720
|
+
visitBlockGroup(group, context) {
|
|
20721
|
+
visitAll2(this, group.blocks, context);
|
|
20722
|
+
}
|
|
20723
|
+
visitBlock(block, context) {
|
|
20724
|
+
visitAll2(this, block.children, context);
|
|
20725
|
+
}
|
|
20726
|
+
visitBlockParameter(parameter, context) {
|
|
20727
|
+
}
|
|
20190
20728
|
_init(mode, interpolationConfig) {
|
|
20191
20729
|
this._mode = mode;
|
|
20192
20730
|
this._inI18nBlock = false;
|
|
@@ -20321,7 +20859,7 @@ function _parseMessageMeta(i18n) {
|
|
|
20321
20859
|
return { meaning, description, id: id.trim() };
|
|
20322
20860
|
}
|
|
20323
20861
|
|
|
20324
|
-
// bazel-out/
|
|
20862
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/xml_tags.mjs
|
|
20325
20863
|
var XmlTagDefinition = class {
|
|
20326
20864
|
constructor() {
|
|
20327
20865
|
this.closedByParent = false;
|
|
@@ -20346,17 +20884,17 @@ function getXmlTagDefinition(tagName) {
|
|
|
20346
20884
|
return _TAG_DEFINITION;
|
|
20347
20885
|
}
|
|
20348
20886
|
|
|
20349
|
-
// bazel-out/
|
|
20887
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/xml_parser.mjs
|
|
20350
20888
|
var XmlParser = class extends Parser2 {
|
|
20351
20889
|
constructor() {
|
|
20352
20890
|
super(getXmlTagDefinition);
|
|
20353
20891
|
}
|
|
20354
|
-
parse(source, url, options) {
|
|
20355
|
-
return super.parse(source, url, options);
|
|
20892
|
+
parse(source, url, options = {}) {
|
|
20893
|
+
return super.parse(source, url, __spreadProps(__spreadValues({}, options), { tokenizeBlocks: false }));
|
|
20356
20894
|
}
|
|
20357
20895
|
};
|
|
20358
20896
|
|
|
20359
|
-
// bazel-out/
|
|
20897
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/serializers/xliff.mjs
|
|
20360
20898
|
var _VERSION = "1.2";
|
|
20361
20899
|
var _XMLNS = "urn:oasis:names:tc:xliff:document:1.2";
|
|
20362
20900
|
var _DEFAULT_SOURCE_LANG = "en";
|
|
@@ -20522,7 +21060,7 @@ var XliffParser = class {
|
|
|
20522
21060
|
visitAll2(this, element2.children, null);
|
|
20523
21061
|
}
|
|
20524
21062
|
}
|
|
20525
|
-
visitAttribute(
|
|
21063
|
+
visitAttribute(attribute2, context) {
|
|
20526
21064
|
}
|
|
20527
21065
|
visitText(text2, context) {
|
|
20528
21066
|
}
|
|
@@ -20532,6 +21070,12 @@ var XliffParser = class {
|
|
|
20532
21070
|
}
|
|
20533
21071
|
visitExpansionCase(expansionCase, context) {
|
|
20534
21072
|
}
|
|
21073
|
+
visitBlockGroup(group, context) {
|
|
21074
|
+
}
|
|
21075
|
+
visitBlock(block, context) {
|
|
21076
|
+
}
|
|
21077
|
+
visitBlockParameter(parameter, context) {
|
|
21078
|
+
}
|
|
20535
21079
|
_addError(node, message) {
|
|
20536
21080
|
this._errors.push(new I18nError(node.sourceSpan, message));
|
|
20537
21081
|
}
|
|
@@ -20579,7 +21123,13 @@ var XmlToI18n = class {
|
|
|
20579
21123
|
}
|
|
20580
21124
|
visitComment(comment, context) {
|
|
20581
21125
|
}
|
|
20582
|
-
visitAttribute(
|
|
21126
|
+
visitAttribute(attribute2, context) {
|
|
21127
|
+
}
|
|
21128
|
+
visitBlockGroup(group, context) {
|
|
21129
|
+
}
|
|
21130
|
+
visitBlock(block, context) {
|
|
21131
|
+
}
|
|
21132
|
+
visitBlockParameter(parameter, context) {
|
|
20583
21133
|
}
|
|
20584
21134
|
_addError(node, message) {
|
|
20585
21135
|
this._errors.push(new I18nError(node.sourceSpan, message));
|
|
@@ -20596,7 +21146,7 @@ function getCtypeForTag(tag) {
|
|
|
20596
21146
|
}
|
|
20597
21147
|
}
|
|
20598
21148
|
|
|
20599
|
-
// bazel-out/
|
|
21149
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/serializers/xliff2.mjs
|
|
20600
21150
|
var _VERSION2 = "2.0";
|
|
20601
21151
|
var _XMLNS2 = "urn:oasis:names:tc:xliff:document:2.0";
|
|
20602
21152
|
var _DEFAULT_SOURCE_LANG2 = "en";
|
|
@@ -20793,7 +21343,7 @@ var Xliff2Parser = class {
|
|
|
20793
21343
|
visitAll2(this, element2.children, null);
|
|
20794
21344
|
}
|
|
20795
21345
|
}
|
|
20796
|
-
visitAttribute(
|
|
21346
|
+
visitAttribute(attribute2, context) {
|
|
20797
21347
|
}
|
|
20798
21348
|
visitText(text2, context) {
|
|
20799
21349
|
}
|
|
@@ -20803,6 +21353,12 @@ var Xliff2Parser = class {
|
|
|
20803
21353
|
}
|
|
20804
21354
|
visitExpansionCase(expansionCase, context) {
|
|
20805
21355
|
}
|
|
21356
|
+
visitBlockGroup(group, context) {
|
|
21357
|
+
}
|
|
21358
|
+
visitBlock(block, context) {
|
|
21359
|
+
}
|
|
21360
|
+
visitBlockParameter(parameter, context) {
|
|
21361
|
+
}
|
|
20806
21362
|
_addError(node, message) {
|
|
20807
21363
|
this._errors.push(new I18nError(node.sourceSpan, message));
|
|
20808
21364
|
}
|
|
@@ -20865,7 +21421,13 @@ var XmlToI18n2 = class {
|
|
|
20865
21421
|
}
|
|
20866
21422
|
visitComment(comment, context) {
|
|
20867
21423
|
}
|
|
20868
|
-
visitAttribute(
|
|
21424
|
+
visitAttribute(attribute2, context) {
|
|
21425
|
+
}
|
|
21426
|
+
visitBlockGroup(group, context) {
|
|
21427
|
+
}
|
|
21428
|
+
visitBlock(block, context) {
|
|
21429
|
+
}
|
|
21430
|
+
visitBlockParameter(parameter, context) {
|
|
20869
21431
|
}
|
|
20870
21432
|
_addError(node, message) {
|
|
20871
21433
|
this._errors.push(new I18nError(node.sourceSpan, message));
|
|
@@ -20887,7 +21449,7 @@ function getTypeForTag(tag) {
|
|
|
20887
21449
|
}
|
|
20888
21450
|
}
|
|
20889
21451
|
|
|
20890
|
-
// bazel-out/
|
|
21452
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/message_bundle.mjs
|
|
20891
21453
|
var MessageBundle = class {
|
|
20892
21454
|
constructor(_htmlParser, _implicitTags, _implicitAttrs, _locale = null) {
|
|
20893
21455
|
this._htmlParser = _htmlParser;
|
|
@@ -20954,7 +21516,7 @@ var MapPlaceholderNames = class extends CloneVisitor {
|
|
|
20954
21516
|
}
|
|
20955
21517
|
};
|
|
20956
21518
|
|
|
20957
|
-
// bazel-out/
|
|
21519
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/partial/api.mjs
|
|
20958
21520
|
var FactoryTarget2;
|
|
20959
21521
|
(function(FactoryTarget3) {
|
|
20960
21522
|
FactoryTarget3[FactoryTarget3["Directive"] = 0] = "Directive";
|
|
@@ -20964,7 +21526,7 @@ var FactoryTarget2;
|
|
|
20964
21526
|
FactoryTarget3[FactoryTarget3["NgModule"] = 4] = "NgModule";
|
|
20965
21527
|
})(FactoryTarget2 || (FactoryTarget2 = {}));
|
|
20966
21528
|
|
|
20967
|
-
// bazel-out/
|
|
21529
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/t2_binder.mjs
|
|
20968
21530
|
var R3TargetBinder = class {
|
|
20969
21531
|
constructor(directiveMatcher) {
|
|
20970
21532
|
this.directiveMatcher = directiveMatcher;
|
|
@@ -21102,10 +21664,10 @@ var DirectiveBinder = class {
|
|
|
21102
21664
|
this.references.set(ref, node);
|
|
21103
21665
|
}
|
|
21104
21666
|
});
|
|
21105
|
-
const setAttributeBinding = (
|
|
21106
|
-
const dir = directives.find((dir2) => dir2[ioType].hasBindingPropertyName(
|
|
21667
|
+
const setAttributeBinding = (attribute2, ioType) => {
|
|
21668
|
+
const dir = directives.find((dir2) => dir2[ioType].hasBindingPropertyName(attribute2.name));
|
|
21107
21669
|
const binding = dir !== void 0 ? dir : node;
|
|
21108
|
-
this.bindings.set(
|
|
21670
|
+
this.bindings.set(attribute2, binding);
|
|
21109
21671
|
};
|
|
21110
21672
|
node.inputs.forEach((input) => setAttributeBinding(input, "inputs"));
|
|
21111
21673
|
node.attributes.forEach((attr) => setAttributeBinding(attr, "inputs"));
|
|
@@ -21121,11 +21683,11 @@ var DirectiveBinder = class {
|
|
|
21121
21683
|
}
|
|
21122
21684
|
visitReference(reference2) {
|
|
21123
21685
|
}
|
|
21124
|
-
visitTextAttribute(
|
|
21686
|
+
visitTextAttribute(attribute2) {
|
|
21125
21687
|
}
|
|
21126
|
-
visitBoundAttribute(
|
|
21688
|
+
visitBoundAttribute(attribute2) {
|
|
21127
21689
|
}
|
|
21128
|
-
visitBoundEvent(
|
|
21690
|
+
visitBoundEvent(attribute2) {
|
|
21129
21691
|
}
|
|
21130
21692
|
visitBoundAttributeOrEvent(node) {
|
|
21131
21693
|
}
|
|
@@ -21201,14 +21763,14 @@ var TemplateBinder = class extends RecursiveAstVisitor2 {
|
|
|
21201
21763
|
}
|
|
21202
21764
|
visitContent(content) {
|
|
21203
21765
|
}
|
|
21204
|
-
visitTextAttribute(
|
|
21766
|
+
visitTextAttribute(attribute2) {
|
|
21205
21767
|
}
|
|
21206
21768
|
visitIcu(icu) {
|
|
21207
21769
|
Object.keys(icu.vars).forEach((key) => icu.vars[key].visit(this));
|
|
21208
21770
|
Object.keys(icu.placeholders).forEach((key) => icu.placeholders[key].visit(this));
|
|
21209
21771
|
}
|
|
21210
|
-
visitBoundAttribute(
|
|
21211
|
-
|
|
21772
|
+
visitBoundAttribute(attribute2) {
|
|
21773
|
+
attribute2.value.visit(this);
|
|
21212
21774
|
}
|
|
21213
21775
|
visitBoundEvent(event) {
|
|
21214
21776
|
event.handler.visit(this);
|
|
@@ -21316,7 +21878,7 @@ function extractTemplateEntities(rootScope) {
|
|
|
21316
21878
|
return templateEntities;
|
|
21317
21879
|
}
|
|
21318
21880
|
|
|
21319
|
-
// bazel-out/
|
|
21881
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_class_metadata_compiler.mjs
|
|
21320
21882
|
function compileClassMetadata(metadata) {
|
|
21321
21883
|
var _a2, _b2;
|
|
21322
21884
|
const fnCall = importExpr(Identifiers.setClassMetadata).callFn([
|
|
@@ -21329,12 +21891,12 @@ function compileClassMetadata(metadata) {
|
|
|
21329
21891
|
return iife.callFn([]);
|
|
21330
21892
|
}
|
|
21331
21893
|
|
|
21332
|
-
// bazel-out/
|
|
21894
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/partial/class_metadata.mjs
|
|
21333
21895
|
var MINIMUM_PARTIAL_LINKER_VERSION = "12.0.0";
|
|
21334
21896
|
function compileDeclareClassMetadata(metadata) {
|
|
21335
21897
|
const definitionMap = new DefinitionMap();
|
|
21336
21898
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
21337
|
-
definitionMap.set("version", literal("16.2.0-next.
|
|
21899
|
+
definitionMap.set("version", literal("16.2.0-next.2"));
|
|
21338
21900
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
21339
21901
|
definitionMap.set("type", metadata.type);
|
|
21340
21902
|
definitionMap.set("decorators", metadata.decorators);
|
|
@@ -21343,7 +21905,7 @@ function compileDeclareClassMetadata(metadata) {
|
|
|
21343
21905
|
return importExpr(Identifiers.declareClassMetadata).callFn([definitionMap.toLiteralMap()]);
|
|
21344
21906
|
}
|
|
21345
21907
|
|
|
21346
|
-
// bazel-out/
|
|
21908
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/partial/util.mjs
|
|
21347
21909
|
function toOptionalLiteralArray(values, mapper) {
|
|
21348
21910
|
if (values === null || values.length === 0) {
|
|
21349
21911
|
return null;
|
|
@@ -21391,7 +21953,7 @@ function compileDependency(dep) {
|
|
|
21391
21953
|
return depMeta.toLiteralMap();
|
|
21392
21954
|
}
|
|
21393
21955
|
|
|
21394
|
-
// bazel-out/
|
|
21956
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/partial/directive.mjs
|
|
21395
21957
|
var MINIMUM_PARTIAL_LINKER_VERSION2 = "14.0.0";
|
|
21396
21958
|
function compileDeclareDirectiveFromMetadata(meta) {
|
|
21397
21959
|
const definitionMap = createDirectiveDefinitionMap(meta);
|
|
@@ -21403,7 +21965,7 @@ function createDirectiveDefinitionMap(meta) {
|
|
|
21403
21965
|
var _a2;
|
|
21404
21966
|
const definitionMap = new DefinitionMap();
|
|
21405
21967
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION2));
|
|
21406
|
-
definitionMap.set("version", literal("16.2.0-next.
|
|
21968
|
+
definitionMap.set("version", literal("16.2.0-next.2"));
|
|
21407
21969
|
definitionMap.set("type", meta.type.value);
|
|
21408
21970
|
if (meta.isStandalone) {
|
|
21409
21971
|
definitionMap.set("isStandalone", literal(meta.isStandalone));
|
|
@@ -21496,7 +22058,7 @@ function createHostDirectives(hostDirectives) {
|
|
|
21496
22058
|
return literalArr(expressions);
|
|
21497
22059
|
}
|
|
21498
22060
|
|
|
21499
|
-
// bazel-out/
|
|
22061
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/partial/component.mjs
|
|
21500
22062
|
function compileDeclareComponentFromMetadata(meta, template2, additionalTemplateInfo) {
|
|
21501
22063
|
const definitionMap = createComponentDefinitionMap(meta, template2, additionalTemplateInfo);
|
|
21502
22064
|
const expression = importExpr(Identifiers.declareComponent).callFn([definitionMap.toLiteralMap()]);
|
|
@@ -21583,12 +22145,12 @@ function compileUsedDependenciesMetadata(meta) {
|
|
|
21583
22145
|
});
|
|
21584
22146
|
}
|
|
21585
22147
|
|
|
21586
|
-
// bazel-out/
|
|
22148
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/partial/factory.mjs
|
|
21587
22149
|
var MINIMUM_PARTIAL_LINKER_VERSION3 = "12.0.0";
|
|
21588
22150
|
function compileDeclareFactoryFunction(meta) {
|
|
21589
22151
|
const definitionMap = new DefinitionMap();
|
|
21590
22152
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION3));
|
|
21591
|
-
definitionMap.set("version", literal("16.2.0-next.
|
|
22153
|
+
definitionMap.set("version", literal("16.2.0-next.2"));
|
|
21592
22154
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
21593
22155
|
definitionMap.set("type", meta.type.value);
|
|
21594
22156
|
definitionMap.set("deps", compileDependencies(meta.deps));
|
|
@@ -21600,7 +22162,7 @@ function compileDeclareFactoryFunction(meta) {
|
|
|
21600
22162
|
};
|
|
21601
22163
|
}
|
|
21602
22164
|
|
|
21603
|
-
// bazel-out/
|
|
22165
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/partial/injectable.mjs
|
|
21604
22166
|
var MINIMUM_PARTIAL_LINKER_VERSION4 = "12.0.0";
|
|
21605
22167
|
function compileDeclareInjectableFromMetadata(meta) {
|
|
21606
22168
|
const definitionMap = createInjectableDefinitionMap(meta);
|
|
@@ -21611,7 +22173,7 @@ function compileDeclareInjectableFromMetadata(meta) {
|
|
|
21611
22173
|
function createInjectableDefinitionMap(meta) {
|
|
21612
22174
|
const definitionMap = new DefinitionMap();
|
|
21613
22175
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION4));
|
|
21614
|
-
definitionMap.set("version", literal("16.2.0-next.
|
|
22176
|
+
definitionMap.set("version", literal("16.2.0-next.2"));
|
|
21615
22177
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
21616
22178
|
definitionMap.set("type", meta.type.value);
|
|
21617
22179
|
if (meta.providedIn !== void 0) {
|
|
@@ -21638,7 +22200,7 @@ function createInjectableDefinitionMap(meta) {
|
|
|
21638
22200
|
return definitionMap;
|
|
21639
22201
|
}
|
|
21640
22202
|
|
|
21641
|
-
// bazel-out/
|
|
22203
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/partial/injector.mjs
|
|
21642
22204
|
var MINIMUM_PARTIAL_LINKER_VERSION5 = "12.0.0";
|
|
21643
22205
|
function compileDeclareInjectorFromMetadata(meta) {
|
|
21644
22206
|
const definitionMap = createInjectorDefinitionMap(meta);
|
|
@@ -21649,7 +22211,7 @@ function compileDeclareInjectorFromMetadata(meta) {
|
|
|
21649
22211
|
function createInjectorDefinitionMap(meta) {
|
|
21650
22212
|
const definitionMap = new DefinitionMap();
|
|
21651
22213
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION5));
|
|
21652
|
-
definitionMap.set("version", literal("16.2.0-next.
|
|
22214
|
+
definitionMap.set("version", literal("16.2.0-next.2"));
|
|
21653
22215
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
21654
22216
|
definitionMap.set("type", meta.type.value);
|
|
21655
22217
|
definitionMap.set("providers", meta.providers);
|
|
@@ -21659,7 +22221,7 @@ function createInjectorDefinitionMap(meta) {
|
|
|
21659
22221
|
return definitionMap;
|
|
21660
22222
|
}
|
|
21661
22223
|
|
|
21662
|
-
// bazel-out/
|
|
22224
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/partial/ng_module.mjs
|
|
21663
22225
|
var MINIMUM_PARTIAL_LINKER_VERSION6 = "14.0.0";
|
|
21664
22226
|
function compileDeclareNgModuleFromMetadata(meta) {
|
|
21665
22227
|
const definitionMap = createNgModuleDefinitionMap(meta);
|
|
@@ -21669,8 +22231,11 @@ function compileDeclareNgModuleFromMetadata(meta) {
|
|
|
21669
22231
|
}
|
|
21670
22232
|
function createNgModuleDefinitionMap(meta) {
|
|
21671
22233
|
const definitionMap = new DefinitionMap();
|
|
22234
|
+
if (meta.kind === R3NgModuleMetadataKind.Local) {
|
|
22235
|
+
throw new Error("Invalid path! Local compilation mode should not get into the partial compilation path");
|
|
22236
|
+
}
|
|
21672
22237
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION6));
|
|
21673
|
-
definitionMap.set("version", literal("16.2.0-next.
|
|
22238
|
+
definitionMap.set("version", literal("16.2.0-next.2"));
|
|
21674
22239
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
21675
22240
|
definitionMap.set("type", meta.type.value);
|
|
21676
22241
|
if (meta.bootstrap.length > 0) {
|
|
@@ -21694,7 +22259,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
21694
22259
|
return definitionMap;
|
|
21695
22260
|
}
|
|
21696
22261
|
|
|
21697
|
-
// bazel-out/
|
|
22262
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/partial/pipe.mjs
|
|
21698
22263
|
var MINIMUM_PARTIAL_LINKER_VERSION7 = "14.0.0";
|
|
21699
22264
|
function compileDeclarePipeFromMetadata(meta) {
|
|
21700
22265
|
const definitionMap = createPipeDefinitionMap(meta);
|
|
@@ -21705,7 +22270,7 @@ function compileDeclarePipeFromMetadata(meta) {
|
|
|
21705
22270
|
function createPipeDefinitionMap(meta) {
|
|
21706
22271
|
const definitionMap = new DefinitionMap();
|
|
21707
22272
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION7));
|
|
21708
|
-
definitionMap.set("version", literal("16.2.0-next.
|
|
22273
|
+
definitionMap.set("version", literal("16.2.0-next.2"));
|
|
21709
22274
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
21710
22275
|
definitionMap.set("type", meta.type.value);
|
|
21711
22276
|
if (meta.isStandalone) {
|
|
@@ -21718,13 +22283,13 @@ function createPipeDefinitionMap(meta) {
|
|
|
21718
22283
|
return definitionMap;
|
|
21719
22284
|
}
|
|
21720
22285
|
|
|
21721
|
-
// bazel-out/
|
|
22286
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/compiler.mjs
|
|
21722
22287
|
publishFacade(_global);
|
|
21723
22288
|
|
|
21724
|
-
// bazel-out/
|
|
21725
|
-
var VERSION3 = new Version("16.2.0-next.
|
|
22289
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/version.mjs
|
|
22290
|
+
var VERSION3 = new Version("16.2.0-next.2");
|
|
21726
22291
|
|
|
21727
|
-
// bazel-out/
|
|
22292
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
|
|
21728
22293
|
var EmitFlags;
|
|
21729
22294
|
(function(EmitFlags2) {
|
|
21730
22295
|
EmitFlags2[EmitFlags2["DTS"] = 1] = "DTS";
|
|
@@ -21736,13 +22301,13 @@ var EmitFlags;
|
|
|
21736
22301
|
EmitFlags2[EmitFlags2["All"] = 31] = "All";
|
|
21737
22302
|
})(EmitFlags || (EmitFlags = {}));
|
|
21738
22303
|
|
|
21739
|
-
// bazel-out/
|
|
22304
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/compiler_host.mjs
|
|
21740
22305
|
var import_typescript2 = __toESM(require("typescript"), 1);
|
|
21741
22306
|
|
|
21742
|
-
// bazel-out/
|
|
22307
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
21743
22308
|
var import_typescript94 = __toESM(require("typescript"), 1);
|
|
21744
22309
|
|
|
21745
|
-
// bazel-out/
|
|
22310
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
|
|
21746
22311
|
var path = __toESM(require("path"), 1);
|
|
21747
22312
|
function i18nGetExtension(formatName) {
|
|
21748
22313
|
const format = formatName.toLowerCase();
|
|
@@ -21792,10 +22357,10 @@ function getPathNormalizer(basePath) {
|
|
|
21792
22357
|
};
|
|
21793
22358
|
}
|
|
21794
22359
|
|
|
21795
|
-
// bazel-out/
|
|
22360
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
21796
22361
|
var import_typescript3 = __toESM(require("typescript"), 1);
|
|
21797
22362
|
|
|
21798
|
-
// bazel-out/
|
|
22363
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/version_helpers.mjs
|
|
21799
22364
|
function toNumbers(value) {
|
|
21800
22365
|
const suffixIndex = value.lastIndexOf("-");
|
|
21801
22366
|
return value.slice(0, suffixIndex === -1 ? value.length : suffixIndex).split(".").map((segment) => {
|
|
@@ -21830,7 +22395,7 @@ function compareVersions(v1, v2) {
|
|
|
21830
22395
|
return compareNumbers(toNumbers(v1), toNumbers(v2));
|
|
21831
22396
|
}
|
|
21832
22397
|
|
|
21833
|
-
// bazel-out/
|
|
22398
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
21834
22399
|
var MIN_TS_VERSION = "4.9.3";
|
|
21835
22400
|
var MAX_TS_VERSION = "5.2.0";
|
|
21836
22401
|
var tsVersion = import_typescript3.default.version;
|
|
@@ -21843,13 +22408,13 @@ function verifySupportedTypeScriptVersion() {
|
|
|
21843
22408
|
checkVersion(tsVersion, MIN_TS_VERSION, MAX_TS_VERSION);
|
|
21844
22409
|
}
|
|
21845
22410
|
|
|
21846
|
-
// bazel-out/
|
|
22411
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
21847
22412
|
var import_typescript90 = __toESM(require("typescript"), 1);
|
|
21848
22413
|
|
|
21849
|
-
// bazel-out/
|
|
22414
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
|
|
21850
22415
|
var import_typescript14 = __toESM(require("typescript"), 1);
|
|
21851
22416
|
|
|
21852
|
-
// bazel-out/
|
|
22417
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_code.mjs
|
|
21853
22418
|
var ErrorCode;
|
|
21854
22419
|
(function(ErrorCode2) {
|
|
21855
22420
|
ErrorCode2[ErrorCode2["DECORATOR_ARG_NOT_LITERAL"] = 1001] = "DECORATOR_ARG_NOT_LITERAL";
|
|
@@ -21923,7 +22488,7 @@ var ErrorCode;
|
|
|
21923
22488
|
ErrorCode2[ErrorCode2["SUGGEST_SUBOPTIMAL_TYPE_INFERENCE"] = 10002] = "SUGGEST_SUBOPTIMAL_TYPE_INFERENCE";
|
|
21924
22489
|
})(ErrorCode || (ErrorCode = {}));
|
|
21925
22490
|
|
|
21926
|
-
// bazel-out/
|
|
22491
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/docs.mjs
|
|
21927
22492
|
var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
|
|
21928
22493
|
ErrorCode.DECORATOR_ARG_NOT_LITERAL,
|
|
21929
22494
|
ErrorCode.IMPORT_CYCLE_DETECTED,
|
|
@@ -21935,15 +22500,15 @@ var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
|
|
|
21935
22500
|
ErrorCode.WARN_NGMODULE_ID_UNNECESSARY
|
|
21936
22501
|
]);
|
|
21937
22502
|
|
|
21938
|
-
// bazel-out/
|
|
22503
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
|
|
21939
22504
|
var import_typescript4 = __toESM(require("typescript"), 1);
|
|
21940
22505
|
|
|
21941
|
-
// bazel-out/
|
|
22506
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/util.mjs
|
|
21942
22507
|
function ngErrorCode(code) {
|
|
21943
22508
|
return parseInt("-99" + code);
|
|
21944
22509
|
}
|
|
21945
22510
|
|
|
21946
|
-
// bazel-out/
|
|
22511
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
|
|
21947
22512
|
var FatalDiagnosticError = class {
|
|
21948
22513
|
constructor(code, node, message, relatedInformation) {
|
|
21949
22514
|
this.code = code;
|
|
@@ -21999,10 +22564,10 @@ function addDiagnosticChain(messageText, add) {
|
|
|
21999
22564
|
return messageText;
|
|
22000
22565
|
}
|
|
22001
22566
|
|
|
22002
|
-
// bazel-out/
|
|
22567
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.mjs
|
|
22003
22568
|
var ERROR_DETAILS_PAGE_BASE_URL = "https://angular.io/errors";
|
|
22004
22569
|
|
|
22005
|
-
// bazel-out/
|
|
22570
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.mjs
|
|
22006
22571
|
var ExtendedTemplateDiagnosticName;
|
|
22007
22572
|
(function(ExtendedTemplateDiagnosticName2) {
|
|
22008
22573
|
ExtendedTemplateDiagnosticName2["INVALID_BANANA_IN_BOX"] = "invalidBananaInBox";
|
|
@@ -22015,13 +22580,13 @@ var ExtendedTemplateDiagnosticName;
|
|
|
22015
22580
|
ExtendedTemplateDiagnosticName2["SKIP_HYDRATION_NOT_STATIC"] = "skipHydrationNotStatic";
|
|
22016
22581
|
})(ExtendedTemplateDiagnosticName || (ExtendedTemplateDiagnosticName = {}));
|
|
22017
22582
|
|
|
22018
|
-
// bazel-out/
|
|
22583
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
|
|
22019
22584
|
var import_typescript13 = __toESM(require("typescript"), 1);
|
|
22020
22585
|
|
|
22021
|
-
// bazel-out/
|
|
22586
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
|
|
22022
22587
|
var import_typescript7 = __toESM(require("typescript"), 1);
|
|
22023
22588
|
|
|
22024
|
-
// bazel-out/
|
|
22589
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/typescript.mjs
|
|
22025
22590
|
var import_typescript5 = __toESM(require("typescript"), 1);
|
|
22026
22591
|
var TS = /\.tsx?$/i;
|
|
22027
22592
|
var D_TS = /\.d\.ts$/i;
|
|
@@ -22122,7 +22687,7 @@ function toUnredirectedSourceFile(sf) {
|
|
|
22122
22687
|
return redirectInfo.unredirected;
|
|
22123
22688
|
}
|
|
22124
22689
|
|
|
22125
|
-
// bazel-out/
|
|
22690
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/find_export.mjs
|
|
22126
22691
|
function findExportedNameOfNode(target, file, reflector) {
|
|
22127
22692
|
const exports = reflector.getExportsOfModule(file);
|
|
22128
22693
|
if (exports === null) {
|
|
@@ -22142,7 +22707,7 @@ function findExportedNameOfNode(target, file, reflector) {
|
|
|
22142
22707
|
return foundExportName;
|
|
22143
22708
|
}
|
|
22144
22709
|
|
|
22145
|
-
// bazel-out/
|
|
22710
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
|
|
22146
22711
|
var ImportFlags;
|
|
22147
22712
|
(function(ImportFlags2) {
|
|
22148
22713
|
ImportFlags2[ImportFlags2["None"] = 0] = "None";
|
|
@@ -22358,7 +22923,7 @@ var UnifiedModulesStrategy = class {
|
|
|
22358
22923
|
}
|
|
22359
22924
|
};
|
|
22360
22925
|
|
|
22361
|
-
// bazel-out/
|
|
22926
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
|
|
22362
22927
|
var CHARS_TO_ESCAPE = /[^a-zA-Z0-9/_]/g;
|
|
22363
22928
|
var UnifiedModulesAliasingHost = class {
|
|
22364
22929
|
constructor(unifiedModulesHost) {
|
|
@@ -22425,7 +22990,7 @@ var AliasStrategy = class {
|
|
|
22425
22990
|
}
|
|
22426
22991
|
};
|
|
22427
22992
|
|
|
22428
|
-
// bazel-out/
|
|
22993
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/path.mjs
|
|
22429
22994
|
function relativePathBetween(from, to) {
|
|
22430
22995
|
const relativePath = stripExtension(relative(dirname(resolve(from)), resolve(to)));
|
|
22431
22996
|
return relativePath !== "" ? toRelativeImport(relativePath) : null;
|
|
@@ -22434,7 +22999,7 @@ function normalizeSeparators2(path3) {
|
|
|
22434
22999
|
return path3.replace(/\\/g, "/");
|
|
22435
23000
|
}
|
|
22436
23001
|
|
|
22437
|
-
// bazel-out/
|
|
23002
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/core.mjs
|
|
22438
23003
|
var NoopImportRewriter = class {
|
|
22439
23004
|
shouldImportSymbol(symbol, specifier) {
|
|
22440
23005
|
return true;
|
|
@@ -22492,7 +23057,7 @@ function validateAndRewriteCoreSymbol(name) {
|
|
|
22492
23057
|
return CORE_SUPPORTED_SYMBOLS.get(name);
|
|
22493
23058
|
}
|
|
22494
23059
|
|
|
22495
|
-
// bazel-out/
|
|
23060
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/patch_alias_reference_resolution.mjs
|
|
22496
23061
|
var import_typescript9 = __toESM(require("typescript"), 1);
|
|
22497
23062
|
var patchedReferencedAliasesSymbol = Symbol("patchedReferencedAliases");
|
|
22498
23063
|
function loadIsReferencedAliasDeclarationPatch(context) {
|
|
@@ -22527,7 +23092,7 @@ function throwIncompatibleTransformationContextError() {
|
|
|
22527
23092
|
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.");
|
|
22528
23093
|
}
|
|
22529
23094
|
|
|
22530
|
-
// bazel-out/
|
|
23095
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/default.mjs
|
|
22531
23096
|
var DefaultImportDeclaration = Symbol("DefaultImportDeclaration");
|
|
22532
23097
|
function attachDefaultImportDeclaration(expr, importDecl) {
|
|
22533
23098
|
expr[DefaultImportDeclaration] = importDecl;
|
|
@@ -22568,7 +23133,7 @@ var DefaultImportTracker = class {
|
|
|
22568
23133
|
}
|
|
22569
23134
|
};
|
|
22570
23135
|
|
|
22571
|
-
// bazel-out/
|
|
23136
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/references.mjs
|
|
22572
23137
|
var Reference2 = class {
|
|
22573
23138
|
constructor(node, bestGuessOwningModule = null) {
|
|
22574
23139
|
this.node = node;
|
|
@@ -22631,7 +23196,7 @@ var Reference2 = class {
|
|
|
22631
23196
|
}
|
|
22632
23197
|
};
|
|
22633
23198
|
|
|
22634
|
-
// bazel-out/
|
|
23199
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/resolver.mjs
|
|
22635
23200
|
var ModuleResolver = class {
|
|
22636
23201
|
constructor(program, compilerOptions, host, moduleResolutionCache) {
|
|
22637
23202
|
this.program = program;
|
|
@@ -22648,7 +23213,7 @@ var ModuleResolver = class {
|
|
|
22648
23213
|
}
|
|
22649
23214
|
};
|
|
22650
23215
|
|
|
22651
|
-
// bazel-out/
|
|
23216
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
|
|
22652
23217
|
function valueReferenceToExpression(valueRef) {
|
|
22653
23218
|
if (valueRef.kind === 2) {
|
|
22654
23219
|
return null;
|
|
@@ -22887,7 +23452,7 @@ function isAbstractClassDeclaration(clazz) {
|
|
|
22887
23452
|
return import_typescript13.default.canHaveModifiers(clazz) && clazz.modifiers !== void 0 ? clazz.modifiers.some((mod) => mod.kind === import_typescript13.default.SyntaxKind.AbstractKeyword) : false;
|
|
22888
23453
|
}
|
|
22889
23454
|
|
|
22890
|
-
// bazel-out/
|
|
23455
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
|
|
22891
23456
|
function getConstructorDependencies(clazz, reflector, isCore) {
|
|
22892
23457
|
const deps = [];
|
|
22893
23458
|
const errors = [];
|
|
@@ -23029,10 +23594,10 @@ function createUnsuitableInjectionTokenError(clazz, error2) {
|
|
|
23029
23594
|
return new FatalDiagnosticError(ErrorCode.PARAM_MISSING_TOKEN, param.nameNode, chain, hints);
|
|
23030
23595
|
}
|
|
23031
23596
|
|
|
23032
|
-
// bazel-out/
|
|
23597
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
|
|
23033
23598
|
var import_typescript27 = __toESM(require("typescript"), 1);
|
|
23034
23599
|
|
|
23035
|
-
// bazel-out/
|
|
23600
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/api.mjs
|
|
23036
23601
|
var MetaKind;
|
|
23037
23602
|
(function(MetaKind2) {
|
|
23038
23603
|
MetaKind2[MetaKind2["Directive"] = 0] = "Directive";
|
|
@@ -23045,10 +23610,10 @@ var MatchSource;
|
|
|
23045
23610
|
MatchSource2[MatchSource2["HostDirective"] = 1] = "HostDirective";
|
|
23046
23611
|
})(MatchSource || (MatchSource = {}));
|
|
23047
23612
|
|
|
23048
|
-
// bazel-out/
|
|
23613
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
23049
23614
|
var import_typescript22 = __toESM(require("typescript"), 1);
|
|
23050
23615
|
|
|
23051
|
-
// bazel-out/
|
|
23616
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/host.mjs
|
|
23052
23617
|
var import_typescript15 = __toESM(require("typescript"), 1);
|
|
23053
23618
|
function isDecoratorIdentifier(exp) {
|
|
23054
23619
|
return import_typescript15.default.isIdentifier(exp) || import_typescript15.default.isPropertyAccessExpression(exp) && import_typescript15.default.isIdentifier(exp.expression) && import_typescript15.default.isIdentifier(exp.name);
|
|
@@ -23062,7 +23627,7 @@ var ClassMemberKind;
|
|
|
23062
23627
|
ClassMemberKind2[ClassMemberKind2["Method"] = 4] = "Method";
|
|
23063
23628
|
})(ClassMemberKind || (ClassMemberKind = {}));
|
|
23064
23629
|
|
|
23065
|
-
// bazel-out/
|
|
23630
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/type_to_value.mjs
|
|
23066
23631
|
var import_typescript16 = __toESM(require("typescript"), 1);
|
|
23067
23632
|
function typeToValue(typeNode, checker) {
|
|
23068
23633
|
if (typeNode === null) {
|
|
@@ -23228,10 +23793,10 @@ function extractModuleName(node) {
|
|
|
23228
23793
|
return node.moduleSpecifier.text;
|
|
23229
23794
|
}
|
|
23230
23795
|
|
|
23231
|
-
// bazel-out/
|
|
23796
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
|
|
23232
23797
|
var import_typescript18 = __toESM(require("typescript"), 1);
|
|
23233
23798
|
|
|
23234
|
-
// bazel-out/
|
|
23799
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/util.mjs
|
|
23235
23800
|
var import_typescript17 = __toESM(require("typescript"), 1);
|
|
23236
23801
|
function isNamedClassDeclaration(node) {
|
|
23237
23802
|
return import_typescript17.default.isClassDeclaration(node) && isIdentifier(node.name);
|
|
@@ -23240,7 +23805,7 @@ function isIdentifier(node) {
|
|
|
23240
23805
|
return node !== void 0 && import_typescript17.default.isIdentifier(node);
|
|
23241
23806
|
}
|
|
23242
23807
|
|
|
23243
|
-
// bazel-out/
|
|
23808
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
|
|
23244
23809
|
var TypeScriptReflectionHost = class {
|
|
23245
23810
|
constructor(checker) {
|
|
23246
23811
|
this.checker = checker;
|
|
@@ -23669,7 +24234,7 @@ function getExportedName(decl, originalId) {
|
|
|
23669
24234
|
}
|
|
23670
24235
|
var LocalExportedDeclarations = Symbol("LocalExportedDeclarations");
|
|
23671
24236
|
|
|
23672
|
-
// bazel-out/
|
|
24237
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/property_mapping.mjs
|
|
23673
24238
|
var ClassPropertyMapping = class {
|
|
23674
24239
|
constructor(forwardMap) {
|
|
23675
24240
|
this.forwardMap = forwardMap;
|
|
@@ -23747,7 +24312,7 @@ function reverseMapFromForwardMap(forwardMap) {
|
|
|
23747
24312
|
return reverseMap;
|
|
23748
24313
|
}
|
|
23749
24314
|
|
|
23750
|
-
// bazel-out/
|
|
24315
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/util.mjs
|
|
23751
24316
|
var import_typescript20 = __toESM(require("typescript"), 1);
|
|
23752
24317
|
function extractReferencesFromType(checker, def, bestGuessOwningModule) {
|
|
23753
24318
|
if (!import_typescript20.default.isTupleTypeNode(def)) {
|
|
@@ -23932,7 +24497,7 @@ function hasInjectableFields(clazz, host) {
|
|
|
23932
24497
|
return members.some(({ isStatic, name }) => isStatic && (name === "\u0275prov" || name === "\u0275fac"));
|
|
23933
24498
|
}
|
|
23934
24499
|
|
|
23935
|
-
// bazel-out/
|
|
24500
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
23936
24501
|
var DtsMetadataReader = class {
|
|
23937
24502
|
constructor(checker, reflector) {
|
|
23938
24503
|
this.checker = checker;
|
|
@@ -24107,7 +24672,7 @@ function readHostDirectivesType(checker, type, bestGuessOwningModule) {
|
|
|
24107
24672
|
return result.length > 0 ? result : null;
|
|
24108
24673
|
}
|
|
24109
24674
|
|
|
24110
|
-
// bazel-out/
|
|
24675
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/inheritance.mjs
|
|
24111
24676
|
function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
24112
24677
|
const topMeta = reader.getDirectiveMetadata(dir);
|
|
24113
24678
|
if (topMeta === null) {
|
|
@@ -24164,7 +24729,7 @@ function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
|
24164
24729
|
});
|
|
24165
24730
|
}
|
|
24166
24731
|
|
|
24167
|
-
// bazel-out/
|
|
24732
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/registry.mjs
|
|
24168
24733
|
var LocalMetadataRegistry = class {
|
|
24169
24734
|
constructor() {
|
|
24170
24735
|
this.directives = /* @__PURE__ */ new Map();
|
|
@@ -24221,7 +24786,7 @@ var CompoundMetadataRegistry = class {
|
|
|
24221
24786
|
}
|
|
24222
24787
|
};
|
|
24223
24788
|
|
|
24224
|
-
// bazel-out/
|
|
24789
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/resource_registry.mjs
|
|
24225
24790
|
var ResourceRegistry = class {
|
|
24226
24791
|
constructor() {
|
|
24227
24792
|
this.externalTemplateToComponentsMap = /* @__PURE__ */ new Map();
|
|
@@ -24286,7 +24851,7 @@ var ResourceRegistry = class {
|
|
|
24286
24851
|
}
|
|
24287
24852
|
};
|
|
24288
24853
|
|
|
24289
|
-
// bazel-out/
|
|
24854
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/providers.mjs
|
|
24290
24855
|
var ExportedProviderStatusResolver = class {
|
|
24291
24856
|
constructor(metaReader) {
|
|
24292
24857
|
this.metaReader = metaReader;
|
|
@@ -24330,7 +24895,7 @@ var ExportedProviderStatusResolver = class {
|
|
|
24330
24895
|
}
|
|
24331
24896
|
};
|
|
24332
24897
|
|
|
24333
|
-
// bazel-out/
|
|
24898
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/host_directives_resolver.mjs
|
|
24334
24899
|
var EMPTY_ARRAY = [];
|
|
24335
24900
|
var HostDirectivesResolver = class {
|
|
24336
24901
|
constructor(metaReader) {
|
|
@@ -24391,10 +24956,10 @@ function resolveOutput(bindingName) {
|
|
|
24391
24956
|
return bindingName;
|
|
24392
24957
|
}
|
|
24393
24958
|
|
|
24394
|
-
// bazel-out/
|
|
24959
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
|
|
24395
24960
|
var import_typescript24 = __toESM(require("typescript"), 1);
|
|
24396
24961
|
|
|
24397
|
-
// bazel-out/
|
|
24962
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/dynamic.mjs
|
|
24398
24963
|
var DynamicValue = class {
|
|
24399
24964
|
constructor(node, reason, code) {
|
|
24400
24965
|
this.node = node;
|
|
@@ -24484,7 +25049,7 @@ var DynamicValue = class {
|
|
|
24484
25049
|
}
|
|
24485
25050
|
};
|
|
24486
25051
|
|
|
24487
|
-
// bazel-out/
|
|
25052
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/result.mjs
|
|
24488
25053
|
var ResolvedModule = class {
|
|
24489
25054
|
constructor(exports, evaluate) {
|
|
24490
25055
|
this.exports = exports;
|
|
@@ -24514,7 +25079,7 @@ var EnumValue = class {
|
|
|
24514
25079
|
var KnownFn = class {
|
|
24515
25080
|
};
|
|
24516
25081
|
|
|
24517
|
-
// bazel-out/
|
|
25082
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
|
|
24518
25083
|
function describeResolvedType(value, maxDepth = 1) {
|
|
24519
25084
|
var _a2, _b2;
|
|
24520
25085
|
if (value === null) {
|
|
@@ -24643,10 +25208,10 @@ function getContainerNode(node) {
|
|
|
24643
25208
|
return node.getSourceFile();
|
|
24644
25209
|
}
|
|
24645
25210
|
|
|
24646
|
-
// bazel-out/
|
|
25211
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
24647
25212
|
var import_typescript25 = __toESM(require("typescript"), 1);
|
|
24648
25213
|
|
|
24649
|
-
// bazel-out/
|
|
25214
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/builtin.mjs
|
|
24650
25215
|
var ArraySliceBuiltinFn = class extends KnownFn {
|
|
24651
25216
|
constructor(lhs) {
|
|
24652
25217
|
super();
|
|
@@ -24698,14 +25263,14 @@ var StringConcatBuiltinFn = class extends KnownFn {
|
|
|
24698
25263
|
}
|
|
24699
25264
|
};
|
|
24700
25265
|
|
|
24701
|
-
// bazel-out/
|
|
25266
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/synthetic.mjs
|
|
24702
25267
|
var SyntheticValue = class {
|
|
24703
25268
|
constructor(value) {
|
|
24704
25269
|
this.value = value;
|
|
24705
25270
|
}
|
|
24706
25271
|
};
|
|
24707
25272
|
|
|
24708
|
-
// bazel-out/
|
|
25273
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
24709
25274
|
function literalBinaryOp(op) {
|
|
24710
25275
|
return { op, literal: true };
|
|
24711
25276
|
}
|
|
@@ -25283,7 +25848,7 @@ function getOriginalKeywordKind(identifier) {
|
|
|
25283
25848
|
return typeof import_typescript25.default.identifierToKeywordKind === "function" ? import_typescript25.default.identifierToKeywordKind(identifier) : identifier.originalKeywordKind;
|
|
25284
25849
|
}
|
|
25285
25850
|
|
|
25286
|
-
// bazel-out/
|
|
25851
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interface.mjs
|
|
25287
25852
|
var PartialEvaluator = class {
|
|
25288
25853
|
constructor(host, checker, dependencyTracker) {
|
|
25289
25854
|
this.host = host;
|
|
@@ -25303,7 +25868,7 @@ var PartialEvaluator = class {
|
|
|
25303
25868
|
}
|
|
25304
25869
|
};
|
|
25305
25870
|
|
|
25306
|
-
// bazel-out/
|
|
25871
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
|
|
25307
25872
|
function makeDuplicateDeclarationError(node, data, kind) {
|
|
25308
25873
|
const context = [];
|
|
25309
25874
|
for (const decl of data) {
|
|
@@ -25499,7 +26064,7 @@ function getInheritedUndecoratedCtorDiagnostic(node, baseClass, kind) {
|
|
|
25499
26064
|
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}.`);
|
|
25500
26065
|
}
|
|
25501
26066
|
|
|
25502
|
-
// bazel-out/
|
|
26067
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/evaluation.mjs
|
|
25503
26068
|
var import_typescript29 = __toESM(require("typescript"), 1);
|
|
25504
26069
|
function resolveEnumValue(evaluator, metadata, field, enumSymbolName) {
|
|
25505
26070
|
let resolved = null;
|
|
@@ -25532,7 +26097,7 @@ function resolveLiteral(decorator, literalCache) {
|
|
|
25532
26097
|
return meta;
|
|
25533
26098
|
}
|
|
25534
26099
|
|
|
25535
|
-
// bazel-out/
|
|
26100
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/factory.mjs
|
|
25536
26101
|
function compileNgFactoryDefField(metadata) {
|
|
25537
26102
|
const res = compileFactoryFunction(metadata);
|
|
25538
26103
|
return { name: "\u0275fac", initializer: res.expression, statements: res.statements, type: res.type };
|
|
@@ -25542,7 +26107,7 @@ function compileDeclareFactory(metadata) {
|
|
|
25542
26107
|
return { name: "\u0275fac", initializer: res.expression, statements: res.statements, type: res.type };
|
|
25543
26108
|
}
|
|
25544
26109
|
|
|
25545
|
-
// bazel-out/
|
|
26110
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/injectable_registry.mjs
|
|
25546
26111
|
var InjectableClassRegistry = class {
|
|
25547
26112
|
constructor(host, isCore) {
|
|
25548
26113
|
this.host = host;
|
|
@@ -25568,7 +26133,7 @@ var InjectableClassRegistry = class {
|
|
|
25568
26133
|
}
|
|
25569
26134
|
};
|
|
25570
26135
|
|
|
25571
|
-
// bazel-out/
|
|
26136
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/metadata.mjs
|
|
25572
26137
|
var import_typescript30 = __toESM(require("typescript"), 1);
|
|
25573
26138
|
function extractClassMetadata(clazz, reflection, isCore, annotateForClosureCompiler, angularDecoratorTransform = (dec) => dec) {
|
|
25574
26139
|
if (!reflection.isClass(clazz)) {
|
|
@@ -25654,13 +26219,13 @@ function removeIdentifierReferences(node, name) {
|
|
|
25654
26219
|
return result.transformed[0];
|
|
25655
26220
|
}
|
|
25656
26221
|
|
|
25657
|
-
// bazel-out/
|
|
26222
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/references_registry.mjs
|
|
25658
26223
|
var NoopReferencesRegistry = class {
|
|
25659
26224
|
add(source, ...references) {
|
|
25660
26225
|
}
|
|
25661
26226
|
};
|
|
25662
26227
|
|
|
25663
|
-
// bazel-out/
|
|
26228
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/schema.mjs
|
|
25664
26229
|
function extractSchemas(rawExpr, evaluator, context) {
|
|
25665
26230
|
const schemas = [];
|
|
25666
26231
|
const result = evaluator.evaluate(rawExpr);
|
|
@@ -25689,7 +26254,7 @@ function extractSchemas(rawExpr, evaluator, context) {
|
|
|
25689
26254
|
return schemas;
|
|
25690
26255
|
}
|
|
25691
26256
|
|
|
25692
|
-
// bazel-out/
|
|
26257
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/input_transforms.mjs
|
|
25693
26258
|
function compileInputTransformFields(inputs) {
|
|
25694
26259
|
const extraFields = [];
|
|
25695
26260
|
for (const input of inputs) {
|
|
@@ -25705,10 +26270,10 @@ function compileInputTransformFields(inputs) {
|
|
|
25705
26270
|
return extraFields;
|
|
25706
26271
|
}
|
|
25707
26272
|
|
|
25708
|
-
// bazel-out/
|
|
26273
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
25709
26274
|
var import_typescript51 = __toESM(require("typescript"), 1);
|
|
25710
26275
|
|
|
25711
|
-
// bazel-out/
|
|
26276
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.mjs
|
|
25712
26277
|
var import_typescript31 = __toESM(require("typescript"), 1);
|
|
25713
26278
|
var SemanticSymbol = class {
|
|
25714
26279
|
constructor(decl) {
|
|
@@ -25724,7 +26289,7 @@ function getSymbolIdentifier(decl) {
|
|
|
25724
26289
|
return decl.name.text;
|
|
25725
26290
|
}
|
|
25726
26291
|
|
|
25727
|
-
// bazel-out/
|
|
26292
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.mjs
|
|
25728
26293
|
var OpaqueSymbol = class extends SemanticSymbol {
|
|
25729
26294
|
isPublicApiAffected() {
|
|
25730
26295
|
return false;
|
|
@@ -25866,10 +26431,10 @@ function getImportPath(expr) {
|
|
|
25866
26431
|
}
|
|
25867
26432
|
}
|
|
25868
26433
|
|
|
25869
|
-
// bazel-out/
|
|
26434
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
25870
26435
|
var import_typescript32 = __toESM(require("typescript"), 1);
|
|
25871
26436
|
|
|
25872
|
-
// bazel-out/
|
|
26437
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/util.mjs
|
|
25873
26438
|
function isSymbolEqual(a, b) {
|
|
25874
26439
|
if (a.decl === b.decl) {
|
|
25875
26440
|
return true;
|
|
@@ -25919,7 +26484,7 @@ function isSetEqual(a, b, equalityTester = referenceEquality) {
|
|
|
25919
26484
|
return true;
|
|
25920
26485
|
}
|
|
25921
26486
|
|
|
25922
|
-
// bazel-out/
|
|
26487
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
25923
26488
|
function extractSemanticTypeParameters(node) {
|
|
25924
26489
|
if (!import_typescript32.default.isClassDeclaration(node) || node.typeParameters === void 0) {
|
|
25925
26490
|
return null;
|
|
@@ -25939,7 +26504,7 @@ function isTypeParameterEqual(a, b) {
|
|
|
25939
26504
|
return a.hasGenericTypeBound === b.hasGenericTypeBound;
|
|
25940
26505
|
}
|
|
25941
26506
|
|
|
25942
|
-
// bazel-out/
|
|
26507
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/api.mjs
|
|
25943
26508
|
var PerfPhase;
|
|
25944
26509
|
(function(PerfPhase2) {
|
|
25945
26510
|
PerfPhase2[PerfPhase2["Unaccounted"] = 0] = "Unaccounted";
|
|
@@ -26006,7 +26571,7 @@ var PerfCheckpoint;
|
|
|
26006
26571
|
PerfCheckpoint2[PerfCheckpoint2["LAST"] = 9] = "LAST";
|
|
26007
26572
|
})(PerfCheckpoint || (PerfCheckpoint = {}));
|
|
26008
26573
|
|
|
26009
|
-
// bazel-out/
|
|
26574
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/noop.mjs
|
|
26010
26575
|
var NoopPerfRecorder = class {
|
|
26011
26576
|
eventCount() {
|
|
26012
26577
|
}
|
|
@@ -26023,7 +26588,7 @@ var NoopPerfRecorder = class {
|
|
|
26023
26588
|
};
|
|
26024
26589
|
var NOOP_PERF_RECORDER = new NoopPerfRecorder();
|
|
26025
26590
|
|
|
26026
|
-
// bazel-out/
|
|
26591
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/clock.mjs
|
|
26027
26592
|
function mark() {
|
|
26028
26593
|
return process.hrtime();
|
|
26029
26594
|
}
|
|
@@ -26032,7 +26597,7 @@ function timeSinceInMicros(mark2) {
|
|
|
26032
26597
|
return delta[0] * 1e6 + Math.floor(delta[1] / 1e3);
|
|
26033
26598
|
}
|
|
26034
26599
|
|
|
26035
|
-
// bazel-out/
|
|
26600
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/recorder.mjs
|
|
26036
26601
|
var ActivePerfRecorder = class {
|
|
26037
26602
|
static zeroedToNow() {
|
|
26038
26603
|
return new ActivePerfRecorder(mark());
|
|
@@ -26126,14 +26691,14 @@ var DelegatingPerfRecorder = class {
|
|
|
26126
26691
|
}
|
|
26127
26692
|
};
|
|
26128
26693
|
|
|
26129
|
-
// bazel-out/
|
|
26694
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/api.mjs
|
|
26130
26695
|
var ComponentScopeKind;
|
|
26131
26696
|
(function(ComponentScopeKind2) {
|
|
26132
26697
|
ComponentScopeKind2[ComponentScopeKind2["NgModule"] = 0] = "NgModule";
|
|
26133
26698
|
ComponentScopeKind2[ComponentScopeKind2["Standalone"] = 1] = "Standalone";
|
|
26134
26699
|
})(ComponentScopeKind || (ComponentScopeKind = {}));
|
|
26135
26700
|
|
|
26136
|
-
// bazel-out/
|
|
26701
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/component_scope.mjs
|
|
26137
26702
|
var CompoundComponentScopeReader = class {
|
|
26138
26703
|
constructor(readers) {
|
|
26139
26704
|
this.readers = readers;
|
|
@@ -26158,7 +26723,7 @@ var CompoundComponentScopeReader = class {
|
|
|
26158
26723
|
}
|
|
26159
26724
|
};
|
|
26160
26725
|
|
|
26161
|
-
// bazel-out/
|
|
26726
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/dependency.mjs
|
|
26162
26727
|
var MetadataDtsModuleScopeResolver = class {
|
|
26163
26728
|
constructor(dtsMetaReader, aliasingHost) {
|
|
26164
26729
|
this.dtsMetaReader = dtsMetaReader;
|
|
@@ -26233,10 +26798,10 @@ var MetadataDtsModuleScopeResolver = class {
|
|
|
26233
26798
|
}
|
|
26234
26799
|
};
|
|
26235
26800
|
|
|
26236
|
-
// bazel-out/
|
|
26801
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
|
|
26237
26802
|
var import_typescript33 = __toESM(require("typescript"), 1);
|
|
26238
26803
|
|
|
26239
|
-
// bazel-out/
|
|
26804
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/util.mjs
|
|
26240
26805
|
function getDiagnosticNode(ref, rawExpr) {
|
|
26241
26806
|
return rawExpr !== null ? ref.getOriginForDiagnostics(rawExpr) : ref.node.name;
|
|
26242
26807
|
}
|
|
@@ -26259,7 +26824,7 @@ function makeUnknownComponentImportDiagnostic(ref, rawExpr) {
|
|
|
26259
26824
|
return makeDiagnostic(ErrorCode.COMPONENT_UNKNOWN_IMPORT, getDiagnosticNode(ref, rawExpr), `Component imports must be standalone components, directives, pipes, or must be NgModules.`);
|
|
26260
26825
|
}
|
|
26261
26826
|
|
|
26262
|
-
// bazel-out/
|
|
26827
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
|
|
26263
26828
|
var LocalModuleScopeRegistry = class {
|
|
26264
26829
|
constructor(localReader, fullReader, dependencyScopeReader, refEmitter, aliasingHost) {
|
|
26265
26830
|
this.localReader = localReader;
|
|
@@ -26598,7 +27163,7 @@ function reexportCollision(module3, refA, refB) {
|
|
|
26598
27163
|
]);
|
|
26599
27164
|
}
|
|
26600
27165
|
|
|
26601
|
-
// bazel-out/
|
|
27166
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/typecheck.mjs
|
|
26602
27167
|
var import_typescript35 = __toESM(require("typescript"), 1);
|
|
26603
27168
|
var TypeCheckScopeRegistry = class {
|
|
26604
27169
|
constructor(scopeReader, metaReader, hostDirectivesResolver) {
|
|
@@ -26666,7 +27231,7 @@ var TypeCheckScopeRegistry = class {
|
|
|
26666
27231
|
}
|
|
26667
27232
|
};
|
|
26668
27233
|
|
|
26669
|
-
// bazel-out/
|
|
27234
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/api.mjs
|
|
26670
27235
|
var CompilationMode;
|
|
26671
27236
|
(function(CompilationMode2) {
|
|
26672
27237
|
CompilationMode2[CompilationMode2["FULL"] = 0] = "FULL";
|
|
@@ -26680,7 +27245,7 @@ var HandlerPrecedence;
|
|
|
26680
27245
|
HandlerPrecedence2[HandlerPrecedence2["WEAK"] = 2] = "WEAK";
|
|
26681
27246
|
})(HandlerPrecedence || (HandlerPrecedence = {}));
|
|
26682
27247
|
|
|
26683
|
-
// bazel-out/
|
|
27248
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/alias.mjs
|
|
26684
27249
|
var import_typescript36 = __toESM(require("typescript"), 1);
|
|
26685
27250
|
function aliasTransformFactory(exportStatements) {
|
|
26686
27251
|
return () => {
|
|
@@ -26703,10 +27268,10 @@ function aliasTransformFactory(exportStatements) {
|
|
|
26703
27268
|
};
|
|
26704
27269
|
}
|
|
26705
27270
|
|
|
26706
|
-
// bazel-out/
|
|
27271
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
26707
27272
|
var import_typescript37 = __toESM(require("typescript"), 1);
|
|
26708
27273
|
|
|
26709
|
-
// bazel-out/
|
|
27274
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/trait.mjs
|
|
26710
27275
|
var TraitState;
|
|
26711
27276
|
(function(TraitState2) {
|
|
26712
27277
|
TraitState2[TraitState2["Pending"] = 0] = "Pending";
|
|
@@ -26763,7 +27328,7 @@ var TraitImpl = class {
|
|
|
26763
27328
|
}
|
|
26764
27329
|
};
|
|
26765
27330
|
|
|
26766
|
-
// bazel-out/
|
|
27331
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
26767
27332
|
var TraitCompiler = class {
|
|
26768
27333
|
constructor(handlers, reflector, perf, incrementalBuild, compileNonExportedClasses, compilationMode, dtsTransforms, semanticDepGraphUpdater, sourceFileTypeIdentifier) {
|
|
26769
27334
|
this.handlers = handlers;
|
|
@@ -26795,7 +27360,7 @@ var TraitCompiler = class {
|
|
|
26795
27360
|
return void 0;
|
|
26796
27361
|
}
|
|
26797
27362
|
const promises = [];
|
|
26798
|
-
const priorWork = this.incrementalBuild.priorAnalysisFor(sf);
|
|
27363
|
+
const priorWork = this.compilationMode !== CompilationMode.LOCAL ? this.incrementalBuild.priorAnalysisFor(sf) : null;
|
|
26799
27364
|
if (priorWork !== null) {
|
|
26800
27365
|
this.perf.eventCount(PerfEvent.SourceFileReuseAnalysis);
|
|
26801
27366
|
if (priorWork.length > 0) {
|
|
@@ -26991,13 +27556,16 @@ var TraitCompiler = class {
|
|
|
26991
27556
|
}
|
|
26992
27557
|
}
|
|
26993
27558
|
const symbol = this.makeSymbolForTrait(trait.handler, clazz, (_a2 = result.analysis) != null ? _a2 : null);
|
|
26994
|
-
if (result.analysis !== void 0 && trait.handler.register !== void 0) {
|
|
27559
|
+
if (this.compilationMode !== CompilationMode.LOCAL && result.analysis !== void 0 && trait.handler.register !== void 0) {
|
|
26995
27560
|
trait.handler.register(clazz, result.analysis);
|
|
26996
27561
|
}
|
|
26997
27562
|
trait = trait.toAnalyzed((_b2 = result.analysis) != null ? _b2 : null, (_c2 = result.diagnostics) != null ? _c2 : null, symbol);
|
|
26998
27563
|
}
|
|
26999
27564
|
resolve() {
|
|
27000
27565
|
var _a2, _b2;
|
|
27566
|
+
if (this.compilationMode === CompilationMode.LOCAL) {
|
|
27567
|
+
return;
|
|
27568
|
+
}
|
|
27001
27569
|
const classes = this.classes.keys();
|
|
27002
27570
|
for (const clazz of classes) {
|
|
27003
27571
|
const record = this.classes.get(clazz);
|
|
@@ -27062,6 +27630,9 @@ var TraitCompiler = class {
|
|
|
27062
27630
|
}
|
|
27063
27631
|
}
|
|
27064
27632
|
extendedTemplateCheck(sf, extendedTemplateChecker) {
|
|
27633
|
+
if (this.compilationMode === CompilationMode.LOCAL) {
|
|
27634
|
+
return [];
|
|
27635
|
+
}
|
|
27065
27636
|
const classes = this.fileToClasses.get(sf);
|
|
27066
27637
|
if (classes === void 0) {
|
|
27067
27638
|
return [];
|
|
@@ -27112,7 +27683,7 @@ var TraitCompiler = class {
|
|
|
27112
27683
|
}
|
|
27113
27684
|
}
|
|
27114
27685
|
updateResources(clazz) {
|
|
27115
|
-
if (!this.reflector.isClass(clazz) || !this.classes.has(clazz)) {
|
|
27686
|
+
if (this.compilationMode === CompilationMode.LOCAL || !this.reflector.isClass(clazz) || !this.classes.has(clazz)) {
|
|
27116
27687
|
return;
|
|
27117
27688
|
}
|
|
27118
27689
|
const record = this.classes.get(clazz);
|
|
@@ -27131,14 +27702,21 @@ var TraitCompiler = class {
|
|
|
27131
27702
|
const record = this.classes.get(original);
|
|
27132
27703
|
let res = [];
|
|
27133
27704
|
for (const trait of record.traits) {
|
|
27134
|
-
if (trait.state !== TraitState.Resolved || containsErrors(trait.analysisDiagnostics) || containsErrors(trait.resolveDiagnostics)) {
|
|
27135
|
-
continue;
|
|
27136
|
-
}
|
|
27137
27705
|
let compileRes;
|
|
27138
|
-
if (this.compilationMode === CompilationMode.
|
|
27139
|
-
|
|
27706
|
+
if (this.compilationMode === CompilationMode.LOCAL) {
|
|
27707
|
+
if (trait.state !== TraitState.Analyzed || trait.analysis === null || containsErrors(trait.analysisDiagnostics)) {
|
|
27708
|
+
continue;
|
|
27709
|
+
}
|
|
27710
|
+
compileRes = trait.handler.compileLocal(clazz, trait.analysis, constantPool);
|
|
27140
27711
|
} else {
|
|
27141
|
-
|
|
27712
|
+
if (trait.state !== TraitState.Resolved || containsErrors(trait.analysisDiagnostics) || containsErrors(trait.resolveDiagnostics)) {
|
|
27713
|
+
continue;
|
|
27714
|
+
}
|
|
27715
|
+
if (this.compilationMode === CompilationMode.PARTIAL && trait.handler.compilePartial !== void 0) {
|
|
27716
|
+
compileRes = trait.handler.compilePartial(clazz, trait.analysis, trait.resolution);
|
|
27717
|
+
} else {
|
|
27718
|
+
compileRes = trait.handler.compileFull(clazz, trait.analysis, trait.resolution, constantPool);
|
|
27719
|
+
}
|
|
27142
27720
|
}
|
|
27143
27721
|
const compileMatchRes = compileRes;
|
|
27144
27722
|
if (Array.isArray(compileMatchRes)) {
|
|
@@ -27162,7 +27740,7 @@ var TraitCompiler = class {
|
|
|
27162
27740
|
const record = this.classes.get(original);
|
|
27163
27741
|
const decorators = [];
|
|
27164
27742
|
for (const trait of record.traits) {
|
|
27165
|
-
if (trait.state !== TraitState.Resolved) {
|
|
27743
|
+
if (this.compilationMode !== CompilationMode.LOCAL && trait.state !== TraitState.Resolved) {
|
|
27166
27744
|
continue;
|
|
27167
27745
|
}
|
|
27168
27746
|
if (trait.detected.trigger !== null && import_typescript37.default.isDecorator(trait.detected.trigger)) {
|
|
@@ -27198,10 +27776,10 @@ function containsErrors(diagnostics) {
|
|
|
27198
27776
|
return diagnostics !== null && diagnostics.some((diag) => diag.category === import_typescript37.default.DiagnosticCategory.Error);
|
|
27199
27777
|
}
|
|
27200
27778
|
|
|
27201
|
-
// bazel-out/
|
|
27779
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
|
|
27202
27780
|
var import_typescript43 = __toESM(require("typescript"), 1);
|
|
27203
27781
|
|
|
27204
|
-
// bazel-out/
|
|
27782
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/context.mjs
|
|
27205
27783
|
var Context = class {
|
|
27206
27784
|
constructor(isStatement) {
|
|
27207
27785
|
this.isStatement = isStatement;
|
|
@@ -27214,7 +27792,7 @@ var Context = class {
|
|
|
27214
27792
|
}
|
|
27215
27793
|
};
|
|
27216
27794
|
|
|
27217
|
-
// bazel-out/
|
|
27795
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager.mjs
|
|
27218
27796
|
var import_typescript39 = __toESM(require("typescript"), 1);
|
|
27219
27797
|
var ImportManager = class {
|
|
27220
27798
|
constructor(rewriter = new NoopImportRewriter(), prefix = "i") {
|
|
@@ -27250,7 +27828,7 @@ var ImportManager = class {
|
|
|
27250
27828
|
}
|
|
27251
27829
|
};
|
|
27252
27830
|
|
|
27253
|
-
// bazel-out/
|
|
27831
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/translator.mjs
|
|
27254
27832
|
var UNARY_OPERATORS2 = /* @__PURE__ */ new Map([
|
|
27255
27833
|
[UnaryOperator.Minus, "-"],
|
|
27256
27834
|
[UnaryOperator.Plus, "+"]
|
|
@@ -27481,7 +28059,7 @@ function createRange(span) {
|
|
|
27481
28059
|
};
|
|
27482
28060
|
}
|
|
27483
28061
|
|
|
27484
|
-
// bazel-out/
|
|
28062
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
|
|
27485
28063
|
var import_typescript40 = __toESM(require("typescript"), 1);
|
|
27486
28064
|
function translateType(type, contextFile, reflector, refEmitter, imports) {
|
|
27487
28065
|
return type.visitType(new TypeTranslatorVisitor(imports, contextFile, reflector, refEmitter), new Context(false));
|
|
@@ -27697,7 +28275,7 @@ var TypeTranslatorVisitor = class {
|
|
|
27697
28275
|
}
|
|
27698
28276
|
};
|
|
27699
28277
|
|
|
27700
|
-
// bazel-out/
|
|
28278
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_ast_factory.mjs
|
|
27701
28279
|
var import_typescript41 = __toESM(require("typescript"), 1);
|
|
27702
28280
|
var PureAnnotation;
|
|
27703
28281
|
(function(PureAnnotation2) {
|
|
@@ -27880,7 +28458,7 @@ function attachComments(statement, leadingComments) {
|
|
|
27880
28458
|
}
|
|
27881
28459
|
}
|
|
27882
28460
|
|
|
27883
|
-
// bazel-out/
|
|
28461
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_translator.mjs
|
|
27884
28462
|
function translateExpression(expression, imports, options = {}) {
|
|
27885
28463
|
return expression.visitExpression(new ExpressionTranslatorVisitor(new TypeScriptAstFactory(options.annotateForClosureCompiler === true), imports, options), new Context(false));
|
|
27886
28464
|
}
|
|
@@ -27888,7 +28466,7 @@ function translateStatement(statement, imports, options = {}) {
|
|
|
27888
28466
|
return statement.visitStatement(new ExpressionTranslatorVisitor(new TypeScriptAstFactory(options.annotateForClosureCompiler === true), imports, options), new Context(true));
|
|
27889
28467
|
}
|
|
27890
28468
|
|
|
27891
|
-
// bazel-out/
|
|
28469
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/utils.mjs
|
|
27892
28470
|
var import_typescript42 = __toESM(require("typescript"), 1);
|
|
27893
28471
|
function addImports(importManager, sf, extraStatements = []) {
|
|
27894
28472
|
const addedImports = importManager.getAllImports(sf.fileName).map((i) => {
|
|
@@ -27924,7 +28502,7 @@ function isImportStatement(stmt) {
|
|
|
27924
28502
|
return import_typescript42.default.isImportDeclaration(stmt) || import_typescript42.default.isImportEqualsDeclaration(stmt) || import_typescript42.default.isNamespaceImport(stmt);
|
|
27925
28503
|
}
|
|
27926
28504
|
|
|
27927
|
-
// bazel-out/
|
|
28505
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
|
|
27928
28506
|
var DtsTransformRegistry = class {
|
|
27929
28507
|
constructor() {
|
|
27930
28508
|
this.ivyDeclarationTransforms = /* @__PURE__ */ new Map();
|
|
@@ -28071,10 +28649,10 @@ function markForEmitAsSingleLine(node) {
|
|
|
28071
28649
|
import_typescript43.default.forEachChild(node, markForEmitAsSingleLine);
|
|
28072
28650
|
}
|
|
28073
28651
|
|
|
28074
|
-
// bazel-out/
|
|
28652
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
28075
28653
|
var import_typescript45 = __toESM(require("typescript"), 1);
|
|
28076
28654
|
|
|
28077
|
-
// bazel-out/
|
|
28655
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/visitor.mjs
|
|
28078
28656
|
var import_typescript44 = __toESM(require("typescript"), 1);
|
|
28079
28657
|
function visit(node, visitor, context) {
|
|
28080
28658
|
return visitor._visit(node, context);
|
|
@@ -28135,7 +28713,7 @@ var Visitor = class {
|
|
|
28135
28713
|
}
|
|
28136
28714
|
};
|
|
28137
28715
|
|
|
28138
|
-
// bazel-out/
|
|
28716
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
28139
28717
|
var NO_DECORATORS = /* @__PURE__ */ new Set();
|
|
28140
28718
|
var CLOSURE_FILE_OVERVIEW_REGEXP = /\s+@fileoverview\s+/i;
|
|
28141
28719
|
function ivyTransformFactory(compilation, reflector, importRewriter, defaultImportTracker, perf, isCore, isClosureCompilerEnabled) {
|
|
@@ -28346,7 +28924,7 @@ function nodeArrayFromDecoratorsArray(decorators) {
|
|
|
28346
28924
|
return array;
|
|
28347
28925
|
}
|
|
28348
28926
|
|
|
28349
|
-
// bazel-out/
|
|
28927
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
|
|
28350
28928
|
var import_typescript46 = __toESM(require("typescript"), 1);
|
|
28351
28929
|
var EMPTY_OBJECT = {};
|
|
28352
28930
|
var QUERY_TYPES = /* @__PURE__ */ new Set([
|
|
@@ -28909,7 +29487,7 @@ function toR3InputMetadata(mapping) {
|
|
|
28909
29487
|
};
|
|
28910
29488
|
}
|
|
28911
29489
|
|
|
28912
|
-
// bazel-out/
|
|
29490
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/symbol.mjs
|
|
28913
29491
|
var DirectiveSymbol = class extends SemanticSymbol {
|
|
28914
29492
|
constructor(decl, selector, inputs, outputs, exportAs, typeCheckMeta, typeParameters) {
|
|
28915
29493
|
super(decl);
|
|
@@ -28989,7 +29567,7 @@ function isBaseClassEqual(current, previous) {
|
|
|
28989
29567
|
return isSymbolEqual(current, previous);
|
|
28990
29568
|
}
|
|
28991
29569
|
|
|
28992
|
-
// bazel-out/
|
|
29570
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
|
|
28993
29571
|
var FIELD_DECORATORS = [
|
|
28994
29572
|
"Input",
|
|
28995
29573
|
"Output",
|
|
@@ -29140,6 +29718,13 @@ var DirectiveDecoratorHandler = class {
|
|
|
29140
29718
|
const classMetadata = analysis.classMetadata !== null ? compileDeclareClassMetadata(analysis.classMetadata).toStmt() : null;
|
|
29141
29719
|
return compileResults(fac, def, classMetadata, "\u0275dir", inputTransformFields);
|
|
29142
29720
|
}
|
|
29721
|
+
compileLocal(node, analysis, pool) {
|
|
29722
|
+
const fac = compileNgFactoryDefField(toFactoryMetadata(analysis.meta, FactoryTarget.Directive));
|
|
29723
|
+
const def = compileDirectiveFromMetadata(analysis.meta, pool, makeBindingParser());
|
|
29724
|
+
const inputTransformFields = compileInputTransformFields(analysis.inputs);
|
|
29725
|
+
const classMetadata = analysis.classMetadata !== null ? compileClassMetadata(analysis.classMetadata).toStmt() : null;
|
|
29726
|
+
return compileResults(fac, def, classMetadata, "\u0275dir", inputTransformFields);
|
|
29727
|
+
}
|
|
29143
29728
|
findClassFieldWithAngularFeatures(node) {
|
|
29144
29729
|
return this.reflector.getMembersOfClass(node).find((member) => {
|
|
29145
29730
|
if (!member.isStatic && member.kind === ClassMemberKind.Method && LIFECYCLE_HOOKS.has(member.name)) {
|
|
@@ -29153,10 +29738,10 @@ var DirectiveDecoratorHandler = class {
|
|
|
29153
29738
|
}
|
|
29154
29739
|
};
|
|
29155
29740
|
|
|
29156
|
-
// bazel-out/
|
|
29741
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
29157
29742
|
var import_typescript48 = __toESM(require("typescript"), 1);
|
|
29158
29743
|
|
|
29159
|
-
// bazel-out/
|
|
29744
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/module_with_providers.mjs
|
|
29160
29745
|
var import_typescript47 = __toESM(require("typescript"), 1);
|
|
29161
29746
|
function createModuleWithProvidersResolver(reflector, isCore) {
|
|
29162
29747
|
function _reflectModuleFromTypeParam(type, node) {
|
|
@@ -29223,7 +29808,7 @@ function isResolvedModuleWithProviders(sv) {
|
|
|
29223
29808
|
return typeof sv.value === "object" && sv.value != null && sv.value.hasOwnProperty("ngModule") && sv.value.hasOwnProperty("mwpCall");
|
|
29224
29809
|
}
|
|
29225
29810
|
|
|
29226
|
-
// bazel-out/
|
|
29811
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
29227
29812
|
var NgModuleSymbol = class extends SemanticSymbol {
|
|
29228
29813
|
constructor(decl, hasProviders) {
|
|
29229
29814
|
super(decl);
|
|
@@ -29290,7 +29875,7 @@ var NgModuleSymbol = class extends SemanticSymbol {
|
|
|
29290
29875
|
}
|
|
29291
29876
|
};
|
|
29292
29877
|
var NgModuleDecoratorHandler = class {
|
|
29293
|
-
constructor(reflector, evaluator, metaReader, metaRegistry, scopeRegistry, referencesRegistry, exportedProviderStatusResolver, semanticDepGraphUpdater, isCore, refEmitter, annotateForClosureCompiler, onlyPublishPublicTypings, injectableRegistry, perf, includeClassMetadata) {
|
|
29878
|
+
constructor(reflector, evaluator, metaReader, metaRegistry, scopeRegistry, referencesRegistry, exportedProviderStatusResolver, semanticDepGraphUpdater, isCore, refEmitter, annotateForClosureCompiler, onlyPublishPublicTypings, injectableRegistry, perf, includeClassMetadata, includeSelectorScope, compilationMode) {
|
|
29294
29879
|
this.reflector = reflector;
|
|
29295
29880
|
this.evaluator = evaluator;
|
|
29296
29881
|
this.metaReader = metaReader;
|
|
@@ -29306,6 +29891,8 @@ var NgModuleDecoratorHandler = class {
|
|
|
29306
29891
|
this.injectableRegistry = injectableRegistry;
|
|
29307
29892
|
this.perf = perf;
|
|
29308
29893
|
this.includeClassMetadata = includeClassMetadata;
|
|
29894
|
+
this.includeSelectorScope = includeSelectorScope;
|
|
29895
|
+
this.compilationMode = compilationMode;
|
|
29309
29896
|
this.precedence = HandlerPrecedence.PRIMARY;
|
|
29310
29897
|
this.name = "NgModuleDecoratorHandler";
|
|
29311
29898
|
}
|
|
@@ -29325,7 +29912,7 @@ var NgModuleDecoratorHandler = class {
|
|
|
29325
29912
|
}
|
|
29326
29913
|
}
|
|
29327
29914
|
analyze(node, decorator) {
|
|
29328
|
-
var _a2;
|
|
29915
|
+
var _a2, _b2, _c2, _d2, _e2;
|
|
29329
29916
|
this.perf.eventCount(PerfEvent.AnalyzeNgModule);
|
|
29330
29917
|
const name = node.name.text;
|
|
29331
29918
|
if (decorator.args === null || decorator.args.length > 1) {
|
|
@@ -29345,9 +29932,8 @@ var NgModuleDecoratorHandler = class {
|
|
|
29345
29932
|
]);
|
|
29346
29933
|
const diagnostics = [];
|
|
29347
29934
|
let declarationRefs = [];
|
|
29348
|
-
|
|
29349
|
-
if (
|
|
29350
|
-
rawDeclarations = ngModule.get("declarations");
|
|
29935
|
+
const rawDeclarations = (_a2 = ngModule.get("declarations")) != null ? _a2 : null;
|
|
29936
|
+
if (this.compilationMode !== CompilationMode.LOCAL && rawDeclarations !== null) {
|
|
29351
29937
|
const declarationMeta = this.evaluator.evaluate(rawDeclarations, forwardRefResolver);
|
|
29352
29938
|
declarationRefs = this.resolveTypeList(rawDeclarations, declarationMeta, name, "declarations", 0).references;
|
|
29353
29939
|
for (const ref of declarationRefs) {
|
|
@@ -29361,33 +29947,31 @@ var NgModuleDecoratorHandler = class {
|
|
|
29361
29947
|
return { diagnostics };
|
|
29362
29948
|
}
|
|
29363
29949
|
let importRefs = [];
|
|
29364
|
-
let rawImports = null;
|
|
29365
|
-
if (
|
|
29366
|
-
rawImports = ngModule.get("imports");
|
|
29950
|
+
let rawImports = (_b2 = ngModule.get("imports")) != null ? _b2 : null;
|
|
29951
|
+
if (this.compilationMode !== CompilationMode.LOCAL && rawImports !== null) {
|
|
29367
29952
|
const importsMeta = this.evaluator.evaluate(rawImports, moduleResolvers);
|
|
29368
29953
|
importRefs = this.resolveTypeList(rawImports, importsMeta, name, "imports", 0).references;
|
|
29369
29954
|
}
|
|
29370
29955
|
let exportRefs = [];
|
|
29371
|
-
|
|
29372
|
-
if (
|
|
29373
|
-
rawExports = ngModule.get("exports");
|
|
29956
|
+
const rawExports = (_c2 = ngModule.get("exports")) != null ? _c2 : null;
|
|
29957
|
+
if (this.compilationMode !== CompilationMode.LOCAL && rawExports !== null) {
|
|
29374
29958
|
const exportsMeta = this.evaluator.evaluate(rawExports, moduleResolvers);
|
|
29375
29959
|
exportRefs = this.resolveTypeList(rawExports, exportsMeta, name, "exports", 0).references;
|
|
29376
29960
|
this.referencesRegistry.add(node, ...exportRefs);
|
|
29377
29961
|
}
|
|
29378
29962
|
let bootstrapRefs = [];
|
|
29379
|
-
|
|
29380
|
-
|
|
29381
|
-
const bootstrapMeta = this.evaluator.evaluate(
|
|
29382
|
-
bootstrapRefs = this.resolveTypeList(
|
|
29963
|
+
const rawBootstrap = (_d2 = ngModule.get("bootstrap")) != null ? _d2 : null;
|
|
29964
|
+
if (this.compilationMode !== CompilationMode.LOCAL && rawBootstrap !== null) {
|
|
29965
|
+
const bootstrapMeta = this.evaluator.evaluate(rawBootstrap, forwardRefResolver);
|
|
29966
|
+
bootstrapRefs = this.resolveTypeList(rawBootstrap, bootstrapMeta, name, "bootstrap", 0).references;
|
|
29383
29967
|
for (const ref of bootstrapRefs) {
|
|
29384
29968
|
const dirMeta = this.metaReader.getDirectiveMetadata(ref);
|
|
29385
29969
|
if (dirMeta == null ? void 0 : dirMeta.isStandalone) {
|
|
29386
|
-
diagnostics.push(makeStandaloneBootstrapDiagnostic(node, ref,
|
|
29970
|
+
diagnostics.push(makeStandaloneBootstrapDiagnostic(node, ref, rawBootstrap));
|
|
29387
29971
|
}
|
|
29388
29972
|
}
|
|
29389
29973
|
}
|
|
29390
|
-
const schemas = ngModule.has("schemas") ? extractSchemas(ngModule.get("schemas"), this.evaluator, "NgModule") : [];
|
|
29974
|
+
const schemas = this.compilationMode !== CompilationMode.LOCAL && ngModule.has("schemas") ? extractSchemas(ngModule.get("schemas"), this.evaluator, "NgModule") : [];
|
|
29391
29975
|
let id = null;
|
|
29392
29976
|
if (ngModule.has("id")) {
|
|
29393
29977
|
const idExpr = ngModule.get("id");
|
|
@@ -29416,26 +30000,42 @@ var NgModuleDecoratorHandler = class {
|
|
|
29416
30000
|
const isForwardReference = (ref) => isExpressionForwardReference(ref.value, node.name, valueContext);
|
|
29417
30001
|
const containsForwardDecls = bootstrap.some(isForwardReference) || declarations.some(isForwardReference) || imports.some(isForwardReference) || exports.some(isForwardReference);
|
|
29418
30002
|
const type = wrapTypeReference(this.reflector, node);
|
|
29419
|
-
|
|
29420
|
-
|
|
29421
|
-
|
|
29422
|
-
|
|
29423
|
-
|
|
29424
|
-
|
|
29425
|
-
|
|
29426
|
-
|
|
29427
|
-
|
|
29428
|
-
|
|
29429
|
-
|
|
29430
|
-
|
|
29431
|
-
|
|
30003
|
+
let ngModuleMetadata;
|
|
30004
|
+
if (this.compilationMode === CompilationMode.LOCAL) {
|
|
30005
|
+
ngModuleMetadata = {
|
|
30006
|
+
kind: R3NgModuleMetadataKind.Local,
|
|
30007
|
+
type,
|
|
30008
|
+
bootstrapExpression: rawBootstrap ? new WrappedNodeExpr(rawBootstrap) : null,
|
|
30009
|
+
declarationsExpression: rawDeclarations ? new WrappedNodeExpr(rawDeclarations) : null,
|
|
30010
|
+
exportsExpression: rawExports ? new WrappedNodeExpr(rawExports) : null,
|
|
30011
|
+
importsExpression: rawImports ? new WrappedNodeExpr(rawImports) : null,
|
|
30012
|
+
id,
|
|
30013
|
+
selectorScopeMode: R3SelectorScopeMode.SideEffect,
|
|
30014
|
+
schemas: []
|
|
30015
|
+
};
|
|
30016
|
+
} else {
|
|
30017
|
+
ngModuleMetadata = {
|
|
30018
|
+
kind: R3NgModuleMetadataKind.Global,
|
|
30019
|
+
type,
|
|
30020
|
+
bootstrap,
|
|
30021
|
+
declarations,
|
|
30022
|
+
publicDeclarationTypes: this.onlyPublishPublicTypings ? exportedDeclarations : null,
|
|
30023
|
+
exports,
|
|
30024
|
+
imports,
|
|
30025
|
+
includeImportTypes: !this.onlyPublishPublicTypings,
|
|
30026
|
+
containsForwardDecls,
|
|
30027
|
+
id,
|
|
30028
|
+
selectorScopeMode: this.includeSelectorScope ? R3SelectorScopeMode.SideEffect : R3SelectorScopeMode.Omit,
|
|
30029
|
+
schemas: []
|
|
30030
|
+
};
|
|
30031
|
+
}
|
|
29432
30032
|
const rawProviders = ngModule.has("providers") ? ngModule.get("providers") : null;
|
|
29433
30033
|
let wrappedProviders = null;
|
|
29434
30034
|
if (rawProviders !== null && (!import_typescript48.default.isArrayLiteralExpression(rawProviders) || rawProviders.elements.length > 0)) {
|
|
29435
30035
|
wrappedProviders = new WrappedNodeExpr(this.annotateForClosureCompiler ? wrapFunctionExpressionsInParens(rawProviders) : rawProviders);
|
|
29436
30036
|
}
|
|
29437
30037
|
const topLevelImports = [];
|
|
29438
|
-
if (ngModule.has("imports")) {
|
|
30038
|
+
if (this.compilationMode !== CompilationMode.LOCAL && ngModule.has("imports")) {
|
|
29439
30039
|
const rawImports2 = unwrapExpression(ngModule.get("imports"));
|
|
29440
30040
|
let topLevelExpressions = [];
|
|
29441
30041
|
if (import_typescript48.default.isArrayLiteralExpression(rawImports2)) {
|
|
@@ -29494,7 +30094,7 @@ var NgModuleDecoratorHandler = class {
|
|
|
29494
30094
|
classMetadata: this.includeClassMetadata ? extractClassMetadata(node, this.reflector, this.isCore, this.annotateForClosureCompiler) : null,
|
|
29495
30095
|
factorySymbolName: node.name.text,
|
|
29496
30096
|
remoteScopesMayRequireCycleProtection,
|
|
29497
|
-
decorator: (
|
|
30097
|
+
decorator: (_e2 = decorator == null ? void 0 : decorator.node) != null ? _e2 : null
|
|
29498
30098
|
}
|
|
29499
30099
|
};
|
|
29500
30100
|
}
|
|
@@ -29633,6 +30233,18 @@ var NgModuleDecoratorHandler = class {
|
|
|
29633
30233
|
this.insertMetadataStatement(ngModuleDef.statements, metadata);
|
|
29634
30234
|
return this.compileNgModule(factoryFn, injectorDef, ngModuleDef);
|
|
29635
30235
|
}
|
|
30236
|
+
compileLocal(node, { inj, mod, fac, classMetadata, declarations, remoteScopesMayRequireCycleProtection }) {
|
|
30237
|
+
const factoryFn = compileNgFactoryDefField(fac);
|
|
30238
|
+
const ngInjectorDef = compileInjector(__spreadProps(__spreadValues({}, inj), {
|
|
30239
|
+
imports: []
|
|
30240
|
+
}));
|
|
30241
|
+
const ngModuleDef = compileNgModule(mod);
|
|
30242
|
+
const statements = ngModuleDef.statements;
|
|
30243
|
+
const metadata = classMetadata !== null ? compileClassMetadata(classMetadata) : null;
|
|
30244
|
+
this.insertMetadataStatement(statements, metadata);
|
|
30245
|
+
this.appendRemoteScopingStatements(statements, node, declarations, remoteScopesMayRequireCycleProtection);
|
|
30246
|
+
return this.compileNgModule(factoryFn, ngInjectorDef, ngModuleDef);
|
|
30247
|
+
}
|
|
29636
30248
|
insertMetadataStatement(ngModuleStatements, metadata) {
|
|
29637
30249
|
if (metadata !== null) {
|
|
29638
30250
|
ngModuleStatements.unshift(metadata.toStmt());
|
|
@@ -29746,7 +30358,7 @@ function isSyntheticReference(ref) {
|
|
|
29746
30358
|
return ref.synthetic;
|
|
29747
30359
|
}
|
|
29748
30360
|
|
|
29749
|
-
// bazel-out/
|
|
30361
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/diagnostics.mjs
|
|
29750
30362
|
function makeCyclicImportInfo(ref, type, cycle) {
|
|
29751
30363
|
const name = ref.debugName || "(unknown)";
|
|
29752
30364
|
const path3 = cycle.getPath().map((sf) => sf.fileName).join(" -> ");
|
|
@@ -29769,7 +30381,7 @@ function checkCustomElementSelectorForErrors(selector) {
|
|
|
29769
30381
|
return null;
|
|
29770
30382
|
}
|
|
29771
30383
|
|
|
29772
|
-
// bazel-out/
|
|
30384
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/resources.mjs
|
|
29773
30385
|
var import_typescript50 = __toESM(require("typescript"), 1);
|
|
29774
30386
|
function getTemplateDeclarationNodeForError(declaration) {
|
|
29775
30387
|
return declaration.isInline ? declaration.expression : declaration.templateUrlExpression;
|
|
@@ -30079,7 +30691,7 @@ function _extractTemplateStyleUrls(template2) {
|
|
|
30079
30691
|
return template2.styleUrls.map((url) => ({ url, source: 1, nodeForError }));
|
|
30080
30692
|
}
|
|
30081
30693
|
|
|
30082
|
-
// bazel-out/
|
|
30694
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/symbol.mjs
|
|
30083
30695
|
var ComponentSymbol = class extends DirectiveSymbol {
|
|
30084
30696
|
constructor() {
|
|
30085
30697
|
super(...arguments);
|
|
@@ -30114,7 +30726,7 @@ var ComponentSymbol = class extends DirectiveSymbol {
|
|
|
30114
30726
|
}
|
|
30115
30727
|
};
|
|
30116
30728
|
|
|
30117
|
-
// bazel-out/
|
|
30729
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/util.mjs
|
|
30118
30730
|
function collectAnimationNames(value, animationTriggerNames) {
|
|
30119
30731
|
if (value instanceof Map) {
|
|
30120
30732
|
const name = value.get("name");
|
|
@@ -30190,10 +30802,10 @@ function isLikelyModuleWithProviders(value) {
|
|
|
30190
30802
|
return false;
|
|
30191
30803
|
}
|
|
30192
30804
|
|
|
30193
|
-
// bazel-out/
|
|
30805
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
30194
30806
|
var EMPTY_ARRAY2 = [];
|
|
30195
30807
|
var ComponentDecoratorHandler = class {
|
|
30196
|
-
constructor(reflector, evaluator, metaRegistry, metaReader, scopeReader, dtsScopeReader, scopeRegistry, typeCheckScopeRegistry, resourceRegistry, isCore, strictCtorDeps, resourceLoader, rootDirs, defaultPreserveWhitespaces, i18nUseExternalIds, enableI18nLegacyMessageIdFormat, usePoisonedData, i18nNormalizeLineEndingsInICUs, moduleResolver, cycleAnalyzer, cycleHandlingStrategy, refEmitter, referencesRegistry, depTracker, injectableRegistry, semanticDepGraphUpdater, annotateForClosureCompiler, perf, hostDirectivesResolver, includeClassMetadata) {
|
|
30808
|
+
constructor(reflector, evaluator, metaRegistry, metaReader, scopeReader, dtsScopeReader, scopeRegistry, typeCheckScopeRegistry, resourceRegistry, isCore, strictCtorDeps, resourceLoader, rootDirs, defaultPreserveWhitespaces, i18nUseExternalIds, enableI18nLegacyMessageIdFormat, usePoisonedData, i18nNormalizeLineEndingsInICUs, moduleResolver, cycleAnalyzer, cycleHandlingStrategy, refEmitter, referencesRegistry, depTracker, injectableRegistry, semanticDepGraphUpdater, annotateForClosureCompiler, perf, hostDirectivesResolver, includeClassMetadata, compilationMode) {
|
|
30197
30809
|
this.reflector = reflector;
|
|
30198
30810
|
this.evaluator = evaluator;
|
|
30199
30811
|
this.metaRegistry = metaRegistry;
|
|
@@ -30224,6 +30836,7 @@ var ComponentDecoratorHandler = class {
|
|
|
30224
30836
|
this.perf = perf;
|
|
30225
30837
|
this.hostDirectivesResolver = hostDirectivesResolver;
|
|
30226
30838
|
this.includeClassMetadata = includeClassMetadata;
|
|
30839
|
+
this.compilationMode = compilationMode;
|
|
30227
30840
|
this.literalCache = /* @__PURE__ */ new Map();
|
|
30228
30841
|
this.elementSchemaRegistry = new DomElementSchemaRegistry();
|
|
30229
30842
|
this.preanalyzeTemplateCache = /* @__PURE__ */ new Map();
|
|
@@ -30293,7 +30906,7 @@ var ComponentDecoratorHandler = class {
|
|
|
30293
30906
|
]).then(() => void 0);
|
|
30294
30907
|
}
|
|
30295
30908
|
analyze(node, decorator) {
|
|
30296
|
-
var _a2, _b2, _c2;
|
|
30909
|
+
var _a2, _b2, _c2, _d2;
|
|
30297
30910
|
this.perf.eventCount(PerfEvent.AnalyzeComponent);
|
|
30298
30911
|
const containingFile = node.getSourceFile().fileName;
|
|
30299
30912
|
this.literalCache.delete(decorator);
|
|
@@ -30335,15 +30948,15 @@ var ComponentDecoratorHandler = class {
|
|
|
30335
30948
|
providersRequiringFactory = resolveProvidersRequiringFactory(component.get("providers"), this.reflector, this.evaluator);
|
|
30336
30949
|
}
|
|
30337
30950
|
let resolvedImports = null;
|
|
30338
|
-
let rawImports = null;
|
|
30339
|
-
if (
|
|
30951
|
+
let rawImports = (_b2 = component.get("imports")) != null ? _b2 : null;
|
|
30952
|
+
if (rawImports && !metadata.isStandalone) {
|
|
30340
30953
|
if (diagnostics === void 0) {
|
|
30341
30954
|
diagnostics = [];
|
|
30342
30955
|
}
|
|
30343
30956
|
diagnostics.push(makeDiagnostic(ErrorCode.COMPONENT_NOT_STANDALONE, component.get("imports"), `'imports' is only valid on a component that is standalone.`, [makeRelatedInformation(node.name, `Did you forget to add 'standalone: true' to this @Component?`)]));
|
|
30344
30957
|
isPoisoned = true;
|
|
30345
|
-
} else if (
|
|
30346
|
-
const expr =
|
|
30958
|
+
} else if (this.compilationMode !== CompilationMode.LOCAL && rawImports) {
|
|
30959
|
+
const expr = rawImports;
|
|
30347
30960
|
const importResolvers = combineResolvers([
|
|
30348
30961
|
createModuleWithProvidersResolver(this.reflector, this.isCore),
|
|
30349
30962
|
forwardRefResolver
|
|
@@ -30366,7 +30979,7 @@ var ComponentDecoratorHandler = class {
|
|
|
30366
30979
|
diagnostics = [];
|
|
30367
30980
|
}
|
|
30368
30981
|
diagnostics.push(makeDiagnostic(ErrorCode.COMPONENT_NOT_STANDALONE, component.get("schemas"), `'schemas' is only valid on a component that is standalone.`));
|
|
30369
|
-
} else if (component.has("schemas")) {
|
|
30982
|
+
} else if (this.compilationMode !== CompilationMode.LOCAL && component.has("schemas")) {
|
|
30370
30983
|
schemas = extractSchemas(component.get("schemas"), this.evaluator, "Component");
|
|
30371
30984
|
} else if (metadata.isStandalone) {
|
|
30372
30985
|
schemas = [];
|
|
@@ -30457,7 +31070,7 @@ var ComponentDecoratorHandler = class {
|
|
|
30457
31070
|
ngContentSelectors: template2.ngContentSelectors
|
|
30458
31071
|
},
|
|
30459
31072
|
encapsulation,
|
|
30460
|
-
interpolation: (
|
|
31073
|
+
interpolation: (_c2 = template2.interpolationConfig) != null ? _c2 : DEFAULT_INTERPOLATION_CONFIG,
|
|
30461
31074
|
styles,
|
|
30462
31075
|
animations,
|
|
30463
31076
|
viewProviders: wrappedViewProviders,
|
|
@@ -30480,7 +31093,7 @@ var ComponentDecoratorHandler = class {
|
|
|
30480
31093
|
rawImports,
|
|
30481
31094
|
resolvedImports,
|
|
30482
31095
|
schemas,
|
|
30483
|
-
decorator: (
|
|
31096
|
+
decorator: (_d2 = decorator == null ? void 0 : decorator.node) != null ? _d2 : null
|
|
30484
31097
|
},
|
|
30485
31098
|
diagnostics
|
|
30486
31099
|
};
|
|
@@ -30801,6 +31414,20 @@ var ComponentDecoratorHandler = class {
|
|
|
30801
31414
|
const classMetadata = analysis.classMetadata !== null ? compileDeclareClassMetadata(analysis.classMetadata).toStmt() : null;
|
|
30802
31415
|
return compileResults(fac, def, classMetadata, "\u0275cmp", inputTransformFields);
|
|
30803
31416
|
}
|
|
31417
|
+
compileLocal(node, analysis, pool) {
|
|
31418
|
+
if (analysis.template.errors !== null && analysis.template.errors.length > 0) {
|
|
31419
|
+
return [];
|
|
31420
|
+
}
|
|
31421
|
+
const meta = __spreadProps(__spreadValues({}, analysis.meta), {
|
|
31422
|
+
declarationListEmitMode: 0,
|
|
31423
|
+
declarations: []
|
|
31424
|
+
});
|
|
31425
|
+
const fac = compileNgFactoryDefField(toFactoryMetadata(meta, FactoryTarget.Component));
|
|
31426
|
+
const def = compileComponentFromMetadata(meta, pool, makeBindingParser());
|
|
31427
|
+
const inputTransformFields = compileInputTransformFields(analysis.inputs);
|
|
31428
|
+
const classMetadata = analysis.classMetadata !== null ? compileClassMetadata(analysis.classMetadata).toStmt() : null;
|
|
31429
|
+
return compileResults(fac, def, classMetadata, "\u0275cmp", inputTransformFields);
|
|
31430
|
+
}
|
|
30804
31431
|
_checkForCyclicImport(importedFile, expr, origin) {
|
|
30805
31432
|
const imported = resolveImportedFile(this.moduleResolver, importedFile, expr, origin);
|
|
30806
31433
|
if (imported === null) {
|
|
@@ -30842,7 +31469,7 @@ function validateStandaloneImports(importRefs, importExpr2, metaReader, scopeRea
|
|
|
30842
31469
|
return diagnostics;
|
|
30843
31470
|
}
|
|
30844
31471
|
|
|
30845
|
-
// bazel-out/
|
|
31472
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
|
|
30846
31473
|
var import_typescript53 = __toESM(require("typescript"), 1);
|
|
30847
31474
|
var InjectableDecoratorHandler = class {
|
|
30848
31475
|
constructor(reflector, evaluator, isCore, strictCtorDeps, injectableRegistry, perf, includeClassMetadata, errorOnDuplicateProv = true) {
|
|
@@ -30910,6 +31537,9 @@ var InjectableDecoratorHandler = class {
|
|
|
30910
31537
|
compilePartial(node, analysis) {
|
|
30911
31538
|
return this.compile(compileDeclareFactory, compileDeclareInjectableFromMetadata, compileDeclareClassMetadata, node, analysis);
|
|
30912
31539
|
}
|
|
31540
|
+
compileLocal(node, analysis) {
|
|
31541
|
+
return this.compile(compileNgFactoryDefField, (meta) => compileInjectable(meta, false), compileClassMetadata, node, analysis);
|
|
31542
|
+
}
|
|
30913
31543
|
compile(compileFactoryFn, compileInjectableFn, compileClassMetadataFn, node, analysis) {
|
|
30914
31544
|
const results = [];
|
|
30915
31545
|
if (analysis.needsFactory) {
|
|
@@ -31057,7 +31687,7 @@ function getDep(dep, reflector) {
|
|
|
31057
31687
|
return meta;
|
|
31058
31688
|
}
|
|
31059
31689
|
|
|
31060
|
-
// bazel-out/
|
|
31690
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
|
|
31061
31691
|
var import_typescript54 = __toESM(require("typescript"), 1);
|
|
31062
31692
|
var PipeSymbol = class extends SemanticSymbol {
|
|
31063
31693
|
constructor(decl, name) {
|
|
@@ -31199,9 +31829,15 @@ var PipeDecoratorHandler = class {
|
|
|
31199
31829
|
const classMetadata = analysis.classMetadata !== null ? compileDeclareClassMetadata(analysis.classMetadata).toStmt() : null;
|
|
31200
31830
|
return compileResults(fac, def, classMetadata, "\u0275pipe", null);
|
|
31201
31831
|
}
|
|
31832
|
+
compileLocal(node, analysis) {
|
|
31833
|
+
const fac = compileNgFactoryDefField(toFactoryMetadata(analysis.meta, FactoryTarget.Pipe));
|
|
31834
|
+
const def = compilePipeFromMetadata(analysis.meta);
|
|
31835
|
+
const classMetadata = analysis.classMetadata !== null ? compileClassMetadata(analysis.classMetadata).toStmt() : null;
|
|
31836
|
+
return compileResults(fac, def, classMetadata, "\u0275pipe", null);
|
|
31837
|
+
}
|
|
31202
31838
|
};
|
|
31203
31839
|
|
|
31204
|
-
// bazel-out/
|
|
31840
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
|
|
31205
31841
|
var CycleAnalyzer = class {
|
|
31206
31842
|
constructor(importGraph) {
|
|
31207
31843
|
this.importGraph = importGraph;
|
|
@@ -31272,7 +31908,7 @@ var Cycle = class {
|
|
|
31272
31908
|
}
|
|
31273
31909
|
};
|
|
31274
31910
|
|
|
31275
|
-
// bazel-out/
|
|
31911
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/imports.mjs
|
|
31276
31912
|
var import_typescript55 = __toESM(require("typescript"), 1);
|
|
31277
31913
|
var ImportGraph = class {
|
|
31278
31914
|
constructor(checker, perf) {
|
|
@@ -31364,7 +32000,7 @@ var Found = class {
|
|
|
31364
32000
|
}
|
|
31365
32001
|
};
|
|
31366
32002
|
|
|
31367
|
-
// bazel-out/
|
|
32003
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
|
|
31368
32004
|
var import_typescript56 = __toESM(require("typescript"), 1);
|
|
31369
32005
|
var FlatIndexGenerator = class {
|
|
31370
32006
|
constructor(entryPoint, relativeFlatIndexPath, moduleName) {
|
|
@@ -31389,7 +32025,7 @@ export * from '${relativeEntryPoint}';
|
|
|
31389
32025
|
}
|
|
31390
32026
|
};
|
|
31391
32027
|
|
|
31392
|
-
// bazel-out/
|
|
32028
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/logic.mjs
|
|
31393
32029
|
function findFlatIndexEntryPoint(rootFiles) {
|
|
31394
32030
|
const tsFiles = rootFiles.filter((file) => isNonDeclarationTsPath(file));
|
|
31395
32031
|
let resolvedEntryPoint = null;
|
|
@@ -31405,7 +32041,7 @@ function findFlatIndexEntryPoint(rootFiles) {
|
|
|
31405
32041
|
return resolvedEntryPoint;
|
|
31406
32042
|
}
|
|
31407
32043
|
|
|
31408
|
-
// bazel-out/
|
|
32044
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
|
|
31409
32045
|
var import_typescript58 = __toESM(require("typescript"), 1);
|
|
31410
32046
|
function checkForPrivateExports(entryPoint, checker, refGraph) {
|
|
31411
32047
|
const diagnostics = [];
|
|
@@ -31485,7 +32121,7 @@ function getDescriptorOfDeclaration(decl) {
|
|
|
31485
32121
|
}
|
|
31486
32122
|
}
|
|
31487
32123
|
|
|
31488
|
-
// bazel-out/
|
|
32124
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/reference_graph.mjs
|
|
31489
32125
|
var ReferenceGraph = class {
|
|
31490
32126
|
constructor() {
|
|
31491
32127
|
this.references = /* @__PURE__ */ new Map();
|
|
@@ -31539,7 +32175,7 @@ var ReferenceGraph = class {
|
|
|
31539
32175
|
}
|
|
31540
32176
|
};
|
|
31541
32177
|
|
|
31542
|
-
// bazel-out/
|
|
32178
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/api.mjs
|
|
31543
32179
|
var NgOriginalFile = Symbol("NgOriginalFile");
|
|
31544
32180
|
var UpdateMode;
|
|
31545
32181
|
(function(UpdateMode2) {
|
|
@@ -31547,13 +32183,13 @@ var UpdateMode;
|
|
|
31547
32183
|
UpdateMode2[UpdateMode2["Incremental"] = 1] = "Incremental";
|
|
31548
32184
|
})(UpdateMode || (UpdateMode = {}));
|
|
31549
32185
|
|
|
31550
|
-
// bazel-out/
|
|
32186
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
|
|
31551
32187
|
var import_typescript62 = __toESM(require("typescript"), 1);
|
|
31552
32188
|
|
|
31553
|
-
// bazel-out/
|
|
32189
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
31554
32190
|
var import_typescript59 = __toESM(require("typescript"), 1);
|
|
31555
32191
|
|
|
31556
|
-
// bazel-out/
|
|
32192
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/expando.mjs
|
|
31557
32193
|
var NgExtension = Symbol("NgExtension");
|
|
31558
32194
|
function isExtended(sf) {
|
|
31559
32195
|
return sf[NgExtension] !== void 0;
|
|
@@ -31613,13 +32249,13 @@ function retagTsFile(sf) {
|
|
|
31613
32249
|
}
|
|
31614
32250
|
}
|
|
31615
32251
|
|
|
31616
|
-
// bazel-out/
|
|
32252
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/util.mjs
|
|
31617
32253
|
var TS_EXTENSIONS = /\.tsx?$/i;
|
|
31618
32254
|
function makeShimFileName(fileName, suffix) {
|
|
31619
32255
|
return absoluteFrom(fileName.replace(TS_EXTENSIONS, suffix));
|
|
31620
32256
|
}
|
|
31621
32257
|
|
|
31622
|
-
// bazel-out/
|
|
32258
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
31623
32259
|
var ShimAdapter = class {
|
|
31624
32260
|
constructor(delegate, tsRootFiles, topLevelGenerators, perFileGenerators, oldProgram) {
|
|
31625
32261
|
this.delegate = delegate;
|
|
@@ -31714,7 +32350,7 @@ var ShimAdapter = class {
|
|
|
31714
32350
|
}
|
|
31715
32351
|
};
|
|
31716
32352
|
|
|
31717
|
-
// bazel-out/
|
|
32353
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
|
|
31718
32354
|
var ShimReferenceTagger = class {
|
|
31719
32355
|
constructor(shimExtensions) {
|
|
31720
32356
|
this.tagged = /* @__PURE__ */ new Set();
|
|
@@ -31748,7 +32384,7 @@ var ShimReferenceTagger = class {
|
|
|
31748
32384
|
}
|
|
31749
32385
|
};
|
|
31750
32386
|
|
|
31751
|
-
// bazel-out/
|
|
32387
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
|
|
31752
32388
|
var DelegatingCompilerHost = class {
|
|
31753
32389
|
constructor(delegate) {
|
|
31754
32390
|
this.delegate = delegate;
|
|
@@ -31861,7 +32497,7 @@ var TsCreateProgramDriver = class {
|
|
|
31861
32497
|
}
|
|
31862
32498
|
};
|
|
31863
32499
|
|
|
31864
|
-
// bazel-out/
|
|
32500
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.mjs
|
|
31865
32501
|
var FileDependencyGraph = class {
|
|
31866
32502
|
constructor() {
|
|
31867
32503
|
this.nodes = /* @__PURE__ */ new Map();
|
|
@@ -31928,7 +32564,7 @@ function isLogicallyChanged(sf, node, changedTsPaths, deletedTsPaths, changedRes
|
|
|
31928
32564
|
return false;
|
|
31929
32565
|
}
|
|
31930
32566
|
|
|
31931
|
-
// bazel-out/
|
|
32567
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
|
|
31932
32568
|
var IncrementalStateKind;
|
|
31933
32569
|
(function(IncrementalStateKind2) {
|
|
31934
32570
|
IncrementalStateKind2[IncrementalStateKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -31936,7 +32572,7 @@ var IncrementalStateKind;
|
|
|
31936
32572
|
IncrementalStateKind2[IncrementalStateKind2["Analyzed"] = 2] = "Analyzed";
|
|
31937
32573
|
})(IncrementalStateKind || (IncrementalStateKind = {}));
|
|
31938
32574
|
|
|
31939
|
-
// bazel-out/
|
|
32575
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
|
|
31940
32576
|
var PhaseKind;
|
|
31941
32577
|
(function(PhaseKind2) {
|
|
31942
32578
|
PhaseKind2[PhaseKind2["Analysis"] = 0] = "Analysis";
|
|
@@ -32137,7 +32773,7 @@ function toOriginalSourceFile(sf) {
|
|
|
32137
32773
|
}
|
|
32138
32774
|
}
|
|
32139
32775
|
|
|
32140
|
-
// bazel-out/
|
|
32776
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
|
|
32141
32777
|
var TrackedIncrementalBuildStrategy = class {
|
|
32142
32778
|
constructor() {
|
|
32143
32779
|
this.state = null;
|
|
@@ -32158,7 +32794,7 @@ var TrackedIncrementalBuildStrategy = class {
|
|
|
32158
32794
|
};
|
|
32159
32795
|
var SYM_INCREMENTAL_STATE = Symbol("NgIncrementalState");
|
|
32160
32796
|
|
|
32161
|
-
// bazel-out/
|
|
32797
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
|
|
32162
32798
|
var IdentifierKind;
|
|
32163
32799
|
(function(IdentifierKind2) {
|
|
32164
32800
|
IdentifierKind2[IdentifierKind2["Property"] = 0] = "Property";
|
|
@@ -32176,7 +32812,7 @@ var AbsoluteSourceSpan2 = class {
|
|
|
32176
32812
|
}
|
|
32177
32813
|
};
|
|
32178
32814
|
|
|
32179
|
-
// bazel-out/
|
|
32815
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/context.mjs
|
|
32180
32816
|
var IndexingContext = class {
|
|
32181
32817
|
constructor() {
|
|
32182
32818
|
this.components = /* @__PURE__ */ new Set();
|
|
@@ -32186,7 +32822,7 @@ var IndexingContext = class {
|
|
|
32186
32822
|
}
|
|
32187
32823
|
};
|
|
32188
32824
|
|
|
32189
|
-
// bazel-out/
|
|
32825
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
|
|
32190
32826
|
var ExpressionVisitor = class extends RecursiveAstVisitor2 {
|
|
32191
32827
|
constructor(expressionStr, absoluteOffset, boundTemplate, targetToIdentifier) {
|
|
32192
32828
|
super();
|
|
@@ -32275,16 +32911,16 @@ var TemplateVisitor = class extends RecursiveVisitor {
|
|
|
32275
32911
|
this.visitAll(template2.children);
|
|
32276
32912
|
this.visitAll(template2.references);
|
|
32277
32913
|
}
|
|
32278
|
-
visitBoundAttribute(
|
|
32279
|
-
if (
|
|
32914
|
+
visitBoundAttribute(attribute2) {
|
|
32915
|
+
if (attribute2.valueSpan === void 0) {
|
|
32280
32916
|
return;
|
|
32281
32917
|
}
|
|
32282
|
-
const { identifiers, errors } = ExpressionVisitor.getIdentifiers(
|
|
32918
|
+
const { identifiers, errors } = ExpressionVisitor.getIdentifiers(attribute2.value, attribute2.valueSpan.toString(), attribute2.valueSpan.start.offset, this.boundTemplate, this.targetToIdentifier.bind(this));
|
|
32283
32919
|
identifiers.forEach((id) => this.identifiers.add(id));
|
|
32284
32920
|
this.errors.push(...errors);
|
|
32285
32921
|
}
|
|
32286
|
-
visitBoundEvent(
|
|
32287
|
-
this.visitExpression(
|
|
32922
|
+
visitBoundEvent(attribute2) {
|
|
32923
|
+
this.visitExpression(attribute2.handler);
|
|
32288
32924
|
}
|
|
32289
32925
|
visitBoundText(text2) {
|
|
32290
32926
|
this.visitExpression(text2.value);
|
|
@@ -32422,7 +33058,7 @@ function getTemplateIdentifiers(boundTemplate) {
|
|
|
32422
33058
|
return { identifiers: visitor.identifiers, errors: visitor.errors };
|
|
32423
33059
|
}
|
|
32424
33060
|
|
|
32425
|
-
// bazel-out/
|
|
33061
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
|
|
32426
33062
|
function generateAnalysis(context) {
|
|
32427
33063
|
const analysis = /* @__PURE__ */ new Map();
|
|
32428
33064
|
context.components.forEach(({ declaration, selector, boundTemplate, templateMeta }) => {
|
|
@@ -32458,7 +33094,7 @@ function generateAnalysis(context) {
|
|
|
32458
33094
|
return analysis;
|
|
32459
33095
|
}
|
|
32460
33096
|
|
|
32461
|
-
// bazel-out/
|
|
33097
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/ng_module_index.mjs
|
|
32462
33098
|
var NgModuleIndexImpl = class {
|
|
32463
33099
|
constructor(metaReader, localReader) {
|
|
32464
33100
|
this.metaReader = metaReader;
|
|
@@ -32547,7 +33183,7 @@ var NgModuleIndexImpl = class {
|
|
|
32547
33183
|
}
|
|
32548
33184
|
};
|
|
32549
33185
|
|
|
32550
|
-
// bazel-out/
|
|
33186
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
|
|
32551
33187
|
var import_typescript65 = __toESM(require("typescript"), 1);
|
|
32552
33188
|
var CSS_PREPROCESSOR_EXT = /(\.scss|\.sass|\.less|\.styl)$/;
|
|
32553
33189
|
var RESOURCE_MARKER = ".$ngresource$";
|
|
@@ -32695,7 +33331,7 @@ function createLookupResolutionHost(adapter) {
|
|
|
32695
33331
|
};
|
|
32696
33332
|
}
|
|
32697
33333
|
|
|
32698
|
-
// bazel-out/
|
|
33334
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/standalone.mjs
|
|
32699
33335
|
var StandaloneComponentScopeReader = class {
|
|
32700
33336
|
constructor(metaReader, localModuleReader, dtsModuleReader) {
|
|
32701
33337
|
this.metaReader = metaReader;
|
|
@@ -32773,21 +33409,21 @@ var StandaloneComponentScopeReader = class {
|
|
|
32773
33409
|
}
|
|
32774
33410
|
};
|
|
32775
33411
|
|
|
32776
|
-
// bazel-out/
|
|
33412
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/checker.mjs
|
|
32777
33413
|
var OptimizeFor;
|
|
32778
33414
|
(function(OptimizeFor2) {
|
|
32779
33415
|
OptimizeFor2[OptimizeFor2["SingleFile"] = 0] = "SingleFile";
|
|
32780
33416
|
OptimizeFor2[OptimizeFor2["WholeProgram"] = 1] = "WholeProgram";
|
|
32781
33417
|
})(OptimizeFor || (OptimizeFor = {}));
|
|
32782
33418
|
|
|
32783
|
-
// bazel-out/
|
|
33419
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/completion.mjs
|
|
32784
33420
|
var CompletionKind;
|
|
32785
33421
|
(function(CompletionKind2) {
|
|
32786
33422
|
CompletionKind2[CompletionKind2["Reference"] = 0] = "Reference";
|
|
32787
33423
|
CompletionKind2[CompletionKind2["Variable"] = 1] = "Variable";
|
|
32788
33424
|
})(CompletionKind || (CompletionKind = {}));
|
|
32789
33425
|
|
|
32790
|
-
// bazel-out/
|
|
33426
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/scope.mjs
|
|
32791
33427
|
var PotentialImportKind;
|
|
32792
33428
|
(function(PotentialImportKind2) {
|
|
32793
33429
|
PotentialImportKind2[PotentialImportKind2["NgModule"] = 0] = "NgModule";
|
|
@@ -32799,7 +33435,7 @@ var PotentialImportMode;
|
|
|
32799
33435
|
PotentialImportMode2[PotentialImportMode2["ForceDirect"] = 1] = "ForceDirect";
|
|
32800
33436
|
})(PotentialImportMode || (PotentialImportMode = {}));
|
|
32801
33437
|
|
|
32802
|
-
// bazel-out/
|
|
33438
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.mjs
|
|
32803
33439
|
var SymbolKind;
|
|
32804
33440
|
(function(SymbolKind2) {
|
|
32805
33441
|
SymbolKind2[SymbolKind2["Input"] = 0] = "Input";
|
|
@@ -32815,7 +33451,7 @@ var SymbolKind;
|
|
|
32815
33451
|
SymbolKind2[SymbolKind2["Pipe"] = 10] = "Pipe";
|
|
32816
33452
|
})(SymbolKind || (SymbolKind = {}));
|
|
32817
33453
|
|
|
32818
|
-
// bazel-out/
|
|
33454
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
|
|
32819
33455
|
var import_typescript66 = __toESM(require("typescript"), 1);
|
|
32820
33456
|
function makeTemplateDiagnostic(templateId, mapping, span, category, code, messageText, relatedMessages) {
|
|
32821
33457
|
var _a2;
|
|
@@ -32922,7 +33558,7 @@ function parseTemplateAsSourceFile(fileName, template2) {
|
|
|
32922
33558
|
return import_typescript66.default.createSourceFile(fileName, template2, import_typescript66.default.ScriptTarget.Latest, false, import_typescript66.default.ScriptKind.JSX);
|
|
32923
33559
|
}
|
|
32924
33560
|
|
|
32925
|
-
// bazel-out/
|
|
33561
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
|
|
32926
33562
|
var TEMPLATE_ID = Symbol("ngTemplateId");
|
|
32927
33563
|
var NEXT_TEMPLATE_ID = Symbol("ngNextTemplateId");
|
|
32928
33564
|
function getTemplateId(clazz) {
|
|
@@ -32939,10 +33575,10 @@ function allocateTemplateId(sf) {
|
|
|
32939
33575
|
return `tcb${sf[NEXT_TEMPLATE_ID]++}`;
|
|
32940
33576
|
}
|
|
32941
33577
|
|
|
32942
|
-
// bazel-out/
|
|
33578
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
32943
33579
|
var import_typescript68 = __toESM(require("typescript"), 1);
|
|
32944
33580
|
|
|
32945
|
-
// bazel-out/
|
|
33581
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
|
|
32946
33582
|
var import_typescript67 = __toESM(require("typescript"), 1);
|
|
32947
33583
|
var parseSpanComment = /^(\d+),(\d+)$/;
|
|
32948
33584
|
function readSpanComment(node, sourceFile = node.getSourceFile()) {
|
|
@@ -33071,7 +33707,7 @@ function hasExpressionIdentifier(sourceFile, node, identifier) {
|
|
|
33071
33707
|
}) || false;
|
|
33072
33708
|
}
|
|
33073
33709
|
|
|
33074
|
-
// bazel-out/
|
|
33710
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
33075
33711
|
var CompletionEngine = class {
|
|
33076
33712
|
constructor(tcb, data, tcbPath, tcbIsShim) {
|
|
33077
33713
|
this.tcb = tcb;
|
|
@@ -33228,10 +33864,10 @@ var CompletionEngine = class {
|
|
|
33228
33864
|
}
|
|
33229
33865
|
};
|
|
33230
33866
|
|
|
33231
|
-
// bazel-out/
|
|
33867
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
33232
33868
|
var import_typescript83 = __toESM(require("typescript"), 1);
|
|
33233
33869
|
|
|
33234
|
-
// bazel-out/
|
|
33870
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
|
|
33235
33871
|
var import_typescript69 = __toESM(require("typescript"), 1);
|
|
33236
33872
|
var REGISTRY = new DomElementSchemaRegistry();
|
|
33237
33873
|
var REMOVE_XHTML_REGEX = /^:xhtml:/;
|
|
@@ -33283,10 +33919,10 @@ var RegistryDomSchemaChecker = class {
|
|
|
33283
33919
|
}
|
|
33284
33920
|
};
|
|
33285
33921
|
|
|
33286
|
-
// bazel-out/
|
|
33922
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
33287
33923
|
var import_typescript76 = __toESM(require("typescript"), 1);
|
|
33288
33924
|
|
|
33289
|
-
// bazel-out/
|
|
33925
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
|
|
33290
33926
|
var import_typescript70 = __toESM(require("typescript"), 1);
|
|
33291
33927
|
var SAFE_TO_CAST_WITHOUT_PARENS = /* @__PURE__ */ new Set([
|
|
33292
33928
|
import_typescript70.default.SyntaxKind.ParenthesizedExpression,
|
|
@@ -33360,16 +33996,16 @@ function isAccessExpression2(node) {
|
|
|
33360
33996
|
return import_typescript70.default.isPropertyAccessExpression(node) || import_typescript70.default.isElementAccessExpression(node);
|
|
33361
33997
|
}
|
|
33362
33998
|
|
|
33363
|
-
// bazel-out/
|
|
33999
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
33364
34000
|
var import_typescript75 = __toESM(require("typescript"), 1);
|
|
33365
34001
|
|
|
33366
|
-
// bazel-out/
|
|
34002
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
33367
34003
|
var import_typescript73 = __toESM(require("typescript"), 1);
|
|
33368
34004
|
|
|
33369
|
-
// bazel-out/
|
|
34005
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
|
|
33370
34006
|
var import_typescript72 = __toESM(require("typescript"), 1);
|
|
33371
34007
|
|
|
33372
|
-
// bazel-out/
|
|
34008
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_emitter.mjs
|
|
33373
34009
|
var import_typescript71 = __toESM(require("typescript"), 1);
|
|
33374
34010
|
var INELIGIBLE = {};
|
|
33375
34011
|
function canEmitType(type, canEmit) {
|
|
@@ -33444,7 +34080,7 @@ var TypeEmitter = class {
|
|
|
33444
34080
|
}
|
|
33445
34081
|
};
|
|
33446
34082
|
|
|
33447
|
-
// bazel-out/
|
|
34083
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
|
|
33448
34084
|
var TypeParameterEmitter = class {
|
|
33449
34085
|
constructor(typeParameters, reflector) {
|
|
33450
34086
|
this.typeParameters = typeParameters;
|
|
@@ -33521,7 +34157,7 @@ var TypeParameterEmitter = class {
|
|
|
33521
34157
|
}
|
|
33522
34158
|
};
|
|
33523
34159
|
|
|
33524
|
-
// bazel-out/
|
|
34160
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
33525
34161
|
var TcbInliningRequirement;
|
|
33526
34162
|
(function(TcbInliningRequirement2) {
|
|
33527
34163
|
TcbInliningRequirement2[TcbInliningRequirement2["MustInline"] = 0] = "MustInline";
|
|
@@ -33601,7 +34237,7 @@ function checkIfGenericTypeBoundsCanBeEmitted(node, reflector, env) {
|
|
|
33601
34237
|
return emitter.canEmit((ref) => env.canReferenceType(ref));
|
|
33602
34238
|
}
|
|
33603
34239
|
|
|
33604
|
-
// bazel-out/
|
|
34240
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
33605
34241
|
function generateTypeCtorDeclarationFn(node, meta, nodeTypeRef, typeParams) {
|
|
33606
34242
|
const rawTypeArgs = typeParams !== void 0 ? generateGenericArgs(typeParams) : void 0;
|
|
33607
34243
|
const rawType = import_typescript75.default.factory.createTypeReferenceNode(nodeTypeRef, rawTypeArgs);
|
|
@@ -33712,7 +34348,7 @@ function typeParametersWithDefaultTypes(params) {
|
|
|
33712
34348
|
});
|
|
33713
34349
|
}
|
|
33714
34350
|
|
|
33715
|
-
// bazel-out/
|
|
34351
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
33716
34352
|
var Environment = class {
|
|
33717
34353
|
constructor(config, importManager, refEmitter, reflector, contextFile) {
|
|
33718
34354
|
this.config = config;
|
|
@@ -33806,7 +34442,7 @@ var Environment = class {
|
|
|
33806
34442
|
}
|
|
33807
34443
|
};
|
|
33808
34444
|
|
|
33809
|
-
// bazel-out/
|
|
34445
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
|
|
33810
34446
|
var import_typescript77 = __toESM(require("typescript"), 1);
|
|
33811
34447
|
var OutOfBandDiagnosticRecorderImpl = class {
|
|
33812
34448
|
constructor(resolver) {
|
|
@@ -33941,7 +34577,7 @@ function makeInlineDiagnostic(templateId, code, node, messageText, relatedInform
|
|
|
33941
34577
|
});
|
|
33942
34578
|
}
|
|
33943
34579
|
|
|
33944
|
-
// bazel-out/
|
|
34580
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
|
|
33945
34581
|
var import_typescript78 = __toESM(require("typescript"), 1);
|
|
33946
34582
|
var TypeCheckShimGenerator = class {
|
|
33947
34583
|
constructor() {
|
|
@@ -33959,10 +34595,10 @@ var TypeCheckShimGenerator = class {
|
|
|
33959
34595
|
}
|
|
33960
34596
|
};
|
|
33961
34597
|
|
|
33962
|
-
// bazel-out/
|
|
34598
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
33963
34599
|
var import_typescript81 = __toESM(require("typescript"), 1);
|
|
33964
34600
|
|
|
33965
|
-
// bazel-out/
|
|
34601
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
|
|
33966
34602
|
var import_typescript79 = __toESM(require("typescript"), 1);
|
|
33967
34603
|
function wrapForDiagnostics(expr) {
|
|
33968
34604
|
return import_typescript79.default.factory.createParenthesizedExpression(expr);
|
|
@@ -34007,7 +34643,7 @@ function translateDiagnostic(diagnostic, resolver) {
|
|
|
34007
34643
|
return makeTemplateDiagnostic(sourceLocation.id, templateSourceMapping, span, diagnostic.category, diagnostic.code, diagnostic.messageText);
|
|
34008
34644
|
}
|
|
34009
34645
|
|
|
34010
|
-
// bazel-out/
|
|
34646
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
|
|
34011
34647
|
var import_typescript80 = __toESM(require("typescript"), 1);
|
|
34012
34648
|
var NULL_AS_ANY = import_typescript80.default.factory.createAsExpression(import_typescript80.default.factory.createNull(), import_typescript80.default.factory.createKeywordTypeNode(import_typescript80.default.SyntaxKind.AnyKeyword));
|
|
34013
34649
|
var UNDEFINED = import_typescript80.default.factory.createIdentifier("undefined");
|
|
@@ -34339,7 +34975,7 @@ var VeSafeLhsInferenceBugDetector = _VeSafeLhsInferenceBugDetector;
|
|
|
34339
34975
|
_VeSafeLhsInferenceBugDetector.SINGLETON = new _VeSafeLhsInferenceBugDetector();
|
|
34340
34976
|
})();
|
|
34341
34977
|
|
|
34342
|
-
// bazel-out/
|
|
34978
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_semantics.mjs
|
|
34343
34979
|
var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
|
|
34344
34980
|
constructor(templateId, boundTarget, oob) {
|
|
34345
34981
|
super();
|
|
@@ -34362,7 +34998,7 @@ var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
|
|
|
34362
34998
|
}
|
|
34363
34999
|
};
|
|
34364
35000
|
|
|
34365
|
-
// bazel-out/
|
|
35001
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
34366
35002
|
var TcbGenericContextBehavior;
|
|
34367
35003
|
(function(TcbGenericContextBehavior2) {
|
|
34368
35004
|
TcbGenericContextBehavior2[TcbGenericContextBehavior2["UseEmitter"] = 0] = "UseEmitter";
|
|
@@ -35489,7 +36125,7 @@ var TcbEventHandlerTranslator = class extends TcbExpressionTranslator {
|
|
|
35489
36125
|
}
|
|
35490
36126
|
};
|
|
35491
36127
|
|
|
35492
|
-
// bazel-out/
|
|
36128
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
|
|
35493
36129
|
var import_typescript82 = __toESM(require("typescript"), 1);
|
|
35494
36130
|
var TypeCheckFile = class extends Environment {
|
|
35495
36131
|
constructor(fileName, config, refEmitter, reflector, compilerHost) {
|
|
@@ -35525,7 +36161,7 @@ var TypeCheckFile = class extends Environment {
|
|
|
35525
36161
|
}
|
|
35526
36162
|
};
|
|
35527
36163
|
|
|
35528
|
-
// bazel-out/
|
|
36164
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
35529
36165
|
var InliningMode;
|
|
35530
36166
|
(function(InliningMode2) {
|
|
35531
36167
|
InliningMode2[InliningMode2["InlineOps"] = 0] = "InlineOps";
|
|
@@ -35762,7 +36398,7 @@ function splitStringAtPoints(str, points) {
|
|
|
35762
36398
|
return splits;
|
|
35763
36399
|
}
|
|
35764
36400
|
|
|
35765
|
-
// bazel-out/
|
|
36401
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/line_mappings.mjs
|
|
35766
36402
|
var LF_CHAR = 10;
|
|
35767
36403
|
var CR_CHAR = 13;
|
|
35768
36404
|
var LINE_SEP_CHAR = 8232;
|
|
@@ -35803,7 +36439,7 @@ function findClosestLineStartPosition(linesMap, position, low = 0, high = linesM
|
|
|
35803
36439
|
return low - 1;
|
|
35804
36440
|
}
|
|
35805
36441
|
|
|
35806
|
-
// bazel-out/
|
|
36442
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
|
|
35807
36443
|
var TemplateSource = class {
|
|
35808
36444
|
constructor(mapping, file) {
|
|
35809
36445
|
this.mapping = mapping;
|
|
@@ -35854,7 +36490,7 @@ var TemplateSourceManager = class {
|
|
|
35854
36490
|
}
|
|
35855
36491
|
};
|
|
35856
36492
|
|
|
35857
|
-
// bazel-out/
|
|
36493
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
|
|
35858
36494
|
var import_typescript84 = __toESM(require("typescript"), 1);
|
|
35859
36495
|
var SymbolBuilder = class {
|
|
35860
36496
|
constructor(tcbPath, tcbIsShim, typeCheckBlock, templateData, componentScopeReader, getTypeChecker) {
|
|
@@ -36331,7 +36967,7 @@ function sourceSpanEqual(a, b) {
|
|
|
36331
36967
|
return a.start.offset === b.start.offset && a.end.offset === b.end.offset;
|
|
36332
36968
|
}
|
|
36333
36969
|
|
|
36334
|
-
// bazel-out/
|
|
36970
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
|
|
36335
36971
|
var REGISTRY2 = new DomElementSchemaRegistry();
|
|
36336
36972
|
var TemplateTypeCheckerImpl = class {
|
|
36337
36973
|
constructor(originalProgram, programDriver, typeCheckAdapter, config, refEmitter, reflector, compilerHost, priorBuild, metaReader, localMetaReader, ngModuleIndex, componentScopeReader, typeCheckScopeRegistry, perf) {
|
|
@@ -36778,9 +37414,9 @@ var TemplateTypeCheckerImpl = class {
|
|
|
36778
37414
|
}
|
|
36779
37415
|
getPotentialDomBindings(tagName) {
|
|
36780
37416
|
const attributes = REGISTRY2.allKnownAttributesOfElement(tagName);
|
|
36781
|
-
return attributes.map((
|
|
36782
|
-
attribute,
|
|
36783
|
-
property: REGISTRY2.getMappedPropName(
|
|
37417
|
+
return attributes.map((attribute2) => ({
|
|
37418
|
+
attribute: attribute2,
|
|
37419
|
+
property: REGISTRY2.getMappedPropName(attribute2)
|
|
36784
37420
|
}));
|
|
36785
37421
|
}
|
|
36786
37422
|
getPotentialDomEvents(tagName) {
|
|
@@ -37027,7 +37663,7 @@ var SingleShimTypeCheckingHost = class extends SingleFileTypeCheckingHost {
|
|
|
37027
37663
|
}
|
|
37028
37664
|
};
|
|
37029
37665
|
|
|
37030
|
-
// bazel-out/
|
|
37666
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
|
|
37031
37667
|
var TemplateCheckWithVisitor = class {
|
|
37032
37668
|
run(ctx, component, template2) {
|
|
37033
37669
|
const visitor = new TemplateVisitor2(ctx, component, this);
|
|
@@ -37081,13 +37717,13 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor2 {
|
|
|
37081
37717
|
}
|
|
37082
37718
|
visitReference(reference2) {
|
|
37083
37719
|
}
|
|
37084
|
-
visitTextAttribute(
|
|
37720
|
+
visitTextAttribute(attribute2) {
|
|
37085
37721
|
}
|
|
37086
|
-
visitBoundAttribute(
|
|
37087
|
-
this.visitAst(
|
|
37722
|
+
visitBoundAttribute(attribute2) {
|
|
37723
|
+
this.visitAst(attribute2.value);
|
|
37088
37724
|
}
|
|
37089
|
-
visitBoundEvent(
|
|
37090
|
-
this.visitAst(
|
|
37725
|
+
visitBoundEvent(attribute2) {
|
|
37726
|
+
this.visitAst(attribute2.handler);
|
|
37091
37727
|
}
|
|
37092
37728
|
visitText(text2) {
|
|
37093
37729
|
}
|
|
@@ -37103,7 +37739,7 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor2 {
|
|
|
37103
37739
|
}
|
|
37104
37740
|
};
|
|
37105
37741
|
|
|
37106
|
-
// bazel-out/
|
|
37742
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
|
|
37107
37743
|
var InvalidBananaInBoxCheck = class extends TemplateCheckWithVisitor {
|
|
37108
37744
|
constructor() {
|
|
37109
37745
|
super(...arguments);
|
|
@@ -37128,7 +37764,7 @@ var factory = {
|
|
|
37128
37764
|
create: () => new InvalidBananaInBoxCheck()
|
|
37129
37765
|
};
|
|
37130
37766
|
|
|
37131
|
-
// bazel-out/
|
|
37767
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.mjs
|
|
37132
37768
|
var KNOWN_CONTROL_FLOW_DIRECTIVES = /* @__PURE__ */ new Map([
|
|
37133
37769
|
["ngIf", "NgIf"],
|
|
37134
37770
|
["ngFor", "NgFor"],
|
|
@@ -37172,7 +37808,7 @@ var factory2 = {
|
|
|
37172
37808
|
}
|
|
37173
37809
|
};
|
|
37174
37810
|
|
|
37175
|
-
// bazel-out/
|
|
37811
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.mjs
|
|
37176
37812
|
var MissingNgForOfLetCheck = class extends TemplateCheckWithVisitor {
|
|
37177
37813
|
constructor() {
|
|
37178
37814
|
super(...arguments);
|
|
@@ -37204,7 +37840,7 @@ var factory3 = {
|
|
|
37204
37840
|
create: () => new MissingNgForOfLetCheck()
|
|
37205
37841
|
};
|
|
37206
37842
|
|
|
37207
|
-
// bazel-out/
|
|
37843
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
|
|
37208
37844
|
var import_typescript87 = __toESM(require("typescript"), 1);
|
|
37209
37845
|
var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
37210
37846
|
constructor() {
|
|
@@ -37248,7 +37884,7 @@ var factory4 = {
|
|
|
37248
37884
|
}
|
|
37249
37885
|
};
|
|
37250
37886
|
|
|
37251
|
-
// bazel-out/
|
|
37887
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.mjs
|
|
37252
37888
|
var import_typescript88 = __toESM(require("typescript"), 1);
|
|
37253
37889
|
var OptionalChainNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
37254
37890
|
constructor() {
|
|
@@ -37293,7 +37929,7 @@ var factory5 = {
|
|
|
37293
37929
|
}
|
|
37294
37930
|
};
|
|
37295
37931
|
|
|
37296
|
-
// bazel-out/
|
|
37932
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.mjs
|
|
37297
37933
|
var STYLE_SUFFIXES = ["px", "%", "em"];
|
|
37298
37934
|
var SuffixNotSupportedCheck = class extends TemplateCheckWithVisitor {
|
|
37299
37935
|
constructor() {
|
|
@@ -37316,7 +37952,7 @@ var factory6 = {
|
|
|
37316
37952
|
create: () => new SuffixNotSupportedCheck()
|
|
37317
37953
|
};
|
|
37318
37954
|
|
|
37319
|
-
// bazel-out/
|
|
37955
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.mjs
|
|
37320
37956
|
var TextAttributeNotBindingSpec = class extends TemplateCheckWithVisitor {
|
|
37321
37957
|
constructor() {
|
|
37322
37958
|
super(...arguments);
|
|
@@ -37354,10 +37990,10 @@ var factory7 = {
|
|
|
37354
37990
|
create: () => new TextAttributeNotBindingSpec()
|
|
37355
37991
|
};
|
|
37356
37992
|
|
|
37357
|
-
// bazel-out/
|
|
37993
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
37358
37994
|
var import_typescript89 = __toESM(require("typescript"), 1);
|
|
37359
37995
|
|
|
37360
|
-
// bazel-out/
|
|
37996
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
|
|
37361
37997
|
var DiagnosticCategoryLabel;
|
|
37362
37998
|
(function(DiagnosticCategoryLabel2) {
|
|
37363
37999
|
DiagnosticCategoryLabel2["Warning"] = "warning";
|
|
@@ -37365,7 +38001,7 @@ var DiagnosticCategoryLabel;
|
|
|
37365
38001
|
DiagnosticCategoryLabel2["Suppress"] = "suppress";
|
|
37366
38002
|
})(DiagnosticCategoryLabel || (DiagnosticCategoryLabel = {}));
|
|
37367
38003
|
|
|
37368
|
-
// bazel-out/
|
|
38004
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
37369
38005
|
var ExtendedTemplateCheckerImpl = class {
|
|
37370
38006
|
constructor(templateTypeChecker, typeChecker, templateCheckFactories, options) {
|
|
37371
38007
|
var _a2, _b2, _c2, _d2, _e2;
|
|
@@ -37417,7 +38053,7 @@ function assertNever(value) {
|
|
|
37417
38053
|
${value}`);
|
|
37418
38054
|
}
|
|
37419
38055
|
|
|
37420
|
-
// bazel-out/
|
|
38056
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
|
|
37421
38057
|
var ALL_DIAGNOSTIC_FACTORIES = [
|
|
37422
38058
|
factory,
|
|
37423
38059
|
factory4,
|
|
@@ -37428,7 +38064,7 @@ var ALL_DIAGNOSTIC_FACTORIES = [
|
|
|
37428
38064
|
factory6
|
|
37429
38065
|
];
|
|
37430
38066
|
|
|
37431
|
-
// bazel-out/
|
|
38067
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
37432
38068
|
var CompilationTicketKind;
|
|
37433
38069
|
(function(CompilationTicketKind2) {
|
|
37434
38070
|
CompilationTicketKind2[CompilationTicketKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -37884,7 +38520,7 @@ var NgCompiler = class {
|
|
|
37884
38520
|
return diagnostics;
|
|
37885
38521
|
}
|
|
37886
38522
|
makeCompilation() {
|
|
37887
|
-
var _a2, _b2;
|
|
38523
|
+
var _a2, _b2, _c2;
|
|
37888
38524
|
const checker = this.inputProgram.getTypeChecker();
|
|
37889
38525
|
const reflector = new TypeScriptReflectionHost(checker);
|
|
37890
38526
|
let refEmitter;
|
|
@@ -37955,16 +38591,20 @@ var NgCompiler = class {
|
|
|
37955
38591
|
}
|
|
37956
38592
|
const cycleHandlingStrategy = compilationMode === CompilationMode.FULL ? 0 : 1;
|
|
37957
38593
|
const strictCtorDeps = this.options.strictInjectionParameters || false;
|
|
37958
|
-
const
|
|
38594
|
+
const supportJitMode = (_a2 = this.options.supportJitMode) != null ? _a2 : true;
|
|
38595
|
+
const supportTestBed = (_b2 = this.options.supportTestBed) != null ? _b2 : true;
|
|
37959
38596
|
if (supportTestBed === false && compilationMode === CompilationMode.PARTIAL) {
|
|
37960
38597
|
throw new Error('TestBed support ("supportTestBed" option) cannot be disabled in partial compilation mode.');
|
|
37961
38598
|
}
|
|
38599
|
+
if (supportJitMode === false && compilationMode === CompilationMode.PARTIAL) {
|
|
38600
|
+
throw new Error('JIT mode support ("supportJitMode" option) cannot be disabled in partial compilation mode.');
|
|
38601
|
+
}
|
|
37962
38602
|
const handlers = [
|
|
37963
|
-
new ComponentDecoratorHandler(reflector, evaluator, metaRegistry, metaReader, scopeReader, depScopeReader, ngModuleScopeRegistry, typeCheckScopeRegistry, resourceRegistry, isCore, strictCtorDeps, this.resourceManager, this.adapter.rootDirs, this.options.preserveWhitespaces || false, this.options.i18nUseExternalIds !== false, this.options.enableI18nLegacyMessageIdFormat !== false, this.usePoisonedData, this.options.i18nNormalizeLineEndingsInICUs === true, this.moduleResolver, this.cycleAnalyzer, cycleHandlingStrategy, refEmitter, referencesRegistry, this.incrementalCompilation.depGraph, injectableRegistry, semanticDepGraphUpdater, this.closureCompilerEnabled, this.delegatingPerfRecorder, hostDirectivesResolver, supportTestBed),
|
|
38603
|
+
new ComponentDecoratorHandler(reflector, evaluator, metaRegistry, metaReader, scopeReader, depScopeReader, ngModuleScopeRegistry, typeCheckScopeRegistry, resourceRegistry, isCore, strictCtorDeps, this.resourceManager, this.adapter.rootDirs, this.options.preserveWhitespaces || false, this.options.i18nUseExternalIds !== false, this.options.enableI18nLegacyMessageIdFormat !== false, this.usePoisonedData, this.options.i18nNormalizeLineEndingsInICUs === true, this.moduleResolver, this.cycleAnalyzer, cycleHandlingStrategy, refEmitter, referencesRegistry, this.incrementalCompilation.depGraph, injectableRegistry, semanticDepGraphUpdater, this.closureCompilerEnabled, this.delegatingPerfRecorder, hostDirectivesResolver, supportTestBed, compilationMode),
|
|
37964
38604
|
new DirectiveDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, metaReader, injectableRegistry, refEmitter, referencesRegistry, isCore, strictCtorDeps, semanticDepGraphUpdater, this.closureCompilerEnabled, this.delegatingPerfRecorder, supportTestBed),
|
|
37965
38605
|
new PipeDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, injectableRegistry, isCore, this.delegatingPerfRecorder, supportTestBed),
|
|
37966
38606
|
new InjectableDecoratorHandler(reflector, evaluator, isCore, strictCtorDeps, injectableRegistry, this.delegatingPerfRecorder, supportTestBed),
|
|
37967
|
-
new NgModuleDecoratorHandler(reflector, evaluator, metaReader, metaRegistry, ngModuleScopeRegistry, referencesRegistry, exportedProviderStatusResolver, semanticDepGraphUpdater, isCore, refEmitter, this.closureCompilerEnabled, (
|
|
38607
|
+
new NgModuleDecoratorHandler(reflector, evaluator, metaReader, metaRegistry, ngModuleScopeRegistry, referencesRegistry, exportedProviderStatusResolver, semanticDepGraphUpdater, isCore, refEmitter, this.closureCompilerEnabled, (_c2 = this.options.onlyPublishPublicTypingsForNgModules) != null ? _c2 : false, injectableRegistry, this.delegatingPerfRecorder, supportTestBed, supportJitMode, compilationMode)
|
|
37968
38608
|
];
|
|
37969
38609
|
const traitCompiler = new TraitCompiler(handlers, reflector, this.delegatingPerfRecorder, this.incrementalCompilation, this.options.compileNonExportedClasses !== false, compilationMode, dtsTransforms, semanticDepGraphUpdater, this.adapter);
|
|
37970
38610
|
const notifyingDriver = new NotifyingProgramDriverWrapper(this.programDriver, (program) => {
|
|
@@ -38151,7 +38791,7 @@ function versionMapFromProgram(program, driver) {
|
|
|
38151
38791
|
return versions;
|
|
38152
38792
|
}
|
|
38153
38793
|
|
|
38154
|
-
// bazel-out/
|
|
38794
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
|
|
38155
38795
|
var import_typescript92 = __toESM(require("typescript"), 1);
|
|
38156
38796
|
var DelegatingCompilerHost2 = class {
|
|
38157
38797
|
constructor(delegate) {
|
|
@@ -38284,7 +38924,7 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
|
|
|
38284
38924
|
}
|
|
38285
38925
|
};
|
|
38286
38926
|
|
|
38287
|
-
// bazel-out/
|
|
38927
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
38288
38928
|
var NgtscProgram = class {
|
|
38289
38929
|
constructor(rootNames, options, delegateHost, oldProgram) {
|
|
38290
38930
|
this.options = options;
|
|
@@ -38502,21 +39142,21 @@ function mergeEmitResults(emitResults) {
|
|
|
38502
39142
|
return { diagnostics, emitSkipped, emittedFiles };
|
|
38503
39143
|
}
|
|
38504
39144
|
|
|
38505
|
-
// bazel-out/
|
|
39145
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
|
|
38506
39146
|
function createProgram({ rootNames, options, host, oldProgram }) {
|
|
38507
39147
|
return new NgtscProgram(rootNames, options, host, oldProgram);
|
|
38508
39148
|
}
|
|
38509
39149
|
|
|
38510
|
-
// bazel-out/
|
|
39150
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
38511
39151
|
var import_typescript96 = __toESM(require("typescript"), 1);
|
|
38512
39152
|
|
|
38513
|
-
// bazel-out/
|
|
39153
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
|
|
38514
39154
|
var import_typescript95 = __toESM(require("typescript"), 1);
|
|
38515
39155
|
|
|
38516
|
-
// bazel-out/
|
|
39156
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/downlevel_decorators_transform/downlevel_decorators_transform.mjs
|
|
38517
39157
|
var import_typescript97 = __toESM(require("typescript"), 1);
|
|
38518
39158
|
|
|
38519
|
-
// bazel-out/
|
|
39159
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/private/tooling.mjs
|
|
38520
39160
|
var GLOBAL_DEFS_FOR_TERSER = {
|
|
38521
39161
|
ngDevMode: false,
|
|
38522
39162
|
ngI18nClosureMode: false
|
|
@@ -38525,7 +39165,7 @@ var GLOBAL_DEFS_FOR_TERSER_WITH_AOT = __spreadProps(__spreadValues({}, GLOBAL_DE
|
|
|
38525
39165
|
ngJitMode: false
|
|
38526
39166
|
});
|
|
38527
39167
|
|
|
38528
|
-
// bazel-out/
|
|
39168
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/logging/src/logger.mjs
|
|
38529
39169
|
var LogLevel;
|
|
38530
39170
|
(function(LogLevel2) {
|
|
38531
39171
|
LogLevel2[LogLevel2["debug"] = 0] = "debug";
|
|
@@ -38534,7 +39174,7 @@ var LogLevel;
|
|
|
38534
39174
|
LogLevel2[LogLevel2["error"] = 3] = "error";
|
|
38535
39175
|
})(LogLevel || (LogLevel = {}));
|
|
38536
39176
|
|
|
38537
|
-
// bazel-out/
|
|
39177
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/logging/src/console_logger.mjs
|
|
38538
39178
|
var RESET = "\x1B[0m";
|
|
38539
39179
|
var RED = "\x1B[31m";
|
|
38540
39180
|
var YELLOW = "\x1B[33m";
|
|
@@ -38543,18 +39183,18 @@ var DEBUG = `${BLUE}Debug:${RESET}`;
|
|
|
38543
39183
|
var WARN = `${YELLOW}Warning:${RESET}`;
|
|
38544
39184
|
var ERROR = `${RED}Error:${RESET}`;
|
|
38545
39185
|
|
|
38546
|
-
// bazel-out/
|
|
39186
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/index.mjs
|
|
38547
39187
|
setFileSystem(new NodeJSFileSystem());
|
|
38548
39188
|
|
|
38549
|
-
// bazel-out/
|
|
39189
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/index.mjs
|
|
38550
39190
|
var import_fs2 = require("fs");
|
|
38551
39191
|
var import_path8 = require("path");
|
|
38552
39192
|
var import_typescript110 = __toESM(require("typescript"), 1);
|
|
38553
39193
|
|
|
38554
|
-
// bazel-out/
|
|
39194
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
|
|
38555
39195
|
var import_typescript99 = __toESM(require("typescript"), 1);
|
|
38556
39196
|
|
|
38557
|
-
// bazel-out/
|
|
39197
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/import_manager.mjs
|
|
38558
39198
|
var import_path4 = require("path");
|
|
38559
39199
|
var import_typescript98 = __toESM(require("typescript"), 1);
|
|
38560
39200
|
var ImportManager2 = class {
|
|
@@ -38738,7 +39378,7 @@ ${text2}`;
|
|
|
38738
39378
|
}
|
|
38739
39379
|
};
|
|
38740
39380
|
|
|
38741
|
-
// bazel-out/
|
|
39381
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
|
|
38742
39382
|
var ChangeTracker = class {
|
|
38743
39383
|
constructor(_printer, _importRemapper) {
|
|
38744
39384
|
__publicField(this, "_printer");
|
|
@@ -38794,7 +39434,7 @@ function normalizePath(path3) {
|
|
|
38794
39434
|
return path3.replace(/\\/g, "/");
|
|
38795
39435
|
}
|
|
38796
39436
|
|
|
38797
|
-
// bazel-out/
|
|
39437
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
|
|
38798
39438
|
var import_core13 = require("@angular-devkit/core");
|
|
38799
39439
|
function getProjectTsConfigPaths(tree) {
|
|
38800
39440
|
return __async(this, null, function* () {
|
|
@@ -38874,11 +39514,11 @@ function getWorkspace(tree) {
|
|
|
38874
39514
|
});
|
|
38875
39515
|
}
|
|
38876
39516
|
|
|
38877
|
-
// bazel-out/
|
|
39517
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
38878
39518
|
var import_path5 = require("path");
|
|
38879
39519
|
var import_typescript101 = __toESM(require("typescript"), 1);
|
|
38880
39520
|
|
|
38881
|
-
// bazel-out/
|
|
39521
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
|
|
38882
39522
|
var path2 = __toESM(require("path"), 1);
|
|
38883
39523
|
var import_typescript100 = __toESM(require("typescript"), 1);
|
|
38884
39524
|
function parseTsconfigFile(tsconfigPath, basePath) {
|
|
@@ -38895,7 +39535,7 @@ function parseTsconfigFile(tsconfigPath, basePath) {
|
|
|
38895
39535
|
return import_typescript100.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
|
|
38896
39536
|
}
|
|
38897
39537
|
|
|
38898
|
-
// bazel-out/
|
|
39538
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
38899
39539
|
function createProgramOptions(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles, optionOverrides) {
|
|
38900
39540
|
tsconfigPath = (0, import_path5.resolve)(basePath, tsconfigPath);
|
|
38901
39541
|
const parsed = parseTsconfigFile(tsconfigPath, (0, import_path5.dirname)(tsconfigPath));
|
|
@@ -38924,13 +39564,13 @@ function canMigrateFile(basePath, sourceFile, program) {
|
|
|
38924
39564
|
return !(0, import_path5.relative)(basePath, sourceFile.fileName).startsWith("..");
|
|
38925
39565
|
}
|
|
38926
39566
|
|
|
38927
|
-
// bazel-out/
|
|
39567
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/prune-modules.mjs
|
|
38928
39568
|
var import_typescript106 = __toESM(require("typescript"), 1);
|
|
38929
39569
|
|
|
38930
|
-
// bazel-out/
|
|
39570
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
|
|
38931
39571
|
var import_typescript103 = __toESM(require("typescript"), 1);
|
|
38932
39572
|
|
|
38933
|
-
// bazel-out/
|
|
39573
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
|
|
38934
39574
|
var import_typescript102 = __toESM(require("typescript"), 1);
|
|
38935
39575
|
function getImportOfIdentifier(typeChecker, node) {
|
|
38936
39576
|
const symbol = typeChecker.getSymbolAtLocation(node);
|
|
@@ -38981,7 +39621,7 @@ function findImportSpecifier(nodes, specifierName) {
|
|
|
38981
39621
|
});
|
|
38982
39622
|
}
|
|
38983
39623
|
|
|
38984
|
-
// bazel-out/
|
|
39624
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
|
|
38985
39625
|
function getCallDecoratorImport(typeChecker, decorator) {
|
|
38986
39626
|
if (!import_typescript103.default.isCallExpression(decorator.expression) || !import_typescript103.default.isIdentifier(decorator.expression.expression)) {
|
|
38987
39627
|
return null;
|
|
@@ -38990,7 +39630,7 @@ function getCallDecoratorImport(typeChecker, decorator) {
|
|
|
38990
39630
|
return getImportOfIdentifier(typeChecker, identifier);
|
|
38991
39631
|
}
|
|
38992
39632
|
|
|
38993
|
-
// bazel-out/
|
|
39633
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/ng_decorators.mjs
|
|
38994
39634
|
function getAngularDecorators(typeChecker, decorators) {
|
|
38995
39635
|
return decorators.map((node) => ({ node, importData: getCallDecoratorImport(typeChecker, node) })).filter(({ importData }) => importData && importData.importModule.startsWith("@angular/")).map(({ node, importData }) => ({
|
|
38996
39636
|
node,
|
|
@@ -39000,7 +39640,7 @@ function getAngularDecorators(typeChecker, decorators) {
|
|
|
39000
39640
|
}));
|
|
39001
39641
|
}
|
|
39002
39642
|
|
|
39003
|
-
// bazel-out/
|
|
39643
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/nodes.mjs
|
|
39004
39644
|
var import_typescript104 = __toESM(require("typescript"), 1);
|
|
39005
39645
|
function closestNode(node, predicate) {
|
|
39006
39646
|
let current = node.parent;
|
|
@@ -39013,7 +39653,7 @@ function closestNode(node, predicate) {
|
|
|
39013
39653
|
return null;
|
|
39014
39654
|
}
|
|
39015
39655
|
|
|
39016
|
-
// bazel-out/
|
|
39656
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/util.mjs
|
|
39017
39657
|
var import_path6 = require("path");
|
|
39018
39658
|
var import_typescript105 = __toESM(require("typescript"), 1);
|
|
39019
39659
|
var UniqueItemTracker = class {
|
|
@@ -39189,7 +39829,7 @@ function isClassReferenceInAngularModule(node, className, moduleName, typeChecke
|
|
|
39189
39829
|
}));
|
|
39190
39830
|
}
|
|
39191
39831
|
|
|
39192
|
-
// bazel-out/
|
|
39832
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/prune-modules.mjs
|
|
39193
39833
|
function pruneNgModules(program, host, basePath, rootFileNames, sourceFiles, printer, importRemapper, referenceLookupExcludedFiles) {
|
|
39194
39834
|
const filesToRemove = /* @__PURE__ */ new Set();
|
|
39195
39835
|
const tracker = new ChangeTracker(printer, importRemapper);
|
|
@@ -39388,14 +40028,14 @@ function findNgModuleDecorator(node, typeChecker) {
|
|
|
39388
40028
|
return decorators.find((decorator) => decorator.name === "NgModule") || null;
|
|
39389
40029
|
}
|
|
39390
40030
|
|
|
39391
|
-
// bazel-out/
|
|
40031
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/standalone-bootstrap.mjs
|
|
39392
40032
|
var import_path7 = require("path");
|
|
39393
40033
|
var import_typescript109 = __toESM(require("typescript"), 1);
|
|
39394
40034
|
|
|
39395
|
-
// bazel-out/
|
|
40035
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/to-standalone.mjs
|
|
39396
40036
|
var import_typescript108 = __toESM(require("typescript"), 1);
|
|
39397
40037
|
|
|
39398
|
-
// bazel-out/
|
|
40038
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/symbol.mjs
|
|
39399
40039
|
var import_typescript107 = __toESM(require("typescript"), 1);
|
|
39400
40040
|
function isReferenceToImport(typeChecker, node, importSpecifier) {
|
|
39401
40041
|
var _a2, _b2;
|
|
@@ -39404,7 +40044,7 @@ function isReferenceToImport(typeChecker, node, importSpecifier) {
|
|
|
39404
40044
|
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];
|
|
39405
40045
|
}
|
|
39406
40046
|
|
|
39407
|
-
// bazel-out/
|
|
40047
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/to-standalone.mjs
|
|
39408
40048
|
function toStandalone(sourceFiles, program, printer, fileImportRemapper, componentImportRemapper) {
|
|
39409
40049
|
const templateTypeChecker = program.compiler.getTemplateTypeChecker();
|
|
39410
40050
|
const typeChecker = program.getTsProgram().getTypeChecker();
|
|
@@ -39767,7 +40407,7 @@ function isStandaloneDeclaration(node, declarationsInMigration, templateTypeChec
|
|
|
39767
40407
|
return metadata != null && metadata.isStandalone;
|
|
39768
40408
|
}
|
|
39769
40409
|
|
|
39770
|
-
// bazel-out/
|
|
40410
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/standalone-bootstrap.mjs
|
|
39771
40411
|
function toStandaloneBootstrap(program, host, basePath, rootFileNames, sourceFiles, printer, importRemapper, referenceLookupExcludedFiles, componentImportRemapper) {
|
|
39772
40412
|
const tracker = new ChangeTracker(printer, importRemapper);
|
|
39773
40413
|
const typeChecker = program.getTsProgram().getTypeChecker();
|
|
@@ -40144,7 +40784,7 @@ function hasImport(program, rootFileNames, moduleName) {
|
|
|
40144
40784
|
return false;
|
|
40145
40785
|
}
|
|
40146
40786
|
|
|
40147
|
-
// bazel-out/
|
|
40787
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/index.mjs
|
|
40148
40788
|
var MigrationMode;
|
|
40149
40789
|
(function(MigrationMode2) {
|
|
40150
40790
|
MigrationMode2["toStandalone"] = "convert-to-standalone";
|