@angular/core 16.0.0 → 16.1.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/src/application_ref.mjs +60 -55
- package/esm2022/src/compiler/compiler_facade_interface.mjs +1 -1
- package/esm2022/src/di/injectable.mjs +2 -1
- package/esm2022/src/di/metadata.mjs +6 -5
- package/esm2022/src/di/metadata_attr.mjs +2 -1
- package/esm2022/src/errors.mjs +1 -1
- package/esm2022/src/hydration/annotate.mjs +1 -1
- package/esm2022/src/hydration/api.mjs +2 -2
- package/esm2022/src/hydration/skip_hydration.mjs +12 -1
- package/esm2022/src/hydration/utils.mjs +9 -3
- package/esm2022/src/linker/element_ref.mjs +1 -1
- package/esm2022/src/linker/template_ref.mjs +6 -3
- package/esm2022/src/linker/view_container_ref.mjs +16 -6
- package/esm2022/src/metadata/di.mjs +5 -4
- package/esm2022/src/metadata/directives.mjs +7 -7
- package/esm2022/src/metadata/ng_module.mjs +2 -1
- package/esm2022/src/render/api.mjs +1 -1
- package/esm2022/src/render3/component.mjs +4 -1
- package/esm2022/src/render3/component_ref.mjs +14 -3
- package/esm2022/src/render3/definition.mjs +9 -3
- package/esm2022/src/render3/di.mjs +2 -2
- package/esm2022/src/render3/hooks.mjs +3 -3
- package/esm2022/src/render3/instructions/change_detection.mjs +37 -53
- package/esm2022/src/render3/instructions/element_validation.mjs +2 -2
- package/esm2022/src/render3/instructions/shared.mjs +15 -4
- package/esm2022/src/render3/interfaces/definition.mjs +1 -1
- package/esm2022/src/render3/interfaces/document.mjs +6 -4
- package/esm2022/src/render3/interfaces/node.mjs +1 -1
- package/esm2022/src/render3/interfaces/public_definitions.mjs +1 -1
- package/esm2022/src/render3/interfaces/view.mjs +1 -1
- package/esm2022/src/render3/jit/directive.mjs +2 -1
- package/esm2022/src/render3/node_manipulation.mjs +7 -1
- package/esm2022/src/transfer_state.mjs +8 -7
- package/esm2022/src/util/assert.mjs +2 -5
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/logger.mjs +3 -3
- package/esm2022/testing/src/test_bed.mjs +4 -4
- package/fesm2022/core.mjs +252 -192
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/rxjs-interop.mjs +1 -1
- package/fesm2022/rxjs-interop.mjs.map +1 -1
- package/fesm2022/testing.mjs +179 -130
- package/fesm2022/testing.mjs.map +1 -1
- package/index.d.ts +54 -35
- package/package.json +1 -1
- package/rxjs-interop/index.d.ts +1 -1
- package/schematics/migrations/guard-and-resolve-interfaces/bundle.js +13 -13
- package/schematics/migrations/remove-module-id/bundle.js +14 -14
- package/schematics/ng-generate/standalone-migration/bundle.js +614 -411
- package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
- package/testing/index.d.ts +1 -1
|
@@ -63,7 +63,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
63
63
|
});
|
|
64
64
|
};
|
|
65
65
|
|
|
66
|
-
// bazel-out/
|
|
66
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/index.mjs
|
|
67
67
|
var standalone_migration_exports = {};
|
|
68
68
|
__export(standalone_migration_exports, {
|
|
69
69
|
default: () => standalone_migration_default
|
|
@@ -71,10 +71,10 @@ __export(standalone_migration_exports, {
|
|
|
71
71
|
module.exports = __toCommonJS(standalone_migration_exports);
|
|
72
72
|
var import_schematics = require("@angular-devkit/schematics");
|
|
73
73
|
|
|
74
|
-
// bazel-out/
|
|
74
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/compiler_host.mjs
|
|
75
75
|
var import_typescript = __toESM(require("typescript"), 1);
|
|
76
76
|
|
|
77
|
-
// bazel-out/
|
|
77
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/invalid_file_system.mjs
|
|
78
78
|
var InvalidFileSystem = class {
|
|
79
79
|
exists(path3) {
|
|
80
80
|
throw makeError();
|
|
@@ -162,7 +162,7 @@ function makeError() {
|
|
|
162
162
|
return new Error("FileSystem has not been configured. Please call `setFileSystem()` before calling this method.");
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
-
// bazel-out/
|
|
165
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/util.mjs
|
|
166
166
|
var TS_DTS_JS_EXTENSION = /(?:\.d)?\.ts$|\.js$/;
|
|
167
167
|
function stripExtension(path3) {
|
|
168
168
|
return path3.replace(TS_DTS_JS_EXTENSION, "");
|
|
@@ -175,7 +175,7 @@ function getSourceFileOrError(program, fileName) {
|
|
|
175
175
|
return sf;
|
|
176
176
|
}
|
|
177
177
|
|
|
178
|
-
// bazel-out/
|
|
178
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/helpers.mjs
|
|
179
179
|
var fs = new InvalidFileSystem();
|
|
180
180
|
function getFileSystem() {
|
|
181
181
|
return fs;
|
|
@@ -219,7 +219,7 @@ function toRelativeImport(relativePath) {
|
|
|
219
219
|
return isLocalRelativePath(relativePath) ? `./${relativePath}` : relativePath;
|
|
220
220
|
}
|
|
221
221
|
|
|
222
|
-
// bazel-out/
|
|
222
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/logical.mjs
|
|
223
223
|
var LogicalProjectPath = {
|
|
224
224
|
relativePathBetween: function(from, to) {
|
|
225
225
|
const relativePath = relative(dirname(resolve(from)), resolve(to));
|
|
@@ -265,7 +265,7 @@ function isWithinBasePath(base, path3) {
|
|
|
265
265
|
return isLocalRelativePath(relative(base, path3));
|
|
266
266
|
}
|
|
267
267
|
|
|
268
|
-
// bazel-out/
|
|
268
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/node_js_file_system.mjs
|
|
269
269
|
var import_fs = __toESM(require("fs"), 1);
|
|
270
270
|
var import_module = __toESM(require("module"), 1);
|
|
271
271
|
var p = __toESM(require("path"), 1);
|
|
@@ -373,7 +373,7 @@ function toggleCase(str) {
|
|
|
373
373
|
return str.replace(/\w/g, (ch) => ch.toUpperCase() === ch ? ch.toLowerCase() : ch.toUpperCase());
|
|
374
374
|
}
|
|
375
375
|
|
|
376
|
-
// bazel-out/
|
|
376
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/selector.mjs
|
|
377
377
|
var _SELECTOR_REGEXP = new RegExp(
|
|
378
378
|
`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,
|
|
379
379
|
"g"
|
|
@@ -681,7 +681,7 @@ var SelectorContext = class {
|
|
|
681
681
|
}
|
|
682
682
|
};
|
|
683
683
|
|
|
684
|
-
// bazel-out/
|
|
684
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/core.mjs
|
|
685
685
|
var emitDistinctChangesOnlyDefaultValue = true;
|
|
686
686
|
var ViewEncapsulation;
|
|
687
687
|
(function(ViewEncapsulation2) {
|
|
@@ -744,7 +744,7 @@ function parseSelectorToR3Selector(selector) {
|
|
|
744
744
|
return selector ? CssSelector.parse(selector).map(parserSelectorToR3Selector) : [];
|
|
745
745
|
}
|
|
746
746
|
|
|
747
|
-
// bazel-out/
|
|
747
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/big_integer.mjs
|
|
748
748
|
var BigInteger = class {
|
|
749
749
|
static zero() {
|
|
750
750
|
return new BigInteger([0]);
|
|
@@ -836,7 +836,7 @@ var BigIntExponentiation = class {
|
|
|
836
836
|
}
|
|
837
837
|
};
|
|
838
838
|
|
|
839
|
-
// bazel-out/
|
|
839
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/digest.mjs
|
|
840
840
|
var textEncoder;
|
|
841
841
|
function digest(message) {
|
|
842
842
|
return message.id || computeDigest(message);
|
|
@@ -1099,7 +1099,7 @@ function wordsToDecimalString(hi, lo) {
|
|
|
1099
1099
|
return decimal.toString();
|
|
1100
1100
|
}
|
|
1101
1101
|
|
|
1102
|
-
// bazel-out/
|
|
1102
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/output_ast.mjs
|
|
1103
1103
|
var TypeModifier;
|
|
1104
1104
|
(function(TypeModifier2) {
|
|
1105
1105
|
TypeModifier2[TypeModifier2["None"] = 0] = "None";
|
|
@@ -1881,6 +1881,9 @@ var RecursiveAstVisitor = class {
|
|
|
1881
1881
|
visitMapType(type, context) {
|
|
1882
1882
|
return this.visitType(type, context);
|
|
1883
1883
|
}
|
|
1884
|
+
visitTransplantedType(type, context) {
|
|
1885
|
+
return type;
|
|
1886
|
+
}
|
|
1884
1887
|
visitWrappedNodeExpr(ast, context) {
|
|
1885
1888
|
return ast;
|
|
1886
1889
|
}
|
|
@@ -2084,7 +2087,7 @@ function serializeTags(tags) {
|
|
|
2084
2087
|
return out;
|
|
2085
2088
|
}
|
|
2086
2089
|
|
|
2087
|
-
// bazel-out/
|
|
2090
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/constant_pool.mjs
|
|
2088
2091
|
var CONSTANT_PREFIX = "_c";
|
|
2089
2092
|
var UNKNOWN_VALUE_KEY = variable("<unknown>");
|
|
2090
2093
|
var KEY_CONTEXT = {};
|
|
@@ -2253,7 +2256,7 @@ function isLongStringLiteral(expr) {
|
|
|
2253
2256
|
return expr instanceof LiteralExpr && typeof expr.value === "string" && expr.value.length >= POOL_INCLUSION_LENGTH_THRESHOLD_FOR_STRINGS;
|
|
2254
2257
|
}
|
|
2255
2258
|
|
|
2256
|
-
// bazel-out/
|
|
2259
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_identifiers.mjs
|
|
2257
2260
|
var CORE = "@angular/core";
|
|
2258
2261
|
var _Identifiers = class {
|
|
2259
2262
|
};
|
|
@@ -2808,7 +2811,7 @@ var Identifiers = _Identifiers;
|
|
|
2808
2811
|
_Identifiers.validateIframeAttribute = { name: "\u0275\u0275validateIframeAttribute", moduleName: CORE };
|
|
2809
2812
|
})();
|
|
2810
2813
|
|
|
2811
|
-
// bazel-out/
|
|
2814
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/util.mjs
|
|
2812
2815
|
var DASH_CASE_REGEXP = /-+([a-z0-9])/g;
|
|
2813
2816
|
function dashCaseToCamelCase(input) {
|
|
2814
2817
|
return input.replace(DASH_CASE_REGEXP, (...m) => m[1].toUpperCase());
|
|
@@ -2896,7 +2899,7 @@ function partitionArray(arr, conditionFn) {
|
|
|
2896
2899
|
return [truthy, falsy];
|
|
2897
2900
|
}
|
|
2898
2901
|
|
|
2899
|
-
// bazel-out/
|
|
2902
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/source_map.mjs
|
|
2900
2903
|
var VERSION = 3;
|
|
2901
2904
|
var JS_B64_PREFIX = "# sourceMappingURL=data:application/json;base64,";
|
|
2902
2905
|
var SourceMapGenerator = class {
|
|
@@ -3025,7 +3028,7 @@ function toBase64Digit(value) {
|
|
|
3025
3028
|
return B64_DIGITS[value];
|
|
3026
3029
|
}
|
|
3027
3030
|
|
|
3028
|
-
// bazel-out/
|
|
3031
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/abstract_emitter.mjs
|
|
3029
3032
|
var _SINGLE_QUOTE_ESCAPE_STRING_RE = /'|\\|\n|\r|\$/g;
|
|
3030
3033
|
var _LEGAL_IDENTIFIER_RE = /^[$A-Z_][0-9A-Z_$]*$/i;
|
|
3031
3034
|
var _INDENT_WITH = " ";
|
|
@@ -3500,7 +3503,7 @@ function _createIndent(count) {
|
|
|
3500
3503
|
return res;
|
|
3501
3504
|
}
|
|
3502
3505
|
|
|
3503
|
-
// bazel-out/
|
|
3506
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/util.mjs
|
|
3504
3507
|
function typeWithParameters(type, numParams) {
|
|
3505
3508
|
if (numParams === 0) {
|
|
3506
3509
|
return expressionType(type);
|
|
@@ -3568,7 +3571,7 @@ function generateForwardRef(expr) {
|
|
|
3568
3571
|
return importExpr(Identifiers.forwardRef).callFn([fn([], [new ReturnStatement(expr)])]);
|
|
3569
3572
|
}
|
|
3570
3573
|
|
|
3571
|
-
// bazel-out/
|
|
3574
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_factory.mjs
|
|
3572
3575
|
var R3FactoryDelegateType;
|
|
3573
3576
|
(function(R3FactoryDelegateType2) {
|
|
3574
3577
|
R3FactoryDelegateType2[R3FactoryDelegateType2["Class"] = 0] = "Class";
|
|
@@ -3713,7 +3716,7 @@ function getInjectFn(target) {
|
|
|
3713
3716
|
}
|
|
3714
3717
|
}
|
|
3715
3718
|
|
|
3716
|
-
// bazel-out/
|
|
3719
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_ast.mjs
|
|
3717
3720
|
var Comment = class {
|
|
3718
3721
|
constructor(value, sourceSpan) {
|
|
3719
3722
|
this.value = value;
|
|
@@ -3922,7 +3925,7 @@ function visitAll(visitor, nodes) {
|
|
|
3922
3925
|
const result = [];
|
|
3923
3926
|
if (visitor.visit) {
|
|
3924
3927
|
for (const node of nodes) {
|
|
3925
|
-
|
|
3928
|
+
visitor.visit(node) || node.visit(visitor);
|
|
3926
3929
|
}
|
|
3927
3930
|
} else {
|
|
3928
3931
|
for (const node of nodes) {
|
|
@@ -3935,7 +3938,7 @@ function visitAll(visitor, nodes) {
|
|
|
3935
3938
|
return result;
|
|
3936
3939
|
}
|
|
3937
3940
|
|
|
3938
|
-
// bazel-out/
|
|
3941
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/i18n_ast.mjs
|
|
3939
3942
|
var Message = class {
|
|
3940
3943
|
constructor(nodes, placeholders, placeholderToMessage, meaning, description, customId) {
|
|
3941
3944
|
this.nodes = nodes;
|
|
@@ -4098,7 +4101,7 @@ var LocalizeMessageStringVisitor = class {
|
|
|
4098
4101
|
}
|
|
4099
4102
|
};
|
|
4100
4103
|
|
|
4101
|
-
// bazel-out/
|
|
4104
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/serializer.mjs
|
|
4102
4105
|
var Serializer = class {
|
|
4103
4106
|
createNameMapper(message) {
|
|
4104
4107
|
return null;
|
|
@@ -4150,7 +4153,7 @@ var SimplePlaceholderMapper = class extends RecurseVisitor {
|
|
|
4150
4153
|
}
|
|
4151
4154
|
};
|
|
4152
4155
|
|
|
4153
|
-
// bazel-out/
|
|
4156
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/xml_helper.mjs
|
|
4154
4157
|
var _Visitor = class {
|
|
4155
4158
|
visitTag(tag) {
|
|
4156
4159
|
const strAttrs = this._serializeAttributes(tag.attrs);
|
|
@@ -4238,7 +4241,7 @@ function escapeXml(text2) {
|
|
|
4238
4241
|
return _ESCAPED_CHARS.reduce((text3, entry) => text3.replace(entry[0], entry[1]), text2);
|
|
4239
4242
|
}
|
|
4240
4243
|
|
|
4241
|
-
// bazel-out/
|
|
4244
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/xmb.mjs
|
|
4242
4245
|
var _MESSAGES_TAG = "messagebundle";
|
|
4243
4246
|
var _MESSAGE_TAG = "msg";
|
|
4244
4247
|
var _PLACEHOLDER_TAG = "ph";
|
|
@@ -4381,7 +4384,7 @@ function toPublicName(internalName) {
|
|
|
4381
4384
|
return internalName.toUpperCase().replace(/[^A-Z0-9_]/g, "_");
|
|
4382
4385
|
}
|
|
4383
4386
|
|
|
4384
|
-
// bazel-out/
|
|
4387
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/util.mjs
|
|
4385
4388
|
var CLOSURE_TRANSLATION_VAR_PREFIX = "MSG_";
|
|
4386
4389
|
var TRANSLATION_VAR_PREFIX = "i18n_";
|
|
4387
4390
|
var I18N_ATTR = "i18n";
|
|
@@ -4483,7 +4486,7 @@ function declareI18nVariable(variable2) {
|
|
|
4483
4486
|
return new DeclareVarStmt(variable2.name, void 0, INFERRED_TYPE, void 0, variable2.sourceSpan);
|
|
4484
4487
|
}
|
|
4485
4488
|
|
|
4486
|
-
// bazel-out/
|
|
4489
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/util.mjs
|
|
4487
4490
|
var UNSAFE_OBJECT_KEY_NAME_REGEXP = /[-.]/;
|
|
4488
4491
|
var TEMPORARY_NAME = "_t";
|
|
4489
4492
|
var CONTEXT_NAME = "ctx";
|
|
@@ -4691,7 +4694,7 @@ function getInstructionStatements(instructions) {
|
|
|
4691
4694
|
return statements;
|
|
4692
4695
|
}
|
|
4693
4696
|
|
|
4694
|
-
// bazel-out/
|
|
4697
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/injectable_compiler_2.mjs
|
|
4695
4698
|
function compileInjectable(meta, resolveForwardRefs) {
|
|
4696
4699
|
let result = null;
|
|
4697
4700
|
const factoryMeta = {
|
|
@@ -4779,7 +4782,7 @@ function createFactoryFunction(type) {
|
|
|
4779
4782
|
return fn([new FnParam("t", DYNAMIC_TYPE)], [new ReturnStatement(type.prop("\u0275fac").callFn([variable("t")]))]);
|
|
4780
4783
|
}
|
|
4781
4784
|
|
|
4782
|
-
// bazel-out/
|
|
4785
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/assertions.mjs
|
|
4783
4786
|
var UNUSABLE_INTERPOLATION_REGEXPS = [
|
|
4784
4787
|
/^\s*$/,
|
|
4785
4788
|
/[<>]/,
|
|
@@ -4801,7 +4804,7 @@ function assertInterpolationSymbols(identifier, value) {
|
|
|
4801
4804
|
}
|
|
4802
4805
|
}
|
|
4803
4806
|
|
|
4804
|
-
// bazel-out/
|
|
4807
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/interpolation_config.mjs
|
|
4805
4808
|
var InterpolationConfig = class {
|
|
4806
4809
|
static fromArray(markers) {
|
|
4807
4810
|
if (!markers) {
|
|
@@ -4817,7 +4820,7 @@ var InterpolationConfig = class {
|
|
|
4817
4820
|
};
|
|
4818
4821
|
var DEFAULT_INTERPOLATION_CONFIG = new InterpolationConfig("{{", "}}");
|
|
4819
4822
|
|
|
4820
|
-
// bazel-out/
|
|
4823
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/chars.mjs
|
|
4821
4824
|
var $EOF = 0;
|
|
4822
4825
|
var $BSPACE = 8;
|
|
4823
4826
|
var $TAB = 9;
|
|
@@ -4898,7 +4901,7 @@ function isQuote(code) {
|
|
|
4898
4901
|
return code === $SQ || code === $DQ || code === $BT;
|
|
4899
4902
|
}
|
|
4900
4903
|
|
|
4901
|
-
// bazel-out/
|
|
4904
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/parse_util.mjs
|
|
4902
4905
|
var ParseLocation = class {
|
|
4903
4906
|
constructor(file, offset, line, col) {
|
|
4904
4907
|
this.file = file;
|
|
@@ -5045,7 +5048,7 @@ function sanitizeIdentifier(name) {
|
|
|
5045
5048
|
return name.replace(/\W/g, "_");
|
|
5046
5049
|
}
|
|
5047
5050
|
|
|
5048
|
-
// bazel-out/
|
|
5051
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/abstract_js_emitter.mjs
|
|
5049
5052
|
var makeTemplateObjectPolyfill = '(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})';
|
|
5050
5053
|
var AbstractJsEmitterVisitor = class extends AbstractEmitterVisitor {
|
|
5051
5054
|
constructor() {
|
|
@@ -5116,7 +5119,7 @@ var AbstractJsEmitterVisitor = class extends AbstractEmitterVisitor {
|
|
|
5116
5119
|
}
|
|
5117
5120
|
};
|
|
5118
5121
|
|
|
5119
|
-
// bazel-out/
|
|
5122
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/output_jit_trusted_types.mjs
|
|
5120
5123
|
var policy;
|
|
5121
5124
|
function getPolicy() {
|
|
5122
5125
|
if (policy === void 0) {
|
|
@@ -5153,7 +5156,7 @@ function newTrustedFunctionForJIT(...args) {
|
|
|
5153
5156
|
return fn2.bind(_global);
|
|
5154
5157
|
}
|
|
5155
5158
|
|
|
5156
|
-
// bazel-out/
|
|
5159
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/output_jit.mjs
|
|
5157
5160
|
var JitEvaluator = class {
|
|
5158
5161
|
evaluateStatements(sourceUrl, statements, refResolver, createSourceMaps) {
|
|
5159
5162
|
const converter = new JitEmitterVisitor(refResolver);
|
|
@@ -5244,7 +5247,7 @@ function isUseStrictStatement(statement) {
|
|
|
5244
5247
|
return statement.isEquivalent(literal("use strict").toStmt());
|
|
5245
5248
|
}
|
|
5246
5249
|
|
|
5247
|
-
// bazel-out/
|
|
5250
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_injector_compiler.mjs
|
|
5248
5251
|
function compileInjector(meta) {
|
|
5249
5252
|
const definitionMap = new DefinitionMap();
|
|
5250
5253
|
if (meta.providers !== null) {
|
|
@@ -5261,7 +5264,7 @@ function createInjectorType(meta) {
|
|
|
5261
5264
|
return new ExpressionType(importExpr(Identifiers.InjectorDeclaration, [new ExpressionType(meta.type.type)]));
|
|
5262
5265
|
}
|
|
5263
5266
|
|
|
5264
|
-
// bazel-out/
|
|
5267
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_jit.mjs
|
|
5265
5268
|
var R3JitReflector = class {
|
|
5266
5269
|
constructor(context) {
|
|
5267
5270
|
this.context = context;
|
|
@@ -5277,7 +5280,7 @@ var R3JitReflector = class {
|
|
|
5277
5280
|
}
|
|
5278
5281
|
};
|
|
5279
5282
|
|
|
5280
|
-
// bazel-out/
|
|
5283
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_module_compiler.mjs
|
|
5281
5284
|
var R3SelectorScopeMode;
|
|
5282
5285
|
(function(R3SelectorScopeMode2) {
|
|
5283
5286
|
R3SelectorScopeMode2[R3SelectorScopeMode2["Inline"] = 0] = "Inline";
|
|
@@ -5390,7 +5393,7 @@ function tupleOfTypes(types) {
|
|
|
5390
5393
|
return types.length > 0 ? expressionType(literalArr(typeofTypes)) : NONE_TYPE;
|
|
5391
5394
|
}
|
|
5392
5395
|
|
|
5393
|
-
// bazel-out/
|
|
5396
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_pipe_compiler.mjs
|
|
5394
5397
|
function compilePipeFromMetadata(metadata) {
|
|
5395
5398
|
const definitionMapValues = [];
|
|
5396
5399
|
definitionMapValues.push({ key: "name", value: literal(metadata.pipeName), quoted: false });
|
|
@@ -5411,7 +5414,7 @@ function createPipeType(metadata) {
|
|
|
5411
5414
|
]));
|
|
5412
5415
|
}
|
|
5413
5416
|
|
|
5414
|
-
// bazel-out/
|
|
5417
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/api.mjs
|
|
5415
5418
|
var R3TemplateDependencyKind;
|
|
5416
5419
|
(function(R3TemplateDependencyKind2) {
|
|
5417
5420
|
R3TemplateDependencyKind2[R3TemplateDependencyKind2["Directive"] = 0] = "Directive";
|
|
@@ -5419,7 +5422,7 @@ var R3TemplateDependencyKind;
|
|
|
5419
5422
|
R3TemplateDependencyKind2[R3TemplateDependencyKind2["NgModule"] = 2] = "NgModule";
|
|
5420
5423
|
})(R3TemplateDependencyKind || (R3TemplateDependencyKind = {}));
|
|
5421
5424
|
|
|
5422
|
-
// bazel-out/
|
|
5425
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/expression_parser/ast.mjs
|
|
5423
5426
|
var ParserError = class {
|
|
5424
5427
|
constructor(message, input, errLocation, ctxLocation) {
|
|
5425
5428
|
this.input = input;
|
|
@@ -6085,7 +6088,7 @@ var BoundElementProperty = class {
|
|
|
6085
6088
|
}
|
|
6086
6089
|
};
|
|
6087
6090
|
|
|
6088
|
-
// bazel-out/
|
|
6091
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/compiler_util/expression_converter.mjs
|
|
6089
6092
|
var _EventHandlerVars = class {
|
|
6090
6093
|
};
|
|
6091
6094
|
var EventHandlerVars = _EventHandlerVars;
|
|
@@ -6706,7 +6709,7 @@ var BuiltinFunctionCall = class extends Call {
|
|
|
6706
6709
|
}
|
|
6707
6710
|
};
|
|
6708
6711
|
|
|
6709
|
-
// bazel-out/
|
|
6712
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/schema/dom_security_schema.mjs
|
|
6710
6713
|
var _SECURITY_SCHEMA;
|
|
6711
6714
|
function SECURITY_SCHEMA() {
|
|
6712
6715
|
if (!_SECURITY_SCHEMA) {
|
|
@@ -6764,7 +6767,7 @@ function isIframeSecuritySensitiveAttr(attrName) {
|
|
|
6764
6767
|
return IFRAME_SECURITY_SENSITIVE_ATTRS.has(attrName.toLowerCase());
|
|
6765
6768
|
}
|
|
6766
6769
|
|
|
6767
|
-
// bazel-out/
|
|
6770
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/shadow_css.mjs
|
|
6768
6771
|
var animationKeywords = /* @__PURE__ */ new Set([
|
|
6769
6772
|
"inherit",
|
|
6770
6773
|
"initial",
|
|
@@ -7224,7 +7227,7 @@ function repeatGroups(groups, multiples) {
|
|
|
7224
7227
|
}
|
|
7225
7228
|
}
|
|
7226
7229
|
|
|
7227
|
-
// bazel-out/
|
|
7230
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/tags.mjs
|
|
7228
7231
|
var TagContentType;
|
|
7229
7232
|
(function(TagContentType2) {
|
|
7230
7233
|
TagContentType2[TagContentType2["RAW_TEXT"] = 0] = "RAW_TEXT";
|
|
@@ -7257,7 +7260,7 @@ function mergeNsAndName(prefix, localName) {
|
|
|
7257
7260
|
return prefix ? `:${prefix}:${localName}` : localName;
|
|
7258
7261
|
}
|
|
7259
7262
|
|
|
7260
|
-
// bazel-out/
|
|
7263
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/element.mjs
|
|
7261
7264
|
var ElementAttributeKind;
|
|
7262
7265
|
(function(ElementAttributeKind2) {
|
|
7263
7266
|
ElementAttributeKind2[ElementAttributeKind2["Attribute"] = 0] = "Attribute";
|
|
@@ -7334,7 +7337,7 @@ function assertIsElementAttributes(attrs) {
|
|
|
7334
7337
|
}
|
|
7335
7338
|
}
|
|
7336
7339
|
|
|
7337
|
-
// bazel-out/
|
|
7340
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/enums.mjs
|
|
7338
7341
|
var OpKind;
|
|
7339
7342
|
(function(OpKind2) {
|
|
7340
7343
|
OpKind2[OpKind2["ListEnd"] = 0] = "ListEnd";
|
|
@@ -7344,11 +7347,14 @@ var OpKind;
|
|
|
7344
7347
|
OpKind2[OpKind2["Element"] = 4] = "Element";
|
|
7345
7348
|
OpKind2[OpKind2["Template"] = 5] = "Template";
|
|
7346
7349
|
OpKind2[OpKind2["ElementEnd"] = 6] = "ElementEnd";
|
|
7347
|
-
OpKind2[OpKind2["
|
|
7348
|
-
OpKind2[OpKind2["
|
|
7349
|
-
OpKind2[OpKind2["
|
|
7350
|
-
OpKind2[OpKind2["
|
|
7351
|
-
OpKind2[OpKind2["
|
|
7350
|
+
OpKind2[OpKind2["ContainerStart"] = 7] = "ContainerStart";
|
|
7351
|
+
OpKind2[OpKind2["Container"] = 8] = "Container";
|
|
7352
|
+
OpKind2[OpKind2["ContainerEnd"] = 9] = "ContainerEnd";
|
|
7353
|
+
OpKind2[OpKind2["Text"] = 10] = "Text";
|
|
7354
|
+
OpKind2[OpKind2["Listener"] = 11] = "Listener";
|
|
7355
|
+
OpKind2[OpKind2["InterpolateText"] = 12] = "InterpolateText";
|
|
7356
|
+
OpKind2[OpKind2["Property"] = 13] = "Property";
|
|
7357
|
+
OpKind2[OpKind2["Advance"] = 14] = "Advance";
|
|
7352
7358
|
})(OpKind || (OpKind = {}));
|
|
7353
7359
|
var ExpressionKind;
|
|
7354
7360
|
(function(ExpressionKind2) {
|
|
@@ -7368,7 +7374,7 @@ var SemanticVariableKind;
|
|
|
7368
7374
|
SemanticVariableKind2[SemanticVariableKind2["SavedView"] = 2] = "SavedView";
|
|
7369
7375
|
})(SemanticVariableKind || (SemanticVariableKind = {}));
|
|
7370
7376
|
|
|
7371
|
-
// bazel-out/
|
|
7377
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/traits.mjs
|
|
7372
7378
|
var ConsumesSlot = Symbol("ConsumesSlot");
|
|
7373
7379
|
var DependsOnSlotContext = Symbol("DependsOnSlotContext");
|
|
7374
7380
|
var UsesSlotIndex = Symbol("UsesSlotIndex");
|
|
@@ -7401,7 +7407,7 @@ function hasUsesSlotIndexTrait(value) {
|
|
|
7401
7407
|
return value[UsesSlotIndex] === true;
|
|
7402
7408
|
}
|
|
7403
7409
|
|
|
7404
|
-
// bazel-out/
|
|
7410
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/expression.mjs
|
|
7405
7411
|
var _a;
|
|
7406
7412
|
var ExpressionBase = class extends Expression {
|
|
7407
7413
|
constructor(sourceSpan = null) {
|
|
@@ -7601,6 +7607,9 @@ function transformExpressionsInOp(op, transform, flags) {
|
|
|
7601
7607
|
case OpKind.Element:
|
|
7602
7608
|
case OpKind.ElementStart:
|
|
7603
7609
|
case OpKind.ElementEnd:
|
|
7610
|
+
case OpKind.Container:
|
|
7611
|
+
case OpKind.ContainerStart:
|
|
7612
|
+
case OpKind.ContainerEnd:
|
|
7604
7613
|
case OpKind.Template:
|
|
7605
7614
|
case OpKind.Text:
|
|
7606
7615
|
case OpKind.Advance:
|
|
@@ -7618,6 +7627,9 @@ function transformExpressionsInExpression(expr, transform, flags) {
|
|
|
7618
7627
|
expr.rhs = transformExpressionsInExpression(expr.rhs, transform, flags);
|
|
7619
7628
|
} else if (expr instanceof ReadPropExpr) {
|
|
7620
7629
|
expr.receiver = transformExpressionsInExpression(expr.receiver, transform, flags);
|
|
7630
|
+
} else if (expr instanceof ReadKeyExpr) {
|
|
7631
|
+
expr.receiver = transformExpressionsInExpression(expr.receiver, transform, flags);
|
|
7632
|
+
expr.index = transformExpressionsInExpression(expr.index, transform, flags);
|
|
7621
7633
|
} else if (expr instanceof InvokeFunctionExpr) {
|
|
7622
7634
|
expr.fn = transformExpressionsInExpression(expr.fn, transform, flags);
|
|
7623
7635
|
for (let i = 0; i < expr.args.length; i++) {
|
|
@@ -7639,7 +7651,7 @@ function transformExpressionsInStatement(stmt, transform, flags) {
|
|
|
7639
7651
|
}
|
|
7640
7652
|
}
|
|
7641
7653
|
|
|
7642
|
-
// bazel-out/
|
|
7654
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/operations.mjs
|
|
7643
7655
|
var _OpList = class {
|
|
7644
7656
|
constructor() {
|
|
7645
7657
|
this.debugListId = _OpList.nextListId++;
|
|
@@ -7803,7 +7815,7 @@ var OpList = _OpList;
|
|
|
7803
7815
|
_OpList.nextListId = 0;
|
|
7804
7816
|
})();
|
|
7805
7817
|
|
|
7806
|
-
// bazel-out/
|
|
7818
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/shared.mjs
|
|
7807
7819
|
function createStatementOp(statement) {
|
|
7808
7820
|
return __spreadValues({
|
|
7809
7821
|
kind: OpKind.Statement,
|
|
@@ -7824,7 +7836,7 @@ var NEW_OP = {
|
|
|
7824
7836
|
next: null
|
|
7825
7837
|
};
|
|
7826
7838
|
|
|
7827
|
-
// bazel-out/
|
|
7839
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/create.mjs
|
|
7828
7840
|
function createElementStartOp(tag, xref) {
|
|
7829
7841
|
return __spreadValues(__spreadValues({
|
|
7830
7842
|
kind: OpKind.ElementStart,
|
|
@@ -7869,7 +7881,7 @@ function createListenerOp(target, name, tag) {
|
|
|
7869
7881
|
}, NEW_OP), TRAIT_USES_SLOT_INDEX);
|
|
7870
7882
|
}
|
|
7871
7883
|
|
|
7872
|
-
// bazel-out/
|
|
7884
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/update.mjs
|
|
7873
7885
|
function createInterpolateTextOp(xref, strings, expressions) {
|
|
7874
7886
|
return __spreadValues(__spreadValues(__spreadValues({
|
|
7875
7887
|
kind: OpKind.InterpolateText,
|
|
@@ -7893,7 +7905,7 @@ function createAdvanceOp(delta) {
|
|
|
7893
7905
|
}, NEW_OP);
|
|
7894
7906
|
}
|
|
7895
7907
|
|
|
7896
|
-
// bazel-out/
|
|
7908
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/const_collection.mjs
|
|
7897
7909
|
function phaseConstCollection(cpl) {
|
|
7898
7910
|
for (const [_, view] of cpl.views) {
|
|
7899
7911
|
for (const op of view.create) {
|
|
@@ -7934,19 +7946,28 @@ function serializeAttributes({ attributes, bindings, classes, i18n, projectAs, s
|
|
|
7934
7946
|
return literalArr(attrArray);
|
|
7935
7947
|
}
|
|
7936
7948
|
|
|
7937
|
-
// bazel-out/
|
|
7949
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/empty_elements.mjs
|
|
7950
|
+
var REPLACEMENTS = /* @__PURE__ */ new Map([
|
|
7951
|
+
[OpKind.ElementEnd, [OpKind.ElementStart, OpKind.Element]],
|
|
7952
|
+
[OpKind.ContainerEnd, [OpKind.ContainerStart, OpKind.Container]]
|
|
7953
|
+
]);
|
|
7938
7954
|
function phaseEmptyElements(cpl) {
|
|
7939
7955
|
for (const [_, view] of cpl.views) {
|
|
7940
7956
|
for (const op of view.create) {
|
|
7941
|
-
|
|
7942
|
-
|
|
7957
|
+
const opReplacements = REPLACEMENTS.get(op.kind);
|
|
7958
|
+
if (opReplacements === void 0) {
|
|
7959
|
+
continue;
|
|
7960
|
+
}
|
|
7961
|
+
const [startKind, mergedKind] = opReplacements;
|
|
7962
|
+
if (op.prev !== null && op.prev.kind === startKind) {
|
|
7963
|
+
op.prev.kind = mergedKind;
|
|
7943
7964
|
OpList.remove(op);
|
|
7944
7965
|
}
|
|
7945
7966
|
}
|
|
7946
7967
|
}
|
|
7947
7968
|
}
|
|
7948
7969
|
|
|
7949
|
-
// bazel-out/
|
|
7970
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_advance.mjs
|
|
7950
7971
|
function phaseGenerateAdvance(cpl) {
|
|
7951
7972
|
for (const [_, view] of cpl.views) {
|
|
7952
7973
|
const slotMap = /* @__PURE__ */ new Map();
|
|
@@ -7978,18 +7999,18 @@ function phaseGenerateAdvance(cpl) {
|
|
|
7978
7999
|
}
|
|
7979
8000
|
}
|
|
7980
8001
|
|
|
7981
|
-
// bazel-out/
|
|
8002
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/instruction.mjs
|
|
7982
8003
|
function element(slot, tag, constIndex, localRefIndex) {
|
|
7983
|
-
return
|
|
8004
|
+
return elementOrContainerBase(Identifiers.element, slot, tag, constIndex, localRefIndex);
|
|
7984
8005
|
}
|
|
7985
8006
|
function elementStart(slot, tag, constIndex, localRefIndex) {
|
|
7986
|
-
return
|
|
8007
|
+
return elementOrContainerBase(Identifiers.elementStart, slot, tag, constIndex, localRefIndex);
|
|
7987
8008
|
}
|
|
7988
|
-
function
|
|
7989
|
-
const args = [
|
|
7990
|
-
|
|
7991
|
-
literal(tag)
|
|
7992
|
-
|
|
8009
|
+
function elementOrContainerBase(instruction, slot, tag, constIndex, localRefIndex) {
|
|
8010
|
+
const args = [literal(slot)];
|
|
8011
|
+
if (tag !== null) {
|
|
8012
|
+
args.push(literal(tag));
|
|
8013
|
+
}
|
|
7993
8014
|
if (localRefIndex !== null) {
|
|
7994
8015
|
args.push(
|
|
7995
8016
|
literal(constIndex),
|
|
@@ -8003,6 +8024,15 @@ function elementStartBase(instruction, slot, tag, constIndex, localRefIndex) {
|
|
|
8003
8024
|
function elementEnd() {
|
|
8004
8025
|
return call(Identifiers.elementEnd, []);
|
|
8005
8026
|
}
|
|
8027
|
+
function elementContainerStart(slot, constIndex, localRefIndex) {
|
|
8028
|
+
return elementOrContainerBase(Identifiers.elementContainerStart, slot, null, constIndex, localRefIndex);
|
|
8029
|
+
}
|
|
8030
|
+
function elementContainer(slot, constIndex, localRefIndex) {
|
|
8031
|
+
return elementOrContainerBase(Identifiers.elementContainer, slot, null, constIndex, localRefIndex);
|
|
8032
|
+
}
|
|
8033
|
+
function elementContainerEnd() {
|
|
8034
|
+
return call(Identifiers.elementContainerEnd, []);
|
|
8035
|
+
}
|
|
8006
8036
|
function template(slot, templateFnRef, decls, vars, tag, constIndex) {
|
|
8007
8037
|
return call(Identifiers.templateCreate, [
|
|
8008
8038
|
literal(slot),
|
|
@@ -8103,7 +8133,7 @@ function callInterpolation(config, baseArgs, interpolationArgs) {
|
|
|
8103
8133
|
}
|
|
8104
8134
|
}
|
|
8105
8135
|
|
|
8106
|
-
// bazel-out/
|
|
8136
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/reify.mjs
|
|
8107
8137
|
function phaseReify(cpl) {
|
|
8108
8138
|
for (const [_, view] of cpl.views) {
|
|
8109
8139
|
reifyCreateOperations(view, view.create);
|
|
@@ -8126,6 +8156,15 @@ function reifyCreateOperations(view, ops) {
|
|
|
8126
8156
|
case OpKind.ElementEnd:
|
|
8127
8157
|
OpList.replace(op, elementEnd());
|
|
8128
8158
|
break;
|
|
8159
|
+
case OpKind.ContainerStart:
|
|
8160
|
+
OpList.replace(op, elementContainerStart(op.slot, op.attributes, op.localRefs));
|
|
8161
|
+
break;
|
|
8162
|
+
case OpKind.Container:
|
|
8163
|
+
OpList.replace(op, elementContainer(op.slot, op.attributes, op.localRefs));
|
|
8164
|
+
break;
|
|
8165
|
+
case OpKind.ContainerEnd:
|
|
8166
|
+
OpList.replace(op, elementContainerEnd());
|
|
8167
|
+
break;
|
|
8129
8168
|
case OpKind.Template:
|
|
8130
8169
|
const childView = view.tpl.views.get(op.xref);
|
|
8131
8170
|
OpList.replace(op, template(op.slot, variable(childView.fnName), childView.decls, childView.vars, op.tag, op.attributes));
|
|
@@ -8228,7 +8267,7 @@ var LookForEventVisitor = class extends RecursiveAstVisitor {
|
|
|
8228
8267
|
}
|
|
8229
8268
|
};
|
|
8230
8269
|
|
|
8231
|
-
// bazel-out/
|
|
8270
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/slot_allocation.mjs
|
|
8232
8271
|
function phaseSlotAllocation(cpl) {
|
|
8233
8272
|
const slotMap = /* @__PURE__ */ new Map();
|
|
8234
8273
|
for (const [_, view] of cpl.views) {
|
|
@@ -8268,7 +8307,7 @@ function phaseSlotAllocation(cpl) {
|
|
|
8268
8307
|
}
|
|
8269
8308
|
}
|
|
8270
8309
|
|
|
8271
|
-
// bazel-out/
|
|
8310
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/var_counting.mjs
|
|
8272
8311
|
function phaseVarCounting(cpl) {
|
|
8273
8312
|
for (const [_, view] of cpl.views) {
|
|
8274
8313
|
let varCount = 0;
|
|
@@ -8308,7 +8347,7 @@ function varsUsedByIrExpression(expr) {
|
|
|
8308
8347
|
return 0;
|
|
8309
8348
|
}
|
|
8310
8349
|
|
|
8311
|
-
// bazel-out/
|
|
8350
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/naming.mjs
|
|
8312
8351
|
function phaseNaming(cpl) {
|
|
8313
8352
|
addNamesToView(cpl.root, cpl.componentName, { index: 0 });
|
|
8314
8353
|
}
|
|
@@ -8366,7 +8405,7 @@ function getVariableName(variable2, state) {
|
|
|
8366
8405
|
return variable2.name;
|
|
8367
8406
|
}
|
|
8368
8407
|
|
|
8369
|
-
// bazel-out/
|
|
8408
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/local_refs.mjs
|
|
8370
8409
|
function phaseLocalRefs(cpl) {
|
|
8371
8410
|
for (const view of cpl.views.values()) {
|
|
8372
8411
|
for (const op of view.create) {
|
|
@@ -8397,31 +8436,21 @@ function serializeLocalRefs(refs) {
|
|
|
8397
8436
|
return literalArr(constRefs);
|
|
8398
8437
|
}
|
|
8399
8438
|
|
|
8400
|
-
// bazel-out/
|
|
8439
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_variables.mjs
|
|
8401
8440
|
function phaseGenerateVariables(cpl) {
|
|
8402
8441
|
recursivelyProcessView(cpl.root, null);
|
|
8403
8442
|
}
|
|
8404
8443
|
function recursivelyProcessView(view, parentScope) {
|
|
8405
8444
|
const scope = getScopeForView(view, parentScope);
|
|
8406
|
-
view.
|
|
8407
|
-
|
|
8408
|
-
]);
|
|
8445
|
+
if (view.parent !== null) {
|
|
8446
|
+
}
|
|
8409
8447
|
for (const op of view.create) {
|
|
8410
8448
|
switch (op.kind) {
|
|
8411
8449
|
case OpKind.Template:
|
|
8412
8450
|
recursivelyProcessView(view.tpl.views.get(op.xref), scope);
|
|
8413
8451
|
break;
|
|
8414
8452
|
case OpKind.Listener:
|
|
8415
|
-
|
|
8416
|
-
createVariableOp(view.tpl.allocateXrefId(), scope.viewContextVariable, new RestoreViewExpr(view.xref)),
|
|
8417
|
-
...generateVariablesInScopeForView(view, scope)
|
|
8418
|
-
];
|
|
8419
|
-
op.handlerOps.prepend(preambleOps2);
|
|
8420
|
-
for (const handlerOp of op.handlerOps) {
|
|
8421
|
-
if (handlerOp.kind === OpKind.Statement && handlerOp.statement instanceof ReturnStatement) {
|
|
8422
|
-
handlerOp.statement.value = new ResetViewExpr(handlerOp.statement.value);
|
|
8423
|
-
}
|
|
8424
|
-
}
|
|
8453
|
+
op.handlerOps.prepend(generateVariablesInScopeForView(view, scope));
|
|
8425
8454
|
break;
|
|
8426
8455
|
}
|
|
8427
8456
|
}
|
|
@@ -8436,11 +8465,6 @@ function getScopeForView(view, parent) {
|
|
|
8436
8465
|
name: null,
|
|
8437
8466
|
view: view.xref
|
|
8438
8467
|
},
|
|
8439
|
-
savedViewVariable: {
|
|
8440
|
-
kind: SemanticVariableKind.SavedView,
|
|
8441
|
-
name: null,
|
|
8442
|
-
view: view.xref
|
|
8443
|
-
},
|
|
8444
8468
|
contextVariables: /* @__PURE__ */ new Map(),
|
|
8445
8469
|
references: [],
|
|
8446
8470
|
parent
|
|
@@ -8494,7 +8518,7 @@ function generateVariablesInScopeForView(view, scope) {
|
|
|
8494
8518
|
return newOps;
|
|
8495
8519
|
}
|
|
8496
8520
|
|
|
8497
|
-
// bazel-out/
|
|
8521
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_names.mjs
|
|
8498
8522
|
function phaseResolveNames(cpl) {
|
|
8499
8523
|
for (const [_, view] of cpl.views) {
|
|
8500
8524
|
processLexicalScope(view, view.create, null);
|
|
@@ -8547,7 +8571,7 @@ function processLexicalScope(view, ops, savedView) {
|
|
|
8547
8571
|
}
|
|
8548
8572
|
}
|
|
8549
8573
|
|
|
8550
|
-
// bazel-out/
|
|
8574
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_contexts.mjs
|
|
8551
8575
|
function phaseResolveContexts(cpl) {
|
|
8552
8576
|
for (const view of cpl.views.values()) {
|
|
8553
8577
|
processLexicalScope2(view, view.create);
|
|
@@ -8585,7 +8609,7 @@ function processLexicalScope2(view, ops) {
|
|
|
8585
8609
|
}
|
|
8586
8610
|
}
|
|
8587
8611
|
|
|
8588
|
-
// bazel-out/
|
|
8612
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/variable_optimization.mjs
|
|
8589
8613
|
function phaseVariableOptimization(cpl, options) {
|
|
8590
8614
|
for (const [_, view] of cpl.views) {
|
|
8591
8615
|
optimizeVariablesInOpList(view.create, options);
|
|
@@ -8783,11 +8807,14 @@ function allowConservativeInlining(decl, target) {
|
|
|
8783
8807
|
}
|
|
8784
8808
|
}
|
|
8785
8809
|
|
|
8786
|
-
// bazel-out/
|
|
8810
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/chaining.mjs
|
|
8787
8811
|
var CHAINABLE = /* @__PURE__ */ new Set([
|
|
8788
8812
|
Identifiers.elementStart,
|
|
8789
8813
|
Identifiers.elementEnd,
|
|
8790
|
-
Identifiers.property
|
|
8814
|
+
Identifiers.property,
|
|
8815
|
+
Identifiers.elementContainerStart,
|
|
8816
|
+
Identifiers.elementContainerEnd,
|
|
8817
|
+
Identifiers.elementContainer
|
|
8791
8818
|
]);
|
|
8792
8819
|
function phaseChaining(cpl) {
|
|
8793
8820
|
for (const [_, view] of cpl.views) {
|
|
@@ -8826,7 +8853,7 @@ function chainOperationsInList(opList) {
|
|
|
8826
8853
|
}
|
|
8827
8854
|
}
|
|
8828
8855
|
|
|
8829
|
-
// bazel-out/
|
|
8856
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/next_context_merging.mjs
|
|
8830
8857
|
function phaseMergeNextContext(cpl) {
|
|
8831
8858
|
for (const view of cpl.views.values()) {
|
|
8832
8859
|
for (const op of view.create) {
|
|
@@ -8868,13 +8895,63 @@ function mergeNextContextsInOps(ops) {
|
|
|
8868
8895
|
}
|
|
8869
8896
|
}
|
|
8870
8897
|
|
|
8871
|
-
// bazel-out/
|
|
8898
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/ng_container.mjs
|
|
8899
|
+
var CONTAINER_TAG = "ng-container";
|
|
8900
|
+
function phaseNgContainer(cpl) {
|
|
8901
|
+
for (const [_, view] of cpl.views) {
|
|
8902
|
+
const updatedElementXrefs = /* @__PURE__ */ new Set();
|
|
8903
|
+
for (const op of view.create) {
|
|
8904
|
+
if (op.kind === OpKind.ElementStart && op.tag === CONTAINER_TAG) {
|
|
8905
|
+
op.kind = OpKind.ContainerStart;
|
|
8906
|
+
updatedElementXrefs.add(op.xref);
|
|
8907
|
+
}
|
|
8908
|
+
if (op.kind === OpKind.ElementEnd && updatedElementXrefs.has(op.xref)) {
|
|
8909
|
+
op.kind = OpKind.ContainerEnd;
|
|
8910
|
+
}
|
|
8911
|
+
}
|
|
8912
|
+
}
|
|
8913
|
+
}
|
|
8914
|
+
|
|
8915
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/save_restore_view.mjs
|
|
8916
|
+
function phaseSaveRestoreView(cpl) {
|
|
8917
|
+
for (const view of cpl.views.values()) {
|
|
8918
|
+
if (view === cpl.root) {
|
|
8919
|
+
continue;
|
|
8920
|
+
}
|
|
8921
|
+
view.create.prepend([
|
|
8922
|
+
createVariableOp(view.tpl.allocateXrefId(), {
|
|
8923
|
+
kind: SemanticVariableKind.SavedView,
|
|
8924
|
+
name: null,
|
|
8925
|
+
view: view.xref
|
|
8926
|
+
}, new GetCurrentViewExpr())
|
|
8927
|
+
]);
|
|
8928
|
+
for (const op of view.create) {
|
|
8929
|
+
if (op.kind !== OpKind.Listener) {
|
|
8930
|
+
continue;
|
|
8931
|
+
}
|
|
8932
|
+
op.handlerOps.prepend([
|
|
8933
|
+
createVariableOp(view.tpl.allocateXrefId(), {
|
|
8934
|
+
kind: SemanticVariableKind.Context,
|
|
8935
|
+
name: null,
|
|
8936
|
+
view: view.xref
|
|
8937
|
+
}, new RestoreViewExpr(view.xref))
|
|
8938
|
+
]);
|
|
8939
|
+
for (const handlerOp of op.handlerOps) {
|
|
8940
|
+
if (handlerOp.kind === OpKind.Statement && handlerOp.statement instanceof ReturnStatement) {
|
|
8941
|
+
handlerOp.statement.value = new ResetViewExpr(handlerOp.statement.value);
|
|
8942
|
+
}
|
|
8943
|
+
}
|
|
8944
|
+
}
|
|
8945
|
+
}
|
|
8946
|
+
}
|
|
8947
|
+
|
|
8948
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/emit.mjs
|
|
8872
8949
|
function transformTemplate(cpl) {
|
|
8873
8950
|
phaseGenerateVariables(cpl);
|
|
8951
|
+
phaseSaveRestoreView(cpl);
|
|
8874
8952
|
phaseResolveNames(cpl);
|
|
8875
8953
|
phaseResolveContexts(cpl);
|
|
8876
8954
|
phaseLocalRefs(cpl);
|
|
8877
|
-
phaseEmptyElements(cpl);
|
|
8878
8955
|
phaseConstCollection(cpl);
|
|
8879
8956
|
phaseSlotAllocation(cpl);
|
|
8880
8957
|
phaseVarCounting(cpl);
|
|
@@ -8882,6 +8959,8 @@ function transformTemplate(cpl) {
|
|
|
8882
8959
|
phaseNaming(cpl);
|
|
8883
8960
|
phaseVariableOptimization(cpl, { conservative: true });
|
|
8884
8961
|
phaseMergeNextContext(cpl);
|
|
8962
|
+
phaseNgContainer(cpl);
|
|
8963
|
+
phaseEmptyElements(cpl);
|
|
8885
8964
|
phaseReify(cpl);
|
|
8886
8965
|
phaseChaining(cpl);
|
|
8887
8966
|
}
|
|
@@ -8943,7 +9022,7 @@ function maybeGenerateRfBlock(flag, statements) {
|
|
|
8943
9022
|
];
|
|
8944
9023
|
}
|
|
8945
9024
|
|
|
8946
|
-
// bazel-out/
|
|
9025
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/compilation.mjs
|
|
8947
9026
|
var ComponentCompilation = class {
|
|
8948
9027
|
constructor(componentName) {
|
|
8949
9028
|
this.componentName = componentName;
|
|
@@ -9000,7 +9079,28 @@ var ViewCompilation = class {
|
|
|
9000
9079
|
}
|
|
9001
9080
|
};
|
|
9002
9081
|
|
|
9003
|
-
// bazel-out/
|
|
9082
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/conversion.mjs
|
|
9083
|
+
var BINARY_OPERATORS = /* @__PURE__ */ new Map([
|
|
9084
|
+
["&&", BinaryOperator.And],
|
|
9085
|
+
[">", BinaryOperator.Bigger],
|
|
9086
|
+
[">=", BinaryOperator.BiggerEquals],
|
|
9087
|
+
["&", BinaryOperator.BitwiseAnd],
|
|
9088
|
+
["/", BinaryOperator.Divide],
|
|
9089
|
+
["==", BinaryOperator.Equals],
|
|
9090
|
+
["===", BinaryOperator.Identical],
|
|
9091
|
+
["<", BinaryOperator.Lower],
|
|
9092
|
+
["<=", BinaryOperator.LowerEquals],
|
|
9093
|
+
["-", BinaryOperator.Minus],
|
|
9094
|
+
["%", BinaryOperator.Modulo],
|
|
9095
|
+
["*", BinaryOperator.Multiply],
|
|
9096
|
+
["!=", BinaryOperator.NotEquals],
|
|
9097
|
+
["!==", BinaryOperator.NotIdentical],
|
|
9098
|
+
["??", BinaryOperator.NullishCoalesce],
|
|
9099
|
+
["||", BinaryOperator.Or],
|
|
9100
|
+
["+", BinaryOperator.Plus]
|
|
9101
|
+
]);
|
|
9102
|
+
|
|
9103
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/ingest.mjs
|
|
9004
9104
|
function ingest(componentName, template2) {
|
|
9005
9105
|
const cpl = new ComponentCompilation(componentName);
|
|
9006
9106
|
ingestNodes(cpl.root, template2);
|
|
@@ -9080,8 +9180,18 @@ function convertAst(ast, cpl) {
|
|
|
9080
9180
|
}
|
|
9081
9181
|
} else if (ast instanceof LiteralPrimitive) {
|
|
9082
9182
|
return literal(ast.value);
|
|
9183
|
+
} else if (ast instanceof Binary) {
|
|
9184
|
+
const operator = BINARY_OPERATORS.get(ast.operation);
|
|
9185
|
+
if (operator === void 0) {
|
|
9186
|
+
throw new Error(`AssertionError: unknown binary operator ${ast.operation}`);
|
|
9187
|
+
}
|
|
9188
|
+
return new BinaryOperatorExpr(operator, convertAst(ast.left, cpl), convertAst(ast.right, cpl));
|
|
9083
9189
|
} else if (ast instanceof ThisReceiver) {
|
|
9084
9190
|
return new ContextExpr(cpl.root.xref);
|
|
9191
|
+
} else if (ast instanceof KeyedRead) {
|
|
9192
|
+
return new ReadKeyExpr(convertAst(ast.receiver, cpl), convertAst(ast.key, cpl));
|
|
9193
|
+
} else if (ast instanceof Chain) {
|
|
9194
|
+
throw new Error(`AssertionError: Chain in unknown context`);
|
|
9085
9195
|
} else {
|
|
9086
9196
|
throw new Error(`Unhandled expression type: ${ast.constructor.name}`);
|
|
9087
9197
|
}
|
|
@@ -9105,11 +9215,11 @@ function ingestAttributes(op, element2) {
|
|
|
9105
9215
|
}
|
|
9106
9216
|
function ingestBindings(view, op, element2) {
|
|
9107
9217
|
if (element2 instanceof Template) {
|
|
9108
|
-
for (const
|
|
9109
|
-
if (
|
|
9110
|
-
|
|
9111
|
-
view.update.push(createPropertyOp(op.xref, attr.name, convertAst(attr.value, view.tpl)));
|
|
9218
|
+
for (const input of [...element2.templateAttrs, ...element2.inputs]) {
|
|
9219
|
+
if (!(input instanceof BoundAttribute)) {
|
|
9220
|
+
continue;
|
|
9112
9221
|
}
|
|
9222
|
+
view.update.push(createPropertyOp(op.xref, input.name, convertAst(input.value, view.tpl)));
|
|
9113
9223
|
}
|
|
9114
9224
|
} else {
|
|
9115
9225
|
for (const input of element2.inputs) {
|
|
@@ -9117,7 +9227,26 @@ function ingestBindings(view, op, element2) {
|
|
|
9117
9227
|
}
|
|
9118
9228
|
for (const output of element2.outputs) {
|
|
9119
9229
|
const listenerOp = createListenerOp(op.xref, output.name, op.tag);
|
|
9120
|
-
|
|
9230
|
+
let inputExprs;
|
|
9231
|
+
let handler = output.handler;
|
|
9232
|
+
if (handler instanceof ASTWithSource) {
|
|
9233
|
+
handler = handler.ast;
|
|
9234
|
+
}
|
|
9235
|
+
if (handler instanceof Chain) {
|
|
9236
|
+
inputExprs = handler.expressions;
|
|
9237
|
+
} else {
|
|
9238
|
+
inputExprs = [handler];
|
|
9239
|
+
}
|
|
9240
|
+
if (inputExprs.length === 0) {
|
|
9241
|
+
throw new Error("Expected listener to have non-empty expression list.");
|
|
9242
|
+
}
|
|
9243
|
+
const expressions = inputExprs.map((expr) => convertAst(expr, view.tpl));
|
|
9244
|
+
const returnExpr = expressions.pop();
|
|
9245
|
+
for (const expr of expressions) {
|
|
9246
|
+
const stmtOp = createStatementOp(new ExpressionStatement(expr));
|
|
9247
|
+
listenerOp.handlerOps.push(stmtOp);
|
|
9248
|
+
}
|
|
9249
|
+
listenerOp.handlerOps.push(createStatementOp(new ReturnStatement(returnExpr)));
|
|
9121
9250
|
view.create.push(listenerOp);
|
|
9122
9251
|
}
|
|
9123
9252
|
}
|
|
@@ -9137,10 +9266,10 @@ function assertIsArray(value) {
|
|
|
9137
9266
|
}
|
|
9138
9267
|
}
|
|
9139
9268
|
|
|
9140
|
-
// bazel-out/
|
|
9269
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/switch/index.mjs
|
|
9141
9270
|
var USE_TEMPLATE_PIPELINE = false;
|
|
9142
9271
|
|
|
9143
|
-
// bazel-out/
|
|
9272
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/style_parser.mjs
|
|
9144
9273
|
function parse(value) {
|
|
9145
9274
|
const styles = [];
|
|
9146
9275
|
let i = 0;
|
|
@@ -9201,7 +9330,7 @@ function hyphenate(value) {
|
|
|
9201
9330
|
}).toLowerCase();
|
|
9202
9331
|
}
|
|
9203
9332
|
|
|
9204
|
-
// bazel-out/
|
|
9333
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/styling_builder.mjs
|
|
9205
9334
|
var IMPORTANT_FLAG = "!important";
|
|
9206
9335
|
var MIN_STYLING_BINDING_SLOTS_REQUIRED = 2;
|
|
9207
9336
|
var StylingBuilder = class {
|
|
@@ -9534,7 +9663,7 @@ function isEmptyExpression(ast) {
|
|
|
9534
9663
|
return ast instanceof EmptyExpr;
|
|
9535
9664
|
}
|
|
9536
9665
|
|
|
9537
|
-
// bazel-out/
|
|
9666
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/expression_parser/lexer.mjs
|
|
9538
9667
|
var TokenType;
|
|
9539
9668
|
(function(TokenType2) {
|
|
9540
9669
|
TokenType2[TokenType2["Character"] = 0] = "Character";
|
|
@@ -9895,7 +10024,7 @@ function parseIntAutoRadix(text2) {
|
|
|
9895
10024
|
return result;
|
|
9896
10025
|
}
|
|
9897
10026
|
|
|
9898
|
-
// bazel-out/
|
|
10027
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/expression_parser/parser.mjs
|
|
9899
10028
|
var SplitInterpolation = class {
|
|
9900
10029
|
constructor(strings, expressions, offsets) {
|
|
9901
10030
|
this.strings = strings;
|
|
@@ -10789,7 +10918,7 @@ function getIndexMapForOriginalTemplate(interpolatedTokens) {
|
|
|
10789
10918
|
return offsetMap;
|
|
10790
10919
|
}
|
|
10791
10920
|
|
|
10792
|
-
// bazel-out/
|
|
10921
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/ast.mjs
|
|
10793
10922
|
var NodeWithI18n = class {
|
|
10794
10923
|
constructor(sourceSpan, i18n) {
|
|
10795
10924
|
this.sourceSpan = sourceSpan;
|
|
@@ -10877,11 +11006,11 @@ function visitAll2(visitor, nodes, context = null) {
|
|
|
10877
11006
|
return result;
|
|
10878
11007
|
}
|
|
10879
11008
|
|
|
10880
|
-
// bazel-out/
|
|
11009
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/schema/element_schema_registry.mjs
|
|
10881
11010
|
var ElementSchemaRegistry = class {
|
|
10882
11011
|
};
|
|
10883
11012
|
|
|
10884
|
-
// bazel-out/
|
|
11013
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/schema/dom_element_schema_registry.mjs
|
|
10885
11014
|
var BOOLEAN = "boolean";
|
|
10886
11015
|
var NUMBER = "number";
|
|
10887
11016
|
var STRING = "string";
|
|
@@ -11234,7 +11363,7 @@ function _isPixelDimensionStyle(prop) {
|
|
|
11234
11363
|
}
|
|
11235
11364
|
}
|
|
11236
11365
|
|
|
11237
|
-
// bazel-out/
|
|
11366
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/html_tags.mjs
|
|
11238
11367
|
var HtmlTagDefinition = class {
|
|
11239
11368
|
constructor({ closedByChildren, implicitNamespacePrefix, contentType = TagContentType.PARSABLE_DATA, closedByParent = false, isVoid = false, ignoreFirstLf = false, preventNamespaceInheritance = false, canSelfClose = false } = {}) {
|
|
11240
11369
|
this.closedByChildren = {};
|
|
@@ -11352,7 +11481,7 @@ function getHtmlTagDefinition(tagName) {
|
|
|
11352
11481
|
return (_b = (_a2 = TAG_DEFINITIONS[tagName]) != null ? _a2 : TAG_DEFINITIONS[tagName.toLowerCase()]) != null ? _b : DEFAULT_TAG_DEFINITION;
|
|
11353
11482
|
}
|
|
11354
11483
|
|
|
11355
|
-
// bazel-out/
|
|
11484
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/entities.mjs
|
|
11356
11485
|
var NAMED_ENTITIES = {
|
|
11357
11486
|
"AElig": "\xC6",
|
|
11358
11487
|
"AMP": "&",
|
|
@@ -13483,7 +13612,7 @@ var NAMED_ENTITIES = {
|
|
|
13483
13612
|
var NGSP_UNICODE = "\uE500";
|
|
13484
13613
|
NAMED_ENTITIES["ngsp"] = NGSP_UNICODE;
|
|
13485
13614
|
|
|
13486
|
-
// bazel-out/
|
|
13615
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/lexer.mjs
|
|
13487
13616
|
var TokenError = class extends ParseError {
|
|
13488
13617
|
constructor(errorMsg, tokenType, span) {
|
|
13489
13618
|
super(span, errorMsg);
|
|
@@ -14318,7 +14447,7 @@ var CursorError = class {
|
|
|
14318
14447
|
}
|
|
14319
14448
|
};
|
|
14320
14449
|
|
|
14321
|
-
// bazel-out/
|
|
14450
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/parser.mjs
|
|
14322
14451
|
var TreeError = class extends ParseError {
|
|
14323
14452
|
static create(elementName, span, msg) {
|
|
14324
14453
|
return new TreeError(elementName, span, msg);
|
|
@@ -14645,7 +14774,7 @@ function decodeEntity(match, entity) {
|
|
|
14645
14774
|
return match;
|
|
14646
14775
|
}
|
|
14647
14776
|
|
|
14648
|
-
// bazel-out/
|
|
14777
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/html_parser.mjs
|
|
14649
14778
|
var HtmlParser = class extends Parser2 {
|
|
14650
14779
|
constructor() {
|
|
14651
14780
|
super(getHtmlTagDefinition);
|
|
@@ -14655,7 +14784,7 @@ var HtmlParser = class extends Parser2 {
|
|
|
14655
14784
|
}
|
|
14656
14785
|
};
|
|
14657
14786
|
|
|
14658
|
-
// bazel-out/
|
|
14787
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/html_whitespaces.mjs
|
|
14659
14788
|
var PRESERVE_WS_ATTR_NAME = "ngPreserveWhitespaces";
|
|
14660
14789
|
var SKIP_WS_TRIM_TAGS = /* @__PURE__ */ new Set(["pre", "template", "textarea", "script", "style"]);
|
|
14661
14790
|
var WS_CHARS = " \f\n\r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF";
|
|
@@ -14715,7 +14844,7 @@ function visitAllWithSiblings(visitor, nodes) {
|
|
|
14715
14844
|
return result;
|
|
14716
14845
|
}
|
|
14717
14846
|
|
|
14718
|
-
// bazel-out/
|
|
14847
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/map_util.mjs
|
|
14719
14848
|
function mapLiteral(obj, quoted = false) {
|
|
14720
14849
|
return literalMap(Object.keys(obj).map((key) => ({
|
|
14721
14850
|
key,
|
|
@@ -14724,7 +14853,7 @@ function mapLiteral(obj, quoted = false) {
|
|
|
14724
14853
|
})));
|
|
14725
14854
|
}
|
|
14726
14855
|
|
|
14727
|
-
// bazel-out/
|
|
14856
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/schema/trusted_types_sinks.mjs
|
|
14728
14857
|
var TRUSTED_TYPES_SINKS = /* @__PURE__ */ new Set([
|
|
14729
14858
|
"iframe|srcdoc",
|
|
14730
14859
|
"*|innerhtml",
|
|
@@ -14739,7 +14868,7 @@ function isTrustedTypesSink(tagName, propName) {
|
|
|
14739
14868
|
return TRUSTED_TYPES_SINKS.has(tagName + "|" + propName) || TRUSTED_TYPES_SINKS.has("*|" + propName);
|
|
14740
14869
|
}
|
|
14741
14870
|
|
|
14742
|
-
// bazel-out/
|
|
14871
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template_parser/binding_parser.mjs
|
|
14743
14872
|
var PROPERTY_PARTS_SEPARATOR = ".";
|
|
14744
14873
|
var ATTRIBUTE_PREFIX = "attr";
|
|
14745
14874
|
var CLASS_PREFIX = "class";
|
|
@@ -15059,7 +15188,7 @@ function moveParseSourceSpan(sourceSpan, absoluteSpan) {
|
|
|
15059
15188
|
return new ParseSourceSpan(sourceSpan.start.moveBy(startDiff), sourceSpan.end.moveBy(endDiff), sourceSpan.fullStart.moveBy(startDiff), sourceSpan.details);
|
|
15060
15189
|
}
|
|
15061
15190
|
|
|
15062
|
-
// bazel-out/
|
|
15191
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/style_url_resolver.mjs
|
|
15063
15192
|
function isStyleUrlResolvable(url) {
|
|
15064
15193
|
if (url == null || url.length === 0 || url[0] == "/")
|
|
15065
15194
|
return false;
|
|
@@ -15068,7 +15197,7 @@ function isStyleUrlResolvable(url) {
|
|
|
15068
15197
|
}
|
|
15069
15198
|
var URL_WITH_SCHEMA_REGEXP = /^([^:/?#]+):/;
|
|
15070
15199
|
|
|
15071
|
-
// bazel-out/
|
|
15200
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template_parser/template_preparser.mjs
|
|
15072
15201
|
var NG_CONTENT_SELECT_ATTR = "select";
|
|
15073
15202
|
var LINK_ELEMENT = "link";
|
|
15074
15203
|
var LINK_STYLE_REL_ATTR = "rel";
|
|
@@ -15138,7 +15267,7 @@ function normalizeNgContentSelect(selectAttr) {
|
|
|
15138
15267
|
return selectAttr;
|
|
15139
15268
|
}
|
|
15140
15269
|
|
|
15141
|
-
// bazel-out/
|
|
15270
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_template_transform.mjs
|
|
15142
15271
|
var BIND_NAME_REGEXP = /^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/;
|
|
15143
15272
|
var KW_BIND_IDX = 1;
|
|
15144
15273
|
var KW_LET_IDX = 2;
|
|
@@ -15486,7 +15615,7 @@ function textContents(node) {
|
|
|
15486
15615
|
}
|
|
15487
15616
|
}
|
|
15488
15617
|
|
|
15489
|
-
// bazel-out/
|
|
15618
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/context.mjs
|
|
15490
15619
|
var TagType;
|
|
15491
15620
|
(function(TagType2) {
|
|
15492
15621
|
TagType2[TagType2["ELEMENT"] = 0] = "ELEMENT";
|
|
@@ -15621,7 +15750,7 @@ function serializePlaceholderValue(value) {
|
|
|
15621
15750
|
}
|
|
15622
15751
|
}
|
|
15623
15752
|
|
|
15624
|
-
// bazel-out/
|
|
15753
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/icu_serializer.mjs
|
|
15625
15754
|
var IcuSerializerVisitor = class {
|
|
15626
15755
|
visitText(text2) {
|
|
15627
15756
|
return text2.value;
|
|
@@ -15652,7 +15781,7 @@ function serializeIcuNode(icu) {
|
|
|
15652
15781
|
return icu.visit(serializer);
|
|
15653
15782
|
}
|
|
15654
15783
|
|
|
15655
|
-
// bazel-out/
|
|
15784
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/placeholder.mjs
|
|
15656
15785
|
var TAG_TO_PLACEHOLDER_NAMES = {
|
|
15657
15786
|
"A": "LINK",
|
|
15658
15787
|
"B": "BOLD_TEXT",
|
|
@@ -15746,7 +15875,7 @@ var PlaceholderRegistry = class {
|
|
|
15746
15875
|
}
|
|
15747
15876
|
};
|
|
15748
15877
|
|
|
15749
|
-
// bazel-out/
|
|
15878
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/i18n_parser.mjs
|
|
15750
15879
|
var _expParser = new Parser(new Lexer());
|
|
15751
15880
|
function createI18nMessageFactory(interpolationConfig) {
|
|
15752
15881
|
const visitor = new _I18nVisitor(_expParser, interpolationConfig);
|
|
@@ -15901,14 +16030,14 @@ function extractPlaceholderName(input) {
|
|
|
15901
16030
|
return input.split(_CUSTOM_PH_EXP)[2];
|
|
15902
16031
|
}
|
|
15903
16032
|
|
|
15904
|
-
// bazel-out/
|
|
16033
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/parse_util.mjs
|
|
15905
16034
|
var I18nError = class extends ParseError {
|
|
15906
16035
|
constructor(span, msg) {
|
|
15907
16036
|
super(span, msg);
|
|
15908
16037
|
}
|
|
15909
16038
|
};
|
|
15910
16039
|
|
|
15911
|
-
// bazel-out/
|
|
16040
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/meta.mjs
|
|
15912
16041
|
var setI18nRefs = (htmlNode, i18nNode) => {
|
|
15913
16042
|
if (htmlNode instanceof NodeWithI18n) {
|
|
15914
16043
|
if (i18nNode instanceof IcuPlaceholder && htmlNode.i18n instanceof Message) {
|
|
@@ -16057,7 +16186,7 @@ function i18nMetaToJSDoc(meta) {
|
|
|
16057
16186
|
return jsDocComment(tags);
|
|
16058
16187
|
}
|
|
16059
16188
|
|
|
16060
|
-
// bazel-out/
|
|
16189
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/get_msg_utils.mjs
|
|
16061
16190
|
var GOOG_GET_MSG = "goog.getMsg";
|
|
16062
16191
|
function createGoogleGetMsgStatements(variable2, message, closureVar, placeholderValues) {
|
|
16063
16192
|
const messageString = serializeI18nMessageForGetMsg(message);
|
|
@@ -16105,7 +16234,7 @@ function serializeI18nMessageForGetMsg(message) {
|
|
|
16105
16234
|
return message.nodes.map((node) => node.visit(serializerVisitor2, null)).join("");
|
|
16106
16235
|
}
|
|
16107
16236
|
|
|
16108
|
-
// bazel-out/
|
|
16237
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/localize_utils.mjs
|
|
16109
16238
|
function createLocalizeStatements(variable2, message, params) {
|
|
16110
16239
|
const { messageParts, placeHolders } = serializeI18nMessageForLocalize(message);
|
|
16111
16240
|
const sourceSpan = getSourceSpan(message);
|
|
@@ -16188,7 +16317,7 @@ function createEmptyMessagePart(location) {
|
|
|
16188
16317
|
return new LiteralPiece("", new ParseSourceSpan(location, location));
|
|
16189
16318
|
}
|
|
16190
16319
|
|
|
16191
|
-
// bazel-out/
|
|
16320
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/template.mjs
|
|
16192
16321
|
var NG_CONTENT_SELECT_ATTR2 = "select";
|
|
16193
16322
|
var NG_PROJECT_AS_ATTR_NAME = "ngProjectAs";
|
|
16194
16323
|
var EVENT_BINDING_SCOPE_GLOBALS = /* @__PURE__ */ new Set(["$event"]);
|
|
@@ -17490,7 +17619,7 @@ function createClosureModeGuard() {
|
|
|
17490
17619
|
return typeofExpr(variable(NG_I18N_CLOSURE_MODE)).notIdentical(literal("undefined", STRING_TYPE)).and(variable(NG_I18N_CLOSURE_MODE));
|
|
17491
17620
|
}
|
|
17492
17621
|
|
|
17493
|
-
// bazel-out/
|
|
17622
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/compiler.mjs
|
|
17494
17623
|
var ATTR_REGEX = /attr\.([^\]]+)/;
|
|
17495
17624
|
var COMPONENT_VARIABLE = "%COMP%";
|
|
17496
17625
|
var HOST_ATTR = `_nghost-${COMPONENT_VARIABLE}`;
|
|
@@ -17517,6 +17646,9 @@ function baseDirectiveFields(meta, constantPool, bindingParser) {
|
|
|
17517
17646
|
if (meta.isStandalone) {
|
|
17518
17647
|
definitionMap.set("standalone", literal(true));
|
|
17519
17648
|
}
|
|
17649
|
+
if (meta.isSignal) {
|
|
17650
|
+
definitionMap.set("signals", literal(true));
|
|
17651
|
+
}
|
|
17520
17652
|
return definitionMap;
|
|
17521
17653
|
}
|
|
17522
17654
|
function addFeatures(definitionMap, meta) {
|
|
@@ -17642,6 +17774,7 @@ function createComponentType(meta) {
|
|
|
17642
17774
|
typeParams.push(stringArrayAsType(meta.template.ngContentSelectors));
|
|
17643
17775
|
typeParams.push(expressionType(literal(meta.isStandalone)));
|
|
17644
17776
|
typeParams.push(createHostDirectivesType(meta));
|
|
17777
|
+
typeParams.push(expressionType(literal(meta.isSignal)));
|
|
17645
17778
|
return expressionType(importExpr(Identifiers.ComponentDeclaration, typeParams));
|
|
17646
17779
|
}
|
|
17647
17780
|
function compileDeclarationList(list, mode) {
|
|
@@ -17741,6 +17874,7 @@ function createDirectiveType(meta) {
|
|
|
17741
17874
|
typeParams.push(NONE_TYPE);
|
|
17742
17875
|
typeParams.push(expressionType(literal(meta.isStandalone)));
|
|
17743
17876
|
typeParams.push(createHostDirectivesType(meta));
|
|
17877
|
+
typeParams.push(expressionType(literal(meta.isSignal)));
|
|
17744
17878
|
return expressionType(importExpr(Identifiers.DirectiveDeclaration, typeParams));
|
|
17745
17879
|
}
|
|
17746
17880
|
function createViewQueriesFunction(viewQueries, constantPool, name) {
|
|
@@ -18034,11 +18168,11 @@ function createHostDirectivesMappingArray(mapping) {
|
|
|
18034
18168
|
return elements.length > 0 ? literalArr(elements) : null;
|
|
18035
18169
|
}
|
|
18036
18170
|
|
|
18037
|
-
// bazel-out/
|
|
18171
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/resource_loader.mjs
|
|
18038
18172
|
var ResourceLoader = class {
|
|
18039
18173
|
};
|
|
18040
18174
|
|
|
18041
|
-
// bazel-out/
|
|
18175
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/jit_compiler_facade.mjs
|
|
18042
18176
|
var CompilerFacadeImpl = class {
|
|
18043
18177
|
constructor(jitEvaluator = new JitEvaluator()) {
|
|
18044
18178
|
this.jitEvaluator = jitEvaluator;
|
|
@@ -18273,7 +18407,7 @@ function convertDirectiveFacadeToMetadata(facade) {
|
|
|
18273
18407
|
});
|
|
18274
18408
|
}
|
|
18275
18409
|
function convertDeclareDirectiveFacadeToMetadata(declaration, typeSourceSpan) {
|
|
18276
|
-
var _a2, _b, _c, _d, _e, _f, _g, _h;
|
|
18410
|
+
var _a2, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
18277
18411
|
return {
|
|
18278
18412
|
name: declaration.type.name,
|
|
18279
18413
|
type: wrapReference(declaration.type),
|
|
@@ -18292,6 +18426,7 @@ function convertDeclareDirectiveFacadeToMetadata(declaration, typeSourceSpan) {
|
|
|
18292
18426
|
typeArgumentCount: 0,
|
|
18293
18427
|
fullInheritance: false,
|
|
18294
18428
|
isStandalone: (_h = declaration.isStandalone) != null ? _h : false,
|
|
18429
|
+
isSignal: (_i = declaration.isSignal) != null ? _i : false,
|
|
18295
18430
|
hostDirectives: convertHostDirectivesToMetadata(declaration)
|
|
18296
18431
|
};
|
|
18297
18432
|
}
|
|
@@ -18539,10 +18674,10 @@ function publishFacade(global2) {
|
|
|
18539
18674
|
ng.\u0275compilerFacade = new CompilerFacadeImpl();
|
|
18540
18675
|
}
|
|
18541
18676
|
|
|
18542
|
-
// bazel-out/
|
|
18543
|
-
var VERSION2 = new Version("16.0.0");
|
|
18677
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/version.mjs
|
|
18678
|
+
var VERSION2 = new Version("16.1.0-next.0");
|
|
18544
18679
|
|
|
18545
|
-
// bazel-out/
|
|
18680
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
|
|
18546
18681
|
var _I18N_ATTR = "i18n";
|
|
18547
18682
|
var _I18N_ATTR_PREFIX = "i18n-";
|
|
18548
18683
|
var _I18N_COMMENT_PREFIX_REGEXP = /^i18n:?/;
|
|
@@ -18846,7 +18981,7 @@ function _parseMessageMeta(i18n) {
|
|
|
18846
18981
|
return { meaning, description, id: id.trim() };
|
|
18847
18982
|
}
|
|
18848
18983
|
|
|
18849
|
-
// bazel-out/
|
|
18984
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/xml_tags.mjs
|
|
18850
18985
|
var XmlTagDefinition = class {
|
|
18851
18986
|
constructor() {
|
|
18852
18987
|
this.closedByParent = false;
|
|
@@ -18871,7 +19006,7 @@ function getXmlTagDefinition(tagName) {
|
|
|
18871
19006
|
return _TAG_DEFINITION;
|
|
18872
19007
|
}
|
|
18873
19008
|
|
|
18874
|
-
// bazel-out/
|
|
19009
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/xml_parser.mjs
|
|
18875
19010
|
var XmlParser = class extends Parser2 {
|
|
18876
19011
|
constructor() {
|
|
18877
19012
|
super(getXmlTagDefinition);
|
|
@@ -18881,7 +19016,7 @@ var XmlParser = class extends Parser2 {
|
|
|
18881
19016
|
}
|
|
18882
19017
|
};
|
|
18883
19018
|
|
|
18884
|
-
// bazel-out/
|
|
19019
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/xliff.mjs
|
|
18885
19020
|
var _VERSION = "1.2";
|
|
18886
19021
|
var _XMLNS = "urn:oasis:names:tc:xliff:document:1.2";
|
|
18887
19022
|
var _DEFAULT_SOURCE_LANG = "en";
|
|
@@ -19121,7 +19256,7 @@ function getCtypeForTag(tag) {
|
|
|
19121
19256
|
}
|
|
19122
19257
|
}
|
|
19123
19258
|
|
|
19124
|
-
// bazel-out/
|
|
19259
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/xliff2.mjs
|
|
19125
19260
|
var _VERSION2 = "2.0";
|
|
19126
19261
|
var _XMLNS2 = "urn:oasis:names:tc:xliff:document:2.0";
|
|
19127
19262
|
var _DEFAULT_SOURCE_LANG2 = "en";
|
|
@@ -19412,7 +19547,7 @@ function getTypeForTag(tag) {
|
|
|
19412
19547
|
}
|
|
19413
19548
|
}
|
|
19414
19549
|
|
|
19415
|
-
// bazel-out/
|
|
19550
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/message_bundle.mjs
|
|
19416
19551
|
var MessageBundle = class {
|
|
19417
19552
|
constructor(_htmlParser, _implicitTags, _implicitAttrs, _locale = null) {
|
|
19418
19553
|
this._htmlParser = _htmlParser;
|
|
@@ -19479,7 +19614,7 @@ var MapPlaceholderNames = class extends CloneVisitor {
|
|
|
19479
19614
|
}
|
|
19480
19615
|
};
|
|
19481
19616
|
|
|
19482
|
-
// bazel-out/
|
|
19617
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/api.mjs
|
|
19483
19618
|
var FactoryTarget2;
|
|
19484
19619
|
(function(FactoryTarget3) {
|
|
19485
19620
|
FactoryTarget3[FactoryTarget3["Directive"] = 0] = "Directive";
|
|
@@ -19489,7 +19624,7 @@ var FactoryTarget2;
|
|
|
19489
19624
|
FactoryTarget3[FactoryTarget3["NgModule"] = 4] = "NgModule";
|
|
19490
19625
|
})(FactoryTarget2 || (FactoryTarget2 = {}));
|
|
19491
19626
|
|
|
19492
|
-
// bazel-out/
|
|
19627
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/t2_binder.mjs
|
|
19493
19628
|
var R3TargetBinder = class {
|
|
19494
19629
|
constructor(directiveMatcher) {
|
|
19495
19630
|
this.directiveMatcher = directiveMatcher;
|
|
@@ -19841,7 +19976,7 @@ function extractTemplateEntities(rootScope) {
|
|
|
19841
19976
|
return templateEntities;
|
|
19842
19977
|
}
|
|
19843
19978
|
|
|
19844
|
-
// bazel-out/
|
|
19979
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_class_metadata_compiler.mjs
|
|
19845
19980
|
function compileClassMetadata(metadata) {
|
|
19846
19981
|
var _a2, _b;
|
|
19847
19982
|
const fnCall = importExpr(Identifiers.setClassMetadata).callFn([
|
|
@@ -19854,12 +19989,12 @@ function compileClassMetadata(metadata) {
|
|
|
19854
19989
|
return iife.callFn([]);
|
|
19855
19990
|
}
|
|
19856
19991
|
|
|
19857
|
-
// bazel-out/
|
|
19992
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/class_metadata.mjs
|
|
19858
19993
|
var MINIMUM_PARTIAL_LINKER_VERSION = "12.0.0";
|
|
19859
19994
|
function compileDeclareClassMetadata(metadata) {
|
|
19860
19995
|
const definitionMap = new DefinitionMap();
|
|
19861
19996
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
19862
|
-
definitionMap.set("version", literal("16.0.0"));
|
|
19997
|
+
definitionMap.set("version", literal("16.1.0-next.0"));
|
|
19863
19998
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
19864
19999
|
definitionMap.set("type", metadata.type);
|
|
19865
20000
|
definitionMap.set("decorators", metadata.decorators);
|
|
@@ -19868,7 +20003,7 @@ function compileDeclareClassMetadata(metadata) {
|
|
|
19868
20003
|
return importExpr(Identifiers.declareClassMetadata).callFn([definitionMap.toLiteralMap()]);
|
|
19869
20004
|
}
|
|
19870
20005
|
|
|
19871
|
-
// bazel-out/
|
|
20006
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/util.mjs
|
|
19872
20007
|
function toOptionalLiteralArray(values, mapper) {
|
|
19873
20008
|
if (values === null || values.length === 0) {
|
|
19874
20009
|
return null;
|
|
@@ -19916,7 +20051,7 @@ function compileDependency(dep) {
|
|
|
19916
20051
|
return depMeta.toLiteralMap();
|
|
19917
20052
|
}
|
|
19918
20053
|
|
|
19919
|
-
// bazel-out/
|
|
20054
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/directive.mjs
|
|
19920
20055
|
var MINIMUM_PARTIAL_LINKER_VERSION2 = "14.0.0";
|
|
19921
20056
|
function compileDeclareDirectiveFromMetadata(meta) {
|
|
19922
20057
|
const definitionMap = createDirectiveDefinitionMap(meta);
|
|
@@ -19928,11 +20063,14 @@ function createDirectiveDefinitionMap(meta) {
|
|
|
19928
20063
|
var _a2;
|
|
19929
20064
|
const definitionMap = new DefinitionMap();
|
|
19930
20065
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION2));
|
|
19931
|
-
definitionMap.set("version", literal("16.0.0"));
|
|
20066
|
+
definitionMap.set("version", literal("16.1.0-next.0"));
|
|
19932
20067
|
definitionMap.set("type", meta.type.value);
|
|
19933
20068
|
if (meta.isStandalone) {
|
|
19934
20069
|
definitionMap.set("isStandalone", literal(meta.isStandalone));
|
|
19935
20070
|
}
|
|
20071
|
+
if (meta.isSignal) {
|
|
20072
|
+
definitionMap.set("isSignal", literal(meta.isSignal));
|
|
20073
|
+
}
|
|
19936
20074
|
if (meta.selector !== null) {
|
|
19937
20075
|
definitionMap.set("selector", literal(meta.selector));
|
|
19938
20076
|
}
|
|
@@ -20018,7 +20156,7 @@ function createHostDirectives(hostDirectives) {
|
|
|
20018
20156
|
return literalArr(expressions);
|
|
20019
20157
|
}
|
|
20020
20158
|
|
|
20021
|
-
// bazel-out/
|
|
20159
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/component.mjs
|
|
20022
20160
|
function compileDeclareComponentFromMetadata(meta, template2, additionalTemplateInfo) {
|
|
20023
20161
|
const definitionMap = createComponentDefinitionMap(meta, template2, additionalTemplateInfo);
|
|
20024
20162
|
const expression = importExpr(Identifiers.declareComponent).callFn([definitionMap.toLiteralMap()]);
|
|
@@ -20105,12 +20243,12 @@ function compileUsedDependenciesMetadata(meta) {
|
|
|
20105
20243
|
});
|
|
20106
20244
|
}
|
|
20107
20245
|
|
|
20108
|
-
// bazel-out/
|
|
20246
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/factory.mjs
|
|
20109
20247
|
var MINIMUM_PARTIAL_LINKER_VERSION3 = "12.0.0";
|
|
20110
20248
|
function compileDeclareFactoryFunction(meta) {
|
|
20111
20249
|
const definitionMap = new DefinitionMap();
|
|
20112
20250
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION3));
|
|
20113
|
-
definitionMap.set("version", literal("16.0.0"));
|
|
20251
|
+
definitionMap.set("version", literal("16.1.0-next.0"));
|
|
20114
20252
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
20115
20253
|
definitionMap.set("type", meta.type.value);
|
|
20116
20254
|
definitionMap.set("deps", compileDependencies(meta.deps));
|
|
@@ -20122,7 +20260,7 @@ function compileDeclareFactoryFunction(meta) {
|
|
|
20122
20260
|
};
|
|
20123
20261
|
}
|
|
20124
20262
|
|
|
20125
|
-
// bazel-out/
|
|
20263
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/injectable.mjs
|
|
20126
20264
|
var MINIMUM_PARTIAL_LINKER_VERSION4 = "12.0.0";
|
|
20127
20265
|
function compileDeclareInjectableFromMetadata(meta) {
|
|
20128
20266
|
const definitionMap = createInjectableDefinitionMap(meta);
|
|
@@ -20133,7 +20271,7 @@ function compileDeclareInjectableFromMetadata(meta) {
|
|
|
20133
20271
|
function createInjectableDefinitionMap(meta) {
|
|
20134
20272
|
const definitionMap = new DefinitionMap();
|
|
20135
20273
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION4));
|
|
20136
|
-
definitionMap.set("version", literal("16.0.0"));
|
|
20274
|
+
definitionMap.set("version", literal("16.1.0-next.0"));
|
|
20137
20275
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
20138
20276
|
definitionMap.set("type", meta.type.value);
|
|
20139
20277
|
if (meta.providedIn !== void 0) {
|
|
@@ -20160,7 +20298,7 @@ function createInjectableDefinitionMap(meta) {
|
|
|
20160
20298
|
return definitionMap;
|
|
20161
20299
|
}
|
|
20162
20300
|
|
|
20163
|
-
// bazel-out/
|
|
20301
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/injector.mjs
|
|
20164
20302
|
var MINIMUM_PARTIAL_LINKER_VERSION5 = "12.0.0";
|
|
20165
20303
|
function compileDeclareInjectorFromMetadata(meta) {
|
|
20166
20304
|
const definitionMap = createInjectorDefinitionMap(meta);
|
|
@@ -20171,7 +20309,7 @@ function compileDeclareInjectorFromMetadata(meta) {
|
|
|
20171
20309
|
function createInjectorDefinitionMap(meta) {
|
|
20172
20310
|
const definitionMap = new DefinitionMap();
|
|
20173
20311
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION5));
|
|
20174
|
-
definitionMap.set("version", literal("16.0.0"));
|
|
20312
|
+
definitionMap.set("version", literal("16.1.0-next.0"));
|
|
20175
20313
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
20176
20314
|
definitionMap.set("type", meta.type.value);
|
|
20177
20315
|
definitionMap.set("providers", meta.providers);
|
|
@@ -20181,7 +20319,7 @@ function createInjectorDefinitionMap(meta) {
|
|
|
20181
20319
|
return definitionMap;
|
|
20182
20320
|
}
|
|
20183
20321
|
|
|
20184
|
-
// bazel-out/
|
|
20322
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/ng_module.mjs
|
|
20185
20323
|
var MINIMUM_PARTIAL_LINKER_VERSION6 = "14.0.0";
|
|
20186
20324
|
function compileDeclareNgModuleFromMetadata(meta) {
|
|
20187
20325
|
const definitionMap = createNgModuleDefinitionMap(meta);
|
|
@@ -20192,7 +20330,7 @@ function compileDeclareNgModuleFromMetadata(meta) {
|
|
|
20192
20330
|
function createNgModuleDefinitionMap(meta) {
|
|
20193
20331
|
const definitionMap = new DefinitionMap();
|
|
20194
20332
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION6));
|
|
20195
|
-
definitionMap.set("version", literal("16.0.0"));
|
|
20333
|
+
definitionMap.set("version", literal("16.1.0-next.0"));
|
|
20196
20334
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
20197
20335
|
definitionMap.set("type", meta.type.value);
|
|
20198
20336
|
if (meta.bootstrap.length > 0) {
|
|
@@ -20216,7 +20354,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
20216
20354
|
return definitionMap;
|
|
20217
20355
|
}
|
|
20218
20356
|
|
|
20219
|
-
// bazel-out/
|
|
20357
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/pipe.mjs
|
|
20220
20358
|
var MINIMUM_PARTIAL_LINKER_VERSION7 = "14.0.0";
|
|
20221
20359
|
function compileDeclarePipeFromMetadata(meta) {
|
|
20222
20360
|
const definitionMap = createPipeDefinitionMap(meta);
|
|
@@ -20227,7 +20365,7 @@ function compileDeclarePipeFromMetadata(meta) {
|
|
|
20227
20365
|
function createPipeDefinitionMap(meta) {
|
|
20228
20366
|
const definitionMap = new DefinitionMap();
|
|
20229
20367
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION7));
|
|
20230
|
-
definitionMap.set("version", literal("16.0.0"));
|
|
20368
|
+
definitionMap.set("version", literal("16.1.0-next.0"));
|
|
20231
20369
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
20232
20370
|
definitionMap.set("type", meta.type.value);
|
|
20233
20371
|
if (meta.isStandalone) {
|
|
@@ -20240,13 +20378,13 @@ function createPipeDefinitionMap(meta) {
|
|
|
20240
20378
|
return definitionMap;
|
|
20241
20379
|
}
|
|
20242
20380
|
|
|
20243
|
-
// bazel-out/
|
|
20381
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/compiler.mjs
|
|
20244
20382
|
publishFacade(_global);
|
|
20245
20383
|
|
|
20246
|
-
// bazel-out/
|
|
20247
|
-
var VERSION3 = new Version("16.0.0");
|
|
20384
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/version.mjs
|
|
20385
|
+
var VERSION3 = new Version("16.1.0-next.0");
|
|
20248
20386
|
|
|
20249
|
-
// bazel-out/
|
|
20387
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
|
|
20250
20388
|
var EmitFlags;
|
|
20251
20389
|
(function(EmitFlags2) {
|
|
20252
20390
|
EmitFlags2[EmitFlags2["DTS"] = 1] = "DTS";
|
|
@@ -20258,13 +20396,13 @@ var EmitFlags;
|
|
|
20258
20396
|
EmitFlags2[EmitFlags2["All"] = 31] = "All";
|
|
20259
20397
|
})(EmitFlags || (EmitFlags = {}));
|
|
20260
20398
|
|
|
20261
|
-
// bazel-out/
|
|
20399
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/compiler_host.mjs
|
|
20262
20400
|
var import_typescript2 = __toESM(require("typescript"), 1);
|
|
20263
20401
|
|
|
20264
|
-
// bazel-out/
|
|
20402
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
20265
20403
|
var import_typescript94 = __toESM(require("typescript"), 1);
|
|
20266
20404
|
|
|
20267
|
-
// bazel-out/
|
|
20405
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
|
|
20268
20406
|
var path = __toESM(require("path"), 1);
|
|
20269
20407
|
function i18nGetExtension(formatName) {
|
|
20270
20408
|
const format = formatName.toLowerCase();
|
|
@@ -20314,10 +20452,10 @@ function getPathNormalizer(basePath) {
|
|
|
20314
20452
|
};
|
|
20315
20453
|
}
|
|
20316
20454
|
|
|
20317
|
-
// bazel-out/
|
|
20455
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
20318
20456
|
var import_typescript3 = __toESM(require("typescript"), 1);
|
|
20319
20457
|
|
|
20320
|
-
// bazel-out/
|
|
20458
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/version_helpers.mjs
|
|
20321
20459
|
function toNumbers(value) {
|
|
20322
20460
|
const suffixIndex = value.lastIndexOf("-");
|
|
20323
20461
|
return value.slice(0, suffixIndex === -1 ? value.length : suffixIndex).split(".").map((segment) => {
|
|
@@ -20352,9 +20490,9 @@ function compareVersions(v1, v2) {
|
|
|
20352
20490
|
return compareNumbers(toNumbers(v1), toNumbers(v2));
|
|
20353
20491
|
}
|
|
20354
20492
|
|
|
20355
|
-
// bazel-out/
|
|
20493
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
20356
20494
|
var MIN_TS_VERSION = "4.9.3";
|
|
20357
|
-
var MAX_TS_VERSION = "5.
|
|
20495
|
+
var MAX_TS_VERSION = "5.2.0";
|
|
20358
20496
|
var tsVersion = import_typescript3.default.version;
|
|
20359
20497
|
function checkVersion(version, minVersion, maxVersion) {
|
|
20360
20498
|
if (compareVersions(version, minVersion) < 0 || compareVersions(version, maxVersion) >= 0) {
|
|
@@ -20365,13 +20503,13 @@ function verifySupportedTypeScriptVersion() {
|
|
|
20365
20503
|
checkVersion(tsVersion, MIN_TS_VERSION, MAX_TS_VERSION);
|
|
20366
20504
|
}
|
|
20367
20505
|
|
|
20368
|
-
// bazel-out/
|
|
20506
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
20369
20507
|
var import_typescript90 = __toESM(require("typescript"), 1);
|
|
20370
20508
|
|
|
20371
|
-
// bazel-out/
|
|
20509
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
|
|
20372
20510
|
var import_typescript14 = __toESM(require("typescript"), 1);
|
|
20373
20511
|
|
|
20374
|
-
// bazel-out/
|
|
20512
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_code.mjs
|
|
20375
20513
|
var ErrorCode;
|
|
20376
20514
|
(function(ErrorCode2) {
|
|
20377
20515
|
ErrorCode2[ErrorCode2["DECORATOR_ARG_NOT_LITERAL"] = 1001] = "DECORATOR_ARG_NOT_LITERAL";
|
|
@@ -20444,7 +20582,7 @@ var ErrorCode;
|
|
|
20444
20582
|
ErrorCode2[ErrorCode2["SUGGEST_SUBOPTIMAL_TYPE_INFERENCE"] = 10002] = "SUGGEST_SUBOPTIMAL_TYPE_INFERENCE";
|
|
20445
20583
|
})(ErrorCode || (ErrorCode = {}));
|
|
20446
20584
|
|
|
20447
|
-
// bazel-out/
|
|
20585
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/docs.mjs
|
|
20448
20586
|
var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
|
|
20449
20587
|
ErrorCode.DECORATOR_ARG_NOT_LITERAL,
|
|
20450
20588
|
ErrorCode.IMPORT_CYCLE_DETECTED,
|
|
@@ -20456,15 +20594,15 @@ var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
|
|
|
20456
20594
|
ErrorCode.WARN_NGMODULE_ID_UNNECESSARY
|
|
20457
20595
|
]);
|
|
20458
20596
|
|
|
20459
|
-
// bazel-out/
|
|
20597
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
|
|
20460
20598
|
var import_typescript4 = __toESM(require("typescript"), 1);
|
|
20461
20599
|
|
|
20462
|
-
// bazel-out/
|
|
20600
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/util.mjs
|
|
20463
20601
|
function ngErrorCode(code) {
|
|
20464
20602
|
return parseInt("-99" + code);
|
|
20465
20603
|
}
|
|
20466
20604
|
|
|
20467
|
-
// bazel-out/
|
|
20605
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
|
|
20468
20606
|
var FatalDiagnosticError = class {
|
|
20469
20607
|
constructor(code, node, message, relatedInformation) {
|
|
20470
20608
|
this.code = code;
|
|
@@ -20520,10 +20658,10 @@ function addDiagnosticChain(messageText, add) {
|
|
|
20520
20658
|
return messageText;
|
|
20521
20659
|
}
|
|
20522
20660
|
|
|
20523
|
-
// bazel-out/
|
|
20661
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.mjs
|
|
20524
20662
|
var ERROR_DETAILS_PAGE_BASE_URL = "https://angular.io/errors";
|
|
20525
20663
|
|
|
20526
|
-
// bazel-out/
|
|
20664
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.mjs
|
|
20527
20665
|
var ExtendedTemplateDiagnosticName;
|
|
20528
20666
|
(function(ExtendedTemplateDiagnosticName2) {
|
|
20529
20667
|
ExtendedTemplateDiagnosticName2["INVALID_BANANA_IN_BOX"] = "invalidBananaInBox";
|
|
@@ -20536,13 +20674,13 @@ var ExtendedTemplateDiagnosticName;
|
|
|
20536
20674
|
ExtendedTemplateDiagnosticName2["SKIP_HYDRATION_NOT_STATIC"] = "skipHydrationNotStatic";
|
|
20537
20675
|
})(ExtendedTemplateDiagnosticName || (ExtendedTemplateDiagnosticName = {}));
|
|
20538
20676
|
|
|
20539
|
-
// bazel-out/
|
|
20677
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
|
|
20540
20678
|
var import_typescript13 = __toESM(require("typescript"), 1);
|
|
20541
20679
|
|
|
20542
|
-
// bazel-out/
|
|
20680
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
|
|
20543
20681
|
var import_typescript7 = __toESM(require("typescript"), 1);
|
|
20544
20682
|
|
|
20545
|
-
// bazel-out/
|
|
20683
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/typescript.mjs
|
|
20546
20684
|
var import_typescript5 = __toESM(require("typescript"), 1);
|
|
20547
20685
|
var TS = /\.tsx?$/i;
|
|
20548
20686
|
var D_TS = /\.d\.ts$/i;
|
|
@@ -20643,7 +20781,7 @@ function toUnredirectedSourceFile(sf) {
|
|
|
20643
20781
|
return redirectInfo.unredirected;
|
|
20644
20782
|
}
|
|
20645
20783
|
|
|
20646
|
-
// bazel-out/
|
|
20784
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/find_export.mjs
|
|
20647
20785
|
function findExportedNameOfNode(target, file, reflector) {
|
|
20648
20786
|
const exports = reflector.getExportsOfModule(file);
|
|
20649
20787
|
if (exports === null) {
|
|
@@ -20663,7 +20801,7 @@ function findExportedNameOfNode(target, file, reflector) {
|
|
|
20663
20801
|
return foundExportName;
|
|
20664
20802
|
}
|
|
20665
20803
|
|
|
20666
|
-
// bazel-out/
|
|
20804
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
|
|
20667
20805
|
var ImportFlags;
|
|
20668
20806
|
(function(ImportFlags2) {
|
|
20669
20807
|
ImportFlags2[ImportFlags2["None"] = 0] = "None";
|
|
@@ -20879,7 +21017,7 @@ var UnifiedModulesStrategy = class {
|
|
|
20879
21017
|
}
|
|
20880
21018
|
};
|
|
20881
21019
|
|
|
20882
|
-
// bazel-out/
|
|
21020
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
|
|
20883
21021
|
var CHARS_TO_ESCAPE = /[^a-zA-Z0-9/_]/g;
|
|
20884
21022
|
var UnifiedModulesAliasingHost = class {
|
|
20885
21023
|
constructor(unifiedModulesHost) {
|
|
@@ -20946,7 +21084,7 @@ var AliasStrategy = class {
|
|
|
20946
21084
|
}
|
|
20947
21085
|
};
|
|
20948
21086
|
|
|
20949
|
-
// bazel-out/
|
|
21087
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/path.mjs
|
|
20950
21088
|
function relativePathBetween(from, to) {
|
|
20951
21089
|
const relativePath = stripExtension(relative(dirname(resolve(from)), resolve(to)));
|
|
20952
21090
|
return relativePath !== "" ? toRelativeImport(relativePath) : null;
|
|
@@ -20955,7 +21093,7 @@ function normalizeSeparators2(path3) {
|
|
|
20955
21093
|
return path3.replace(/\\/g, "/");
|
|
20956
21094
|
}
|
|
20957
21095
|
|
|
20958
|
-
// bazel-out/
|
|
21096
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/core.mjs
|
|
20959
21097
|
var NoopImportRewriter = class {
|
|
20960
21098
|
shouldImportSymbol(symbol, specifier) {
|
|
20961
21099
|
return true;
|
|
@@ -21013,7 +21151,7 @@ function validateAndRewriteCoreSymbol(name) {
|
|
|
21013
21151
|
return CORE_SUPPORTED_SYMBOLS.get(name);
|
|
21014
21152
|
}
|
|
21015
21153
|
|
|
21016
|
-
// bazel-out/
|
|
21154
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/patch_alias_reference_resolution.mjs
|
|
21017
21155
|
var import_typescript9 = __toESM(require("typescript"), 1);
|
|
21018
21156
|
var patchedReferencedAliasesSymbol = Symbol("patchedReferencedAliases");
|
|
21019
21157
|
function loadIsReferencedAliasDeclarationPatch(context) {
|
|
@@ -21048,7 +21186,7 @@ function throwIncompatibleTransformationContextError() {
|
|
|
21048
21186
|
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.");
|
|
21049
21187
|
}
|
|
21050
21188
|
|
|
21051
|
-
// bazel-out/
|
|
21189
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/default.mjs
|
|
21052
21190
|
var DefaultImportDeclaration = Symbol("DefaultImportDeclaration");
|
|
21053
21191
|
function attachDefaultImportDeclaration(expr, importDecl) {
|
|
21054
21192
|
expr[DefaultImportDeclaration] = importDecl;
|
|
@@ -21089,7 +21227,7 @@ var DefaultImportTracker = class {
|
|
|
21089
21227
|
}
|
|
21090
21228
|
};
|
|
21091
21229
|
|
|
21092
|
-
// bazel-out/
|
|
21230
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/references.mjs
|
|
21093
21231
|
var Reference2 = class {
|
|
21094
21232
|
constructor(node, bestGuessOwningModule = null) {
|
|
21095
21233
|
this.node = node;
|
|
@@ -21152,7 +21290,7 @@ var Reference2 = class {
|
|
|
21152
21290
|
}
|
|
21153
21291
|
};
|
|
21154
21292
|
|
|
21155
|
-
// bazel-out/
|
|
21293
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/resolver.mjs
|
|
21156
21294
|
var ModuleResolver = class {
|
|
21157
21295
|
constructor(program, compilerOptions, host, moduleResolutionCache) {
|
|
21158
21296
|
this.program = program;
|
|
@@ -21169,7 +21307,7 @@ var ModuleResolver = class {
|
|
|
21169
21307
|
}
|
|
21170
21308
|
};
|
|
21171
21309
|
|
|
21172
|
-
// bazel-out/
|
|
21310
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
|
|
21173
21311
|
function valueReferenceToExpression(valueRef) {
|
|
21174
21312
|
if (valueRef.kind === 2) {
|
|
21175
21313
|
return null;
|
|
@@ -21404,7 +21542,7 @@ function isAbstractClassDeclaration(clazz) {
|
|
|
21404
21542
|
return import_typescript13.default.canHaveModifiers(clazz) && clazz.modifiers !== void 0 ? clazz.modifiers.some((mod) => mod.kind === import_typescript13.default.SyntaxKind.AbstractKeyword) : false;
|
|
21405
21543
|
}
|
|
21406
21544
|
|
|
21407
|
-
// bazel-out/
|
|
21545
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
|
|
21408
21546
|
function getConstructorDependencies(clazz, reflector, isCore) {
|
|
21409
21547
|
const deps = [];
|
|
21410
21548
|
const errors = [];
|
|
@@ -21546,10 +21684,10 @@ function createUnsuitableInjectionTokenError(clazz, error2) {
|
|
|
21546
21684
|
return new FatalDiagnosticError(ErrorCode.PARAM_MISSING_TOKEN, param.nameNode, chain, hints);
|
|
21547
21685
|
}
|
|
21548
21686
|
|
|
21549
|
-
// bazel-out/
|
|
21687
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
|
|
21550
21688
|
var import_typescript27 = __toESM(require("typescript"), 1);
|
|
21551
21689
|
|
|
21552
|
-
// bazel-out/
|
|
21690
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/api.mjs
|
|
21553
21691
|
var MetaKind;
|
|
21554
21692
|
(function(MetaKind2) {
|
|
21555
21693
|
MetaKind2[MetaKind2["Directive"] = 0] = "Directive";
|
|
@@ -21562,10 +21700,10 @@ var MatchSource;
|
|
|
21562
21700
|
MatchSource2[MatchSource2["HostDirective"] = 1] = "HostDirective";
|
|
21563
21701
|
})(MatchSource || (MatchSource = {}));
|
|
21564
21702
|
|
|
21565
|
-
// bazel-out/
|
|
21703
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
21566
21704
|
var import_typescript22 = __toESM(require("typescript"), 1);
|
|
21567
21705
|
|
|
21568
|
-
// bazel-out/
|
|
21706
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/host.mjs
|
|
21569
21707
|
var import_typescript15 = __toESM(require("typescript"), 1);
|
|
21570
21708
|
function isDecoratorIdentifier(exp) {
|
|
21571
21709
|
return import_typescript15.default.isIdentifier(exp) || import_typescript15.default.isPropertyAccessExpression(exp) && import_typescript15.default.isIdentifier(exp.expression) && import_typescript15.default.isIdentifier(exp.name);
|
|
@@ -21579,7 +21717,7 @@ var ClassMemberKind;
|
|
|
21579
21717
|
ClassMemberKind2[ClassMemberKind2["Method"] = 4] = "Method";
|
|
21580
21718
|
})(ClassMemberKind || (ClassMemberKind = {}));
|
|
21581
21719
|
|
|
21582
|
-
// bazel-out/
|
|
21720
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/type_to_value.mjs
|
|
21583
21721
|
var import_typescript16 = __toESM(require("typescript"), 1);
|
|
21584
21722
|
function typeToValue(typeNode, checker) {
|
|
21585
21723
|
if (typeNode === null) {
|
|
@@ -21745,10 +21883,10 @@ function extractModuleName(node) {
|
|
|
21745
21883
|
return node.moduleSpecifier.text;
|
|
21746
21884
|
}
|
|
21747
21885
|
|
|
21748
|
-
// bazel-out/
|
|
21886
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
|
|
21749
21887
|
var import_typescript18 = __toESM(require("typescript"), 1);
|
|
21750
21888
|
|
|
21751
|
-
// bazel-out/
|
|
21889
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/util.mjs
|
|
21752
21890
|
var import_typescript17 = __toESM(require("typescript"), 1);
|
|
21753
21891
|
function isNamedClassDeclaration(node) {
|
|
21754
21892
|
return import_typescript17.default.isClassDeclaration(node) && isIdentifier(node.name);
|
|
@@ -21757,7 +21895,7 @@ function isIdentifier(node) {
|
|
|
21757
21895
|
return node !== void 0 && import_typescript17.default.isIdentifier(node);
|
|
21758
21896
|
}
|
|
21759
21897
|
|
|
21760
|
-
// bazel-out/
|
|
21898
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
|
|
21761
21899
|
var TypeScriptReflectionHost = class {
|
|
21762
21900
|
constructor(checker) {
|
|
21763
21901
|
this.checker = checker;
|
|
@@ -21855,16 +21993,21 @@ var TypeScriptReflectionHost = class {
|
|
|
21855
21993
|
return this.getDeclarationOfSymbol(symbol, id);
|
|
21856
21994
|
}
|
|
21857
21995
|
getDefinitionOfFunction(node) {
|
|
21858
|
-
if (!import_typescript18.default.isFunctionDeclaration(node) && !import_typescript18.default.isMethodDeclaration(node) && !import_typescript18.default.isFunctionExpression(node)) {
|
|
21996
|
+
if (!import_typescript18.default.isFunctionDeclaration(node) && !import_typescript18.default.isMethodDeclaration(node) && !import_typescript18.default.isFunctionExpression(node) && !import_typescript18.default.isArrowFunction(node)) {
|
|
21859
21997
|
return null;
|
|
21860
21998
|
}
|
|
21999
|
+
let body = null;
|
|
22000
|
+
if (node.body !== void 0) {
|
|
22001
|
+
body = import_typescript18.default.isBlock(node.body) ? Array.from(node.body.statements) : [import_typescript18.default.factory.createReturnStatement(node.body)];
|
|
22002
|
+
}
|
|
21861
22003
|
return {
|
|
21862
22004
|
node,
|
|
21863
|
-
body
|
|
22005
|
+
body,
|
|
22006
|
+
typeParameters: node.typeParameters === void 0 ? null : Array.from(node.typeParameters),
|
|
21864
22007
|
parameters: node.parameters.map((param) => {
|
|
21865
22008
|
const name = parameterName(param.name);
|
|
21866
22009
|
const initializer = param.initializer || null;
|
|
21867
|
-
return { name, node: param, initializer };
|
|
22010
|
+
return { name, node: param, initializer, type: param.type || null };
|
|
21868
22011
|
})
|
|
21869
22012
|
};
|
|
21870
22013
|
}
|
|
@@ -22178,7 +22321,7 @@ function getExportedName(decl, originalId) {
|
|
|
22178
22321
|
}
|
|
22179
22322
|
var LocalExportedDeclarations = Symbol("LocalExportedDeclarations");
|
|
22180
22323
|
|
|
22181
|
-
// bazel-out/
|
|
22324
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/property_mapping.mjs
|
|
22182
22325
|
var ClassPropertyMapping = class {
|
|
22183
22326
|
constructor(forwardMap) {
|
|
22184
22327
|
this.forwardMap = forwardMap;
|
|
@@ -22256,7 +22399,7 @@ function reverseMapFromForwardMap(forwardMap) {
|
|
|
22256
22399
|
return reverseMap;
|
|
22257
22400
|
}
|
|
22258
22401
|
|
|
22259
|
-
// bazel-out/
|
|
22402
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/util.mjs
|
|
22260
22403
|
var import_typescript20 = __toESM(require("typescript"), 1);
|
|
22261
22404
|
function extractReferencesFromType(checker, def, bestGuessOwningModule) {
|
|
22262
22405
|
if (!import_typescript20.default.isTupleTypeNode(def)) {
|
|
@@ -22438,7 +22581,7 @@ function hasInjectableFields(clazz, host) {
|
|
|
22438
22581
|
return members.some(({ isStatic, name }) => isStatic && (name === "\u0275prov" || name === "\u0275fac"));
|
|
22439
22582
|
}
|
|
22440
22583
|
|
|
22441
|
-
// bazel-out/
|
|
22584
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
22442
22585
|
var DtsMetadataReader = class {
|
|
22443
22586
|
constructor(checker, reflector) {
|
|
22444
22587
|
this.checker = checker;
|
|
@@ -22468,7 +22611,7 @@ var DtsMetadataReader = class {
|
|
|
22468
22611
|
};
|
|
22469
22612
|
}
|
|
22470
22613
|
getDirectiveMetadata(ref) {
|
|
22471
|
-
var _a2;
|
|
22614
|
+
var _a2, _b;
|
|
22472
22615
|
const clazz = ref.node;
|
|
22473
22616
|
const def = this.reflector.getMembersOfClass(clazz).find((field) => field.isStatic && (field.name === "\u0275cmp" || field.name === "\u0275dir"));
|
|
22474
22617
|
if (def === void 0) {
|
|
@@ -22485,6 +22628,7 @@ var DtsMetadataReader = class {
|
|
|
22485
22628
|
const inputs = ClassPropertyMapping.fromMappedObject(readInputsType(def.type.typeArguments[3]));
|
|
22486
22629
|
const outputs = ClassPropertyMapping.fromMappedObject(readMapType(def.type.typeArguments[4], readStringType));
|
|
22487
22630
|
const hostDirectives = def.type.typeArguments.length > 8 ? readHostDirectivesType(this.checker, def.type.typeArguments[8], ref.bestGuessOwningModule) : null;
|
|
22631
|
+
const isSignal = def.type.typeArguments.length > 9 && ((_b = readBooleanType(def.type.typeArguments[9])) != null ? _b : false);
|
|
22488
22632
|
return __spreadProps(__spreadValues({
|
|
22489
22633
|
kind: MetaKind.Directive,
|
|
22490
22634
|
matchSource: MatchSource.Selector,
|
|
@@ -22503,6 +22647,7 @@ var DtsMetadataReader = class {
|
|
|
22503
22647
|
isStructural,
|
|
22504
22648
|
animationTriggerNames: null,
|
|
22505
22649
|
isStandalone,
|
|
22650
|
+
isSignal,
|
|
22506
22651
|
imports: null,
|
|
22507
22652
|
schemas: null,
|
|
22508
22653
|
decorator: null,
|
|
@@ -22608,7 +22753,7 @@ function readHostDirectivesType(checker, type, bestGuessOwningModule) {
|
|
|
22608
22753
|
return result.length > 0 ? result : null;
|
|
22609
22754
|
}
|
|
22610
22755
|
|
|
22611
|
-
// bazel-out/
|
|
22756
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/inheritance.mjs
|
|
22612
22757
|
function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
22613
22758
|
const topMeta = reader.getDirectiveMetadata(dir);
|
|
22614
22759
|
if (topMeta === null) {
|
|
@@ -22665,7 +22810,7 @@ function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
|
22665
22810
|
});
|
|
22666
22811
|
}
|
|
22667
22812
|
|
|
22668
|
-
// bazel-out/
|
|
22813
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/registry.mjs
|
|
22669
22814
|
var LocalMetadataRegistry = class {
|
|
22670
22815
|
constructor() {
|
|
22671
22816
|
this.directives = /* @__PURE__ */ new Map();
|
|
@@ -22722,7 +22867,7 @@ var CompoundMetadataRegistry = class {
|
|
|
22722
22867
|
}
|
|
22723
22868
|
};
|
|
22724
22869
|
|
|
22725
|
-
// bazel-out/
|
|
22870
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/resource_registry.mjs
|
|
22726
22871
|
var ResourceRegistry = class {
|
|
22727
22872
|
constructor() {
|
|
22728
22873
|
this.externalTemplateToComponentsMap = /* @__PURE__ */ new Map();
|
|
@@ -22787,7 +22932,7 @@ var ResourceRegistry = class {
|
|
|
22787
22932
|
}
|
|
22788
22933
|
};
|
|
22789
22934
|
|
|
22790
|
-
// bazel-out/
|
|
22935
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/providers.mjs
|
|
22791
22936
|
var ExportedProviderStatusResolver = class {
|
|
22792
22937
|
constructor(metaReader) {
|
|
22793
22938
|
this.metaReader = metaReader;
|
|
@@ -22831,7 +22976,7 @@ var ExportedProviderStatusResolver = class {
|
|
|
22831
22976
|
}
|
|
22832
22977
|
};
|
|
22833
22978
|
|
|
22834
|
-
// bazel-out/
|
|
22979
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/host_directives_resolver.mjs
|
|
22835
22980
|
var EMPTY_ARRAY = [];
|
|
22836
22981
|
var HostDirectivesResolver = class {
|
|
22837
22982
|
constructor(metaReader) {
|
|
@@ -22891,10 +23036,10 @@ function resolveOutput(bindingName) {
|
|
|
22891
23036
|
return bindingName;
|
|
22892
23037
|
}
|
|
22893
23038
|
|
|
22894
|
-
// bazel-out/
|
|
23039
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
|
|
22895
23040
|
var import_typescript24 = __toESM(require("typescript"), 1);
|
|
22896
23041
|
|
|
22897
|
-
// bazel-out/
|
|
23042
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/dynamic.mjs
|
|
22898
23043
|
var DynamicValue = class {
|
|
22899
23044
|
constructor(node, reason, code) {
|
|
22900
23045
|
this.node = node;
|
|
@@ -22984,7 +23129,7 @@ var DynamicValue = class {
|
|
|
22984
23129
|
}
|
|
22985
23130
|
};
|
|
22986
23131
|
|
|
22987
|
-
// bazel-out/
|
|
23132
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/result.mjs
|
|
22988
23133
|
var ResolvedModule = class {
|
|
22989
23134
|
constructor(exports, evaluate) {
|
|
22990
23135
|
this.exports = exports;
|
|
@@ -23014,7 +23159,7 @@ var EnumValue = class {
|
|
|
23014
23159
|
var KnownFn = class {
|
|
23015
23160
|
};
|
|
23016
23161
|
|
|
23017
|
-
// bazel-out/
|
|
23162
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
|
|
23018
23163
|
function describeResolvedType(value, maxDepth = 1) {
|
|
23019
23164
|
var _a2, _b;
|
|
23020
23165
|
if (value === null) {
|
|
@@ -23143,10 +23288,10 @@ function getContainerNode(node) {
|
|
|
23143
23288
|
return node.getSourceFile();
|
|
23144
23289
|
}
|
|
23145
23290
|
|
|
23146
|
-
// bazel-out/
|
|
23291
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
23147
23292
|
var import_typescript25 = __toESM(require("typescript"), 1);
|
|
23148
23293
|
|
|
23149
|
-
// bazel-out/
|
|
23294
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/builtin.mjs
|
|
23150
23295
|
var ArraySliceBuiltinFn = class extends KnownFn {
|
|
23151
23296
|
constructor(lhs) {
|
|
23152
23297
|
super();
|
|
@@ -23198,21 +23343,21 @@ var StringConcatBuiltinFn = class extends KnownFn {
|
|
|
23198
23343
|
}
|
|
23199
23344
|
};
|
|
23200
23345
|
|
|
23201
|
-
// bazel-out/
|
|
23346
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/synthetic.mjs
|
|
23202
23347
|
var SyntheticValue = class {
|
|
23203
23348
|
constructor(value) {
|
|
23204
23349
|
this.value = value;
|
|
23205
23350
|
}
|
|
23206
23351
|
};
|
|
23207
23352
|
|
|
23208
|
-
// bazel-out/
|
|
23353
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
23209
23354
|
function literalBinaryOp(op) {
|
|
23210
23355
|
return { op, literal: true };
|
|
23211
23356
|
}
|
|
23212
23357
|
function referenceBinaryOp(op) {
|
|
23213
23358
|
return { op, literal: false };
|
|
23214
23359
|
}
|
|
23215
|
-
var
|
|
23360
|
+
var BINARY_OPERATORS2 = /* @__PURE__ */ new Map([
|
|
23216
23361
|
[import_typescript25.default.SyntaxKind.PlusToken, literalBinaryOp((a, b) => a + b)],
|
|
23217
23362
|
[import_typescript25.default.SyntaxKind.MinusToken, literalBinaryOp((a, b) => a - b)],
|
|
23218
23363
|
[import_typescript25.default.SyntaxKind.AsteriskToken, literalBinaryOp((a, b) => a * b)],
|
|
@@ -23608,10 +23753,10 @@ var StaticInterpreter = class {
|
|
|
23608
23753
|
}
|
|
23609
23754
|
visitBinaryExpression(node, context) {
|
|
23610
23755
|
const tokenKind = node.operatorToken.kind;
|
|
23611
|
-
if (!
|
|
23756
|
+
if (!BINARY_OPERATORS2.has(tokenKind)) {
|
|
23612
23757
|
return DynamicValue.fromUnsupportedSyntax(node);
|
|
23613
23758
|
}
|
|
23614
|
-
const opRecord =
|
|
23759
|
+
const opRecord = BINARY_OPERATORS2.get(tokenKind);
|
|
23615
23760
|
let lhs, rhs;
|
|
23616
23761
|
if (opRecord.literal) {
|
|
23617
23762
|
lhs = literal2(this.visitExpression(node.left, context), (value) => DynamicValue.fromInvalidExpressionType(node.left, value));
|
|
@@ -23780,7 +23925,7 @@ function owningModule(context, override = null) {
|
|
|
23780
23925
|
}
|
|
23781
23926
|
}
|
|
23782
23927
|
|
|
23783
|
-
// bazel-out/
|
|
23928
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interface.mjs
|
|
23784
23929
|
var PartialEvaluator = class {
|
|
23785
23930
|
constructor(host, checker, dependencyTracker) {
|
|
23786
23931
|
this.host = host;
|
|
@@ -23800,7 +23945,7 @@ var PartialEvaluator = class {
|
|
|
23800
23945
|
}
|
|
23801
23946
|
};
|
|
23802
23947
|
|
|
23803
|
-
// bazel-out/
|
|
23948
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
|
|
23804
23949
|
function makeDuplicateDeclarationError(node, data, kind) {
|
|
23805
23950
|
const context = [];
|
|
23806
23951
|
for (const decl of data) {
|
|
@@ -23996,7 +24141,7 @@ function getInheritedUndecoratedCtorDiagnostic(node, baseClass, kind) {
|
|
|
23996
24141
|
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}.`);
|
|
23997
24142
|
}
|
|
23998
24143
|
|
|
23999
|
-
// bazel-out/
|
|
24144
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/evaluation.mjs
|
|
24000
24145
|
var import_typescript29 = __toESM(require("typescript"), 1);
|
|
24001
24146
|
function resolveEnumValue(evaluator, metadata, field, enumSymbolName) {
|
|
24002
24147
|
let resolved = null;
|
|
@@ -24029,7 +24174,7 @@ function resolveLiteral(decorator, literalCache) {
|
|
|
24029
24174
|
return meta;
|
|
24030
24175
|
}
|
|
24031
24176
|
|
|
24032
|
-
// bazel-out/
|
|
24177
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/factory.mjs
|
|
24033
24178
|
function compileNgFactoryDefField(metadata) {
|
|
24034
24179
|
const res = compileFactoryFunction(metadata);
|
|
24035
24180
|
return { name: "\u0275fac", initializer: res.expression, statements: res.statements, type: res.type };
|
|
@@ -24039,7 +24184,7 @@ function compileDeclareFactory(metadata) {
|
|
|
24039
24184
|
return { name: "\u0275fac", initializer: res.expression, statements: res.statements, type: res.type };
|
|
24040
24185
|
}
|
|
24041
24186
|
|
|
24042
|
-
// bazel-out/
|
|
24187
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/injectable_registry.mjs
|
|
24043
24188
|
var InjectableClassRegistry = class {
|
|
24044
24189
|
constructor(host, isCore) {
|
|
24045
24190
|
this.host = host;
|
|
@@ -24065,7 +24210,7 @@ var InjectableClassRegistry = class {
|
|
|
24065
24210
|
}
|
|
24066
24211
|
};
|
|
24067
24212
|
|
|
24068
|
-
// bazel-out/
|
|
24213
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/metadata.mjs
|
|
24069
24214
|
var import_typescript30 = __toESM(require("typescript"), 1);
|
|
24070
24215
|
function extractClassMetadata(clazz, reflection, isCore, annotateForClosureCompiler, angularDecoratorTransform = (dec) => dec) {
|
|
24071
24216
|
if (!reflection.isClass(clazz)) {
|
|
@@ -24151,13 +24296,13 @@ function removeIdentifierReferences(node, name) {
|
|
|
24151
24296
|
return result.transformed[0];
|
|
24152
24297
|
}
|
|
24153
24298
|
|
|
24154
|
-
// bazel-out/
|
|
24299
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/references_registry.mjs
|
|
24155
24300
|
var NoopReferencesRegistry = class {
|
|
24156
24301
|
add(source, ...references) {
|
|
24157
24302
|
}
|
|
24158
24303
|
};
|
|
24159
24304
|
|
|
24160
|
-
// bazel-out/
|
|
24305
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/schema.mjs
|
|
24161
24306
|
function extractSchemas(rawExpr, evaluator, context) {
|
|
24162
24307
|
const schemas = [];
|
|
24163
24308
|
const result = evaluator.evaluate(rawExpr);
|
|
@@ -24186,10 +24331,10 @@ function extractSchemas(rawExpr, evaluator, context) {
|
|
|
24186
24331
|
return schemas;
|
|
24187
24332
|
}
|
|
24188
24333
|
|
|
24189
|
-
// bazel-out/
|
|
24334
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
24190
24335
|
var import_typescript51 = __toESM(require("typescript"), 1);
|
|
24191
24336
|
|
|
24192
|
-
// bazel-out/
|
|
24337
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.mjs
|
|
24193
24338
|
var import_typescript31 = __toESM(require("typescript"), 1);
|
|
24194
24339
|
var SemanticSymbol = class {
|
|
24195
24340
|
constructor(decl) {
|
|
@@ -24205,7 +24350,7 @@ function getSymbolIdentifier(decl) {
|
|
|
24205
24350
|
return decl.name.text;
|
|
24206
24351
|
}
|
|
24207
24352
|
|
|
24208
|
-
// bazel-out/
|
|
24353
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.mjs
|
|
24209
24354
|
var OpaqueSymbol = class extends SemanticSymbol {
|
|
24210
24355
|
isPublicApiAffected() {
|
|
24211
24356
|
return false;
|
|
@@ -24347,10 +24492,10 @@ function getImportPath(expr) {
|
|
|
24347
24492
|
}
|
|
24348
24493
|
}
|
|
24349
24494
|
|
|
24350
|
-
// bazel-out/
|
|
24495
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
24351
24496
|
var import_typescript32 = __toESM(require("typescript"), 1);
|
|
24352
24497
|
|
|
24353
|
-
// bazel-out/
|
|
24498
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/util.mjs
|
|
24354
24499
|
function isSymbolEqual(a, b) {
|
|
24355
24500
|
if (a.decl === b.decl) {
|
|
24356
24501
|
return true;
|
|
@@ -24400,7 +24545,7 @@ function isSetEqual(a, b, equalityTester = referenceEquality) {
|
|
|
24400
24545
|
return true;
|
|
24401
24546
|
}
|
|
24402
24547
|
|
|
24403
|
-
// bazel-out/
|
|
24548
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
24404
24549
|
function extractSemanticTypeParameters(node) {
|
|
24405
24550
|
if (!import_typescript32.default.isClassDeclaration(node) || node.typeParameters === void 0) {
|
|
24406
24551
|
return null;
|
|
@@ -24420,7 +24565,7 @@ function isTypeParameterEqual(a, b) {
|
|
|
24420
24565
|
return a.hasGenericTypeBound === b.hasGenericTypeBound;
|
|
24421
24566
|
}
|
|
24422
24567
|
|
|
24423
|
-
// bazel-out/
|
|
24568
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/api.mjs
|
|
24424
24569
|
var PerfPhase;
|
|
24425
24570
|
(function(PerfPhase2) {
|
|
24426
24571
|
PerfPhase2[PerfPhase2["Unaccounted"] = 0] = "Unaccounted";
|
|
@@ -24487,7 +24632,7 @@ var PerfCheckpoint;
|
|
|
24487
24632
|
PerfCheckpoint2[PerfCheckpoint2["LAST"] = 9] = "LAST";
|
|
24488
24633
|
})(PerfCheckpoint || (PerfCheckpoint = {}));
|
|
24489
24634
|
|
|
24490
|
-
// bazel-out/
|
|
24635
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/noop.mjs
|
|
24491
24636
|
var NoopPerfRecorder = class {
|
|
24492
24637
|
eventCount() {
|
|
24493
24638
|
}
|
|
@@ -24504,7 +24649,7 @@ var NoopPerfRecorder = class {
|
|
|
24504
24649
|
};
|
|
24505
24650
|
var NOOP_PERF_RECORDER = new NoopPerfRecorder();
|
|
24506
24651
|
|
|
24507
|
-
// bazel-out/
|
|
24652
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/clock.mjs
|
|
24508
24653
|
function mark() {
|
|
24509
24654
|
return process.hrtime();
|
|
24510
24655
|
}
|
|
@@ -24513,7 +24658,7 @@ function timeSinceInMicros(mark2) {
|
|
|
24513
24658
|
return delta[0] * 1e6 + Math.floor(delta[1] / 1e3);
|
|
24514
24659
|
}
|
|
24515
24660
|
|
|
24516
|
-
// bazel-out/
|
|
24661
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/recorder.mjs
|
|
24517
24662
|
var ActivePerfRecorder = class {
|
|
24518
24663
|
static zeroedToNow() {
|
|
24519
24664
|
return new ActivePerfRecorder(mark());
|
|
@@ -24607,14 +24752,14 @@ var DelegatingPerfRecorder = class {
|
|
|
24607
24752
|
}
|
|
24608
24753
|
};
|
|
24609
24754
|
|
|
24610
|
-
// bazel-out/
|
|
24755
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/api.mjs
|
|
24611
24756
|
var ComponentScopeKind;
|
|
24612
24757
|
(function(ComponentScopeKind2) {
|
|
24613
24758
|
ComponentScopeKind2[ComponentScopeKind2["NgModule"] = 0] = "NgModule";
|
|
24614
24759
|
ComponentScopeKind2[ComponentScopeKind2["Standalone"] = 1] = "Standalone";
|
|
24615
24760
|
})(ComponentScopeKind || (ComponentScopeKind = {}));
|
|
24616
24761
|
|
|
24617
|
-
// bazel-out/
|
|
24762
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/component_scope.mjs
|
|
24618
24763
|
var CompoundComponentScopeReader = class {
|
|
24619
24764
|
constructor(readers) {
|
|
24620
24765
|
this.readers = readers;
|
|
@@ -24639,7 +24784,7 @@ var CompoundComponentScopeReader = class {
|
|
|
24639
24784
|
}
|
|
24640
24785
|
};
|
|
24641
24786
|
|
|
24642
|
-
// bazel-out/
|
|
24787
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/dependency.mjs
|
|
24643
24788
|
var MetadataDtsModuleScopeResolver = class {
|
|
24644
24789
|
constructor(dtsMetaReader, aliasingHost) {
|
|
24645
24790
|
this.dtsMetaReader = dtsMetaReader;
|
|
@@ -24714,10 +24859,10 @@ var MetadataDtsModuleScopeResolver = class {
|
|
|
24714
24859
|
}
|
|
24715
24860
|
};
|
|
24716
24861
|
|
|
24717
|
-
// bazel-out/
|
|
24862
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
|
|
24718
24863
|
var import_typescript33 = __toESM(require("typescript"), 1);
|
|
24719
24864
|
|
|
24720
|
-
// bazel-out/
|
|
24865
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/util.mjs
|
|
24721
24866
|
function getDiagnosticNode(ref, rawExpr) {
|
|
24722
24867
|
return rawExpr !== null ? ref.getOriginForDiagnostics(rawExpr) : ref.node.name;
|
|
24723
24868
|
}
|
|
@@ -24740,7 +24885,7 @@ function makeUnknownComponentImportDiagnostic(ref, rawExpr) {
|
|
|
24740
24885
|
return makeDiagnostic(ErrorCode.COMPONENT_UNKNOWN_IMPORT, getDiagnosticNode(ref, rawExpr), `Component imports must be standalone components, directives, pipes, or must be NgModules.`);
|
|
24741
24886
|
}
|
|
24742
24887
|
|
|
24743
|
-
// bazel-out/
|
|
24888
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
|
|
24744
24889
|
var LocalModuleScopeRegistry = class {
|
|
24745
24890
|
constructor(localReader, fullReader, dependencyScopeReader, refEmitter, aliasingHost) {
|
|
24746
24891
|
this.localReader = localReader;
|
|
@@ -25079,7 +25224,7 @@ function reexportCollision(module3, refA, refB) {
|
|
|
25079
25224
|
]);
|
|
25080
25225
|
}
|
|
25081
25226
|
|
|
25082
|
-
// bazel-out/
|
|
25227
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/typecheck.mjs
|
|
25083
25228
|
var import_typescript35 = __toESM(require("typescript"), 1);
|
|
25084
25229
|
var TypeCheckScopeRegistry = class {
|
|
25085
25230
|
constructor(scopeReader, metaReader, hostDirectivesResolver) {
|
|
@@ -25147,7 +25292,7 @@ var TypeCheckScopeRegistry = class {
|
|
|
25147
25292
|
}
|
|
25148
25293
|
};
|
|
25149
25294
|
|
|
25150
|
-
// bazel-out/
|
|
25295
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/api.mjs
|
|
25151
25296
|
var CompilationMode;
|
|
25152
25297
|
(function(CompilationMode2) {
|
|
25153
25298
|
CompilationMode2[CompilationMode2["FULL"] = 0] = "FULL";
|
|
@@ -25166,7 +25311,7 @@ var HandlerFlags;
|
|
|
25166
25311
|
HandlerFlags2[HandlerFlags2["FULL_INHERITANCE"] = 1] = "FULL_INHERITANCE";
|
|
25167
25312
|
})(HandlerFlags || (HandlerFlags = {}));
|
|
25168
25313
|
|
|
25169
|
-
// bazel-out/
|
|
25314
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/alias.mjs
|
|
25170
25315
|
var import_typescript36 = __toESM(require("typescript"), 1);
|
|
25171
25316
|
function aliasTransformFactory(exportStatements) {
|
|
25172
25317
|
return () => {
|
|
@@ -25189,10 +25334,10 @@ function aliasTransformFactory(exportStatements) {
|
|
|
25189
25334
|
};
|
|
25190
25335
|
}
|
|
25191
25336
|
|
|
25192
|
-
// bazel-out/
|
|
25337
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
25193
25338
|
var import_typescript37 = __toESM(require("typescript"), 1);
|
|
25194
25339
|
|
|
25195
|
-
// bazel-out/
|
|
25340
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/trait.mjs
|
|
25196
25341
|
var TraitState;
|
|
25197
25342
|
(function(TraitState2) {
|
|
25198
25343
|
TraitState2[TraitState2["Pending"] = 0] = "Pending";
|
|
@@ -25249,7 +25394,7 @@ var TraitImpl = class {
|
|
|
25249
25394
|
}
|
|
25250
25395
|
};
|
|
25251
25396
|
|
|
25252
|
-
// bazel-out/
|
|
25397
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
25253
25398
|
var TraitCompiler = class {
|
|
25254
25399
|
constructor(handlers, reflector, perf, incrementalBuild, compileNonExportedClasses, compilationMode, dtsTransforms, semanticDepGraphUpdater, sourceFileTypeIdentifier) {
|
|
25255
25400
|
this.handlers = handlers;
|
|
@@ -25684,10 +25829,10 @@ function containsErrors(diagnostics) {
|
|
|
25684
25829
|
return diagnostics !== null && diagnostics.some((diag) => diag.category === import_typescript37.default.DiagnosticCategory.Error);
|
|
25685
25830
|
}
|
|
25686
25831
|
|
|
25687
|
-
// bazel-out/
|
|
25832
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
|
|
25688
25833
|
var import_typescript43 = __toESM(require("typescript"), 1);
|
|
25689
25834
|
|
|
25690
|
-
// bazel-out/
|
|
25835
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/context.mjs
|
|
25691
25836
|
var Context = class {
|
|
25692
25837
|
constructor(isStatement) {
|
|
25693
25838
|
this.isStatement = isStatement;
|
|
@@ -25700,7 +25845,7 @@ var Context = class {
|
|
|
25700
25845
|
}
|
|
25701
25846
|
};
|
|
25702
25847
|
|
|
25703
|
-
// bazel-out/
|
|
25848
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager.mjs
|
|
25704
25849
|
var import_typescript39 = __toESM(require("typescript"), 1);
|
|
25705
25850
|
var ImportManager = class {
|
|
25706
25851
|
constructor(rewriter = new NoopImportRewriter(), prefix = "i") {
|
|
@@ -25736,12 +25881,12 @@ var ImportManager = class {
|
|
|
25736
25881
|
}
|
|
25737
25882
|
};
|
|
25738
25883
|
|
|
25739
|
-
// bazel-out/
|
|
25884
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/translator.mjs
|
|
25740
25885
|
var UNARY_OPERATORS2 = /* @__PURE__ */ new Map([
|
|
25741
25886
|
[UnaryOperator.Minus, "-"],
|
|
25742
25887
|
[UnaryOperator.Plus, "+"]
|
|
25743
25888
|
]);
|
|
25744
|
-
var
|
|
25889
|
+
var BINARY_OPERATORS3 = /* @__PURE__ */ new Map([
|
|
25745
25890
|
[BinaryOperator.And, "&&"],
|
|
25746
25891
|
[BinaryOperator.Bigger, ">"],
|
|
25747
25892
|
[BinaryOperator.BiggerEquals, ">="],
|
|
@@ -25894,10 +26039,10 @@ var ExpressionTranslatorVisitor = class {
|
|
|
25894
26039
|
return this.factory.createFunctionExpression((_a2 = ast.name) != null ? _a2 : null, ast.params.map((param) => param.name), this.factory.createBlock(this.visitStatements(ast.statements, context)));
|
|
25895
26040
|
}
|
|
25896
26041
|
visitBinaryOperatorExpr(ast, context) {
|
|
25897
|
-
if (!
|
|
26042
|
+
if (!BINARY_OPERATORS3.has(ast.operator)) {
|
|
25898
26043
|
throw new Error(`Unknown binary operator: ${BinaryOperator[ast.operator]}`);
|
|
25899
26044
|
}
|
|
25900
|
-
return this.factory.createBinaryExpression(ast.lhs.visitExpression(this, context),
|
|
26045
|
+
return this.factory.createBinaryExpression(ast.lhs.visitExpression(this, context), BINARY_OPERATORS3.get(ast.operator), ast.rhs.visitExpression(this, context));
|
|
25901
26046
|
}
|
|
25902
26047
|
visitReadPropExpr(ast, context) {
|
|
25903
26048
|
return this.factory.createPropertyAccess(ast.receiver.visitExpression(this, context), ast.name);
|
|
@@ -25967,14 +26112,17 @@ function createRange(span) {
|
|
|
25967
26112
|
};
|
|
25968
26113
|
}
|
|
25969
26114
|
|
|
25970
|
-
// bazel-out/
|
|
26115
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
|
|
25971
26116
|
var import_typescript40 = __toESM(require("typescript"), 1);
|
|
25972
|
-
function translateType(type, imports) {
|
|
25973
|
-
return type.visitType(new TypeTranslatorVisitor(imports), new Context(false));
|
|
26117
|
+
function translateType(type, contextFile, reflector, refEmitter, imports) {
|
|
26118
|
+
return type.visitType(new TypeTranslatorVisitor(imports, contextFile, reflector, refEmitter), new Context(false));
|
|
25974
26119
|
}
|
|
25975
26120
|
var TypeTranslatorVisitor = class {
|
|
25976
|
-
constructor(imports) {
|
|
26121
|
+
constructor(imports, contextFile, reflector, refEmitter) {
|
|
25977
26122
|
this.imports = imports;
|
|
26123
|
+
this.contextFile = contextFile;
|
|
26124
|
+
this.reflector = reflector;
|
|
26125
|
+
this.refEmitter = refEmitter;
|
|
25978
26126
|
}
|
|
25979
26127
|
visitBuiltinType(type, context) {
|
|
25980
26128
|
switch (type.name) {
|
|
@@ -26015,6 +26163,12 @@ var TypeTranslatorVisitor = class {
|
|
|
26015
26163
|
const indexSignature = import_typescript40.default.factory.createIndexSignature(void 0, [parameter], typeArgs);
|
|
26016
26164
|
return import_typescript40.default.factory.createTypeLiteralNode([indexSignature]);
|
|
26017
26165
|
}
|
|
26166
|
+
visitTransplantedType(ast, context) {
|
|
26167
|
+
if (!import_typescript40.default.isTypeNode(ast.type)) {
|
|
26168
|
+
throw new Error(`A TransplantedType must wrap a TypeNode`);
|
|
26169
|
+
}
|
|
26170
|
+
return this.translateTransplantedTypeNode(ast.type, context);
|
|
26171
|
+
}
|
|
26018
26172
|
visitReadVarExpr(ast, context) {
|
|
26019
26173
|
if (ast.name === null) {
|
|
26020
26174
|
throw new Error(`ReadVarExpr with no variable name in type`);
|
|
@@ -26140,9 +26294,41 @@ var TypeTranslatorVisitor = class {
|
|
|
26140
26294
|
}
|
|
26141
26295
|
return typeNode;
|
|
26142
26296
|
}
|
|
26297
|
+
translateTransplantedTypeReferenceNode(node, context) {
|
|
26298
|
+
const declaration = this.reflector.getDeclarationOfIdentifier(node.typeName);
|
|
26299
|
+
if (declaration === null) {
|
|
26300
|
+
throw new Error(`Unable to statically determine the declaration file of type node ${node.typeName.text}`);
|
|
26301
|
+
}
|
|
26302
|
+
const emittedType = this.refEmitter.emit(new Reference2(declaration.node), this.contextFile, ImportFlags.NoAliasing | ImportFlags.AllowTypeImports | ImportFlags.AllowRelativeDtsImports);
|
|
26303
|
+
assertSuccessfulReferenceEmit(emittedType, node, "type");
|
|
26304
|
+
const result = emittedType.expression.visitExpression(this, context);
|
|
26305
|
+
if (!import_typescript40.default.isTypeReferenceNode(result)) {
|
|
26306
|
+
throw new Error(`Expected TypeReferenceNode when referencing the type for ${node.typeName.text}, but received ${import_typescript40.default.SyntaxKind[result.kind]}`);
|
|
26307
|
+
}
|
|
26308
|
+
if (node.typeArguments === void 0 || node.typeArguments.length === 0) {
|
|
26309
|
+
return result;
|
|
26310
|
+
}
|
|
26311
|
+
const translatedArgs = node.typeArguments.map((arg) => this.translateTransplantedTypeNode(arg, context));
|
|
26312
|
+
return import_typescript40.default.factory.updateTypeReferenceNode(result, result.typeName, import_typescript40.default.factory.createNodeArray(translatedArgs));
|
|
26313
|
+
}
|
|
26314
|
+
translateTransplantedTypeNode(rootNode, context) {
|
|
26315
|
+
const factory8 = (transformContext) => (root) => {
|
|
26316
|
+
const walk = (node) => {
|
|
26317
|
+
if (import_typescript40.default.isTypeReferenceNode(node) && import_typescript40.default.isIdentifier(node.typeName)) {
|
|
26318
|
+
const translated = this.translateTransplantedTypeReferenceNode(node, context);
|
|
26319
|
+
if (translated !== node) {
|
|
26320
|
+
return translated;
|
|
26321
|
+
}
|
|
26322
|
+
}
|
|
26323
|
+
return import_typescript40.default.visitEachChild(node, walk, transformContext);
|
|
26324
|
+
};
|
|
26325
|
+
return import_typescript40.default.visitNode(root, walk);
|
|
26326
|
+
};
|
|
26327
|
+
return import_typescript40.default.transform(rootNode, [factory8]).transformed[0];
|
|
26328
|
+
}
|
|
26143
26329
|
};
|
|
26144
26330
|
|
|
26145
|
-
// bazel-out/
|
|
26331
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_ast_factory.mjs
|
|
26146
26332
|
var import_typescript41 = __toESM(require("typescript"), 1);
|
|
26147
26333
|
var PureAnnotation;
|
|
26148
26334
|
(function(PureAnnotation2) {
|
|
@@ -26154,7 +26340,7 @@ var UNARY_OPERATORS3 = {
|
|
|
26154
26340
|
"-": import_typescript41.default.SyntaxKind.MinusToken,
|
|
26155
26341
|
"!": import_typescript41.default.SyntaxKind.ExclamationToken
|
|
26156
26342
|
};
|
|
26157
|
-
var
|
|
26343
|
+
var BINARY_OPERATORS4 = {
|
|
26158
26344
|
"&&": import_typescript41.default.SyntaxKind.AmpersandAmpersandToken,
|
|
26159
26345
|
">": import_typescript41.default.SyntaxKind.GreaterThanToken,
|
|
26160
26346
|
">=": import_typescript41.default.SyntaxKind.GreaterThanEqualsToken,
|
|
@@ -26196,7 +26382,7 @@ var TypeScriptAstFactory = class {
|
|
|
26196
26382
|
return import_typescript41.default.factory.createBinaryExpression(target, import_typescript41.default.SyntaxKind.EqualsToken, value);
|
|
26197
26383
|
}
|
|
26198
26384
|
createBinaryExpression(leftOperand, operator, rightOperand) {
|
|
26199
|
-
return import_typescript41.default.factory.createBinaryExpression(leftOperand,
|
|
26385
|
+
return import_typescript41.default.factory.createBinaryExpression(leftOperand, BINARY_OPERATORS4[operator], rightOperand);
|
|
26200
26386
|
}
|
|
26201
26387
|
createBlock(body) {
|
|
26202
26388
|
return import_typescript41.default.factory.createBlock(body);
|
|
@@ -26325,7 +26511,7 @@ function attachComments(statement, leadingComments) {
|
|
|
26325
26511
|
}
|
|
26326
26512
|
}
|
|
26327
26513
|
|
|
26328
|
-
// bazel-out/
|
|
26514
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_translator.mjs
|
|
26329
26515
|
function translateExpression(expression, imports, options = {}) {
|
|
26330
26516
|
return expression.visitExpression(new ExpressionTranslatorVisitor(new TypeScriptAstFactory(options.annotateForClosureCompiler === true), imports, options), new Context(false));
|
|
26331
26517
|
}
|
|
@@ -26333,7 +26519,7 @@ function translateStatement(statement, imports, options = {}) {
|
|
|
26333
26519
|
return statement.visitStatement(new ExpressionTranslatorVisitor(new TypeScriptAstFactory(options.annotateForClosureCompiler === true), imports, options), new Context(true));
|
|
26334
26520
|
}
|
|
26335
26521
|
|
|
26336
|
-
// bazel-out/
|
|
26522
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/utils.mjs
|
|
26337
26523
|
var import_typescript42 = __toESM(require("typescript"), 1);
|
|
26338
26524
|
function addImports(importManager, sf, extraStatements = []) {
|
|
26339
26525
|
const addedImports = importManager.getAllImports(sf.fileName).map((i) => {
|
|
@@ -26369,7 +26555,7 @@ function isImportStatement(stmt) {
|
|
|
26369
26555
|
return import_typescript42.default.isImportDeclaration(stmt) || import_typescript42.default.isImportEqualsDeclaration(stmt) || import_typescript42.default.isNamespaceImport(stmt);
|
|
26370
26556
|
}
|
|
26371
26557
|
|
|
26372
|
-
// bazel-out/
|
|
26558
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
|
|
26373
26559
|
var DtsTransformRegistry = class {
|
|
26374
26560
|
constructor() {
|
|
26375
26561
|
this.ivyDeclarationTransforms = /* @__PURE__ */ new Map();
|
|
@@ -26393,9 +26579,9 @@ var DtsTransformRegistry = class {
|
|
|
26393
26579
|
return transforms;
|
|
26394
26580
|
}
|
|
26395
26581
|
};
|
|
26396
|
-
function declarationTransformFactory(transformRegistry, importRewriter, importPrefix) {
|
|
26582
|
+
function declarationTransformFactory(transformRegistry, reflector, refEmitter, importRewriter, importPrefix) {
|
|
26397
26583
|
return (context) => {
|
|
26398
|
-
const transformer = new DtsTransformer(context, importRewriter, importPrefix);
|
|
26584
|
+
const transformer = new DtsTransformer(context, reflector, refEmitter, importRewriter, importPrefix);
|
|
26399
26585
|
return (fileOrBundle) => {
|
|
26400
26586
|
if (import_typescript43.default.isBundle(fileOrBundle)) {
|
|
26401
26587
|
return fileOrBundle;
|
|
@@ -26409,8 +26595,10 @@ function declarationTransformFactory(transformRegistry, importRewriter, importPr
|
|
|
26409
26595
|
};
|
|
26410
26596
|
}
|
|
26411
26597
|
var DtsTransformer = class {
|
|
26412
|
-
constructor(ctx, importRewriter, importPrefix) {
|
|
26598
|
+
constructor(ctx, reflector, refEmitter, importRewriter, importPrefix) {
|
|
26413
26599
|
this.ctx = ctx;
|
|
26600
|
+
this.reflector = reflector;
|
|
26601
|
+
this.refEmitter = refEmitter;
|
|
26414
26602
|
this.importRewriter = importRewriter;
|
|
26415
26603
|
this.importPrefix = importPrefix;
|
|
26416
26604
|
}
|
|
@@ -26449,7 +26637,7 @@ var DtsTransformer = class {
|
|
|
26449
26637
|
for (const transform of transforms) {
|
|
26450
26638
|
if (transform.transformClass !== void 0) {
|
|
26451
26639
|
const inputMembers = clazz === newClazz ? elements : newClazz.members;
|
|
26452
|
-
newClazz = transform.transformClass(newClazz, inputMembers, imports);
|
|
26640
|
+
newClazz = transform.transformClass(newClazz, inputMembers, this.reflector, this.refEmitter, imports);
|
|
26453
26641
|
}
|
|
26454
26642
|
}
|
|
26455
26643
|
if (elementsChanged && clazz === newClazz) {
|
|
@@ -26481,7 +26669,7 @@ var IvyDeclarationDtsTransform = class {
|
|
|
26481
26669
|
addFields(decl, fields) {
|
|
26482
26670
|
this.declarationFields.set(decl, fields);
|
|
26483
26671
|
}
|
|
26484
|
-
transformClass(clazz, members, imports) {
|
|
26672
|
+
transformClass(clazz, members, reflector, refEmitter, imports) {
|
|
26485
26673
|
const original = import_typescript43.default.getOriginalNode(clazz);
|
|
26486
26674
|
if (!this.declarationFields.has(original)) {
|
|
26487
26675
|
return clazz;
|
|
@@ -26489,7 +26677,7 @@ var IvyDeclarationDtsTransform = class {
|
|
|
26489
26677
|
const fields = this.declarationFields.get(original);
|
|
26490
26678
|
const newMembers = fields.map((decl) => {
|
|
26491
26679
|
const modifiers = [import_typescript43.default.factory.createModifier(import_typescript43.default.SyntaxKind.StaticKeyword)];
|
|
26492
|
-
const typeRef = translateType(decl.type, imports);
|
|
26680
|
+
const typeRef = translateType(decl.type, original.getSourceFile(), reflector, refEmitter, imports);
|
|
26493
26681
|
markForEmitAsSingleLine(typeRef);
|
|
26494
26682
|
return import_typescript43.default.factory.createPropertyDeclaration(
|
|
26495
26683
|
modifiers,
|
|
@@ -26514,10 +26702,10 @@ function markForEmitAsSingleLine(node) {
|
|
|
26514
26702
|
import_typescript43.default.forEachChild(node, markForEmitAsSingleLine);
|
|
26515
26703
|
}
|
|
26516
26704
|
|
|
26517
|
-
// bazel-out/
|
|
26705
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
26518
26706
|
var import_typescript45 = __toESM(require("typescript"), 1);
|
|
26519
26707
|
|
|
26520
|
-
// bazel-out/
|
|
26708
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/visitor.mjs
|
|
26521
26709
|
var import_typescript44 = __toESM(require("typescript"), 1);
|
|
26522
26710
|
function visit(node, visitor, context) {
|
|
26523
26711
|
return visitor._visit(node, context);
|
|
@@ -26578,7 +26766,7 @@ var Visitor = class {
|
|
|
26578
26766
|
}
|
|
26579
26767
|
};
|
|
26580
26768
|
|
|
26581
|
-
// bazel-out/
|
|
26769
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
26582
26770
|
var NO_DECORATORS = /* @__PURE__ */ new Set();
|
|
26583
26771
|
var CLOSURE_FILE_OVERVIEW_REGEXP = /\s+@fileoverview\s+/i;
|
|
26584
26772
|
function ivyTransformFactory(compilation, reflector, importRewriter, defaultImportTracker, perf, isCore, isClosureCompilerEnabled) {
|
|
@@ -26786,7 +26974,7 @@ function nodeArrayFromDecoratorsArray(decorators) {
|
|
|
26786
26974
|
return array;
|
|
26787
26975
|
}
|
|
26788
26976
|
|
|
26789
|
-
// bazel-out/
|
|
26977
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
|
|
26790
26978
|
var import_typescript46 = __toESM(require("typescript"), 1);
|
|
26791
26979
|
var EMPTY_OBJECT = {};
|
|
26792
26980
|
var QUERY_TYPES = /* @__PURE__ */ new Set([
|
|
@@ -26867,6 +27055,15 @@ function extractDirectiveMetadata(clazz, decorator, reflector, evaluator, refEmi
|
|
|
26867
27055
|
}
|
|
26868
27056
|
isStandalone = resolved;
|
|
26869
27057
|
}
|
|
27058
|
+
let isSignal = false;
|
|
27059
|
+
if (directive.has("signals")) {
|
|
27060
|
+
const expr = directive.get("signals");
|
|
27061
|
+
const resolved = evaluator.evaluate(expr);
|
|
27062
|
+
if (typeof resolved !== "boolean") {
|
|
27063
|
+
throw createValueHasWrongTypeError(expr, resolved, `signals flag must be a boolean`);
|
|
27064
|
+
}
|
|
27065
|
+
isSignal = resolved;
|
|
27066
|
+
}
|
|
26870
27067
|
const usesInheritance = reflector.hasBaseClass(clazz);
|
|
26871
27068
|
const sourceFile = clazz.getSourceFile();
|
|
26872
27069
|
const type = wrapTypeReference(reflector, clazz);
|
|
@@ -26895,6 +27092,7 @@ function extractDirectiveMetadata(clazz, decorator, reflector, evaluator, refEmi
|
|
|
26895
27092
|
exportAs,
|
|
26896
27093
|
providers,
|
|
26897
27094
|
isStandalone,
|
|
27095
|
+
isSignal,
|
|
26898
27096
|
hostDirectives: (hostDirectives == null ? void 0 : hostDirectives.map((hostDir) => toHostDirectiveMetadata(hostDir, sourceFile, refEmitter))) || null
|
|
26899
27097
|
};
|
|
26900
27098
|
return {
|
|
@@ -27257,7 +27455,7 @@ function toHostDirectiveMetadata(hostDirective, context, refEmitter) {
|
|
|
27257
27455
|
};
|
|
27258
27456
|
}
|
|
27259
27457
|
|
|
27260
|
-
// bazel-out/
|
|
27458
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/symbol.mjs
|
|
27261
27459
|
var DirectiveSymbol = class extends SemanticSymbol {
|
|
27262
27460
|
constructor(decl, selector, inputs, outputs, exportAs, typeCheckMeta, typeParameters) {
|
|
27263
27461
|
super(decl);
|
|
@@ -27337,7 +27535,7 @@ function isBaseClassEqual(current, previous) {
|
|
|
27337
27535
|
return isSymbolEqual(current, previous);
|
|
27338
27536
|
}
|
|
27339
27537
|
|
|
27340
|
-
// bazel-out/
|
|
27538
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
|
|
27341
27539
|
var FIELD_DECORATORS = [
|
|
27342
27540
|
"Input",
|
|
27343
27541
|
"Output",
|
|
@@ -27444,6 +27642,7 @@ var DirectiveDecoratorHandler = class {
|
|
|
27444
27642
|
isStructural: analysis.isStructural,
|
|
27445
27643
|
animationTriggerNames: null,
|
|
27446
27644
|
isStandalone: analysis.meta.isStandalone,
|
|
27645
|
+
isSignal: analysis.meta.isSignal,
|
|
27447
27646
|
imports: null,
|
|
27448
27647
|
schemas: null,
|
|
27449
27648
|
decorator: analysis.decorator,
|
|
@@ -27497,10 +27696,10 @@ var DirectiveDecoratorHandler = class {
|
|
|
27497
27696
|
}
|
|
27498
27697
|
};
|
|
27499
27698
|
|
|
27500
|
-
// bazel-out/
|
|
27699
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
27501
27700
|
var import_typescript48 = __toESM(require("typescript"), 1);
|
|
27502
27701
|
|
|
27503
|
-
// bazel-out/
|
|
27702
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/module_with_providers.mjs
|
|
27504
27703
|
var import_typescript47 = __toESM(require("typescript"), 1);
|
|
27505
27704
|
function createModuleWithProvidersResolver(reflector, isCore) {
|
|
27506
27705
|
function _reflectModuleFromTypeParam(type, node) {
|
|
@@ -27567,7 +27766,7 @@ function isResolvedModuleWithProviders(sv) {
|
|
|
27567
27766
|
return typeof sv.value === "object" && sv.value != null && sv.value.hasOwnProperty("ngModule") && sv.value.hasOwnProperty("mwpCall");
|
|
27568
27767
|
}
|
|
27569
27768
|
|
|
27570
|
-
// bazel-out/
|
|
27769
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
27571
27770
|
var NgModuleSymbol = class extends SemanticSymbol {
|
|
27572
27771
|
constructor(decl, hasProviders) {
|
|
27573
27772
|
super(decl);
|
|
@@ -28089,7 +28288,7 @@ function isSyntheticReference(ref) {
|
|
|
28089
28288
|
return ref.synthetic;
|
|
28090
28289
|
}
|
|
28091
28290
|
|
|
28092
|
-
// bazel-out/
|
|
28291
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/diagnostics.mjs
|
|
28093
28292
|
function makeCyclicImportInfo(ref, type, cycle) {
|
|
28094
28293
|
const name = ref.debugName || "(unknown)";
|
|
28095
28294
|
const path3 = cycle.getPath().map((sf) => sf.fileName).join(" -> ");
|
|
@@ -28112,7 +28311,7 @@ function checkCustomElementSelectorForErrors(selector) {
|
|
|
28112
28311
|
return null;
|
|
28113
28312
|
}
|
|
28114
28313
|
|
|
28115
|
-
// bazel-out/
|
|
28314
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/resources.mjs
|
|
28116
28315
|
var import_typescript50 = __toESM(require("typescript"), 1);
|
|
28117
28316
|
function getTemplateDeclarationNodeForError(declaration) {
|
|
28118
28317
|
return declaration.isInline ? declaration.expression : declaration.templateUrlExpression;
|
|
@@ -28422,7 +28621,7 @@ function _extractTemplateStyleUrls(template2) {
|
|
|
28422
28621
|
return template2.styleUrls.map((url) => ({ url, source: 1, nodeForError }));
|
|
28423
28622
|
}
|
|
28424
28623
|
|
|
28425
|
-
// bazel-out/
|
|
28624
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/symbol.mjs
|
|
28426
28625
|
var ComponentSymbol = class extends DirectiveSymbol {
|
|
28427
28626
|
constructor() {
|
|
28428
28627
|
super(...arguments);
|
|
@@ -28457,7 +28656,7 @@ var ComponentSymbol = class extends DirectiveSymbol {
|
|
|
28457
28656
|
}
|
|
28458
28657
|
};
|
|
28459
28658
|
|
|
28460
|
-
// bazel-out/
|
|
28659
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/util.mjs
|
|
28461
28660
|
function collectAnimationNames(value, animationTriggerNames) {
|
|
28462
28661
|
if (value instanceof Map) {
|
|
28463
28662
|
const name = value.get("name");
|
|
@@ -28533,7 +28732,7 @@ function isLikelyModuleWithProviders(value) {
|
|
|
28533
28732
|
return false;
|
|
28534
28733
|
}
|
|
28535
28734
|
|
|
28536
|
-
// bazel-out/
|
|
28735
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
28537
28736
|
var EMPTY_ARRAY2 = [];
|
|
28538
28737
|
var ComponentDecoratorHandler = class {
|
|
28539
28738
|
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) {
|
|
@@ -28854,6 +29053,7 @@ var ComponentDecoratorHandler = class {
|
|
|
28854
29053
|
isPoisoned: analysis.isPoisoned,
|
|
28855
29054
|
isStructural: false,
|
|
28856
29055
|
isStandalone: analysis.meta.isStandalone,
|
|
29056
|
+
isSignal: analysis.meta.isSignal,
|
|
28857
29057
|
imports: analysis.resolvedImports,
|
|
28858
29058
|
animationTriggerNames: analysis.animationTriggerNames,
|
|
28859
29059
|
schemas: analysis.schemas,
|
|
@@ -29181,7 +29381,7 @@ function validateStandaloneImports(importRefs, importExpr2, metaReader, scopeRea
|
|
|
29181
29381
|
return diagnostics;
|
|
29182
29382
|
}
|
|
29183
29383
|
|
|
29184
|
-
// bazel-out/
|
|
29384
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
|
|
29185
29385
|
var import_typescript53 = __toESM(require("typescript"), 1);
|
|
29186
29386
|
var InjectableDecoratorHandler = class {
|
|
29187
29387
|
constructor(reflector, evaluator, isCore, strictCtorDeps, injectableRegistry, perf, errorOnDuplicateProv = true) {
|
|
@@ -29395,7 +29595,7 @@ function getDep(dep, reflector) {
|
|
|
29395
29595
|
return meta;
|
|
29396
29596
|
}
|
|
29397
29597
|
|
|
29398
|
-
// bazel-out/
|
|
29598
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
|
|
29399
29599
|
var import_typescript54 = __toESM(require("typescript"), 1);
|
|
29400
29600
|
var PipeSymbol = class extends SemanticSymbol {
|
|
29401
29601
|
constructor(decl, name) {
|
|
@@ -29538,7 +29738,7 @@ var PipeDecoratorHandler = class {
|
|
|
29538
29738
|
}
|
|
29539
29739
|
};
|
|
29540
29740
|
|
|
29541
|
-
// bazel-out/
|
|
29741
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
|
|
29542
29742
|
var CycleAnalyzer = class {
|
|
29543
29743
|
constructor(importGraph) {
|
|
29544
29744
|
this.importGraph = importGraph;
|
|
@@ -29609,7 +29809,7 @@ var Cycle = class {
|
|
|
29609
29809
|
}
|
|
29610
29810
|
};
|
|
29611
29811
|
|
|
29612
|
-
// bazel-out/
|
|
29812
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/imports.mjs
|
|
29613
29813
|
var import_typescript55 = __toESM(require("typescript"), 1);
|
|
29614
29814
|
var ImportGraph = class {
|
|
29615
29815
|
constructor(checker, perf) {
|
|
@@ -29701,7 +29901,7 @@ var Found = class {
|
|
|
29701
29901
|
}
|
|
29702
29902
|
};
|
|
29703
29903
|
|
|
29704
|
-
// bazel-out/
|
|
29904
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
|
|
29705
29905
|
var import_typescript56 = __toESM(require("typescript"), 1);
|
|
29706
29906
|
var FlatIndexGenerator = class {
|
|
29707
29907
|
constructor(entryPoint, relativeFlatIndexPath, moduleName) {
|
|
@@ -29726,7 +29926,7 @@ export * from '${relativeEntryPoint}';
|
|
|
29726
29926
|
}
|
|
29727
29927
|
};
|
|
29728
29928
|
|
|
29729
|
-
// bazel-out/
|
|
29929
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/logic.mjs
|
|
29730
29930
|
function findFlatIndexEntryPoint(rootFiles) {
|
|
29731
29931
|
const tsFiles = rootFiles.filter((file) => isNonDeclarationTsPath(file));
|
|
29732
29932
|
let resolvedEntryPoint = null;
|
|
@@ -29742,7 +29942,7 @@ function findFlatIndexEntryPoint(rootFiles) {
|
|
|
29742
29942
|
return resolvedEntryPoint;
|
|
29743
29943
|
}
|
|
29744
29944
|
|
|
29745
|
-
// bazel-out/
|
|
29945
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
|
|
29746
29946
|
var import_typescript58 = __toESM(require("typescript"), 1);
|
|
29747
29947
|
function checkForPrivateExports(entryPoint, checker, refGraph) {
|
|
29748
29948
|
const diagnostics = [];
|
|
@@ -29822,7 +30022,7 @@ function getDescriptorOfDeclaration(decl) {
|
|
|
29822
30022
|
}
|
|
29823
30023
|
}
|
|
29824
30024
|
|
|
29825
|
-
// bazel-out/
|
|
30025
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/reference_graph.mjs
|
|
29826
30026
|
var ReferenceGraph = class {
|
|
29827
30027
|
constructor() {
|
|
29828
30028
|
this.references = /* @__PURE__ */ new Map();
|
|
@@ -29876,7 +30076,7 @@ var ReferenceGraph = class {
|
|
|
29876
30076
|
}
|
|
29877
30077
|
};
|
|
29878
30078
|
|
|
29879
|
-
// bazel-out/
|
|
30079
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/api.mjs
|
|
29880
30080
|
var NgOriginalFile = Symbol("NgOriginalFile");
|
|
29881
30081
|
var UpdateMode;
|
|
29882
30082
|
(function(UpdateMode2) {
|
|
@@ -29884,13 +30084,13 @@ var UpdateMode;
|
|
|
29884
30084
|
UpdateMode2[UpdateMode2["Incremental"] = 1] = "Incremental";
|
|
29885
30085
|
})(UpdateMode || (UpdateMode = {}));
|
|
29886
30086
|
|
|
29887
|
-
// bazel-out/
|
|
30087
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
|
|
29888
30088
|
var import_typescript62 = __toESM(require("typescript"), 1);
|
|
29889
30089
|
|
|
29890
|
-
// bazel-out/
|
|
30090
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
29891
30091
|
var import_typescript59 = __toESM(require("typescript"), 1);
|
|
29892
30092
|
|
|
29893
|
-
// bazel-out/
|
|
30093
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/expando.mjs
|
|
29894
30094
|
var NgExtension = Symbol("NgExtension");
|
|
29895
30095
|
function isExtended(sf) {
|
|
29896
30096
|
return sf[NgExtension] !== void 0;
|
|
@@ -29950,13 +30150,13 @@ function retagTsFile(sf) {
|
|
|
29950
30150
|
}
|
|
29951
30151
|
}
|
|
29952
30152
|
|
|
29953
|
-
// bazel-out/
|
|
30153
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/util.mjs
|
|
29954
30154
|
var TS_EXTENSIONS = /\.tsx?$/i;
|
|
29955
30155
|
function makeShimFileName(fileName, suffix) {
|
|
29956
30156
|
return absoluteFrom(fileName.replace(TS_EXTENSIONS, suffix));
|
|
29957
30157
|
}
|
|
29958
30158
|
|
|
29959
|
-
// bazel-out/
|
|
30159
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
29960
30160
|
var ShimAdapter = class {
|
|
29961
30161
|
constructor(delegate, tsRootFiles, topLevelGenerators, perFileGenerators, oldProgram) {
|
|
29962
30162
|
this.delegate = delegate;
|
|
@@ -30051,7 +30251,7 @@ var ShimAdapter = class {
|
|
|
30051
30251
|
}
|
|
30052
30252
|
};
|
|
30053
30253
|
|
|
30054
|
-
// bazel-out/
|
|
30254
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
|
|
30055
30255
|
var ShimReferenceTagger = class {
|
|
30056
30256
|
constructor(shimExtensions) {
|
|
30057
30257
|
this.tagged = /* @__PURE__ */ new Set();
|
|
@@ -30085,7 +30285,7 @@ var ShimReferenceTagger = class {
|
|
|
30085
30285
|
}
|
|
30086
30286
|
};
|
|
30087
30287
|
|
|
30088
|
-
// bazel-out/
|
|
30288
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
|
|
30089
30289
|
var DelegatingCompilerHost = class {
|
|
30090
30290
|
constructor(delegate) {
|
|
30091
30291
|
this.delegate = delegate;
|
|
@@ -30198,7 +30398,7 @@ var TsCreateProgramDriver = class {
|
|
|
30198
30398
|
}
|
|
30199
30399
|
};
|
|
30200
30400
|
|
|
30201
|
-
// bazel-out/
|
|
30401
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.mjs
|
|
30202
30402
|
var FileDependencyGraph = class {
|
|
30203
30403
|
constructor() {
|
|
30204
30404
|
this.nodes = /* @__PURE__ */ new Map();
|
|
@@ -30265,7 +30465,7 @@ function isLogicallyChanged(sf, node, changedTsPaths, deletedTsPaths, changedRes
|
|
|
30265
30465
|
return false;
|
|
30266
30466
|
}
|
|
30267
30467
|
|
|
30268
|
-
// bazel-out/
|
|
30468
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
|
|
30269
30469
|
var IncrementalStateKind;
|
|
30270
30470
|
(function(IncrementalStateKind2) {
|
|
30271
30471
|
IncrementalStateKind2[IncrementalStateKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -30273,7 +30473,7 @@ var IncrementalStateKind;
|
|
|
30273
30473
|
IncrementalStateKind2[IncrementalStateKind2["Analyzed"] = 2] = "Analyzed";
|
|
30274
30474
|
})(IncrementalStateKind || (IncrementalStateKind = {}));
|
|
30275
30475
|
|
|
30276
|
-
// bazel-out/
|
|
30476
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
|
|
30277
30477
|
var PhaseKind;
|
|
30278
30478
|
(function(PhaseKind2) {
|
|
30279
30479
|
PhaseKind2[PhaseKind2["Analysis"] = 0] = "Analysis";
|
|
@@ -30474,7 +30674,7 @@ function toOriginalSourceFile(sf) {
|
|
|
30474
30674
|
}
|
|
30475
30675
|
}
|
|
30476
30676
|
|
|
30477
|
-
// bazel-out/
|
|
30677
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
|
|
30478
30678
|
var TrackedIncrementalBuildStrategy = class {
|
|
30479
30679
|
constructor() {
|
|
30480
30680
|
this.state = null;
|
|
@@ -30495,7 +30695,7 @@ var TrackedIncrementalBuildStrategy = class {
|
|
|
30495
30695
|
};
|
|
30496
30696
|
var SYM_INCREMENTAL_STATE = Symbol("NgIncrementalState");
|
|
30497
30697
|
|
|
30498
|
-
// bazel-out/
|
|
30698
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
|
|
30499
30699
|
var IdentifierKind;
|
|
30500
30700
|
(function(IdentifierKind2) {
|
|
30501
30701
|
IdentifierKind2[IdentifierKind2["Property"] = 0] = "Property";
|
|
@@ -30513,7 +30713,7 @@ var AbsoluteSourceSpan2 = class {
|
|
|
30513
30713
|
}
|
|
30514
30714
|
};
|
|
30515
30715
|
|
|
30516
|
-
// bazel-out/
|
|
30716
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/context.mjs
|
|
30517
30717
|
var IndexingContext = class {
|
|
30518
30718
|
constructor() {
|
|
30519
30719
|
this.components = /* @__PURE__ */ new Set();
|
|
@@ -30523,7 +30723,7 @@ var IndexingContext = class {
|
|
|
30523
30723
|
}
|
|
30524
30724
|
};
|
|
30525
30725
|
|
|
30526
|
-
// bazel-out/
|
|
30726
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
|
|
30527
30727
|
var ExpressionVisitor = class extends RecursiveAstVisitor2 {
|
|
30528
30728
|
constructor(expressionStr, absoluteOffset, boundTemplate, targetToIdentifier) {
|
|
30529
30729
|
super();
|
|
@@ -30759,7 +30959,7 @@ function getTemplateIdentifiers(boundTemplate) {
|
|
|
30759
30959
|
return { identifiers: visitor.identifiers, errors: visitor.errors };
|
|
30760
30960
|
}
|
|
30761
30961
|
|
|
30762
|
-
// bazel-out/
|
|
30962
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
|
|
30763
30963
|
function generateAnalysis(context) {
|
|
30764
30964
|
const analysis = /* @__PURE__ */ new Map();
|
|
30765
30965
|
context.components.forEach(({ declaration, selector, boundTemplate, templateMeta }) => {
|
|
@@ -30795,7 +30995,7 @@ function generateAnalysis(context) {
|
|
|
30795
30995
|
return analysis;
|
|
30796
30996
|
}
|
|
30797
30997
|
|
|
30798
|
-
// bazel-out/
|
|
30998
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/ng_module_index.mjs
|
|
30799
30999
|
var NgModuleIndexImpl = class {
|
|
30800
31000
|
constructor(metaReader, localReader) {
|
|
30801
31001
|
this.metaReader = metaReader;
|
|
@@ -30884,7 +31084,7 @@ var NgModuleIndexImpl = class {
|
|
|
30884
31084
|
}
|
|
30885
31085
|
};
|
|
30886
31086
|
|
|
30887
|
-
// bazel-out/
|
|
31087
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
|
|
30888
31088
|
var import_typescript65 = __toESM(require("typescript"), 1);
|
|
30889
31089
|
var CSS_PREPROCESSOR_EXT = /(\.scss|\.sass|\.less|\.styl)$/;
|
|
30890
31090
|
var RESOURCE_MARKER = ".$ngresource$";
|
|
@@ -31032,7 +31232,7 @@ function createLookupResolutionHost(adapter) {
|
|
|
31032
31232
|
};
|
|
31033
31233
|
}
|
|
31034
31234
|
|
|
31035
|
-
// bazel-out/
|
|
31235
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/standalone.mjs
|
|
31036
31236
|
var StandaloneComponentScopeReader = class {
|
|
31037
31237
|
constructor(metaReader, localModuleReader, dtsModuleReader) {
|
|
31038
31238
|
this.metaReader = metaReader;
|
|
@@ -31110,21 +31310,21 @@ var StandaloneComponentScopeReader = class {
|
|
|
31110
31310
|
}
|
|
31111
31311
|
};
|
|
31112
31312
|
|
|
31113
|
-
// bazel-out/
|
|
31313
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/checker.mjs
|
|
31114
31314
|
var OptimizeFor;
|
|
31115
31315
|
(function(OptimizeFor2) {
|
|
31116
31316
|
OptimizeFor2[OptimizeFor2["SingleFile"] = 0] = "SingleFile";
|
|
31117
31317
|
OptimizeFor2[OptimizeFor2["WholeProgram"] = 1] = "WholeProgram";
|
|
31118
31318
|
})(OptimizeFor || (OptimizeFor = {}));
|
|
31119
31319
|
|
|
31120
|
-
// bazel-out/
|
|
31320
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/completion.mjs
|
|
31121
31321
|
var CompletionKind;
|
|
31122
31322
|
(function(CompletionKind2) {
|
|
31123
31323
|
CompletionKind2[CompletionKind2["Reference"] = 0] = "Reference";
|
|
31124
31324
|
CompletionKind2[CompletionKind2["Variable"] = 1] = "Variable";
|
|
31125
31325
|
})(CompletionKind || (CompletionKind = {}));
|
|
31126
31326
|
|
|
31127
|
-
// bazel-out/
|
|
31327
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/scope.mjs
|
|
31128
31328
|
var PotentialImportKind;
|
|
31129
31329
|
(function(PotentialImportKind2) {
|
|
31130
31330
|
PotentialImportKind2[PotentialImportKind2["NgModule"] = 0] = "NgModule";
|
|
@@ -31136,7 +31336,7 @@ var PotentialImportMode;
|
|
|
31136
31336
|
PotentialImportMode2[PotentialImportMode2["ForceDirect"] = 1] = "ForceDirect";
|
|
31137
31337
|
})(PotentialImportMode || (PotentialImportMode = {}));
|
|
31138
31338
|
|
|
31139
|
-
// bazel-out/
|
|
31339
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.mjs
|
|
31140
31340
|
var SymbolKind;
|
|
31141
31341
|
(function(SymbolKind2) {
|
|
31142
31342
|
SymbolKind2[SymbolKind2["Input"] = 0] = "Input";
|
|
@@ -31152,7 +31352,7 @@ var SymbolKind;
|
|
|
31152
31352
|
SymbolKind2[SymbolKind2["Pipe"] = 10] = "Pipe";
|
|
31153
31353
|
})(SymbolKind || (SymbolKind = {}));
|
|
31154
31354
|
|
|
31155
|
-
// bazel-out/
|
|
31355
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
|
|
31156
31356
|
var import_typescript66 = __toESM(require("typescript"), 1);
|
|
31157
31357
|
function makeTemplateDiagnostic(templateId, mapping, span, category, code, messageText, relatedMessages) {
|
|
31158
31358
|
var _a2;
|
|
@@ -31259,7 +31459,7 @@ function parseTemplateAsSourceFile(fileName, template2) {
|
|
|
31259
31459
|
return import_typescript66.default.createSourceFile(fileName, template2, import_typescript66.default.ScriptTarget.Latest, false, import_typescript66.default.ScriptKind.JSX);
|
|
31260
31460
|
}
|
|
31261
31461
|
|
|
31262
|
-
// bazel-out/
|
|
31462
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
|
|
31263
31463
|
var TEMPLATE_ID = Symbol("ngTemplateId");
|
|
31264
31464
|
var NEXT_TEMPLATE_ID = Symbol("ngNextTemplateId");
|
|
31265
31465
|
function getTemplateId(clazz) {
|
|
@@ -31276,10 +31476,10 @@ function allocateTemplateId(sf) {
|
|
|
31276
31476
|
return `tcb${sf[NEXT_TEMPLATE_ID]++}`;
|
|
31277
31477
|
}
|
|
31278
31478
|
|
|
31279
|
-
// bazel-out/
|
|
31479
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
31280
31480
|
var import_typescript68 = __toESM(require("typescript"), 1);
|
|
31281
31481
|
|
|
31282
|
-
// bazel-out/
|
|
31482
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
|
|
31283
31483
|
var import_typescript67 = __toESM(require("typescript"), 1);
|
|
31284
31484
|
var parseSpanComment = /^(\d+),(\d+)$/;
|
|
31285
31485
|
function readSpanComment(node, sourceFile = node.getSourceFile()) {
|
|
@@ -31408,7 +31608,7 @@ function hasExpressionIdentifier(sourceFile, node, identifier) {
|
|
|
31408
31608
|
}) || false;
|
|
31409
31609
|
}
|
|
31410
31610
|
|
|
31411
|
-
// bazel-out/
|
|
31611
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
31412
31612
|
var CompletionEngine = class {
|
|
31413
31613
|
constructor(tcb, data, tcbPath, tcbIsShim) {
|
|
31414
31614
|
this.tcb = tcb;
|
|
@@ -31565,10 +31765,10 @@ var CompletionEngine = class {
|
|
|
31565
31765
|
}
|
|
31566
31766
|
};
|
|
31567
31767
|
|
|
31568
|
-
// bazel-out/
|
|
31768
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
31569
31769
|
var import_typescript83 = __toESM(require("typescript"), 1);
|
|
31570
31770
|
|
|
31571
|
-
// bazel-out/
|
|
31771
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
|
|
31572
31772
|
var import_typescript69 = __toESM(require("typescript"), 1);
|
|
31573
31773
|
var REGISTRY = new DomElementSchemaRegistry();
|
|
31574
31774
|
var REMOVE_XHTML_REGEX = /^:xhtml:/;
|
|
@@ -31620,10 +31820,10 @@ var RegistryDomSchemaChecker = class {
|
|
|
31620
31820
|
}
|
|
31621
31821
|
};
|
|
31622
31822
|
|
|
31623
|
-
// bazel-out/
|
|
31823
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
31624
31824
|
var import_typescript76 = __toESM(require("typescript"), 1);
|
|
31625
31825
|
|
|
31626
|
-
// bazel-out/
|
|
31826
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
|
|
31627
31827
|
var import_typescript70 = __toESM(require("typescript"), 1);
|
|
31628
31828
|
var SAFE_TO_CAST_WITHOUT_PARENS = /* @__PURE__ */ new Set([
|
|
31629
31829
|
import_typescript70.default.SyntaxKind.ParenthesizedExpression,
|
|
@@ -31697,16 +31897,16 @@ function isAccessExpression(node) {
|
|
|
31697
31897
|
return import_typescript70.default.isPropertyAccessExpression(node) || import_typescript70.default.isElementAccessExpression(node);
|
|
31698
31898
|
}
|
|
31699
31899
|
|
|
31700
|
-
// bazel-out/
|
|
31900
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
31701
31901
|
var import_typescript75 = __toESM(require("typescript"), 1);
|
|
31702
31902
|
|
|
31703
|
-
// bazel-out/
|
|
31903
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
31704
31904
|
var import_typescript73 = __toESM(require("typescript"), 1);
|
|
31705
31905
|
|
|
31706
|
-
// bazel-out/
|
|
31906
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
|
|
31707
31907
|
var import_typescript72 = __toESM(require("typescript"), 1);
|
|
31708
31908
|
|
|
31709
|
-
// bazel-out/
|
|
31909
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_emitter.mjs
|
|
31710
31910
|
var import_typescript71 = __toESM(require("typescript"), 1);
|
|
31711
31911
|
var INELIGIBLE = {};
|
|
31712
31912
|
function canEmitType(type, canEmit) {
|
|
@@ -31781,7 +31981,7 @@ var TypeEmitter = class {
|
|
|
31781
31981
|
}
|
|
31782
31982
|
};
|
|
31783
31983
|
|
|
31784
|
-
// bazel-out/
|
|
31984
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
|
|
31785
31985
|
var TypeParameterEmitter = class {
|
|
31786
31986
|
constructor(typeParameters, reflector) {
|
|
31787
31987
|
this.typeParameters = typeParameters;
|
|
@@ -31858,7 +32058,7 @@ var TypeParameterEmitter = class {
|
|
|
31858
32058
|
}
|
|
31859
32059
|
};
|
|
31860
32060
|
|
|
31861
|
-
// bazel-out/
|
|
32061
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
31862
32062
|
var TcbInliningRequirement;
|
|
31863
32063
|
(function(TcbInliningRequirement2) {
|
|
31864
32064
|
TcbInliningRequirement2[TcbInliningRequirement2["MustInline"] = 0] = "MustInline";
|
|
@@ -31938,7 +32138,7 @@ function checkIfGenericTypeBoundsCanBeEmitted(node, reflector, env) {
|
|
|
31938
32138
|
return emitter.canEmit((ref) => env.canReferenceType(ref));
|
|
31939
32139
|
}
|
|
31940
32140
|
|
|
31941
|
-
// bazel-out/
|
|
32141
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
31942
32142
|
function generateTypeCtorDeclarationFn(node, meta, nodeTypeRef, typeParams) {
|
|
31943
32143
|
const rawTypeArgs = typeParams !== void 0 ? generateGenericArgs(typeParams) : void 0;
|
|
31944
32144
|
const rawType = import_typescript75.default.factory.createTypeReferenceNode(nodeTypeRef, rawTypeArgs);
|
|
@@ -32050,7 +32250,7 @@ function typeParametersWithDefaultTypes(params) {
|
|
|
32050
32250
|
});
|
|
32051
32251
|
}
|
|
32052
32252
|
|
|
32053
|
-
// bazel-out/
|
|
32253
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
32054
32254
|
var Environment = class {
|
|
32055
32255
|
constructor(config, importManager, refEmitter, reflector, contextFile) {
|
|
32056
32256
|
this.config = config;
|
|
@@ -32124,7 +32324,7 @@ var Environment = class {
|
|
|
32124
32324
|
referenceType(ref) {
|
|
32125
32325
|
const ngExpr = this.refEmitter.emit(ref, this.contextFile, ImportFlags.NoAliasing | ImportFlags.AllowTypeImports | ImportFlags.AllowRelativeDtsImports);
|
|
32126
32326
|
assertSuccessfulReferenceEmit(ngExpr, this.contextFile, "symbol");
|
|
32127
|
-
return translateType(new ExpressionType(ngExpr.expression), this.importManager);
|
|
32327
|
+
return translateType(new ExpressionType(ngExpr.expression), this.contextFile, this.reflector, this.refEmitter, this.importManager);
|
|
32128
32328
|
}
|
|
32129
32329
|
emitTypeParameters(declaration) {
|
|
32130
32330
|
const emitter = new TypeParameterEmitter(declaration.typeParameters, this.reflector);
|
|
@@ -32132,7 +32332,10 @@ var Environment = class {
|
|
|
32132
32332
|
}
|
|
32133
32333
|
referenceExternalType(moduleName, name, typeParams) {
|
|
32134
32334
|
const external = new ExternalExpr({ moduleName, name });
|
|
32135
|
-
return translateType(new ExpressionType(external, TypeModifier.None, typeParams), this.importManager);
|
|
32335
|
+
return translateType(new ExpressionType(external, TypeModifier.None, typeParams), this.contextFile, this.reflector, this.refEmitter, this.importManager);
|
|
32336
|
+
}
|
|
32337
|
+
referenceTransplantedType(type) {
|
|
32338
|
+
return translateType(type, this.contextFile, this.reflector, this.refEmitter, this.importManager);
|
|
32136
32339
|
}
|
|
32137
32340
|
getPreludeStatements() {
|
|
32138
32341
|
return [
|
|
@@ -32142,7 +32345,7 @@ var Environment = class {
|
|
|
32142
32345
|
}
|
|
32143
32346
|
};
|
|
32144
32347
|
|
|
32145
|
-
// bazel-out/
|
|
32348
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
|
|
32146
32349
|
var import_typescript77 = __toESM(require("typescript"), 1);
|
|
32147
32350
|
var OutOfBandDiagnosticRecorderImpl = class {
|
|
32148
32351
|
constructor(resolver) {
|
|
@@ -32277,7 +32480,7 @@ function makeInlineDiagnostic(templateId, code, node, messageText, relatedInform
|
|
|
32277
32480
|
});
|
|
32278
32481
|
}
|
|
32279
32482
|
|
|
32280
|
-
// bazel-out/
|
|
32483
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
|
|
32281
32484
|
var import_typescript78 = __toESM(require("typescript"), 1);
|
|
32282
32485
|
var TypeCheckShimGenerator = class {
|
|
32283
32486
|
constructor() {
|
|
@@ -32295,10 +32498,10 @@ var TypeCheckShimGenerator = class {
|
|
|
32295
32498
|
}
|
|
32296
32499
|
};
|
|
32297
32500
|
|
|
32298
|
-
// bazel-out/
|
|
32501
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
32299
32502
|
var import_typescript81 = __toESM(require("typescript"), 1);
|
|
32300
32503
|
|
|
32301
|
-
// bazel-out/
|
|
32504
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
|
|
32302
32505
|
var import_typescript79 = __toESM(require("typescript"), 1);
|
|
32303
32506
|
function wrapForDiagnostics(expr) {
|
|
32304
32507
|
return import_typescript79.default.factory.createParenthesizedExpression(expr);
|
|
@@ -32343,7 +32546,7 @@ function translateDiagnostic(diagnostic, resolver) {
|
|
|
32343
32546
|
return makeTemplateDiagnostic(sourceLocation.id, templateSourceMapping, span, diagnostic.category, diagnostic.code, diagnostic.messageText);
|
|
32344
32547
|
}
|
|
32345
32548
|
|
|
32346
|
-
// bazel-out/
|
|
32549
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
|
|
32347
32550
|
var import_typescript80 = __toESM(require("typescript"), 1);
|
|
32348
32551
|
var NULL_AS_ANY = import_typescript80.default.factory.createAsExpression(import_typescript80.default.factory.createNull(), import_typescript80.default.factory.createKeywordTypeNode(import_typescript80.default.SyntaxKind.AnyKeyword));
|
|
32349
32552
|
var UNDEFINED = import_typescript80.default.factory.createIdentifier("undefined");
|
|
@@ -32675,7 +32878,7 @@ var VeSafeLhsInferenceBugDetector = _VeSafeLhsInferenceBugDetector;
|
|
|
32675
32878
|
_VeSafeLhsInferenceBugDetector.SINGLETON = new _VeSafeLhsInferenceBugDetector();
|
|
32676
32879
|
})();
|
|
32677
32880
|
|
|
32678
|
-
// bazel-out/
|
|
32881
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_semantics.mjs
|
|
32679
32882
|
var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
|
|
32680
32883
|
constructor(templateId, boundTarget, oob) {
|
|
32681
32884
|
super();
|
|
@@ -32698,7 +32901,7 @@ var ExpressionSemanticVisitor = class extends RecursiveAstVisitor2 {
|
|
|
32698
32901
|
}
|
|
32699
32902
|
};
|
|
32700
32903
|
|
|
32701
|
-
// bazel-out/
|
|
32904
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
32702
32905
|
var TcbGenericContextBehavior;
|
|
32703
32906
|
(function(TcbGenericContextBehavior2) {
|
|
32704
32907
|
TcbGenericContextBehavior2[TcbGenericContextBehavior2["UseEmitter"] = 0] = "UseEmitter";
|
|
@@ -33813,7 +34016,7 @@ var TcbEventHandlerTranslator = class extends TcbExpressionTranslator {
|
|
|
33813
34016
|
}
|
|
33814
34017
|
};
|
|
33815
34018
|
|
|
33816
|
-
// bazel-out/
|
|
34019
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
|
|
33817
34020
|
var import_typescript82 = __toESM(require("typescript"), 1);
|
|
33818
34021
|
var TypeCheckFile = class extends Environment {
|
|
33819
34022
|
constructor(fileName, config, refEmitter, reflector, compilerHost) {
|
|
@@ -33849,7 +34052,7 @@ var TypeCheckFile = class extends Environment {
|
|
|
33849
34052
|
}
|
|
33850
34053
|
};
|
|
33851
34054
|
|
|
33852
|
-
// bazel-out/
|
|
34055
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
33853
34056
|
var InliningMode;
|
|
33854
34057
|
(function(InliningMode2) {
|
|
33855
34058
|
InliningMode2[InliningMode2["InlineOps"] = 0] = "InlineOps";
|
|
@@ -34087,7 +34290,7 @@ function splitStringAtPoints(str, points) {
|
|
|
34087
34290
|
return splits;
|
|
34088
34291
|
}
|
|
34089
34292
|
|
|
34090
|
-
// bazel-out/
|
|
34293
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/line_mappings.mjs
|
|
34091
34294
|
var LF_CHAR = 10;
|
|
34092
34295
|
var CR_CHAR = 13;
|
|
34093
34296
|
var LINE_SEP_CHAR = 8232;
|
|
@@ -34128,7 +34331,7 @@ function findClosestLineStartPosition(linesMap, position, low = 0, high = linesM
|
|
|
34128
34331
|
return low - 1;
|
|
34129
34332
|
}
|
|
34130
34333
|
|
|
34131
|
-
// bazel-out/
|
|
34334
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
|
|
34132
34335
|
var TemplateSource = class {
|
|
34133
34336
|
constructor(mapping, file) {
|
|
34134
34337
|
this.mapping = mapping;
|
|
@@ -34179,7 +34382,7 @@ var TemplateSourceManager = class {
|
|
|
34179
34382
|
}
|
|
34180
34383
|
};
|
|
34181
34384
|
|
|
34182
|
-
// bazel-out/
|
|
34385
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
|
|
34183
34386
|
var import_typescript84 = __toESM(require("typescript"), 1);
|
|
34184
34387
|
var SymbolBuilder = class {
|
|
34185
34388
|
constructor(tcbPath, tcbIsShim, typeCheckBlock, templateData, componentScopeReader, getTypeChecker) {
|
|
@@ -34656,7 +34859,7 @@ function sourceSpanEqual(a, b) {
|
|
|
34656
34859
|
return a.start.offset === b.start.offset && a.end.offset === b.end.offset;
|
|
34657
34860
|
}
|
|
34658
34861
|
|
|
34659
|
-
// bazel-out/
|
|
34862
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
|
|
34660
34863
|
var REGISTRY2 = new DomElementSchemaRegistry();
|
|
34661
34864
|
var TemplateTypeCheckerImpl = class {
|
|
34662
34865
|
constructor(originalProgram, programDriver, typeCheckAdapter, config, refEmitter, reflector, compilerHost, priorBuild, metaReader, localMetaReader, ngModuleIndex, componentScopeReader, typeCheckScopeRegistry, perf) {
|
|
@@ -35349,7 +35552,7 @@ var SingleShimTypeCheckingHost = class extends SingleFileTypeCheckingHost {
|
|
|
35349
35552
|
}
|
|
35350
35553
|
};
|
|
35351
35554
|
|
|
35352
|
-
// bazel-out/
|
|
35555
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
|
|
35353
35556
|
var TemplateCheckWithVisitor = class {
|
|
35354
35557
|
run(ctx, component, template2) {
|
|
35355
35558
|
const visitor = new TemplateVisitor2(ctx, component, this);
|
|
@@ -35425,7 +35628,7 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor2 {
|
|
|
35425
35628
|
}
|
|
35426
35629
|
};
|
|
35427
35630
|
|
|
35428
|
-
// bazel-out/
|
|
35631
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
|
|
35429
35632
|
var InvalidBananaInBoxCheck = class extends TemplateCheckWithVisitor {
|
|
35430
35633
|
constructor() {
|
|
35431
35634
|
super(...arguments);
|
|
@@ -35450,7 +35653,7 @@ var factory = {
|
|
|
35450
35653
|
create: () => new InvalidBananaInBoxCheck()
|
|
35451
35654
|
};
|
|
35452
35655
|
|
|
35453
|
-
// bazel-out/
|
|
35656
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.mjs
|
|
35454
35657
|
var KNOWN_CONTROL_FLOW_DIRECTIVES = /* @__PURE__ */ new Map([
|
|
35455
35658
|
["ngIf", "NgIf"],
|
|
35456
35659
|
["ngFor", "NgFor"],
|
|
@@ -35494,7 +35697,7 @@ var factory2 = {
|
|
|
35494
35697
|
}
|
|
35495
35698
|
};
|
|
35496
35699
|
|
|
35497
|
-
// bazel-out/
|
|
35700
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.mjs
|
|
35498
35701
|
var MissingNgForOfLetCheck = class extends TemplateCheckWithVisitor {
|
|
35499
35702
|
constructor() {
|
|
35500
35703
|
super(...arguments);
|
|
@@ -35526,7 +35729,7 @@ var factory3 = {
|
|
|
35526
35729
|
create: () => new MissingNgForOfLetCheck()
|
|
35527
35730
|
};
|
|
35528
35731
|
|
|
35529
|
-
// bazel-out/
|
|
35732
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
|
|
35530
35733
|
var import_typescript87 = __toESM(require("typescript"), 1);
|
|
35531
35734
|
var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
35532
35735
|
constructor() {
|
|
@@ -35570,7 +35773,7 @@ var factory4 = {
|
|
|
35570
35773
|
}
|
|
35571
35774
|
};
|
|
35572
35775
|
|
|
35573
|
-
// bazel-out/
|
|
35776
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.mjs
|
|
35574
35777
|
var import_typescript88 = __toESM(require("typescript"), 1);
|
|
35575
35778
|
var OptionalChainNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
35576
35779
|
constructor() {
|
|
@@ -35615,7 +35818,7 @@ var factory5 = {
|
|
|
35615
35818
|
}
|
|
35616
35819
|
};
|
|
35617
35820
|
|
|
35618
|
-
// bazel-out/
|
|
35821
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.mjs
|
|
35619
35822
|
var STYLE_SUFFIXES = ["px", "%", "em"];
|
|
35620
35823
|
var SuffixNotSupportedCheck = class extends TemplateCheckWithVisitor {
|
|
35621
35824
|
constructor() {
|
|
@@ -35638,7 +35841,7 @@ var factory6 = {
|
|
|
35638
35841
|
create: () => new SuffixNotSupportedCheck()
|
|
35639
35842
|
};
|
|
35640
35843
|
|
|
35641
|
-
// bazel-out/
|
|
35844
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.mjs
|
|
35642
35845
|
var TextAttributeNotBindingSpec = class extends TemplateCheckWithVisitor {
|
|
35643
35846
|
constructor() {
|
|
35644
35847
|
super(...arguments);
|
|
@@ -35676,10 +35879,10 @@ var factory7 = {
|
|
|
35676
35879
|
create: () => new TextAttributeNotBindingSpec()
|
|
35677
35880
|
};
|
|
35678
35881
|
|
|
35679
|
-
// bazel-out/
|
|
35882
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
35680
35883
|
var import_typescript89 = __toESM(require("typescript"), 1);
|
|
35681
35884
|
|
|
35682
|
-
// bazel-out/
|
|
35885
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
|
|
35683
35886
|
var DiagnosticCategoryLabel;
|
|
35684
35887
|
(function(DiagnosticCategoryLabel2) {
|
|
35685
35888
|
DiagnosticCategoryLabel2["Warning"] = "warning";
|
|
@@ -35687,7 +35890,7 @@ var DiagnosticCategoryLabel;
|
|
|
35687
35890
|
DiagnosticCategoryLabel2["Suppress"] = "suppress";
|
|
35688
35891
|
})(DiagnosticCategoryLabel || (DiagnosticCategoryLabel = {}));
|
|
35689
35892
|
|
|
35690
|
-
// bazel-out/
|
|
35893
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
35691
35894
|
var ExtendedTemplateCheckerImpl = class {
|
|
35692
35895
|
constructor(templateTypeChecker, typeChecker, templateCheckFactories, options) {
|
|
35693
35896
|
var _a2, _b, _c, _d, _e;
|
|
@@ -35739,7 +35942,7 @@ function assertNever(value) {
|
|
|
35739
35942
|
${value}`);
|
|
35740
35943
|
}
|
|
35741
35944
|
|
|
35742
|
-
// bazel-out/
|
|
35945
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
|
|
35743
35946
|
var ALL_DIAGNOSTIC_FACTORIES = [
|
|
35744
35947
|
factory,
|
|
35745
35948
|
factory4,
|
|
@@ -35750,7 +35953,7 @@ var ALL_DIAGNOSTIC_FACTORIES = [
|
|
|
35750
35953
|
factory6
|
|
35751
35954
|
];
|
|
35752
35955
|
|
|
35753
|
-
// bazel-out/
|
|
35956
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
35754
35957
|
var CompilationTicketKind;
|
|
35755
35958
|
(function(CompilationTicketKind2) {
|
|
35756
35959
|
CompilationTicketKind2[CompilationTicketKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -36007,7 +36210,7 @@ var NgCompiler = class {
|
|
|
36007
36210
|
];
|
|
36008
36211
|
const afterDeclarations = [];
|
|
36009
36212
|
if (compilation.dtsTransforms !== null) {
|
|
36010
|
-
afterDeclarations.push(declarationTransformFactory(compilation.dtsTransforms, importRewriter));
|
|
36213
|
+
afterDeclarations.push(declarationTransformFactory(compilation.dtsTransforms, compilation.reflector, compilation.refEmitter, importRewriter));
|
|
36011
36214
|
}
|
|
36012
36215
|
if (compilation.aliasingHost !== null && compilation.aliasingHost.aliasExportsInDts) {
|
|
36013
36216
|
afterDeclarations.push(aliasTransformFactory(compilation.traitCompiler.exportStatements));
|
|
@@ -36469,7 +36672,7 @@ function versionMapFromProgram(program, driver) {
|
|
|
36469
36672
|
return versions;
|
|
36470
36673
|
}
|
|
36471
36674
|
|
|
36472
|
-
// bazel-out/
|
|
36675
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
|
|
36473
36676
|
var import_typescript92 = __toESM(require("typescript"), 1);
|
|
36474
36677
|
var DelegatingCompilerHost2 = class {
|
|
36475
36678
|
constructor(delegate) {
|
|
@@ -36602,7 +36805,7 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
|
|
|
36602
36805
|
}
|
|
36603
36806
|
};
|
|
36604
36807
|
|
|
36605
|
-
// bazel-out/
|
|
36808
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
36606
36809
|
var NgtscProgram = class {
|
|
36607
36810
|
constructor(rootNames, options, delegateHost, oldProgram) {
|
|
36608
36811
|
this.options = options;
|
|
@@ -36820,21 +37023,21 @@ function mergeEmitResults(emitResults) {
|
|
|
36820
37023
|
return { diagnostics, emitSkipped, emittedFiles };
|
|
36821
37024
|
}
|
|
36822
37025
|
|
|
36823
|
-
// bazel-out/
|
|
37026
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
|
|
36824
37027
|
function createProgram({ rootNames, options, host, oldProgram }) {
|
|
36825
37028
|
return new NgtscProgram(rootNames, options, host, oldProgram);
|
|
36826
37029
|
}
|
|
36827
37030
|
|
|
36828
|
-
// bazel-out/
|
|
37031
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
36829
37032
|
var import_typescript96 = __toESM(require("typescript"), 1);
|
|
36830
37033
|
|
|
36831
|
-
// bazel-out/
|
|
37034
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
|
|
36832
37035
|
var import_typescript95 = __toESM(require("typescript"), 1);
|
|
36833
37036
|
|
|
36834
|
-
// bazel-out/
|
|
37037
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/downlevel_decorators_transform/downlevel_decorators_transform.mjs
|
|
36835
37038
|
var import_typescript97 = __toESM(require("typescript"), 1);
|
|
36836
37039
|
|
|
36837
|
-
// bazel-out/
|
|
37040
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/private/tooling.mjs
|
|
36838
37041
|
var GLOBAL_DEFS_FOR_TERSER = {
|
|
36839
37042
|
ngDevMode: false,
|
|
36840
37043
|
ngI18nClosureMode: false
|
|
@@ -36843,7 +37046,7 @@ var GLOBAL_DEFS_FOR_TERSER_WITH_AOT = __spreadProps(__spreadValues({}, GLOBAL_DE
|
|
|
36843
37046
|
ngJitMode: false
|
|
36844
37047
|
});
|
|
36845
37048
|
|
|
36846
|
-
// bazel-out/
|
|
37049
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/logging/src/logger.mjs
|
|
36847
37050
|
var LogLevel;
|
|
36848
37051
|
(function(LogLevel2) {
|
|
36849
37052
|
LogLevel2[LogLevel2["debug"] = 0] = "debug";
|
|
@@ -36852,7 +37055,7 @@ var LogLevel;
|
|
|
36852
37055
|
LogLevel2[LogLevel2["error"] = 3] = "error";
|
|
36853
37056
|
})(LogLevel || (LogLevel = {}));
|
|
36854
37057
|
|
|
36855
|
-
// bazel-out/
|
|
37058
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/logging/src/console_logger.mjs
|
|
36856
37059
|
var RESET = "\x1B[0m";
|
|
36857
37060
|
var RED = "\x1B[31m";
|
|
36858
37061
|
var YELLOW = "\x1B[33m";
|
|
@@ -36861,18 +37064,18 @@ var DEBUG = `${BLUE}Debug:${RESET}`;
|
|
|
36861
37064
|
var WARN = `${YELLOW}Warning:${RESET}`;
|
|
36862
37065
|
var ERROR = `${RED}Error:${RESET}`;
|
|
36863
37066
|
|
|
36864
|
-
// bazel-out/
|
|
37067
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/index.mjs
|
|
36865
37068
|
setFileSystem(new NodeJSFileSystem());
|
|
36866
37069
|
|
|
36867
|
-
// bazel-out/
|
|
37070
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/index.mjs
|
|
36868
37071
|
var import_fs2 = require("fs");
|
|
36869
37072
|
var import_path8 = require("path");
|
|
36870
37073
|
var import_typescript110 = __toESM(require("typescript"), 1);
|
|
36871
37074
|
|
|
36872
|
-
// bazel-out/
|
|
37075
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
|
|
36873
37076
|
var import_typescript99 = __toESM(require("typescript"), 1);
|
|
36874
37077
|
|
|
36875
|
-
// bazel-out/
|
|
37078
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/import_manager.mjs
|
|
36876
37079
|
var import_path4 = require("path");
|
|
36877
37080
|
var import_typescript98 = __toESM(require("typescript"), 1);
|
|
36878
37081
|
var ImportManager2 = class {
|
|
@@ -37056,7 +37259,7 @@ ${text2}`;
|
|
|
37056
37259
|
}
|
|
37057
37260
|
};
|
|
37058
37261
|
|
|
37059
|
-
// bazel-out/
|
|
37262
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
|
|
37060
37263
|
var ChangeTracker = class {
|
|
37061
37264
|
constructor(_printer, _importRemapper) {
|
|
37062
37265
|
__publicField(this, "_printer");
|
|
@@ -37112,7 +37315,7 @@ function normalizePath(path3) {
|
|
|
37112
37315
|
return path3.replace(/\\/g, "/");
|
|
37113
37316
|
}
|
|
37114
37317
|
|
|
37115
|
-
// bazel-out/
|
|
37318
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
|
|
37116
37319
|
var import_core13 = require("@angular-devkit/core");
|
|
37117
37320
|
function getProjectTsConfigPaths(tree) {
|
|
37118
37321
|
return __async(this, null, function* () {
|
|
@@ -37192,11 +37395,11 @@ function getWorkspace(tree) {
|
|
|
37192
37395
|
});
|
|
37193
37396
|
}
|
|
37194
37397
|
|
|
37195
|
-
// bazel-out/
|
|
37398
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
37196
37399
|
var import_path5 = require("path");
|
|
37197
37400
|
var import_typescript101 = __toESM(require("typescript"), 1);
|
|
37198
37401
|
|
|
37199
|
-
// bazel-out/
|
|
37402
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
|
|
37200
37403
|
var path2 = __toESM(require("path"), 1);
|
|
37201
37404
|
var import_typescript100 = __toESM(require("typescript"), 1);
|
|
37202
37405
|
function parseTsconfigFile(tsconfigPath, basePath) {
|
|
@@ -37213,7 +37416,7 @@ function parseTsconfigFile(tsconfigPath, basePath) {
|
|
|
37213
37416
|
return import_typescript100.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
|
|
37214
37417
|
}
|
|
37215
37418
|
|
|
37216
|
-
// bazel-out/
|
|
37419
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
37217
37420
|
function createProgramOptions(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles, optionOverrides) {
|
|
37218
37421
|
tsconfigPath = (0, import_path5.resolve)(basePath, tsconfigPath);
|
|
37219
37422
|
const parsed = parseTsconfigFile(tsconfigPath, (0, import_path5.dirname)(tsconfigPath));
|
|
@@ -37242,13 +37445,13 @@ function canMigrateFile(basePath, sourceFile, program) {
|
|
|
37242
37445
|
return !(0, import_path5.relative)(basePath, sourceFile.fileName).startsWith("..");
|
|
37243
37446
|
}
|
|
37244
37447
|
|
|
37245
|
-
// bazel-out/
|
|
37448
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/prune-modules.mjs
|
|
37246
37449
|
var import_typescript106 = __toESM(require("typescript"), 1);
|
|
37247
37450
|
|
|
37248
|
-
// bazel-out/
|
|
37451
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
|
|
37249
37452
|
var import_typescript103 = __toESM(require("typescript"), 1);
|
|
37250
37453
|
|
|
37251
|
-
// bazel-out/
|
|
37454
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
|
|
37252
37455
|
var import_typescript102 = __toESM(require("typescript"), 1);
|
|
37253
37456
|
function getImportOfIdentifier(typeChecker, node) {
|
|
37254
37457
|
const symbol = typeChecker.getSymbolAtLocation(node);
|
|
@@ -37299,7 +37502,7 @@ function findImportSpecifier(nodes, specifierName) {
|
|
|
37299
37502
|
});
|
|
37300
37503
|
}
|
|
37301
37504
|
|
|
37302
|
-
// bazel-out/
|
|
37505
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
|
|
37303
37506
|
function getCallDecoratorImport(typeChecker, decorator) {
|
|
37304
37507
|
if (!import_typescript103.default.isCallExpression(decorator.expression) || !import_typescript103.default.isIdentifier(decorator.expression.expression)) {
|
|
37305
37508
|
return null;
|
|
@@ -37308,7 +37511,7 @@ function getCallDecoratorImport(typeChecker, decorator) {
|
|
|
37308
37511
|
return getImportOfIdentifier(typeChecker, identifier);
|
|
37309
37512
|
}
|
|
37310
37513
|
|
|
37311
|
-
// bazel-out/
|
|
37514
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/ng_decorators.mjs
|
|
37312
37515
|
function getAngularDecorators(typeChecker, decorators) {
|
|
37313
37516
|
return decorators.map((node) => ({ node, importData: getCallDecoratorImport(typeChecker, node) })).filter(({ importData }) => importData && importData.importModule.startsWith("@angular/")).map(({ node, importData }) => ({
|
|
37314
37517
|
node,
|
|
@@ -37318,7 +37521,7 @@ function getAngularDecorators(typeChecker, decorators) {
|
|
|
37318
37521
|
}));
|
|
37319
37522
|
}
|
|
37320
37523
|
|
|
37321
|
-
// bazel-out/
|
|
37524
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/nodes.mjs
|
|
37322
37525
|
var import_typescript104 = __toESM(require("typescript"), 1);
|
|
37323
37526
|
function closestNode(node, predicate) {
|
|
37324
37527
|
let current = node.parent;
|
|
@@ -37331,7 +37534,7 @@ function closestNode(node, predicate) {
|
|
|
37331
37534
|
return null;
|
|
37332
37535
|
}
|
|
37333
37536
|
|
|
37334
|
-
// bazel-out/
|
|
37537
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/util.mjs
|
|
37335
37538
|
var import_path6 = require("path");
|
|
37336
37539
|
var import_typescript105 = __toESM(require("typescript"), 1);
|
|
37337
37540
|
var UniqueItemTracker = class {
|
|
@@ -37507,7 +37710,7 @@ function isClassReferenceInAngularModule(node, className, moduleName, typeChecke
|
|
|
37507
37710
|
}));
|
|
37508
37711
|
}
|
|
37509
37712
|
|
|
37510
|
-
// bazel-out/
|
|
37713
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/prune-modules.mjs
|
|
37511
37714
|
function pruneNgModules(program, host, basePath, rootFileNames, sourceFiles, printer, importRemapper, referenceLookupExcludedFiles) {
|
|
37512
37715
|
const filesToRemove = /* @__PURE__ */ new Set();
|
|
37513
37716
|
const tracker = new ChangeTracker(printer, importRemapper);
|
|
@@ -37706,14 +37909,14 @@ function findNgModuleDecorator(node, typeChecker) {
|
|
|
37706
37909
|
return decorators.find((decorator) => decorator.name === "NgModule") || null;
|
|
37707
37910
|
}
|
|
37708
37911
|
|
|
37709
|
-
// bazel-out/
|
|
37912
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/standalone-bootstrap.mjs
|
|
37710
37913
|
var import_path7 = require("path");
|
|
37711
37914
|
var import_typescript109 = __toESM(require("typescript"), 1);
|
|
37712
37915
|
|
|
37713
|
-
// bazel-out/
|
|
37916
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/to-standalone.mjs
|
|
37714
37917
|
var import_typescript108 = __toESM(require("typescript"), 1);
|
|
37715
37918
|
|
|
37716
|
-
// bazel-out/
|
|
37919
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/symbol.mjs
|
|
37717
37920
|
var import_typescript107 = __toESM(require("typescript"), 1);
|
|
37718
37921
|
function isReferenceToImport(typeChecker, node, importSpecifier) {
|
|
37719
37922
|
var _a2, _b;
|
|
@@ -37722,7 +37925,7 @@ function isReferenceToImport(typeChecker, node, importSpecifier) {
|
|
|
37722
37925
|
return !!(((_a2 = nodeSymbol == null ? void 0 : nodeSymbol.declarations) == null ? void 0 : _a2[0]) && ((_b = importSymbol == null ? void 0 : importSymbol.declarations) == null ? void 0 : _b[0])) && nodeSymbol.declarations[0] === importSymbol.declarations[0];
|
|
37723
37926
|
}
|
|
37724
37927
|
|
|
37725
|
-
// bazel-out/
|
|
37928
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/to-standalone.mjs
|
|
37726
37929
|
function toStandalone(sourceFiles, program, printer, fileImportRemapper, componentImportRemapper) {
|
|
37727
37930
|
const templateTypeChecker = program.compiler.getTemplateTypeChecker();
|
|
37728
37931
|
const typeChecker = program.getTsProgram().getTypeChecker();
|
|
@@ -38085,7 +38288,7 @@ function isStandaloneDeclaration(node, declarationsInMigration, templateTypeChec
|
|
|
38085
38288
|
return metadata != null && metadata.isStandalone;
|
|
38086
38289
|
}
|
|
38087
38290
|
|
|
38088
|
-
// bazel-out/
|
|
38291
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/standalone-bootstrap.mjs
|
|
38089
38292
|
function toStandaloneBootstrap(program, host, basePath, rootFileNames, sourceFiles, printer, importRemapper, referenceLookupExcludedFiles, componentImportRemapper) {
|
|
38090
38293
|
const tracker = new ChangeTracker(printer, importRemapper);
|
|
38091
38294
|
const typeChecker = program.getTsProgram().getTypeChecker();
|
|
@@ -38462,7 +38665,7 @@ function hasImport(program, rootFileNames, moduleName) {
|
|
|
38462
38665
|
return false;
|
|
38463
38666
|
}
|
|
38464
38667
|
|
|
38465
|
-
// bazel-out/
|
|
38668
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/index.mjs
|
|
38466
38669
|
var MigrationMode;
|
|
38467
38670
|
(function(MigrationMode2) {
|
|
38468
38671
|
MigrationMode2["toStandalone"] = "convert-to-standalone";
|