@angular/core 15.2.0-rc.0 → 15.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/src/core_render3_private_export.mjs +2 -1
- package/esm2020/src/di/interface/defs.mjs +4 -5
- package/esm2020/src/di/provider_collection.mjs +2 -2
- package/esm2020/src/linker/query_list.mjs +6 -7
- package/esm2020/src/metadata/directives.mjs +1 -1
- package/esm2020/src/render3/instructions/element.mjs +10 -9
- package/esm2020/src/render3/instructions/shared.mjs +3 -4
- package/esm2020/src/render3/interfaces/node.mjs +1 -1
- package/esm2020/src/util/iterable.mjs +6 -7
- package/esm2020/src/version.mjs +1 -1
- package/esm2020/testing/src/logger.mjs +3 -3
- package/esm2020/testing/src/ng_zone_mock.mjs +3 -3
- package/fesm2015/core.mjs +27 -50
- package/fesm2015/core.mjs.map +1 -1
- package/fesm2015/testing.mjs +26 -49
- package/fesm2015/testing.mjs.map +1 -1
- package/fesm2020/core.mjs +27 -50
- package/fesm2020/core.mjs.map +1 -1
- package/fesm2020/testing.mjs +26 -49
- package/fesm2020/testing.mjs.map +1 -1
- package/index.d.ts +11 -2
- package/package.json +2 -2
- package/schematics/migrations/relative-link-resolution/bundle.js +7 -7
- package/schematics/migrations/router-link-with-href/bundle.js +10 -10
- package/schematics/ng-generate/standalone-migration/bundle.js +634 -559
- package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
- package/testing/index.d.ts +1 -1
- package/esm2020/src/util/symbol.mjs +0 -30
- package/esm2020/src/view/index.mjs +0 -9
|
@@ -59,7 +59,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
59
59
|
});
|
|
60
60
|
};
|
|
61
61
|
|
|
62
|
-
// bazel-out/
|
|
62
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/index.mjs
|
|
63
63
|
var standalone_migration_exports = {};
|
|
64
64
|
__export(standalone_migration_exports, {
|
|
65
65
|
default: () => standalone_migration_default
|
|
@@ -67,10 +67,10 @@ __export(standalone_migration_exports, {
|
|
|
67
67
|
module.exports = __toCommonJS(standalone_migration_exports);
|
|
68
68
|
var import_schematics = require("@angular-devkit/schematics");
|
|
69
69
|
|
|
70
|
-
// bazel-out/
|
|
70
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/compiler_host.mjs
|
|
71
71
|
var import_typescript = __toESM(require("typescript"), 1);
|
|
72
72
|
|
|
73
|
-
// bazel-out/
|
|
73
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/invalid_file_system.mjs
|
|
74
74
|
var InvalidFileSystem = class {
|
|
75
75
|
exists(path3) {
|
|
76
76
|
throw makeError();
|
|
@@ -158,7 +158,7 @@ function makeError() {
|
|
|
158
158
|
return new Error("FileSystem has not been configured. Please call `setFileSystem()` before calling this method.");
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
// bazel-out/
|
|
161
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/util.mjs
|
|
162
162
|
var TS_DTS_JS_EXTENSION = /(?:\.d)?\.ts$|\.js$/;
|
|
163
163
|
function stripExtension(path3) {
|
|
164
164
|
return path3.replace(TS_DTS_JS_EXTENSION, "");
|
|
@@ -171,7 +171,7 @@ function getSourceFileOrError(program, fileName) {
|
|
|
171
171
|
return sf;
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
-
// bazel-out/
|
|
174
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/helpers.mjs
|
|
175
175
|
var fs = new InvalidFileSystem();
|
|
176
176
|
function getFileSystem() {
|
|
177
177
|
return fs;
|
|
@@ -218,7 +218,7 @@ function toRelativeImport(relativePath) {
|
|
|
218
218
|
return isLocalRelativePath(relativePath) ? `./${relativePath}` : relativePath;
|
|
219
219
|
}
|
|
220
220
|
|
|
221
|
-
// bazel-out/
|
|
221
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/logical.mjs
|
|
222
222
|
var LogicalProjectPath = {
|
|
223
223
|
relativePathBetween: function(from, to) {
|
|
224
224
|
const relativePath = relative(dirname(resolve(from)), resolve(to));
|
|
@@ -264,7 +264,7 @@ function isWithinBasePath(base, path3) {
|
|
|
264
264
|
return isLocalRelativePath(relative(base, path3));
|
|
265
265
|
}
|
|
266
266
|
|
|
267
|
-
// bazel-out/
|
|
267
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/node_js_file_system.mjs
|
|
268
268
|
var import_fs = __toESM(require("fs"), 1);
|
|
269
269
|
var import_module = __toESM(require("module"), 1);
|
|
270
270
|
var p = __toESM(require("path"), 1);
|
|
@@ -372,7 +372,7 @@ function toggleCase(str) {
|
|
|
372
372
|
return str.replace(/\w/g, (ch) => ch.toUpperCase() === ch ? ch.toLowerCase() : ch.toUpperCase());
|
|
373
373
|
}
|
|
374
374
|
|
|
375
|
-
// bazel-out/
|
|
375
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/selector.mjs
|
|
376
376
|
var _SELECTOR_REGEXP = new RegExp(
|
|
377
377
|
`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,
|
|
378
378
|
"g"
|
|
@@ -680,7 +680,7 @@ var SelectorContext = class {
|
|
|
680
680
|
}
|
|
681
681
|
};
|
|
682
682
|
|
|
683
|
-
// bazel-out/
|
|
683
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/core.mjs
|
|
684
684
|
var emitDistinctChangesOnlyDefaultValue = true;
|
|
685
685
|
var ViewEncapsulation;
|
|
686
686
|
(function(ViewEncapsulation2) {
|
|
@@ -743,7 +743,7 @@ function parseSelectorToR3Selector(selector) {
|
|
|
743
743
|
return selector ? CssSelector.parse(selector).map(parserSelectorToR3Selector) : [];
|
|
744
744
|
}
|
|
745
745
|
|
|
746
|
-
// bazel-out/
|
|
746
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/big_integer.mjs
|
|
747
747
|
var BigInteger = class {
|
|
748
748
|
static zero() {
|
|
749
749
|
return new BigInteger([0]);
|
|
@@ -835,7 +835,7 @@ var BigIntExponentiation = class {
|
|
|
835
835
|
}
|
|
836
836
|
};
|
|
837
837
|
|
|
838
|
-
// bazel-out/
|
|
838
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/digest.mjs
|
|
839
839
|
var textEncoder;
|
|
840
840
|
function digest(message) {
|
|
841
841
|
return message.id || computeDigest(message);
|
|
@@ -1098,7 +1098,7 @@ function wordsToDecimalString(hi, lo) {
|
|
|
1098
1098
|
return decimal.toString();
|
|
1099
1099
|
}
|
|
1100
1100
|
|
|
1101
|
-
// bazel-out/
|
|
1101
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/output_ast.mjs
|
|
1102
1102
|
var TypeModifier;
|
|
1103
1103
|
(function(TypeModifier2) {
|
|
1104
1104
|
TypeModifier2[TypeModifier2["None"] = 0] = "None";
|
|
@@ -1925,7 +1925,7 @@ function serializeTags(tags) {
|
|
|
1925
1925
|
return out;
|
|
1926
1926
|
}
|
|
1927
1927
|
|
|
1928
|
-
// bazel-out/
|
|
1928
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/constant_pool.mjs
|
|
1929
1929
|
var CONSTANT_PREFIX = "_c";
|
|
1930
1930
|
var UNKNOWN_VALUE_KEY = variable("<unknown>");
|
|
1931
1931
|
var KEY_CONTEXT = {};
|
|
@@ -2093,7 +2093,7 @@ function isLongStringLiteral(expr) {
|
|
|
2093
2093
|
return expr instanceof LiteralExpr && typeof expr.value === "string" && expr.value.length >= POOL_INCLUSION_LENGTH_THRESHOLD_FOR_STRINGS;
|
|
2094
2094
|
}
|
|
2095
2095
|
|
|
2096
|
-
// bazel-out/
|
|
2096
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_identifiers.mjs
|
|
2097
2097
|
var CORE = "@angular/core";
|
|
2098
2098
|
var Identifiers = class {
|
|
2099
2099
|
};
|
|
@@ -2297,7 +2297,7 @@ Identifiers.trustConstantHtml = { name: "\u0275\u0275trustConstantHtml", moduleN
|
|
|
2297
2297
|
Identifiers.trustConstantResourceUrl = { name: "\u0275\u0275trustConstantResourceUrl", moduleName: CORE };
|
|
2298
2298
|
Identifiers.validateIframeAttribute = { name: "\u0275\u0275validateIframeAttribute", moduleName: CORE };
|
|
2299
2299
|
|
|
2300
|
-
// bazel-out/
|
|
2300
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/util.mjs
|
|
2301
2301
|
var DASH_CASE_REGEXP = /-+([a-z0-9])/g;
|
|
2302
2302
|
function dashCaseToCamelCase(input) {
|
|
2303
2303
|
return input.replace(DASH_CASE_REGEXP, (...m) => m[1].toUpperCase());
|
|
@@ -2385,7 +2385,7 @@ function partitionArray(arr, conditionFn) {
|
|
|
2385
2385
|
return [truthy, falsy];
|
|
2386
2386
|
}
|
|
2387
2387
|
|
|
2388
|
-
// bazel-out/
|
|
2388
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/source_map.mjs
|
|
2389
2389
|
var VERSION = 3;
|
|
2390
2390
|
var JS_B64_PREFIX = "# sourceMappingURL=data:application/json;base64,";
|
|
2391
2391
|
var SourceMapGenerator = class {
|
|
@@ -2514,7 +2514,7 @@ function toBase64Digit(value) {
|
|
|
2514
2514
|
return B64_DIGITS[value];
|
|
2515
2515
|
}
|
|
2516
2516
|
|
|
2517
|
-
// bazel-out/
|
|
2517
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/abstract_emitter.mjs
|
|
2518
2518
|
var _SINGLE_QUOTE_ESCAPE_STRING_RE = /'|\\|\n|\r|\$/g;
|
|
2519
2519
|
var _LEGAL_IDENTIFIER_RE = /^[$A-Z_][0-9A-Z_$]*$/i;
|
|
2520
2520
|
var _INDENT_WITH = " ";
|
|
@@ -2989,7 +2989,7 @@ function _createIndent(count) {
|
|
|
2989
2989
|
return res;
|
|
2990
2990
|
}
|
|
2991
2991
|
|
|
2992
|
-
// bazel-out/
|
|
2992
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/util.mjs
|
|
2993
2993
|
function typeWithParameters(type, numParams) {
|
|
2994
2994
|
if (numParams === 0) {
|
|
2995
2995
|
return expressionType(type);
|
|
@@ -3057,7 +3057,7 @@ function generateForwardRef(expr) {
|
|
|
3057
3057
|
return importExpr(Identifiers.forwardRef).callFn([fn([], [new ReturnStatement(expr)])]);
|
|
3058
3058
|
}
|
|
3059
3059
|
|
|
3060
|
-
// bazel-out/
|
|
3060
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_factory.mjs
|
|
3061
3061
|
var R3FactoryDelegateType;
|
|
3062
3062
|
(function(R3FactoryDelegateType2) {
|
|
3063
3063
|
R3FactoryDelegateType2[R3FactoryDelegateType2["Class"] = 0] = "Class";
|
|
@@ -3202,7 +3202,7 @@ function getInjectFn(target) {
|
|
|
3202
3202
|
}
|
|
3203
3203
|
}
|
|
3204
3204
|
|
|
3205
|
-
// bazel-out/
|
|
3205
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_ast.mjs
|
|
3206
3206
|
var Comment = class {
|
|
3207
3207
|
constructor(value, sourceSpan) {
|
|
3208
3208
|
this.value = value;
|
|
@@ -3424,7 +3424,7 @@ function visitAll(visitor, nodes) {
|
|
|
3424
3424
|
return result;
|
|
3425
3425
|
}
|
|
3426
3426
|
|
|
3427
|
-
// bazel-out/
|
|
3427
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/i18n_ast.mjs
|
|
3428
3428
|
var Message = class {
|
|
3429
3429
|
constructor(nodes, placeholders, placeholderToMessage, meaning, description, customId) {
|
|
3430
3430
|
this.nodes = nodes;
|
|
@@ -3587,7 +3587,7 @@ var LocalizeMessageStringVisitor = class {
|
|
|
3587
3587
|
}
|
|
3588
3588
|
};
|
|
3589
3589
|
|
|
3590
|
-
// bazel-out/
|
|
3590
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/serializer.mjs
|
|
3591
3591
|
var Serializer = class {
|
|
3592
3592
|
createNameMapper(message) {
|
|
3593
3593
|
return null;
|
|
@@ -3639,7 +3639,7 @@ var SimplePlaceholderMapper = class extends RecurseVisitor {
|
|
|
3639
3639
|
}
|
|
3640
3640
|
};
|
|
3641
3641
|
|
|
3642
|
-
// bazel-out/
|
|
3642
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/xml_helper.mjs
|
|
3643
3643
|
var _Visitor = class {
|
|
3644
3644
|
visitTag(tag) {
|
|
3645
3645
|
const strAttrs = this._serializeAttributes(tag.attrs);
|
|
@@ -3727,7 +3727,7 @@ function escapeXml(text) {
|
|
|
3727
3727
|
return _ESCAPED_CHARS.reduce((text2, entry) => text2.replace(entry[0], entry[1]), text);
|
|
3728
3728
|
}
|
|
3729
3729
|
|
|
3730
|
-
// bazel-out/
|
|
3730
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/xmb.mjs
|
|
3731
3731
|
var _MESSAGES_TAG = "messagebundle";
|
|
3732
3732
|
var _MESSAGE_TAG = "msg";
|
|
3733
3733
|
var _PLACEHOLDER_TAG = "ph";
|
|
@@ -3870,7 +3870,7 @@ function toPublicName(internalName) {
|
|
|
3870
3870
|
return internalName.toUpperCase().replace(/[^A-Z0-9_]/g, "_");
|
|
3871
3871
|
}
|
|
3872
3872
|
|
|
3873
|
-
// bazel-out/
|
|
3873
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/util.mjs
|
|
3874
3874
|
var CLOSURE_TRANSLATION_VAR_PREFIX = "MSG_";
|
|
3875
3875
|
var TRANSLATION_VAR_PREFIX = "i18n_";
|
|
3876
3876
|
var I18N_ATTR = "i18n";
|
|
@@ -3972,7 +3972,7 @@ function declareI18nVariable(variable2) {
|
|
|
3972
3972
|
return new DeclareVarStmt(variable2.name, void 0, INFERRED_TYPE, void 0, variable2.sourceSpan);
|
|
3973
3973
|
}
|
|
3974
3974
|
|
|
3975
|
-
// bazel-out/
|
|
3975
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/util.mjs
|
|
3976
3976
|
var UNSAFE_OBJECT_KEY_NAME_REGEXP = /[-.]/;
|
|
3977
3977
|
var TEMPORARY_NAME = "_t";
|
|
3978
3978
|
var CONTEXT_NAME = "ctx";
|
|
@@ -4178,7 +4178,7 @@ function getInstructionStatements(instructions) {
|
|
|
4178
4178
|
return statements;
|
|
4179
4179
|
}
|
|
4180
4180
|
|
|
4181
|
-
// bazel-out/
|
|
4181
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/injectable_compiler_2.mjs
|
|
4182
4182
|
function compileInjectable(meta, resolveForwardRefs) {
|
|
4183
4183
|
let result = null;
|
|
4184
4184
|
const factoryMeta = {
|
|
@@ -4267,7 +4267,7 @@ function createFactoryFunction(type) {
|
|
|
4267
4267
|
return fn([new FnParam("t", DYNAMIC_TYPE)], [new ReturnStatement(type.prop("\u0275fac").callFn([variable("t")]))]);
|
|
4268
4268
|
}
|
|
4269
4269
|
|
|
4270
|
-
// bazel-out/
|
|
4270
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/assertions.mjs
|
|
4271
4271
|
var UNUSABLE_INTERPOLATION_REGEXPS = [
|
|
4272
4272
|
/^\s*$/,
|
|
4273
4273
|
/[<>]/,
|
|
@@ -4289,7 +4289,7 @@ function assertInterpolationSymbols(identifier, value) {
|
|
|
4289
4289
|
}
|
|
4290
4290
|
}
|
|
4291
4291
|
|
|
4292
|
-
// bazel-out/
|
|
4292
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/interpolation_config.mjs
|
|
4293
4293
|
var InterpolationConfig = class {
|
|
4294
4294
|
static fromArray(markers) {
|
|
4295
4295
|
if (!markers) {
|
|
@@ -4305,7 +4305,7 @@ var InterpolationConfig = class {
|
|
|
4305
4305
|
};
|
|
4306
4306
|
var DEFAULT_INTERPOLATION_CONFIG = new InterpolationConfig("{{", "}}");
|
|
4307
4307
|
|
|
4308
|
-
// bazel-out/
|
|
4308
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/chars.mjs
|
|
4309
4309
|
var $EOF = 0;
|
|
4310
4310
|
var $BSPACE = 8;
|
|
4311
4311
|
var $TAB = 9;
|
|
@@ -4386,7 +4386,7 @@ function isQuote(code) {
|
|
|
4386
4386
|
return code === $SQ || code === $DQ || code === $BT;
|
|
4387
4387
|
}
|
|
4388
4388
|
|
|
4389
|
-
// bazel-out/
|
|
4389
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/parse_util.mjs
|
|
4390
4390
|
var ParseLocation = class {
|
|
4391
4391
|
constructor(file, offset, line, col) {
|
|
4392
4392
|
this.file = file;
|
|
@@ -4533,7 +4533,7 @@ function sanitizeIdentifier(name) {
|
|
|
4533
4533
|
return name.replace(/\W/g, "_");
|
|
4534
4534
|
}
|
|
4535
4535
|
|
|
4536
|
-
// bazel-out/
|
|
4536
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/abstract_js_emitter.mjs
|
|
4537
4537
|
var makeTemplateObjectPolyfill = '(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})';
|
|
4538
4538
|
var AbstractJsEmitterVisitor = class extends AbstractEmitterVisitor {
|
|
4539
4539
|
constructor() {
|
|
@@ -4604,7 +4604,7 @@ var AbstractJsEmitterVisitor = class extends AbstractEmitterVisitor {
|
|
|
4604
4604
|
}
|
|
4605
4605
|
};
|
|
4606
4606
|
|
|
4607
|
-
// bazel-out/
|
|
4607
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/output_jit_trusted_types.mjs
|
|
4608
4608
|
var policy;
|
|
4609
4609
|
function getPolicy() {
|
|
4610
4610
|
if (policy === void 0) {
|
|
@@ -4641,7 +4641,7 @@ function newTrustedFunctionForJIT(...args) {
|
|
|
4641
4641
|
return fn2.bind(_global);
|
|
4642
4642
|
}
|
|
4643
4643
|
|
|
4644
|
-
// bazel-out/
|
|
4644
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/output_jit.mjs
|
|
4645
4645
|
var JitEvaluator = class {
|
|
4646
4646
|
evaluateStatements(sourceUrl, statements, refResolver, createSourceMaps) {
|
|
4647
4647
|
const converter = new JitEmitterVisitor(refResolver);
|
|
@@ -4732,7 +4732,7 @@ function isUseStrictStatement(statement) {
|
|
|
4732
4732
|
return statement.isEquivalent(literal("use strict").toStmt());
|
|
4733
4733
|
}
|
|
4734
4734
|
|
|
4735
|
-
// bazel-out/
|
|
4735
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_injector_compiler.mjs
|
|
4736
4736
|
function compileInjector(meta) {
|
|
4737
4737
|
const definitionMap = new DefinitionMap();
|
|
4738
4738
|
if (meta.providers !== null) {
|
|
@@ -4749,7 +4749,7 @@ function createInjectorType(meta) {
|
|
|
4749
4749
|
return new ExpressionType(importExpr(Identifiers.InjectorDeclaration, [new ExpressionType(meta.type.type)]));
|
|
4750
4750
|
}
|
|
4751
4751
|
|
|
4752
|
-
// bazel-out/
|
|
4752
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_jit.mjs
|
|
4753
4753
|
var R3JitReflector = class {
|
|
4754
4754
|
constructor(context) {
|
|
4755
4755
|
this.context = context;
|
|
@@ -4765,7 +4765,7 @@ var R3JitReflector = class {
|
|
|
4765
4765
|
}
|
|
4766
4766
|
};
|
|
4767
4767
|
|
|
4768
|
-
// bazel-out/
|
|
4768
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_module_compiler.mjs
|
|
4769
4769
|
var R3SelectorScopeMode;
|
|
4770
4770
|
(function(R3SelectorScopeMode2) {
|
|
4771
4771
|
R3SelectorScopeMode2[R3SelectorScopeMode2["Inline"] = 0] = "Inline";
|
|
@@ -4878,7 +4878,7 @@ function tupleOfTypes(types) {
|
|
|
4878
4878
|
return types.length > 0 ? expressionType(literalArr(typeofTypes)) : NONE_TYPE;
|
|
4879
4879
|
}
|
|
4880
4880
|
|
|
4881
|
-
// bazel-out/
|
|
4881
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_pipe_compiler.mjs
|
|
4882
4882
|
function compilePipeFromMetadata(metadata) {
|
|
4883
4883
|
const definitionMapValues = [];
|
|
4884
4884
|
definitionMapValues.push({ key: "name", value: literal(metadata.pipeName), quoted: false });
|
|
@@ -4899,7 +4899,7 @@ function createPipeType(metadata) {
|
|
|
4899
4899
|
]));
|
|
4900
4900
|
}
|
|
4901
4901
|
|
|
4902
|
-
// bazel-out/
|
|
4902
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/api.mjs
|
|
4903
4903
|
var R3TemplateDependencyKind;
|
|
4904
4904
|
(function(R3TemplateDependencyKind2) {
|
|
4905
4905
|
R3TemplateDependencyKind2[R3TemplateDependencyKind2["Directive"] = 0] = "Directive";
|
|
@@ -4907,7 +4907,7 @@ var R3TemplateDependencyKind;
|
|
|
4907
4907
|
R3TemplateDependencyKind2[R3TemplateDependencyKind2["NgModule"] = 2] = "NgModule";
|
|
4908
4908
|
})(R3TemplateDependencyKind || (R3TemplateDependencyKind = {}));
|
|
4909
4909
|
|
|
4910
|
-
// bazel-out/
|
|
4910
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/expression_parser/ast.mjs
|
|
4911
4911
|
var ParserError = class {
|
|
4912
4912
|
constructor(message, input, errLocation, ctxLocation) {
|
|
4913
4913
|
this.input = input;
|
|
@@ -5573,7 +5573,7 @@ var BoundElementProperty = class {
|
|
|
5573
5573
|
}
|
|
5574
5574
|
};
|
|
5575
5575
|
|
|
5576
|
-
// bazel-out/
|
|
5576
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/compiler_util/expression_converter.mjs
|
|
5577
5577
|
var EventHandlerVars = class {
|
|
5578
5578
|
};
|
|
5579
5579
|
EventHandlerVars.event = variable("$event");
|
|
@@ -6191,7 +6191,7 @@ var BuiltinFunctionCall = class extends Call {
|
|
|
6191
6191
|
}
|
|
6192
6192
|
};
|
|
6193
6193
|
|
|
6194
|
-
// bazel-out/
|
|
6194
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/schema/dom_security_schema.mjs
|
|
6195
6195
|
var _SECURITY_SCHEMA;
|
|
6196
6196
|
function SECURITY_SCHEMA() {
|
|
6197
6197
|
if (!_SECURITY_SCHEMA) {
|
|
@@ -6249,7 +6249,7 @@ function isIframeSecuritySensitiveAttr(attrName) {
|
|
|
6249
6249
|
return IFRAME_SECURITY_SENSITIVE_ATTRS.has(attrName.toLowerCase());
|
|
6250
6250
|
}
|
|
6251
6251
|
|
|
6252
|
-
// bazel-out/
|
|
6252
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/shadow_css.mjs
|
|
6253
6253
|
var animationKeywords = /* @__PURE__ */ new Set([
|
|
6254
6254
|
"inherit",
|
|
6255
6255
|
"initial",
|
|
@@ -6709,7 +6709,7 @@ function repeatGroups(groups, multiples) {
|
|
|
6709
6709
|
}
|
|
6710
6710
|
}
|
|
6711
6711
|
|
|
6712
|
-
// bazel-out/
|
|
6712
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/style_parser.mjs
|
|
6713
6713
|
function parse(value) {
|
|
6714
6714
|
const styles = [];
|
|
6715
6715
|
let i = 0;
|
|
@@ -6785,7 +6785,7 @@ function hyphenate(value) {
|
|
|
6785
6785
|
}).toLowerCase();
|
|
6786
6786
|
}
|
|
6787
6787
|
|
|
6788
|
-
// bazel-out/
|
|
6788
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/styling_builder.mjs
|
|
6789
6789
|
var IMPORTANT_FLAG = "!important";
|
|
6790
6790
|
var MIN_STYLING_BINDING_SLOTS_REQUIRED = 2;
|
|
6791
6791
|
var StylingBuilder = class {
|
|
@@ -7118,7 +7118,7 @@ function isEmptyExpression(ast) {
|
|
|
7118
7118
|
return ast instanceof EmptyExpr;
|
|
7119
7119
|
}
|
|
7120
7120
|
|
|
7121
|
-
// bazel-out/
|
|
7121
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/expression_parser/lexer.mjs
|
|
7122
7122
|
var TokenType;
|
|
7123
7123
|
(function(TokenType2) {
|
|
7124
7124
|
TokenType2[TokenType2["Character"] = 0] = "Character";
|
|
@@ -7479,7 +7479,7 @@ function parseIntAutoRadix(text) {
|
|
|
7479
7479
|
return result;
|
|
7480
7480
|
}
|
|
7481
7481
|
|
|
7482
|
-
// bazel-out/
|
|
7482
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/expression_parser/parser.mjs
|
|
7483
7483
|
var SplitInterpolation = class {
|
|
7484
7484
|
constructor(strings, expressions, offsets) {
|
|
7485
7485
|
this.strings = strings;
|
|
@@ -8373,7 +8373,7 @@ function getIndexMapForOriginalTemplate(interpolatedTokens) {
|
|
|
8373
8373
|
return offsetMap;
|
|
8374
8374
|
}
|
|
8375
8375
|
|
|
8376
|
-
// bazel-out/
|
|
8376
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/ast.mjs
|
|
8377
8377
|
var NodeWithI18n = class {
|
|
8378
8378
|
constructor(sourceSpan, i18n) {
|
|
8379
8379
|
this.sourceSpan = sourceSpan;
|
|
@@ -8461,7 +8461,7 @@ function visitAll2(visitor, nodes, context = null) {
|
|
|
8461
8461
|
return result;
|
|
8462
8462
|
}
|
|
8463
8463
|
|
|
8464
|
-
// bazel-out/
|
|
8464
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/tags.mjs
|
|
8465
8465
|
var TagContentType;
|
|
8466
8466
|
(function(TagContentType2) {
|
|
8467
8467
|
TagContentType2[TagContentType2["RAW_TEXT"] = 0] = "RAW_TEXT";
|
|
@@ -8494,11 +8494,11 @@ function mergeNsAndName(prefix, localName) {
|
|
|
8494
8494
|
return prefix ? `:${prefix}:${localName}` : localName;
|
|
8495
8495
|
}
|
|
8496
8496
|
|
|
8497
|
-
// bazel-out/
|
|
8497
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/schema/element_schema_registry.mjs
|
|
8498
8498
|
var ElementSchemaRegistry = class {
|
|
8499
8499
|
};
|
|
8500
8500
|
|
|
8501
|
-
// bazel-out/
|
|
8501
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/schema/dom_element_schema_registry.mjs
|
|
8502
8502
|
var BOOLEAN = "boolean";
|
|
8503
8503
|
var NUMBER = "number";
|
|
8504
8504
|
var STRING = "string";
|
|
@@ -8851,7 +8851,7 @@ function _isPixelDimensionStyle(prop) {
|
|
|
8851
8851
|
}
|
|
8852
8852
|
}
|
|
8853
8853
|
|
|
8854
|
-
// bazel-out/
|
|
8854
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/html_tags.mjs
|
|
8855
8855
|
var HtmlTagDefinition = class {
|
|
8856
8856
|
constructor({ closedByChildren, implicitNamespacePrefix, contentType = TagContentType.PARSABLE_DATA, closedByParent = false, isVoid = false, ignoreFirstLf = false, preventNamespaceInheritance = false, canSelfClose = false } = {}) {
|
|
8857
8857
|
this.closedByChildren = {};
|
|
@@ -8969,7 +8969,7 @@ function getHtmlTagDefinition(tagName) {
|
|
|
8969
8969
|
return (_b = (_a = TAG_DEFINITIONS[tagName]) != null ? _a : TAG_DEFINITIONS[tagName.toLowerCase()]) != null ? _b : DEFAULT_TAG_DEFINITION;
|
|
8970
8970
|
}
|
|
8971
8971
|
|
|
8972
|
-
// bazel-out/
|
|
8972
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/entities.mjs
|
|
8973
8973
|
var NAMED_ENTITIES = {
|
|
8974
8974
|
"AElig": "\xC6",
|
|
8975
8975
|
"AMP": "&",
|
|
@@ -11100,7 +11100,7 @@ var NAMED_ENTITIES = {
|
|
|
11100
11100
|
var NGSP_UNICODE = "\uE500";
|
|
11101
11101
|
NAMED_ENTITIES["ngsp"] = NGSP_UNICODE;
|
|
11102
11102
|
|
|
11103
|
-
// bazel-out/
|
|
11103
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/lexer.mjs
|
|
11104
11104
|
var TokenError = class extends ParseError {
|
|
11105
11105
|
constructor(errorMsg, tokenType, span) {
|
|
11106
11106
|
super(span, errorMsg);
|
|
@@ -11935,7 +11935,7 @@ var CursorError = class {
|
|
|
11935
11935
|
}
|
|
11936
11936
|
};
|
|
11937
11937
|
|
|
11938
|
-
// bazel-out/
|
|
11938
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/parser.mjs
|
|
11939
11939
|
var TreeError = class extends ParseError {
|
|
11940
11940
|
static create(elementName, span, msg) {
|
|
11941
11941
|
return new TreeError(elementName, span, msg);
|
|
@@ -12262,7 +12262,7 @@ function decodeEntity(match, entity) {
|
|
|
12262
12262
|
return match;
|
|
12263
12263
|
}
|
|
12264
12264
|
|
|
12265
|
-
// bazel-out/
|
|
12265
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/html_parser.mjs
|
|
12266
12266
|
var HtmlParser = class extends Parser2 {
|
|
12267
12267
|
constructor() {
|
|
12268
12268
|
super(getHtmlTagDefinition);
|
|
@@ -12272,7 +12272,7 @@ var HtmlParser = class extends Parser2 {
|
|
|
12272
12272
|
}
|
|
12273
12273
|
};
|
|
12274
12274
|
|
|
12275
|
-
// bazel-out/
|
|
12275
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/html_whitespaces.mjs
|
|
12276
12276
|
var PRESERVE_WS_ATTR_NAME = "ngPreserveWhitespaces";
|
|
12277
12277
|
var SKIP_WS_TRIM_TAGS = /* @__PURE__ */ new Set(["pre", "template", "textarea", "script", "style"]);
|
|
12278
12278
|
var WS_CHARS = " \f\n\r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF";
|
|
@@ -12332,7 +12332,7 @@ function visitAllWithSiblings(visitor, nodes) {
|
|
|
12332
12332
|
return result;
|
|
12333
12333
|
}
|
|
12334
12334
|
|
|
12335
|
-
// bazel-out/
|
|
12335
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/map_util.mjs
|
|
12336
12336
|
function mapLiteral(obj, quoted = false) {
|
|
12337
12337
|
return literalMap(Object.keys(obj).map((key) => ({
|
|
12338
12338
|
key,
|
|
@@ -12341,7 +12341,7 @@ function mapLiteral(obj, quoted = false) {
|
|
|
12341
12341
|
})));
|
|
12342
12342
|
}
|
|
12343
12343
|
|
|
12344
|
-
// bazel-out/
|
|
12344
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/schema/trusted_types_sinks.mjs
|
|
12345
12345
|
var TRUSTED_TYPES_SINKS = /* @__PURE__ */ new Set([
|
|
12346
12346
|
"iframe|srcdoc",
|
|
12347
12347
|
"*|innerhtml",
|
|
@@ -12356,7 +12356,7 @@ function isTrustedTypesSink(tagName, propName) {
|
|
|
12356
12356
|
return TRUSTED_TYPES_SINKS.has(tagName + "|" + propName) || TRUSTED_TYPES_SINKS.has("*|" + propName);
|
|
12357
12357
|
}
|
|
12358
12358
|
|
|
12359
|
-
// bazel-out/
|
|
12359
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template_parser/binding_parser.mjs
|
|
12360
12360
|
var PROPERTY_PARTS_SEPARATOR = ".";
|
|
12361
12361
|
var ATTRIBUTE_PREFIX = "attr";
|
|
12362
12362
|
var CLASS_PREFIX = "class";
|
|
@@ -12676,7 +12676,7 @@ function moveParseSourceSpan(sourceSpan, absoluteSpan) {
|
|
|
12676
12676
|
return new ParseSourceSpan(sourceSpan.start.moveBy(startDiff), sourceSpan.end.moveBy(endDiff), sourceSpan.fullStart.moveBy(startDiff), sourceSpan.details);
|
|
12677
12677
|
}
|
|
12678
12678
|
|
|
12679
|
-
// bazel-out/
|
|
12679
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/style_url_resolver.mjs
|
|
12680
12680
|
function isStyleUrlResolvable(url) {
|
|
12681
12681
|
if (url == null || url.length === 0 || url[0] == "/")
|
|
12682
12682
|
return false;
|
|
@@ -12685,7 +12685,7 @@ function isStyleUrlResolvable(url) {
|
|
|
12685
12685
|
}
|
|
12686
12686
|
var URL_WITH_SCHEMA_REGEXP = /^([^:/?#]+):/;
|
|
12687
12687
|
|
|
12688
|
-
// bazel-out/
|
|
12688
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template_parser/template_preparser.mjs
|
|
12689
12689
|
var NG_CONTENT_SELECT_ATTR = "select";
|
|
12690
12690
|
var LINK_ELEMENT = "link";
|
|
12691
12691
|
var LINK_STYLE_REL_ATTR = "rel";
|
|
@@ -12755,7 +12755,7 @@ function normalizeNgContentSelect(selectAttr) {
|
|
|
12755
12755
|
return selectAttr;
|
|
12756
12756
|
}
|
|
12757
12757
|
|
|
12758
|
-
// bazel-out/
|
|
12758
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_template_transform.mjs
|
|
12759
12759
|
var BIND_NAME_REGEXP = /^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/;
|
|
12760
12760
|
var KW_BIND_IDX = 1;
|
|
12761
12761
|
var KW_LET_IDX = 2;
|
|
@@ -13103,7 +13103,7 @@ function textContents(node) {
|
|
|
13103
13103
|
}
|
|
13104
13104
|
}
|
|
13105
13105
|
|
|
13106
|
-
// bazel-out/
|
|
13106
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/context.mjs
|
|
13107
13107
|
var TagType;
|
|
13108
13108
|
(function(TagType2) {
|
|
13109
13109
|
TagType2[TagType2["ELEMENT"] = 0] = "ELEMENT";
|
|
@@ -13238,7 +13238,7 @@ function serializePlaceholderValue(value) {
|
|
|
13238
13238
|
}
|
|
13239
13239
|
}
|
|
13240
13240
|
|
|
13241
|
-
// bazel-out/
|
|
13241
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/icu_serializer.mjs
|
|
13242
13242
|
var IcuSerializerVisitor = class {
|
|
13243
13243
|
visitText(text) {
|
|
13244
13244
|
return text.value;
|
|
@@ -13269,7 +13269,7 @@ function serializeIcuNode(icu) {
|
|
|
13269
13269
|
return icu.visit(serializer);
|
|
13270
13270
|
}
|
|
13271
13271
|
|
|
13272
|
-
// bazel-out/
|
|
13272
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/placeholder.mjs
|
|
13273
13273
|
var TAG_TO_PLACEHOLDER_NAMES = {
|
|
13274
13274
|
"A": "LINK",
|
|
13275
13275
|
"B": "BOLD_TEXT",
|
|
@@ -13363,7 +13363,7 @@ var PlaceholderRegistry = class {
|
|
|
13363
13363
|
}
|
|
13364
13364
|
};
|
|
13365
13365
|
|
|
13366
|
-
// bazel-out/
|
|
13366
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/i18n_parser.mjs
|
|
13367
13367
|
var _expParser = new Parser(new Lexer());
|
|
13368
13368
|
function createI18nMessageFactory(interpolationConfig) {
|
|
13369
13369
|
const visitor = new _I18nVisitor(_expParser, interpolationConfig);
|
|
@@ -13518,14 +13518,14 @@ function extractPlaceholderName(input) {
|
|
|
13518
13518
|
return input.split(_CUSTOM_PH_EXP)[2];
|
|
13519
13519
|
}
|
|
13520
13520
|
|
|
13521
|
-
// bazel-out/
|
|
13521
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/parse_util.mjs
|
|
13522
13522
|
var I18nError = class extends ParseError {
|
|
13523
13523
|
constructor(span, msg) {
|
|
13524
13524
|
super(span, msg);
|
|
13525
13525
|
}
|
|
13526
13526
|
};
|
|
13527
13527
|
|
|
13528
|
-
// bazel-out/
|
|
13528
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/meta.mjs
|
|
13529
13529
|
var setI18nRefs = (htmlNode, i18nNode) => {
|
|
13530
13530
|
if (htmlNode instanceof NodeWithI18n) {
|
|
13531
13531
|
if (i18nNode instanceof IcuPlaceholder && htmlNode.i18n instanceof Message) {
|
|
@@ -13674,7 +13674,7 @@ function i18nMetaToJSDoc(meta) {
|
|
|
13674
13674
|
return jsDocComment(tags);
|
|
13675
13675
|
}
|
|
13676
13676
|
|
|
13677
|
-
// bazel-out/
|
|
13677
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/get_msg_utils.mjs
|
|
13678
13678
|
var GOOG_GET_MSG = "goog.getMsg";
|
|
13679
13679
|
function createGoogleGetMsgStatements(variable2, message, closureVar, placeholderValues) {
|
|
13680
13680
|
const messageString = serializeI18nMessageForGetMsg(message);
|
|
@@ -13722,7 +13722,7 @@ function serializeI18nMessageForGetMsg(message) {
|
|
|
13722
13722
|
return message.nodes.map((node) => node.visit(serializerVisitor2, null)).join("");
|
|
13723
13723
|
}
|
|
13724
13724
|
|
|
13725
|
-
// bazel-out/
|
|
13725
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/localize_utils.mjs
|
|
13726
13726
|
function createLocalizeStatements(variable2, message, params) {
|
|
13727
13727
|
const { messageParts, placeHolders } = serializeI18nMessageForLocalize(message);
|
|
13728
13728
|
const sourceSpan = getSourceSpan(message);
|
|
@@ -13805,7 +13805,7 @@ function createEmptyMessagePart(location) {
|
|
|
13805
13805
|
return new LiteralPiece("", new ParseSourceSpan(location, location));
|
|
13806
13806
|
}
|
|
13807
13807
|
|
|
13808
|
-
// bazel-out/
|
|
13808
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/template.mjs
|
|
13809
13809
|
var NG_CONTENT_SELECT_ATTR2 = "select";
|
|
13810
13810
|
var NG_PROJECT_AS_ATTR_NAME = "ngProjectAs";
|
|
13811
13811
|
var EVENT_BINDING_SCOPE_GLOBALS = /* @__PURE__ */ new Set(["$event"]);
|
|
@@ -15107,7 +15107,7 @@ function createClosureModeGuard() {
|
|
|
15107
15107
|
return typeofExpr(variable(NG_I18N_CLOSURE_MODE)).notIdentical(literal("undefined", STRING_TYPE)).and(variable(NG_I18N_CLOSURE_MODE));
|
|
15108
15108
|
}
|
|
15109
15109
|
|
|
15110
|
-
// bazel-out/
|
|
15110
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/compiler.mjs
|
|
15111
15111
|
var ATTR_REGEX = /attr\.([^\]]+)/;
|
|
15112
15112
|
var COMPONENT_VARIABLE = "%COMP%";
|
|
15113
15113
|
var HOST_ATTR = `_nghost-${COMPONENT_VARIABLE}`;
|
|
@@ -15626,11 +15626,11 @@ function createHostDirectivesMappingArray(mapping) {
|
|
|
15626
15626
|
return elements.length > 0 ? literalArr(elements) : null;
|
|
15627
15627
|
}
|
|
15628
15628
|
|
|
15629
|
-
// bazel-out/
|
|
15629
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/resource_loader.mjs
|
|
15630
15630
|
var ResourceLoader = class {
|
|
15631
15631
|
};
|
|
15632
15632
|
|
|
15633
|
-
// bazel-out/
|
|
15633
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/jit_compiler_facade.mjs
|
|
15634
15634
|
var CompilerFacadeImpl = class {
|
|
15635
15635
|
constructor(jitEvaluator = new JitEvaluator()) {
|
|
15636
15636
|
this.jitEvaluator = jitEvaluator;
|
|
@@ -16113,10 +16113,10 @@ function publishFacade(global2) {
|
|
|
16113
16113
|
ng.\u0275compilerFacade = new CompilerFacadeImpl();
|
|
16114
16114
|
}
|
|
16115
16115
|
|
|
16116
|
-
// bazel-out/
|
|
16117
|
-
var VERSION2 = new Version("15.2.
|
|
16116
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/version.mjs
|
|
16117
|
+
var VERSION2 = new Version("15.2.1");
|
|
16118
16118
|
|
|
16119
|
-
// bazel-out/
|
|
16119
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
|
|
16120
16120
|
var _I18N_ATTR = "i18n";
|
|
16121
16121
|
var _I18N_ATTR_PREFIX = "i18n-";
|
|
16122
16122
|
var _I18N_COMMENT_PREFIX_REGEXP = /^i18n:?/;
|
|
@@ -16420,7 +16420,7 @@ function _parseMessageMeta(i18n) {
|
|
|
16420
16420
|
return { meaning, description, id: id.trim() };
|
|
16421
16421
|
}
|
|
16422
16422
|
|
|
16423
|
-
// bazel-out/
|
|
16423
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/xml_tags.mjs
|
|
16424
16424
|
var XmlTagDefinition = class {
|
|
16425
16425
|
constructor() {
|
|
16426
16426
|
this.closedByParent = false;
|
|
@@ -16444,7 +16444,7 @@ function getXmlTagDefinition(tagName) {
|
|
|
16444
16444
|
return _TAG_DEFINITION;
|
|
16445
16445
|
}
|
|
16446
16446
|
|
|
16447
|
-
// bazel-out/
|
|
16447
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/xml_parser.mjs
|
|
16448
16448
|
var XmlParser = class extends Parser2 {
|
|
16449
16449
|
constructor() {
|
|
16450
16450
|
super(getXmlTagDefinition);
|
|
@@ -16454,7 +16454,7 @@ var XmlParser = class extends Parser2 {
|
|
|
16454
16454
|
}
|
|
16455
16455
|
};
|
|
16456
16456
|
|
|
16457
|
-
// bazel-out/
|
|
16457
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/xliff.mjs
|
|
16458
16458
|
var _VERSION = "1.2";
|
|
16459
16459
|
var _XMLNS = "urn:oasis:names:tc:xliff:document:1.2";
|
|
16460
16460
|
var _DEFAULT_SOURCE_LANG = "en";
|
|
@@ -16694,7 +16694,7 @@ function getCtypeForTag(tag) {
|
|
|
16694
16694
|
}
|
|
16695
16695
|
}
|
|
16696
16696
|
|
|
16697
|
-
// bazel-out/
|
|
16697
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/xliff2.mjs
|
|
16698
16698
|
var _VERSION2 = "2.0";
|
|
16699
16699
|
var _XMLNS2 = "urn:oasis:names:tc:xliff:document:2.0";
|
|
16700
16700
|
var _DEFAULT_SOURCE_LANG2 = "en";
|
|
@@ -16982,7 +16982,7 @@ function getTypeForTag(tag) {
|
|
|
16982
16982
|
}
|
|
16983
16983
|
}
|
|
16984
16984
|
|
|
16985
|
-
// bazel-out/
|
|
16985
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/message_bundle.mjs
|
|
16986
16986
|
var MessageBundle = class {
|
|
16987
16987
|
constructor(_htmlParser, _implicitTags, _implicitAttrs, _locale = null) {
|
|
16988
16988
|
this._htmlParser = _htmlParser;
|
|
@@ -17049,7 +17049,7 @@ var MapPlaceholderNames = class extends CloneVisitor {
|
|
|
17049
17049
|
}
|
|
17050
17050
|
};
|
|
17051
17051
|
|
|
17052
|
-
// bazel-out/
|
|
17052
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/api.mjs
|
|
17053
17053
|
var FactoryTarget2;
|
|
17054
17054
|
(function(FactoryTarget3) {
|
|
17055
17055
|
FactoryTarget3[FactoryTarget3["Directive"] = 0] = "Directive";
|
|
@@ -17059,7 +17059,7 @@ var FactoryTarget2;
|
|
|
17059
17059
|
FactoryTarget3[FactoryTarget3["NgModule"] = 4] = "NgModule";
|
|
17060
17060
|
})(FactoryTarget2 || (FactoryTarget2 = {}));
|
|
17061
17061
|
|
|
17062
|
-
// bazel-out/
|
|
17062
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/t2_binder.mjs
|
|
17063
17063
|
var R3TargetBinder = class {
|
|
17064
17064
|
constructor(directiveMatcher) {
|
|
17065
17065
|
this.directiveMatcher = directiveMatcher;
|
|
@@ -17411,7 +17411,7 @@ function extractTemplateEntities(rootScope) {
|
|
|
17411
17411
|
return templateEntities;
|
|
17412
17412
|
}
|
|
17413
17413
|
|
|
17414
|
-
// bazel-out/
|
|
17414
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_class_metadata_compiler.mjs
|
|
17415
17415
|
function compileClassMetadata(metadata) {
|
|
17416
17416
|
var _a, _b;
|
|
17417
17417
|
const fnCall = importExpr(Identifiers.setClassMetadata).callFn([
|
|
@@ -17424,12 +17424,12 @@ function compileClassMetadata(metadata) {
|
|
|
17424
17424
|
return iife.callFn([]);
|
|
17425
17425
|
}
|
|
17426
17426
|
|
|
17427
|
-
// bazel-out/
|
|
17427
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/class_metadata.mjs
|
|
17428
17428
|
var MINIMUM_PARTIAL_LINKER_VERSION = "12.0.0";
|
|
17429
17429
|
function compileDeclareClassMetadata(metadata) {
|
|
17430
17430
|
const definitionMap = new DefinitionMap();
|
|
17431
17431
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
17432
|
-
definitionMap.set("version", literal("15.2.
|
|
17432
|
+
definitionMap.set("version", literal("15.2.1"));
|
|
17433
17433
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
17434
17434
|
definitionMap.set("type", metadata.type);
|
|
17435
17435
|
definitionMap.set("decorators", metadata.decorators);
|
|
@@ -17438,7 +17438,7 @@ function compileDeclareClassMetadata(metadata) {
|
|
|
17438
17438
|
return importExpr(Identifiers.declareClassMetadata).callFn([definitionMap.toLiteralMap()]);
|
|
17439
17439
|
}
|
|
17440
17440
|
|
|
17441
|
-
// bazel-out/
|
|
17441
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/util.mjs
|
|
17442
17442
|
function toOptionalLiteralArray(values, mapper) {
|
|
17443
17443
|
if (values === null || values.length === 0) {
|
|
17444
17444
|
return null;
|
|
@@ -17486,7 +17486,7 @@ function compileDependency(dep) {
|
|
|
17486
17486
|
return depMeta.toLiteralMap();
|
|
17487
17487
|
}
|
|
17488
17488
|
|
|
17489
|
-
// bazel-out/
|
|
17489
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/directive.mjs
|
|
17490
17490
|
var MINIMUM_PARTIAL_LINKER_VERSION2 = "14.0.0";
|
|
17491
17491
|
function compileDeclareDirectiveFromMetadata(meta) {
|
|
17492
17492
|
const definitionMap = createDirectiveDefinitionMap(meta);
|
|
@@ -17498,7 +17498,7 @@ function createDirectiveDefinitionMap(meta) {
|
|
|
17498
17498
|
var _a;
|
|
17499
17499
|
const definitionMap = new DefinitionMap();
|
|
17500
17500
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION2));
|
|
17501
|
-
definitionMap.set("version", literal("15.2.
|
|
17501
|
+
definitionMap.set("version", literal("15.2.1"));
|
|
17502
17502
|
definitionMap.set("type", meta.internalType);
|
|
17503
17503
|
if (meta.isStandalone) {
|
|
17504
17504
|
definitionMap.set("isStandalone", literal(meta.isStandalone));
|
|
@@ -17588,7 +17588,7 @@ function createHostDirectives(hostDirectives) {
|
|
|
17588
17588
|
return literalArr(expressions);
|
|
17589
17589
|
}
|
|
17590
17590
|
|
|
17591
|
-
// bazel-out/
|
|
17591
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/component.mjs
|
|
17592
17592
|
function compileDeclareComponentFromMetadata(meta, template, additionalTemplateInfo) {
|
|
17593
17593
|
const definitionMap = createComponentDefinitionMap(meta, template, additionalTemplateInfo);
|
|
17594
17594
|
const expression = importExpr(Identifiers.declareComponent).callFn([definitionMap.toLiteralMap()]);
|
|
@@ -17675,12 +17675,12 @@ function compileUsedDependenciesMetadata(meta) {
|
|
|
17675
17675
|
});
|
|
17676
17676
|
}
|
|
17677
17677
|
|
|
17678
|
-
// bazel-out/
|
|
17678
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/factory.mjs
|
|
17679
17679
|
var MINIMUM_PARTIAL_LINKER_VERSION3 = "12.0.0";
|
|
17680
17680
|
function compileDeclareFactoryFunction(meta) {
|
|
17681
17681
|
const definitionMap = new DefinitionMap();
|
|
17682
17682
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION3));
|
|
17683
|
-
definitionMap.set("version", literal("15.2.
|
|
17683
|
+
definitionMap.set("version", literal("15.2.1"));
|
|
17684
17684
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
17685
17685
|
definitionMap.set("type", meta.internalType);
|
|
17686
17686
|
definitionMap.set("deps", compileDependencies(meta.deps));
|
|
@@ -17692,7 +17692,7 @@ function compileDeclareFactoryFunction(meta) {
|
|
|
17692
17692
|
};
|
|
17693
17693
|
}
|
|
17694
17694
|
|
|
17695
|
-
// bazel-out/
|
|
17695
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/injectable.mjs
|
|
17696
17696
|
var MINIMUM_PARTIAL_LINKER_VERSION4 = "12.0.0";
|
|
17697
17697
|
function compileDeclareInjectableFromMetadata(meta) {
|
|
17698
17698
|
const definitionMap = createInjectableDefinitionMap(meta);
|
|
@@ -17703,7 +17703,7 @@ function compileDeclareInjectableFromMetadata(meta) {
|
|
|
17703
17703
|
function createInjectableDefinitionMap(meta) {
|
|
17704
17704
|
const definitionMap = new DefinitionMap();
|
|
17705
17705
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION4));
|
|
17706
|
-
definitionMap.set("version", literal("15.2.
|
|
17706
|
+
definitionMap.set("version", literal("15.2.1"));
|
|
17707
17707
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
17708
17708
|
definitionMap.set("type", meta.internalType);
|
|
17709
17709
|
if (meta.providedIn !== void 0) {
|
|
@@ -17730,7 +17730,7 @@ function createInjectableDefinitionMap(meta) {
|
|
|
17730
17730
|
return definitionMap;
|
|
17731
17731
|
}
|
|
17732
17732
|
|
|
17733
|
-
// bazel-out/
|
|
17733
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/injector.mjs
|
|
17734
17734
|
var MINIMUM_PARTIAL_LINKER_VERSION5 = "12.0.0";
|
|
17735
17735
|
function compileDeclareInjectorFromMetadata(meta) {
|
|
17736
17736
|
const definitionMap = createInjectorDefinitionMap(meta);
|
|
@@ -17741,7 +17741,7 @@ function compileDeclareInjectorFromMetadata(meta) {
|
|
|
17741
17741
|
function createInjectorDefinitionMap(meta) {
|
|
17742
17742
|
const definitionMap = new DefinitionMap();
|
|
17743
17743
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION5));
|
|
17744
|
-
definitionMap.set("version", literal("15.2.
|
|
17744
|
+
definitionMap.set("version", literal("15.2.1"));
|
|
17745
17745
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
17746
17746
|
definitionMap.set("type", meta.internalType);
|
|
17747
17747
|
definitionMap.set("providers", meta.providers);
|
|
@@ -17751,7 +17751,7 @@ function createInjectorDefinitionMap(meta) {
|
|
|
17751
17751
|
return definitionMap;
|
|
17752
17752
|
}
|
|
17753
17753
|
|
|
17754
|
-
// bazel-out/
|
|
17754
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/ng_module.mjs
|
|
17755
17755
|
var MINIMUM_PARTIAL_LINKER_VERSION6 = "14.0.0";
|
|
17756
17756
|
function compileDeclareNgModuleFromMetadata(meta) {
|
|
17757
17757
|
const definitionMap = createNgModuleDefinitionMap(meta);
|
|
@@ -17762,7 +17762,7 @@ function compileDeclareNgModuleFromMetadata(meta) {
|
|
|
17762
17762
|
function createNgModuleDefinitionMap(meta) {
|
|
17763
17763
|
const definitionMap = new DefinitionMap();
|
|
17764
17764
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION6));
|
|
17765
|
-
definitionMap.set("version", literal("15.2.
|
|
17765
|
+
definitionMap.set("version", literal("15.2.1"));
|
|
17766
17766
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
17767
17767
|
definitionMap.set("type", meta.internalType);
|
|
17768
17768
|
if (meta.bootstrap.length > 0) {
|
|
@@ -17786,7 +17786,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
17786
17786
|
return definitionMap;
|
|
17787
17787
|
}
|
|
17788
17788
|
|
|
17789
|
-
// bazel-out/
|
|
17789
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/pipe.mjs
|
|
17790
17790
|
var MINIMUM_PARTIAL_LINKER_VERSION7 = "14.0.0";
|
|
17791
17791
|
function compileDeclarePipeFromMetadata(meta) {
|
|
17792
17792
|
const definitionMap = createPipeDefinitionMap(meta);
|
|
@@ -17797,7 +17797,7 @@ function compileDeclarePipeFromMetadata(meta) {
|
|
|
17797
17797
|
function createPipeDefinitionMap(meta) {
|
|
17798
17798
|
const definitionMap = new DefinitionMap();
|
|
17799
17799
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION7));
|
|
17800
|
-
definitionMap.set("version", literal("15.2.
|
|
17800
|
+
definitionMap.set("version", literal("15.2.1"));
|
|
17801
17801
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
17802
17802
|
definitionMap.set("type", meta.internalType);
|
|
17803
17803
|
if (meta.isStandalone) {
|
|
@@ -17810,13 +17810,13 @@ function createPipeDefinitionMap(meta) {
|
|
|
17810
17810
|
return definitionMap;
|
|
17811
17811
|
}
|
|
17812
17812
|
|
|
17813
|
-
// bazel-out/
|
|
17813
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/compiler.mjs
|
|
17814
17814
|
publishFacade(_global);
|
|
17815
17815
|
|
|
17816
|
-
// bazel-out/
|
|
17817
|
-
var VERSION3 = new Version("15.2.
|
|
17816
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/version.mjs
|
|
17817
|
+
var VERSION3 = new Version("15.2.1");
|
|
17818
17818
|
|
|
17819
|
-
// bazel-out/
|
|
17819
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
|
|
17820
17820
|
var EmitFlags;
|
|
17821
17821
|
(function(EmitFlags2) {
|
|
17822
17822
|
EmitFlags2[EmitFlags2["DTS"] = 1] = "DTS";
|
|
@@ -17828,13 +17828,13 @@ var EmitFlags;
|
|
|
17828
17828
|
EmitFlags2[EmitFlags2["All"] = 31] = "All";
|
|
17829
17829
|
})(EmitFlags || (EmitFlags = {}));
|
|
17830
17830
|
|
|
17831
|
-
// bazel-out/
|
|
17831
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/compiler_host.mjs
|
|
17832
17832
|
var import_typescript2 = __toESM(require("typescript"), 1);
|
|
17833
17833
|
|
|
17834
|
-
// bazel-out/
|
|
17834
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
17835
17835
|
var import_typescript97 = __toESM(require("typescript"), 1);
|
|
17836
17836
|
|
|
17837
|
-
// bazel-out/
|
|
17837
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
|
|
17838
17838
|
var path = __toESM(require("path"), 1);
|
|
17839
17839
|
function i18nGetExtension(formatName) {
|
|
17840
17840
|
const format = formatName.toLowerCase();
|
|
@@ -17884,10 +17884,10 @@ function getPathNormalizer(basePath) {
|
|
|
17884
17884
|
};
|
|
17885
17885
|
}
|
|
17886
17886
|
|
|
17887
|
-
// bazel-out/
|
|
17887
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
17888
17888
|
var import_typescript3 = __toESM(require("typescript"), 1);
|
|
17889
17889
|
|
|
17890
|
-
// bazel-out/
|
|
17890
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/version_helpers.mjs
|
|
17891
17891
|
function toNumbers(value) {
|
|
17892
17892
|
const suffixIndex = value.lastIndexOf("-");
|
|
17893
17893
|
return value.slice(0, suffixIndex === -1 ? value.length : suffixIndex).split(".").map((segment) => {
|
|
@@ -17922,7 +17922,7 @@ function compareVersions(v1, v2) {
|
|
|
17922
17922
|
return compareNumbers(toNumbers(v1), toNumbers(v2));
|
|
17923
17923
|
}
|
|
17924
17924
|
|
|
17925
|
-
// bazel-out/
|
|
17925
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
17926
17926
|
var MIN_TS_VERSION = "4.8.2";
|
|
17927
17927
|
var MAX_TS_VERSION = "5.0.0";
|
|
17928
17928
|
var tsVersion = import_typescript3.default.version;
|
|
@@ -17935,13 +17935,13 @@ function verifySupportedTypeScriptVersion() {
|
|
|
17935
17935
|
checkVersion(tsVersion, MIN_TS_VERSION, MAX_TS_VERSION);
|
|
17936
17936
|
}
|
|
17937
17937
|
|
|
17938
|
-
// bazel-out/
|
|
17938
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
17939
17939
|
var import_typescript93 = __toESM(require("typescript"), 1);
|
|
17940
17940
|
|
|
17941
|
-
// bazel-out/
|
|
17941
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
|
|
17942
17942
|
var import_typescript19 = __toESM(require("typescript"), 1);
|
|
17943
17943
|
|
|
17944
|
-
// bazel-out/
|
|
17944
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_code.mjs
|
|
17945
17945
|
var ErrorCode;
|
|
17946
17946
|
(function(ErrorCode2) {
|
|
17947
17947
|
ErrorCode2[ErrorCode2["DECORATOR_ARG_NOT_LITERAL"] = 1001] = "DECORATOR_ARG_NOT_LITERAL";
|
|
@@ -18011,7 +18011,7 @@ var ErrorCode;
|
|
|
18011
18011
|
ErrorCode2[ErrorCode2["SUGGEST_SUBOPTIMAL_TYPE_INFERENCE"] = 10002] = "SUGGEST_SUBOPTIMAL_TYPE_INFERENCE";
|
|
18012
18012
|
})(ErrorCode || (ErrorCode = {}));
|
|
18013
18013
|
|
|
18014
|
-
// bazel-out/
|
|
18014
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/docs.mjs
|
|
18015
18015
|
var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
|
|
18016
18016
|
ErrorCode.DECORATOR_ARG_NOT_LITERAL,
|
|
18017
18017
|
ErrorCode.IMPORT_CYCLE_DETECTED,
|
|
@@ -18023,15 +18023,15 @@ var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
|
|
|
18023
18023
|
ErrorCode.WARN_NGMODULE_ID_UNNECESSARY
|
|
18024
18024
|
]);
|
|
18025
18025
|
|
|
18026
|
-
// bazel-out/
|
|
18026
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
|
|
18027
18027
|
var import_typescript4 = __toESM(require("typescript"), 1);
|
|
18028
18028
|
|
|
18029
|
-
// bazel-out/
|
|
18029
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/util.mjs
|
|
18030
18030
|
function ngErrorCode(code) {
|
|
18031
18031
|
return parseInt("-99" + code);
|
|
18032
18032
|
}
|
|
18033
18033
|
|
|
18034
|
-
// bazel-out/
|
|
18034
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
|
|
18035
18035
|
var FatalDiagnosticError = class {
|
|
18036
18036
|
constructor(code, node, message, relatedInformation) {
|
|
18037
18037
|
this.code = code;
|
|
@@ -18087,10 +18087,10 @@ function addDiagnosticChain(messageText, add) {
|
|
|
18087
18087
|
return messageText;
|
|
18088
18088
|
}
|
|
18089
18089
|
|
|
18090
|
-
// bazel-out/
|
|
18090
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.mjs
|
|
18091
18091
|
var ERROR_DETAILS_PAGE_BASE_URL = "https://angular.io/errors";
|
|
18092
18092
|
|
|
18093
|
-
// bazel-out/
|
|
18093
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.mjs
|
|
18094
18094
|
var ExtendedTemplateDiagnosticName;
|
|
18095
18095
|
(function(ExtendedTemplateDiagnosticName2) {
|
|
18096
18096
|
ExtendedTemplateDiagnosticName2["INVALID_BANANA_IN_BOX"] = "invalidBananaInBox";
|
|
@@ -18102,7 +18102,7 @@ var ExtendedTemplateDiagnosticName;
|
|
|
18102
18102
|
ExtendedTemplateDiagnosticName2["SUFFIX_NOT_SUPPORTED"] = "suffixNotSupported";
|
|
18103
18103
|
})(ExtendedTemplateDiagnosticName || (ExtendedTemplateDiagnosticName = {}));
|
|
18104
18104
|
|
|
18105
|
-
// bazel-out/
|
|
18105
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/host.mjs
|
|
18106
18106
|
var import_typescript5 = __toESM(require("typescript"), 1);
|
|
18107
18107
|
var Decorator = {
|
|
18108
18108
|
nodeForError: (decorator) => {
|
|
@@ -18137,7 +18137,7 @@ function isConcreteDeclaration(decl) {
|
|
|
18137
18137
|
return decl.kind === 0;
|
|
18138
18138
|
}
|
|
18139
18139
|
|
|
18140
|
-
// bazel-out/
|
|
18140
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/type_to_value.mjs
|
|
18141
18141
|
var import_typescript6 = __toESM(require("typescript"), 1);
|
|
18142
18142
|
function typeToValue(typeNode, checker) {
|
|
18143
18143
|
if (typeNode === null) {
|
|
@@ -18303,10 +18303,10 @@ function extractModuleName(node) {
|
|
|
18303
18303
|
return node.moduleSpecifier.text;
|
|
18304
18304
|
}
|
|
18305
18305
|
|
|
18306
|
-
// bazel-out/
|
|
18306
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
|
|
18307
18307
|
var import_typescript8 = __toESM(require("typescript"), 1);
|
|
18308
18308
|
|
|
18309
|
-
// bazel-out/
|
|
18309
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/util.mjs
|
|
18310
18310
|
var import_typescript7 = __toESM(require("typescript"), 1);
|
|
18311
18311
|
function isNamedClassDeclaration(node) {
|
|
18312
18312
|
return import_typescript7.default.isClassDeclaration(node) && isIdentifier(node.name);
|
|
@@ -18315,7 +18315,7 @@ function isIdentifier(node) {
|
|
|
18315
18315
|
return node !== void 0 && import_typescript7.default.isIdentifier(node);
|
|
18316
18316
|
}
|
|
18317
18317
|
|
|
18318
|
-
// bazel-out/
|
|
18318
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
|
|
18319
18319
|
var TypeScriptReflectionHost = class {
|
|
18320
18320
|
constructor(checker) {
|
|
18321
18321
|
this.checker = checker;
|
|
@@ -18751,13 +18751,13 @@ function getExportedName(decl, originalId) {
|
|
|
18751
18751
|
}
|
|
18752
18752
|
var LocalExportedDeclarations = Symbol("LocalExportedDeclarations");
|
|
18753
18753
|
|
|
18754
|
-
// bazel-out/
|
|
18754
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
|
|
18755
18755
|
var import_typescript18 = __toESM(require("typescript"), 1);
|
|
18756
18756
|
|
|
18757
|
-
// bazel-out/
|
|
18757
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
|
|
18758
18758
|
var import_typescript12 = __toESM(require("typescript"), 1);
|
|
18759
18759
|
|
|
18760
|
-
// bazel-out/
|
|
18760
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/typescript.mjs
|
|
18761
18761
|
var import_typescript10 = __toESM(require("typescript"), 1);
|
|
18762
18762
|
var TS = /\.tsx?$/i;
|
|
18763
18763
|
var D_TS = /\.d\.ts$/i;
|
|
@@ -18858,7 +18858,7 @@ function toUnredirectedSourceFile(sf) {
|
|
|
18858
18858
|
return redirectInfo.unredirected;
|
|
18859
18859
|
}
|
|
18860
18860
|
|
|
18861
|
-
// bazel-out/
|
|
18861
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/find_export.mjs
|
|
18862
18862
|
function findExportedNameOfNode(target, file, reflector) {
|
|
18863
18863
|
const exports = reflector.getExportsOfModule(file);
|
|
18864
18864
|
if (exports === null) {
|
|
@@ -18878,7 +18878,7 @@ function findExportedNameOfNode(target, file, reflector) {
|
|
|
18878
18878
|
return foundExportName;
|
|
18879
18879
|
}
|
|
18880
18880
|
|
|
18881
|
-
// bazel-out/
|
|
18881
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
|
|
18882
18882
|
var ImportFlags;
|
|
18883
18883
|
(function(ImportFlags2) {
|
|
18884
18884
|
ImportFlags2[ImportFlags2["None"] = 0] = "None";
|
|
@@ -19094,7 +19094,7 @@ var UnifiedModulesStrategy = class {
|
|
|
19094
19094
|
}
|
|
19095
19095
|
};
|
|
19096
19096
|
|
|
19097
|
-
// bazel-out/
|
|
19097
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
|
|
19098
19098
|
var CHARS_TO_ESCAPE = /[^a-zA-Z0-9/_]/g;
|
|
19099
19099
|
var UnifiedModulesAliasingHost = class {
|
|
19100
19100
|
constructor(unifiedModulesHost) {
|
|
@@ -19161,7 +19161,7 @@ var AliasStrategy = class {
|
|
|
19161
19161
|
}
|
|
19162
19162
|
};
|
|
19163
19163
|
|
|
19164
|
-
// bazel-out/
|
|
19164
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/path.mjs
|
|
19165
19165
|
function relativePathBetween(from, to) {
|
|
19166
19166
|
const relativePath = stripExtension(relative(dirname(resolve(from)), resolve(to)));
|
|
19167
19167
|
return relativePath !== "" ? toRelativeImport(relativePath) : null;
|
|
@@ -19170,7 +19170,7 @@ function normalizeSeparators2(path3) {
|
|
|
19170
19170
|
return path3.replace(/\\/g, "/");
|
|
19171
19171
|
}
|
|
19172
19172
|
|
|
19173
|
-
// bazel-out/
|
|
19173
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/core.mjs
|
|
19174
19174
|
var NoopImportRewriter = class {
|
|
19175
19175
|
shouldImportSymbol(symbol, specifier) {
|
|
19176
19176
|
return true;
|
|
@@ -19228,8 +19228,42 @@ function validateAndRewriteCoreSymbol(name) {
|
|
|
19228
19228
|
return CORE_SUPPORTED_SYMBOLS.get(name);
|
|
19229
19229
|
}
|
|
19230
19230
|
|
|
19231
|
-
// bazel-out/
|
|
19231
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/patch_alias_reference_resolution.mjs
|
|
19232
19232
|
var import_typescript14 = __toESM(require("typescript"), 1);
|
|
19233
|
+
var patchedReferencedAliasesSymbol = Symbol("patchedReferencedAliases");
|
|
19234
|
+
function loadIsReferencedAliasDeclarationPatch(context) {
|
|
19235
|
+
if (!isTransformationContextWithEmitResolver(context)) {
|
|
19236
|
+
throwIncompatibleTransformationContextError();
|
|
19237
|
+
}
|
|
19238
|
+
const emitResolver = context.getEmitResolver();
|
|
19239
|
+
const existingReferencedAliases = emitResolver[patchedReferencedAliasesSymbol];
|
|
19240
|
+
if (existingReferencedAliases !== void 0) {
|
|
19241
|
+
return existingReferencedAliases;
|
|
19242
|
+
}
|
|
19243
|
+
const originalIsReferencedAliasDeclaration = emitResolver.isReferencedAliasDeclaration;
|
|
19244
|
+
if (originalIsReferencedAliasDeclaration === void 0) {
|
|
19245
|
+
throwIncompatibleTransformationContextError();
|
|
19246
|
+
}
|
|
19247
|
+
const referencedAliases = /* @__PURE__ */ new Set();
|
|
19248
|
+
emitResolver.isReferencedAliasDeclaration = function(node, ...args) {
|
|
19249
|
+
if (isAliasImportDeclaration(node) && referencedAliases.has(node)) {
|
|
19250
|
+
return true;
|
|
19251
|
+
}
|
|
19252
|
+
return originalIsReferencedAliasDeclaration.call(emitResolver, node, ...args);
|
|
19253
|
+
};
|
|
19254
|
+
return emitResolver[patchedReferencedAliasesSymbol] = referencedAliases;
|
|
19255
|
+
}
|
|
19256
|
+
function isAliasImportDeclaration(node) {
|
|
19257
|
+
return import_typescript14.default.isImportSpecifier(node) || import_typescript14.default.isNamespaceImport(node) || import_typescript14.default.isImportClause(node);
|
|
19258
|
+
}
|
|
19259
|
+
function isTransformationContextWithEmitResolver(context) {
|
|
19260
|
+
return context.getEmitResolver !== void 0;
|
|
19261
|
+
}
|
|
19262
|
+
function throwIncompatibleTransformationContextError() {
|
|
19263
|
+
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.");
|
|
19264
|
+
}
|
|
19265
|
+
|
|
19266
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/default.mjs
|
|
19233
19267
|
var DefaultImportDeclaration = Symbol("DefaultImportDeclaration");
|
|
19234
19268
|
function attachDefaultImportDeclaration(expr, importDecl) {
|
|
19235
19269
|
expr[DefaultImportDeclaration] = importDecl;
|
|
@@ -19243,37 +19277,34 @@ var DefaultImportTracker = class {
|
|
|
19243
19277
|
this.sourceFileToUsedImports = /* @__PURE__ */ new Map();
|
|
19244
19278
|
}
|
|
19245
19279
|
recordUsedImport(importDecl) {
|
|
19246
|
-
|
|
19247
|
-
|
|
19248
|
-
this.sourceFileToUsedImports.
|
|
19280
|
+
if (importDecl.importClause) {
|
|
19281
|
+
const sf = getSourceFile(importDecl);
|
|
19282
|
+
if (!this.sourceFileToUsedImports.has(sf.fileName)) {
|
|
19283
|
+
this.sourceFileToUsedImports.set(sf.fileName, /* @__PURE__ */ new Set());
|
|
19284
|
+
}
|
|
19285
|
+
this.sourceFileToUsedImports.get(sf.fileName).add(importDecl.importClause);
|
|
19249
19286
|
}
|
|
19250
|
-
this.sourceFileToUsedImports.get(sf).add(importDecl);
|
|
19251
19287
|
}
|
|
19252
19288
|
importPreservingTransformer() {
|
|
19253
19289
|
return (context) => {
|
|
19254
|
-
|
|
19255
|
-
|
|
19290
|
+
let clausesToPreserve = null;
|
|
19291
|
+
return (sourceFile) => {
|
|
19292
|
+
const clausesForFile = this.sourceFileToUsedImports.get(sourceFile.fileName);
|
|
19293
|
+
if (clausesForFile !== void 0) {
|
|
19294
|
+
for (const clause of clausesForFile) {
|
|
19295
|
+
if (clausesToPreserve === null) {
|
|
19296
|
+
clausesToPreserve = loadIsReferencedAliasDeclarationPatch(context);
|
|
19297
|
+
}
|
|
19298
|
+
clausesToPreserve.add(clause);
|
|
19299
|
+
}
|
|
19300
|
+
}
|
|
19301
|
+
return sourceFile;
|
|
19256
19302
|
};
|
|
19257
19303
|
};
|
|
19258
19304
|
}
|
|
19259
|
-
transformSourceFile(sf) {
|
|
19260
|
-
const originalSf = import_typescript14.default.getOriginalNode(sf);
|
|
19261
|
-
if (!this.sourceFileToUsedImports.has(originalSf)) {
|
|
19262
|
-
return sf;
|
|
19263
|
-
}
|
|
19264
|
-
const importsToPreserve = this.sourceFileToUsedImports.get(originalSf);
|
|
19265
|
-
const statements = sf.statements.map((stmt) => {
|
|
19266
|
-
if (import_typescript14.default.isImportDeclaration(stmt) && importsToPreserve.has(stmt)) {
|
|
19267
|
-
stmt = import_typescript14.default.getMutableClone(stmt);
|
|
19268
|
-
}
|
|
19269
|
-
return stmt;
|
|
19270
|
-
});
|
|
19271
|
-
this.sourceFileToUsedImports.delete(originalSf);
|
|
19272
|
-
return import_typescript14.default.factory.updateSourceFile(sf, statements);
|
|
19273
|
-
}
|
|
19274
19305
|
};
|
|
19275
19306
|
|
|
19276
|
-
// bazel-out/
|
|
19307
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/references.mjs
|
|
19277
19308
|
var Reference2 = class {
|
|
19278
19309
|
constructor(node, bestGuessOwningModule = null) {
|
|
19279
19310
|
this.node = node;
|
|
@@ -19336,7 +19367,7 @@ var Reference2 = class {
|
|
|
19336
19367
|
}
|
|
19337
19368
|
};
|
|
19338
19369
|
|
|
19339
|
-
// bazel-out/
|
|
19370
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/resolver.mjs
|
|
19340
19371
|
var ModuleResolver = class {
|
|
19341
19372
|
constructor(program, compilerOptions, host, moduleResolutionCache) {
|
|
19342
19373
|
this.program = program;
|
|
@@ -19353,7 +19384,7 @@ var ModuleResolver = class {
|
|
|
19353
19384
|
}
|
|
19354
19385
|
};
|
|
19355
19386
|
|
|
19356
|
-
// bazel-out/
|
|
19387
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
|
|
19357
19388
|
function valueReferenceToExpression(valueRef) {
|
|
19358
19389
|
if (valueRef.kind === 2) {
|
|
19359
19390
|
return null;
|
|
@@ -19590,7 +19621,7 @@ function isAbstractClassDeclaration(clazz) {
|
|
|
19590
19621
|
return clazz.modifiers !== void 0 && clazz.modifiers.some((mod) => mod.kind === import_typescript18.default.SyntaxKind.AbstractKeyword);
|
|
19591
19622
|
}
|
|
19592
19623
|
|
|
19593
|
-
// bazel-out/
|
|
19624
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
|
|
19594
19625
|
function getConstructorDependencies(clazz, reflector, isCore) {
|
|
19595
19626
|
const deps = [];
|
|
19596
19627
|
const errors = [];
|
|
@@ -19732,10 +19763,10 @@ function createUnsuitableInjectionTokenError(clazz, error2) {
|
|
|
19732
19763
|
return new FatalDiagnosticError(ErrorCode.PARAM_MISSING_TOKEN, param.nameNode, chain, hints);
|
|
19733
19764
|
}
|
|
19734
19765
|
|
|
19735
|
-
// bazel-out/
|
|
19766
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
|
|
19736
19767
|
var import_typescript27 = __toESM(require("typescript"), 1);
|
|
19737
19768
|
|
|
19738
|
-
// bazel-out/
|
|
19769
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/api.mjs
|
|
19739
19770
|
var MetaKind;
|
|
19740
19771
|
(function(MetaKind2) {
|
|
19741
19772
|
MetaKind2[MetaKind2["Directive"] = 0] = "Directive";
|
|
@@ -19748,10 +19779,10 @@ var MatchSource;
|
|
|
19748
19779
|
MatchSource2[MatchSource2["HostDirective"] = 1] = "HostDirective";
|
|
19749
19780
|
})(MatchSource || (MatchSource = {}));
|
|
19750
19781
|
|
|
19751
|
-
// bazel-out/
|
|
19782
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
19752
19783
|
var import_typescript22 = __toESM(require("typescript"), 1);
|
|
19753
19784
|
|
|
19754
|
-
// bazel-out/
|
|
19785
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/property_mapping.mjs
|
|
19755
19786
|
var ClassPropertyMapping = class {
|
|
19756
19787
|
constructor(forwardMap) {
|
|
19757
19788
|
this.forwardMap = forwardMap;
|
|
@@ -19827,7 +19858,7 @@ function reverseMapFromForwardMap(forwardMap) {
|
|
|
19827
19858
|
return reverseMap;
|
|
19828
19859
|
}
|
|
19829
19860
|
|
|
19830
|
-
// bazel-out/
|
|
19861
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/util.mjs
|
|
19831
19862
|
var import_typescript20 = __toESM(require("typescript"), 1);
|
|
19832
19863
|
function extractReferencesFromType(checker, def, bestGuessOwningModule) {
|
|
19833
19864
|
if (!import_typescript20.default.isTupleTypeNode(def)) {
|
|
@@ -20009,7 +20040,7 @@ function hasInjectableFields(clazz, host) {
|
|
|
20009
20040
|
return members.some(({ isStatic, name }) => isStatic && (name === "\u0275prov" || name === "\u0275fac"));
|
|
20010
20041
|
}
|
|
20011
20042
|
|
|
20012
|
-
// bazel-out/
|
|
20043
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
20013
20044
|
var DtsMetadataReader = class {
|
|
20014
20045
|
constructor(checker, reflector) {
|
|
20015
20046
|
this.checker = checker;
|
|
@@ -20148,7 +20179,7 @@ function readHostDirectivesType(checker, type, bestGuessOwningModule) {
|
|
|
20148
20179
|
return result.length > 0 ? result : null;
|
|
20149
20180
|
}
|
|
20150
20181
|
|
|
20151
|
-
// bazel-out/
|
|
20182
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/inheritance.mjs
|
|
20152
20183
|
function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
20153
20184
|
const topMeta = reader.getDirectiveMetadata(dir);
|
|
20154
20185
|
if (topMeta === null) {
|
|
@@ -20205,7 +20236,7 @@ function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
|
20205
20236
|
});
|
|
20206
20237
|
}
|
|
20207
20238
|
|
|
20208
|
-
// bazel-out/
|
|
20239
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/registry.mjs
|
|
20209
20240
|
var LocalMetadataRegistry = class {
|
|
20210
20241
|
constructor() {
|
|
20211
20242
|
this.directives = /* @__PURE__ */ new Map();
|
|
@@ -20262,7 +20293,7 @@ var CompoundMetadataRegistry = class {
|
|
|
20262
20293
|
}
|
|
20263
20294
|
};
|
|
20264
20295
|
|
|
20265
|
-
// bazel-out/
|
|
20296
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/resource_registry.mjs
|
|
20266
20297
|
var ResourceRegistry = class {
|
|
20267
20298
|
constructor() {
|
|
20268
20299
|
this.externalTemplateToComponentsMap = /* @__PURE__ */ new Map();
|
|
@@ -20327,7 +20358,7 @@ var ResourceRegistry = class {
|
|
|
20327
20358
|
}
|
|
20328
20359
|
};
|
|
20329
20360
|
|
|
20330
|
-
// bazel-out/
|
|
20361
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/host_directives_resolver.mjs
|
|
20331
20362
|
var EMPTY_ARRAY = [];
|
|
20332
20363
|
var HostDirectivesResolver = class {
|
|
20333
20364
|
constructor(metaReader) {
|
|
@@ -20377,10 +20408,10 @@ var HostDirectivesResolver = class {
|
|
|
20377
20408
|
}
|
|
20378
20409
|
};
|
|
20379
20410
|
|
|
20380
|
-
// bazel-out/
|
|
20411
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
|
|
20381
20412
|
var import_typescript24 = __toESM(require("typescript"), 1);
|
|
20382
20413
|
|
|
20383
|
-
// bazel-out/
|
|
20414
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/dynamic.mjs
|
|
20384
20415
|
var DynamicValue = class {
|
|
20385
20416
|
constructor(node, reason, code) {
|
|
20386
20417
|
this.node = node;
|
|
@@ -20470,7 +20501,7 @@ var DynamicValue = class {
|
|
|
20470
20501
|
}
|
|
20471
20502
|
};
|
|
20472
20503
|
|
|
20473
|
-
// bazel-out/
|
|
20504
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/result.mjs
|
|
20474
20505
|
var ResolvedModule = class {
|
|
20475
20506
|
constructor(exports, evaluate) {
|
|
20476
20507
|
this.exports = exports;
|
|
@@ -20500,7 +20531,7 @@ var EnumValue = class {
|
|
|
20500
20531
|
var KnownFn = class {
|
|
20501
20532
|
};
|
|
20502
20533
|
|
|
20503
|
-
// bazel-out/
|
|
20534
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
|
|
20504
20535
|
function describeResolvedType(value, maxDepth = 1) {
|
|
20505
20536
|
var _a, _b;
|
|
20506
20537
|
if (value === null) {
|
|
@@ -20629,10 +20660,10 @@ function getContainerNode(node) {
|
|
|
20629
20660
|
return node.getSourceFile();
|
|
20630
20661
|
}
|
|
20631
20662
|
|
|
20632
|
-
// bazel-out/
|
|
20663
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
20633
20664
|
var import_typescript25 = __toESM(require("typescript"), 1);
|
|
20634
20665
|
|
|
20635
|
-
// bazel-out/
|
|
20666
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/builtin.mjs
|
|
20636
20667
|
var ArraySliceBuiltinFn = class extends KnownFn {
|
|
20637
20668
|
constructor(lhs) {
|
|
20638
20669
|
super();
|
|
@@ -20703,7 +20734,7 @@ var ObjectAssignBuiltinFn = class extends KnownFn {
|
|
|
20703
20734
|
}
|
|
20704
20735
|
};
|
|
20705
20736
|
|
|
20706
|
-
// bazel-out/
|
|
20737
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/ts_helpers.mjs
|
|
20707
20738
|
var AssignHelperFn = class extends ObjectAssignBuiltinFn {
|
|
20708
20739
|
};
|
|
20709
20740
|
var SpreadHelperFn = class extends KnownFn {
|
|
@@ -20756,7 +20787,7 @@ var ReadHelperFn = class extends KnownFn {
|
|
|
20756
20787
|
}
|
|
20757
20788
|
};
|
|
20758
20789
|
|
|
20759
|
-
// bazel-out/
|
|
20790
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/known_declaration.mjs
|
|
20760
20791
|
var jsGlobalObjectValue = /* @__PURE__ */ new Map([["assign", new ObjectAssignBuiltinFn()]]);
|
|
20761
20792
|
var assignTsHelperFn = new AssignHelperFn();
|
|
20762
20793
|
var spreadTsHelperFn = new SpreadHelperFn();
|
|
@@ -20780,14 +20811,14 @@ function resolveKnownDeclaration(decl) {
|
|
|
20780
20811
|
}
|
|
20781
20812
|
}
|
|
20782
20813
|
|
|
20783
|
-
// bazel-out/
|
|
20814
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/synthetic.mjs
|
|
20784
20815
|
var SyntheticValue = class {
|
|
20785
20816
|
constructor(value) {
|
|
20786
20817
|
this.value = value;
|
|
20787
20818
|
}
|
|
20788
20819
|
};
|
|
20789
20820
|
|
|
20790
|
-
// bazel-out/
|
|
20821
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
20791
20822
|
function literalBinaryOp(op) {
|
|
20792
20823
|
return { op, literal: true };
|
|
20793
20824
|
}
|
|
@@ -21385,7 +21416,7 @@ function owningModule(context, override = null) {
|
|
|
21385
21416
|
}
|
|
21386
21417
|
}
|
|
21387
21418
|
|
|
21388
|
-
// bazel-out/
|
|
21419
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interface.mjs
|
|
21389
21420
|
var PartialEvaluator = class {
|
|
21390
21421
|
constructor(host, checker, dependencyTracker) {
|
|
21391
21422
|
this.host = host;
|
|
@@ -21405,7 +21436,7 @@ var PartialEvaluator = class {
|
|
|
21405
21436
|
}
|
|
21406
21437
|
};
|
|
21407
21438
|
|
|
21408
|
-
// bazel-out/
|
|
21439
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
|
|
21409
21440
|
function makeDuplicateDeclarationError(node, data, kind) {
|
|
21410
21441
|
const context = [];
|
|
21411
21442
|
for (const decl of data) {
|
|
@@ -21580,7 +21611,7 @@ function getInheritedUndecoratedCtorDiagnostic(node, baseClass, kind) {
|
|
|
21580
21611
|
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}.`);
|
|
21581
21612
|
}
|
|
21582
21613
|
|
|
21583
|
-
// bazel-out/
|
|
21614
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/evaluation.mjs
|
|
21584
21615
|
var import_typescript29 = __toESM(require("typescript"), 1);
|
|
21585
21616
|
function resolveEnumValue(evaluator, metadata, field, enumSymbolName) {
|
|
21586
21617
|
let resolved = null;
|
|
@@ -21613,7 +21644,7 @@ function resolveLiteral(decorator, literalCache) {
|
|
|
21613
21644
|
return meta;
|
|
21614
21645
|
}
|
|
21615
21646
|
|
|
21616
|
-
// bazel-out/
|
|
21647
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/factory.mjs
|
|
21617
21648
|
function compileNgFactoryDefField(metadata) {
|
|
21618
21649
|
const res = compileFactoryFunction(metadata);
|
|
21619
21650
|
return { name: "\u0275fac", initializer: res.expression, statements: res.statements, type: res.type };
|
|
@@ -21623,7 +21654,7 @@ function compileDeclareFactory(metadata) {
|
|
|
21623
21654
|
return { name: "\u0275fac", initializer: res.expression, statements: res.statements, type: res.type };
|
|
21624
21655
|
}
|
|
21625
21656
|
|
|
21626
|
-
// bazel-out/
|
|
21657
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/injectable_registry.mjs
|
|
21627
21658
|
var InjectableClassRegistry = class {
|
|
21628
21659
|
constructor(host, isCore) {
|
|
21629
21660
|
this.host = host;
|
|
@@ -21649,7 +21680,7 @@ var InjectableClassRegistry = class {
|
|
|
21649
21680
|
}
|
|
21650
21681
|
};
|
|
21651
21682
|
|
|
21652
|
-
// bazel-out/
|
|
21683
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/metadata.mjs
|
|
21653
21684
|
var import_typescript30 = __toESM(require("typescript"), 1);
|
|
21654
21685
|
function extractClassMetadata(clazz, reflection, isCore, annotateForClosureCompiler, angularDecoratorTransform = (dec) => dec) {
|
|
21655
21686
|
if (!reflection.isClass(clazz)) {
|
|
@@ -21735,13 +21766,13 @@ function removeIdentifierReferences(node, name) {
|
|
|
21735
21766
|
return result.transformed[0];
|
|
21736
21767
|
}
|
|
21737
21768
|
|
|
21738
|
-
// bazel-out/
|
|
21769
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/references_registry.mjs
|
|
21739
21770
|
var NoopReferencesRegistry = class {
|
|
21740
21771
|
add(source, ...references) {
|
|
21741
21772
|
}
|
|
21742
21773
|
};
|
|
21743
21774
|
|
|
21744
|
-
// bazel-out/
|
|
21775
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/schema.mjs
|
|
21745
21776
|
function extractSchemas(rawExpr, evaluator, context) {
|
|
21746
21777
|
const schemas = [];
|
|
21747
21778
|
const result = evaluator.evaluate(rawExpr);
|
|
@@ -21770,10 +21801,10 @@ function extractSchemas(rawExpr, evaluator, context) {
|
|
|
21770
21801
|
return schemas;
|
|
21771
21802
|
}
|
|
21772
21803
|
|
|
21773
|
-
// bazel-out/
|
|
21804
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
21774
21805
|
var import_typescript52 = __toESM(require("typescript"), 1);
|
|
21775
21806
|
|
|
21776
|
-
// bazel-out/
|
|
21807
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.mjs
|
|
21777
21808
|
var import_typescript31 = __toESM(require("typescript"), 1);
|
|
21778
21809
|
var SemanticSymbol = class {
|
|
21779
21810
|
constructor(decl) {
|
|
@@ -21789,7 +21820,7 @@ function getSymbolIdentifier(decl) {
|
|
|
21789
21820
|
return decl.name.text;
|
|
21790
21821
|
}
|
|
21791
21822
|
|
|
21792
|
-
// bazel-out/
|
|
21823
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.mjs
|
|
21793
21824
|
var OpaqueSymbol = class extends SemanticSymbol {
|
|
21794
21825
|
isPublicApiAffected() {
|
|
21795
21826
|
return false;
|
|
@@ -21931,10 +21962,10 @@ function getImportPath(expr) {
|
|
|
21931
21962
|
}
|
|
21932
21963
|
}
|
|
21933
21964
|
|
|
21934
|
-
// bazel-out/
|
|
21965
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
21935
21966
|
var import_typescript32 = __toESM(require("typescript"), 1);
|
|
21936
21967
|
|
|
21937
|
-
// bazel-out/
|
|
21968
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/util.mjs
|
|
21938
21969
|
function isSymbolEqual(a, b) {
|
|
21939
21970
|
if (a.decl === b.decl) {
|
|
21940
21971
|
return true;
|
|
@@ -21984,7 +22015,7 @@ function isSetEqual(a, b, equalityTester = referenceEquality) {
|
|
|
21984
22015
|
return true;
|
|
21985
22016
|
}
|
|
21986
22017
|
|
|
21987
|
-
// bazel-out/
|
|
22018
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
21988
22019
|
function extractSemanticTypeParameters(node) {
|
|
21989
22020
|
if (!import_typescript32.default.isClassDeclaration(node) || node.typeParameters === void 0) {
|
|
21990
22021
|
return null;
|
|
@@ -22004,7 +22035,7 @@ function isTypeParameterEqual(a, b) {
|
|
|
22004
22035
|
return a.hasGenericTypeBound === b.hasGenericTypeBound;
|
|
22005
22036
|
}
|
|
22006
22037
|
|
|
22007
|
-
// bazel-out/
|
|
22038
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/api.mjs
|
|
22008
22039
|
var PerfPhase;
|
|
22009
22040
|
(function(PerfPhase2) {
|
|
22010
22041
|
PerfPhase2[PerfPhase2["Unaccounted"] = 0] = "Unaccounted";
|
|
@@ -22071,7 +22102,7 @@ var PerfCheckpoint;
|
|
|
22071
22102
|
PerfCheckpoint2[PerfCheckpoint2["LAST"] = 9] = "LAST";
|
|
22072
22103
|
})(PerfCheckpoint || (PerfCheckpoint = {}));
|
|
22073
22104
|
|
|
22074
|
-
// bazel-out/
|
|
22105
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/noop.mjs
|
|
22075
22106
|
var NoopPerfRecorder = class {
|
|
22076
22107
|
eventCount() {
|
|
22077
22108
|
}
|
|
@@ -22088,7 +22119,7 @@ var NoopPerfRecorder = class {
|
|
|
22088
22119
|
};
|
|
22089
22120
|
var NOOP_PERF_RECORDER = new NoopPerfRecorder();
|
|
22090
22121
|
|
|
22091
|
-
// bazel-out/
|
|
22122
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/clock.mjs
|
|
22092
22123
|
function mark() {
|
|
22093
22124
|
return process.hrtime();
|
|
22094
22125
|
}
|
|
@@ -22097,7 +22128,7 @@ function timeSinceInMicros(mark2) {
|
|
|
22097
22128
|
return delta[0] * 1e6 + Math.floor(delta[1] / 1e3);
|
|
22098
22129
|
}
|
|
22099
22130
|
|
|
22100
|
-
// bazel-out/
|
|
22131
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/recorder.mjs
|
|
22101
22132
|
var ActivePerfRecorder = class {
|
|
22102
22133
|
static zeroedToNow() {
|
|
22103
22134
|
return new ActivePerfRecorder(mark());
|
|
@@ -22191,14 +22222,14 @@ var DelegatingPerfRecorder = class {
|
|
|
22191
22222
|
}
|
|
22192
22223
|
};
|
|
22193
22224
|
|
|
22194
|
-
// bazel-out/
|
|
22225
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/api.mjs
|
|
22195
22226
|
var ComponentScopeKind;
|
|
22196
22227
|
(function(ComponentScopeKind2) {
|
|
22197
22228
|
ComponentScopeKind2[ComponentScopeKind2["NgModule"] = 0] = "NgModule";
|
|
22198
22229
|
ComponentScopeKind2[ComponentScopeKind2["Standalone"] = 1] = "Standalone";
|
|
22199
22230
|
})(ComponentScopeKind || (ComponentScopeKind = {}));
|
|
22200
22231
|
|
|
22201
|
-
// bazel-out/
|
|
22232
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/component_scope.mjs
|
|
22202
22233
|
var CompoundComponentScopeReader = class {
|
|
22203
22234
|
constructor(readers) {
|
|
22204
22235
|
this.readers = readers;
|
|
@@ -22223,7 +22254,7 @@ var CompoundComponentScopeReader = class {
|
|
|
22223
22254
|
}
|
|
22224
22255
|
};
|
|
22225
22256
|
|
|
22226
|
-
// bazel-out/
|
|
22257
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/dependency.mjs
|
|
22227
22258
|
var MetadataDtsModuleScopeResolver = class {
|
|
22228
22259
|
constructor(dtsMetaReader, aliasingHost) {
|
|
22229
22260
|
this.dtsMetaReader = dtsMetaReader;
|
|
@@ -22298,10 +22329,10 @@ var MetadataDtsModuleScopeResolver = class {
|
|
|
22298
22329
|
}
|
|
22299
22330
|
};
|
|
22300
22331
|
|
|
22301
|
-
// bazel-out/
|
|
22332
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
|
|
22302
22333
|
var import_typescript33 = __toESM(require("typescript"), 1);
|
|
22303
22334
|
|
|
22304
|
-
// bazel-out/
|
|
22335
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/util.mjs
|
|
22305
22336
|
function getDiagnosticNode(ref, rawExpr) {
|
|
22306
22337
|
return rawExpr !== null ? ref.getOriginForDiagnostics(rawExpr) : ref.node.name;
|
|
22307
22338
|
}
|
|
@@ -22324,7 +22355,7 @@ function makeUnknownComponentImportDiagnostic(ref, rawExpr) {
|
|
|
22324
22355
|
return makeDiagnostic(ErrorCode.COMPONENT_UNKNOWN_IMPORT, getDiagnosticNode(ref, rawExpr), `Component imports must be standalone components, directives, pipes, or must be NgModules.`);
|
|
22325
22356
|
}
|
|
22326
22357
|
|
|
22327
|
-
// bazel-out/
|
|
22358
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
|
|
22328
22359
|
var LocalModuleScopeRegistry = class {
|
|
22329
22360
|
constructor(localReader, fullReader, dependencyScopeReader, refEmitter, aliasingHost) {
|
|
22330
22361
|
this.localReader = localReader;
|
|
@@ -22663,7 +22694,7 @@ function reexportCollision(module3, refA, refB) {
|
|
|
22663
22694
|
]);
|
|
22664
22695
|
}
|
|
22665
22696
|
|
|
22666
|
-
// bazel-out/
|
|
22697
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/typecheck.mjs
|
|
22667
22698
|
var import_typescript35 = __toESM(require("typescript"), 1);
|
|
22668
22699
|
var TypeCheckScopeRegistry = class {
|
|
22669
22700
|
constructor(scopeReader, metaReader, hostDirectivesResolver) {
|
|
@@ -22731,7 +22762,7 @@ var TypeCheckScopeRegistry = class {
|
|
|
22731
22762
|
}
|
|
22732
22763
|
};
|
|
22733
22764
|
|
|
22734
|
-
// bazel-out/
|
|
22765
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/api.mjs
|
|
22735
22766
|
var CompilationMode;
|
|
22736
22767
|
(function(CompilationMode2) {
|
|
22737
22768
|
CompilationMode2[CompilationMode2["FULL"] = 0] = "FULL";
|
|
@@ -22749,7 +22780,7 @@ var HandlerFlags;
|
|
|
22749
22780
|
HandlerFlags2[HandlerFlags2["FULL_INHERITANCE"] = 1] = "FULL_INHERITANCE";
|
|
22750
22781
|
})(HandlerFlags || (HandlerFlags = {}));
|
|
22751
22782
|
|
|
22752
|
-
// bazel-out/
|
|
22783
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/alias.mjs
|
|
22753
22784
|
var import_typescript36 = __toESM(require("typescript"), 1);
|
|
22754
22785
|
function aliasTransformFactory(exportStatements) {
|
|
22755
22786
|
return () => {
|
|
@@ -22772,10 +22803,10 @@ function aliasTransformFactory(exportStatements) {
|
|
|
22772
22803
|
};
|
|
22773
22804
|
}
|
|
22774
22805
|
|
|
22775
|
-
// bazel-out/
|
|
22806
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
22776
22807
|
var import_typescript37 = __toESM(require("typescript"), 1);
|
|
22777
22808
|
|
|
22778
|
-
// bazel-out/
|
|
22809
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/trait.mjs
|
|
22779
22810
|
var TraitState;
|
|
22780
22811
|
(function(TraitState2) {
|
|
22781
22812
|
TraitState2[TraitState2["Pending"] = 0] = "Pending";
|
|
@@ -22830,7 +22861,7 @@ var TraitImpl = class {
|
|
|
22830
22861
|
}
|
|
22831
22862
|
};
|
|
22832
22863
|
|
|
22833
|
-
// bazel-out/
|
|
22864
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
22834
22865
|
var TraitCompiler = class {
|
|
22835
22866
|
constructor(handlers, reflector, perf, incrementalBuild, compileNonExportedClasses, compilationMode, dtsTransforms, semanticDepGraphUpdater, sourceFileTypeIdentifier) {
|
|
22836
22867
|
this.handlers = handlers;
|
|
@@ -23274,10 +23305,10 @@ function containsErrors(diagnostics) {
|
|
|
23274
23305
|
return diagnostics !== null && diagnostics.some((diag) => diag.category === import_typescript37.default.DiagnosticCategory.Error);
|
|
23275
23306
|
}
|
|
23276
23307
|
|
|
23277
|
-
// bazel-out/
|
|
23308
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
|
|
23278
23309
|
var import_typescript44 = __toESM(require("typescript"), 1);
|
|
23279
23310
|
|
|
23280
|
-
// bazel-out/
|
|
23311
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/context.mjs
|
|
23281
23312
|
var Context = class {
|
|
23282
23313
|
constructor(isStatement) {
|
|
23283
23314
|
this.isStatement = isStatement;
|
|
@@ -23290,7 +23321,7 @@ var Context = class {
|
|
|
23290
23321
|
}
|
|
23291
23322
|
};
|
|
23292
23323
|
|
|
23293
|
-
// bazel-out/
|
|
23324
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager.mjs
|
|
23294
23325
|
var import_typescript39 = __toESM(require("typescript"), 1);
|
|
23295
23326
|
var ImportManager = class {
|
|
23296
23327
|
constructor(rewriter = new NoopImportRewriter(), prefix = "i") {
|
|
@@ -23326,7 +23357,7 @@ var ImportManager = class {
|
|
|
23326
23357
|
}
|
|
23327
23358
|
};
|
|
23328
23359
|
|
|
23329
|
-
// bazel-out/
|
|
23360
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/translator.mjs
|
|
23330
23361
|
var UNARY_OPERATORS2 = /* @__PURE__ */ new Map([
|
|
23331
23362
|
[UnaryOperator.Minus, "-"],
|
|
23332
23363
|
[UnaryOperator.Plus, "+"]
|
|
@@ -23557,10 +23588,10 @@ function createRange(span) {
|
|
|
23557
23588
|
};
|
|
23558
23589
|
}
|
|
23559
23590
|
|
|
23560
|
-
// bazel-out/
|
|
23591
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
|
|
23561
23592
|
var import_typescript41 = __toESM(require("typescript"), 1);
|
|
23562
23593
|
|
|
23563
|
-
// bazel-out/
|
|
23594
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/ts_compatibility/src/ts_cross_version_utils.mjs
|
|
23564
23595
|
var import_typescript40 = __toESM(require("typescript"), 1);
|
|
23565
23596
|
var IS_AFTER_TS_49 = isAfterVersion(4, 9);
|
|
23566
23597
|
var createParameterDeclaration = IS_AFTER_TS_49 ? import_typescript40.default.factory.createParameterDeclaration : (modifiers, dotDotDotToken, name, questionToken, type, initializer) => import_typescript40.default.factory.createParameterDeclaration(...splitModifiers(modifiers), dotDotDotToken, name, questionToken, type, initializer);
|
|
@@ -23590,7 +23621,7 @@ function isAfterVersion(targetMajor, targetMinor) {
|
|
|
23590
23621
|
return major === targetMajor ? minor >= targetMinor : true;
|
|
23591
23622
|
}
|
|
23592
23623
|
|
|
23593
|
-
// bazel-out/
|
|
23624
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
|
|
23594
23625
|
function translateType(type, imports) {
|
|
23595
23626
|
return type.visitType(new TypeTranslatorVisitor(imports), new Context(false));
|
|
23596
23627
|
}
|
|
@@ -23764,7 +23795,7 @@ var TypeTranslatorVisitor = class {
|
|
|
23764
23795
|
}
|
|
23765
23796
|
};
|
|
23766
23797
|
|
|
23767
|
-
// bazel-out/
|
|
23798
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_ast_factory.mjs
|
|
23768
23799
|
var import_typescript42 = __toESM(require("typescript"), 1);
|
|
23769
23800
|
var PureAnnotation;
|
|
23770
23801
|
(function(PureAnnotation2) {
|
|
@@ -23947,7 +23978,7 @@ function attachComments(statement, leadingComments) {
|
|
|
23947
23978
|
}
|
|
23948
23979
|
}
|
|
23949
23980
|
|
|
23950
|
-
// bazel-out/
|
|
23981
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_translator.mjs
|
|
23951
23982
|
function translateExpression(expression, imports, options = {}) {
|
|
23952
23983
|
return expression.visitExpression(new ExpressionTranslatorVisitor(new TypeScriptAstFactory(options.annotateForClosureCompiler === true), imports, options), new Context(false));
|
|
23953
23984
|
}
|
|
@@ -23955,7 +23986,7 @@ function translateStatement(statement, imports, options = {}) {
|
|
|
23955
23986
|
return statement.visitStatement(new ExpressionTranslatorVisitor(new TypeScriptAstFactory(options.annotateForClosureCompiler === true), imports, options), new Context(true));
|
|
23956
23987
|
}
|
|
23957
23988
|
|
|
23958
|
-
// bazel-out/
|
|
23989
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/utils.mjs
|
|
23959
23990
|
var import_typescript43 = __toESM(require("typescript"), 1);
|
|
23960
23991
|
function addImports(importManager, sf, extraStatements = []) {
|
|
23961
23992
|
const addedImports = importManager.getAllImports(sf.fileName).map((i) => {
|
|
@@ -23991,7 +24022,7 @@ function isImportStatement(stmt) {
|
|
|
23991
24022
|
return import_typescript43.default.isImportDeclaration(stmt) || import_typescript43.default.isImportEqualsDeclaration(stmt) || import_typescript43.default.isNamespaceImport(stmt);
|
|
23992
24023
|
}
|
|
23993
24024
|
|
|
23994
|
-
// bazel-out/
|
|
24025
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
|
|
23995
24026
|
var DtsTransformRegistry = class {
|
|
23996
24027
|
constructor() {
|
|
23997
24028
|
this.ivyDeclarationTransforms = /* @__PURE__ */ new Map();
|
|
@@ -24136,10 +24167,10 @@ function markForEmitAsSingleLine(node) {
|
|
|
24136
24167
|
import_typescript44.default.forEachChild(node, markForEmitAsSingleLine);
|
|
24137
24168
|
}
|
|
24138
24169
|
|
|
24139
|
-
// bazel-out/
|
|
24170
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
24140
24171
|
var import_typescript46 = __toESM(require("typescript"), 1);
|
|
24141
24172
|
|
|
24142
|
-
// bazel-out/
|
|
24173
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/visitor.mjs
|
|
24143
24174
|
var import_typescript45 = __toESM(require("typescript"), 1);
|
|
24144
24175
|
function visit(node, visitor, context) {
|
|
24145
24176
|
return visitor._visit(node, context);
|
|
@@ -24200,7 +24231,7 @@ var Visitor = class {
|
|
|
24200
24231
|
}
|
|
24201
24232
|
};
|
|
24202
24233
|
|
|
24203
|
-
// bazel-out/
|
|
24234
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
24204
24235
|
var NO_DECORATORS = /* @__PURE__ */ new Set();
|
|
24205
24236
|
var CLOSURE_FILE_OVERVIEW_REGEXP = /\s+@fileoverview\s+/i;
|
|
24206
24237
|
function ivyTransformFactory(compilation, reflector, importRewriter, defaultImportTracker, perf, isCore, isClosureCompilerEnabled) {
|
|
@@ -24408,7 +24439,7 @@ function nodeArrayFromDecoratorsArray(decorators) {
|
|
|
24408
24439
|
return array;
|
|
24409
24440
|
}
|
|
24410
24441
|
|
|
24411
|
-
// bazel-out/
|
|
24442
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
|
|
24412
24443
|
var import_typescript47 = __toESM(require("typescript"), 1);
|
|
24413
24444
|
var EMPTY_OBJECT = {};
|
|
24414
24445
|
var QUERY_TYPES = /* @__PURE__ */ new Set([
|
|
@@ -24824,7 +24855,7 @@ function toHostDirectiveMetadata(hostDirective, context, refEmitter) {
|
|
|
24824
24855
|
};
|
|
24825
24856
|
}
|
|
24826
24857
|
|
|
24827
|
-
// bazel-out/
|
|
24858
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/symbol.mjs
|
|
24828
24859
|
var DirectiveSymbol = class extends SemanticSymbol {
|
|
24829
24860
|
constructor(decl, selector, inputs, outputs, exportAs, typeCheckMeta, typeParameters) {
|
|
24830
24861
|
super(decl);
|
|
@@ -24901,7 +24932,7 @@ function isBaseClassEqual(current, previous) {
|
|
|
24901
24932
|
return isSymbolEqual(current, previous);
|
|
24902
24933
|
}
|
|
24903
24934
|
|
|
24904
|
-
// bazel-out/
|
|
24935
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
|
|
24905
24936
|
var FIELD_DECORATORS = [
|
|
24906
24937
|
"Input",
|
|
24907
24938
|
"Output",
|
|
@@ -25060,10 +25091,10 @@ var DirectiveDecoratorHandler = class {
|
|
|
25060
25091
|
}
|
|
25061
25092
|
};
|
|
25062
25093
|
|
|
25063
|
-
// bazel-out/
|
|
25094
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
25064
25095
|
var import_typescript49 = __toESM(require("typescript"), 1);
|
|
25065
25096
|
|
|
25066
|
-
// bazel-out/
|
|
25097
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/module_with_providers.mjs
|
|
25067
25098
|
var import_typescript48 = __toESM(require("typescript"), 1);
|
|
25068
25099
|
function createModuleWithProvidersResolver(reflector, isCore) {
|
|
25069
25100
|
function _reflectModuleFromTypeParam(type, node) {
|
|
@@ -25130,7 +25161,7 @@ function isResolvedModuleWithProviders(sv) {
|
|
|
25130
25161
|
return typeof sv.value === "object" && sv.value != null && sv.value.hasOwnProperty("ngModule") && sv.value.hasOwnProperty("mwpCall");
|
|
25131
25162
|
}
|
|
25132
25163
|
|
|
25133
|
-
// bazel-out/
|
|
25164
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
25134
25165
|
var NgModuleSymbol = class extends SemanticSymbol {
|
|
25135
25166
|
constructor() {
|
|
25136
25167
|
super(...arguments);
|
|
@@ -25632,7 +25663,7 @@ function isSyntheticReference(ref) {
|
|
|
25632
25663
|
return ref.synthetic;
|
|
25633
25664
|
}
|
|
25634
25665
|
|
|
25635
|
-
// bazel-out/
|
|
25666
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/diagnostics.mjs
|
|
25636
25667
|
function makeCyclicImportInfo(ref, type, cycle) {
|
|
25637
25668
|
const name = ref.debugName || "(unknown)";
|
|
25638
25669
|
const path3 = cycle.getPath().map((sf) => sf.fileName).join(" -> ");
|
|
@@ -25655,7 +25686,7 @@ function checkCustomElementSelectorForErrors(selector) {
|
|
|
25655
25686
|
return null;
|
|
25656
25687
|
}
|
|
25657
25688
|
|
|
25658
|
-
// bazel-out/
|
|
25689
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/resources.mjs
|
|
25659
25690
|
var import_typescript51 = __toESM(require("typescript"), 1);
|
|
25660
25691
|
function getTemplateDeclarationNodeForError(declaration) {
|
|
25661
25692
|
switch (declaration.isInline) {
|
|
@@ -25755,7 +25786,7 @@ function parseExtractedTemplate(template, sourceStr, sourceParseRange, escapedSt
|
|
|
25755
25786
|
file: new ParseSourceFile(sourceStr, sourceMapUrl != null ? sourceMapUrl : "")
|
|
25756
25787
|
});
|
|
25757
25788
|
}
|
|
25758
|
-
function parseTemplateDeclaration(decorator, component, containingFile, evaluator, resourceLoader, defaultPreserveWhitespaces) {
|
|
25789
|
+
function parseTemplateDeclaration(node, decorator, component, containingFile, evaluator, depTracker, resourceLoader, defaultPreserveWhitespaces) {
|
|
25759
25790
|
let preserveWhitespaces = defaultPreserveWhitespaces;
|
|
25760
25791
|
if (component.has("preserveWhitespaces")) {
|
|
25761
25792
|
const expr = component.get("preserveWhitespaces");
|
|
@@ -25791,6 +25822,9 @@ function parseTemplateDeclaration(decorator, component, containingFile, evaluato
|
|
|
25791
25822
|
resolvedTemplateUrl: resourceUrl
|
|
25792
25823
|
};
|
|
25793
25824
|
} catch (e) {
|
|
25825
|
+
if (depTracker !== null) {
|
|
25826
|
+
depTracker.recordDependencyAnalysisFailure(node.getSourceFile());
|
|
25827
|
+
}
|
|
25794
25828
|
throw makeResourceNotFoundError(templateUrl, templateUrlExpr, 0);
|
|
25795
25829
|
}
|
|
25796
25830
|
} else if (component.has("template")) {
|
|
@@ -25818,7 +25852,7 @@ function preloadAndParseTemplate(evaluator, resourceLoader, depTracker, preanaly
|
|
|
25818
25852
|
const templatePromise = resourceLoader.preload(resourceUrl, { type: "template", containingFile });
|
|
25819
25853
|
if (templatePromise !== void 0) {
|
|
25820
25854
|
return templatePromise.then(() => {
|
|
25821
|
-
const templateDecl = parseTemplateDeclaration(decorator, component, containingFile, evaluator, resourceLoader, defaultPreserveWhitespaces);
|
|
25855
|
+
const templateDecl = parseTemplateDeclaration(node, decorator, component, containingFile, evaluator, depTracker, resourceLoader, defaultPreserveWhitespaces);
|
|
25822
25856
|
const template = extractTemplate(node, templateDecl, evaluator, depTracker, resourceLoader, options);
|
|
25823
25857
|
preanalyzeTemplateCache.set(node, template);
|
|
25824
25858
|
return template;
|
|
@@ -25827,10 +25861,13 @@ function preloadAndParseTemplate(evaluator, resourceLoader, depTracker, preanaly
|
|
|
25827
25861
|
return Promise.resolve(null);
|
|
25828
25862
|
}
|
|
25829
25863
|
} catch (e) {
|
|
25864
|
+
if (depTracker !== null) {
|
|
25865
|
+
depTracker.recordDependencyAnalysisFailure(node.getSourceFile());
|
|
25866
|
+
}
|
|
25830
25867
|
throw makeResourceNotFoundError(templateUrl, templateUrlExpr, 0);
|
|
25831
25868
|
}
|
|
25832
25869
|
} else {
|
|
25833
|
-
const templateDecl = parseTemplateDeclaration(decorator, component, containingFile, evaluator, resourceLoader, defaultPreserveWhitespaces);
|
|
25870
|
+
const templateDecl = parseTemplateDeclaration(node, decorator, component, containingFile, evaluator, depTracker, resourceLoader, defaultPreserveWhitespaces);
|
|
25834
25871
|
const template = extractTemplate(node, templateDecl, evaluator, depTracker, resourceLoader, options);
|
|
25835
25872
|
preanalyzeTemplateCache.set(node, template);
|
|
25836
25873
|
return Promise.resolve(template);
|
|
@@ -25964,7 +26001,7 @@ function _extractTemplateStyleUrls(template) {
|
|
|
25964
26001
|
return template.styleUrls.map((url) => ({ url, source: 1, nodeForError }));
|
|
25965
26002
|
}
|
|
25966
26003
|
|
|
25967
|
-
// bazel-out/
|
|
26004
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/symbol.mjs
|
|
25968
26005
|
var ComponentSymbol = class extends DirectiveSymbol {
|
|
25969
26006
|
constructor() {
|
|
25970
26007
|
super(...arguments);
|
|
@@ -25999,7 +26036,7 @@ var ComponentSymbol = class extends DirectiveSymbol {
|
|
|
25999
26036
|
}
|
|
26000
26037
|
};
|
|
26001
26038
|
|
|
26002
|
-
// bazel-out/
|
|
26039
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/util.mjs
|
|
26003
26040
|
function collectAnimationNames(value, animationTriggerNames) {
|
|
26004
26041
|
if (value instanceof Map) {
|
|
26005
26042
|
const name = value.get("name");
|
|
@@ -26075,7 +26112,7 @@ function isLikelyModuleWithProviders(value) {
|
|
|
26075
26112
|
return false;
|
|
26076
26113
|
}
|
|
26077
26114
|
|
|
26078
|
-
// bazel-out/
|
|
26115
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
26079
26116
|
var EMPTY_ARRAY2 = [];
|
|
26080
26117
|
var ComponentDecoratorHandler = class {
|
|
26081
26118
|
constructor(reflector, evaluator, metaRegistry, metaReader, scopeReader, dtsScopeReader, scopeRegistry, typeCheckScopeRegistry, resourceRegistry, isCore, strictCtorDeps, resourceLoader, rootDirs, defaultPreserveWhitespaces, i18nUseExternalIds, enableI18nLegacyMessageIdFormat, usePoisonedData, i18nNormalizeLineEndingsInICUs, moduleResolver, cycleAnalyzer, cycleHandlingStrategy, refEmitter, depTracker, injectableRegistry, semanticDepGraphUpdater, annotateForClosureCompiler, perf, hostDirectivesResolver) {
|
|
@@ -26260,7 +26297,7 @@ var ComponentDecoratorHandler = class {
|
|
|
26260
26297
|
this.preanalyzeTemplateCache.delete(node);
|
|
26261
26298
|
template = preanalyzed;
|
|
26262
26299
|
} else {
|
|
26263
|
-
const templateDecl = parseTemplateDeclaration(decorator, component, containingFile, this.evaluator, this.resourceLoader, this.defaultPreserveWhitespaces);
|
|
26300
|
+
const templateDecl = parseTemplateDeclaration(node, decorator, component, containingFile, this.evaluator, this.depTracker, this.resourceLoader, this.defaultPreserveWhitespaces);
|
|
26264
26301
|
template = extractTemplate(node, templateDecl, this.evaluator, this.depTracker, this.resourceLoader, {
|
|
26265
26302
|
enableI18nLegacyMessageIdFormat: this.enableI18nLegacyMessageIdFormat,
|
|
26266
26303
|
i18nNormalizeLineEndingsInICUs: this.i18nNormalizeLineEndingsInICUs,
|
|
@@ -26286,6 +26323,9 @@ var ComponentDecoratorHandler = class {
|
|
|
26286
26323
|
this.depTracker.addResourceDependency(node.getSourceFile(), absoluteFrom(resourceUrl));
|
|
26287
26324
|
}
|
|
26288
26325
|
} catch (e) {
|
|
26326
|
+
if (this.depTracker !== null) {
|
|
26327
|
+
this.depTracker.recordDependencyAnalysisFailure(node.getSourceFile());
|
|
26328
|
+
}
|
|
26289
26329
|
if (diagnostics === void 0) {
|
|
26290
26330
|
diagnostics = [];
|
|
26291
26331
|
}
|
|
@@ -26718,7 +26758,7 @@ function validateStandaloneImports(importRefs, importExpr2, metaReader, scopeRea
|
|
|
26718
26758
|
return diagnostics;
|
|
26719
26759
|
}
|
|
26720
26760
|
|
|
26721
|
-
// bazel-out/
|
|
26761
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
|
|
26722
26762
|
var import_typescript54 = __toESM(require("typescript"), 1);
|
|
26723
26763
|
var InjectableDecoratorHandler = class {
|
|
26724
26764
|
constructor(reflector, evaluator, isCore, strictCtorDeps, injectableRegistry, perf, errorOnDuplicateProv = true) {
|
|
@@ -26934,7 +26974,7 @@ function getDep(dep, reflector) {
|
|
|
26934
26974
|
return meta;
|
|
26935
26975
|
}
|
|
26936
26976
|
|
|
26937
|
-
// bazel-out/
|
|
26977
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
|
|
26938
26978
|
var import_typescript55 = __toESM(require("typescript"), 1);
|
|
26939
26979
|
var PipeSymbol = class extends SemanticSymbol {
|
|
26940
26980
|
constructor(decl, name) {
|
|
@@ -27079,7 +27119,7 @@ var PipeDecoratorHandler = class {
|
|
|
27079
27119
|
}
|
|
27080
27120
|
};
|
|
27081
27121
|
|
|
27082
|
-
// bazel-out/
|
|
27122
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
|
|
27083
27123
|
var CycleAnalyzer = class {
|
|
27084
27124
|
constructor(importGraph) {
|
|
27085
27125
|
this.importGraph = importGraph;
|
|
@@ -27150,7 +27190,7 @@ var Cycle = class {
|
|
|
27150
27190
|
}
|
|
27151
27191
|
};
|
|
27152
27192
|
|
|
27153
|
-
// bazel-out/
|
|
27193
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/imports.mjs
|
|
27154
27194
|
var import_typescript56 = __toESM(require("typescript"), 1);
|
|
27155
27195
|
var ImportGraph = class {
|
|
27156
27196
|
constructor(checker, perf) {
|
|
@@ -27242,7 +27282,7 @@ var Found = class {
|
|
|
27242
27282
|
}
|
|
27243
27283
|
};
|
|
27244
27284
|
|
|
27245
|
-
// bazel-out/
|
|
27285
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
|
|
27246
27286
|
var import_typescript57 = __toESM(require("typescript"), 1);
|
|
27247
27287
|
var FlatIndexGenerator = class {
|
|
27248
27288
|
constructor(entryPoint, relativeFlatIndexPath, moduleName) {
|
|
@@ -27267,7 +27307,7 @@ export * from '${relativeEntryPoint}';
|
|
|
27267
27307
|
}
|
|
27268
27308
|
};
|
|
27269
27309
|
|
|
27270
|
-
// bazel-out/
|
|
27310
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/logic.mjs
|
|
27271
27311
|
function findFlatIndexEntryPoint(rootFiles) {
|
|
27272
27312
|
const tsFiles = rootFiles.filter((file) => isNonDeclarationTsPath(file));
|
|
27273
27313
|
let resolvedEntryPoint = null;
|
|
@@ -27283,7 +27323,7 @@ function findFlatIndexEntryPoint(rootFiles) {
|
|
|
27283
27323
|
return resolvedEntryPoint;
|
|
27284
27324
|
}
|
|
27285
27325
|
|
|
27286
|
-
// bazel-out/
|
|
27326
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
|
|
27287
27327
|
var import_typescript59 = __toESM(require("typescript"), 1);
|
|
27288
27328
|
function checkForPrivateExports(entryPoint, checker, refGraph) {
|
|
27289
27329
|
const diagnostics = [];
|
|
@@ -27363,7 +27403,7 @@ function getDescriptorOfDeclaration(decl) {
|
|
|
27363
27403
|
}
|
|
27364
27404
|
}
|
|
27365
27405
|
|
|
27366
|
-
// bazel-out/
|
|
27406
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/reference_graph.mjs
|
|
27367
27407
|
var ReferenceGraph = class {
|
|
27368
27408
|
constructor() {
|
|
27369
27409
|
this.references = /* @__PURE__ */ new Map();
|
|
@@ -27417,7 +27457,7 @@ var ReferenceGraph = class {
|
|
|
27417
27457
|
}
|
|
27418
27458
|
};
|
|
27419
27459
|
|
|
27420
|
-
// bazel-out/
|
|
27460
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/api.mjs
|
|
27421
27461
|
var NgOriginalFile = Symbol("NgOriginalFile");
|
|
27422
27462
|
var UpdateMode;
|
|
27423
27463
|
(function(UpdateMode2) {
|
|
@@ -27425,13 +27465,13 @@ var UpdateMode;
|
|
|
27425
27465
|
UpdateMode2[UpdateMode2["Incremental"] = 1] = "Incremental";
|
|
27426
27466
|
})(UpdateMode || (UpdateMode = {}));
|
|
27427
27467
|
|
|
27428
|
-
// bazel-out/
|
|
27468
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
|
|
27429
27469
|
var import_typescript65 = __toESM(require("typescript"), 1);
|
|
27430
27470
|
|
|
27431
|
-
// bazel-out/
|
|
27471
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
27432
27472
|
var import_typescript60 = __toESM(require("typescript"), 1);
|
|
27433
27473
|
|
|
27434
|
-
// bazel-out/
|
|
27474
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/expando.mjs
|
|
27435
27475
|
var NgExtension = Symbol("NgExtension");
|
|
27436
27476
|
function isExtended(sf) {
|
|
27437
27477
|
return sf[NgExtension] !== void 0;
|
|
@@ -27491,7 +27531,7 @@ function retagTsFile(sf) {
|
|
|
27491
27531
|
}
|
|
27492
27532
|
}
|
|
27493
27533
|
|
|
27494
|
-
// bazel-out/
|
|
27534
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/util.mjs
|
|
27495
27535
|
var TS_EXTENSIONS = /\.tsx?$/i;
|
|
27496
27536
|
function makeShimFileName(fileName, suffix) {
|
|
27497
27537
|
return absoluteFrom(fileName.replace(TS_EXTENSIONS, suffix));
|
|
@@ -27506,7 +27546,7 @@ function generatedModuleName(originalModuleName, originalFileName, genSuffix) {
|
|
|
27506
27546
|
return moduleName;
|
|
27507
27547
|
}
|
|
27508
27548
|
|
|
27509
|
-
// bazel-out/
|
|
27549
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
27510
27550
|
var ShimAdapter = class {
|
|
27511
27551
|
constructor(delegate, tsRootFiles, topLevelGenerators, perFileGenerators, oldProgram) {
|
|
27512
27552
|
this.delegate = delegate;
|
|
@@ -27601,7 +27641,7 @@ var ShimAdapter = class {
|
|
|
27601
27641
|
}
|
|
27602
27642
|
};
|
|
27603
27643
|
|
|
27604
|
-
// bazel-out/
|
|
27644
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/factory_generator.mjs
|
|
27605
27645
|
var import_typescript62 = __toESM(require("typescript"), 1);
|
|
27606
27646
|
var TS_DTS_SUFFIX = /(\.d)?\.ts$/;
|
|
27607
27647
|
var STRIP_NG_FACTORY = /(.*)NgFactory$/;
|
|
@@ -27761,7 +27801,7 @@ function updateInitializers(stmt, update) {
|
|
|
27761
27801
|
return import_typescript62.default.factory.updateVariableStatement(stmt, import_typescript62.default.getModifiers(stmt), import_typescript62.default.factory.updateVariableDeclarationList(stmt.declarationList, stmt.declarationList.declarations.map((decl) => import_typescript62.default.factory.updateVariableDeclaration(decl, decl.name, decl.exclamationToken, decl.type, update(decl.initializer)))));
|
|
27762
27802
|
}
|
|
27763
27803
|
|
|
27764
|
-
// bazel-out/
|
|
27804
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
|
|
27765
27805
|
var ShimReferenceTagger = class {
|
|
27766
27806
|
constructor(shimExtensions) {
|
|
27767
27807
|
this.tagged = /* @__PURE__ */ new Set();
|
|
@@ -27795,7 +27835,7 @@ var ShimReferenceTagger = class {
|
|
|
27795
27835
|
}
|
|
27796
27836
|
};
|
|
27797
27837
|
|
|
27798
|
-
// bazel-out/
|
|
27838
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/summary_generator.mjs
|
|
27799
27839
|
var import_typescript64 = __toESM(require("typescript"), 1);
|
|
27800
27840
|
var SummaryGenerator = class {
|
|
27801
27841
|
constructor() {
|
|
@@ -27836,7 +27876,7 @@ function isExported2(decl) {
|
|
|
27836
27876
|
return modifiers !== void 0 && modifiers.some((mod) => mod.kind == import_typescript64.default.SyntaxKind.ExportKeyword) || false;
|
|
27837
27877
|
}
|
|
27838
27878
|
|
|
27839
|
-
// bazel-out/
|
|
27879
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
|
|
27840
27880
|
var DelegatingCompilerHost = class {
|
|
27841
27881
|
constructor(delegate) {
|
|
27842
27882
|
this.delegate = delegate;
|
|
@@ -27947,7 +27987,7 @@ var TsCreateProgramDriver = class {
|
|
|
27947
27987
|
}
|
|
27948
27988
|
};
|
|
27949
27989
|
|
|
27950
|
-
// bazel-out/
|
|
27990
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.mjs
|
|
27951
27991
|
var FileDependencyGraph = class {
|
|
27952
27992
|
constructor() {
|
|
27953
27993
|
this.nodes = /* @__PURE__ */ new Map();
|
|
@@ -28014,7 +28054,7 @@ function isLogicallyChanged(sf, node, changedTsPaths, deletedTsPaths, changedRes
|
|
|
28014
28054
|
return false;
|
|
28015
28055
|
}
|
|
28016
28056
|
|
|
28017
|
-
// bazel-out/
|
|
28057
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
|
|
28018
28058
|
var IncrementalStateKind;
|
|
28019
28059
|
(function(IncrementalStateKind2) {
|
|
28020
28060
|
IncrementalStateKind2[IncrementalStateKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -28022,7 +28062,7 @@ var IncrementalStateKind;
|
|
|
28022
28062
|
IncrementalStateKind2[IncrementalStateKind2["Analyzed"] = 2] = "Analyzed";
|
|
28023
28063
|
})(IncrementalStateKind || (IncrementalStateKind = {}));
|
|
28024
28064
|
|
|
28025
|
-
// bazel-out/
|
|
28065
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
|
|
28026
28066
|
var PhaseKind;
|
|
28027
28067
|
(function(PhaseKind2) {
|
|
28028
28068
|
PhaseKind2[PhaseKind2["Analysis"] = 0] = "Analysis";
|
|
@@ -28223,7 +28263,7 @@ function toOriginalSourceFile(sf) {
|
|
|
28223
28263
|
}
|
|
28224
28264
|
}
|
|
28225
28265
|
|
|
28226
|
-
// bazel-out/
|
|
28266
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
|
|
28227
28267
|
var TrackedIncrementalBuildStrategy = class {
|
|
28228
28268
|
constructor() {
|
|
28229
28269
|
this.state = null;
|
|
@@ -28244,7 +28284,7 @@ var TrackedIncrementalBuildStrategy = class {
|
|
|
28244
28284
|
};
|
|
28245
28285
|
var SYM_INCREMENTAL_STATE = Symbol("NgIncrementalState");
|
|
28246
28286
|
|
|
28247
|
-
// bazel-out/
|
|
28287
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
|
|
28248
28288
|
var IdentifierKind;
|
|
28249
28289
|
(function(IdentifierKind2) {
|
|
28250
28290
|
IdentifierKind2[IdentifierKind2["Property"] = 0] = "Property";
|
|
@@ -28262,7 +28302,7 @@ var AbsoluteSourceSpan2 = class {
|
|
|
28262
28302
|
}
|
|
28263
28303
|
};
|
|
28264
28304
|
|
|
28265
|
-
// bazel-out/
|
|
28305
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/context.mjs
|
|
28266
28306
|
var IndexingContext = class {
|
|
28267
28307
|
constructor() {
|
|
28268
28308
|
this.components = /* @__PURE__ */ new Set();
|
|
@@ -28272,7 +28312,7 @@ var IndexingContext = class {
|
|
|
28272
28312
|
}
|
|
28273
28313
|
};
|
|
28274
28314
|
|
|
28275
|
-
// bazel-out/
|
|
28315
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
|
|
28276
28316
|
var ExpressionVisitor = class extends RecursiveAstVisitor {
|
|
28277
28317
|
constructor(expressionStr, absoluteOffset, boundTemplate, targetToIdentifier) {
|
|
28278
28318
|
super();
|
|
@@ -28508,7 +28548,7 @@ function getTemplateIdentifiers(boundTemplate) {
|
|
|
28508
28548
|
return { identifiers: visitor.identifiers, errors: visitor.errors };
|
|
28509
28549
|
}
|
|
28510
28550
|
|
|
28511
|
-
// bazel-out/
|
|
28551
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
|
|
28512
28552
|
function generateAnalysis(context) {
|
|
28513
28553
|
const analysis = /* @__PURE__ */ new Map();
|
|
28514
28554
|
context.components.forEach(({ declaration, selector, boundTemplate, templateMeta }) => {
|
|
@@ -28544,7 +28584,7 @@ function generateAnalysis(context) {
|
|
|
28544
28584
|
return analysis;
|
|
28545
28585
|
}
|
|
28546
28586
|
|
|
28547
|
-
// bazel-out/
|
|
28587
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/ng_module_index.mjs
|
|
28548
28588
|
var NgModuleIndexImpl = class {
|
|
28549
28589
|
constructor(metaReader, localReader) {
|
|
28550
28590
|
this.metaReader = metaReader;
|
|
@@ -28633,7 +28673,7 @@ var NgModuleIndexImpl = class {
|
|
|
28633
28673
|
}
|
|
28634
28674
|
};
|
|
28635
28675
|
|
|
28636
|
-
// bazel-out/
|
|
28676
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
|
|
28637
28677
|
var import_typescript68 = __toESM(require("typescript"), 1);
|
|
28638
28678
|
var CSS_PREPROCESSOR_EXT = /(\.scss|\.sass|\.less|\.styl)$/;
|
|
28639
28679
|
var RESOURCE_MARKER = ".$ngresource$";
|
|
@@ -28781,7 +28821,7 @@ function createLookupResolutionHost(adapter) {
|
|
|
28781
28821
|
};
|
|
28782
28822
|
}
|
|
28783
28823
|
|
|
28784
|
-
// bazel-out/
|
|
28824
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/standalone.mjs
|
|
28785
28825
|
var StandaloneComponentScopeReader = class {
|
|
28786
28826
|
constructor(metaReader, localModuleReader, dtsModuleReader) {
|
|
28787
28827
|
this.metaReader = metaReader;
|
|
@@ -28859,21 +28899,21 @@ var StandaloneComponentScopeReader = class {
|
|
|
28859
28899
|
}
|
|
28860
28900
|
};
|
|
28861
28901
|
|
|
28862
|
-
// bazel-out/
|
|
28902
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/checker.mjs
|
|
28863
28903
|
var OptimizeFor;
|
|
28864
28904
|
(function(OptimizeFor2) {
|
|
28865
28905
|
OptimizeFor2[OptimizeFor2["SingleFile"] = 0] = "SingleFile";
|
|
28866
28906
|
OptimizeFor2[OptimizeFor2["WholeProgram"] = 1] = "WholeProgram";
|
|
28867
28907
|
})(OptimizeFor || (OptimizeFor = {}));
|
|
28868
28908
|
|
|
28869
|
-
// bazel-out/
|
|
28909
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/completion.mjs
|
|
28870
28910
|
var CompletionKind;
|
|
28871
28911
|
(function(CompletionKind2) {
|
|
28872
28912
|
CompletionKind2[CompletionKind2["Reference"] = 0] = "Reference";
|
|
28873
28913
|
CompletionKind2[CompletionKind2["Variable"] = 1] = "Variable";
|
|
28874
28914
|
})(CompletionKind || (CompletionKind = {}));
|
|
28875
28915
|
|
|
28876
|
-
// bazel-out/
|
|
28916
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/scope.mjs
|
|
28877
28917
|
var PotentialImportKind;
|
|
28878
28918
|
(function(PotentialImportKind2) {
|
|
28879
28919
|
PotentialImportKind2[PotentialImportKind2["NgModule"] = 0] = "NgModule";
|
|
@@ -28885,7 +28925,7 @@ var PotentialImportMode;
|
|
|
28885
28925
|
PotentialImportMode2[PotentialImportMode2["ForceDirect"] = 1] = "ForceDirect";
|
|
28886
28926
|
})(PotentialImportMode || (PotentialImportMode = {}));
|
|
28887
28927
|
|
|
28888
|
-
// bazel-out/
|
|
28928
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.mjs
|
|
28889
28929
|
var SymbolKind;
|
|
28890
28930
|
(function(SymbolKind2) {
|
|
28891
28931
|
SymbolKind2[SymbolKind2["Input"] = 0] = "Input";
|
|
@@ -28901,7 +28941,7 @@ var SymbolKind;
|
|
|
28901
28941
|
SymbolKind2[SymbolKind2["Pipe"] = 10] = "Pipe";
|
|
28902
28942
|
})(SymbolKind || (SymbolKind = {}));
|
|
28903
28943
|
|
|
28904
|
-
// bazel-out/
|
|
28944
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
|
|
28905
28945
|
var import_typescript69 = __toESM(require("typescript"), 1);
|
|
28906
28946
|
function makeTemplateDiagnostic(templateId, mapping, span, category, code, messageText, relatedMessages) {
|
|
28907
28947
|
var _a;
|
|
@@ -29008,7 +29048,7 @@ function parseTemplateAsSourceFile(fileName, template) {
|
|
|
29008
29048
|
return import_typescript69.default.createSourceFile(fileName, template, import_typescript69.default.ScriptTarget.Latest, false, import_typescript69.default.ScriptKind.JSX);
|
|
29009
29049
|
}
|
|
29010
29050
|
|
|
29011
|
-
// bazel-out/
|
|
29051
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
|
|
29012
29052
|
var TEMPLATE_ID = Symbol("ngTemplateId");
|
|
29013
29053
|
var NEXT_TEMPLATE_ID = Symbol("ngNextTemplateId");
|
|
29014
29054
|
function getTemplateId(clazz) {
|
|
@@ -29025,10 +29065,10 @@ function allocateTemplateId(sf) {
|
|
|
29025
29065
|
return `tcb${sf[NEXT_TEMPLATE_ID]++}`;
|
|
29026
29066
|
}
|
|
29027
29067
|
|
|
29028
|
-
// bazel-out/
|
|
29068
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
29029
29069
|
var import_typescript71 = __toESM(require("typescript"), 1);
|
|
29030
29070
|
|
|
29031
|
-
// bazel-out/
|
|
29071
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
|
|
29032
29072
|
var import_typescript70 = __toESM(require("typescript"), 1);
|
|
29033
29073
|
var parseSpanComment = /^(\d+),(\d+)$/;
|
|
29034
29074
|
function readSpanComment(node, sourceFile = node.getSourceFile()) {
|
|
@@ -29157,7 +29197,7 @@ function hasExpressionIdentifier(sourceFile, node, identifier) {
|
|
|
29157
29197
|
}) || false;
|
|
29158
29198
|
}
|
|
29159
29199
|
|
|
29160
|
-
// bazel-out/
|
|
29200
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
29161
29201
|
var CompletionEngine = class {
|
|
29162
29202
|
constructor(tcb, data, tcbPath, tcbIsShim) {
|
|
29163
29203
|
this.tcb = tcb;
|
|
@@ -29314,10 +29354,10 @@ var CompletionEngine = class {
|
|
|
29314
29354
|
}
|
|
29315
29355
|
};
|
|
29316
29356
|
|
|
29317
|
-
// bazel-out/
|
|
29357
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
29318
29358
|
var import_typescript86 = __toESM(require("typescript"), 1);
|
|
29319
29359
|
|
|
29320
|
-
// bazel-out/
|
|
29360
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
|
|
29321
29361
|
var import_typescript72 = __toESM(require("typescript"), 1);
|
|
29322
29362
|
var REGISTRY = new DomElementSchemaRegistry();
|
|
29323
29363
|
var REMOVE_XHTML_REGEX = /^:xhtml:/;
|
|
@@ -29369,10 +29409,10 @@ var RegistryDomSchemaChecker = class {
|
|
|
29369
29409
|
}
|
|
29370
29410
|
};
|
|
29371
29411
|
|
|
29372
|
-
// bazel-out/
|
|
29412
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
29373
29413
|
var import_typescript79 = __toESM(require("typescript"), 1);
|
|
29374
29414
|
|
|
29375
|
-
// bazel-out/
|
|
29415
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
|
|
29376
29416
|
var import_typescript73 = __toESM(require("typescript"), 1);
|
|
29377
29417
|
var SAFE_TO_CAST_WITHOUT_PARENS = /* @__PURE__ */ new Set([
|
|
29378
29418
|
import_typescript73.default.SyntaxKind.ParenthesizedExpression,
|
|
@@ -29446,16 +29486,16 @@ function isAccessExpression(node) {
|
|
|
29446
29486
|
return import_typescript73.default.isPropertyAccessExpression(node) || import_typescript73.default.isElementAccessExpression(node);
|
|
29447
29487
|
}
|
|
29448
29488
|
|
|
29449
|
-
// bazel-out/
|
|
29489
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
29450
29490
|
var import_typescript78 = __toESM(require("typescript"), 1);
|
|
29451
29491
|
|
|
29452
|
-
// bazel-out/
|
|
29492
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
29453
29493
|
var import_typescript76 = __toESM(require("typescript"), 1);
|
|
29454
29494
|
|
|
29455
|
-
// bazel-out/
|
|
29495
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
|
|
29456
29496
|
var import_typescript75 = __toESM(require("typescript"), 1);
|
|
29457
29497
|
|
|
29458
|
-
// bazel-out/
|
|
29498
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_emitter.mjs
|
|
29459
29499
|
var import_typescript74 = __toESM(require("typescript"), 1);
|
|
29460
29500
|
var INELIGIBLE = {};
|
|
29461
29501
|
function canEmitType(type, canEmit) {
|
|
@@ -29530,7 +29570,7 @@ var TypeEmitter = class {
|
|
|
29530
29570
|
}
|
|
29531
29571
|
};
|
|
29532
29572
|
|
|
29533
|
-
// bazel-out/
|
|
29573
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
|
|
29534
29574
|
var TypeParameterEmitter = class {
|
|
29535
29575
|
constructor(typeParameters, reflector) {
|
|
29536
29576
|
this.typeParameters = typeParameters;
|
|
@@ -29607,7 +29647,7 @@ var TypeParameterEmitter = class {
|
|
|
29607
29647
|
}
|
|
29608
29648
|
};
|
|
29609
29649
|
|
|
29610
|
-
// bazel-out/
|
|
29650
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
29611
29651
|
var TcbInliningRequirement;
|
|
29612
29652
|
(function(TcbInliningRequirement2) {
|
|
29613
29653
|
TcbInliningRequirement2[TcbInliningRequirement2["MustInline"] = 0] = "MustInline";
|
|
@@ -29687,7 +29727,7 @@ function checkIfGenericTypeBoundsCanBeEmitted(node, reflector, env) {
|
|
|
29687
29727
|
return emitter.canEmit((ref) => env.canReferenceType(ref));
|
|
29688
29728
|
}
|
|
29689
29729
|
|
|
29690
|
-
// bazel-out/
|
|
29730
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
29691
29731
|
function generateTypeCtorDeclarationFn(node, meta, nodeTypeRef, typeParams) {
|
|
29692
29732
|
const rawTypeArgs = typeParams !== void 0 ? generateGenericArgs(typeParams) : void 0;
|
|
29693
29733
|
const rawType = import_typescript78.default.factory.createTypeReferenceNode(nodeTypeRef, rawTypeArgs);
|
|
@@ -29799,7 +29839,7 @@ function typeParametersWithDefaultTypes(params) {
|
|
|
29799
29839
|
});
|
|
29800
29840
|
}
|
|
29801
29841
|
|
|
29802
|
-
// bazel-out/
|
|
29842
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
29803
29843
|
var Environment = class {
|
|
29804
29844
|
constructor(config, importManager, refEmitter, reflector, contextFile) {
|
|
29805
29845
|
this.config = config;
|
|
@@ -29891,7 +29931,7 @@ var Environment = class {
|
|
|
29891
29931
|
}
|
|
29892
29932
|
};
|
|
29893
29933
|
|
|
29894
|
-
// bazel-out/
|
|
29934
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
|
|
29895
29935
|
var import_typescript80 = __toESM(require("typescript"), 1);
|
|
29896
29936
|
var OutOfBandDiagnosticRecorderImpl = class {
|
|
29897
29937
|
constructor(resolver) {
|
|
@@ -30022,7 +30062,7 @@ function makeInlineDiagnostic(templateId, code, node, messageText, relatedInform
|
|
|
30022
30062
|
});
|
|
30023
30063
|
}
|
|
30024
30064
|
|
|
30025
|
-
// bazel-out/
|
|
30065
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
|
|
30026
30066
|
var import_typescript81 = __toESM(require("typescript"), 1);
|
|
30027
30067
|
var TypeCheckShimGenerator = class {
|
|
30028
30068
|
constructor() {
|
|
@@ -30040,10 +30080,10 @@ var TypeCheckShimGenerator = class {
|
|
|
30040
30080
|
}
|
|
30041
30081
|
};
|
|
30042
30082
|
|
|
30043
|
-
// bazel-out/
|
|
30083
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
30044
30084
|
var import_typescript84 = __toESM(require("typescript"), 1);
|
|
30045
30085
|
|
|
30046
|
-
// bazel-out/
|
|
30086
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
|
|
30047
30087
|
var import_typescript82 = __toESM(require("typescript"), 1);
|
|
30048
30088
|
function wrapForDiagnostics(expr) {
|
|
30049
30089
|
return import_typescript82.default.factory.createParenthesizedExpression(expr);
|
|
@@ -30088,7 +30128,7 @@ function translateDiagnostic(diagnostic, resolver) {
|
|
|
30088
30128
|
return makeTemplateDiagnostic(sourceLocation.id, templateSourceMapping, span, diagnostic.category, diagnostic.code, diagnostic.messageText);
|
|
30089
30129
|
}
|
|
30090
30130
|
|
|
30091
|
-
// bazel-out/
|
|
30131
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
|
|
30092
30132
|
var import_typescript83 = __toESM(require("typescript"), 1);
|
|
30093
30133
|
var NULL_AS_ANY = import_typescript83.default.factory.createAsExpression(import_typescript83.default.factory.createNull(), import_typescript83.default.factory.createKeywordTypeNode(import_typescript83.default.SyntaxKind.AnyKeyword));
|
|
30094
30134
|
var UNDEFINED = import_typescript83.default.factory.createIdentifier("undefined");
|
|
@@ -30417,7 +30457,7 @@ var VeSafeLhsInferenceBugDetector = class {
|
|
|
30417
30457
|
};
|
|
30418
30458
|
VeSafeLhsInferenceBugDetector.SINGLETON = new VeSafeLhsInferenceBugDetector();
|
|
30419
30459
|
|
|
30420
|
-
// bazel-out/
|
|
30460
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_semantics.mjs
|
|
30421
30461
|
var ExpressionSemanticVisitor = class extends RecursiveAstVisitor {
|
|
30422
30462
|
constructor(templateId, boundTarget, oob) {
|
|
30423
30463
|
super();
|
|
@@ -30440,7 +30480,7 @@ var ExpressionSemanticVisitor = class extends RecursiveAstVisitor {
|
|
|
30440
30480
|
}
|
|
30441
30481
|
};
|
|
30442
30482
|
|
|
30443
|
-
// bazel-out/
|
|
30483
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
30444
30484
|
var TcbGenericContextBehavior;
|
|
30445
30485
|
(function(TcbGenericContextBehavior2) {
|
|
30446
30486
|
TcbGenericContextBehavior2[TcbGenericContextBehavior2["UseEmitter"] = 0] = "UseEmitter";
|
|
@@ -31543,7 +31583,7 @@ var TcbEventHandlerTranslator = class extends TcbExpressionTranslator {
|
|
|
31543
31583
|
}
|
|
31544
31584
|
};
|
|
31545
31585
|
|
|
31546
|
-
// bazel-out/
|
|
31586
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
|
|
31547
31587
|
var import_typescript85 = __toESM(require("typescript"), 1);
|
|
31548
31588
|
var TypeCheckFile = class extends Environment {
|
|
31549
31589
|
constructor(fileName, config, refEmitter, reflector, compilerHost) {
|
|
@@ -31579,7 +31619,7 @@ var TypeCheckFile = class extends Environment {
|
|
|
31579
31619
|
}
|
|
31580
31620
|
};
|
|
31581
31621
|
|
|
31582
|
-
// bazel-out/
|
|
31622
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
31583
31623
|
var InliningMode;
|
|
31584
31624
|
(function(InliningMode2) {
|
|
31585
31625
|
InliningMode2[InliningMode2["InlineOps"] = 0] = "InlineOps";
|
|
@@ -31817,7 +31857,7 @@ function splitStringAtPoints(str, points) {
|
|
|
31817
31857
|
return splits;
|
|
31818
31858
|
}
|
|
31819
31859
|
|
|
31820
|
-
// bazel-out/
|
|
31860
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/line_mappings.mjs
|
|
31821
31861
|
var LF_CHAR = 10;
|
|
31822
31862
|
var CR_CHAR = 13;
|
|
31823
31863
|
var LINE_SEP_CHAR = 8232;
|
|
@@ -31858,7 +31898,7 @@ function findClosestLineStartPosition(linesMap, position, low = 0, high = linesM
|
|
|
31858
31898
|
return low - 1;
|
|
31859
31899
|
}
|
|
31860
31900
|
|
|
31861
|
-
// bazel-out/
|
|
31901
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
|
|
31862
31902
|
var TemplateSource = class {
|
|
31863
31903
|
constructor(mapping, file) {
|
|
31864
31904
|
this.mapping = mapping;
|
|
@@ -31909,7 +31949,7 @@ var TemplateSourceManager = class {
|
|
|
31909
31949
|
}
|
|
31910
31950
|
};
|
|
31911
31951
|
|
|
31912
|
-
// bazel-out/
|
|
31952
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
|
|
31913
31953
|
var import_typescript87 = __toESM(require("typescript"), 1);
|
|
31914
31954
|
var SymbolBuilder = class {
|
|
31915
31955
|
constructor(tcbPath, tcbIsShim, typeCheckBlock, templateData, componentScopeReader, getTypeChecker) {
|
|
@@ -32386,7 +32426,7 @@ function sourceSpanEqual(a, b) {
|
|
|
32386
32426
|
return a.start.offset === b.start.offset && a.end.offset === b.end.offset;
|
|
32387
32427
|
}
|
|
32388
32428
|
|
|
32389
|
-
// bazel-out/
|
|
32429
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
|
|
32390
32430
|
var REGISTRY2 = new DomElementSchemaRegistry();
|
|
32391
32431
|
var TemplateTypeCheckerImpl = class {
|
|
32392
32432
|
constructor(originalProgram, programDriver, typeCheckAdapter, config, refEmitter, reflector, compilerHost, priorBuild, metaReader, localMetaReader, ngModuleIndex, componentScopeReader, typeCheckScopeRegistry, perf) {
|
|
@@ -33079,7 +33119,7 @@ var SingleShimTypeCheckingHost = class extends SingleFileTypeCheckingHost {
|
|
|
33079
33119
|
}
|
|
33080
33120
|
};
|
|
33081
33121
|
|
|
33082
|
-
// bazel-out/
|
|
33122
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
|
|
33083
33123
|
var TemplateCheckWithVisitor = class {
|
|
33084
33124
|
run(ctx, component, template) {
|
|
33085
33125
|
const visitor = new TemplateVisitor2(ctx, component, this);
|
|
@@ -33155,7 +33195,7 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor {
|
|
|
33155
33195
|
}
|
|
33156
33196
|
};
|
|
33157
33197
|
|
|
33158
|
-
// bazel-out/
|
|
33198
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
|
|
33159
33199
|
var InvalidBananaInBoxCheck = class extends TemplateCheckWithVisitor {
|
|
33160
33200
|
constructor() {
|
|
33161
33201
|
super(...arguments);
|
|
@@ -33180,7 +33220,7 @@ var factory = {
|
|
|
33180
33220
|
create: () => new InvalidBananaInBoxCheck()
|
|
33181
33221
|
};
|
|
33182
33222
|
|
|
33183
|
-
// bazel-out/
|
|
33223
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.mjs
|
|
33184
33224
|
var KNOWN_CONTROL_FLOW_DIRECTIVES = /* @__PURE__ */ new Map([
|
|
33185
33225
|
["ngIf", "NgIf"],
|
|
33186
33226
|
["ngFor", "NgFor"],
|
|
@@ -33224,7 +33264,7 @@ var factory2 = {
|
|
|
33224
33264
|
}
|
|
33225
33265
|
};
|
|
33226
33266
|
|
|
33227
|
-
// bazel-out/
|
|
33267
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.mjs
|
|
33228
33268
|
var MissingNgForOfLetCheck = class extends TemplateCheckWithVisitor {
|
|
33229
33269
|
constructor() {
|
|
33230
33270
|
super(...arguments);
|
|
@@ -33256,7 +33296,7 @@ var factory3 = {
|
|
|
33256
33296
|
create: () => new MissingNgForOfLetCheck()
|
|
33257
33297
|
};
|
|
33258
33298
|
|
|
33259
|
-
// bazel-out/
|
|
33299
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
|
|
33260
33300
|
var import_typescript90 = __toESM(require("typescript"), 1);
|
|
33261
33301
|
var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
33262
33302
|
constructor() {
|
|
@@ -33300,7 +33340,7 @@ var factory4 = {
|
|
|
33300
33340
|
}
|
|
33301
33341
|
};
|
|
33302
33342
|
|
|
33303
|
-
// bazel-out/
|
|
33343
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.mjs
|
|
33304
33344
|
var import_typescript91 = __toESM(require("typescript"), 1);
|
|
33305
33345
|
var OptionalChainNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
33306
33346
|
constructor() {
|
|
@@ -33345,7 +33385,7 @@ var factory5 = {
|
|
|
33345
33385
|
}
|
|
33346
33386
|
};
|
|
33347
33387
|
|
|
33348
|
-
// bazel-out/
|
|
33388
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.mjs
|
|
33349
33389
|
var STYLE_SUFFIXES = ["px", "%", "em"];
|
|
33350
33390
|
var SuffixNotSupportedCheck = class extends TemplateCheckWithVisitor {
|
|
33351
33391
|
constructor() {
|
|
@@ -33368,7 +33408,7 @@ var factory6 = {
|
|
|
33368
33408
|
create: () => new SuffixNotSupportedCheck()
|
|
33369
33409
|
};
|
|
33370
33410
|
|
|
33371
|
-
// bazel-out/
|
|
33411
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.mjs
|
|
33372
33412
|
var TextAttributeNotBindingSpec = class extends TemplateCheckWithVisitor {
|
|
33373
33413
|
constructor() {
|
|
33374
33414
|
super(...arguments);
|
|
@@ -33406,10 +33446,10 @@ var factory7 = {
|
|
|
33406
33446
|
create: () => new TextAttributeNotBindingSpec()
|
|
33407
33447
|
};
|
|
33408
33448
|
|
|
33409
|
-
// bazel-out/
|
|
33449
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
33410
33450
|
var import_typescript92 = __toESM(require("typescript"), 1);
|
|
33411
33451
|
|
|
33412
|
-
// bazel-out/
|
|
33452
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
|
|
33413
33453
|
var DiagnosticCategoryLabel;
|
|
33414
33454
|
(function(DiagnosticCategoryLabel2) {
|
|
33415
33455
|
DiagnosticCategoryLabel2["Warning"] = "warning";
|
|
@@ -33417,7 +33457,7 @@ var DiagnosticCategoryLabel;
|
|
|
33417
33457
|
DiagnosticCategoryLabel2["Suppress"] = "suppress";
|
|
33418
33458
|
})(DiagnosticCategoryLabel || (DiagnosticCategoryLabel = {}));
|
|
33419
33459
|
|
|
33420
|
-
// bazel-out/
|
|
33460
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
33421
33461
|
var ExtendedTemplateCheckerImpl = class {
|
|
33422
33462
|
constructor(templateTypeChecker, typeChecker, templateCheckFactories, options) {
|
|
33423
33463
|
var _a, _b, _c, _d, _e;
|
|
@@ -33469,7 +33509,7 @@ function assertNever(value) {
|
|
|
33469
33509
|
${value}`);
|
|
33470
33510
|
}
|
|
33471
33511
|
|
|
33472
|
-
// bazel-out/
|
|
33512
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
|
|
33473
33513
|
var ALL_DIAGNOSTIC_FACTORIES = [
|
|
33474
33514
|
factory,
|
|
33475
33515
|
factory4,
|
|
@@ -33480,7 +33520,7 @@ var ALL_DIAGNOSTIC_FACTORIES = [
|
|
|
33480
33520
|
factory6
|
|
33481
33521
|
];
|
|
33482
33522
|
|
|
33483
|
-
// bazel-out/
|
|
33523
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
33484
33524
|
var CompilationTicketKind;
|
|
33485
33525
|
(function(CompilationTicketKind2) {
|
|
33486
33526
|
CompilationTicketKind2[CompilationTicketKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -34170,7 +34210,7 @@ function versionMapFromProgram(program, driver) {
|
|
|
34170
34210
|
return versions;
|
|
34171
34211
|
}
|
|
34172
34212
|
|
|
34173
|
-
// bazel-out/
|
|
34213
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
|
|
34174
34214
|
var import_typescript95 = __toESM(require("typescript"), 1);
|
|
34175
34215
|
var DelegatingCompilerHost2 = class {
|
|
34176
34216
|
constructor(delegate) {
|
|
@@ -34315,7 +34355,7 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
|
|
|
34315
34355
|
}
|
|
34316
34356
|
};
|
|
34317
34357
|
|
|
34318
|
-
// bazel-out/
|
|
34358
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
34319
34359
|
var NgtscProgram = class {
|
|
34320
34360
|
constructor(rootNames, options, delegateHost, oldProgram) {
|
|
34321
34361
|
this.options = options;
|
|
@@ -34533,25 +34573,21 @@ function mergeEmitResults(emitResults) {
|
|
|
34533
34573
|
return { diagnostics, emitSkipped, emittedFiles };
|
|
34534
34574
|
}
|
|
34535
34575
|
|
|
34536
|
-
// bazel-out/
|
|
34576
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
|
|
34537
34577
|
function createProgram({ rootNames, options, host, oldProgram }) {
|
|
34538
34578
|
return new NgtscProgram(rootNames, options, host, oldProgram);
|
|
34539
34579
|
}
|
|
34540
34580
|
|
|
34541
|
-
// bazel-out/
|
|
34581
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
34542
34582
|
var import_typescript99 = __toESM(require("typescript"), 1);
|
|
34543
34583
|
|
|
34544
|
-
// bazel-out/
|
|
34584
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
|
|
34545
34585
|
var import_typescript98 = __toESM(require("typescript"), 1);
|
|
34546
34586
|
|
|
34547
|
-
// bazel-out/
|
|
34548
|
-
var import_typescript101 = __toESM(require("typescript"), 1);
|
|
34549
|
-
|
|
34550
|
-
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/downlevel_decorators_transform/patch_alias_reference_resolution.mjs
|
|
34587
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/downlevel_decorators_transform/downlevel_decorators_transform.mjs
|
|
34551
34588
|
var import_typescript100 = __toESM(require("typescript"), 1);
|
|
34552
|
-
var patchedReferencedAliasesSymbol = Symbol("patchedReferencedAliases");
|
|
34553
34589
|
|
|
34554
|
-
// bazel-out/
|
|
34590
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/private/tooling.mjs
|
|
34555
34591
|
var GLOBAL_DEFS_FOR_TERSER = {
|
|
34556
34592
|
ngDevMode: false,
|
|
34557
34593
|
ngI18nClosureMode: false
|
|
@@ -34560,7 +34596,7 @@ var GLOBAL_DEFS_FOR_TERSER_WITH_AOT = __spreadProps(__spreadValues({}, GLOBAL_DE
|
|
|
34560
34596
|
ngJitMode: false
|
|
34561
34597
|
});
|
|
34562
34598
|
|
|
34563
|
-
// bazel-out/
|
|
34599
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/logging/src/logger.mjs
|
|
34564
34600
|
var LogLevel;
|
|
34565
34601
|
(function(LogLevel2) {
|
|
34566
34602
|
LogLevel2[LogLevel2["debug"] = 0] = "debug";
|
|
@@ -34569,7 +34605,7 @@ var LogLevel;
|
|
|
34569
34605
|
LogLevel2[LogLevel2["error"] = 3] = "error";
|
|
34570
34606
|
})(LogLevel || (LogLevel = {}));
|
|
34571
34607
|
|
|
34572
|
-
// bazel-out/
|
|
34608
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/logging/src/console_logger.mjs
|
|
34573
34609
|
var RESET = "\x1B[0m";
|
|
34574
34610
|
var RED = "\x1B[31m";
|
|
34575
34611
|
var YELLOW = "\x1B[33m";
|
|
@@ -34578,15 +34614,15 @@ var DEBUG = `${BLUE}Debug:${RESET}`;
|
|
|
34578
34614
|
var WARN = `${YELLOW}Warning:${RESET}`;
|
|
34579
34615
|
var ERROR = `${RED}Error:${RESET}`;
|
|
34580
34616
|
|
|
34581
|
-
// bazel-out/
|
|
34617
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/index.mjs
|
|
34582
34618
|
setFileSystem(new NodeJSFileSystem());
|
|
34583
34619
|
|
|
34584
|
-
// bazel-out/
|
|
34620
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/index.mjs
|
|
34585
34621
|
var import_fs2 = require("fs");
|
|
34586
34622
|
var import_path8 = require("path");
|
|
34587
|
-
var
|
|
34623
|
+
var import_typescript112 = __toESM(require("typescript"), 1);
|
|
34588
34624
|
|
|
34589
|
-
// bazel-out/
|
|
34625
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
|
|
34590
34626
|
var import_core13 = require("@angular-devkit/core");
|
|
34591
34627
|
function getProjectTsConfigPaths(tree) {
|
|
34592
34628
|
return __async(this, null, function* () {
|
|
@@ -34666,28 +34702,28 @@ function getWorkspace(tree) {
|
|
|
34666
34702
|
});
|
|
34667
34703
|
}
|
|
34668
34704
|
|
|
34669
|
-
// bazel-out/
|
|
34705
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
34670
34706
|
var import_path4 = require("path");
|
|
34671
|
-
var
|
|
34707
|
+
var import_typescript102 = __toESM(require("typescript"), 1);
|
|
34672
34708
|
|
|
34673
|
-
// bazel-out/
|
|
34709
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
|
|
34674
34710
|
var path2 = __toESM(require("path"), 1);
|
|
34675
|
-
var
|
|
34711
|
+
var import_typescript101 = __toESM(require("typescript"), 1);
|
|
34676
34712
|
function parseTsconfigFile(tsconfigPath, basePath) {
|
|
34677
|
-
const { config } =
|
|
34713
|
+
const { config } = import_typescript101.default.readConfigFile(tsconfigPath, import_typescript101.default.sys.readFile);
|
|
34678
34714
|
const parseConfigHost = {
|
|
34679
|
-
useCaseSensitiveFileNames:
|
|
34680
|
-
fileExists:
|
|
34681
|
-
readDirectory:
|
|
34682
|
-
readFile:
|
|
34715
|
+
useCaseSensitiveFileNames: import_typescript101.default.sys.useCaseSensitiveFileNames,
|
|
34716
|
+
fileExists: import_typescript101.default.sys.fileExists,
|
|
34717
|
+
readDirectory: import_typescript101.default.sys.readDirectory,
|
|
34718
|
+
readFile: import_typescript101.default.sys.readFile
|
|
34683
34719
|
};
|
|
34684
34720
|
if (!path2.isAbsolute(basePath)) {
|
|
34685
34721
|
throw Error("Unexpected relative base path has been specified.");
|
|
34686
34722
|
}
|
|
34687
|
-
return
|
|
34723
|
+
return import_typescript101.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
|
|
34688
34724
|
}
|
|
34689
34725
|
|
|
34690
|
-
// bazel-out/
|
|
34726
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
34691
34727
|
function createProgramOptions(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles, optionOverrides) {
|
|
34692
34728
|
tsconfigPath = (0, import_path4.resolve)(basePath, tsconfigPath);
|
|
34693
34729
|
const parsed = parseTsconfigFile(tsconfigPath, (0, import_path4.dirname)(tsconfigPath));
|
|
@@ -34696,7 +34732,7 @@ function createProgramOptions(tree, tsconfigPath, basePath, fakeFileRead, additi
|
|
|
34696
34732
|
return { rootNames: parsed.fileNames.concat(additionalFiles || []), options, host };
|
|
34697
34733
|
}
|
|
34698
34734
|
function createMigrationCompilerHost(tree, options, basePath, fakeRead) {
|
|
34699
|
-
const host =
|
|
34735
|
+
const host = import_typescript102.default.createCompilerHost(options, true);
|
|
34700
34736
|
const defaultReadFile = host.readFile;
|
|
34701
34737
|
host.readFile = (fileName) => {
|
|
34702
34738
|
var _a;
|
|
@@ -34716,25 +34752,25 @@ function canMigrateFile(basePath, sourceFile, program) {
|
|
|
34716
34752
|
return !(0, import_path4.relative)(basePath, sourceFile.fileName).startsWith("..");
|
|
34717
34753
|
}
|
|
34718
34754
|
|
|
34719
|
-
// bazel-out/
|
|
34720
|
-
var
|
|
34721
|
-
|
|
34722
|
-
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
|
|
34723
|
-
var import_typescript105 = __toESM(require("typescript"), 1);
|
|
34755
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/prune-modules.mjs
|
|
34756
|
+
var import_typescript108 = __toESM(require("typescript"), 1);
|
|
34724
34757
|
|
|
34725
|
-
// bazel-out/
|
|
34758
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
|
|
34726
34759
|
var import_typescript104 = __toESM(require("typescript"), 1);
|
|
34760
|
+
|
|
34761
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
|
|
34762
|
+
var import_typescript103 = __toESM(require("typescript"), 1);
|
|
34727
34763
|
function getImportOfIdentifier(typeChecker, node) {
|
|
34728
34764
|
const symbol = typeChecker.getSymbolAtLocation(node);
|
|
34729
34765
|
if (!symbol || symbol.declarations === void 0 || !symbol.declarations.length) {
|
|
34730
34766
|
return null;
|
|
34731
34767
|
}
|
|
34732
34768
|
const decl = symbol.declarations[0];
|
|
34733
|
-
if (!
|
|
34769
|
+
if (!import_typescript103.default.isImportSpecifier(decl)) {
|
|
34734
34770
|
return null;
|
|
34735
34771
|
}
|
|
34736
34772
|
const importDecl = decl.parent.parent.parent;
|
|
34737
|
-
if (!
|
|
34773
|
+
if (!import_typescript103.default.isStringLiteral(importDecl.moduleSpecifier)) {
|
|
34738
34774
|
return null;
|
|
34739
34775
|
}
|
|
34740
34776
|
return {
|
|
@@ -34746,10 +34782,10 @@ function getImportOfIdentifier(typeChecker, node) {
|
|
|
34746
34782
|
function getImportSpecifier(sourceFile, moduleName, specifierName) {
|
|
34747
34783
|
var _a;
|
|
34748
34784
|
for (const node of sourceFile.statements) {
|
|
34749
|
-
if (
|
|
34785
|
+
if (import_typescript103.default.isImportDeclaration(node) && import_typescript103.default.isStringLiteral(node.moduleSpecifier)) {
|
|
34750
34786
|
const isMatch = typeof moduleName === "string" ? node.moduleSpecifier.text === moduleName : moduleName.test(node.moduleSpecifier.text);
|
|
34751
34787
|
const namedBindings = (_a = node.importClause) == null ? void 0 : _a.namedBindings;
|
|
34752
|
-
if (isMatch && namedBindings &&
|
|
34788
|
+
if (isMatch && namedBindings && import_typescript103.default.isNamedImports(namedBindings)) {
|
|
34753
34789
|
const match = findImportSpecifier(namedBindings.elements, specifierName);
|
|
34754
34790
|
if (match) {
|
|
34755
34791
|
return match;
|
|
@@ -34766,16 +34802,16 @@ function findImportSpecifier(nodes, specifierName) {
|
|
|
34766
34802
|
});
|
|
34767
34803
|
}
|
|
34768
34804
|
|
|
34769
|
-
// bazel-out/
|
|
34805
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
|
|
34770
34806
|
function getCallDecoratorImport(typeChecker, decorator) {
|
|
34771
|
-
if (!
|
|
34807
|
+
if (!import_typescript104.default.isCallExpression(decorator.expression) || !import_typescript104.default.isIdentifier(decorator.expression.expression)) {
|
|
34772
34808
|
return null;
|
|
34773
34809
|
}
|
|
34774
34810
|
const identifier = decorator.expression.expression;
|
|
34775
34811
|
return getImportOfIdentifier(typeChecker, identifier);
|
|
34776
34812
|
}
|
|
34777
34813
|
|
|
34778
|
-
// bazel-out/
|
|
34814
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/ng_decorators.mjs
|
|
34779
34815
|
function getAngularDecorators(typeChecker, decorators) {
|
|
34780
34816
|
return decorators.map((node) => ({ node, importData: getCallDecoratorImport(typeChecker, node) })).filter(({ importData }) => importData && importData.importModule.startsWith("@angular/")).map(({ node, importData }) => ({
|
|
34781
34817
|
node,
|
|
@@ -34785,11 +34821,11 @@ function getAngularDecorators(typeChecker, decorators) {
|
|
|
34785
34821
|
}));
|
|
34786
34822
|
}
|
|
34787
34823
|
|
|
34788
|
-
// bazel-out/
|
|
34789
|
-
var
|
|
34824
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/nodes.mjs
|
|
34825
|
+
var import_typescript105 = __toESM(require("typescript"), 1);
|
|
34790
34826
|
function closestNode(node, predicate) {
|
|
34791
34827
|
let current = node.parent;
|
|
34792
|
-
while (current && !
|
|
34828
|
+
while (current && !import_typescript105.default.isSourceFile(current)) {
|
|
34793
34829
|
if (predicate(current)) {
|
|
34794
34830
|
return current;
|
|
34795
34831
|
}
|
|
@@ -34798,13 +34834,13 @@ function closestNode(node, predicate) {
|
|
|
34798
34834
|
return null;
|
|
34799
34835
|
}
|
|
34800
34836
|
|
|
34801
|
-
// bazel-out/
|
|
34837
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/util.mjs
|
|
34802
34838
|
var import_path6 = require("path");
|
|
34803
|
-
var
|
|
34839
|
+
var import_typescript107 = __toESM(require("typescript"), 1);
|
|
34804
34840
|
|
|
34805
|
-
// bazel-out/
|
|
34841
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/import_manager.mjs
|
|
34806
34842
|
var import_path5 = require("path");
|
|
34807
|
-
var
|
|
34843
|
+
var import_typescript106 = __toESM(require("typescript"), 1);
|
|
34808
34844
|
var IS_AFTER_TS_492 = isAfterVersion2(4, 9);
|
|
34809
34845
|
var ImportManager2 = class {
|
|
34810
34846
|
constructor(getUpdateRecorder, printer) {
|
|
@@ -34826,7 +34862,7 @@ var ImportManager2 = class {
|
|
|
34826
34862
|
}
|
|
34827
34863
|
for (let i = sourceFile.statements.length - 1; i >= 0; i--) {
|
|
34828
34864
|
const statement = sourceFile.statements[i];
|
|
34829
|
-
if (!
|
|
34865
|
+
if (!import_typescript106.default.isImportDeclaration(statement) || !import_typescript106.default.isStringLiteral(statement.moduleSpecifier) || !statement.importClause) {
|
|
34830
34866
|
continue;
|
|
34831
34867
|
}
|
|
34832
34868
|
if (importStartIndex === 0) {
|
|
@@ -34838,9 +34874,9 @@ var ImportManager2 = class {
|
|
|
34838
34874
|
}
|
|
34839
34875
|
if (statement.importClause.namedBindings) {
|
|
34840
34876
|
const namedBindings = statement.importClause.namedBindings;
|
|
34841
|
-
if (
|
|
34842
|
-
return
|
|
34843
|
-
} else if (
|
|
34877
|
+
if (import_typescript106.default.isNamespaceImport(namedBindings) && !typeImport) {
|
|
34878
|
+
return import_typescript106.default.factory.createPropertyAccessExpression(import_typescript106.default.factory.createIdentifier(namedBindings.name.text), import_typescript106.default.factory.createIdentifier(alias || symbolName || "default"));
|
|
34879
|
+
} else if (import_typescript106.default.isNamedImports(namedBindings) && symbolName) {
|
|
34844
34880
|
const existingElement = namedBindings.elements.find((e) => {
|
|
34845
34881
|
if (alias) {
|
|
34846
34882
|
return e.propertyName && e.name.text === alias && e.propertyName.text === symbolName;
|
|
@@ -34848,12 +34884,12 @@ var ImportManager2 = class {
|
|
|
34848
34884
|
return e.propertyName ? e.propertyName.text === symbolName : e.name.text === symbolName;
|
|
34849
34885
|
});
|
|
34850
34886
|
if (existingElement) {
|
|
34851
|
-
return
|
|
34887
|
+
return import_typescript106.default.factory.createIdentifier(existingElement.name.text);
|
|
34852
34888
|
}
|
|
34853
34889
|
existingImport = statement;
|
|
34854
34890
|
}
|
|
34855
34891
|
} else if (statement.importClause.name && !symbolName) {
|
|
34856
|
-
return
|
|
34892
|
+
return import_typescript106.default.factory.createIdentifier(statement.importClause.name.text);
|
|
34857
34893
|
}
|
|
34858
34894
|
}
|
|
34859
34895
|
if (existingImport) {
|
|
@@ -34873,11 +34909,11 @@ var ImportManager2 = class {
|
|
|
34873
34909
|
if (symbolName) {
|
|
34874
34910
|
const { propertyName, name } = this._getImportParts(sourceFile, symbolName, alias);
|
|
34875
34911
|
const importMap = this.newImports.get(sourceFile).namedImports;
|
|
34876
|
-
identifier =
|
|
34912
|
+
identifier = name;
|
|
34877
34913
|
if (!importMap.has(moduleName)) {
|
|
34878
34914
|
importMap.set(moduleName, []);
|
|
34879
34915
|
}
|
|
34880
|
-
importMap.get(moduleName).push(
|
|
34916
|
+
importMap.get(moduleName).push(import_typescript106.default.factory.createImportSpecifier(false, propertyName, name));
|
|
34881
34917
|
} else {
|
|
34882
34918
|
const importMap = this.newImports.get(sourceFile).defaultImports;
|
|
34883
34919
|
identifier = this._getUniqueIdentifier(sourceFile, "defaultExport");
|
|
@@ -34891,19 +34927,19 @@ var ImportManager2 = class {
|
|
|
34891
34927
|
const sourceFile = importDecl.getSourceFile();
|
|
34892
34928
|
const recorder = this.getUpdateRecorder(sourceFile);
|
|
34893
34929
|
const namedBindings = importDecl.importClause.namedBindings;
|
|
34894
|
-
const newNamedBindings =
|
|
34895
|
-
const newNamedBindingsText = this.printer.printNode(
|
|
34930
|
+
const newNamedBindings = import_typescript106.default.factory.updateNamedImports(namedBindings, namedBindings.elements.concat(expressions.map(({ propertyName, importName }) => import_typescript106.default.factory.createImportSpecifier(false, propertyName, importName))));
|
|
34931
|
+
const newNamedBindingsText = this.printer.printNode(import_typescript106.default.EmitHint.Unspecified, newNamedBindings, sourceFile);
|
|
34896
34932
|
recorder.updateExistingImport(namedBindings, newNamedBindingsText);
|
|
34897
34933
|
});
|
|
34898
34934
|
this.newImports.forEach(({ importStartIndex, defaultImports, namedImports }, sourceFile) => {
|
|
34899
34935
|
const recorder = this.getUpdateRecorder(sourceFile);
|
|
34900
34936
|
const useSingleQuotes = this._getQuoteStyle(sourceFile) === 0;
|
|
34901
34937
|
defaultImports.forEach((identifier, moduleName) => {
|
|
34902
|
-
const newImport = createImportDeclaration2(void 0,
|
|
34938
|
+
const newImport = createImportDeclaration2(void 0, import_typescript106.default.factory.createImportClause(false, identifier, void 0), import_typescript106.default.factory.createStringLiteral(moduleName, useSingleQuotes));
|
|
34903
34939
|
recorder.addNewImport(importStartIndex, this._getNewImportText(importStartIndex, newImport, sourceFile));
|
|
34904
34940
|
});
|
|
34905
34941
|
namedImports.forEach((specifiers, moduleName) => {
|
|
34906
|
-
const newImport = createImportDeclaration2(void 0,
|
|
34942
|
+
const newImport = createImportDeclaration2(void 0, import_typescript106.default.factory.createImportClause(false, void 0, import_typescript106.default.factory.createNamedImports(specifiers)), import_typescript106.default.factory.createStringLiteral(moduleName, useSingleQuotes));
|
|
34907
34943
|
recorder.addNewImport(importStartIndex, this._getNewImportText(importStartIndex, newImport, sourceFile));
|
|
34908
34944
|
});
|
|
34909
34945
|
});
|
|
@@ -34911,7 +34947,7 @@ var ImportManager2 = class {
|
|
|
34911
34947
|
_getUniqueIdentifier(sourceFile, baseName) {
|
|
34912
34948
|
if (this.isUniqueIdentifierName(sourceFile, baseName)) {
|
|
34913
34949
|
this._recordUsedIdentifier(sourceFile, baseName);
|
|
34914
|
-
return
|
|
34950
|
+
return import_typescript106.default.factory.createIdentifier(baseName);
|
|
34915
34951
|
}
|
|
34916
34952
|
let name = null;
|
|
34917
34953
|
let counter = 1;
|
|
@@ -34919,7 +34955,7 @@ var ImportManager2 = class {
|
|
|
34919
34955
|
name = `${baseName}_${counter++}`;
|
|
34920
34956
|
} while (!this.isUniqueIdentifierName(sourceFile, name));
|
|
34921
34957
|
this._recordUsedIdentifier(sourceFile, name);
|
|
34922
|
-
return
|
|
34958
|
+
return import_typescript106.default.factory.createIdentifier(name);
|
|
34923
34959
|
}
|
|
34924
34960
|
isUniqueIdentifierName(sourceFile, name) {
|
|
34925
34961
|
if (this.usedIdentifierNames.has(sourceFile) && this.usedIdentifierNames.get(sourceFile).indexOf(name) !== -1) {
|
|
@@ -34928,7 +34964,7 @@ var ImportManager2 = class {
|
|
|
34928
34964
|
const nodeQueue = [sourceFile];
|
|
34929
34965
|
while (nodeQueue.length) {
|
|
34930
34966
|
const node = nodeQueue.shift();
|
|
34931
|
-
if (
|
|
34967
|
+
if (import_typescript106.default.isIdentifier(node) && node.text === name && (!import_typescript106.default.isImportSpecifier(node.parent) || node.parent.propertyName !== node)) {
|
|
34932
34968
|
return false;
|
|
34933
34969
|
}
|
|
34934
34970
|
nodeQueue.push(...node.getChildren());
|
|
@@ -34940,21 +34976,21 @@ var ImportManager2 = class {
|
|
|
34940
34976
|
}
|
|
34941
34977
|
_getEndPositionOfNode(node) {
|
|
34942
34978
|
const nodeEndPos = node.getEnd();
|
|
34943
|
-
const commentRanges =
|
|
34979
|
+
const commentRanges = import_typescript106.default.getTrailingCommentRanges(node.getSourceFile().text, nodeEndPos);
|
|
34944
34980
|
if (!commentRanges || !commentRanges.length) {
|
|
34945
34981
|
return nodeEndPos;
|
|
34946
34982
|
}
|
|
34947
34983
|
return commentRanges[commentRanges.length - 1].end;
|
|
34948
34984
|
}
|
|
34949
34985
|
_getNewImportText(importStartIndex, newImport, sourceFile) {
|
|
34950
|
-
const text = this.printer.printNode(
|
|
34986
|
+
const text = this.printer.printNode(import_typescript106.default.EmitHint.Unspecified, newImport, sourceFile);
|
|
34951
34987
|
return importStartIndex === 0 ? `${text}
|
|
34952
34988
|
` : `
|
|
34953
34989
|
${text}`;
|
|
34954
34990
|
}
|
|
34955
34991
|
_getImportParts(sourceFile, symbolName, alias) {
|
|
34956
|
-
const symbolIdentifier =
|
|
34957
|
-
const aliasIdentifier = alias ?
|
|
34992
|
+
const symbolIdentifier = import_typescript106.default.factory.createIdentifier(symbolName);
|
|
34993
|
+
const aliasIdentifier = alias ? import_typescript106.default.factory.createIdentifier(alias) : null;
|
|
34958
34994
|
const generatedUniqueIdentifier = this._getUniqueIdentifier(sourceFile, alias || symbolName);
|
|
34959
34995
|
const needsGeneratedUniqueName = generatedUniqueIdentifier.text !== (alias || symbolName);
|
|
34960
34996
|
let propertyName;
|
|
@@ -34974,7 +35010,7 @@ ${text}`;
|
|
|
34974
35010
|
if (!this.quoteStyles.hasOwnProperty(sourceFile.fileName)) {
|
|
34975
35011
|
let quoteStyle;
|
|
34976
35012
|
for (const statement of sourceFile.statements) {
|
|
34977
|
-
if (
|
|
35013
|
+
if (import_typescript106.default.isImportDeclaration(statement) && import_typescript106.default.isStringLiteralLike(statement.moduleSpecifier)) {
|
|
34978
35014
|
quoteStyle = statement.moduleSpecifier.getText().trim().startsWith('"') ? 1 : 0;
|
|
34979
35015
|
break;
|
|
34980
35016
|
}
|
|
@@ -34985,17 +35021,17 @@ ${text}`;
|
|
|
34985
35021
|
}
|
|
34986
35022
|
};
|
|
34987
35023
|
function createImportDeclaration2(modifiers, importClause, moduleSpecifier, assertClause) {
|
|
34988
|
-
return IS_AFTER_TS_492 ?
|
|
35024
|
+
return IS_AFTER_TS_492 ? import_typescript106.default.factory.createImportDeclaration(modifiers, importClause, moduleSpecifier, assertClause) : import_typescript106.default.factory.createImportDeclaration(void 0, modifiers, importClause, moduleSpecifier, assertClause);
|
|
34989
35025
|
}
|
|
34990
35026
|
function isAfterVersion2(targetMajor, targetMinor) {
|
|
34991
|
-
const [major, minor] =
|
|
35027
|
+
const [major, minor] = import_typescript106.default.versionMajorMinor.split(".").map((part) => parseInt(part));
|
|
34992
35028
|
if (major < targetMajor) {
|
|
34993
35029
|
return false;
|
|
34994
35030
|
}
|
|
34995
35031
|
return major === targetMajor ? minor >= targetMinor : true;
|
|
34996
35032
|
}
|
|
34997
35033
|
|
|
34998
|
-
// bazel-out/
|
|
35034
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/util.mjs
|
|
34999
35035
|
var ChangeTracker = class {
|
|
35000
35036
|
constructor(_printer, _importRemapper) {
|
|
35001
35037
|
this._printer = _printer;
|
|
@@ -35012,7 +35048,7 @@ var ChangeTracker = class {
|
|
|
35012
35048
|
replaceText(sourceFile, start, removeLength, text) {
|
|
35013
35049
|
this._trackChange(sourceFile, { start, removeLength, text });
|
|
35014
35050
|
}
|
|
35015
|
-
replaceNode(oldNode, newNode, emitHint =
|
|
35051
|
+
replaceNode(oldNode, newNode, emitHint = import_typescript107.default.EmitHint.Unspecified, sourceFileWhenPrinting) {
|
|
35016
35052
|
const sourceFile = oldNode.getSourceFile();
|
|
35017
35053
|
this.replaceText(sourceFile, oldNode.getStart(), oldNode.getWidth(), this._printer.printNode(emitHint, newNode, sourceFileWhenPrinting || sourceFile));
|
|
35018
35054
|
}
|
|
@@ -35056,6 +35092,9 @@ var UniqueItemTracker = class {
|
|
|
35056
35092
|
this._nodes.set(key, /* @__PURE__ */ new Set([item]));
|
|
35057
35093
|
}
|
|
35058
35094
|
}
|
|
35095
|
+
get(key) {
|
|
35096
|
+
return this._nodes.get(key);
|
|
35097
|
+
}
|
|
35059
35098
|
getEntries() {
|
|
35060
35099
|
return this._nodes.entries();
|
|
35061
35100
|
}
|
|
@@ -35083,7 +35122,7 @@ var ReferenceResolver = class {
|
|
|
35083
35122
|
const results = /* @__PURE__ */ new Map();
|
|
35084
35123
|
for (const symbol of referencedSymbols) {
|
|
35085
35124
|
for (const ref of symbol.references) {
|
|
35086
|
-
if (!ref.isDefinition || symbol.definition.kind ===
|
|
35125
|
+
if (!ref.isDefinition || symbol.definition.kind === import_typescript107.default.ScriptElementKind.alias) {
|
|
35087
35126
|
if (!results.has(ref.fileName)) {
|
|
35088
35127
|
results.set(ref.fileName, []);
|
|
35089
35128
|
}
|
|
@@ -35107,7 +35146,7 @@ var ReferenceResolver = class {
|
|
|
35107
35146
|
for (const file of highlights) {
|
|
35108
35147
|
if (file.fileName === fileName) {
|
|
35109
35148
|
for (const { textSpan: { start, length }, kind } of file.highlightSpans) {
|
|
35110
|
-
if (kind !==
|
|
35149
|
+
if (kind !== import_typescript107.default.HighlightSpanKind.none) {
|
|
35111
35150
|
results.push([start, start + length]);
|
|
35112
35151
|
}
|
|
35113
35152
|
}
|
|
@@ -35133,19 +35172,19 @@ var ReferenceResolver = class {
|
|
|
35133
35172
|
rootFileNames.push(fileName);
|
|
35134
35173
|
}
|
|
35135
35174
|
});
|
|
35136
|
-
this._languageService =
|
|
35175
|
+
this._languageService = import_typescript107.default.createLanguageService({
|
|
35137
35176
|
getCompilationSettings: () => this._program.getTsProgram().getCompilerOptions(),
|
|
35138
35177
|
getScriptFileNames: () => rootFileNames,
|
|
35139
35178
|
getScriptVersion: () => "0",
|
|
35140
35179
|
getScriptSnapshot: (path3) => {
|
|
35141
35180
|
const content = this._readFile(path3);
|
|
35142
|
-
return content ?
|
|
35181
|
+
return content ? import_typescript107.default.ScriptSnapshot.fromString(content) : void 0;
|
|
35143
35182
|
},
|
|
35144
35183
|
getCurrentDirectory: () => this._basePath,
|
|
35145
|
-
getDefaultLibFileName: (options) =>
|
|
35184
|
+
getDefaultLibFileName: (options) => import_typescript107.default.getDefaultLibFilePath(options),
|
|
35146
35185
|
readFile: (path3) => this._readFile(path3),
|
|
35147
35186
|
fileExists: (path3) => this._host.fileExists(path3)
|
|
35148
|
-
},
|
|
35187
|
+
}, import_typescript107.default.createDocumentRegistry(), import_typescript107.default.LanguageServiceMode.PartialSemantic);
|
|
35149
35188
|
}
|
|
35150
35189
|
return this._languageService;
|
|
35151
35190
|
}
|
|
@@ -35175,10 +35214,10 @@ function offsetsToNodes(lookup, offsets, results) {
|
|
|
35175
35214
|
}
|
|
35176
35215
|
function findClassDeclaration(reference, typeChecker) {
|
|
35177
35216
|
var _a, _b;
|
|
35178
|
-
return ((_b = (_a = typeChecker.getTypeAtLocation(reference).getSymbol()) == null ? void 0 : _a.declarations) == null ? void 0 : _b.find(
|
|
35217
|
+
return ((_b = (_a = typeChecker.getTypeAtLocation(reference).getSymbol()) == null ? void 0 : _a.declarations) == null ? void 0 : _b.find(import_typescript107.default.isClassDeclaration)) || null;
|
|
35179
35218
|
}
|
|
35180
35219
|
function findLiteralProperty(literal3, name) {
|
|
35181
|
-
return literal3.properties.find((prop) => prop.name &&
|
|
35220
|
+
return literal3.properties.find((prop) => prop.name && import_typescript107.default.isIdentifier(prop.name) && prop.name.text === name);
|
|
35182
35221
|
}
|
|
35183
35222
|
function getRelativeImportPath(fromFile, toFile) {
|
|
35184
35223
|
let path3 = (0, import_path6.relative)((0, import_path6.dirname)(fromFile), toFile).replace(/\.ts$/, "");
|
|
@@ -35193,24 +35232,50 @@ function normalizePath(path3) {
|
|
|
35193
35232
|
function knownInternalAliasRemapper(imports) {
|
|
35194
35233
|
return imports.map((current) => current.moduleSpecifier === "@angular/common" && current.symbolName === "NgForOf" ? __spreadProps(__spreadValues({}, current), { symbolName: "NgFor" }) : current);
|
|
35195
35234
|
}
|
|
35235
|
+
function closestOrSelf(node, predicate) {
|
|
35236
|
+
return predicate(node) ? node : closestNode(node, predicate);
|
|
35237
|
+
}
|
|
35238
|
+
function isClassReferenceInAngularModule(node, className, moduleName, typeChecker) {
|
|
35239
|
+
var _a;
|
|
35240
|
+
const symbol = typeChecker.getTypeAtLocation(node).getSymbol();
|
|
35241
|
+
const externalName = `@angular/${moduleName}`;
|
|
35242
|
+
const internalName = `angular2/rc/packages/${moduleName}`;
|
|
35243
|
+
return !!((_a = symbol == null ? void 0 : symbol.declarations) == null ? void 0 : _a.some((decl) => {
|
|
35244
|
+
const closestClass = closestOrSelf(decl, import_typescript107.default.isClassDeclaration);
|
|
35245
|
+
const closestClassFileName = closestClass == null ? void 0 : closestClass.getSourceFile().fileName;
|
|
35246
|
+
if (!closestClass || !closestClassFileName || !closestClass.name || !import_typescript107.default.isIdentifier(closestClass.name) || !closestClassFileName.includes(externalName) && !closestClassFileName.includes(internalName)) {
|
|
35247
|
+
return false;
|
|
35248
|
+
}
|
|
35249
|
+
return typeof className === "string" ? closestClass.name.text === className : className.test(closestClass.name.text);
|
|
35250
|
+
}));
|
|
35251
|
+
}
|
|
35196
35252
|
|
|
35197
|
-
// bazel-out/
|
|
35253
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/prune-modules.mjs
|
|
35198
35254
|
function pruneNgModules(program, host, basePath, rootFileNames, sourceFiles, printer, importRemapper, referenceLookupExcludedFiles) {
|
|
35199
35255
|
const filesToRemove = /* @__PURE__ */ new Set();
|
|
35200
35256
|
const tracker = new ChangeTracker(printer, importRemapper);
|
|
35201
|
-
const
|
|
35257
|
+
const tsProgram = program.getTsProgram();
|
|
35258
|
+
const typeChecker = tsProgram.getTypeChecker();
|
|
35202
35259
|
const referenceResolver = new ReferenceResolver(program, host, rootFileNames, basePath, referenceLookupExcludedFiles);
|
|
35203
35260
|
const removalLocations = {
|
|
35204
35261
|
arrays: new UniqueItemTracker(),
|
|
35205
35262
|
imports: new UniqueItemTracker(),
|
|
35206
35263
|
exports: new UniqueItemTracker(),
|
|
35207
|
-
classes: /* @__PURE__ */ new Set(),
|
|
35208
35264
|
unknown: /* @__PURE__ */ new Set()
|
|
35209
35265
|
};
|
|
35266
|
+
const classesToRemove = /* @__PURE__ */ new Set();
|
|
35267
|
+
const barrelExports = new UniqueItemTracker();
|
|
35268
|
+
const nodesToRemove = /* @__PURE__ */ new Set();
|
|
35210
35269
|
sourceFiles.forEach(function walk(node) {
|
|
35211
|
-
|
|
35270
|
+
var _a, _b;
|
|
35271
|
+
if (import_typescript108.default.isClassDeclaration(node) && canRemoveClass(node, typeChecker)) {
|
|
35212
35272
|
collectRemovalLocations(node, removalLocations, referenceResolver, program);
|
|
35213
|
-
|
|
35273
|
+
classesToRemove.add(node);
|
|
35274
|
+
} else if (import_typescript108.default.isExportDeclaration(node) && !node.exportClause && node.moduleSpecifier && import_typescript108.default.isStringLiteralLike(node.moduleSpecifier) && node.moduleSpecifier.text.startsWith(".")) {
|
|
35275
|
+
const exportedSourceFile = (_b = (_a = typeChecker.getSymbolAtLocation(node.moduleSpecifier)) == null ? void 0 : _a.valueDeclaration) == null ? void 0 : _b.getSourceFile();
|
|
35276
|
+
if (exportedSourceFile) {
|
|
35277
|
+
barrelExports.track(exportedSourceFile, node);
|
|
35278
|
+
}
|
|
35214
35279
|
}
|
|
35215
35280
|
node.forEachChild(walk);
|
|
35216
35281
|
});
|
|
@@ -35218,9 +35283,22 @@ function pruneNgModules(program, host, basePath, rootFileNames, sourceFiles, pri
|
|
|
35218
35283
|
removeImportReferences(removalLocations.imports, tracker);
|
|
35219
35284
|
removeExportReferences(removalLocations.exports, tracker);
|
|
35220
35285
|
addRemovalTodos(removalLocations.unknown, tracker);
|
|
35221
|
-
|
|
35286
|
+
(function trackNodesToRemove(nodes) {
|
|
35287
|
+
for (const node of nodes) {
|
|
35288
|
+
const sourceFile = node.getSourceFile();
|
|
35289
|
+
if (!filesToRemove.has(sourceFile) && canRemoveFile(sourceFile, nodes)) {
|
|
35290
|
+
const barrelExportsForFile = barrelExports.get(sourceFile);
|
|
35291
|
+
nodesToRemove.add(node);
|
|
35292
|
+
filesToRemove.add(sourceFile);
|
|
35293
|
+
barrelExportsForFile && trackNodesToRemove(barrelExportsForFile);
|
|
35294
|
+
} else {
|
|
35295
|
+
nodesToRemove.add(node);
|
|
35296
|
+
}
|
|
35297
|
+
}
|
|
35298
|
+
})(classesToRemove);
|
|
35299
|
+
for (const node of nodesToRemove) {
|
|
35222
35300
|
const sourceFile = node.getSourceFile();
|
|
35223
|
-
if (!filesToRemove.has(sourceFile) && canRemoveFile(sourceFile,
|
|
35301
|
+
if (!filesToRemove.has(sourceFile) && canRemoveFile(sourceFile, nodesToRemove)) {
|
|
35224
35302
|
filesToRemove.add(sourceFile);
|
|
35225
35303
|
} else {
|
|
35226
35304
|
tracker.removeNode(node);
|
|
@@ -35239,17 +35317,17 @@ function collectRemovalLocations(ngModule, removalLocations, referenceResolver,
|
|
|
35239
35317
|
}
|
|
35240
35318
|
}
|
|
35241
35319
|
for (const node of nodes) {
|
|
35242
|
-
const closestArray = closestNode(node,
|
|
35320
|
+
const closestArray = closestNode(node, import_typescript108.default.isArrayLiteralExpression);
|
|
35243
35321
|
if (closestArray) {
|
|
35244
35322
|
removalLocations.arrays.track(closestArray, node);
|
|
35245
35323
|
continue;
|
|
35246
35324
|
}
|
|
35247
|
-
const closestImport = closestNode(node,
|
|
35325
|
+
const closestImport = closestNode(node, import_typescript108.default.isNamedImports);
|
|
35248
35326
|
if (closestImport) {
|
|
35249
35327
|
removalLocations.imports.track(closestImport, node);
|
|
35250
35328
|
continue;
|
|
35251
35329
|
}
|
|
35252
|
-
const closestExport = closestNode(node,
|
|
35330
|
+
const closestExport = closestNode(node, import_typescript108.default.isNamedExports);
|
|
35253
35331
|
if (closestExport) {
|
|
35254
35332
|
removalLocations.exports.track(closestExport, node);
|
|
35255
35333
|
continue;
|
|
@@ -35260,24 +35338,24 @@ function collectRemovalLocations(ngModule, removalLocations, referenceResolver,
|
|
|
35260
35338
|
function removeArrayReferences(locations, tracker) {
|
|
35261
35339
|
for (const [array, toRemove] of locations.getEntries()) {
|
|
35262
35340
|
const newElements = filterRemovedElements(array.elements, toRemove);
|
|
35263
|
-
tracker.replaceNode(array,
|
|
35341
|
+
tracker.replaceNode(array, import_typescript108.default.factory.updateArrayLiteralExpression(array, newElements));
|
|
35264
35342
|
}
|
|
35265
35343
|
}
|
|
35266
35344
|
function removeImportReferences(locations, tracker) {
|
|
35267
35345
|
for (const [namedImports, toRemove] of locations.getEntries()) {
|
|
35268
35346
|
const newElements = filterRemovedElements(namedImports.elements, toRemove);
|
|
35269
35347
|
if (newElements.length === 0) {
|
|
35270
|
-
const importClause = closestNode(namedImports,
|
|
35348
|
+
const importClause = closestNode(namedImports, import_typescript108.default.isImportClause);
|
|
35271
35349
|
if (importClause && importClause.name) {
|
|
35272
|
-
tracker.replaceNode(importClause,
|
|
35350
|
+
tracker.replaceNode(importClause, import_typescript108.default.factory.updateImportClause(importClause, importClause.isTypeOnly, importClause.name, void 0));
|
|
35273
35351
|
} else {
|
|
35274
|
-
const declaration = closestNode(namedImports,
|
|
35352
|
+
const declaration = closestNode(namedImports, import_typescript108.default.isImportDeclaration);
|
|
35275
35353
|
if (declaration) {
|
|
35276
35354
|
tracker.removeNode(declaration);
|
|
35277
35355
|
}
|
|
35278
35356
|
}
|
|
35279
35357
|
} else {
|
|
35280
|
-
tracker.replaceNode(namedImports,
|
|
35358
|
+
tracker.replaceNode(namedImports, import_typescript108.default.factory.updateNamedImports(namedImports, newElements));
|
|
35281
35359
|
}
|
|
35282
35360
|
}
|
|
35283
35361
|
}
|
|
@@ -35285,22 +35363,22 @@ function removeExportReferences(locations, tracker) {
|
|
|
35285
35363
|
for (const [namedExports, toRemove] of locations.getEntries()) {
|
|
35286
35364
|
const newElements = filterRemovedElements(namedExports.elements, toRemove);
|
|
35287
35365
|
if (newElements.length === 0) {
|
|
35288
|
-
const declaration = closestNode(namedExports,
|
|
35366
|
+
const declaration = closestNode(namedExports, import_typescript108.default.isExportDeclaration);
|
|
35289
35367
|
if (declaration) {
|
|
35290
35368
|
tracker.removeNode(declaration);
|
|
35291
35369
|
}
|
|
35292
35370
|
} else {
|
|
35293
|
-
tracker.replaceNode(namedExports,
|
|
35371
|
+
tracker.replaceNode(namedExports, import_typescript108.default.factory.updateNamedExports(namedExports, newElements));
|
|
35294
35372
|
}
|
|
35295
35373
|
}
|
|
35296
35374
|
}
|
|
35297
35375
|
function canRemoveClass(node, typeChecker) {
|
|
35298
35376
|
var _a;
|
|
35299
35377
|
const decorator = (_a = findNgModuleDecorator(node, typeChecker)) == null ? void 0 : _a.node;
|
|
35300
|
-
if (!decorator || !
|
|
35378
|
+
if (!decorator || !import_typescript108.default.isCallExpression(decorator.expression)) {
|
|
35301
35379
|
return false;
|
|
35302
35380
|
}
|
|
35303
|
-
if (decorator.expression.arguments.length > 0 && !
|
|
35381
|
+
if (decorator.expression.arguments.length > 0 && !import_typescript108.default.isObjectLiteralExpression(decorator.expression.arguments[0])) {
|
|
35304
35382
|
return false;
|
|
35305
35383
|
}
|
|
35306
35384
|
if (node.members.length > 0 && node.members.some((member) => !isEmptyConstructor(member))) {
|
|
@@ -35313,7 +35391,7 @@ function canRemoveClass(node, typeChecker) {
|
|
|
35313
35391
|
const imports = findLiteralProperty(literal3, "imports");
|
|
35314
35392
|
if (imports && isNonEmptyNgModuleProperty(imports)) {
|
|
35315
35393
|
for (const dep of imports.initializer.elements) {
|
|
35316
|
-
if (!
|
|
35394
|
+
if (!import_typescript108.default.isIdentifier(dep)) {
|
|
35317
35395
|
return false;
|
|
35318
35396
|
}
|
|
35319
35397
|
const depDeclaration = findClassDeclaration(dep, typeChecker);
|
|
@@ -35331,15 +35409,15 @@ function canRemoveClass(node, typeChecker) {
|
|
|
35331
35409
|
return true;
|
|
35332
35410
|
}
|
|
35333
35411
|
function isNonEmptyNgModuleProperty(node) {
|
|
35334
|
-
return
|
|
35412
|
+
return import_typescript108.default.isPropertyAssignment(node) && import_typescript108.default.isIdentifier(node.name) && import_typescript108.default.isArrayLiteralExpression(node.initializer) && node.initializer.elements.length > 0;
|
|
35335
35413
|
}
|
|
35336
|
-
function canRemoveFile(sourceFile,
|
|
35414
|
+
function canRemoveFile(sourceFile, nodesToBeRemoved) {
|
|
35337
35415
|
var _a;
|
|
35338
35416
|
for (const node of sourceFile.statements) {
|
|
35339
|
-
if (
|
|
35417
|
+
if (import_typescript108.default.isImportDeclaration(node) || nodesToBeRemoved.has(node)) {
|
|
35340
35418
|
continue;
|
|
35341
35419
|
}
|
|
35342
|
-
if (
|
|
35420
|
+
if (import_typescript108.default.isExportDeclaration(node) || import_typescript108.default.canHaveModifiers(node) && ((_a = import_typescript108.default.getModifiers(node)) == null ? void 0 : _a.some((m) => m.kind === import_typescript108.default.SyntaxKind.ExportKeyword))) {
|
|
35343
35421
|
return false;
|
|
35344
35422
|
}
|
|
35345
35423
|
}
|
|
@@ -35359,7 +35437,7 @@ function filterRemovedElements(elements, toRemove) {
|
|
|
35359
35437
|
});
|
|
35360
35438
|
}
|
|
35361
35439
|
function isEmptyConstructor(node) {
|
|
35362
|
-
return
|
|
35440
|
+
return import_typescript108.default.isConstructorDeclaration(node) && node.parameters.length === 0 && (node.body == null || node.body.statements.length === 0);
|
|
35363
35441
|
}
|
|
35364
35442
|
function addRemovalTodos(nodes, tracker) {
|
|
35365
35443
|
for (const node of nodes) {
|
|
@@ -35367,19 +35445,19 @@ function addRemovalTodos(nodes, tracker) {
|
|
|
35367
35445
|
}
|
|
35368
35446
|
}
|
|
35369
35447
|
function findNgModuleDecorator(node, typeChecker) {
|
|
35370
|
-
const decorators = getAngularDecorators(typeChecker,
|
|
35448
|
+
const decorators = getAngularDecorators(typeChecker, import_typescript108.default.getDecorators(node) || []);
|
|
35371
35449
|
return decorators.find((decorator) => decorator.name === "NgModule") || null;
|
|
35372
35450
|
}
|
|
35373
35451
|
|
|
35374
|
-
// bazel-out/
|
|
35452
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/standalone-bootstrap.mjs
|
|
35375
35453
|
var import_path7 = require("path");
|
|
35376
|
-
var import_typescript112 = __toESM(require("typescript"), 1);
|
|
35377
|
-
|
|
35378
|
-
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/to-standalone.mjs
|
|
35379
35454
|
var import_typescript111 = __toESM(require("typescript"), 1);
|
|
35380
35455
|
|
|
35381
|
-
// bazel-out/
|
|
35456
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/to-standalone.mjs
|
|
35382
35457
|
var import_typescript110 = __toESM(require("typescript"), 1);
|
|
35458
|
+
|
|
35459
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/symbol.mjs
|
|
35460
|
+
var import_typescript109 = __toESM(require("typescript"), 1);
|
|
35383
35461
|
function isReferenceToImport(typeChecker, node, importSpecifier) {
|
|
35384
35462
|
var _a, _b;
|
|
35385
35463
|
const nodeSymbol = typeChecker.getTypeAtLocation(node).getSymbol();
|
|
@@ -35387,13 +35465,13 @@ function isReferenceToImport(typeChecker, node, importSpecifier) {
|
|
|
35387
35465
|
return !!(((_a = nodeSymbol == null ? void 0 : nodeSymbol.declarations) == null ? void 0 : _a[0]) && ((_b = importSymbol == null ? void 0 : importSymbol.declarations) == null ? void 0 : _b[0])) && nodeSymbol.declarations[0] === importSymbol.declarations[0];
|
|
35388
35466
|
}
|
|
35389
35467
|
|
|
35390
|
-
// bazel-out/
|
|
35468
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/to-standalone.mjs
|
|
35391
35469
|
function toStandalone(sourceFiles, program, printer, fileImportRemapper, componentImportRemapper) {
|
|
35392
35470
|
const templateTypeChecker = program.compiler.getTemplateTypeChecker();
|
|
35393
35471
|
const typeChecker = program.getTsProgram().getTypeChecker();
|
|
35394
|
-
const modulesToMigrate =
|
|
35395
|
-
const testObjectsToMigrate =
|
|
35396
|
-
const declarations =
|
|
35472
|
+
const modulesToMigrate = /* @__PURE__ */ new Set();
|
|
35473
|
+
const testObjectsToMigrate = /* @__PURE__ */ new Set();
|
|
35474
|
+
const declarations = /* @__PURE__ */ new Set();
|
|
35397
35475
|
const tracker = new ChangeTracker(printer, fileImportRemapper);
|
|
35398
35476
|
for (const sourceFile of sourceFiles) {
|
|
35399
35477
|
const modules = findNgModuleClassesToMigrate(sourceFile, typeChecker);
|
|
@@ -35402,11 +35480,11 @@ function toStandalone(sourceFiles, program, printer, fileImportRemapper, compone
|
|
|
35402
35480
|
const allModuleDeclarations = extractDeclarationsFromModule(module3, templateTypeChecker);
|
|
35403
35481
|
const unbootstrappedDeclarations = filterNonBootstrappedDeclarations(allModuleDeclarations, module3, templateTypeChecker, typeChecker);
|
|
35404
35482
|
if (unbootstrappedDeclarations.length > 0) {
|
|
35405
|
-
modulesToMigrate.
|
|
35406
|
-
declarations.
|
|
35483
|
+
modulesToMigrate.add(module3);
|
|
35484
|
+
unbootstrappedDeclarations.forEach((decl) => declarations.add(decl));
|
|
35407
35485
|
}
|
|
35408
35486
|
}
|
|
35409
|
-
testObjectsToMigrate.
|
|
35487
|
+
testObjects.forEach((obj) => testObjectsToMigrate.add(obj));
|
|
35410
35488
|
}
|
|
35411
35489
|
for (const declaration of declarations) {
|
|
35412
35490
|
convertNgModuleDeclarationToStandalone(declaration, declarations, tracker, templateTypeChecker, componentImportRemapper);
|
|
@@ -35417,48 +35495,48 @@ function toStandalone(sourceFiles, program, printer, fileImportRemapper, compone
|
|
|
35417
35495
|
migrateTestDeclarations(testObjectsToMigrate, declarations, tracker, templateTypeChecker, typeChecker);
|
|
35418
35496
|
return tracker.recordChanges();
|
|
35419
35497
|
}
|
|
35420
|
-
function convertNgModuleDeclarationToStandalone(
|
|
35421
|
-
const directiveMeta = typeChecker.getDirectiveMetadata(
|
|
35498
|
+
function convertNgModuleDeclarationToStandalone(decl, allDeclarations, tracker, typeChecker, importRemapper) {
|
|
35499
|
+
const directiveMeta = typeChecker.getDirectiveMetadata(decl);
|
|
35422
35500
|
if (directiveMeta && directiveMeta.decorator && !directiveMeta.isStandalone) {
|
|
35423
35501
|
let decorator = addStandaloneToDecorator(directiveMeta.decorator);
|
|
35424
35502
|
if (directiveMeta.isComponent) {
|
|
35425
|
-
const importsToAdd = getComponentImportExpressions(
|
|
35503
|
+
const importsToAdd = getComponentImportExpressions(decl, allDeclarations, tracker, typeChecker, importRemapper);
|
|
35426
35504
|
if (importsToAdd.length > 0) {
|
|
35427
|
-
decorator = addPropertyToAngularDecorator(decorator,
|
|
35505
|
+
decorator = addPropertyToAngularDecorator(decorator, import_typescript110.default.factory.createPropertyAssignment("imports", import_typescript110.default.factory.createArrayLiteralExpression(importsToAdd)));
|
|
35428
35506
|
}
|
|
35429
35507
|
}
|
|
35430
35508
|
tracker.replaceNode(directiveMeta.decorator, decorator);
|
|
35431
35509
|
} else {
|
|
35432
|
-
const pipeMeta = typeChecker.getPipeMetadata(
|
|
35510
|
+
const pipeMeta = typeChecker.getPipeMetadata(decl);
|
|
35433
35511
|
if (pipeMeta && pipeMeta.decorator && !pipeMeta.isStandalone) {
|
|
35434
35512
|
tracker.replaceNode(pipeMeta.decorator, addStandaloneToDecorator(pipeMeta.decorator));
|
|
35435
35513
|
}
|
|
35436
35514
|
}
|
|
35437
35515
|
}
|
|
35438
|
-
function getComponentImportExpressions(
|
|
35439
|
-
const templateDependencies = findTemplateDependencies(
|
|
35440
|
-
const usedDependenciesInMigration = new Set(templateDependencies.filter((dep) => allDeclarations.
|
|
35516
|
+
function getComponentImportExpressions(decl, allDeclarations, tracker, typeChecker, importRemapper) {
|
|
35517
|
+
const templateDependencies = findTemplateDependencies(decl, typeChecker);
|
|
35518
|
+
const usedDependenciesInMigration = new Set(templateDependencies.filter((dep) => allDeclarations.has(dep.node)));
|
|
35441
35519
|
const imports = [];
|
|
35442
35520
|
const seenImports = /* @__PURE__ */ new Set();
|
|
35443
35521
|
const resolvedDependencies = [];
|
|
35444
35522
|
for (const dep of templateDependencies) {
|
|
35445
|
-
const importLocation = findImportLocation(dep,
|
|
35523
|
+
const importLocation = findImportLocation(dep, decl, usedDependenciesInMigration.has(dep) ? PotentialImportMode.ForceDirect : PotentialImportMode.Normal, typeChecker);
|
|
35446
35524
|
if (importLocation && !seenImports.has(importLocation.symbolName)) {
|
|
35447
35525
|
seenImports.add(importLocation.symbolName);
|
|
35448
35526
|
resolvedDependencies.push(importLocation);
|
|
35449
35527
|
}
|
|
35450
35528
|
}
|
|
35451
|
-
const processedDependencies = importRemapper ? importRemapper(resolvedDependencies,
|
|
35529
|
+
const processedDependencies = importRemapper ? importRemapper(resolvedDependencies, decl) : resolvedDependencies;
|
|
35452
35530
|
for (const importLocation of processedDependencies) {
|
|
35453
35531
|
if (importLocation.moduleSpecifier) {
|
|
35454
|
-
const identifier = tracker.addImport(
|
|
35532
|
+
const identifier = tracker.addImport(decl.getSourceFile(), importLocation.symbolName, importLocation.moduleSpecifier);
|
|
35455
35533
|
imports.push(identifier);
|
|
35456
35534
|
} else {
|
|
35457
|
-
const identifier =
|
|
35535
|
+
const identifier = import_typescript110.default.factory.createIdentifier(importLocation.symbolName);
|
|
35458
35536
|
if (importLocation.isForwardReference) {
|
|
35459
|
-
const forwardRefExpression = tracker.addImport(
|
|
35460
|
-
const arrowFunction =
|
|
35461
|
-
imports.push(
|
|
35537
|
+
const forwardRefExpression = tracker.addImport(decl.getSourceFile(), "forwardRef", "@angular/core");
|
|
35538
|
+
const arrowFunction = import_typescript110.default.factory.createArrowFunction(void 0, void 0, [], void 0, void 0, identifier);
|
|
35539
|
+
imports.push(import_typescript110.default.factory.createCallExpression(forwardRefExpression, void 0, [arrowFunction]));
|
|
35462
35540
|
} else {
|
|
35463
35541
|
imports.push(identifier);
|
|
35464
35542
|
}
|
|
@@ -35471,7 +35549,7 @@ function migrateNgModuleClass(node, allDeclarations, tracker, typeChecker, templ
|
|
|
35471
35549
|
const decorator = (_a = templateTypeChecker.getNgModuleMetadata(node)) == null ? void 0 : _a.decorator;
|
|
35472
35550
|
const metadata = decorator ? extractMetadataLiteral(decorator) : null;
|
|
35473
35551
|
if (metadata) {
|
|
35474
|
-
moveDeclarationsToImports(metadata, allDeclarations
|
|
35552
|
+
moveDeclarationsToImports(metadata, allDeclarations, typeChecker, templateTypeChecker, tracker);
|
|
35475
35553
|
}
|
|
35476
35554
|
}
|
|
35477
35555
|
function moveDeclarationsToImports(literal3, allDeclarations, typeChecker, templateTypeChecker, tracker) {
|
|
@@ -35483,10 +35561,10 @@ function moveDeclarationsToImports(literal3, allDeclarations, typeChecker, templ
|
|
|
35483
35561
|
const declarationsToCopy = [];
|
|
35484
35562
|
const properties = [];
|
|
35485
35563
|
const importsProp = findLiteralProperty(literal3, "imports");
|
|
35486
|
-
if (
|
|
35487
|
-
if (
|
|
35564
|
+
if (import_typescript110.default.isPropertyAssignment(declarationsProp)) {
|
|
35565
|
+
if (import_typescript110.default.isArrayLiteralExpression(declarationsProp.initializer)) {
|
|
35488
35566
|
for (const el of declarationsProp.initializer.elements) {
|
|
35489
|
-
if (
|
|
35567
|
+
if (import_typescript110.default.isIdentifier(el)) {
|
|
35490
35568
|
const correspondingClass = findClassDeclaration(el, typeChecker);
|
|
35491
35569
|
if (!correspondingClass || isStandaloneDeclaration(correspondingClass, allDeclarations, templateTypeChecker)) {
|
|
35492
35570
|
declarationsToCopy.push(el);
|
|
@@ -35498,11 +35576,11 @@ function moveDeclarationsToImports(literal3, allDeclarations, typeChecker, templ
|
|
|
35498
35576
|
}
|
|
35499
35577
|
}
|
|
35500
35578
|
} else {
|
|
35501
|
-
declarationsToCopy.push(
|
|
35579
|
+
declarationsToCopy.push(import_typescript110.default.factory.createSpreadElement(declarationsProp.initializer));
|
|
35502
35580
|
}
|
|
35503
35581
|
}
|
|
35504
35582
|
if (!importsProp && declarationsToCopy.length > 0) {
|
|
35505
|
-
properties.push(
|
|
35583
|
+
properties.push(import_typescript110.default.factory.createPropertyAssignment("imports", import_typescript110.default.factory.createArrayLiteralExpression(declarationsToCopy)));
|
|
35506
35584
|
}
|
|
35507
35585
|
for (const prop of literal3.properties) {
|
|
35508
35586
|
if (!isNamedPropertyAssignment(prop)) {
|
|
@@ -35511,46 +35589,46 @@ function moveDeclarationsToImports(literal3, allDeclarations, typeChecker, templ
|
|
|
35511
35589
|
}
|
|
35512
35590
|
if (prop === declarationsProp) {
|
|
35513
35591
|
if (declarationsToPreserve.length > 0) {
|
|
35514
|
-
properties.push(
|
|
35592
|
+
properties.push(import_typescript110.default.factory.updatePropertyAssignment(prop, prop.name, import_typescript110.default.factory.createArrayLiteralExpression(declarationsToPreserve)));
|
|
35515
35593
|
}
|
|
35516
35594
|
continue;
|
|
35517
35595
|
}
|
|
35518
35596
|
if (prop === importsProp && declarationsToCopy.length > 0) {
|
|
35519
35597
|
let initializer;
|
|
35520
|
-
if (
|
|
35521
|
-
initializer =
|
|
35598
|
+
if (import_typescript110.default.isArrayLiteralExpression(prop.initializer)) {
|
|
35599
|
+
initializer = import_typescript110.default.factory.updateArrayLiteralExpression(prop.initializer, [...prop.initializer.elements, ...declarationsToCopy]);
|
|
35522
35600
|
} else {
|
|
35523
|
-
initializer =
|
|
35601
|
+
initializer = import_typescript110.default.factory.createArrayLiteralExpression([import_typescript110.default.factory.createSpreadElement(prop.initializer), ...declarationsToCopy]);
|
|
35524
35602
|
}
|
|
35525
|
-
properties.push(
|
|
35603
|
+
properties.push(import_typescript110.default.factory.updatePropertyAssignment(prop, prop.name, initializer));
|
|
35526
35604
|
continue;
|
|
35527
35605
|
}
|
|
35528
35606
|
properties.push(prop);
|
|
35529
35607
|
}
|
|
35530
|
-
tracker.replaceNode(literal3,
|
|
35608
|
+
tracker.replaceNode(literal3, import_typescript110.default.factory.updateObjectLiteralExpression(literal3, properties), import_typescript110.default.EmitHint.Expression);
|
|
35531
35609
|
}
|
|
35532
35610
|
function addStandaloneToDecorator(node) {
|
|
35533
|
-
return addPropertyToAngularDecorator(node,
|
|
35611
|
+
return addPropertyToAngularDecorator(node, import_typescript110.default.factory.createPropertyAssignment("standalone", import_typescript110.default.factory.createToken(import_typescript110.default.SyntaxKind.TrueKeyword)));
|
|
35534
35612
|
}
|
|
35535
35613
|
function addPropertyToAngularDecorator(node, property) {
|
|
35536
|
-
if (!
|
|
35614
|
+
if (!import_typescript110.default.isCallExpression(node.expression) || node.expression.arguments.length > 1) {
|
|
35537
35615
|
return node;
|
|
35538
35616
|
}
|
|
35539
35617
|
let literalProperties;
|
|
35540
35618
|
if (node.expression.arguments.length === 0) {
|
|
35541
35619
|
literalProperties = [property];
|
|
35542
|
-
} else if (
|
|
35620
|
+
} else if (import_typescript110.default.isObjectLiteralExpression(node.expression.arguments[0])) {
|
|
35543
35621
|
literalProperties = [...node.expression.arguments[0].properties, property];
|
|
35544
35622
|
} else {
|
|
35545
35623
|
return node;
|
|
35546
35624
|
}
|
|
35547
|
-
return
|
|
35625
|
+
return import_typescript110.default.factory.createDecorator(import_typescript110.default.factory.createCallExpression(node.expression.expression, node.expression.typeArguments, [import_typescript110.default.factory.createObjectLiteralExpression(literalProperties, literalProperties.length > 1)]));
|
|
35548
35626
|
}
|
|
35549
35627
|
function isNamedPropertyAssignment(node) {
|
|
35550
|
-
return
|
|
35628
|
+
return import_typescript110.default.isPropertyAssignment(node) && node.name && import_typescript110.default.isIdentifier(node.name);
|
|
35551
35629
|
}
|
|
35552
35630
|
function findImportLocation(target, inComponent, importMode, typeChecker) {
|
|
35553
|
-
const importLocations = typeChecker.getPotentialImportsFor(target, inComponent
|
|
35631
|
+
const importLocations = typeChecker.getPotentialImportsFor(target, inComponent, importMode);
|
|
35554
35632
|
let firstSameFileImport = null;
|
|
35555
35633
|
let firstModuleImport = null;
|
|
35556
35634
|
for (const location of importLocations) {
|
|
@@ -35567,14 +35645,14 @@ function findImportLocation(target, inComponent, importMode, typeChecker) {
|
|
|
35567
35645
|
return firstSameFileImport || firstModuleImport || importLocations[0] || null;
|
|
35568
35646
|
}
|
|
35569
35647
|
function hasNgModuleMetadataElements(node) {
|
|
35570
|
-
return
|
|
35648
|
+
return import_typescript110.default.isPropertyAssignment(node) && (!import_typescript110.default.isArrayLiteralExpression(node.initializer) || node.initializer.elements.length > 0);
|
|
35571
35649
|
}
|
|
35572
35650
|
function findNgModuleClassesToMigrate(sourceFile, typeChecker) {
|
|
35573
35651
|
const modules = [];
|
|
35574
35652
|
if (getImportSpecifier(sourceFile, "@angular/core", "NgModule")) {
|
|
35575
35653
|
sourceFile.forEachChild(function walk(node) {
|
|
35576
|
-
if (
|
|
35577
|
-
const decorator = getAngularDecorators(typeChecker,
|
|
35654
|
+
if (import_typescript110.default.isClassDeclaration(node)) {
|
|
35655
|
+
const decorator = getAngularDecorators(typeChecker, import_typescript110.default.getDecorators(node) || []).find((current) => current.name === "NgModule");
|
|
35578
35656
|
const metadata = decorator ? extractMetadataLiteral(decorator.node) : null;
|
|
35579
35657
|
if (metadata) {
|
|
35580
35658
|
const declarations = findLiteralProperty(metadata, "declarations");
|
|
@@ -35594,8 +35672,8 @@ function findTestObjectsToMigrate(sourceFile, typeChecker) {
|
|
|
35594
35672
|
const catalystImport = getImportSpecifier(sourceFile, /testing\/catalyst$/, "setupModule");
|
|
35595
35673
|
if (testBedImport || catalystImport) {
|
|
35596
35674
|
sourceFile.forEachChild(function walk(node) {
|
|
35597
|
-
if (
|
|
35598
|
-
if (testBedImport &&
|
|
35675
|
+
if (import_typescript110.default.isCallExpression(node) && node.arguments.length > 0 && import_typescript110.default.isObjectLiteralExpression(node.arguments[0])) {
|
|
35676
|
+
if (testBedImport && import_typescript110.default.isPropertyAccessExpression(node.expression) && node.expression.name.text === "configureTestingModule" && isReferenceToImport(typeChecker, node.expression.expression, testBedImport) || catalystImport && import_typescript110.default.isIdentifier(node.expression) && isReferenceToImport(typeChecker, node.expression, catalystImport)) {
|
|
35599
35677
|
testObjects.push(node.arguments[0]);
|
|
35600
35678
|
}
|
|
35601
35679
|
}
|
|
@@ -35604,21 +35682,21 @@ function findTestObjectsToMigrate(sourceFile, typeChecker) {
|
|
|
35604
35682
|
}
|
|
35605
35683
|
return testObjects;
|
|
35606
35684
|
}
|
|
35607
|
-
function findTemplateDependencies(
|
|
35685
|
+
function findTemplateDependencies(decl, typeChecker) {
|
|
35608
35686
|
const results = [];
|
|
35609
|
-
const usedDirectives = typeChecker.getUsedDirectives(
|
|
35610
|
-
const usedPipes = typeChecker.getUsedPipes(
|
|
35687
|
+
const usedDirectives = typeChecker.getUsedDirectives(decl);
|
|
35688
|
+
const usedPipes = typeChecker.getUsedPipes(decl);
|
|
35611
35689
|
if (usedDirectives !== null) {
|
|
35612
35690
|
for (const dir of usedDirectives) {
|
|
35613
|
-
if (
|
|
35691
|
+
if (import_typescript110.default.isClassDeclaration(dir.ref.node)) {
|
|
35614
35692
|
results.push(dir.ref);
|
|
35615
35693
|
}
|
|
35616
35694
|
}
|
|
35617
35695
|
}
|
|
35618
35696
|
if (usedPipes !== null) {
|
|
35619
|
-
const potentialPipes = typeChecker.getPotentialPipes(
|
|
35697
|
+
const potentialPipes = typeChecker.getPotentialPipes(decl);
|
|
35620
35698
|
for (const pipe of potentialPipes) {
|
|
35621
|
-
if (
|
|
35699
|
+
if (import_typescript110.default.isClassDeclaration(pipe.ref.node) && usedPipes.some((current) => pipe.name === current)) {
|
|
35622
35700
|
results.push(pipe.ref);
|
|
35623
35701
|
}
|
|
35624
35702
|
}
|
|
@@ -35632,42 +35710,42 @@ function filterNonBootstrappedDeclarations(declarations, ngModule, templateTypeC
|
|
|
35632
35710
|
if (!bootstrapProp) {
|
|
35633
35711
|
return declarations;
|
|
35634
35712
|
}
|
|
35635
|
-
if (!
|
|
35713
|
+
if (!import_typescript110.default.isPropertyAssignment(bootstrapProp) || !import_typescript110.default.isArrayLiteralExpression(bootstrapProp.initializer)) {
|
|
35636
35714
|
return [];
|
|
35637
35715
|
}
|
|
35638
35716
|
const bootstrappedClasses = /* @__PURE__ */ new Set();
|
|
35639
35717
|
for (const el of bootstrapProp.initializer.elements) {
|
|
35640
|
-
const referencedClass =
|
|
35718
|
+
const referencedClass = import_typescript110.default.isIdentifier(el) ? findClassDeclaration(el, typeChecker) : null;
|
|
35641
35719
|
if (referencedClass) {
|
|
35642
35720
|
bootstrappedClasses.add(referencedClass);
|
|
35643
35721
|
} else {
|
|
35644
35722
|
return [];
|
|
35645
35723
|
}
|
|
35646
35724
|
}
|
|
35647
|
-
return declarations.filter((ref) => !bootstrappedClasses.has(ref
|
|
35725
|
+
return declarations.filter((ref) => !bootstrappedClasses.has(ref));
|
|
35648
35726
|
}
|
|
35649
35727
|
function extractDeclarationsFromModule(ngModule, templateTypeChecker) {
|
|
35650
35728
|
const metadata = templateTypeChecker.getNgModuleMetadata(ngModule);
|
|
35651
|
-
return metadata ? metadata.declarations.filter((decl) =>
|
|
35729
|
+
return metadata ? metadata.declarations.filter((decl) => import_typescript110.default.isClassDeclaration(decl.node)).map((decl) => decl.node) : [];
|
|
35652
35730
|
}
|
|
35653
35731
|
function migrateTestDeclarations(testObjects, declarationsOutsideOfTestFiles, tracker, templateTypeChecker, typeChecker) {
|
|
35654
35732
|
const { decorators, componentImports } = analyzeTestingModules(testObjects, typeChecker);
|
|
35655
|
-
const allDeclarations = declarationsOutsideOfTestFiles
|
|
35733
|
+
const allDeclarations = new Set(declarationsOutsideOfTestFiles);
|
|
35656
35734
|
for (const decorator of decorators) {
|
|
35657
|
-
const closestClass = closestNode(decorator.node,
|
|
35735
|
+
const closestClass = closestNode(decorator.node, import_typescript110.default.isClassDeclaration);
|
|
35658
35736
|
if (decorator.name === "Pipe" || decorator.name === "Directive") {
|
|
35659
35737
|
tracker.replaceNode(decorator.node, addStandaloneToDecorator(decorator.node));
|
|
35660
35738
|
if (closestClass) {
|
|
35661
|
-
allDeclarations.
|
|
35739
|
+
allDeclarations.add(closestClass);
|
|
35662
35740
|
}
|
|
35663
35741
|
} else if (decorator.name === "Component") {
|
|
35664
35742
|
const newDecorator = addStandaloneToDecorator(decorator.node);
|
|
35665
35743
|
const importsToAdd = componentImports.get(decorator.node);
|
|
35666
35744
|
if (closestClass) {
|
|
35667
|
-
allDeclarations.
|
|
35745
|
+
allDeclarations.add(closestClass);
|
|
35668
35746
|
}
|
|
35669
35747
|
if (importsToAdd && importsToAdd.size > 0) {
|
|
35670
|
-
tracker.replaceNode(decorator.node, addPropertyToAngularDecorator(newDecorator,
|
|
35748
|
+
tracker.replaceNode(decorator.node, addPropertyToAngularDecorator(newDecorator, import_typescript110.default.factory.createPropertyAssignment("imports", import_typescript110.default.factory.createArrayLiteralExpression(Array.from(importsToAdd)))));
|
|
35671
35749
|
} else {
|
|
35672
35750
|
tracker.replaceNode(decorator.node, newDecorator);
|
|
35673
35751
|
}
|
|
@@ -35687,12 +35765,14 @@ function analyzeTestingModules(testObjects, typeChecker) {
|
|
|
35687
35765
|
continue;
|
|
35688
35766
|
}
|
|
35689
35767
|
const importsProp = findLiteralProperty(obj, "imports");
|
|
35690
|
-
const importElements = importsProp && hasNgModuleMetadataElements(importsProp) ? importsProp.initializer.elements.filter((el) =>
|
|
35768
|
+
const importElements = importsProp && hasNgModuleMetadataElements(importsProp) ? importsProp.initializer.elements.filter((el) => {
|
|
35769
|
+
return !import_typescript110.default.isCallExpression(el) && !isClassReferenceInAngularModule(el, /^BrowserAnimationsModule|NoopAnimationsModule$/, "platform-browser/animations", typeChecker);
|
|
35770
|
+
}) : null;
|
|
35691
35771
|
for (const decl of declarations) {
|
|
35692
35772
|
if (seenDeclarations.has(decl)) {
|
|
35693
35773
|
continue;
|
|
35694
35774
|
}
|
|
35695
|
-
const [decorator] = getAngularDecorators(typeChecker,
|
|
35775
|
+
const [decorator] = getAngularDecorators(typeChecker, import_typescript110.default.getDecorators(decl) || []);
|
|
35696
35776
|
if (decorator) {
|
|
35697
35777
|
seenDeclarations.add(decl);
|
|
35698
35778
|
decorators.push(decorator);
|
|
@@ -35723,28 +35803,28 @@ function extractDeclarationsFromTestObject(obj, typeChecker) {
|
|
|
35723
35803
|
return results;
|
|
35724
35804
|
}
|
|
35725
35805
|
function extractMetadataLiteral(decorator) {
|
|
35726
|
-
return
|
|
35806
|
+
return import_typescript110.default.isCallExpression(decorator.expression) && decorator.expression.arguments.length === 1 && import_typescript110.default.isObjectLiteralExpression(decorator.expression.arguments[0]) ? decorator.expression.arguments[0] : null;
|
|
35727
35807
|
}
|
|
35728
35808
|
function isStandaloneDeclaration(node, declarationsInMigration, templateTypeChecker) {
|
|
35729
|
-
if (declarationsInMigration.
|
|
35809
|
+
if (declarationsInMigration.has(node)) {
|
|
35730
35810
|
return true;
|
|
35731
35811
|
}
|
|
35732
35812
|
const metadata = templateTypeChecker.getDirectiveMetadata(node) || templateTypeChecker.getPipeMetadata(node);
|
|
35733
35813
|
return metadata != null && metadata.isStandalone;
|
|
35734
35814
|
}
|
|
35735
35815
|
|
|
35736
|
-
// bazel-out/
|
|
35816
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/standalone-bootstrap.mjs
|
|
35737
35817
|
function toStandaloneBootstrap(program, host, basePath, rootFileNames, sourceFiles, printer, importRemapper, referenceLookupExcludedFiles, componentImportRemapper) {
|
|
35738
35818
|
const tracker = new ChangeTracker(printer, importRemapper);
|
|
35739
35819
|
const typeChecker = program.getTsProgram().getTypeChecker();
|
|
35740
35820
|
const templateTypeChecker = program.compiler.getTemplateTypeChecker();
|
|
35741
35821
|
const referenceResolver = new ReferenceResolver(program, host, rootFileNames, basePath, referenceLookupExcludedFiles);
|
|
35742
35822
|
const bootstrapCalls = [];
|
|
35743
|
-
const testObjects =
|
|
35744
|
-
const allDeclarations =
|
|
35823
|
+
const testObjects = /* @__PURE__ */ new Set();
|
|
35824
|
+
const allDeclarations = /* @__PURE__ */ new Set();
|
|
35745
35825
|
for (const sourceFile of sourceFiles) {
|
|
35746
35826
|
sourceFile.forEachChild(function walk(node) {
|
|
35747
|
-
if (
|
|
35827
|
+
if (import_typescript111.default.isCallExpression(node) && import_typescript111.default.isPropertyAccessExpression(node.expression) && node.expression.name.text === "bootstrapModule" && isClassReferenceInAngularModule(node.expression, "PlatformRef", "core", typeChecker)) {
|
|
35748
35828
|
const call = analyzeBootstrapCall(node, typeChecker, templateTypeChecker);
|
|
35749
35829
|
if (call) {
|
|
35750
35830
|
bootstrapCalls.push(call);
|
|
@@ -35752,10 +35832,10 @@ function toStandaloneBootstrap(program, host, basePath, rootFileNames, sourceFil
|
|
|
35752
35832
|
}
|
|
35753
35833
|
node.forEachChild(walk);
|
|
35754
35834
|
});
|
|
35755
|
-
|
|
35835
|
+
findTestObjectsToMigrate(sourceFile, typeChecker).forEach((obj) => testObjects.add(obj));
|
|
35756
35836
|
}
|
|
35757
35837
|
for (const call of bootstrapCalls) {
|
|
35758
|
-
|
|
35838
|
+
call.declarations.forEach((decl) => allDeclarations.add(decl));
|
|
35759
35839
|
migrateBootstrapCall(call, tracker, referenceResolver, typeChecker, printer);
|
|
35760
35840
|
}
|
|
35761
35841
|
for (const declaration of allDeclarations) {
|
|
@@ -35765,24 +35845,24 @@ function toStandaloneBootstrap(program, host, basePath, rootFileNames, sourceFil
|
|
|
35765
35845
|
return tracker.recordChanges();
|
|
35766
35846
|
}
|
|
35767
35847
|
function analyzeBootstrapCall(call, typeChecker, templateTypeChecker) {
|
|
35768
|
-
if (call.arguments.length === 0 || !
|
|
35848
|
+
if (call.arguments.length === 0 || !import_typescript111.default.isIdentifier(call.arguments[0])) {
|
|
35769
35849
|
return null;
|
|
35770
35850
|
}
|
|
35771
35851
|
const declaration = findClassDeclaration(call.arguments[0], typeChecker);
|
|
35772
35852
|
if (!declaration) {
|
|
35773
35853
|
return null;
|
|
35774
35854
|
}
|
|
35775
|
-
const decorator = getAngularDecorators(typeChecker,
|
|
35776
|
-
if (!decorator || decorator.node.expression.arguments.length === 0 || !
|
|
35855
|
+
const decorator = getAngularDecorators(typeChecker, import_typescript111.default.getDecorators(declaration) || []).find((decorator2) => decorator2.name === "NgModule");
|
|
35856
|
+
if (!decorator || decorator.node.expression.arguments.length === 0 || !import_typescript111.default.isObjectLiteralExpression(decorator.node.expression.arguments[0])) {
|
|
35777
35857
|
return null;
|
|
35778
35858
|
}
|
|
35779
35859
|
const metadata = decorator.node.expression.arguments[0];
|
|
35780
35860
|
const bootstrapProp = findLiteralProperty(metadata, "bootstrap");
|
|
35781
|
-
if (!bootstrapProp || !
|
|
35861
|
+
if (!bootstrapProp || !import_typescript111.default.isPropertyAssignment(bootstrapProp) || !import_typescript111.default.isArrayLiteralExpression(bootstrapProp.initializer) || bootstrapProp.initializer.elements.length === 0 || !import_typescript111.default.isIdentifier(bootstrapProp.initializer.elements[0])) {
|
|
35782
35862
|
return null;
|
|
35783
35863
|
}
|
|
35784
35864
|
const component = findClassDeclaration(bootstrapProp.initializer.elements[0], typeChecker);
|
|
35785
|
-
if (component && component.name &&
|
|
35865
|
+
if (component && component.name && import_typescript111.default.isIdentifier(component.name)) {
|
|
35786
35866
|
return {
|
|
35787
35867
|
module: declaration,
|
|
35788
35868
|
metadata,
|
|
@@ -35804,16 +35884,16 @@ function migrateBootstrapCall(analysis, tracker, referenceResolver, typeChecker,
|
|
|
35804
35884
|
let nodeLookup = null;
|
|
35805
35885
|
tracker.insertText(moduleSourceFile, analysis.metadata.getStart(), "/* TODO(standalone-migration): clean up removed NgModule class manually. \n");
|
|
35806
35886
|
tracker.insertText(moduleSourceFile, analysis.metadata.getEnd(), " */");
|
|
35807
|
-
if (providers &&
|
|
35887
|
+
if (providers && import_typescript111.default.isPropertyAssignment(providers)) {
|
|
35808
35888
|
nodeLookup = nodeLookup || getNodeLookup(moduleSourceFile);
|
|
35809
|
-
if (
|
|
35889
|
+
if (import_typescript111.default.isArrayLiteralExpression(providers.initializer)) {
|
|
35810
35890
|
providersInNewCall.push(...providers.initializer.elements);
|
|
35811
35891
|
} else {
|
|
35812
|
-
providersInNewCall.push(
|
|
35892
|
+
providersInNewCall.push(import_typescript111.default.factory.createSpreadElement(providers.initializer));
|
|
35813
35893
|
}
|
|
35814
35894
|
addNodesToCopy(sourceFile, providers, nodeLookup, tracker, nodesToCopy, referenceResolver);
|
|
35815
35895
|
}
|
|
35816
|
-
if (imports &&
|
|
35896
|
+
if (imports && import_typescript111.default.isPropertyAssignment(imports)) {
|
|
35817
35897
|
nodeLookup = nodeLookup || getNodeLookup(moduleSourceFile);
|
|
35818
35898
|
migrateImportsForBootstrapCall(sourceFile, imports, nodeLookup, moduleImportsInNewCall, providersInNewCall, tracker, nodesToCopy, referenceResolver, typeChecker);
|
|
35819
35899
|
}
|
|
@@ -35824,7 +35904,7 @@ function migrateBootstrapCall(analysis, tracker, referenceResolver, typeChecker,
|
|
|
35824
35904
|
if (transformedNode === node) {
|
|
35825
35905
|
text += transformedNode.getText() + "\n";
|
|
35826
35906
|
} else {
|
|
35827
|
-
text += printer.printNode(
|
|
35907
|
+
text += printer.printNode(import_typescript111.default.EmitHint.Unspecified, transformedNode, node.getSourceFile());
|
|
35828
35908
|
}
|
|
35829
35909
|
});
|
|
35830
35910
|
text += "\n";
|
|
@@ -35841,30 +35921,30 @@ function replaceBootstrapCallExpression(analysis, providers, modules, tracker) {
|
|
|
35841
35921
|
const combinedProviders = [];
|
|
35842
35922
|
if (modules.length > 0) {
|
|
35843
35923
|
const importProvidersExpression = tracker.addImport(sourceFile, "importProvidersFrom", "@angular/core");
|
|
35844
|
-
combinedProviders.push(
|
|
35924
|
+
combinedProviders.push(import_typescript111.default.factory.createCallExpression(importProvidersExpression, [], modules));
|
|
35845
35925
|
}
|
|
35846
35926
|
combinedProviders.push(...providers);
|
|
35847
|
-
const initializer = remapDynamicImports(sourceFile.fileName,
|
|
35848
|
-
args.push(
|
|
35927
|
+
const initializer = remapDynamicImports(sourceFile.fileName, import_typescript111.default.factory.createArrayLiteralExpression(combinedProviders, combinedProviders.length > 1));
|
|
35928
|
+
args.push(import_typescript111.default.factory.createObjectLiteralExpression([import_typescript111.default.factory.createPropertyAssignment("providers", initializer)], true));
|
|
35849
35929
|
}
|
|
35850
35930
|
tracker.replaceNode(
|
|
35851
35931
|
analysis.call,
|
|
35852
|
-
|
|
35932
|
+
import_typescript111.default.factory.createCallExpression(bootstrapExpression, [], args),
|
|
35853
35933
|
void 0,
|
|
35854
35934
|
analysis.metadata.getSourceFile()
|
|
35855
35935
|
);
|
|
35856
35936
|
}
|
|
35857
35937
|
function migrateImportsForBootstrapCall(sourceFile, imports, nodeLookup, importsForNewCall, providersInNewCall, tracker, nodesToCopy, referenceResolver, typeChecker) {
|
|
35858
|
-
if (!
|
|
35938
|
+
if (!import_typescript111.default.isArrayLiteralExpression(imports.initializer)) {
|
|
35859
35939
|
importsForNewCall.push(imports.initializer);
|
|
35860
35940
|
return;
|
|
35861
35941
|
}
|
|
35862
35942
|
for (const element of imports.initializer.elements) {
|
|
35863
|
-
if (
|
|
35943
|
+
if (import_typescript111.default.isCallExpression(element) && import_typescript111.default.isPropertyAccessExpression(element.expression) && element.arguments.length > 0 && element.expression.name.text === "forRoot" && isClassReferenceInAngularModule(element.expression.expression, "RouterModule", "router", typeChecker)) {
|
|
35864
35944
|
const options = element.arguments[1];
|
|
35865
35945
|
const features = options ? getRouterModuleForRootFeatures(sourceFile, options, tracker) : [];
|
|
35866
35946
|
if (features !== null) {
|
|
35867
|
-
providersInNewCall.push(
|
|
35947
|
+
providersInNewCall.push(import_typescript111.default.factory.createCallExpression(tracker.addImport(sourceFile, "provideRouter", "@angular/router"), [], [element.arguments[0], ...features]));
|
|
35868
35948
|
addNodesToCopy(sourceFile, element.arguments[0], nodeLookup, tracker, nodesToCopy, referenceResolver);
|
|
35869
35949
|
if (options) {
|
|
35870
35950
|
addNodesToCopy(sourceFile, options, nodeLookup, tracker, nodesToCopy, referenceResolver);
|
|
@@ -35872,21 +35952,30 @@ function migrateImportsForBootstrapCall(sourceFile, imports, nodeLookup, imports
|
|
|
35872
35952
|
continue;
|
|
35873
35953
|
}
|
|
35874
35954
|
}
|
|
35875
|
-
if (
|
|
35955
|
+
if (import_typescript111.default.isIdentifier(element)) {
|
|
35876
35956
|
const animationsModule = "platform-browser/animations";
|
|
35877
35957
|
const animationsImport = `@angular/${animationsModule}`;
|
|
35878
35958
|
if (isClassReferenceInAngularModule(element, "BrowserAnimationsModule", animationsModule, typeChecker)) {
|
|
35879
|
-
providersInNewCall.push(
|
|
35959
|
+
providersInNewCall.push(import_typescript111.default.factory.createCallExpression(tracker.addImport(sourceFile, "provideAnimations", animationsImport), [], []));
|
|
35880
35960
|
continue;
|
|
35881
35961
|
}
|
|
35882
35962
|
if (isClassReferenceInAngularModule(element, "NoopAnimationsModule", animationsModule, typeChecker)) {
|
|
35883
|
-
providersInNewCall.push(
|
|
35963
|
+
providersInNewCall.push(import_typescript111.default.factory.createCallExpression(tracker.addImport(sourceFile, "provideNoopAnimations", animationsImport), [], []));
|
|
35964
|
+
continue;
|
|
35965
|
+
}
|
|
35966
|
+
const httpClientModule = "common/http";
|
|
35967
|
+
const httpClientImport = `@angular/${httpClientModule}`;
|
|
35968
|
+
if (isClassReferenceInAngularModule(element, "HttpClientModule", httpClientModule, typeChecker)) {
|
|
35969
|
+
const callArgs = [
|
|
35970
|
+
import_typescript111.default.factory.createCallExpression(tracker.addImport(sourceFile, "withInterceptorsFromDi", httpClientImport), [], [])
|
|
35971
|
+
];
|
|
35972
|
+
providersInNewCall.push(import_typescript111.default.factory.createCallExpression(tracker.addImport(sourceFile, "provideHttpClient", httpClientImport), [], callArgs));
|
|
35884
35973
|
continue;
|
|
35885
35974
|
}
|
|
35886
35975
|
}
|
|
35887
|
-
const target =
|
|
35976
|
+
const target = import_typescript111.default.isCallExpression(element) && import_typescript111.default.isPropertyAccessExpression(element.expression) ? element.expression.expression : element;
|
|
35888
35977
|
const classDeclaration = findClassDeclaration(target, typeChecker);
|
|
35889
|
-
const decorators = classDeclaration ? getAngularDecorators(typeChecker,
|
|
35978
|
+
const decorators = classDeclaration ? getAngularDecorators(typeChecker, import_typescript111.default.getDecorators(classDeclaration) || []) : void 0;
|
|
35890
35979
|
if (!decorators || decorators.length === 0 || decorators.every(({ name }) => name !== "Directive" && name !== "Component" && name !== "Pipe")) {
|
|
35891
35980
|
importsForNewCall.push(element);
|
|
35892
35981
|
addNodesToCopy(sourceFile, element, nodeLookup, tracker, nodesToCopy, referenceResolver);
|
|
@@ -35894,7 +35983,7 @@ function migrateImportsForBootstrapCall(sourceFile, imports, nodeLookup, imports
|
|
|
35894
35983
|
}
|
|
35895
35984
|
}
|
|
35896
35985
|
function getRouterModuleForRootFeatures(sourceFile, options, tracker) {
|
|
35897
|
-
if (!
|
|
35986
|
+
if (!import_typescript111.default.isObjectLiteralExpression(options)) {
|
|
35898
35987
|
return null;
|
|
35899
35988
|
}
|
|
35900
35989
|
const featureExpressions = [];
|
|
@@ -35902,7 +35991,7 @@ function getRouterModuleForRootFeatures(sourceFile, options, tracker) {
|
|
|
35902
35991
|
const inMemoryScrollingOptions = [];
|
|
35903
35992
|
const features = new UniqueItemTracker();
|
|
35904
35993
|
for (const prop of options.properties) {
|
|
35905
|
-
if (!
|
|
35994
|
+
if (!import_typescript111.default.isPropertyAssignment(prop) || !import_typescript111.default.isIdentifier(prop.name) && !import_typescript111.default.isStringLiteralLike(prop.name)) {
|
|
35906
35995
|
return null;
|
|
35907
35996
|
}
|
|
35908
35997
|
switch (prop.name.text) {
|
|
@@ -35910,12 +35999,12 @@ function getRouterModuleForRootFeatures(sourceFile, options, tracker) {
|
|
|
35910
35999
|
features.track("withPreloading", prop.initializer);
|
|
35911
36000
|
break;
|
|
35912
36001
|
case "enableTracing":
|
|
35913
|
-
if (prop.initializer.kind ===
|
|
36002
|
+
if (prop.initializer.kind === import_typescript111.default.SyntaxKind.TrueKeyword) {
|
|
35914
36003
|
features.track("withDebugTracing", null);
|
|
35915
36004
|
}
|
|
35916
36005
|
break;
|
|
35917
36006
|
case "initialNavigation":
|
|
35918
|
-
if (!
|
|
36007
|
+
if (!import_typescript111.default.isStringLiteralLike(prop.initializer)) {
|
|
35919
36008
|
return null;
|
|
35920
36009
|
}
|
|
35921
36010
|
if (prop.initializer.text === "enabledBlocking" || prop.initializer.text === "enabled") {
|
|
@@ -35925,7 +36014,7 @@ function getRouterModuleForRootFeatures(sourceFile, options, tracker) {
|
|
|
35925
36014
|
}
|
|
35926
36015
|
break;
|
|
35927
36016
|
case "useHash":
|
|
35928
|
-
if (prop.initializer.kind ===
|
|
36017
|
+
if (prop.initializer.kind === import_typescript111.default.SyntaxKind.TrueKeyword) {
|
|
35929
36018
|
features.track("withHashLocation", null);
|
|
35930
36019
|
}
|
|
35931
36020
|
break;
|
|
@@ -35942,10 +36031,10 @@ function getRouterModuleForRootFeatures(sourceFile, options, tracker) {
|
|
|
35942
36031
|
}
|
|
35943
36032
|
}
|
|
35944
36033
|
if (inMemoryScrollingOptions.length > 0) {
|
|
35945
|
-
features.track("withInMemoryScrolling",
|
|
36034
|
+
features.track("withInMemoryScrolling", import_typescript111.default.factory.createObjectLiteralExpression(inMemoryScrollingOptions));
|
|
35946
36035
|
}
|
|
35947
36036
|
if (configOptions.length > 0) {
|
|
35948
|
-
features.track("withRouterConfig",
|
|
36037
|
+
features.track("withRouterConfig", import_typescript111.default.factory.createObjectLiteralExpression(configOptions));
|
|
35949
36038
|
}
|
|
35950
36039
|
for (const [feature, featureArgs] of features.getEntries()) {
|
|
35951
36040
|
const callArgs = [];
|
|
@@ -35954,25 +36043,25 @@ function getRouterModuleForRootFeatures(sourceFile, options, tracker) {
|
|
|
35954
36043
|
callArgs.push(arg);
|
|
35955
36044
|
}
|
|
35956
36045
|
});
|
|
35957
|
-
featureExpressions.push(
|
|
36046
|
+
featureExpressions.push(import_typescript111.default.factory.createCallExpression(tracker.addImport(sourceFile, feature, "@angular/router"), [], callArgs));
|
|
35958
36047
|
}
|
|
35959
36048
|
return featureExpressions;
|
|
35960
36049
|
}
|
|
35961
36050
|
function addNodesToCopy(targetFile, rootNode, nodeLookup, tracker, nodesToCopy, referenceResolver) {
|
|
35962
36051
|
const refs = findAllSameFileReferences(rootNode, nodeLookup, referenceResolver);
|
|
35963
36052
|
for (const ref of refs) {
|
|
35964
|
-
const importSpecifier = closestOrSelf(ref,
|
|
35965
|
-
const importDeclaration = importSpecifier ? closestNode(importSpecifier,
|
|
35966
|
-
if (importDeclaration && importSpecifier &&
|
|
36053
|
+
const importSpecifier = closestOrSelf(ref, import_typescript111.default.isImportSpecifier);
|
|
36054
|
+
const importDeclaration = importSpecifier ? closestNode(importSpecifier, import_typescript111.default.isImportDeclaration) : null;
|
|
36055
|
+
if (importDeclaration && importSpecifier && import_typescript111.default.isStringLiteralLike(importDeclaration.moduleSpecifier)) {
|
|
35967
36056
|
const moduleName = importDeclaration.moduleSpecifier.text.startsWith(".") ? remapRelativeImport(targetFile.fileName, importDeclaration.moduleSpecifier) : importDeclaration.moduleSpecifier.text;
|
|
35968
36057
|
const symbolName = importSpecifier.propertyName ? importSpecifier.propertyName.text : importSpecifier.name.text;
|
|
35969
36058
|
const alias = importSpecifier.propertyName ? importSpecifier.name.text : null;
|
|
35970
36059
|
tracker.addImport(targetFile, symbolName, moduleName, alias);
|
|
35971
36060
|
continue;
|
|
35972
36061
|
}
|
|
35973
|
-
const variableDeclaration = closestOrSelf(ref,
|
|
35974
|
-
const variableStatement = variableDeclaration ? closestNode(variableDeclaration,
|
|
35975
|
-
if (variableDeclaration && variableStatement &&
|
|
36062
|
+
const variableDeclaration = closestOrSelf(ref, import_typescript111.default.isVariableDeclaration);
|
|
36063
|
+
const variableStatement = variableDeclaration ? closestNode(variableDeclaration, import_typescript111.default.isVariableStatement) : null;
|
|
36064
|
+
if (variableDeclaration && variableStatement && import_typescript111.default.isIdentifier(variableDeclaration.name)) {
|
|
35976
36065
|
if (isExported3(variableStatement)) {
|
|
35977
36066
|
tracker.addImport(targetFile, variableDeclaration.name.text, getRelativeImportPath(targetFile.fileName, ref.getSourceFile().fileName));
|
|
35978
36067
|
} else {
|
|
@@ -36013,7 +36102,7 @@ function findAllSameFileReferences(rootNode, nodeLookup, referenceResolver) {
|
|
|
36013
36102
|
if (!closestTopLevel || traversedTopLevelNodes.has(closestTopLevel)) {
|
|
36014
36103
|
continue;
|
|
36015
36104
|
}
|
|
36016
|
-
if (!
|
|
36105
|
+
if (!import_typescript111.default.isImportDeclaration(closestTopLevel) && isOutsideRange(excludeStart, excludeEnd, closestTopLevel.getStart(), closestTopLevel.getEnd())) {
|
|
36017
36106
|
traversedTopLevelNodes.add(closestTopLevel);
|
|
36018
36107
|
walk(closestTopLevel);
|
|
36019
36108
|
}
|
|
@@ -36034,25 +36123,25 @@ function referencesToNodeWithinSameFile(node, nodeLookup, excludeStart, excludeE
|
|
|
36034
36123
|
function remapDynamicImports(targetFileName, rootNode) {
|
|
36035
36124
|
let hasChanged = false;
|
|
36036
36125
|
const transformer = (context) => {
|
|
36037
|
-
return (sourceFile) =>
|
|
36038
|
-
if (
|
|
36126
|
+
return (sourceFile) => import_typescript111.default.visitNode(sourceFile, function walk(node) {
|
|
36127
|
+
if (import_typescript111.default.isCallExpression(node) && node.expression.kind === import_typescript111.default.SyntaxKind.ImportKeyword && node.arguments.length > 0 && import_typescript111.default.isStringLiteralLike(node.arguments[0]) && node.arguments[0].text.startsWith(".")) {
|
|
36039
36128
|
hasChanged = true;
|
|
36040
36129
|
return context.factory.updateCallExpression(node, node.expression, node.typeArguments, [
|
|
36041
36130
|
context.factory.createStringLiteral(remapRelativeImport(targetFileName, node.arguments[0])),
|
|
36042
36131
|
...node.arguments.slice(1)
|
|
36043
36132
|
]);
|
|
36044
36133
|
}
|
|
36045
|
-
return
|
|
36134
|
+
return import_typescript111.default.visitEachChild(node, walk, context);
|
|
36046
36135
|
});
|
|
36047
36136
|
};
|
|
36048
|
-
const result =
|
|
36137
|
+
const result = import_typescript111.default.transform(rootNode, [transformer]).transformed[0];
|
|
36049
36138
|
return hasChanged ? result : rootNode;
|
|
36050
36139
|
}
|
|
36051
36140
|
function isTopLevelStatement(node) {
|
|
36052
|
-
return node.parent != null &&
|
|
36141
|
+
return node.parent != null && import_typescript111.default.isSourceFile(node.parent);
|
|
36053
36142
|
}
|
|
36054
36143
|
function isReferenceIdentifier(node) {
|
|
36055
|
-
return
|
|
36144
|
+
return import_typescript111.default.isIdentifier(node) && (!import_typescript111.default.isPropertyAssignment(node.parent) && !import_typescript111.default.isParameter(node.parent) || node.parent.name !== node);
|
|
36056
36145
|
}
|
|
36057
36146
|
function isOutsideRange(excludeStart, excludeEnd, start, end) {
|
|
36058
36147
|
return start < excludeStart && end < excludeStart || start > excludeEnd;
|
|
@@ -36061,29 +36150,15 @@ function remapRelativeImport(targetFileName, specifier) {
|
|
|
36061
36150
|
return getRelativeImportPath(targetFileName, (0, import_path7.join)((0, import_path7.dirname)(specifier.getSourceFile().fileName), specifier.text));
|
|
36062
36151
|
}
|
|
36063
36152
|
function isExported3(node) {
|
|
36064
|
-
return
|
|
36065
|
-
}
|
|
36066
|
-
function closestOrSelf(node, predicate) {
|
|
36067
|
-
return predicate(node) ? node : closestNode(node, predicate);
|
|
36153
|
+
return import_typescript111.default.canHaveModifiers(node) && node.modifiers ? node.modifiers.some((modifier) => modifier.kind === import_typescript111.default.SyntaxKind.ExportKeyword) : false;
|
|
36068
36154
|
}
|
|
36069
36155
|
function isExportableDeclaration(node) {
|
|
36070
|
-
return
|
|
36071
|
-
}
|
|
36072
|
-
function isClassReferenceInAngularModule(node, className, moduleName, typeChecker) {
|
|
36073
|
-
var _a;
|
|
36074
|
-
const symbol = typeChecker.getTypeAtLocation(node).getSymbol();
|
|
36075
|
-
const externalName = `@angular/${moduleName}`;
|
|
36076
|
-
const internalName = `angular2/rc/packages/${moduleName}`;
|
|
36077
|
-
return !!((_a = symbol == null ? void 0 : symbol.declarations) == null ? void 0 : _a.some((decl) => {
|
|
36078
|
-
const closestClass = closestOrSelf(decl, import_typescript112.default.isClassDeclaration);
|
|
36079
|
-
const closestClassFileName = closestClass == null ? void 0 : closestClass.getSourceFile().fileName;
|
|
36080
|
-
return closestClass && closestClassFileName && closestClass.name && import_typescript112.default.isIdentifier(closestClass.name) && closestClass.name.text === className && (closestClassFileName.includes(externalName) || closestClassFileName.includes(internalName));
|
|
36081
|
-
}));
|
|
36156
|
+
return import_typescript111.default.isEnumDeclaration(node) || import_typescript111.default.isClassDeclaration(node) || import_typescript111.default.isFunctionDeclaration(node) || import_typescript111.default.isInterfaceDeclaration(node) || import_typescript111.default.isTypeAliasDeclaration(node);
|
|
36082
36157
|
}
|
|
36083
36158
|
function getLastImportEnd(sourceFile) {
|
|
36084
36159
|
let index = 0;
|
|
36085
36160
|
for (const statement of sourceFile.statements) {
|
|
36086
|
-
if (
|
|
36161
|
+
if (import_typescript111.default.isImportDeclaration(statement)) {
|
|
36087
36162
|
index = Math.max(index, statement.getEnd());
|
|
36088
36163
|
} else {
|
|
36089
36164
|
break;
|
|
@@ -36092,7 +36167,7 @@ function getLastImportEnd(sourceFile) {
|
|
|
36092
36167
|
return index;
|
|
36093
36168
|
}
|
|
36094
36169
|
|
|
36095
|
-
// bazel-out/
|
|
36170
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/index.mjs
|
|
36096
36171
|
var MigrationMode;
|
|
36097
36172
|
(function(MigrationMode2) {
|
|
36098
36173
|
MigrationMode2["toStandalone"] = "convert-to-standalone";
|
|
@@ -36131,7 +36206,7 @@ function standaloneMigration(tree, tsconfigPath, basePath, pathToMigrate, schema
|
|
|
36131
36206
|
});
|
|
36132
36207
|
const referenceLookupExcludedFiles = /node_modules|\.ngtypecheck\.ts/;
|
|
36133
36208
|
const program = createProgram({ rootNames, host, options, oldProgram });
|
|
36134
|
-
const printer =
|
|
36209
|
+
const printer = import_typescript112.default.createPrinter();
|
|
36135
36210
|
if ((0, import_fs2.existsSync)(pathToMigrate) && !(0, import_fs2.statSync)(pathToMigrate).isDirectory()) {
|
|
36136
36211
|
throw new import_schematics.SchematicsException(`Migration path ${pathToMigrate} has to be a directory. Cannot run the standalone migration.`);
|
|
36137
36212
|
}
|