@angular/core 15.2.1 → 15.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/src/application_ref.mjs +14 -3
- package/esm2020/src/application_tokens.mjs +1 -12
- package/esm2020/src/change_detection/change_detection.mjs +2 -2
- package/esm2020/src/change_detection/constants.mjs +1 -49
- package/esm2020/src/core.mjs +3 -3
- package/esm2020/src/core_private_export.mjs +1 -5
- package/esm2020/src/linker/template_ref.mjs +3 -3
- package/esm2020/src/render3/i18n/i18n_util.mjs +3 -3
- package/esm2020/src/render3/instructions/shared.mjs +2 -2
- package/esm2020/src/render3/instructions/template.mjs +2 -2
- package/esm2020/src/render3/interfaces/node.mjs +1 -1
- package/esm2020/src/render3/jit/directive.mjs +1 -2
- 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 +22 -73
- package/fesm2015/core.mjs.map +1 -1
- package/fesm2015/testing.mjs +8 -56
- package/fesm2015/testing.mjs.map +1 -1
- package/fesm2020/core.mjs +21 -73
- package/fesm2020/core.mjs.map +1 -1
- package/fesm2020/testing.mjs +8 -56
- package/fesm2020/testing.mjs.map +1 -1
- package/index.d.ts +9 -71
- package/package.json +1 -1
- 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 +699 -674
- package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
- package/testing/index.d.ts +1 -1
|
@@ -59,7 +59,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
59
59
|
});
|
|
60
60
|
};
|
|
61
61
|
|
|
62
|
-
// bazel-out/
|
|
62
|
+
// bazel-out/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-fastbuild/bin/packages/compiler/src/resource_loader.mjs
|
|
15630
15630
|
var ResourceLoader = class {
|
|
15631
15631
|
};
|
|
15632
15632
|
|
|
15633
|
-
// bazel-out/
|
|
15633
|
+
// bazel-out/darwin_arm64-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/darwin_arm64-fastbuild/bin/packages/compiler/src/version.mjs
|
|
16117
|
+
var VERSION2 = new Version("15.2.2");
|
|
16118
16118
|
|
|
16119
|
-
// bazel-out/
|
|
16119
|
+
// bazel-out/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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.2"));
|
|
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/darwin_arm64-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/darwin_arm64-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.2"));
|
|
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/darwin_arm64-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/darwin_arm64-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.2"));
|
|
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/darwin_arm64-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.2"));
|
|
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/darwin_arm64-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.2"));
|
|
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/darwin_arm64-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.2"));
|
|
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/darwin_arm64-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.2"));
|
|
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/darwin_arm64-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/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/version.mjs
|
|
17817
|
+
var VERSION3 = new Version("15.2.2");
|
|
17818
17818
|
|
|
17819
|
-
// bazel-out/
|
|
17819
|
+
// bazel-out/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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/darwin_arm64-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,7 +19228,7 @@ function validateAndRewriteCoreSymbol(name) {
|
|
|
19228
19228
|
return CORE_SUPPORTED_SYMBOLS.get(name);
|
|
19229
19229
|
}
|
|
19230
19230
|
|
|
19231
|
-
// bazel-out/
|
|
19231
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/patch_alias_reference_resolution.mjs
|
|
19232
19232
|
var import_typescript14 = __toESM(require("typescript"), 1);
|
|
19233
19233
|
var patchedReferencedAliasesSymbol = Symbol("patchedReferencedAliases");
|
|
19234
19234
|
function loadIsReferencedAliasDeclarationPatch(context) {
|
|
@@ -19263,7 +19263,7 @@ function throwIncompatibleTransformationContextError() {
|
|
|
19263
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
19264
|
}
|
|
19265
19265
|
|
|
19266
|
-
// bazel-out/
|
|
19266
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/default.mjs
|
|
19267
19267
|
var DefaultImportDeclaration = Symbol("DefaultImportDeclaration");
|
|
19268
19268
|
function attachDefaultImportDeclaration(expr, importDecl) {
|
|
19269
19269
|
expr[DefaultImportDeclaration] = importDecl;
|
|
@@ -19304,7 +19304,7 @@ var DefaultImportTracker = class {
|
|
|
19304
19304
|
}
|
|
19305
19305
|
};
|
|
19306
19306
|
|
|
19307
|
-
// bazel-out/
|
|
19307
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/references.mjs
|
|
19308
19308
|
var Reference2 = class {
|
|
19309
19309
|
constructor(node, bestGuessOwningModule = null) {
|
|
19310
19310
|
this.node = node;
|
|
@@ -19367,7 +19367,7 @@ var Reference2 = class {
|
|
|
19367
19367
|
}
|
|
19368
19368
|
};
|
|
19369
19369
|
|
|
19370
|
-
// bazel-out/
|
|
19370
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/resolver.mjs
|
|
19371
19371
|
var ModuleResolver = class {
|
|
19372
19372
|
constructor(program, compilerOptions, host, moduleResolutionCache) {
|
|
19373
19373
|
this.program = program;
|
|
@@ -19384,7 +19384,7 @@ var ModuleResolver = class {
|
|
|
19384
19384
|
}
|
|
19385
19385
|
};
|
|
19386
19386
|
|
|
19387
|
-
// bazel-out/
|
|
19387
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
|
|
19388
19388
|
function valueReferenceToExpression(valueRef) {
|
|
19389
19389
|
if (valueRef.kind === 2) {
|
|
19390
19390
|
return null;
|
|
@@ -19621,7 +19621,7 @@ function isAbstractClassDeclaration(clazz) {
|
|
|
19621
19621
|
return clazz.modifiers !== void 0 && clazz.modifiers.some((mod) => mod.kind === import_typescript18.default.SyntaxKind.AbstractKeyword);
|
|
19622
19622
|
}
|
|
19623
19623
|
|
|
19624
|
-
// bazel-out/
|
|
19624
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
|
|
19625
19625
|
function getConstructorDependencies(clazz, reflector, isCore) {
|
|
19626
19626
|
const deps = [];
|
|
19627
19627
|
const errors = [];
|
|
@@ -19763,10 +19763,10 @@ function createUnsuitableInjectionTokenError(clazz, error2) {
|
|
|
19763
19763
|
return new FatalDiagnosticError(ErrorCode.PARAM_MISSING_TOKEN, param.nameNode, chain, hints);
|
|
19764
19764
|
}
|
|
19765
19765
|
|
|
19766
|
-
// bazel-out/
|
|
19766
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
|
|
19767
19767
|
var import_typescript27 = __toESM(require("typescript"), 1);
|
|
19768
19768
|
|
|
19769
|
-
// bazel-out/
|
|
19769
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/api.mjs
|
|
19770
19770
|
var MetaKind;
|
|
19771
19771
|
(function(MetaKind2) {
|
|
19772
19772
|
MetaKind2[MetaKind2["Directive"] = 0] = "Directive";
|
|
@@ -19779,10 +19779,10 @@ var MatchSource;
|
|
|
19779
19779
|
MatchSource2[MatchSource2["HostDirective"] = 1] = "HostDirective";
|
|
19780
19780
|
})(MatchSource || (MatchSource = {}));
|
|
19781
19781
|
|
|
19782
|
-
// bazel-out/
|
|
19782
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
19783
19783
|
var import_typescript22 = __toESM(require("typescript"), 1);
|
|
19784
19784
|
|
|
19785
|
-
// bazel-out/
|
|
19785
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/property_mapping.mjs
|
|
19786
19786
|
var ClassPropertyMapping = class {
|
|
19787
19787
|
constructor(forwardMap) {
|
|
19788
19788
|
this.forwardMap = forwardMap;
|
|
@@ -19858,7 +19858,7 @@ function reverseMapFromForwardMap(forwardMap) {
|
|
|
19858
19858
|
return reverseMap;
|
|
19859
19859
|
}
|
|
19860
19860
|
|
|
19861
|
-
// bazel-out/
|
|
19861
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/util.mjs
|
|
19862
19862
|
var import_typescript20 = __toESM(require("typescript"), 1);
|
|
19863
19863
|
function extractReferencesFromType(checker, def, bestGuessOwningModule) {
|
|
19864
19864
|
if (!import_typescript20.default.isTupleTypeNode(def)) {
|
|
@@ -20040,7 +20040,7 @@ function hasInjectableFields(clazz, host) {
|
|
|
20040
20040
|
return members.some(({ isStatic, name }) => isStatic && (name === "\u0275prov" || name === "\u0275fac"));
|
|
20041
20041
|
}
|
|
20042
20042
|
|
|
20043
|
-
// bazel-out/
|
|
20043
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
20044
20044
|
var DtsMetadataReader = class {
|
|
20045
20045
|
constructor(checker, reflector) {
|
|
20046
20046
|
this.checker = checker;
|
|
@@ -20179,7 +20179,7 @@ function readHostDirectivesType(checker, type, bestGuessOwningModule) {
|
|
|
20179
20179
|
return result.length > 0 ? result : null;
|
|
20180
20180
|
}
|
|
20181
20181
|
|
|
20182
|
-
// bazel-out/
|
|
20182
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/inheritance.mjs
|
|
20183
20183
|
function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
20184
20184
|
const topMeta = reader.getDirectiveMetadata(dir);
|
|
20185
20185
|
if (topMeta === null) {
|
|
@@ -20236,7 +20236,7 @@ function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
|
20236
20236
|
});
|
|
20237
20237
|
}
|
|
20238
20238
|
|
|
20239
|
-
// bazel-out/
|
|
20239
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/registry.mjs
|
|
20240
20240
|
var LocalMetadataRegistry = class {
|
|
20241
20241
|
constructor() {
|
|
20242
20242
|
this.directives = /* @__PURE__ */ new Map();
|
|
@@ -20293,7 +20293,7 @@ var CompoundMetadataRegistry = class {
|
|
|
20293
20293
|
}
|
|
20294
20294
|
};
|
|
20295
20295
|
|
|
20296
|
-
// bazel-out/
|
|
20296
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/resource_registry.mjs
|
|
20297
20297
|
var ResourceRegistry = class {
|
|
20298
20298
|
constructor() {
|
|
20299
20299
|
this.externalTemplateToComponentsMap = /* @__PURE__ */ new Map();
|
|
@@ -20358,7 +20358,7 @@ var ResourceRegistry = class {
|
|
|
20358
20358
|
}
|
|
20359
20359
|
};
|
|
20360
20360
|
|
|
20361
|
-
// bazel-out/
|
|
20361
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/host_directives_resolver.mjs
|
|
20362
20362
|
var EMPTY_ARRAY = [];
|
|
20363
20363
|
var HostDirectivesResolver = class {
|
|
20364
20364
|
constructor(metaReader) {
|
|
@@ -20408,10 +20408,10 @@ var HostDirectivesResolver = class {
|
|
|
20408
20408
|
}
|
|
20409
20409
|
};
|
|
20410
20410
|
|
|
20411
|
-
// bazel-out/
|
|
20411
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
|
|
20412
20412
|
var import_typescript24 = __toESM(require("typescript"), 1);
|
|
20413
20413
|
|
|
20414
|
-
// bazel-out/
|
|
20414
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/dynamic.mjs
|
|
20415
20415
|
var DynamicValue = class {
|
|
20416
20416
|
constructor(node, reason, code) {
|
|
20417
20417
|
this.node = node;
|
|
@@ -20501,7 +20501,7 @@ var DynamicValue = class {
|
|
|
20501
20501
|
}
|
|
20502
20502
|
};
|
|
20503
20503
|
|
|
20504
|
-
// bazel-out/
|
|
20504
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/result.mjs
|
|
20505
20505
|
var ResolvedModule = class {
|
|
20506
20506
|
constructor(exports, evaluate) {
|
|
20507
20507
|
this.exports = exports;
|
|
@@ -20531,7 +20531,7 @@ var EnumValue = class {
|
|
|
20531
20531
|
var KnownFn = class {
|
|
20532
20532
|
};
|
|
20533
20533
|
|
|
20534
|
-
// bazel-out/
|
|
20534
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
|
|
20535
20535
|
function describeResolvedType(value, maxDepth = 1) {
|
|
20536
20536
|
var _a, _b;
|
|
20537
20537
|
if (value === null) {
|
|
@@ -20660,10 +20660,10 @@ function getContainerNode(node) {
|
|
|
20660
20660
|
return node.getSourceFile();
|
|
20661
20661
|
}
|
|
20662
20662
|
|
|
20663
|
-
// bazel-out/
|
|
20663
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
20664
20664
|
var import_typescript25 = __toESM(require("typescript"), 1);
|
|
20665
20665
|
|
|
20666
|
-
// bazel-out/
|
|
20666
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/builtin.mjs
|
|
20667
20667
|
var ArraySliceBuiltinFn = class extends KnownFn {
|
|
20668
20668
|
constructor(lhs) {
|
|
20669
20669
|
super();
|
|
@@ -20734,7 +20734,7 @@ var ObjectAssignBuiltinFn = class extends KnownFn {
|
|
|
20734
20734
|
}
|
|
20735
20735
|
};
|
|
20736
20736
|
|
|
20737
|
-
// bazel-out/
|
|
20737
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/ts_helpers.mjs
|
|
20738
20738
|
var AssignHelperFn = class extends ObjectAssignBuiltinFn {
|
|
20739
20739
|
};
|
|
20740
20740
|
var SpreadHelperFn = class extends KnownFn {
|
|
@@ -20787,7 +20787,7 @@ var ReadHelperFn = class extends KnownFn {
|
|
|
20787
20787
|
}
|
|
20788
20788
|
};
|
|
20789
20789
|
|
|
20790
|
-
// bazel-out/
|
|
20790
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/known_declaration.mjs
|
|
20791
20791
|
var jsGlobalObjectValue = /* @__PURE__ */ new Map([["assign", new ObjectAssignBuiltinFn()]]);
|
|
20792
20792
|
var assignTsHelperFn = new AssignHelperFn();
|
|
20793
20793
|
var spreadTsHelperFn = new SpreadHelperFn();
|
|
@@ -20811,14 +20811,14 @@ function resolveKnownDeclaration(decl) {
|
|
|
20811
20811
|
}
|
|
20812
20812
|
}
|
|
20813
20813
|
|
|
20814
|
-
// bazel-out/
|
|
20814
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/synthetic.mjs
|
|
20815
20815
|
var SyntheticValue = class {
|
|
20816
20816
|
constructor(value) {
|
|
20817
20817
|
this.value = value;
|
|
20818
20818
|
}
|
|
20819
20819
|
};
|
|
20820
20820
|
|
|
20821
|
-
// bazel-out/
|
|
20821
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
20822
20822
|
function literalBinaryOp(op) {
|
|
20823
20823
|
return { op, literal: true };
|
|
20824
20824
|
}
|
|
@@ -21416,7 +21416,7 @@ function owningModule(context, override = null) {
|
|
|
21416
21416
|
}
|
|
21417
21417
|
}
|
|
21418
21418
|
|
|
21419
|
-
// bazel-out/
|
|
21419
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interface.mjs
|
|
21420
21420
|
var PartialEvaluator = class {
|
|
21421
21421
|
constructor(host, checker, dependencyTracker) {
|
|
21422
21422
|
this.host = host;
|
|
@@ -21436,7 +21436,7 @@ var PartialEvaluator = class {
|
|
|
21436
21436
|
}
|
|
21437
21437
|
};
|
|
21438
21438
|
|
|
21439
|
-
// bazel-out/
|
|
21439
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
|
|
21440
21440
|
function makeDuplicateDeclarationError(node, data, kind) {
|
|
21441
21441
|
const context = [];
|
|
21442
21442
|
for (const decl of data) {
|
|
@@ -21611,7 +21611,7 @@ function getInheritedUndecoratedCtorDiagnostic(node, baseClass, kind) {
|
|
|
21611
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}.`);
|
|
21612
21612
|
}
|
|
21613
21613
|
|
|
21614
|
-
// bazel-out/
|
|
21614
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/evaluation.mjs
|
|
21615
21615
|
var import_typescript29 = __toESM(require("typescript"), 1);
|
|
21616
21616
|
function resolveEnumValue(evaluator, metadata, field, enumSymbolName) {
|
|
21617
21617
|
let resolved = null;
|
|
@@ -21644,7 +21644,7 @@ function resolveLiteral(decorator, literalCache) {
|
|
|
21644
21644
|
return meta;
|
|
21645
21645
|
}
|
|
21646
21646
|
|
|
21647
|
-
// bazel-out/
|
|
21647
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/factory.mjs
|
|
21648
21648
|
function compileNgFactoryDefField(metadata) {
|
|
21649
21649
|
const res = compileFactoryFunction(metadata);
|
|
21650
21650
|
return { name: "\u0275fac", initializer: res.expression, statements: res.statements, type: res.type };
|
|
@@ -21654,7 +21654,7 @@ function compileDeclareFactory(metadata) {
|
|
|
21654
21654
|
return { name: "\u0275fac", initializer: res.expression, statements: res.statements, type: res.type };
|
|
21655
21655
|
}
|
|
21656
21656
|
|
|
21657
|
-
// bazel-out/
|
|
21657
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/injectable_registry.mjs
|
|
21658
21658
|
var InjectableClassRegistry = class {
|
|
21659
21659
|
constructor(host, isCore) {
|
|
21660
21660
|
this.host = host;
|
|
@@ -21680,7 +21680,7 @@ var InjectableClassRegistry = class {
|
|
|
21680
21680
|
}
|
|
21681
21681
|
};
|
|
21682
21682
|
|
|
21683
|
-
// bazel-out/
|
|
21683
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/metadata.mjs
|
|
21684
21684
|
var import_typescript30 = __toESM(require("typescript"), 1);
|
|
21685
21685
|
function extractClassMetadata(clazz, reflection, isCore, annotateForClosureCompiler, angularDecoratorTransform = (dec) => dec) {
|
|
21686
21686
|
if (!reflection.isClass(clazz)) {
|
|
@@ -21766,13 +21766,13 @@ function removeIdentifierReferences(node, name) {
|
|
|
21766
21766
|
return result.transformed[0];
|
|
21767
21767
|
}
|
|
21768
21768
|
|
|
21769
|
-
// bazel-out/
|
|
21769
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/references_registry.mjs
|
|
21770
21770
|
var NoopReferencesRegistry = class {
|
|
21771
21771
|
add(source, ...references) {
|
|
21772
21772
|
}
|
|
21773
21773
|
};
|
|
21774
21774
|
|
|
21775
|
-
// bazel-out/
|
|
21775
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/schema.mjs
|
|
21776
21776
|
function extractSchemas(rawExpr, evaluator, context) {
|
|
21777
21777
|
const schemas = [];
|
|
21778
21778
|
const result = evaluator.evaluate(rawExpr);
|
|
@@ -21801,10 +21801,10 @@ function extractSchemas(rawExpr, evaluator, context) {
|
|
|
21801
21801
|
return schemas;
|
|
21802
21802
|
}
|
|
21803
21803
|
|
|
21804
|
-
// bazel-out/
|
|
21804
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
21805
21805
|
var import_typescript52 = __toESM(require("typescript"), 1);
|
|
21806
21806
|
|
|
21807
|
-
// bazel-out/
|
|
21807
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.mjs
|
|
21808
21808
|
var import_typescript31 = __toESM(require("typescript"), 1);
|
|
21809
21809
|
var SemanticSymbol = class {
|
|
21810
21810
|
constructor(decl) {
|
|
@@ -21820,7 +21820,7 @@ function getSymbolIdentifier(decl) {
|
|
|
21820
21820
|
return decl.name.text;
|
|
21821
21821
|
}
|
|
21822
21822
|
|
|
21823
|
-
// bazel-out/
|
|
21823
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.mjs
|
|
21824
21824
|
var OpaqueSymbol = class extends SemanticSymbol {
|
|
21825
21825
|
isPublicApiAffected() {
|
|
21826
21826
|
return false;
|
|
@@ -21962,10 +21962,10 @@ function getImportPath(expr) {
|
|
|
21962
21962
|
}
|
|
21963
21963
|
}
|
|
21964
21964
|
|
|
21965
|
-
// bazel-out/
|
|
21965
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
21966
21966
|
var import_typescript32 = __toESM(require("typescript"), 1);
|
|
21967
21967
|
|
|
21968
|
-
// bazel-out/
|
|
21968
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/util.mjs
|
|
21969
21969
|
function isSymbolEqual(a, b) {
|
|
21970
21970
|
if (a.decl === b.decl) {
|
|
21971
21971
|
return true;
|
|
@@ -22015,7 +22015,7 @@ function isSetEqual(a, b, equalityTester = referenceEquality) {
|
|
|
22015
22015
|
return true;
|
|
22016
22016
|
}
|
|
22017
22017
|
|
|
22018
|
-
// bazel-out/
|
|
22018
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
22019
22019
|
function extractSemanticTypeParameters(node) {
|
|
22020
22020
|
if (!import_typescript32.default.isClassDeclaration(node) || node.typeParameters === void 0) {
|
|
22021
22021
|
return null;
|
|
@@ -22035,7 +22035,7 @@ function isTypeParameterEqual(a, b) {
|
|
|
22035
22035
|
return a.hasGenericTypeBound === b.hasGenericTypeBound;
|
|
22036
22036
|
}
|
|
22037
22037
|
|
|
22038
|
-
// bazel-out/
|
|
22038
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/api.mjs
|
|
22039
22039
|
var PerfPhase;
|
|
22040
22040
|
(function(PerfPhase2) {
|
|
22041
22041
|
PerfPhase2[PerfPhase2["Unaccounted"] = 0] = "Unaccounted";
|
|
@@ -22102,7 +22102,7 @@ var PerfCheckpoint;
|
|
|
22102
22102
|
PerfCheckpoint2[PerfCheckpoint2["LAST"] = 9] = "LAST";
|
|
22103
22103
|
})(PerfCheckpoint || (PerfCheckpoint = {}));
|
|
22104
22104
|
|
|
22105
|
-
// bazel-out/
|
|
22105
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/noop.mjs
|
|
22106
22106
|
var NoopPerfRecorder = class {
|
|
22107
22107
|
eventCount() {
|
|
22108
22108
|
}
|
|
@@ -22119,7 +22119,7 @@ var NoopPerfRecorder = class {
|
|
|
22119
22119
|
};
|
|
22120
22120
|
var NOOP_PERF_RECORDER = new NoopPerfRecorder();
|
|
22121
22121
|
|
|
22122
|
-
// bazel-out/
|
|
22122
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/clock.mjs
|
|
22123
22123
|
function mark() {
|
|
22124
22124
|
return process.hrtime();
|
|
22125
22125
|
}
|
|
@@ -22128,7 +22128,7 @@ function timeSinceInMicros(mark2) {
|
|
|
22128
22128
|
return delta[0] * 1e6 + Math.floor(delta[1] / 1e3);
|
|
22129
22129
|
}
|
|
22130
22130
|
|
|
22131
|
-
// bazel-out/
|
|
22131
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/recorder.mjs
|
|
22132
22132
|
var ActivePerfRecorder = class {
|
|
22133
22133
|
static zeroedToNow() {
|
|
22134
22134
|
return new ActivePerfRecorder(mark());
|
|
@@ -22222,14 +22222,14 @@ var DelegatingPerfRecorder = class {
|
|
|
22222
22222
|
}
|
|
22223
22223
|
};
|
|
22224
22224
|
|
|
22225
|
-
// bazel-out/
|
|
22225
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/api.mjs
|
|
22226
22226
|
var ComponentScopeKind;
|
|
22227
22227
|
(function(ComponentScopeKind2) {
|
|
22228
22228
|
ComponentScopeKind2[ComponentScopeKind2["NgModule"] = 0] = "NgModule";
|
|
22229
22229
|
ComponentScopeKind2[ComponentScopeKind2["Standalone"] = 1] = "Standalone";
|
|
22230
22230
|
})(ComponentScopeKind || (ComponentScopeKind = {}));
|
|
22231
22231
|
|
|
22232
|
-
// bazel-out/
|
|
22232
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/component_scope.mjs
|
|
22233
22233
|
var CompoundComponentScopeReader = class {
|
|
22234
22234
|
constructor(readers) {
|
|
22235
22235
|
this.readers = readers;
|
|
@@ -22254,7 +22254,7 @@ var CompoundComponentScopeReader = class {
|
|
|
22254
22254
|
}
|
|
22255
22255
|
};
|
|
22256
22256
|
|
|
22257
|
-
// bazel-out/
|
|
22257
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/dependency.mjs
|
|
22258
22258
|
var MetadataDtsModuleScopeResolver = class {
|
|
22259
22259
|
constructor(dtsMetaReader, aliasingHost) {
|
|
22260
22260
|
this.dtsMetaReader = dtsMetaReader;
|
|
@@ -22329,10 +22329,10 @@ var MetadataDtsModuleScopeResolver = class {
|
|
|
22329
22329
|
}
|
|
22330
22330
|
};
|
|
22331
22331
|
|
|
22332
|
-
// bazel-out/
|
|
22332
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
|
|
22333
22333
|
var import_typescript33 = __toESM(require("typescript"), 1);
|
|
22334
22334
|
|
|
22335
|
-
// bazel-out/
|
|
22335
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/util.mjs
|
|
22336
22336
|
function getDiagnosticNode(ref, rawExpr) {
|
|
22337
22337
|
return rawExpr !== null ? ref.getOriginForDiagnostics(rawExpr) : ref.node.name;
|
|
22338
22338
|
}
|
|
@@ -22355,7 +22355,7 @@ function makeUnknownComponentImportDiagnostic(ref, rawExpr) {
|
|
|
22355
22355
|
return makeDiagnostic(ErrorCode.COMPONENT_UNKNOWN_IMPORT, getDiagnosticNode(ref, rawExpr), `Component imports must be standalone components, directives, pipes, or must be NgModules.`);
|
|
22356
22356
|
}
|
|
22357
22357
|
|
|
22358
|
-
// bazel-out/
|
|
22358
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
|
|
22359
22359
|
var LocalModuleScopeRegistry = class {
|
|
22360
22360
|
constructor(localReader, fullReader, dependencyScopeReader, refEmitter, aliasingHost) {
|
|
22361
22361
|
this.localReader = localReader;
|
|
@@ -22694,7 +22694,7 @@ function reexportCollision(module3, refA, refB) {
|
|
|
22694
22694
|
]);
|
|
22695
22695
|
}
|
|
22696
22696
|
|
|
22697
|
-
// bazel-out/
|
|
22697
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/typecheck.mjs
|
|
22698
22698
|
var import_typescript35 = __toESM(require("typescript"), 1);
|
|
22699
22699
|
var TypeCheckScopeRegistry = class {
|
|
22700
22700
|
constructor(scopeReader, metaReader, hostDirectivesResolver) {
|
|
@@ -22762,7 +22762,7 @@ var TypeCheckScopeRegistry = class {
|
|
|
22762
22762
|
}
|
|
22763
22763
|
};
|
|
22764
22764
|
|
|
22765
|
-
// bazel-out/
|
|
22765
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/api.mjs
|
|
22766
22766
|
var CompilationMode;
|
|
22767
22767
|
(function(CompilationMode2) {
|
|
22768
22768
|
CompilationMode2[CompilationMode2["FULL"] = 0] = "FULL";
|
|
@@ -22780,7 +22780,7 @@ var HandlerFlags;
|
|
|
22780
22780
|
HandlerFlags2[HandlerFlags2["FULL_INHERITANCE"] = 1] = "FULL_INHERITANCE";
|
|
22781
22781
|
})(HandlerFlags || (HandlerFlags = {}));
|
|
22782
22782
|
|
|
22783
|
-
// bazel-out/
|
|
22783
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/alias.mjs
|
|
22784
22784
|
var import_typescript36 = __toESM(require("typescript"), 1);
|
|
22785
22785
|
function aliasTransformFactory(exportStatements) {
|
|
22786
22786
|
return () => {
|
|
@@ -22803,10 +22803,10 @@ function aliasTransformFactory(exportStatements) {
|
|
|
22803
22803
|
};
|
|
22804
22804
|
}
|
|
22805
22805
|
|
|
22806
|
-
// bazel-out/
|
|
22806
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
22807
22807
|
var import_typescript37 = __toESM(require("typescript"), 1);
|
|
22808
22808
|
|
|
22809
|
-
// bazel-out/
|
|
22809
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/trait.mjs
|
|
22810
22810
|
var TraitState;
|
|
22811
22811
|
(function(TraitState2) {
|
|
22812
22812
|
TraitState2[TraitState2["Pending"] = 0] = "Pending";
|
|
@@ -22861,7 +22861,7 @@ var TraitImpl = class {
|
|
|
22861
22861
|
}
|
|
22862
22862
|
};
|
|
22863
22863
|
|
|
22864
|
-
// bazel-out/
|
|
22864
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
22865
22865
|
var TraitCompiler = class {
|
|
22866
22866
|
constructor(handlers, reflector, perf, incrementalBuild, compileNonExportedClasses, compilationMode, dtsTransforms, semanticDepGraphUpdater, sourceFileTypeIdentifier) {
|
|
22867
22867
|
this.handlers = handlers;
|
|
@@ -23305,10 +23305,10 @@ function containsErrors(diagnostics) {
|
|
|
23305
23305
|
return diagnostics !== null && diagnostics.some((diag) => diag.category === import_typescript37.default.DiagnosticCategory.Error);
|
|
23306
23306
|
}
|
|
23307
23307
|
|
|
23308
|
-
// bazel-out/
|
|
23308
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
|
|
23309
23309
|
var import_typescript44 = __toESM(require("typescript"), 1);
|
|
23310
23310
|
|
|
23311
|
-
// bazel-out/
|
|
23311
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/context.mjs
|
|
23312
23312
|
var Context = class {
|
|
23313
23313
|
constructor(isStatement) {
|
|
23314
23314
|
this.isStatement = isStatement;
|
|
@@ -23321,7 +23321,7 @@ var Context = class {
|
|
|
23321
23321
|
}
|
|
23322
23322
|
};
|
|
23323
23323
|
|
|
23324
|
-
// bazel-out/
|
|
23324
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager.mjs
|
|
23325
23325
|
var import_typescript39 = __toESM(require("typescript"), 1);
|
|
23326
23326
|
var ImportManager = class {
|
|
23327
23327
|
constructor(rewriter = new NoopImportRewriter(), prefix = "i") {
|
|
@@ -23357,7 +23357,7 @@ var ImportManager = class {
|
|
|
23357
23357
|
}
|
|
23358
23358
|
};
|
|
23359
23359
|
|
|
23360
|
-
// bazel-out/
|
|
23360
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/translator.mjs
|
|
23361
23361
|
var UNARY_OPERATORS2 = /* @__PURE__ */ new Map([
|
|
23362
23362
|
[UnaryOperator.Minus, "-"],
|
|
23363
23363
|
[UnaryOperator.Plus, "+"]
|
|
@@ -23588,10 +23588,10 @@ function createRange(span) {
|
|
|
23588
23588
|
};
|
|
23589
23589
|
}
|
|
23590
23590
|
|
|
23591
|
-
// bazel-out/
|
|
23591
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
|
|
23592
23592
|
var import_typescript41 = __toESM(require("typescript"), 1);
|
|
23593
23593
|
|
|
23594
|
-
// bazel-out/
|
|
23594
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/ts_compatibility/src/ts_cross_version_utils.mjs
|
|
23595
23595
|
var import_typescript40 = __toESM(require("typescript"), 1);
|
|
23596
23596
|
var IS_AFTER_TS_49 = isAfterVersion(4, 9);
|
|
23597
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);
|
|
@@ -23621,7 +23621,7 @@ function isAfterVersion(targetMajor, targetMinor) {
|
|
|
23621
23621
|
return major === targetMajor ? minor >= targetMinor : true;
|
|
23622
23622
|
}
|
|
23623
23623
|
|
|
23624
|
-
// bazel-out/
|
|
23624
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
|
|
23625
23625
|
function translateType(type, imports) {
|
|
23626
23626
|
return type.visitType(new TypeTranslatorVisitor(imports), new Context(false));
|
|
23627
23627
|
}
|
|
@@ -23795,7 +23795,7 @@ var TypeTranslatorVisitor = class {
|
|
|
23795
23795
|
}
|
|
23796
23796
|
};
|
|
23797
23797
|
|
|
23798
|
-
// bazel-out/
|
|
23798
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_ast_factory.mjs
|
|
23799
23799
|
var import_typescript42 = __toESM(require("typescript"), 1);
|
|
23800
23800
|
var PureAnnotation;
|
|
23801
23801
|
(function(PureAnnotation2) {
|
|
@@ -23978,7 +23978,7 @@ function attachComments(statement, leadingComments) {
|
|
|
23978
23978
|
}
|
|
23979
23979
|
}
|
|
23980
23980
|
|
|
23981
|
-
// bazel-out/
|
|
23981
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_translator.mjs
|
|
23982
23982
|
function translateExpression(expression, imports, options = {}) {
|
|
23983
23983
|
return expression.visitExpression(new ExpressionTranslatorVisitor(new TypeScriptAstFactory(options.annotateForClosureCompiler === true), imports, options), new Context(false));
|
|
23984
23984
|
}
|
|
@@ -23986,7 +23986,7 @@ function translateStatement(statement, imports, options = {}) {
|
|
|
23986
23986
|
return statement.visitStatement(new ExpressionTranslatorVisitor(new TypeScriptAstFactory(options.annotateForClosureCompiler === true), imports, options), new Context(true));
|
|
23987
23987
|
}
|
|
23988
23988
|
|
|
23989
|
-
// bazel-out/
|
|
23989
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/utils.mjs
|
|
23990
23990
|
var import_typescript43 = __toESM(require("typescript"), 1);
|
|
23991
23991
|
function addImports(importManager, sf, extraStatements = []) {
|
|
23992
23992
|
const addedImports = importManager.getAllImports(sf.fileName).map((i) => {
|
|
@@ -24022,7 +24022,7 @@ function isImportStatement(stmt) {
|
|
|
24022
24022
|
return import_typescript43.default.isImportDeclaration(stmt) || import_typescript43.default.isImportEqualsDeclaration(stmt) || import_typescript43.default.isNamespaceImport(stmt);
|
|
24023
24023
|
}
|
|
24024
24024
|
|
|
24025
|
-
// bazel-out/
|
|
24025
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
|
|
24026
24026
|
var DtsTransformRegistry = class {
|
|
24027
24027
|
constructor() {
|
|
24028
24028
|
this.ivyDeclarationTransforms = /* @__PURE__ */ new Map();
|
|
@@ -24167,10 +24167,10 @@ function markForEmitAsSingleLine(node) {
|
|
|
24167
24167
|
import_typescript44.default.forEachChild(node, markForEmitAsSingleLine);
|
|
24168
24168
|
}
|
|
24169
24169
|
|
|
24170
|
-
// bazel-out/
|
|
24170
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
24171
24171
|
var import_typescript46 = __toESM(require("typescript"), 1);
|
|
24172
24172
|
|
|
24173
|
-
// bazel-out/
|
|
24173
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/visitor.mjs
|
|
24174
24174
|
var import_typescript45 = __toESM(require("typescript"), 1);
|
|
24175
24175
|
function visit(node, visitor, context) {
|
|
24176
24176
|
return visitor._visit(node, context);
|
|
@@ -24231,7 +24231,7 @@ var Visitor = class {
|
|
|
24231
24231
|
}
|
|
24232
24232
|
};
|
|
24233
24233
|
|
|
24234
|
-
// bazel-out/
|
|
24234
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
24235
24235
|
var NO_DECORATORS = /* @__PURE__ */ new Set();
|
|
24236
24236
|
var CLOSURE_FILE_OVERVIEW_REGEXP = /\s+@fileoverview\s+/i;
|
|
24237
24237
|
function ivyTransformFactory(compilation, reflector, importRewriter, defaultImportTracker, perf, isCore, isClosureCompilerEnabled) {
|
|
@@ -24439,7 +24439,7 @@ function nodeArrayFromDecoratorsArray(decorators) {
|
|
|
24439
24439
|
return array;
|
|
24440
24440
|
}
|
|
24441
24441
|
|
|
24442
|
-
// bazel-out/
|
|
24442
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
|
|
24443
24443
|
var import_typescript47 = __toESM(require("typescript"), 1);
|
|
24444
24444
|
var EMPTY_OBJECT = {};
|
|
24445
24445
|
var QUERY_TYPES = /* @__PURE__ */ new Set([
|
|
@@ -24855,7 +24855,7 @@ function toHostDirectiveMetadata(hostDirective, context, refEmitter) {
|
|
|
24855
24855
|
};
|
|
24856
24856
|
}
|
|
24857
24857
|
|
|
24858
|
-
// bazel-out/
|
|
24858
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/symbol.mjs
|
|
24859
24859
|
var DirectiveSymbol = class extends SemanticSymbol {
|
|
24860
24860
|
constructor(decl, selector, inputs, outputs, exportAs, typeCheckMeta, typeParameters) {
|
|
24861
24861
|
super(decl);
|
|
@@ -24932,7 +24932,7 @@ function isBaseClassEqual(current, previous) {
|
|
|
24932
24932
|
return isSymbolEqual(current, previous);
|
|
24933
24933
|
}
|
|
24934
24934
|
|
|
24935
|
-
// bazel-out/
|
|
24935
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
|
|
24936
24936
|
var FIELD_DECORATORS = [
|
|
24937
24937
|
"Input",
|
|
24938
24938
|
"Output",
|
|
@@ -25091,10 +25091,10 @@ var DirectiveDecoratorHandler = class {
|
|
|
25091
25091
|
}
|
|
25092
25092
|
};
|
|
25093
25093
|
|
|
25094
|
-
// bazel-out/
|
|
25094
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
25095
25095
|
var import_typescript49 = __toESM(require("typescript"), 1);
|
|
25096
25096
|
|
|
25097
|
-
// bazel-out/
|
|
25097
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/module_with_providers.mjs
|
|
25098
25098
|
var import_typescript48 = __toESM(require("typescript"), 1);
|
|
25099
25099
|
function createModuleWithProvidersResolver(reflector, isCore) {
|
|
25100
25100
|
function _reflectModuleFromTypeParam(type, node) {
|
|
@@ -25161,7 +25161,7 @@ function isResolvedModuleWithProviders(sv) {
|
|
|
25161
25161
|
return typeof sv.value === "object" && sv.value != null && sv.value.hasOwnProperty("ngModule") && sv.value.hasOwnProperty("mwpCall");
|
|
25162
25162
|
}
|
|
25163
25163
|
|
|
25164
|
-
// bazel-out/
|
|
25164
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
25165
25165
|
var NgModuleSymbol = class extends SemanticSymbol {
|
|
25166
25166
|
constructor() {
|
|
25167
25167
|
super(...arguments);
|
|
@@ -25663,7 +25663,7 @@ function isSyntheticReference(ref) {
|
|
|
25663
25663
|
return ref.synthetic;
|
|
25664
25664
|
}
|
|
25665
25665
|
|
|
25666
|
-
// bazel-out/
|
|
25666
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/diagnostics.mjs
|
|
25667
25667
|
function makeCyclicImportInfo(ref, type, cycle) {
|
|
25668
25668
|
const name = ref.debugName || "(unknown)";
|
|
25669
25669
|
const path3 = cycle.getPath().map((sf) => sf.fileName).join(" -> ");
|
|
@@ -25686,7 +25686,7 @@ function checkCustomElementSelectorForErrors(selector) {
|
|
|
25686
25686
|
return null;
|
|
25687
25687
|
}
|
|
25688
25688
|
|
|
25689
|
-
// bazel-out/
|
|
25689
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/resources.mjs
|
|
25690
25690
|
var import_typescript51 = __toESM(require("typescript"), 1);
|
|
25691
25691
|
function getTemplateDeclarationNodeForError(declaration) {
|
|
25692
25692
|
switch (declaration.isInline) {
|
|
@@ -26001,7 +26001,7 @@ function _extractTemplateStyleUrls(template) {
|
|
|
26001
26001
|
return template.styleUrls.map((url) => ({ url, source: 1, nodeForError }));
|
|
26002
26002
|
}
|
|
26003
26003
|
|
|
26004
|
-
// bazel-out/
|
|
26004
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/symbol.mjs
|
|
26005
26005
|
var ComponentSymbol = class extends DirectiveSymbol {
|
|
26006
26006
|
constructor() {
|
|
26007
26007
|
super(...arguments);
|
|
@@ -26036,7 +26036,7 @@ var ComponentSymbol = class extends DirectiveSymbol {
|
|
|
26036
26036
|
}
|
|
26037
26037
|
};
|
|
26038
26038
|
|
|
26039
|
-
// bazel-out/
|
|
26039
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/util.mjs
|
|
26040
26040
|
function collectAnimationNames(value, animationTriggerNames) {
|
|
26041
26041
|
if (value instanceof Map) {
|
|
26042
26042
|
const name = value.get("name");
|
|
@@ -26112,7 +26112,7 @@ function isLikelyModuleWithProviders(value) {
|
|
|
26112
26112
|
return false;
|
|
26113
26113
|
}
|
|
26114
26114
|
|
|
26115
|
-
// bazel-out/
|
|
26115
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
26116
26116
|
var EMPTY_ARRAY2 = [];
|
|
26117
26117
|
var ComponentDecoratorHandler = class {
|
|
26118
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) {
|
|
@@ -26758,7 +26758,7 @@ function validateStandaloneImports(importRefs, importExpr2, metaReader, scopeRea
|
|
|
26758
26758
|
return diagnostics;
|
|
26759
26759
|
}
|
|
26760
26760
|
|
|
26761
|
-
// bazel-out/
|
|
26761
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
|
|
26762
26762
|
var import_typescript54 = __toESM(require("typescript"), 1);
|
|
26763
26763
|
var InjectableDecoratorHandler = class {
|
|
26764
26764
|
constructor(reflector, evaluator, isCore, strictCtorDeps, injectableRegistry, perf, errorOnDuplicateProv = true) {
|
|
@@ -26974,7 +26974,7 @@ function getDep(dep, reflector) {
|
|
|
26974
26974
|
return meta;
|
|
26975
26975
|
}
|
|
26976
26976
|
|
|
26977
|
-
// bazel-out/
|
|
26977
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
|
|
26978
26978
|
var import_typescript55 = __toESM(require("typescript"), 1);
|
|
26979
26979
|
var PipeSymbol = class extends SemanticSymbol {
|
|
26980
26980
|
constructor(decl, name) {
|
|
@@ -27119,7 +27119,7 @@ var PipeDecoratorHandler = class {
|
|
|
27119
27119
|
}
|
|
27120
27120
|
};
|
|
27121
27121
|
|
|
27122
|
-
// bazel-out/
|
|
27122
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
|
|
27123
27123
|
var CycleAnalyzer = class {
|
|
27124
27124
|
constructor(importGraph) {
|
|
27125
27125
|
this.importGraph = importGraph;
|
|
@@ -27190,7 +27190,7 @@ var Cycle = class {
|
|
|
27190
27190
|
}
|
|
27191
27191
|
};
|
|
27192
27192
|
|
|
27193
|
-
// bazel-out/
|
|
27193
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/imports.mjs
|
|
27194
27194
|
var import_typescript56 = __toESM(require("typescript"), 1);
|
|
27195
27195
|
var ImportGraph = class {
|
|
27196
27196
|
constructor(checker, perf) {
|
|
@@ -27282,7 +27282,7 @@ var Found = class {
|
|
|
27282
27282
|
}
|
|
27283
27283
|
};
|
|
27284
27284
|
|
|
27285
|
-
// bazel-out/
|
|
27285
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
|
|
27286
27286
|
var import_typescript57 = __toESM(require("typescript"), 1);
|
|
27287
27287
|
var FlatIndexGenerator = class {
|
|
27288
27288
|
constructor(entryPoint, relativeFlatIndexPath, moduleName) {
|
|
@@ -27307,7 +27307,7 @@ export * from '${relativeEntryPoint}';
|
|
|
27307
27307
|
}
|
|
27308
27308
|
};
|
|
27309
27309
|
|
|
27310
|
-
// bazel-out/
|
|
27310
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/logic.mjs
|
|
27311
27311
|
function findFlatIndexEntryPoint(rootFiles) {
|
|
27312
27312
|
const tsFiles = rootFiles.filter((file) => isNonDeclarationTsPath(file));
|
|
27313
27313
|
let resolvedEntryPoint = null;
|
|
@@ -27323,7 +27323,7 @@ function findFlatIndexEntryPoint(rootFiles) {
|
|
|
27323
27323
|
return resolvedEntryPoint;
|
|
27324
27324
|
}
|
|
27325
27325
|
|
|
27326
|
-
// bazel-out/
|
|
27326
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
|
|
27327
27327
|
var import_typescript59 = __toESM(require("typescript"), 1);
|
|
27328
27328
|
function checkForPrivateExports(entryPoint, checker, refGraph) {
|
|
27329
27329
|
const diagnostics = [];
|
|
@@ -27403,7 +27403,7 @@ function getDescriptorOfDeclaration(decl) {
|
|
|
27403
27403
|
}
|
|
27404
27404
|
}
|
|
27405
27405
|
|
|
27406
|
-
// bazel-out/
|
|
27406
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/reference_graph.mjs
|
|
27407
27407
|
var ReferenceGraph = class {
|
|
27408
27408
|
constructor() {
|
|
27409
27409
|
this.references = /* @__PURE__ */ new Map();
|
|
@@ -27457,7 +27457,7 @@ var ReferenceGraph = class {
|
|
|
27457
27457
|
}
|
|
27458
27458
|
};
|
|
27459
27459
|
|
|
27460
|
-
// bazel-out/
|
|
27460
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/api.mjs
|
|
27461
27461
|
var NgOriginalFile = Symbol("NgOriginalFile");
|
|
27462
27462
|
var UpdateMode;
|
|
27463
27463
|
(function(UpdateMode2) {
|
|
@@ -27465,13 +27465,13 @@ var UpdateMode;
|
|
|
27465
27465
|
UpdateMode2[UpdateMode2["Incremental"] = 1] = "Incremental";
|
|
27466
27466
|
})(UpdateMode || (UpdateMode = {}));
|
|
27467
27467
|
|
|
27468
|
-
// bazel-out/
|
|
27468
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
|
|
27469
27469
|
var import_typescript65 = __toESM(require("typescript"), 1);
|
|
27470
27470
|
|
|
27471
|
-
// bazel-out/
|
|
27471
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
27472
27472
|
var import_typescript60 = __toESM(require("typescript"), 1);
|
|
27473
27473
|
|
|
27474
|
-
// bazel-out/
|
|
27474
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/expando.mjs
|
|
27475
27475
|
var NgExtension = Symbol("NgExtension");
|
|
27476
27476
|
function isExtended(sf) {
|
|
27477
27477
|
return sf[NgExtension] !== void 0;
|
|
@@ -27531,7 +27531,7 @@ function retagTsFile(sf) {
|
|
|
27531
27531
|
}
|
|
27532
27532
|
}
|
|
27533
27533
|
|
|
27534
|
-
// bazel-out/
|
|
27534
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/util.mjs
|
|
27535
27535
|
var TS_EXTENSIONS = /\.tsx?$/i;
|
|
27536
27536
|
function makeShimFileName(fileName, suffix) {
|
|
27537
27537
|
return absoluteFrom(fileName.replace(TS_EXTENSIONS, suffix));
|
|
@@ -27546,7 +27546,7 @@ function generatedModuleName(originalModuleName, originalFileName, genSuffix) {
|
|
|
27546
27546
|
return moduleName;
|
|
27547
27547
|
}
|
|
27548
27548
|
|
|
27549
|
-
// bazel-out/
|
|
27549
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
27550
27550
|
var ShimAdapter = class {
|
|
27551
27551
|
constructor(delegate, tsRootFiles, topLevelGenerators, perFileGenerators, oldProgram) {
|
|
27552
27552
|
this.delegate = delegate;
|
|
@@ -27641,7 +27641,7 @@ var ShimAdapter = class {
|
|
|
27641
27641
|
}
|
|
27642
27642
|
};
|
|
27643
27643
|
|
|
27644
|
-
// bazel-out/
|
|
27644
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/factory_generator.mjs
|
|
27645
27645
|
var import_typescript62 = __toESM(require("typescript"), 1);
|
|
27646
27646
|
var TS_DTS_SUFFIX = /(\.d)?\.ts$/;
|
|
27647
27647
|
var STRIP_NG_FACTORY = /(.*)NgFactory$/;
|
|
@@ -27801,7 +27801,7 @@ function updateInitializers(stmt, update) {
|
|
|
27801
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)))));
|
|
27802
27802
|
}
|
|
27803
27803
|
|
|
27804
|
-
// bazel-out/
|
|
27804
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
|
|
27805
27805
|
var ShimReferenceTagger = class {
|
|
27806
27806
|
constructor(shimExtensions) {
|
|
27807
27807
|
this.tagged = /* @__PURE__ */ new Set();
|
|
@@ -27835,7 +27835,7 @@ var ShimReferenceTagger = class {
|
|
|
27835
27835
|
}
|
|
27836
27836
|
};
|
|
27837
27837
|
|
|
27838
|
-
// bazel-out/
|
|
27838
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/summary_generator.mjs
|
|
27839
27839
|
var import_typescript64 = __toESM(require("typescript"), 1);
|
|
27840
27840
|
var SummaryGenerator = class {
|
|
27841
27841
|
constructor() {
|
|
@@ -27876,7 +27876,7 @@ function isExported2(decl) {
|
|
|
27876
27876
|
return modifiers !== void 0 && modifiers.some((mod) => mod.kind == import_typescript64.default.SyntaxKind.ExportKeyword) || false;
|
|
27877
27877
|
}
|
|
27878
27878
|
|
|
27879
|
-
// bazel-out/
|
|
27879
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
|
|
27880
27880
|
var DelegatingCompilerHost = class {
|
|
27881
27881
|
constructor(delegate) {
|
|
27882
27882
|
this.delegate = delegate;
|
|
@@ -27987,7 +27987,7 @@ var TsCreateProgramDriver = class {
|
|
|
27987
27987
|
}
|
|
27988
27988
|
};
|
|
27989
27989
|
|
|
27990
|
-
// bazel-out/
|
|
27990
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.mjs
|
|
27991
27991
|
var FileDependencyGraph = class {
|
|
27992
27992
|
constructor() {
|
|
27993
27993
|
this.nodes = /* @__PURE__ */ new Map();
|
|
@@ -28054,7 +28054,7 @@ function isLogicallyChanged(sf, node, changedTsPaths, deletedTsPaths, changedRes
|
|
|
28054
28054
|
return false;
|
|
28055
28055
|
}
|
|
28056
28056
|
|
|
28057
|
-
// bazel-out/
|
|
28057
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
|
|
28058
28058
|
var IncrementalStateKind;
|
|
28059
28059
|
(function(IncrementalStateKind2) {
|
|
28060
28060
|
IncrementalStateKind2[IncrementalStateKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -28062,7 +28062,7 @@ var IncrementalStateKind;
|
|
|
28062
28062
|
IncrementalStateKind2[IncrementalStateKind2["Analyzed"] = 2] = "Analyzed";
|
|
28063
28063
|
})(IncrementalStateKind || (IncrementalStateKind = {}));
|
|
28064
28064
|
|
|
28065
|
-
// bazel-out/
|
|
28065
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
|
|
28066
28066
|
var PhaseKind;
|
|
28067
28067
|
(function(PhaseKind2) {
|
|
28068
28068
|
PhaseKind2[PhaseKind2["Analysis"] = 0] = "Analysis";
|
|
@@ -28263,7 +28263,7 @@ function toOriginalSourceFile(sf) {
|
|
|
28263
28263
|
}
|
|
28264
28264
|
}
|
|
28265
28265
|
|
|
28266
|
-
// bazel-out/
|
|
28266
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
|
|
28267
28267
|
var TrackedIncrementalBuildStrategy = class {
|
|
28268
28268
|
constructor() {
|
|
28269
28269
|
this.state = null;
|
|
@@ -28284,7 +28284,7 @@ var TrackedIncrementalBuildStrategy = class {
|
|
|
28284
28284
|
};
|
|
28285
28285
|
var SYM_INCREMENTAL_STATE = Symbol("NgIncrementalState");
|
|
28286
28286
|
|
|
28287
|
-
// bazel-out/
|
|
28287
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
|
|
28288
28288
|
var IdentifierKind;
|
|
28289
28289
|
(function(IdentifierKind2) {
|
|
28290
28290
|
IdentifierKind2[IdentifierKind2["Property"] = 0] = "Property";
|
|
@@ -28302,7 +28302,7 @@ var AbsoluteSourceSpan2 = class {
|
|
|
28302
28302
|
}
|
|
28303
28303
|
};
|
|
28304
28304
|
|
|
28305
|
-
// bazel-out/
|
|
28305
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/context.mjs
|
|
28306
28306
|
var IndexingContext = class {
|
|
28307
28307
|
constructor() {
|
|
28308
28308
|
this.components = /* @__PURE__ */ new Set();
|
|
@@ -28312,7 +28312,7 @@ var IndexingContext = class {
|
|
|
28312
28312
|
}
|
|
28313
28313
|
};
|
|
28314
28314
|
|
|
28315
|
-
// bazel-out/
|
|
28315
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
|
|
28316
28316
|
var ExpressionVisitor = class extends RecursiveAstVisitor {
|
|
28317
28317
|
constructor(expressionStr, absoluteOffset, boundTemplate, targetToIdentifier) {
|
|
28318
28318
|
super();
|
|
@@ -28548,7 +28548,7 @@ function getTemplateIdentifiers(boundTemplate) {
|
|
|
28548
28548
|
return { identifiers: visitor.identifiers, errors: visitor.errors };
|
|
28549
28549
|
}
|
|
28550
28550
|
|
|
28551
|
-
// bazel-out/
|
|
28551
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
|
|
28552
28552
|
function generateAnalysis(context) {
|
|
28553
28553
|
const analysis = /* @__PURE__ */ new Map();
|
|
28554
28554
|
context.components.forEach(({ declaration, selector, boundTemplate, templateMeta }) => {
|
|
@@ -28584,7 +28584,7 @@ function generateAnalysis(context) {
|
|
|
28584
28584
|
return analysis;
|
|
28585
28585
|
}
|
|
28586
28586
|
|
|
28587
|
-
// bazel-out/
|
|
28587
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/ng_module_index.mjs
|
|
28588
28588
|
var NgModuleIndexImpl = class {
|
|
28589
28589
|
constructor(metaReader, localReader) {
|
|
28590
28590
|
this.metaReader = metaReader;
|
|
@@ -28673,7 +28673,7 @@ var NgModuleIndexImpl = class {
|
|
|
28673
28673
|
}
|
|
28674
28674
|
};
|
|
28675
28675
|
|
|
28676
|
-
// bazel-out/
|
|
28676
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
|
|
28677
28677
|
var import_typescript68 = __toESM(require("typescript"), 1);
|
|
28678
28678
|
var CSS_PREPROCESSOR_EXT = /(\.scss|\.sass|\.less|\.styl)$/;
|
|
28679
28679
|
var RESOURCE_MARKER = ".$ngresource$";
|
|
@@ -28821,7 +28821,7 @@ function createLookupResolutionHost(adapter) {
|
|
|
28821
28821
|
};
|
|
28822
28822
|
}
|
|
28823
28823
|
|
|
28824
|
-
// bazel-out/
|
|
28824
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/standalone.mjs
|
|
28825
28825
|
var StandaloneComponentScopeReader = class {
|
|
28826
28826
|
constructor(metaReader, localModuleReader, dtsModuleReader) {
|
|
28827
28827
|
this.metaReader = metaReader;
|
|
@@ -28899,21 +28899,21 @@ var StandaloneComponentScopeReader = class {
|
|
|
28899
28899
|
}
|
|
28900
28900
|
};
|
|
28901
28901
|
|
|
28902
|
-
// bazel-out/
|
|
28902
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/checker.mjs
|
|
28903
28903
|
var OptimizeFor;
|
|
28904
28904
|
(function(OptimizeFor2) {
|
|
28905
28905
|
OptimizeFor2[OptimizeFor2["SingleFile"] = 0] = "SingleFile";
|
|
28906
28906
|
OptimizeFor2[OptimizeFor2["WholeProgram"] = 1] = "WholeProgram";
|
|
28907
28907
|
})(OptimizeFor || (OptimizeFor = {}));
|
|
28908
28908
|
|
|
28909
|
-
// bazel-out/
|
|
28909
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/completion.mjs
|
|
28910
28910
|
var CompletionKind;
|
|
28911
28911
|
(function(CompletionKind2) {
|
|
28912
28912
|
CompletionKind2[CompletionKind2["Reference"] = 0] = "Reference";
|
|
28913
28913
|
CompletionKind2[CompletionKind2["Variable"] = 1] = "Variable";
|
|
28914
28914
|
})(CompletionKind || (CompletionKind = {}));
|
|
28915
28915
|
|
|
28916
|
-
// bazel-out/
|
|
28916
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/scope.mjs
|
|
28917
28917
|
var PotentialImportKind;
|
|
28918
28918
|
(function(PotentialImportKind2) {
|
|
28919
28919
|
PotentialImportKind2[PotentialImportKind2["NgModule"] = 0] = "NgModule";
|
|
@@ -28925,7 +28925,7 @@ var PotentialImportMode;
|
|
|
28925
28925
|
PotentialImportMode2[PotentialImportMode2["ForceDirect"] = 1] = "ForceDirect";
|
|
28926
28926
|
})(PotentialImportMode || (PotentialImportMode = {}));
|
|
28927
28927
|
|
|
28928
|
-
// bazel-out/
|
|
28928
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.mjs
|
|
28929
28929
|
var SymbolKind;
|
|
28930
28930
|
(function(SymbolKind2) {
|
|
28931
28931
|
SymbolKind2[SymbolKind2["Input"] = 0] = "Input";
|
|
@@ -28941,7 +28941,7 @@ var SymbolKind;
|
|
|
28941
28941
|
SymbolKind2[SymbolKind2["Pipe"] = 10] = "Pipe";
|
|
28942
28942
|
})(SymbolKind || (SymbolKind = {}));
|
|
28943
28943
|
|
|
28944
|
-
// bazel-out/
|
|
28944
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
|
|
28945
28945
|
var import_typescript69 = __toESM(require("typescript"), 1);
|
|
28946
28946
|
function makeTemplateDiagnostic(templateId, mapping, span, category, code, messageText, relatedMessages) {
|
|
28947
28947
|
var _a;
|
|
@@ -29048,7 +29048,7 @@ function parseTemplateAsSourceFile(fileName, template) {
|
|
|
29048
29048
|
return import_typescript69.default.createSourceFile(fileName, template, import_typescript69.default.ScriptTarget.Latest, false, import_typescript69.default.ScriptKind.JSX);
|
|
29049
29049
|
}
|
|
29050
29050
|
|
|
29051
|
-
// bazel-out/
|
|
29051
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
|
|
29052
29052
|
var TEMPLATE_ID = Symbol("ngTemplateId");
|
|
29053
29053
|
var NEXT_TEMPLATE_ID = Symbol("ngNextTemplateId");
|
|
29054
29054
|
function getTemplateId(clazz) {
|
|
@@ -29065,10 +29065,10 @@ function allocateTemplateId(sf) {
|
|
|
29065
29065
|
return `tcb${sf[NEXT_TEMPLATE_ID]++}`;
|
|
29066
29066
|
}
|
|
29067
29067
|
|
|
29068
|
-
// bazel-out/
|
|
29068
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
29069
29069
|
var import_typescript71 = __toESM(require("typescript"), 1);
|
|
29070
29070
|
|
|
29071
|
-
// bazel-out/
|
|
29071
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
|
|
29072
29072
|
var import_typescript70 = __toESM(require("typescript"), 1);
|
|
29073
29073
|
var parseSpanComment = /^(\d+),(\d+)$/;
|
|
29074
29074
|
function readSpanComment(node, sourceFile = node.getSourceFile()) {
|
|
@@ -29197,7 +29197,7 @@ function hasExpressionIdentifier(sourceFile, node, identifier) {
|
|
|
29197
29197
|
}) || false;
|
|
29198
29198
|
}
|
|
29199
29199
|
|
|
29200
|
-
// bazel-out/
|
|
29200
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
29201
29201
|
var CompletionEngine = class {
|
|
29202
29202
|
constructor(tcb, data, tcbPath, tcbIsShim) {
|
|
29203
29203
|
this.tcb = tcb;
|
|
@@ -29354,10 +29354,10 @@ var CompletionEngine = class {
|
|
|
29354
29354
|
}
|
|
29355
29355
|
};
|
|
29356
29356
|
|
|
29357
|
-
// bazel-out/
|
|
29357
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
29358
29358
|
var import_typescript86 = __toESM(require("typescript"), 1);
|
|
29359
29359
|
|
|
29360
|
-
// bazel-out/
|
|
29360
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
|
|
29361
29361
|
var import_typescript72 = __toESM(require("typescript"), 1);
|
|
29362
29362
|
var REGISTRY = new DomElementSchemaRegistry();
|
|
29363
29363
|
var REMOVE_XHTML_REGEX = /^:xhtml:/;
|
|
@@ -29409,10 +29409,10 @@ var RegistryDomSchemaChecker = class {
|
|
|
29409
29409
|
}
|
|
29410
29410
|
};
|
|
29411
29411
|
|
|
29412
|
-
// bazel-out/
|
|
29412
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
29413
29413
|
var import_typescript79 = __toESM(require("typescript"), 1);
|
|
29414
29414
|
|
|
29415
|
-
// bazel-out/
|
|
29415
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
|
|
29416
29416
|
var import_typescript73 = __toESM(require("typescript"), 1);
|
|
29417
29417
|
var SAFE_TO_CAST_WITHOUT_PARENS = /* @__PURE__ */ new Set([
|
|
29418
29418
|
import_typescript73.default.SyntaxKind.ParenthesizedExpression,
|
|
@@ -29486,16 +29486,16 @@ function isAccessExpression(node) {
|
|
|
29486
29486
|
return import_typescript73.default.isPropertyAccessExpression(node) || import_typescript73.default.isElementAccessExpression(node);
|
|
29487
29487
|
}
|
|
29488
29488
|
|
|
29489
|
-
// bazel-out/
|
|
29489
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
29490
29490
|
var import_typescript78 = __toESM(require("typescript"), 1);
|
|
29491
29491
|
|
|
29492
|
-
// bazel-out/
|
|
29492
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
29493
29493
|
var import_typescript76 = __toESM(require("typescript"), 1);
|
|
29494
29494
|
|
|
29495
|
-
// bazel-out/
|
|
29495
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
|
|
29496
29496
|
var import_typescript75 = __toESM(require("typescript"), 1);
|
|
29497
29497
|
|
|
29498
|
-
// bazel-out/
|
|
29498
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_emitter.mjs
|
|
29499
29499
|
var import_typescript74 = __toESM(require("typescript"), 1);
|
|
29500
29500
|
var INELIGIBLE = {};
|
|
29501
29501
|
function canEmitType(type, canEmit) {
|
|
@@ -29570,7 +29570,7 @@ var TypeEmitter = class {
|
|
|
29570
29570
|
}
|
|
29571
29571
|
};
|
|
29572
29572
|
|
|
29573
|
-
// bazel-out/
|
|
29573
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
|
|
29574
29574
|
var TypeParameterEmitter = class {
|
|
29575
29575
|
constructor(typeParameters, reflector) {
|
|
29576
29576
|
this.typeParameters = typeParameters;
|
|
@@ -29647,7 +29647,7 @@ var TypeParameterEmitter = class {
|
|
|
29647
29647
|
}
|
|
29648
29648
|
};
|
|
29649
29649
|
|
|
29650
|
-
// bazel-out/
|
|
29650
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
29651
29651
|
var TcbInliningRequirement;
|
|
29652
29652
|
(function(TcbInliningRequirement2) {
|
|
29653
29653
|
TcbInliningRequirement2[TcbInliningRequirement2["MustInline"] = 0] = "MustInline";
|
|
@@ -29727,7 +29727,7 @@ function checkIfGenericTypeBoundsCanBeEmitted(node, reflector, env) {
|
|
|
29727
29727
|
return emitter.canEmit((ref) => env.canReferenceType(ref));
|
|
29728
29728
|
}
|
|
29729
29729
|
|
|
29730
|
-
// bazel-out/
|
|
29730
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
29731
29731
|
function generateTypeCtorDeclarationFn(node, meta, nodeTypeRef, typeParams) {
|
|
29732
29732
|
const rawTypeArgs = typeParams !== void 0 ? generateGenericArgs(typeParams) : void 0;
|
|
29733
29733
|
const rawType = import_typescript78.default.factory.createTypeReferenceNode(nodeTypeRef, rawTypeArgs);
|
|
@@ -29839,7 +29839,7 @@ function typeParametersWithDefaultTypes(params) {
|
|
|
29839
29839
|
});
|
|
29840
29840
|
}
|
|
29841
29841
|
|
|
29842
|
-
// bazel-out/
|
|
29842
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
29843
29843
|
var Environment = class {
|
|
29844
29844
|
constructor(config, importManager, refEmitter, reflector, contextFile) {
|
|
29845
29845
|
this.config = config;
|
|
@@ -29931,7 +29931,7 @@ var Environment = class {
|
|
|
29931
29931
|
}
|
|
29932
29932
|
};
|
|
29933
29933
|
|
|
29934
|
-
// bazel-out/
|
|
29934
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
|
|
29935
29935
|
var import_typescript80 = __toESM(require("typescript"), 1);
|
|
29936
29936
|
var OutOfBandDiagnosticRecorderImpl = class {
|
|
29937
29937
|
constructor(resolver) {
|
|
@@ -30062,7 +30062,7 @@ function makeInlineDiagnostic(templateId, code, node, messageText, relatedInform
|
|
|
30062
30062
|
});
|
|
30063
30063
|
}
|
|
30064
30064
|
|
|
30065
|
-
// bazel-out/
|
|
30065
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
|
|
30066
30066
|
var import_typescript81 = __toESM(require("typescript"), 1);
|
|
30067
30067
|
var TypeCheckShimGenerator = class {
|
|
30068
30068
|
constructor() {
|
|
@@ -30080,10 +30080,10 @@ var TypeCheckShimGenerator = class {
|
|
|
30080
30080
|
}
|
|
30081
30081
|
};
|
|
30082
30082
|
|
|
30083
|
-
// bazel-out/
|
|
30083
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
30084
30084
|
var import_typescript84 = __toESM(require("typescript"), 1);
|
|
30085
30085
|
|
|
30086
|
-
// bazel-out/
|
|
30086
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
|
|
30087
30087
|
var import_typescript82 = __toESM(require("typescript"), 1);
|
|
30088
30088
|
function wrapForDiagnostics(expr) {
|
|
30089
30089
|
return import_typescript82.default.factory.createParenthesizedExpression(expr);
|
|
@@ -30128,7 +30128,7 @@ function translateDiagnostic(diagnostic, resolver) {
|
|
|
30128
30128
|
return makeTemplateDiagnostic(sourceLocation.id, templateSourceMapping, span, diagnostic.category, diagnostic.code, diagnostic.messageText);
|
|
30129
30129
|
}
|
|
30130
30130
|
|
|
30131
|
-
// bazel-out/
|
|
30131
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
|
|
30132
30132
|
var import_typescript83 = __toESM(require("typescript"), 1);
|
|
30133
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));
|
|
30134
30134
|
var UNDEFINED = import_typescript83.default.factory.createIdentifier("undefined");
|
|
@@ -30457,7 +30457,7 @@ var VeSafeLhsInferenceBugDetector = class {
|
|
|
30457
30457
|
};
|
|
30458
30458
|
VeSafeLhsInferenceBugDetector.SINGLETON = new VeSafeLhsInferenceBugDetector();
|
|
30459
30459
|
|
|
30460
|
-
// bazel-out/
|
|
30460
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_semantics.mjs
|
|
30461
30461
|
var ExpressionSemanticVisitor = class extends RecursiveAstVisitor {
|
|
30462
30462
|
constructor(templateId, boundTarget, oob) {
|
|
30463
30463
|
super();
|
|
@@ -30480,7 +30480,7 @@ var ExpressionSemanticVisitor = class extends RecursiveAstVisitor {
|
|
|
30480
30480
|
}
|
|
30481
30481
|
};
|
|
30482
30482
|
|
|
30483
|
-
// bazel-out/
|
|
30483
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
30484
30484
|
var TcbGenericContextBehavior;
|
|
30485
30485
|
(function(TcbGenericContextBehavior2) {
|
|
30486
30486
|
TcbGenericContextBehavior2[TcbGenericContextBehavior2["UseEmitter"] = 0] = "UseEmitter";
|
|
@@ -31583,7 +31583,7 @@ var TcbEventHandlerTranslator = class extends TcbExpressionTranslator {
|
|
|
31583
31583
|
}
|
|
31584
31584
|
};
|
|
31585
31585
|
|
|
31586
|
-
// bazel-out/
|
|
31586
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
|
|
31587
31587
|
var import_typescript85 = __toESM(require("typescript"), 1);
|
|
31588
31588
|
var TypeCheckFile = class extends Environment {
|
|
31589
31589
|
constructor(fileName, config, refEmitter, reflector, compilerHost) {
|
|
@@ -31619,7 +31619,7 @@ var TypeCheckFile = class extends Environment {
|
|
|
31619
31619
|
}
|
|
31620
31620
|
};
|
|
31621
31621
|
|
|
31622
|
-
// bazel-out/
|
|
31622
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
31623
31623
|
var InliningMode;
|
|
31624
31624
|
(function(InliningMode2) {
|
|
31625
31625
|
InliningMode2[InliningMode2["InlineOps"] = 0] = "InlineOps";
|
|
@@ -31857,7 +31857,7 @@ function splitStringAtPoints(str, points) {
|
|
|
31857
31857
|
return splits;
|
|
31858
31858
|
}
|
|
31859
31859
|
|
|
31860
|
-
// bazel-out/
|
|
31860
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/line_mappings.mjs
|
|
31861
31861
|
var LF_CHAR = 10;
|
|
31862
31862
|
var CR_CHAR = 13;
|
|
31863
31863
|
var LINE_SEP_CHAR = 8232;
|
|
@@ -31898,7 +31898,7 @@ function findClosestLineStartPosition(linesMap, position, low = 0, high = linesM
|
|
|
31898
31898
|
return low - 1;
|
|
31899
31899
|
}
|
|
31900
31900
|
|
|
31901
|
-
// bazel-out/
|
|
31901
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
|
|
31902
31902
|
var TemplateSource = class {
|
|
31903
31903
|
constructor(mapping, file) {
|
|
31904
31904
|
this.mapping = mapping;
|
|
@@ -31949,7 +31949,7 @@ var TemplateSourceManager = class {
|
|
|
31949
31949
|
}
|
|
31950
31950
|
};
|
|
31951
31951
|
|
|
31952
|
-
// bazel-out/
|
|
31952
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
|
|
31953
31953
|
var import_typescript87 = __toESM(require("typescript"), 1);
|
|
31954
31954
|
var SymbolBuilder = class {
|
|
31955
31955
|
constructor(tcbPath, tcbIsShim, typeCheckBlock, templateData, componentScopeReader, getTypeChecker) {
|
|
@@ -32426,7 +32426,7 @@ function sourceSpanEqual(a, b) {
|
|
|
32426
32426
|
return a.start.offset === b.start.offset && a.end.offset === b.end.offset;
|
|
32427
32427
|
}
|
|
32428
32428
|
|
|
32429
|
-
// bazel-out/
|
|
32429
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
|
|
32430
32430
|
var REGISTRY2 = new DomElementSchemaRegistry();
|
|
32431
32431
|
var TemplateTypeCheckerImpl = class {
|
|
32432
32432
|
constructor(originalProgram, programDriver, typeCheckAdapter, config, refEmitter, reflector, compilerHost, priorBuild, metaReader, localMetaReader, ngModuleIndex, componentScopeReader, typeCheckScopeRegistry, perf) {
|
|
@@ -33119,7 +33119,7 @@ var SingleShimTypeCheckingHost = class extends SingleFileTypeCheckingHost {
|
|
|
33119
33119
|
}
|
|
33120
33120
|
};
|
|
33121
33121
|
|
|
33122
|
-
// bazel-out/
|
|
33122
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
|
|
33123
33123
|
var TemplateCheckWithVisitor = class {
|
|
33124
33124
|
run(ctx, component, template) {
|
|
33125
33125
|
const visitor = new TemplateVisitor2(ctx, component, this);
|
|
@@ -33195,7 +33195,7 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor {
|
|
|
33195
33195
|
}
|
|
33196
33196
|
};
|
|
33197
33197
|
|
|
33198
|
-
// bazel-out/
|
|
33198
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
|
|
33199
33199
|
var InvalidBananaInBoxCheck = class extends TemplateCheckWithVisitor {
|
|
33200
33200
|
constructor() {
|
|
33201
33201
|
super(...arguments);
|
|
@@ -33220,7 +33220,7 @@ var factory = {
|
|
|
33220
33220
|
create: () => new InvalidBananaInBoxCheck()
|
|
33221
33221
|
};
|
|
33222
33222
|
|
|
33223
|
-
// bazel-out/
|
|
33223
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.mjs
|
|
33224
33224
|
var KNOWN_CONTROL_FLOW_DIRECTIVES = /* @__PURE__ */ new Map([
|
|
33225
33225
|
["ngIf", "NgIf"],
|
|
33226
33226
|
["ngFor", "NgFor"],
|
|
@@ -33264,7 +33264,7 @@ var factory2 = {
|
|
|
33264
33264
|
}
|
|
33265
33265
|
};
|
|
33266
33266
|
|
|
33267
|
-
// bazel-out/
|
|
33267
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.mjs
|
|
33268
33268
|
var MissingNgForOfLetCheck = class extends TemplateCheckWithVisitor {
|
|
33269
33269
|
constructor() {
|
|
33270
33270
|
super(...arguments);
|
|
@@ -33296,7 +33296,7 @@ var factory3 = {
|
|
|
33296
33296
|
create: () => new MissingNgForOfLetCheck()
|
|
33297
33297
|
};
|
|
33298
33298
|
|
|
33299
|
-
// bazel-out/
|
|
33299
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
|
|
33300
33300
|
var import_typescript90 = __toESM(require("typescript"), 1);
|
|
33301
33301
|
var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
33302
33302
|
constructor() {
|
|
@@ -33340,7 +33340,7 @@ var factory4 = {
|
|
|
33340
33340
|
}
|
|
33341
33341
|
};
|
|
33342
33342
|
|
|
33343
|
-
// bazel-out/
|
|
33343
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.mjs
|
|
33344
33344
|
var import_typescript91 = __toESM(require("typescript"), 1);
|
|
33345
33345
|
var OptionalChainNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
33346
33346
|
constructor() {
|
|
@@ -33385,7 +33385,7 @@ var factory5 = {
|
|
|
33385
33385
|
}
|
|
33386
33386
|
};
|
|
33387
33387
|
|
|
33388
|
-
// bazel-out/
|
|
33388
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.mjs
|
|
33389
33389
|
var STYLE_SUFFIXES = ["px", "%", "em"];
|
|
33390
33390
|
var SuffixNotSupportedCheck = class extends TemplateCheckWithVisitor {
|
|
33391
33391
|
constructor() {
|
|
@@ -33408,7 +33408,7 @@ var factory6 = {
|
|
|
33408
33408
|
create: () => new SuffixNotSupportedCheck()
|
|
33409
33409
|
};
|
|
33410
33410
|
|
|
33411
|
-
// bazel-out/
|
|
33411
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.mjs
|
|
33412
33412
|
var TextAttributeNotBindingSpec = class extends TemplateCheckWithVisitor {
|
|
33413
33413
|
constructor() {
|
|
33414
33414
|
super(...arguments);
|
|
@@ -33446,10 +33446,10 @@ var factory7 = {
|
|
|
33446
33446
|
create: () => new TextAttributeNotBindingSpec()
|
|
33447
33447
|
};
|
|
33448
33448
|
|
|
33449
|
-
// bazel-out/
|
|
33449
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
33450
33450
|
var import_typescript92 = __toESM(require("typescript"), 1);
|
|
33451
33451
|
|
|
33452
|
-
// bazel-out/
|
|
33452
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
|
|
33453
33453
|
var DiagnosticCategoryLabel;
|
|
33454
33454
|
(function(DiagnosticCategoryLabel2) {
|
|
33455
33455
|
DiagnosticCategoryLabel2["Warning"] = "warning";
|
|
@@ -33457,7 +33457,7 @@ var DiagnosticCategoryLabel;
|
|
|
33457
33457
|
DiagnosticCategoryLabel2["Suppress"] = "suppress";
|
|
33458
33458
|
})(DiagnosticCategoryLabel || (DiagnosticCategoryLabel = {}));
|
|
33459
33459
|
|
|
33460
|
-
// bazel-out/
|
|
33460
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
33461
33461
|
var ExtendedTemplateCheckerImpl = class {
|
|
33462
33462
|
constructor(templateTypeChecker, typeChecker, templateCheckFactories, options) {
|
|
33463
33463
|
var _a, _b, _c, _d, _e;
|
|
@@ -33509,7 +33509,7 @@ function assertNever(value) {
|
|
|
33509
33509
|
${value}`);
|
|
33510
33510
|
}
|
|
33511
33511
|
|
|
33512
|
-
// bazel-out/
|
|
33512
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
|
|
33513
33513
|
var ALL_DIAGNOSTIC_FACTORIES = [
|
|
33514
33514
|
factory,
|
|
33515
33515
|
factory4,
|
|
@@ -33520,7 +33520,7 @@ var ALL_DIAGNOSTIC_FACTORIES = [
|
|
|
33520
33520
|
factory6
|
|
33521
33521
|
];
|
|
33522
33522
|
|
|
33523
|
-
// bazel-out/
|
|
33523
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
33524
33524
|
var CompilationTicketKind;
|
|
33525
33525
|
(function(CompilationTicketKind2) {
|
|
33526
33526
|
CompilationTicketKind2[CompilationTicketKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -34210,7 +34210,7 @@ function versionMapFromProgram(program, driver) {
|
|
|
34210
34210
|
return versions;
|
|
34211
34211
|
}
|
|
34212
34212
|
|
|
34213
|
-
// bazel-out/
|
|
34213
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
|
|
34214
34214
|
var import_typescript95 = __toESM(require("typescript"), 1);
|
|
34215
34215
|
var DelegatingCompilerHost2 = class {
|
|
34216
34216
|
constructor(delegate) {
|
|
@@ -34355,7 +34355,7 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
|
|
|
34355
34355
|
}
|
|
34356
34356
|
};
|
|
34357
34357
|
|
|
34358
|
-
// bazel-out/
|
|
34358
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
34359
34359
|
var NgtscProgram = class {
|
|
34360
34360
|
constructor(rootNames, options, delegateHost, oldProgram) {
|
|
34361
34361
|
this.options = options;
|
|
@@ -34573,21 +34573,21 @@ function mergeEmitResults(emitResults) {
|
|
|
34573
34573
|
return { diagnostics, emitSkipped, emittedFiles };
|
|
34574
34574
|
}
|
|
34575
34575
|
|
|
34576
|
-
// bazel-out/
|
|
34576
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
|
|
34577
34577
|
function createProgram({ rootNames, options, host, oldProgram }) {
|
|
34578
34578
|
return new NgtscProgram(rootNames, options, host, oldProgram);
|
|
34579
34579
|
}
|
|
34580
34580
|
|
|
34581
|
-
// bazel-out/
|
|
34581
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
34582
34582
|
var import_typescript99 = __toESM(require("typescript"), 1);
|
|
34583
34583
|
|
|
34584
|
-
// bazel-out/
|
|
34584
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
|
|
34585
34585
|
var import_typescript98 = __toESM(require("typescript"), 1);
|
|
34586
34586
|
|
|
34587
|
-
// bazel-out/
|
|
34587
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/downlevel_decorators_transform/downlevel_decorators_transform.mjs
|
|
34588
34588
|
var import_typescript100 = __toESM(require("typescript"), 1);
|
|
34589
34589
|
|
|
34590
|
-
// bazel-out/
|
|
34590
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/private/tooling.mjs
|
|
34591
34591
|
var GLOBAL_DEFS_FOR_TERSER = {
|
|
34592
34592
|
ngDevMode: false,
|
|
34593
34593
|
ngI18nClosureMode: false
|
|
@@ -34596,7 +34596,7 @@ var GLOBAL_DEFS_FOR_TERSER_WITH_AOT = __spreadProps(__spreadValues({}, GLOBAL_DE
|
|
|
34596
34596
|
ngJitMode: false
|
|
34597
34597
|
});
|
|
34598
34598
|
|
|
34599
|
-
// bazel-out/
|
|
34599
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/logging/src/logger.mjs
|
|
34600
34600
|
var LogLevel;
|
|
34601
34601
|
(function(LogLevel2) {
|
|
34602
34602
|
LogLevel2[LogLevel2["debug"] = 0] = "debug";
|
|
@@ -34605,7 +34605,7 @@ var LogLevel;
|
|
|
34605
34605
|
LogLevel2[LogLevel2["error"] = 3] = "error";
|
|
34606
34606
|
})(LogLevel || (LogLevel = {}));
|
|
34607
34607
|
|
|
34608
|
-
// bazel-out/
|
|
34608
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/logging/src/console_logger.mjs
|
|
34609
34609
|
var RESET = "\x1B[0m";
|
|
34610
34610
|
var RED = "\x1B[31m";
|
|
34611
34611
|
var YELLOW = "\x1B[33m";
|
|
@@ -34614,233 +34614,20 @@ var DEBUG = `${BLUE}Debug:${RESET}`;
|
|
|
34614
34614
|
var WARN = `${YELLOW}Warning:${RESET}`;
|
|
34615
34615
|
var ERROR = `${RED}Error:${RESET}`;
|
|
34616
34616
|
|
|
34617
|
-
// bazel-out/
|
|
34617
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/index.mjs
|
|
34618
34618
|
setFileSystem(new NodeJSFileSystem());
|
|
34619
34619
|
|
|
34620
|
-
// bazel-out/
|
|
34620
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/index.mjs
|
|
34621
34621
|
var import_fs2 = require("fs");
|
|
34622
34622
|
var import_path8 = require("path");
|
|
34623
|
-
var
|
|
34624
|
-
|
|
34625
|
-
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
|
|
34626
|
-
var import_core13 = require("@angular-devkit/core");
|
|
34627
|
-
function getProjectTsConfigPaths(tree) {
|
|
34628
|
-
return __async(this, null, function* () {
|
|
34629
|
-
const buildPaths = /* @__PURE__ */ new Set();
|
|
34630
|
-
const testPaths = /* @__PURE__ */ new Set();
|
|
34631
|
-
const workspace = yield getWorkspace(tree);
|
|
34632
|
-
for (const [, project] of workspace.projects) {
|
|
34633
|
-
for (const [name, target] of project.targets) {
|
|
34634
|
-
if (name !== "build" && name !== "test") {
|
|
34635
|
-
continue;
|
|
34636
|
-
}
|
|
34637
|
-
for (const [, options] of allTargetOptions(target)) {
|
|
34638
|
-
const tsConfig = options.tsConfig;
|
|
34639
|
-
if (typeof tsConfig !== "string" || !tree.exists(tsConfig)) {
|
|
34640
|
-
continue;
|
|
34641
|
-
}
|
|
34642
|
-
if (name === "build") {
|
|
34643
|
-
buildPaths.add((0, import_core13.normalize)(tsConfig));
|
|
34644
|
-
} else {
|
|
34645
|
-
testPaths.add((0, import_core13.normalize)(tsConfig));
|
|
34646
|
-
}
|
|
34647
|
-
}
|
|
34648
|
-
}
|
|
34649
|
-
}
|
|
34650
|
-
return {
|
|
34651
|
-
buildPaths: [...buildPaths],
|
|
34652
|
-
testPaths: [...testPaths]
|
|
34653
|
-
};
|
|
34654
|
-
});
|
|
34655
|
-
}
|
|
34656
|
-
function* allTargetOptions(target) {
|
|
34657
|
-
if (target.options) {
|
|
34658
|
-
yield [void 0, target.options];
|
|
34659
|
-
}
|
|
34660
|
-
if (!target.configurations) {
|
|
34661
|
-
return;
|
|
34662
|
-
}
|
|
34663
|
-
for (const [name, options] of Object.entries(target.configurations)) {
|
|
34664
|
-
if (options) {
|
|
34665
|
-
yield [name, options];
|
|
34666
|
-
}
|
|
34667
|
-
}
|
|
34668
|
-
}
|
|
34669
|
-
function createHost(tree) {
|
|
34670
|
-
return {
|
|
34671
|
-
readFile(path3) {
|
|
34672
|
-
return __async(this, null, function* () {
|
|
34673
|
-
const data = tree.read(path3);
|
|
34674
|
-
if (!data) {
|
|
34675
|
-
throw new Error("File not found.");
|
|
34676
|
-
}
|
|
34677
|
-
return import_core13.virtualFs.fileBufferToString(data);
|
|
34678
|
-
});
|
|
34679
|
-
},
|
|
34680
|
-
writeFile(path3, data) {
|
|
34681
|
-
return __async(this, null, function* () {
|
|
34682
|
-
return tree.overwrite(path3, data);
|
|
34683
|
-
});
|
|
34684
|
-
},
|
|
34685
|
-
isDirectory(path3) {
|
|
34686
|
-
return __async(this, null, function* () {
|
|
34687
|
-
return !tree.exists(path3) && tree.getDir(path3).subfiles.length > 0;
|
|
34688
|
-
});
|
|
34689
|
-
},
|
|
34690
|
-
isFile(path3) {
|
|
34691
|
-
return __async(this, null, function* () {
|
|
34692
|
-
return tree.exists(path3);
|
|
34693
|
-
});
|
|
34694
|
-
}
|
|
34695
|
-
};
|
|
34696
|
-
}
|
|
34697
|
-
function getWorkspace(tree) {
|
|
34698
|
-
return __async(this, null, function* () {
|
|
34699
|
-
const host = createHost(tree);
|
|
34700
|
-
const { workspace } = yield import_core13.workspaces.readWorkspace("/", host);
|
|
34701
|
-
return workspace;
|
|
34702
|
-
});
|
|
34703
|
-
}
|
|
34623
|
+
var import_typescript113 = __toESM(require("typescript"), 1);
|
|
34704
34624
|
|
|
34705
|
-
// bazel-out/
|
|
34706
|
-
var import_path4 = require("path");
|
|
34625
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
|
|
34707
34626
|
var import_typescript102 = __toESM(require("typescript"), 1);
|
|
34708
34627
|
|
|
34709
|
-
// bazel-out/
|
|
34710
|
-
var
|
|
34628
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/import_manager.mjs
|
|
34629
|
+
var import_path4 = require("path");
|
|
34711
34630
|
var import_typescript101 = __toESM(require("typescript"), 1);
|
|
34712
|
-
function parseTsconfigFile(tsconfigPath, basePath) {
|
|
34713
|
-
const { config } = import_typescript101.default.readConfigFile(tsconfigPath, import_typescript101.default.sys.readFile);
|
|
34714
|
-
const parseConfigHost = {
|
|
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
|
|
34719
|
-
};
|
|
34720
|
-
if (!path2.isAbsolute(basePath)) {
|
|
34721
|
-
throw Error("Unexpected relative base path has been specified.");
|
|
34722
|
-
}
|
|
34723
|
-
return import_typescript101.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
|
|
34724
|
-
}
|
|
34725
|
-
|
|
34726
|
-
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
34727
|
-
function createProgramOptions(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles, optionOverrides) {
|
|
34728
|
-
tsconfigPath = (0, import_path4.resolve)(basePath, tsconfigPath);
|
|
34729
|
-
const parsed = parseTsconfigFile(tsconfigPath, (0, import_path4.dirname)(tsconfigPath));
|
|
34730
|
-
const options = optionOverrides ? __spreadValues(__spreadValues({}, parsed.options), optionOverrides) : parsed.options;
|
|
34731
|
-
const host = createMigrationCompilerHost(tree, options, basePath, fakeFileRead);
|
|
34732
|
-
return { rootNames: parsed.fileNames.concat(additionalFiles || []), options, host };
|
|
34733
|
-
}
|
|
34734
|
-
function createMigrationCompilerHost(tree, options, basePath, fakeRead) {
|
|
34735
|
-
const host = import_typescript102.default.createCompilerHost(options, true);
|
|
34736
|
-
const defaultReadFile = host.readFile;
|
|
34737
|
-
host.readFile = (fileName) => {
|
|
34738
|
-
var _a;
|
|
34739
|
-
const treeRelativePath = (0, import_path4.relative)(basePath, fileName);
|
|
34740
|
-
let result = fakeRead == null ? void 0 : fakeRead(treeRelativePath);
|
|
34741
|
-
if (typeof result !== "string") {
|
|
34742
|
-
result = treeRelativePath.startsWith("..") ? defaultReadFile.call(host, fileName) : (_a = tree.read(treeRelativePath)) == null ? void 0 : _a.toString();
|
|
34743
|
-
}
|
|
34744
|
-
return typeof result === "string" ? result.replace(/^\uFEFF/, "") : void 0;
|
|
34745
|
-
};
|
|
34746
|
-
return host;
|
|
34747
|
-
}
|
|
34748
|
-
function canMigrateFile(basePath, sourceFile, program) {
|
|
34749
|
-
if (sourceFile.fileName.endsWith(".ngtypecheck.ts") || sourceFile.isDeclarationFile || program.isSourceFileFromExternalLibrary(sourceFile)) {
|
|
34750
|
-
return false;
|
|
34751
|
-
}
|
|
34752
|
-
return !(0, import_path4.relative)(basePath, sourceFile.fileName).startsWith("..");
|
|
34753
|
-
}
|
|
34754
|
-
|
|
34755
|
-
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/prune-modules.mjs
|
|
34756
|
-
var import_typescript108 = __toESM(require("typescript"), 1);
|
|
34757
|
-
|
|
34758
|
-
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
|
|
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);
|
|
34763
|
-
function getImportOfIdentifier(typeChecker, node) {
|
|
34764
|
-
const symbol = typeChecker.getSymbolAtLocation(node);
|
|
34765
|
-
if (!symbol || symbol.declarations === void 0 || !symbol.declarations.length) {
|
|
34766
|
-
return null;
|
|
34767
|
-
}
|
|
34768
|
-
const decl = symbol.declarations[0];
|
|
34769
|
-
if (!import_typescript103.default.isImportSpecifier(decl)) {
|
|
34770
|
-
return null;
|
|
34771
|
-
}
|
|
34772
|
-
const importDecl = decl.parent.parent.parent;
|
|
34773
|
-
if (!import_typescript103.default.isStringLiteral(importDecl.moduleSpecifier)) {
|
|
34774
|
-
return null;
|
|
34775
|
-
}
|
|
34776
|
-
return {
|
|
34777
|
-
name: decl.propertyName ? decl.propertyName.text : decl.name.text,
|
|
34778
|
-
importModule: importDecl.moduleSpecifier.text,
|
|
34779
|
-
node: importDecl
|
|
34780
|
-
};
|
|
34781
|
-
}
|
|
34782
|
-
function getImportSpecifier(sourceFile, moduleName, specifierName) {
|
|
34783
|
-
var _a;
|
|
34784
|
-
for (const node of sourceFile.statements) {
|
|
34785
|
-
if (import_typescript103.default.isImportDeclaration(node) && import_typescript103.default.isStringLiteral(node.moduleSpecifier)) {
|
|
34786
|
-
const isMatch = typeof moduleName === "string" ? node.moduleSpecifier.text === moduleName : moduleName.test(node.moduleSpecifier.text);
|
|
34787
|
-
const namedBindings = (_a = node.importClause) == null ? void 0 : _a.namedBindings;
|
|
34788
|
-
if (isMatch && namedBindings && import_typescript103.default.isNamedImports(namedBindings)) {
|
|
34789
|
-
const match = findImportSpecifier(namedBindings.elements, specifierName);
|
|
34790
|
-
if (match) {
|
|
34791
|
-
return match;
|
|
34792
|
-
}
|
|
34793
|
-
}
|
|
34794
|
-
}
|
|
34795
|
-
}
|
|
34796
|
-
return null;
|
|
34797
|
-
}
|
|
34798
|
-
function findImportSpecifier(nodes, specifierName) {
|
|
34799
|
-
return nodes.find((element) => {
|
|
34800
|
-
const { name, propertyName } = element;
|
|
34801
|
-
return propertyName ? propertyName.text === specifierName : name.text === specifierName;
|
|
34802
|
-
});
|
|
34803
|
-
}
|
|
34804
|
-
|
|
34805
|
-
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
|
|
34806
|
-
function getCallDecoratorImport(typeChecker, decorator) {
|
|
34807
|
-
if (!import_typescript104.default.isCallExpression(decorator.expression) || !import_typescript104.default.isIdentifier(decorator.expression.expression)) {
|
|
34808
|
-
return null;
|
|
34809
|
-
}
|
|
34810
|
-
const identifier = decorator.expression.expression;
|
|
34811
|
-
return getImportOfIdentifier(typeChecker, identifier);
|
|
34812
|
-
}
|
|
34813
|
-
|
|
34814
|
-
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/ng_decorators.mjs
|
|
34815
|
-
function getAngularDecorators(typeChecker, decorators) {
|
|
34816
|
-
return decorators.map((node) => ({ node, importData: getCallDecoratorImport(typeChecker, node) })).filter(({ importData }) => importData && importData.importModule.startsWith("@angular/")).map(({ node, importData }) => ({
|
|
34817
|
-
node,
|
|
34818
|
-
name: importData.name,
|
|
34819
|
-
moduleName: importData.importModule,
|
|
34820
|
-
importNode: importData.node
|
|
34821
|
-
}));
|
|
34822
|
-
}
|
|
34823
|
-
|
|
34824
|
-
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/nodes.mjs
|
|
34825
|
-
var import_typescript105 = __toESM(require("typescript"), 1);
|
|
34826
|
-
function closestNode(node, predicate) {
|
|
34827
|
-
let current = node.parent;
|
|
34828
|
-
while (current && !import_typescript105.default.isSourceFile(current)) {
|
|
34829
|
-
if (predicate(current)) {
|
|
34830
|
-
return current;
|
|
34831
|
-
}
|
|
34832
|
-
current = current.parent;
|
|
34833
|
-
}
|
|
34834
|
-
return null;
|
|
34835
|
-
}
|
|
34836
|
-
|
|
34837
|
-
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/util.mjs
|
|
34838
|
-
var import_path6 = require("path");
|
|
34839
|
-
var import_typescript107 = __toESM(require("typescript"), 1);
|
|
34840
|
-
|
|
34841
|
-
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/import_manager.mjs
|
|
34842
|
-
var import_path5 = require("path");
|
|
34843
|
-
var import_typescript106 = __toESM(require("typescript"), 1);
|
|
34844
34631
|
var IS_AFTER_TS_492 = isAfterVersion2(4, 9);
|
|
34845
34632
|
var ImportManager2 = class {
|
|
34846
34633
|
constructor(getUpdateRecorder, printer) {
|
|
@@ -34853,7 +34640,7 @@ var ImportManager2 = class {
|
|
|
34853
34640
|
this.importCache = [];
|
|
34854
34641
|
}
|
|
34855
34642
|
addImportToSourceFile(sourceFile, symbolName, moduleName, alias = null, typeImport = false) {
|
|
34856
|
-
const sourceDir = (0,
|
|
34643
|
+
const sourceDir = (0, import_path4.dirname)(sourceFile.fileName);
|
|
34857
34644
|
let importStartIndex = 0;
|
|
34858
34645
|
let existingImport = null;
|
|
34859
34646
|
const cachedImport = this.importCache.find((c) => c.sourceFile === sourceFile && c.symbolName === symbolName && c.moduleName === moduleName && c.alias === alias);
|
|
@@ -34862,21 +34649,21 @@ var ImportManager2 = class {
|
|
|
34862
34649
|
}
|
|
34863
34650
|
for (let i = sourceFile.statements.length - 1; i >= 0; i--) {
|
|
34864
34651
|
const statement = sourceFile.statements[i];
|
|
34865
|
-
if (!
|
|
34652
|
+
if (!import_typescript101.default.isImportDeclaration(statement) || !import_typescript101.default.isStringLiteral(statement.moduleSpecifier) || !statement.importClause) {
|
|
34866
34653
|
continue;
|
|
34867
34654
|
}
|
|
34868
34655
|
if (importStartIndex === 0) {
|
|
34869
34656
|
importStartIndex = this._getEndPositionOfNode(statement);
|
|
34870
34657
|
}
|
|
34871
34658
|
const moduleSpecifier = statement.moduleSpecifier.text;
|
|
34872
|
-
if (moduleSpecifier.startsWith(".") && (0,
|
|
34659
|
+
if (moduleSpecifier.startsWith(".") && (0, import_path4.resolve)(sourceDir, moduleSpecifier) !== (0, import_path4.resolve)(sourceDir, moduleName) || moduleSpecifier !== moduleName) {
|
|
34873
34660
|
continue;
|
|
34874
34661
|
}
|
|
34875
34662
|
if (statement.importClause.namedBindings) {
|
|
34876
34663
|
const namedBindings = statement.importClause.namedBindings;
|
|
34877
|
-
if (
|
|
34878
|
-
return
|
|
34879
|
-
} else if (
|
|
34664
|
+
if (import_typescript101.default.isNamespaceImport(namedBindings) && !typeImport) {
|
|
34665
|
+
return import_typescript101.default.factory.createPropertyAccessExpression(import_typescript101.default.factory.createIdentifier(namedBindings.name.text), import_typescript101.default.factory.createIdentifier(alias || symbolName || "default"));
|
|
34666
|
+
} else if (import_typescript101.default.isNamedImports(namedBindings) && symbolName) {
|
|
34880
34667
|
const existingElement = namedBindings.elements.find((e) => {
|
|
34881
34668
|
if (alias) {
|
|
34882
34669
|
return e.propertyName && e.name.text === alias && e.propertyName.text === symbolName;
|
|
@@ -34884,12 +34671,12 @@ var ImportManager2 = class {
|
|
|
34884
34671
|
return e.propertyName ? e.propertyName.text === symbolName : e.name.text === symbolName;
|
|
34885
34672
|
});
|
|
34886
34673
|
if (existingElement) {
|
|
34887
|
-
return
|
|
34674
|
+
return import_typescript101.default.factory.createIdentifier(existingElement.name.text);
|
|
34888
34675
|
}
|
|
34889
34676
|
existingImport = statement;
|
|
34890
34677
|
}
|
|
34891
34678
|
} else if (statement.importClause.name && !symbolName) {
|
|
34892
|
-
return
|
|
34679
|
+
return import_typescript101.default.factory.createIdentifier(statement.importClause.name.text);
|
|
34893
34680
|
}
|
|
34894
34681
|
}
|
|
34895
34682
|
if (existingImport) {
|
|
@@ -34913,7 +34700,7 @@ var ImportManager2 = class {
|
|
|
34913
34700
|
if (!importMap.has(moduleName)) {
|
|
34914
34701
|
importMap.set(moduleName, []);
|
|
34915
34702
|
}
|
|
34916
|
-
importMap.get(moduleName).push(
|
|
34703
|
+
importMap.get(moduleName).push(import_typescript101.default.factory.createImportSpecifier(false, propertyName, name));
|
|
34917
34704
|
} else {
|
|
34918
34705
|
const importMap = this.newImports.get(sourceFile).defaultImports;
|
|
34919
34706
|
identifier = this._getUniqueIdentifier(sourceFile, "defaultExport");
|
|
@@ -34927,19 +34714,19 @@ var ImportManager2 = class {
|
|
|
34927
34714
|
const sourceFile = importDecl.getSourceFile();
|
|
34928
34715
|
const recorder = this.getUpdateRecorder(sourceFile);
|
|
34929
34716
|
const namedBindings = importDecl.importClause.namedBindings;
|
|
34930
|
-
const newNamedBindings =
|
|
34931
|
-
const newNamedBindingsText = this.printer.printNode(
|
|
34717
|
+
const newNamedBindings = import_typescript101.default.factory.updateNamedImports(namedBindings, namedBindings.elements.concat(expressions.map(({ propertyName, importName }) => import_typescript101.default.factory.createImportSpecifier(false, propertyName, importName))));
|
|
34718
|
+
const newNamedBindingsText = this.printer.printNode(import_typescript101.default.EmitHint.Unspecified, newNamedBindings, sourceFile);
|
|
34932
34719
|
recorder.updateExistingImport(namedBindings, newNamedBindingsText);
|
|
34933
34720
|
});
|
|
34934
34721
|
this.newImports.forEach(({ importStartIndex, defaultImports, namedImports }, sourceFile) => {
|
|
34935
34722
|
const recorder = this.getUpdateRecorder(sourceFile);
|
|
34936
34723
|
const useSingleQuotes = this._getQuoteStyle(sourceFile) === 0;
|
|
34937
34724
|
defaultImports.forEach((identifier, moduleName) => {
|
|
34938
|
-
const newImport = createImportDeclaration2(void 0,
|
|
34725
|
+
const newImport = createImportDeclaration2(void 0, import_typescript101.default.factory.createImportClause(false, identifier, void 0), import_typescript101.default.factory.createStringLiteral(moduleName, useSingleQuotes));
|
|
34939
34726
|
recorder.addNewImport(importStartIndex, this._getNewImportText(importStartIndex, newImport, sourceFile));
|
|
34940
34727
|
});
|
|
34941
34728
|
namedImports.forEach((specifiers, moduleName) => {
|
|
34942
|
-
const newImport = createImportDeclaration2(void 0,
|
|
34729
|
+
const newImport = createImportDeclaration2(void 0, import_typescript101.default.factory.createImportClause(false, void 0, import_typescript101.default.factory.createNamedImports(specifiers)), import_typescript101.default.factory.createStringLiteral(moduleName, useSingleQuotes));
|
|
34943
34730
|
recorder.addNewImport(importStartIndex, this._getNewImportText(importStartIndex, newImport, sourceFile));
|
|
34944
34731
|
});
|
|
34945
34732
|
});
|
|
@@ -34947,7 +34734,7 @@ var ImportManager2 = class {
|
|
|
34947
34734
|
_getUniqueIdentifier(sourceFile, baseName) {
|
|
34948
34735
|
if (this.isUniqueIdentifierName(sourceFile, baseName)) {
|
|
34949
34736
|
this._recordUsedIdentifier(sourceFile, baseName);
|
|
34950
|
-
return
|
|
34737
|
+
return import_typescript101.default.factory.createIdentifier(baseName);
|
|
34951
34738
|
}
|
|
34952
34739
|
let name = null;
|
|
34953
34740
|
let counter = 1;
|
|
@@ -34955,7 +34742,7 @@ var ImportManager2 = class {
|
|
|
34955
34742
|
name = `${baseName}_${counter++}`;
|
|
34956
34743
|
} while (!this.isUniqueIdentifierName(sourceFile, name));
|
|
34957
34744
|
this._recordUsedIdentifier(sourceFile, name);
|
|
34958
|
-
return
|
|
34745
|
+
return import_typescript101.default.factory.createIdentifier(name);
|
|
34959
34746
|
}
|
|
34960
34747
|
isUniqueIdentifierName(sourceFile, name) {
|
|
34961
34748
|
if (this.usedIdentifierNames.has(sourceFile) && this.usedIdentifierNames.get(sourceFile).indexOf(name) !== -1) {
|
|
@@ -34964,7 +34751,7 @@ var ImportManager2 = class {
|
|
|
34964
34751
|
const nodeQueue = [sourceFile];
|
|
34965
34752
|
while (nodeQueue.length) {
|
|
34966
34753
|
const node = nodeQueue.shift();
|
|
34967
|
-
if (
|
|
34754
|
+
if (import_typescript101.default.isIdentifier(node) && node.text === name && (!import_typescript101.default.isImportSpecifier(node.parent) || node.parent.propertyName !== node)) {
|
|
34968
34755
|
return false;
|
|
34969
34756
|
}
|
|
34970
34757
|
nodeQueue.push(...node.getChildren());
|
|
@@ -34976,21 +34763,21 @@ var ImportManager2 = class {
|
|
|
34976
34763
|
}
|
|
34977
34764
|
_getEndPositionOfNode(node) {
|
|
34978
34765
|
const nodeEndPos = node.getEnd();
|
|
34979
|
-
const commentRanges =
|
|
34766
|
+
const commentRanges = import_typescript101.default.getTrailingCommentRanges(node.getSourceFile().text, nodeEndPos);
|
|
34980
34767
|
if (!commentRanges || !commentRanges.length) {
|
|
34981
34768
|
return nodeEndPos;
|
|
34982
34769
|
}
|
|
34983
34770
|
return commentRanges[commentRanges.length - 1].end;
|
|
34984
34771
|
}
|
|
34985
34772
|
_getNewImportText(importStartIndex, newImport, sourceFile) {
|
|
34986
|
-
const text = this.printer.printNode(
|
|
34773
|
+
const text = this.printer.printNode(import_typescript101.default.EmitHint.Unspecified, newImport, sourceFile);
|
|
34987
34774
|
return importStartIndex === 0 ? `${text}
|
|
34988
34775
|
` : `
|
|
34989
34776
|
${text}`;
|
|
34990
34777
|
}
|
|
34991
34778
|
_getImportParts(sourceFile, symbolName, alias) {
|
|
34992
|
-
const symbolIdentifier =
|
|
34993
|
-
const aliasIdentifier = alias ?
|
|
34779
|
+
const symbolIdentifier = import_typescript101.default.factory.createIdentifier(symbolName);
|
|
34780
|
+
const aliasIdentifier = alias ? import_typescript101.default.factory.createIdentifier(alias) : null;
|
|
34994
34781
|
const generatedUniqueIdentifier = this._getUniqueIdentifier(sourceFile, alias || symbolName);
|
|
34995
34782
|
const needsGeneratedUniqueName = generatedUniqueIdentifier.text !== (alias || symbolName);
|
|
34996
34783
|
let propertyName;
|
|
@@ -35010,7 +34797,7 @@ ${text}`;
|
|
|
35010
34797
|
if (!this.quoteStyles.hasOwnProperty(sourceFile.fileName)) {
|
|
35011
34798
|
let quoteStyle;
|
|
35012
34799
|
for (const statement of sourceFile.statements) {
|
|
35013
|
-
if (
|
|
34800
|
+
if (import_typescript101.default.isImportDeclaration(statement) && import_typescript101.default.isStringLiteralLike(statement.moduleSpecifier)) {
|
|
35014
34801
|
quoteStyle = statement.moduleSpecifier.getText().trim().startsWith('"') ? 1 : 0;
|
|
35015
34802
|
break;
|
|
35016
34803
|
}
|
|
@@ -35021,17 +34808,17 @@ ${text}`;
|
|
|
35021
34808
|
}
|
|
35022
34809
|
};
|
|
35023
34810
|
function createImportDeclaration2(modifiers, importClause, moduleSpecifier, assertClause) {
|
|
35024
|
-
return IS_AFTER_TS_492 ?
|
|
34811
|
+
return IS_AFTER_TS_492 ? import_typescript101.default.factory.createImportDeclaration(modifiers, importClause, moduleSpecifier, assertClause) : import_typescript101.default.factory.createImportDeclaration(void 0, modifiers, importClause, moduleSpecifier, assertClause);
|
|
35025
34812
|
}
|
|
35026
34813
|
function isAfterVersion2(targetMajor, targetMinor) {
|
|
35027
|
-
const [major, minor] =
|
|
34814
|
+
const [major, minor] = import_typescript101.default.versionMajorMinor.split(".").map((part) => parseInt(part));
|
|
35028
34815
|
if (major < targetMajor) {
|
|
35029
34816
|
return false;
|
|
35030
34817
|
}
|
|
35031
34818
|
return major === targetMajor ? minor >= targetMinor : true;
|
|
35032
34819
|
}
|
|
35033
34820
|
|
|
35034
|
-
// bazel-out/
|
|
34821
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
|
|
35035
34822
|
var ChangeTracker = class {
|
|
35036
34823
|
constructor(_printer, _importRemapper) {
|
|
35037
34824
|
this._printer = _printer;
|
|
@@ -35048,7 +34835,7 @@ var ChangeTracker = class {
|
|
|
35048
34835
|
replaceText(sourceFile, start, removeLength, text) {
|
|
35049
34836
|
this._trackChange(sourceFile, { start, removeLength, text });
|
|
35050
34837
|
}
|
|
35051
|
-
replaceNode(oldNode, newNode, emitHint =
|
|
34838
|
+
replaceNode(oldNode, newNode, emitHint = import_typescript102.default.EmitHint.Unspecified, sourceFileWhenPrinting) {
|
|
35052
34839
|
const sourceFile = oldNode.getSourceFile();
|
|
35053
34840
|
this.replaceText(sourceFile, oldNode.getStart(), oldNode.getWidth(), this._printer.printNode(emitHint, newNode, sourceFileWhenPrinting || sourceFile));
|
|
35054
34841
|
}
|
|
@@ -35057,7 +34844,7 @@ var ChangeTracker = class {
|
|
|
35057
34844
|
}
|
|
35058
34845
|
addImport(sourceFile, symbolName, moduleName, alias = null) {
|
|
35059
34846
|
if (this._importRemapper) {
|
|
35060
|
-
moduleName = this._importRemapper(moduleName);
|
|
34847
|
+
moduleName = this._importRemapper(moduleName, sourceFile.fileName);
|
|
35061
34848
|
}
|
|
35062
34849
|
moduleName = normalizePath(moduleName);
|
|
35063
34850
|
return this._importManager.addImportToSourceFile(sourceFile, symbolName, moduleName, alias);
|
|
@@ -35080,6 +34867,225 @@ var ChangeTracker = class {
|
|
|
35080
34867
|
}
|
|
35081
34868
|
}
|
|
35082
34869
|
};
|
|
34870
|
+
function normalizePath(path3) {
|
|
34871
|
+
return path3.replace(/\\/g, "/");
|
|
34872
|
+
}
|
|
34873
|
+
|
|
34874
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
|
|
34875
|
+
var import_core13 = require("@angular-devkit/core");
|
|
34876
|
+
function getProjectTsConfigPaths(tree) {
|
|
34877
|
+
return __async(this, null, function* () {
|
|
34878
|
+
const buildPaths = /* @__PURE__ */ new Set();
|
|
34879
|
+
const testPaths = /* @__PURE__ */ new Set();
|
|
34880
|
+
const workspace = yield getWorkspace(tree);
|
|
34881
|
+
for (const [, project] of workspace.projects) {
|
|
34882
|
+
for (const [name, target] of project.targets) {
|
|
34883
|
+
if (name !== "build" && name !== "test") {
|
|
34884
|
+
continue;
|
|
34885
|
+
}
|
|
34886
|
+
for (const [, options] of allTargetOptions(target)) {
|
|
34887
|
+
const tsConfig = options.tsConfig;
|
|
34888
|
+
if (typeof tsConfig !== "string" || !tree.exists(tsConfig)) {
|
|
34889
|
+
continue;
|
|
34890
|
+
}
|
|
34891
|
+
if (name === "build") {
|
|
34892
|
+
buildPaths.add((0, import_core13.normalize)(tsConfig));
|
|
34893
|
+
} else {
|
|
34894
|
+
testPaths.add((0, import_core13.normalize)(tsConfig));
|
|
34895
|
+
}
|
|
34896
|
+
}
|
|
34897
|
+
}
|
|
34898
|
+
}
|
|
34899
|
+
return {
|
|
34900
|
+
buildPaths: [...buildPaths],
|
|
34901
|
+
testPaths: [...testPaths]
|
|
34902
|
+
};
|
|
34903
|
+
});
|
|
34904
|
+
}
|
|
34905
|
+
function* allTargetOptions(target) {
|
|
34906
|
+
if (target.options) {
|
|
34907
|
+
yield [void 0, target.options];
|
|
34908
|
+
}
|
|
34909
|
+
if (!target.configurations) {
|
|
34910
|
+
return;
|
|
34911
|
+
}
|
|
34912
|
+
for (const [name, options] of Object.entries(target.configurations)) {
|
|
34913
|
+
if (options) {
|
|
34914
|
+
yield [name, options];
|
|
34915
|
+
}
|
|
34916
|
+
}
|
|
34917
|
+
}
|
|
34918
|
+
function createHost(tree) {
|
|
34919
|
+
return {
|
|
34920
|
+
readFile(path3) {
|
|
34921
|
+
return __async(this, null, function* () {
|
|
34922
|
+
const data = tree.read(path3);
|
|
34923
|
+
if (!data) {
|
|
34924
|
+
throw new Error("File not found.");
|
|
34925
|
+
}
|
|
34926
|
+
return import_core13.virtualFs.fileBufferToString(data);
|
|
34927
|
+
});
|
|
34928
|
+
},
|
|
34929
|
+
writeFile(path3, data) {
|
|
34930
|
+
return __async(this, null, function* () {
|
|
34931
|
+
return tree.overwrite(path3, data);
|
|
34932
|
+
});
|
|
34933
|
+
},
|
|
34934
|
+
isDirectory(path3) {
|
|
34935
|
+
return __async(this, null, function* () {
|
|
34936
|
+
return !tree.exists(path3) && tree.getDir(path3).subfiles.length > 0;
|
|
34937
|
+
});
|
|
34938
|
+
},
|
|
34939
|
+
isFile(path3) {
|
|
34940
|
+
return __async(this, null, function* () {
|
|
34941
|
+
return tree.exists(path3);
|
|
34942
|
+
});
|
|
34943
|
+
}
|
|
34944
|
+
};
|
|
34945
|
+
}
|
|
34946
|
+
function getWorkspace(tree) {
|
|
34947
|
+
return __async(this, null, function* () {
|
|
34948
|
+
const host = createHost(tree);
|
|
34949
|
+
const { workspace } = yield import_core13.workspaces.readWorkspace("/", host);
|
|
34950
|
+
return workspace;
|
|
34951
|
+
});
|
|
34952
|
+
}
|
|
34953
|
+
|
|
34954
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
34955
|
+
var import_path5 = require("path");
|
|
34956
|
+
var import_typescript104 = __toESM(require("typescript"), 1);
|
|
34957
|
+
|
|
34958
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
|
|
34959
|
+
var path2 = __toESM(require("path"), 1);
|
|
34960
|
+
var import_typescript103 = __toESM(require("typescript"), 1);
|
|
34961
|
+
function parseTsconfigFile(tsconfigPath, basePath) {
|
|
34962
|
+
const { config } = import_typescript103.default.readConfigFile(tsconfigPath, import_typescript103.default.sys.readFile);
|
|
34963
|
+
const parseConfigHost = {
|
|
34964
|
+
useCaseSensitiveFileNames: import_typescript103.default.sys.useCaseSensitiveFileNames,
|
|
34965
|
+
fileExists: import_typescript103.default.sys.fileExists,
|
|
34966
|
+
readDirectory: import_typescript103.default.sys.readDirectory,
|
|
34967
|
+
readFile: import_typescript103.default.sys.readFile
|
|
34968
|
+
};
|
|
34969
|
+
if (!path2.isAbsolute(basePath)) {
|
|
34970
|
+
throw Error("Unexpected relative base path has been specified.");
|
|
34971
|
+
}
|
|
34972
|
+
return import_typescript103.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
|
|
34973
|
+
}
|
|
34974
|
+
|
|
34975
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
34976
|
+
function createProgramOptions(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles, optionOverrides) {
|
|
34977
|
+
tsconfigPath = (0, import_path5.resolve)(basePath, tsconfigPath);
|
|
34978
|
+
const parsed = parseTsconfigFile(tsconfigPath, (0, import_path5.dirname)(tsconfigPath));
|
|
34979
|
+
const options = optionOverrides ? __spreadValues(__spreadValues({}, parsed.options), optionOverrides) : parsed.options;
|
|
34980
|
+
const host = createMigrationCompilerHost(tree, options, basePath, fakeFileRead);
|
|
34981
|
+
return { rootNames: parsed.fileNames.concat(additionalFiles || []), options, host };
|
|
34982
|
+
}
|
|
34983
|
+
function createMigrationCompilerHost(tree, options, basePath, fakeRead) {
|
|
34984
|
+
const host = import_typescript104.default.createCompilerHost(options, true);
|
|
34985
|
+
const defaultReadFile = host.readFile;
|
|
34986
|
+
host.readFile = (fileName) => {
|
|
34987
|
+
var _a;
|
|
34988
|
+
const treeRelativePath = (0, import_path5.relative)(basePath, fileName);
|
|
34989
|
+
let result = fakeRead == null ? void 0 : fakeRead(treeRelativePath);
|
|
34990
|
+
if (typeof result !== "string") {
|
|
34991
|
+
result = treeRelativePath.startsWith("..") ? defaultReadFile.call(host, fileName) : (_a = tree.read(treeRelativePath)) == null ? void 0 : _a.toString();
|
|
34992
|
+
}
|
|
34993
|
+
return typeof result === "string" ? result.replace(/^\uFEFF/, "") : void 0;
|
|
34994
|
+
};
|
|
34995
|
+
return host;
|
|
34996
|
+
}
|
|
34997
|
+
function canMigrateFile(basePath, sourceFile, program) {
|
|
34998
|
+
if (sourceFile.fileName.endsWith(".ngtypecheck.ts") || sourceFile.isDeclarationFile || program.isSourceFileFromExternalLibrary(sourceFile)) {
|
|
34999
|
+
return false;
|
|
35000
|
+
}
|
|
35001
|
+
return !(0, import_path5.relative)(basePath, sourceFile.fileName).startsWith("..");
|
|
35002
|
+
}
|
|
35003
|
+
|
|
35004
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/prune-modules.mjs
|
|
35005
|
+
var import_typescript109 = __toESM(require("typescript"), 1);
|
|
35006
|
+
|
|
35007
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
|
|
35008
|
+
var import_typescript106 = __toESM(require("typescript"), 1);
|
|
35009
|
+
|
|
35010
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
|
|
35011
|
+
var import_typescript105 = __toESM(require("typescript"), 1);
|
|
35012
|
+
function getImportOfIdentifier(typeChecker, node) {
|
|
35013
|
+
const symbol = typeChecker.getSymbolAtLocation(node);
|
|
35014
|
+
if (!symbol || symbol.declarations === void 0 || !symbol.declarations.length) {
|
|
35015
|
+
return null;
|
|
35016
|
+
}
|
|
35017
|
+
const decl = symbol.declarations[0];
|
|
35018
|
+
if (!import_typescript105.default.isImportSpecifier(decl)) {
|
|
35019
|
+
return null;
|
|
35020
|
+
}
|
|
35021
|
+
const importDecl = decl.parent.parent.parent;
|
|
35022
|
+
if (!import_typescript105.default.isStringLiteral(importDecl.moduleSpecifier)) {
|
|
35023
|
+
return null;
|
|
35024
|
+
}
|
|
35025
|
+
return {
|
|
35026
|
+
name: decl.propertyName ? decl.propertyName.text : decl.name.text,
|
|
35027
|
+
importModule: importDecl.moduleSpecifier.text,
|
|
35028
|
+
node: importDecl
|
|
35029
|
+
};
|
|
35030
|
+
}
|
|
35031
|
+
function getImportSpecifier(sourceFile, moduleName, specifierName) {
|
|
35032
|
+
var _a;
|
|
35033
|
+
for (const node of sourceFile.statements) {
|
|
35034
|
+
if (import_typescript105.default.isImportDeclaration(node) && import_typescript105.default.isStringLiteral(node.moduleSpecifier)) {
|
|
35035
|
+
const isMatch = typeof moduleName === "string" ? node.moduleSpecifier.text === moduleName : moduleName.test(node.moduleSpecifier.text);
|
|
35036
|
+
const namedBindings = (_a = node.importClause) == null ? void 0 : _a.namedBindings;
|
|
35037
|
+
if (isMatch && namedBindings && import_typescript105.default.isNamedImports(namedBindings)) {
|
|
35038
|
+
const match = findImportSpecifier(namedBindings.elements, specifierName);
|
|
35039
|
+
if (match) {
|
|
35040
|
+
return match;
|
|
35041
|
+
}
|
|
35042
|
+
}
|
|
35043
|
+
}
|
|
35044
|
+
}
|
|
35045
|
+
return null;
|
|
35046
|
+
}
|
|
35047
|
+
function findImportSpecifier(nodes, specifierName) {
|
|
35048
|
+
return nodes.find((element) => {
|
|
35049
|
+
const { name, propertyName } = element;
|
|
35050
|
+
return propertyName ? propertyName.text === specifierName : name.text === specifierName;
|
|
35051
|
+
});
|
|
35052
|
+
}
|
|
35053
|
+
|
|
35054
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
|
|
35055
|
+
function getCallDecoratorImport(typeChecker, decorator) {
|
|
35056
|
+
if (!import_typescript106.default.isCallExpression(decorator.expression) || !import_typescript106.default.isIdentifier(decorator.expression.expression)) {
|
|
35057
|
+
return null;
|
|
35058
|
+
}
|
|
35059
|
+
const identifier = decorator.expression.expression;
|
|
35060
|
+
return getImportOfIdentifier(typeChecker, identifier);
|
|
35061
|
+
}
|
|
35062
|
+
|
|
35063
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/ng_decorators.mjs
|
|
35064
|
+
function getAngularDecorators(typeChecker, decorators) {
|
|
35065
|
+
return decorators.map((node) => ({ node, importData: getCallDecoratorImport(typeChecker, node) })).filter(({ importData }) => importData && importData.importModule.startsWith("@angular/")).map(({ node, importData }) => ({
|
|
35066
|
+
node,
|
|
35067
|
+
name: importData.name,
|
|
35068
|
+
moduleName: importData.importModule,
|
|
35069
|
+
importNode: importData.node
|
|
35070
|
+
}));
|
|
35071
|
+
}
|
|
35072
|
+
|
|
35073
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/nodes.mjs
|
|
35074
|
+
var import_typescript107 = __toESM(require("typescript"), 1);
|
|
35075
|
+
function closestNode(node, predicate) {
|
|
35076
|
+
let current = node.parent;
|
|
35077
|
+
while (current && !import_typescript107.default.isSourceFile(current)) {
|
|
35078
|
+
if (predicate(current)) {
|
|
35079
|
+
return current;
|
|
35080
|
+
}
|
|
35081
|
+
current = current.parent;
|
|
35082
|
+
}
|
|
35083
|
+
return null;
|
|
35084
|
+
}
|
|
35085
|
+
|
|
35086
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/util.mjs
|
|
35087
|
+
var import_path6 = require("path");
|
|
35088
|
+
var import_typescript108 = __toESM(require("typescript"), 1);
|
|
35083
35089
|
var UniqueItemTracker = class {
|
|
35084
35090
|
constructor() {
|
|
35085
35091
|
this._nodes = /* @__PURE__ */ new Map();
|
|
@@ -35122,7 +35128,7 @@ var ReferenceResolver = class {
|
|
|
35122
35128
|
const results = /* @__PURE__ */ new Map();
|
|
35123
35129
|
for (const symbol of referencedSymbols) {
|
|
35124
35130
|
for (const ref of symbol.references) {
|
|
35125
|
-
if (!ref.isDefinition || symbol.definition.kind ===
|
|
35131
|
+
if (!ref.isDefinition || symbol.definition.kind === import_typescript108.default.ScriptElementKind.alias) {
|
|
35126
35132
|
if (!results.has(ref.fileName)) {
|
|
35127
35133
|
results.set(ref.fileName, []);
|
|
35128
35134
|
}
|
|
@@ -35146,7 +35152,7 @@ var ReferenceResolver = class {
|
|
|
35146
35152
|
for (const file of highlights) {
|
|
35147
35153
|
if (file.fileName === fileName) {
|
|
35148
35154
|
for (const { textSpan: { start, length }, kind } of file.highlightSpans) {
|
|
35149
|
-
if (kind !==
|
|
35155
|
+
if (kind !== import_typescript108.default.HighlightSpanKind.none) {
|
|
35150
35156
|
results.push([start, start + length]);
|
|
35151
35157
|
}
|
|
35152
35158
|
}
|
|
@@ -35172,19 +35178,19 @@ var ReferenceResolver = class {
|
|
|
35172
35178
|
rootFileNames.push(fileName);
|
|
35173
35179
|
}
|
|
35174
35180
|
});
|
|
35175
|
-
this._languageService =
|
|
35181
|
+
this._languageService = import_typescript108.default.createLanguageService({
|
|
35176
35182
|
getCompilationSettings: () => this._program.getTsProgram().getCompilerOptions(),
|
|
35177
35183
|
getScriptFileNames: () => rootFileNames,
|
|
35178
35184
|
getScriptVersion: () => "0",
|
|
35179
35185
|
getScriptSnapshot: (path3) => {
|
|
35180
35186
|
const content = this._readFile(path3);
|
|
35181
|
-
return content ?
|
|
35187
|
+
return content ? import_typescript108.default.ScriptSnapshot.fromString(content) : void 0;
|
|
35182
35188
|
},
|
|
35183
35189
|
getCurrentDirectory: () => this._basePath,
|
|
35184
|
-
getDefaultLibFileName: (options) =>
|
|
35190
|
+
getDefaultLibFileName: (options) => import_typescript108.default.getDefaultLibFilePath(options),
|
|
35185
35191
|
readFile: (path3) => this._readFile(path3),
|
|
35186
35192
|
fileExists: (path3) => this._host.fileExists(path3)
|
|
35187
|
-
},
|
|
35193
|
+
}, import_typescript108.default.createDocumentRegistry(), import_typescript108.default.LanguageServiceMode.PartialSemantic);
|
|
35188
35194
|
}
|
|
35189
35195
|
return this._languageService;
|
|
35190
35196
|
}
|
|
@@ -35214,10 +35220,10 @@ function offsetsToNodes(lookup, offsets, results) {
|
|
|
35214
35220
|
}
|
|
35215
35221
|
function findClassDeclaration(reference, typeChecker) {
|
|
35216
35222
|
var _a, _b;
|
|
35217
|
-
return ((_b = (_a = typeChecker.getTypeAtLocation(reference).getSymbol()) == null ? void 0 : _a.declarations) == null ? void 0 : _b.find(
|
|
35223
|
+
return ((_b = (_a = typeChecker.getTypeAtLocation(reference).getSymbol()) == null ? void 0 : _a.declarations) == null ? void 0 : _b.find(import_typescript108.default.isClassDeclaration)) || null;
|
|
35218
35224
|
}
|
|
35219
35225
|
function findLiteralProperty(literal3, name) {
|
|
35220
|
-
return literal3.properties.find((prop) => prop.name &&
|
|
35226
|
+
return literal3.properties.find((prop) => prop.name && import_typescript108.default.isIdentifier(prop.name) && prop.name.text === name);
|
|
35221
35227
|
}
|
|
35222
35228
|
function getRelativeImportPath(fromFile, toFile) {
|
|
35223
35229
|
let path3 = (0, import_path6.relative)((0, import_path6.dirname)(fromFile), toFile).replace(/\.ts$/, "");
|
|
@@ -35226,9 +35232,6 @@ function getRelativeImportPath(fromFile, toFile) {
|
|
|
35226
35232
|
}
|
|
35227
35233
|
return normalizePath(path3);
|
|
35228
35234
|
}
|
|
35229
|
-
function normalizePath(path3) {
|
|
35230
|
-
return path3.replace(/\\/g, "/");
|
|
35231
|
-
}
|
|
35232
35235
|
function knownInternalAliasRemapper(imports) {
|
|
35233
35236
|
return imports.map((current) => current.moduleSpecifier === "@angular/common" && current.symbolName === "NgForOf" ? __spreadProps(__spreadValues({}, current), { symbolName: "NgFor" }) : current);
|
|
35234
35237
|
}
|
|
@@ -35241,16 +35244,16 @@ function isClassReferenceInAngularModule(node, className, moduleName, typeChecke
|
|
|
35241
35244
|
const externalName = `@angular/${moduleName}`;
|
|
35242
35245
|
const internalName = `angular2/rc/packages/${moduleName}`;
|
|
35243
35246
|
return !!((_a = symbol == null ? void 0 : symbol.declarations) == null ? void 0 : _a.some((decl) => {
|
|
35244
|
-
const closestClass = closestOrSelf(decl,
|
|
35247
|
+
const closestClass = closestOrSelf(decl, import_typescript108.default.isClassDeclaration);
|
|
35245
35248
|
const closestClassFileName = closestClass == null ? void 0 : closestClass.getSourceFile().fileName;
|
|
35246
|
-
if (!closestClass || !closestClassFileName || !closestClass.name || !
|
|
35249
|
+
if (!closestClass || !closestClassFileName || !closestClass.name || !import_typescript108.default.isIdentifier(closestClass.name) || !closestClassFileName.includes(externalName) && !closestClassFileName.includes(internalName)) {
|
|
35247
35250
|
return false;
|
|
35248
35251
|
}
|
|
35249
35252
|
return typeof className === "string" ? closestClass.name.text === className : className.test(closestClass.name.text);
|
|
35250
35253
|
}));
|
|
35251
35254
|
}
|
|
35252
35255
|
|
|
35253
|
-
// bazel-out/
|
|
35256
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/prune-modules.mjs
|
|
35254
35257
|
function pruneNgModules(program, host, basePath, rootFileNames, sourceFiles, printer, importRemapper, referenceLookupExcludedFiles) {
|
|
35255
35258
|
const filesToRemove = /* @__PURE__ */ new Set();
|
|
35256
35259
|
const tracker = new ChangeTracker(printer, importRemapper);
|
|
@@ -35268,10 +35271,10 @@ function pruneNgModules(program, host, basePath, rootFileNames, sourceFiles, pri
|
|
|
35268
35271
|
const nodesToRemove = /* @__PURE__ */ new Set();
|
|
35269
35272
|
sourceFiles.forEach(function walk(node) {
|
|
35270
35273
|
var _a, _b;
|
|
35271
|
-
if (
|
|
35274
|
+
if (import_typescript109.default.isClassDeclaration(node) && canRemoveClass(node, typeChecker)) {
|
|
35272
35275
|
collectRemovalLocations(node, removalLocations, referenceResolver, program);
|
|
35273
35276
|
classesToRemove.add(node);
|
|
35274
|
-
} else if (
|
|
35277
|
+
} else if (import_typescript109.default.isExportDeclaration(node) && !node.exportClause && node.moduleSpecifier && import_typescript109.default.isStringLiteralLike(node.moduleSpecifier) && node.moduleSpecifier.text.startsWith(".")) {
|
|
35275
35278
|
const exportedSourceFile = (_b = (_a = typeChecker.getSymbolAtLocation(node.moduleSpecifier)) == null ? void 0 : _a.valueDeclaration) == null ? void 0 : _b.getSourceFile();
|
|
35276
35279
|
if (exportedSourceFile) {
|
|
35277
35280
|
barrelExports.track(exportedSourceFile, node);
|
|
@@ -35317,17 +35320,17 @@ function collectRemovalLocations(ngModule, removalLocations, referenceResolver,
|
|
|
35317
35320
|
}
|
|
35318
35321
|
}
|
|
35319
35322
|
for (const node of nodes) {
|
|
35320
|
-
const closestArray = closestNode(node,
|
|
35323
|
+
const closestArray = closestNode(node, import_typescript109.default.isArrayLiteralExpression);
|
|
35321
35324
|
if (closestArray) {
|
|
35322
35325
|
removalLocations.arrays.track(closestArray, node);
|
|
35323
35326
|
continue;
|
|
35324
35327
|
}
|
|
35325
|
-
const closestImport = closestNode(node,
|
|
35328
|
+
const closestImport = closestNode(node, import_typescript109.default.isNamedImports);
|
|
35326
35329
|
if (closestImport) {
|
|
35327
35330
|
removalLocations.imports.track(closestImport, node);
|
|
35328
35331
|
continue;
|
|
35329
35332
|
}
|
|
35330
|
-
const closestExport = closestNode(node,
|
|
35333
|
+
const closestExport = closestNode(node, import_typescript109.default.isNamedExports);
|
|
35331
35334
|
if (closestExport) {
|
|
35332
35335
|
removalLocations.exports.track(closestExport, node);
|
|
35333
35336
|
continue;
|
|
@@ -35338,24 +35341,24 @@ function collectRemovalLocations(ngModule, removalLocations, referenceResolver,
|
|
|
35338
35341
|
function removeArrayReferences(locations, tracker) {
|
|
35339
35342
|
for (const [array, toRemove] of locations.getEntries()) {
|
|
35340
35343
|
const newElements = filterRemovedElements(array.elements, toRemove);
|
|
35341
|
-
tracker.replaceNode(array,
|
|
35344
|
+
tracker.replaceNode(array, import_typescript109.default.factory.updateArrayLiteralExpression(array, newElements));
|
|
35342
35345
|
}
|
|
35343
35346
|
}
|
|
35344
35347
|
function removeImportReferences(locations, tracker) {
|
|
35345
35348
|
for (const [namedImports, toRemove] of locations.getEntries()) {
|
|
35346
35349
|
const newElements = filterRemovedElements(namedImports.elements, toRemove);
|
|
35347
35350
|
if (newElements.length === 0) {
|
|
35348
|
-
const importClause = closestNode(namedImports,
|
|
35351
|
+
const importClause = closestNode(namedImports, import_typescript109.default.isImportClause);
|
|
35349
35352
|
if (importClause && importClause.name) {
|
|
35350
|
-
tracker.replaceNode(importClause,
|
|
35353
|
+
tracker.replaceNode(importClause, import_typescript109.default.factory.updateImportClause(importClause, importClause.isTypeOnly, importClause.name, void 0));
|
|
35351
35354
|
} else {
|
|
35352
|
-
const declaration = closestNode(namedImports,
|
|
35355
|
+
const declaration = closestNode(namedImports, import_typescript109.default.isImportDeclaration);
|
|
35353
35356
|
if (declaration) {
|
|
35354
35357
|
tracker.removeNode(declaration);
|
|
35355
35358
|
}
|
|
35356
35359
|
}
|
|
35357
35360
|
} else {
|
|
35358
|
-
tracker.replaceNode(namedImports,
|
|
35361
|
+
tracker.replaceNode(namedImports, import_typescript109.default.factory.updateNamedImports(namedImports, newElements));
|
|
35359
35362
|
}
|
|
35360
35363
|
}
|
|
35361
35364
|
}
|
|
@@ -35363,22 +35366,22 @@ function removeExportReferences(locations, tracker) {
|
|
|
35363
35366
|
for (const [namedExports, toRemove] of locations.getEntries()) {
|
|
35364
35367
|
const newElements = filterRemovedElements(namedExports.elements, toRemove);
|
|
35365
35368
|
if (newElements.length === 0) {
|
|
35366
|
-
const declaration = closestNode(namedExports,
|
|
35369
|
+
const declaration = closestNode(namedExports, import_typescript109.default.isExportDeclaration);
|
|
35367
35370
|
if (declaration) {
|
|
35368
35371
|
tracker.removeNode(declaration);
|
|
35369
35372
|
}
|
|
35370
35373
|
} else {
|
|
35371
|
-
tracker.replaceNode(namedExports,
|
|
35374
|
+
tracker.replaceNode(namedExports, import_typescript109.default.factory.updateNamedExports(namedExports, newElements));
|
|
35372
35375
|
}
|
|
35373
35376
|
}
|
|
35374
35377
|
}
|
|
35375
35378
|
function canRemoveClass(node, typeChecker) {
|
|
35376
35379
|
var _a;
|
|
35377
35380
|
const decorator = (_a = findNgModuleDecorator(node, typeChecker)) == null ? void 0 : _a.node;
|
|
35378
|
-
if (!decorator || !
|
|
35381
|
+
if (!decorator || !import_typescript109.default.isCallExpression(decorator.expression)) {
|
|
35379
35382
|
return false;
|
|
35380
35383
|
}
|
|
35381
|
-
if (decorator.expression.arguments.length > 0 && !
|
|
35384
|
+
if (decorator.expression.arguments.length > 0 && !import_typescript109.default.isObjectLiteralExpression(decorator.expression.arguments[0])) {
|
|
35382
35385
|
return false;
|
|
35383
35386
|
}
|
|
35384
35387
|
if (node.members.length > 0 && node.members.some((member) => !isEmptyConstructor(member))) {
|
|
@@ -35391,7 +35394,7 @@ function canRemoveClass(node, typeChecker) {
|
|
|
35391
35394
|
const imports = findLiteralProperty(literal3, "imports");
|
|
35392
35395
|
if (imports && isNonEmptyNgModuleProperty(imports)) {
|
|
35393
35396
|
for (const dep of imports.initializer.elements) {
|
|
35394
|
-
if (!
|
|
35397
|
+
if (!import_typescript109.default.isIdentifier(dep)) {
|
|
35395
35398
|
return false;
|
|
35396
35399
|
}
|
|
35397
35400
|
const depDeclaration = findClassDeclaration(dep, typeChecker);
|
|
@@ -35409,15 +35412,15 @@ function canRemoveClass(node, typeChecker) {
|
|
|
35409
35412
|
return true;
|
|
35410
35413
|
}
|
|
35411
35414
|
function isNonEmptyNgModuleProperty(node) {
|
|
35412
|
-
return
|
|
35415
|
+
return import_typescript109.default.isPropertyAssignment(node) && import_typescript109.default.isIdentifier(node.name) && import_typescript109.default.isArrayLiteralExpression(node.initializer) && node.initializer.elements.length > 0;
|
|
35413
35416
|
}
|
|
35414
35417
|
function canRemoveFile(sourceFile, nodesToBeRemoved) {
|
|
35415
35418
|
var _a;
|
|
35416
35419
|
for (const node of sourceFile.statements) {
|
|
35417
|
-
if (
|
|
35420
|
+
if (import_typescript109.default.isImportDeclaration(node) || nodesToBeRemoved.has(node)) {
|
|
35418
35421
|
continue;
|
|
35419
35422
|
}
|
|
35420
|
-
if (
|
|
35423
|
+
if (import_typescript109.default.isExportDeclaration(node) || import_typescript109.default.canHaveModifiers(node) && ((_a = import_typescript109.default.getModifiers(node)) == null ? void 0 : _a.some((m) => m.kind === import_typescript109.default.SyntaxKind.ExportKeyword))) {
|
|
35421
35424
|
return false;
|
|
35422
35425
|
}
|
|
35423
35426
|
}
|
|
@@ -35437,7 +35440,7 @@ function filterRemovedElements(elements, toRemove) {
|
|
|
35437
35440
|
});
|
|
35438
35441
|
}
|
|
35439
35442
|
function isEmptyConstructor(node) {
|
|
35440
|
-
return
|
|
35443
|
+
return import_typescript109.default.isConstructorDeclaration(node) && node.parameters.length === 0 && (node.body == null || node.body.statements.length === 0);
|
|
35441
35444
|
}
|
|
35442
35445
|
function addRemovalTodos(nodes, tracker) {
|
|
35443
35446
|
for (const node of nodes) {
|
|
@@ -35445,19 +35448,19 @@ function addRemovalTodos(nodes, tracker) {
|
|
|
35445
35448
|
}
|
|
35446
35449
|
}
|
|
35447
35450
|
function findNgModuleDecorator(node, typeChecker) {
|
|
35448
|
-
const decorators = getAngularDecorators(typeChecker,
|
|
35451
|
+
const decorators = getAngularDecorators(typeChecker, import_typescript109.default.getDecorators(node) || []);
|
|
35449
35452
|
return decorators.find((decorator) => decorator.name === "NgModule") || null;
|
|
35450
35453
|
}
|
|
35451
35454
|
|
|
35452
|
-
// bazel-out/
|
|
35455
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/standalone-bootstrap.mjs
|
|
35453
35456
|
var import_path7 = require("path");
|
|
35457
|
+
var import_typescript112 = __toESM(require("typescript"), 1);
|
|
35458
|
+
|
|
35459
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/to-standalone.mjs
|
|
35454
35460
|
var import_typescript111 = __toESM(require("typescript"), 1);
|
|
35455
35461
|
|
|
35456
|
-
// bazel-out/
|
|
35462
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/symbol.mjs
|
|
35457
35463
|
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);
|
|
35461
35464
|
function isReferenceToImport(typeChecker, node, importSpecifier) {
|
|
35462
35465
|
var _a, _b;
|
|
35463
35466
|
const nodeSymbol = typeChecker.getTypeAtLocation(node).getSymbol();
|
|
@@ -35465,7 +35468,7 @@ function isReferenceToImport(typeChecker, node, importSpecifier) {
|
|
|
35465
35468
|
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];
|
|
35466
35469
|
}
|
|
35467
35470
|
|
|
35468
|
-
// bazel-out/
|
|
35471
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/to-standalone.mjs
|
|
35469
35472
|
function toStandalone(sourceFiles, program, printer, fileImportRemapper, componentImportRemapper) {
|
|
35470
35473
|
const templateTypeChecker = program.compiler.getTemplateTypeChecker();
|
|
35471
35474
|
const typeChecker = program.getTsProgram().getTypeChecker();
|
|
@@ -35502,7 +35505,7 @@ function convertNgModuleDeclarationToStandalone(decl, allDeclarations, tracker,
|
|
|
35502
35505
|
if (directiveMeta.isComponent) {
|
|
35503
35506
|
const importsToAdd = getComponentImportExpressions(decl, allDeclarations, tracker, typeChecker, importRemapper);
|
|
35504
35507
|
if (importsToAdd.length > 0) {
|
|
35505
|
-
decorator = addPropertyToAngularDecorator(decorator,
|
|
35508
|
+
decorator = addPropertyToAngularDecorator(decorator, import_typescript111.default.factory.createPropertyAssignment("imports", import_typescript111.default.factory.createArrayLiteralExpression(importsToAdd)));
|
|
35506
35509
|
}
|
|
35507
35510
|
}
|
|
35508
35511
|
tracker.replaceNode(directiveMeta.decorator, decorator);
|
|
@@ -35532,11 +35535,11 @@ function getComponentImportExpressions(decl, allDeclarations, tracker, typeCheck
|
|
|
35532
35535
|
const identifier = tracker.addImport(decl.getSourceFile(), importLocation.symbolName, importLocation.moduleSpecifier);
|
|
35533
35536
|
imports.push(identifier);
|
|
35534
35537
|
} else {
|
|
35535
|
-
const identifier =
|
|
35538
|
+
const identifier = import_typescript111.default.factory.createIdentifier(importLocation.symbolName);
|
|
35536
35539
|
if (importLocation.isForwardReference) {
|
|
35537
35540
|
const forwardRefExpression = tracker.addImport(decl.getSourceFile(), "forwardRef", "@angular/core");
|
|
35538
|
-
const arrowFunction =
|
|
35539
|
-
imports.push(
|
|
35541
|
+
const arrowFunction = import_typescript111.default.factory.createArrowFunction(void 0, void 0, [], void 0, void 0, identifier);
|
|
35542
|
+
imports.push(import_typescript111.default.factory.createCallExpression(forwardRefExpression, void 0, [arrowFunction]));
|
|
35540
35543
|
} else {
|
|
35541
35544
|
imports.push(identifier);
|
|
35542
35545
|
}
|
|
@@ -35561,10 +35564,10 @@ function moveDeclarationsToImports(literal3, allDeclarations, typeChecker, templ
|
|
|
35561
35564
|
const declarationsToCopy = [];
|
|
35562
35565
|
const properties = [];
|
|
35563
35566
|
const importsProp = findLiteralProperty(literal3, "imports");
|
|
35564
|
-
if (
|
|
35565
|
-
if (
|
|
35567
|
+
if (import_typescript111.default.isPropertyAssignment(declarationsProp)) {
|
|
35568
|
+
if (import_typescript111.default.isArrayLiteralExpression(declarationsProp.initializer)) {
|
|
35566
35569
|
for (const el of declarationsProp.initializer.elements) {
|
|
35567
|
-
if (
|
|
35570
|
+
if (import_typescript111.default.isIdentifier(el)) {
|
|
35568
35571
|
const correspondingClass = findClassDeclaration(el, typeChecker);
|
|
35569
35572
|
if (!correspondingClass || isStandaloneDeclaration(correspondingClass, allDeclarations, templateTypeChecker)) {
|
|
35570
35573
|
declarationsToCopy.push(el);
|
|
@@ -35576,11 +35579,11 @@ function moveDeclarationsToImports(literal3, allDeclarations, typeChecker, templ
|
|
|
35576
35579
|
}
|
|
35577
35580
|
}
|
|
35578
35581
|
} else {
|
|
35579
|
-
declarationsToCopy.push(
|
|
35582
|
+
declarationsToCopy.push(import_typescript111.default.factory.createSpreadElement(declarationsProp.initializer));
|
|
35580
35583
|
}
|
|
35581
35584
|
}
|
|
35582
35585
|
if (!importsProp && declarationsToCopy.length > 0) {
|
|
35583
|
-
properties.push(
|
|
35586
|
+
properties.push(import_typescript111.default.factory.createPropertyAssignment("imports", import_typescript111.default.factory.createArrayLiteralExpression(declarationsToCopy)));
|
|
35584
35587
|
}
|
|
35585
35588
|
for (const prop of literal3.properties) {
|
|
35586
35589
|
if (!isNamedPropertyAssignment(prop)) {
|
|
@@ -35589,43 +35592,43 @@ function moveDeclarationsToImports(literal3, allDeclarations, typeChecker, templ
|
|
|
35589
35592
|
}
|
|
35590
35593
|
if (prop === declarationsProp) {
|
|
35591
35594
|
if (declarationsToPreserve.length > 0) {
|
|
35592
|
-
properties.push(
|
|
35595
|
+
properties.push(import_typescript111.default.factory.updatePropertyAssignment(prop, prop.name, import_typescript111.default.factory.createArrayLiteralExpression(declarationsToPreserve)));
|
|
35593
35596
|
}
|
|
35594
35597
|
continue;
|
|
35595
35598
|
}
|
|
35596
35599
|
if (prop === importsProp && declarationsToCopy.length > 0) {
|
|
35597
35600
|
let initializer;
|
|
35598
|
-
if (
|
|
35599
|
-
initializer =
|
|
35601
|
+
if (import_typescript111.default.isArrayLiteralExpression(prop.initializer)) {
|
|
35602
|
+
initializer = import_typescript111.default.factory.updateArrayLiteralExpression(prop.initializer, [...prop.initializer.elements, ...declarationsToCopy]);
|
|
35600
35603
|
} else {
|
|
35601
|
-
initializer =
|
|
35604
|
+
initializer = import_typescript111.default.factory.createArrayLiteralExpression([import_typescript111.default.factory.createSpreadElement(prop.initializer), ...declarationsToCopy]);
|
|
35602
35605
|
}
|
|
35603
|
-
properties.push(
|
|
35606
|
+
properties.push(import_typescript111.default.factory.updatePropertyAssignment(prop, prop.name, initializer));
|
|
35604
35607
|
continue;
|
|
35605
35608
|
}
|
|
35606
35609
|
properties.push(prop);
|
|
35607
35610
|
}
|
|
35608
|
-
tracker.replaceNode(literal3,
|
|
35611
|
+
tracker.replaceNode(literal3, import_typescript111.default.factory.updateObjectLiteralExpression(literal3, properties), import_typescript111.default.EmitHint.Expression);
|
|
35609
35612
|
}
|
|
35610
35613
|
function addStandaloneToDecorator(node) {
|
|
35611
|
-
return addPropertyToAngularDecorator(node,
|
|
35614
|
+
return addPropertyToAngularDecorator(node, import_typescript111.default.factory.createPropertyAssignment("standalone", import_typescript111.default.factory.createToken(import_typescript111.default.SyntaxKind.TrueKeyword)));
|
|
35612
35615
|
}
|
|
35613
35616
|
function addPropertyToAngularDecorator(node, property) {
|
|
35614
|
-
if (!
|
|
35617
|
+
if (!import_typescript111.default.isCallExpression(node.expression) || node.expression.arguments.length > 1) {
|
|
35615
35618
|
return node;
|
|
35616
35619
|
}
|
|
35617
35620
|
let literalProperties;
|
|
35618
35621
|
if (node.expression.arguments.length === 0) {
|
|
35619
35622
|
literalProperties = [property];
|
|
35620
|
-
} else if (
|
|
35623
|
+
} else if (import_typescript111.default.isObjectLiteralExpression(node.expression.arguments[0])) {
|
|
35621
35624
|
literalProperties = [...node.expression.arguments[0].properties, property];
|
|
35622
35625
|
} else {
|
|
35623
35626
|
return node;
|
|
35624
35627
|
}
|
|
35625
|
-
return
|
|
35628
|
+
return import_typescript111.default.factory.createDecorator(import_typescript111.default.factory.createCallExpression(node.expression.expression, node.expression.typeArguments, [import_typescript111.default.factory.createObjectLiteralExpression(literalProperties, literalProperties.length > 1)]));
|
|
35626
35629
|
}
|
|
35627
35630
|
function isNamedPropertyAssignment(node) {
|
|
35628
|
-
return
|
|
35631
|
+
return import_typescript111.default.isPropertyAssignment(node) && node.name && import_typescript111.default.isIdentifier(node.name);
|
|
35629
35632
|
}
|
|
35630
35633
|
function findImportLocation(target, inComponent, importMode, typeChecker) {
|
|
35631
35634
|
const importLocations = typeChecker.getPotentialImportsFor(target, inComponent, importMode);
|
|
@@ -35645,14 +35648,14 @@ function findImportLocation(target, inComponent, importMode, typeChecker) {
|
|
|
35645
35648
|
return firstSameFileImport || firstModuleImport || importLocations[0] || null;
|
|
35646
35649
|
}
|
|
35647
35650
|
function hasNgModuleMetadataElements(node) {
|
|
35648
|
-
return
|
|
35651
|
+
return import_typescript111.default.isPropertyAssignment(node) && (!import_typescript111.default.isArrayLiteralExpression(node.initializer) || node.initializer.elements.length > 0);
|
|
35649
35652
|
}
|
|
35650
35653
|
function findNgModuleClassesToMigrate(sourceFile, typeChecker) {
|
|
35651
35654
|
const modules = [];
|
|
35652
35655
|
if (getImportSpecifier(sourceFile, "@angular/core", "NgModule")) {
|
|
35653
35656
|
sourceFile.forEachChild(function walk(node) {
|
|
35654
|
-
if (
|
|
35655
|
-
const decorator = getAngularDecorators(typeChecker,
|
|
35657
|
+
if (import_typescript111.default.isClassDeclaration(node)) {
|
|
35658
|
+
const decorator = getAngularDecorators(typeChecker, import_typescript111.default.getDecorators(node) || []).find((current) => current.name === "NgModule");
|
|
35656
35659
|
const metadata = decorator ? extractMetadataLiteral(decorator.node) : null;
|
|
35657
35660
|
if (metadata) {
|
|
35658
35661
|
const declarations = findLiteralProperty(metadata, "declarations");
|
|
@@ -35672,8 +35675,8 @@ function findTestObjectsToMigrate(sourceFile, typeChecker) {
|
|
|
35672
35675
|
const catalystImport = getImportSpecifier(sourceFile, /testing\/catalyst$/, "setupModule");
|
|
35673
35676
|
if (testBedImport || catalystImport) {
|
|
35674
35677
|
sourceFile.forEachChild(function walk(node) {
|
|
35675
|
-
if (
|
|
35676
|
-
if (testBedImport &&
|
|
35678
|
+
if (import_typescript111.default.isCallExpression(node) && node.arguments.length > 0 && import_typescript111.default.isObjectLiteralExpression(node.arguments[0])) {
|
|
35679
|
+
if (testBedImport && import_typescript111.default.isPropertyAccessExpression(node.expression) && node.expression.name.text === "configureTestingModule" && isReferenceToImport(typeChecker, node.expression.expression, testBedImport) || catalystImport && import_typescript111.default.isIdentifier(node.expression) && isReferenceToImport(typeChecker, node.expression, catalystImport)) {
|
|
35677
35680
|
testObjects.push(node.arguments[0]);
|
|
35678
35681
|
}
|
|
35679
35682
|
}
|
|
@@ -35688,7 +35691,7 @@ function findTemplateDependencies(decl, typeChecker) {
|
|
|
35688
35691
|
const usedPipes = typeChecker.getUsedPipes(decl);
|
|
35689
35692
|
if (usedDirectives !== null) {
|
|
35690
35693
|
for (const dir of usedDirectives) {
|
|
35691
|
-
if (
|
|
35694
|
+
if (import_typescript111.default.isClassDeclaration(dir.ref.node)) {
|
|
35692
35695
|
results.push(dir.ref);
|
|
35693
35696
|
}
|
|
35694
35697
|
}
|
|
@@ -35696,7 +35699,7 @@ function findTemplateDependencies(decl, typeChecker) {
|
|
|
35696
35699
|
if (usedPipes !== null) {
|
|
35697
35700
|
const potentialPipes = typeChecker.getPotentialPipes(decl);
|
|
35698
35701
|
for (const pipe of potentialPipes) {
|
|
35699
|
-
if (
|
|
35702
|
+
if (import_typescript111.default.isClassDeclaration(pipe.ref.node) && usedPipes.some((current) => pipe.name === current)) {
|
|
35700
35703
|
results.push(pipe.ref);
|
|
35701
35704
|
}
|
|
35702
35705
|
}
|
|
@@ -35710,12 +35713,12 @@ function filterNonBootstrappedDeclarations(declarations, ngModule, templateTypeC
|
|
|
35710
35713
|
if (!bootstrapProp) {
|
|
35711
35714
|
return declarations;
|
|
35712
35715
|
}
|
|
35713
|
-
if (!
|
|
35716
|
+
if (!import_typescript111.default.isPropertyAssignment(bootstrapProp) || !import_typescript111.default.isArrayLiteralExpression(bootstrapProp.initializer)) {
|
|
35714
35717
|
return [];
|
|
35715
35718
|
}
|
|
35716
35719
|
const bootstrappedClasses = /* @__PURE__ */ new Set();
|
|
35717
35720
|
for (const el of bootstrapProp.initializer.elements) {
|
|
35718
|
-
const referencedClass =
|
|
35721
|
+
const referencedClass = import_typescript111.default.isIdentifier(el) ? findClassDeclaration(el, typeChecker) : null;
|
|
35719
35722
|
if (referencedClass) {
|
|
35720
35723
|
bootstrappedClasses.add(referencedClass);
|
|
35721
35724
|
} else {
|
|
@@ -35726,13 +35729,13 @@ function filterNonBootstrappedDeclarations(declarations, ngModule, templateTypeC
|
|
|
35726
35729
|
}
|
|
35727
35730
|
function extractDeclarationsFromModule(ngModule, templateTypeChecker) {
|
|
35728
35731
|
const metadata = templateTypeChecker.getNgModuleMetadata(ngModule);
|
|
35729
|
-
return metadata ? metadata.declarations.filter((decl) =>
|
|
35732
|
+
return metadata ? metadata.declarations.filter((decl) => import_typescript111.default.isClassDeclaration(decl.node)).map((decl) => decl.node) : [];
|
|
35730
35733
|
}
|
|
35731
35734
|
function migrateTestDeclarations(testObjects, declarationsOutsideOfTestFiles, tracker, templateTypeChecker, typeChecker) {
|
|
35732
35735
|
const { decorators, componentImports } = analyzeTestingModules(testObjects, typeChecker);
|
|
35733
35736
|
const allDeclarations = new Set(declarationsOutsideOfTestFiles);
|
|
35734
35737
|
for (const decorator of decorators) {
|
|
35735
|
-
const closestClass = closestNode(decorator.node,
|
|
35738
|
+
const closestClass = closestNode(decorator.node, import_typescript111.default.isClassDeclaration);
|
|
35736
35739
|
if (decorator.name === "Pipe" || decorator.name === "Directive") {
|
|
35737
35740
|
tracker.replaceNode(decorator.node, addStandaloneToDecorator(decorator.node));
|
|
35738
35741
|
if (closestClass) {
|
|
@@ -35745,7 +35748,7 @@ function migrateTestDeclarations(testObjects, declarationsOutsideOfTestFiles, tr
|
|
|
35745
35748
|
allDeclarations.add(closestClass);
|
|
35746
35749
|
}
|
|
35747
35750
|
if (importsToAdd && importsToAdd.size > 0) {
|
|
35748
|
-
tracker.replaceNode(decorator.node, addPropertyToAngularDecorator(newDecorator,
|
|
35751
|
+
tracker.replaceNode(decorator.node, addPropertyToAngularDecorator(newDecorator, import_typescript111.default.factory.createPropertyAssignment("imports", import_typescript111.default.factory.createArrayLiteralExpression(Array.from(importsToAdd)))));
|
|
35749
35752
|
} else {
|
|
35750
35753
|
tracker.replaceNode(decorator.node, newDecorator);
|
|
35751
35754
|
}
|
|
@@ -35766,13 +35769,13 @@ function analyzeTestingModules(testObjects, typeChecker) {
|
|
|
35766
35769
|
}
|
|
35767
35770
|
const importsProp = findLiteralProperty(obj, "imports");
|
|
35768
35771
|
const importElements = importsProp && hasNgModuleMetadataElements(importsProp) ? importsProp.initializer.elements.filter((el) => {
|
|
35769
|
-
return !
|
|
35772
|
+
return !import_typescript111.default.isCallExpression(el) && !isClassReferenceInAngularModule(el, /^BrowserAnimationsModule|NoopAnimationsModule$/, "platform-browser/animations", typeChecker);
|
|
35770
35773
|
}) : null;
|
|
35771
35774
|
for (const decl of declarations) {
|
|
35772
35775
|
if (seenDeclarations.has(decl)) {
|
|
35773
35776
|
continue;
|
|
35774
35777
|
}
|
|
35775
|
-
const [decorator] = getAngularDecorators(typeChecker,
|
|
35778
|
+
const [decorator] = getAngularDecorators(typeChecker, import_typescript111.default.getDecorators(decl) || []);
|
|
35776
35779
|
if (decorator) {
|
|
35777
35780
|
seenDeclarations.add(decl);
|
|
35778
35781
|
decorators.push(decorator);
|
|
@@ -35803,7 +35806,7 @@ function extractDeclarationsFromTestObject(obj, typeChecker) {
|
|
|
35803
35806
|
return results;
|
|
35804
35807
|
}
|
|
35805
35808
|
function extractMetadataLiteral(decorator) {
|
|
35806
|
-
return
|
|
35809
|
+
return import_typescript111.default.isCallExpression(decorator.expression) && decorator.expression.arguments.length === 1 && import_typescript111.default.isObjectLiteralExpression(decorator.expression.arguments[0]) ? decorator.expression.arguments[0] : null;
|
|
35807
35810
|
}
|
|
35808
35811
|
function isStandaloneDeclaration(node, declarationsInMigration, templateTypeChecker) {
|
|
35809
35812
|
if (declarationsInMigration.has(node)) {
|
|
@@ -35813,7 +35816,7 @@ function isStandaloneDeclaration(node, declarationsInMigration, templateTypeChec
|
|
|
35813
35816
|
return metadata != null && metadata.isStandalone;
|
|
35814
35817
|
}
|
|
35815
35818
|
|
|
35816
|
-
// bazel-out/
|
|
35819
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/standalone-bootstrap.mjs
|
|
35817
35820
|
function toStandaloneBootstrap(program, host, basePath, rootFileNames, sourceFiles, printer, importRemapper, referenceLookupExcludedFiles, componentImportRemapper) {
|
|
35818
35821
|
const tracker = new ChangeTracker(printer, importRemapper);
|
|
35819
35822
|
const typeChecker = program.getTsProgram().getTypeChecker();
|
|
@@ -35822,9 +35825,10 @@ function toStandaloneBootstrap(program, host, basePath, rootFileNames, sourceFil
|
|
|
35822
35825
|
const bootstrapCalls = [];
|
|
35823
35826
|
const testObjects = /* @__PURE__ */ new Set();
|
|
35824
35827
|
const allDeclarations = /* @__PURE__ */ new Set();
|
|
35828
|
+
const additionalProviders = hasImport(program, rootFileNames, "protractor") ? /* @__PURE__ */ new Map([["provideProtractorTestingSupport", "@angular/platform-browser"]]) : null;
|
|
35825
35829
|
for (const sourceFile of sourceFiles) {
|
|
35826
35830
|
sourceFile.forEachChild(function walk(node) {
|
|
35827
|
-
if (
|
|
35831
|
+
if (import_typescript112.default.isCallExpression(node) && import_typescript112.default.isPropertyAccessExpression(node.expression) && node.expression.name.text === "bootstrapModule" && isClassReferenceInAngularModule(node.expression, "PlatformRef", "core", typeChecker)) {
|
|
35828
35832
|
const call = analyzeBootstrapCall(node, typeChecker, templateTypeChecker);
|
|
35829
35833
|
if (call) {
|
|
35830
35834
|
bootstrapCalls.push(call);
|
|
@@ -35836,7 +35840,7 @@ function toStandaloneBootstrap(program, host, basePath, rootFileNames, sourceFil
|
|
|
35836
35840
|
}
|
|
35837
35841
|
for (const call of bootstrapCalls) {
|
|
35838
35842
|
call.declarations.forEach((decl) => allDeclarations.add(decl));
|
|
35839
|
-
migrateBootstrapCall(call, tracker, referenceResolver, typeChecker, printer);
|
|
35843
|
+
migrateBootstrapCall(call, tracker, additionalProviders, referenceResolver, typeChecker, printer);
|
|
35840
35844
|
}
|
|
35841
35845
|
for (const declaration of allDeclarations) {
|
|
35842
35846
|
convertNgModuleDeclarationToStandalone(declaration, allDeclarations, tracker, templateTypeChecker, componentImportRemapper);
|
|
@@ -35845,24 +35849,24 @@ function toStandaloneBootstrap(program, host, basePath, rootFileNames, sourceFil
|
|
|
35845
35849
|
return tracker.recordChanges();
|
|
35846
35850
|
}
|
|
35847
35851
|
function analyzeBootstrapCall(call, typeChecker, templateTypeChecker) {
|
|
35848
|
-
if (call.arguments.length === 0 || !
|
|
35852
|
+
if (call.arguments.length === 0 || !import_typescript112.default.isIdentifier(call.arguments[0])) {
|
|
35849
35853
|
return null;
|
|
35850
35854
|
}
|
|
35851
35855
|
const declaration = findClassDeclaration(call.arguments[0], typeChecker);
|
|
35852
35856
|
if (!declaration) {
|
|
35853
35857
|
return null;
|
|
35854
35858
|
}
|
|
35855
|
-
const decorator = getAngularDecorators(typeChecker,
|
|
35856
|
-
if (!decorator || decorator.node.expression.arguments.length === 0 || !
|
|
35859
|
+
const decorator = getAngularDecorators(typeChecker, import_typescript112.default.getDecorators(declaration) || []).find((decorator2) => decorator2.name === "NgModule");
|
|
35860
|
+
if (!decorator || decorator.node.expression.arguments.length === 0 || !import_typescript112.default.isObjectLiteralExpression(decorator.node.expression.arguments[0])) {
|
|
35857
35861
|
return null;
|
|
35858
35862
|
}
|
|
35859
35863
|
const metadata = decorator.node.expression.arguments[0];
|
|
35860
35864
|
const bootstrapProp = findLiteralProperty(metadata, "bootstrap");
|
|
35861
|
-
if (!bootstrapProp || !
|
|
35865
|
+
if (!bootstrapProp || !import_typescript112.default.isPropertyAssignment(bootstrapProp) || !import_typescript112.default.isArrayLiteralExpression(bootstrapProp.initializer) || bootstrapProp.initializer.elements.length === 0 || !import_typescript112.default.isIdentifier(bootstrapProp.initializer.elements[0])) {
|
|
35862
35866
|
return null;
|
|
35863
35867
|
}
|
|
35864
35868
|
const component = findClassDeclaration(bootstrapProp.initializer.elements[0], typeChecker);
|
|
35865
|
-
if (component && component.name &&
|
|
35869
|
+
if (component && component.name && import_typescript112.default.isIdentifier(component.name)) {
|
|
35866
35870
|
return {
|
|
35867
35871
|
module: declaration,
|
|
35868
35872
|
metadata,
|
|
@@ -35873,7 +35877,7 @@ function analyzeBootstrapCall(call, typeChecker, templateTypeChecker) {
|
|
|
35873
35877
|
}
|
|
35874
35878
|
return null;
|
|
35875
35879
|
}
|
|
35876
|
-
function migrateBootstrapCall(analysis, tracker, referenceResolver, typeChecker, printer) {
|
|
35880
|
+
function migrateBootstrapCall(analysis, tracker, additionalProviders, referenceResolver, typeChecker, printer) {
|
|
35877
35881
|
const sourceFile = analysis.call.getSourceFile();
|
|
35878
35882
|
const moduleSourceFile = analysis.metadata.getSourceFile();
|
|
35879
35883
|
const providers = findLiteralProperty(analysis.metadata, "providers");
|
|
@@ -35884,19 +35888,24 @@ function migrateBootstrapCall(analysis, tracker, referenceResolver, typeChecker,
|
|
|
35884
35888
|
let nodeLookup = null;
|
|
35885
35889
|
tracker.insertText(moduleSourceFile, analysis.metadata.getStart(), "/* TODO(standalone-migration): clean up removed NgModule class manually. \n");
|
|
35886
35890
|
tracker.insertText(moduleSourceFile, analysis.metadata.getEnd(), " */");
|
|
35887
|
-
if (providers &&
|
|
35891
|
+
if (providers && import_typescript112.default.isPropertyAssignment(providers)) {
|
|
35888
35892
|
nodeLookup = nodeLookup || getNodeLookup(moduleSourceFile);
|
|
35889
|
-
if (
|
|
35893
|
+
if (import_typescript112.default.isArrayLiteralExpression(providers.initializer)) {
|
|
35890
35894
|
providersInNewCall.push(...providers.initializer.elements);
|
|
35891
35895
|
} else {
|
|
35892
|
-
providersInNewCall.push(
|
|
35896
|
+
providersInNewCall.push(import_typescript112.default.factory.createSpreadElement(providers.initializer));
|
|
35893
35897
|
}
|
|
35894
35898
|
addNodesToCopy(sourceFile, providers, nodeLookup, tracker, nodesToCopy, referenceResolver);
|
|
35895
35899
|
}
|
|
35896
|
-
if (imports &&
|
|
35900
|
+
if (imports && import_typescript112.default.isPropertyAssignment(imports)) {
|
|
35897
35901
|
nodeLookup = nodeLookup || getNodeLookup(moduleSourceFile);
|
|
35898
35902
|
migrateImportsForBootstrapCall(sourceFile, imports, nodeLookup, moduleImportsInNewCall, providersInNewCall, tracker, nodesToCopy, referenceResolver, typeChecker);
|
|
35899
35903
|
}
|
|
35904
|
+
if (additionalProviders) {
|
|
35905
|
+
additionalProviders.forEach((moduleSpecifier, name) => {
|
|
35906
|
+
providersInNewCall.push(import_typescript112.default.factory.createCallExpression(tracker.addImport(sourceFile, name, moduleSpecifier), void 0, void 0));
|
|
35907
|
+
});
|
|
35908
|
+
}
|
|
35900
35909
|
if (nodesToCopy.size > 0) {
|
|
35901
35910
|
let text = "\n\n";
|
|
35902
35911
|
nodesToCopy.forEach((node) => {
|
|
@@ -35904,7 +35913,7 @@ function migrateBootstrapCall(analysis, tracker, referenceResolver, typeChecker,
|
|
|
35904
35913
|
if (transformedNode === node) {
|
|
35905
35914
|
text += transformedNode.getText() + "\n";
|
|
35906
35915
|
} else {
|
|
35907
|
-
text += printer.printNode(
|
|
35916
|
+
text += printer.printNode(import_typescript112.default.EmitHint.Unspecified, transformedNode, node.getSourceFile());
|
|
35908
35917
|
}
|
|
35909
35918
|
});
|
|
35910
35919
|
text += "\n";
|
|
@@ -35921,30 +35930,30 @@ function replaceBootstrapCallExpression(analysis, providers, modules, tracker) {
|
|
|
35921
35930
|
const combinedProviders = [];
|
|
35922
35931
|
if (modules.length > 0) {
|
|
35923
35932
|
const importProvidersExpression = tracker.addImport(sourceFile, "importProvidersFrom", "@angular/core");
|
|
35924
|
-
combinedProviders.push(
|
|
35933
|
+
combinedProviders.push(import_typescript112.default.factory.createCallExpression(importProvidersExpression, [], modules));
|
|
35925
35934
|
}
|
|
35926
35935
|
combinedProviders.push(...providers);
|
|
35927
|
-
const initializer = remapDynamicImports(sourceFile.fileName,
|
|
35928
|
-
args.push(
|
|
35936
|
+
const initializer = remapDynamicImports(sourceFile.fileName, import_typescript112.default.factory.createArrayLiteralExpression(combinedProviders, combinedProviders.length > 1));
|
|
35937
|
+
args.push(import_typescript112.default.factory.createObjectLiteralExpression([import_typescript112.default.factory.createPropertyAssignment("providers", initializer)], true));
|
|
35929
35938
|
}
|
|
35930
35939
|
tracker.replaceNode(
|
|
35931
35940
|
analysis.call,
|
|
35932
|
-
|
|
35941
|
+
import_typescript112.default.factory.createCallExpression(bootstrapExpression, [], args),
|
|
35933
35942
|
void 0,
|
|
35934
35943
|
analysis.metadata.getSourceFile()
|
|
35935
35944
|
);
|
|
35936
35945
|
}
|
|
35937
35946
|
function migrateImportsForBootstrapCall(sourceFile, imports, nodeLookup, importsForNewCall, providersInNewCall, tracker, nodesToCopy, referenceResolver, typeChecker) {
|
|
35938
|
-
if (!
|
|
35947
|
+
if (!import_typescript112.default.isArrayLiteralExpression(imports.initializer)) {
|
|
35939
35948
|
importsForNewCall.push(imports.initializer);
|
|
35940
35949
|
return;
|
|
35941
35950
|
}
|
|
35942
35951
|
for (const element of imports.initializer.elements) {
|
|
35943
|
-
if (
|
|
35952
|
+
if (import_typescript112.default.isCallExpression(element) && import_typescript112.default.isPropertyAccessExpression(element.expression) && element.arguments.length > 0 && element.expression.name.text === "forRoot" && isClassReferenceInAngularModule(element.expression.expression, "RouterModule", "router", typeChecker)) {
|
|
35944
35953
|
const options = element.arguments[1];
|
|
35945
35954
|
const features = options ? getRouterModuleForRootFeatures(sourceFile, options, tracker) : [];
|
|
35946
35955
|
if (features !== null) {
|
|
35947
|
-
providersInNewCall.push(
|
|
35956
|
+
providersInNewCall.push(import_typescript112.default.factory.createCallExpression(tracker.addImport(sourceFile, "provideRouter", "@angular/router"), [], [element.arguments[0], ...features]));
|
|
35948
35957
|
addNodesToCopy(sourceFile, element.arguments[0], nodeLookup, tracker, nodesToCopy, referenceResolver);
|
|
35949
35958
|
if (options) {
|
|
35950
35959
|
addNodesToCopy(sourceFile, options, nodeLookup, tracker, nodesToCopy, referenceResolver);
|
|
@@ -35952,30 +35961,30 @@ function migrateImportsForBootstrapCall(sourceFile, imports, nodeLookup, imports
|
|
|
35952
35961
|
continue;
|
|
35953
35962
|
}
|
|
35954
35963
|
}
|
|
35955
|
-
if (
|
|
35964
|
+
if (import_typescript112.default.isIdentifier(element)) {
|
|
35956
35965
|
const animationsModule = "platform-browser/animations";
|
|
35957
35966
|
const animationsImport = `@angular/${animationsModule}`;
|
|
35958
35967
|
if (isClassReferenceInAngularModule(element, "BrowserAnimationsModule", animationsModule, typeChecker)) {
|
|
35959
|
-
providersInNewCall.push(
|
|
35968
|
+
providersInNewCall.push(import_typescript112.default.factory.createCallExpression(tracker.addImport(sourceFile, "provideAnimations", animationsImport), [], []));
|
|
35960
35969
|
continue;
|
|
35961
35970
|
}
|
|
35962
35971
|
if (isClassReferenceInAngularModule(element, "NoopAnimationsModule", animationsModule, typeChecker)) {
|
|
35963
|
-
providersInNewCall.push(
|
|
35972
|
+
providersInNewCall.push(import_typescript112.default.factory.createCallExpression(tracker.addImport(sourceFile, "provideNoopAnimations", animationsImport), [], []));
|
|
35964
35973
|
continue;
|
|
35965
35974
|
}
|
|
35966
35975
|
const httpClientModule = "common/http";
|
|
35967
35976
|
const httpClientImport = `@angular/${httpClientModule}`;
|
|
35968
35977
|
if (isClassReferenceInAngularModule(element, "HttpClientModule", httpClientModule, typeChecker)) {
|
|
35969
35978
|
const callArgs = [
|
|
35970
|
-
|
|
35979
|
+
import_typescript112.default.factory.createCallExpression(tracker.addImport(sourceFile, "withInterceptorsFromDi", httpClientImport), [], [])
|
|
35971
35980
|
];
|
|
35972
|
-
providersInNewCall.push(
|
|
35981
|
+
providersInNewCall.push(import_typescript112.default.factory.createCallExpression(tracker.addImport(sourceFile, "provideHttpClient", httpClientImport), [], callArgs));
|
|
35973
35982
|
continue;
|
|
35974
35983
|
}
|
|
35975
35984
|
}
|
|
35976
|
-
const target =
|
|
35985
|
+
const target = import_typescript112.default.isCallExpression(element) && import_typescript112.default.isPropertyAccessExpression(element.expression) ? element.expression.expression : element;
|
|
35977
35986
|
const classDeclaration = findClassDeclaration(target, typeChecker);
|
|
35978
|
-
const decorators = classDeclaration ? getAngularDecorators(typeChecker,
|
|
35987
|
+
const decorators = classDeclaration ? getAngularDecorators(typeChecker, import_typescript112.default.getDecorators(classDeclaration) || []) : void 0;
|
|
35979
35988
|
if (!decorators || decorators.length === 0 || decorators.every(({ name }) => name !== "Directive" && name !== "Component" && name !== "Pipe")) {
|
|
35980
35989
|
importsForNewCall.push(element);
|
|
35981
35990
|
addNodesToCopy(sourceFile, element, nodeLookup, tracker, nodesToCopy, referenceResolver);
|
|
@@ -35983,7 +35992,7 @@ function migrateImportsForBootstrapCall(sourceFile, imports, nodeLookup, imports
|
|
|
35983
35992
|
}
|
|
35984
35993
|
}
|
|
35985
35994
|
function getRouterModuleForRootFeatures(sourceFile, options, tracker) {
|
|
35986
|
-
if (!
|
|
35995
|
+
if (!import_typescript112.default.isObjectLiteralExpression(options)) {
|
|
35987
35996
|
return null;
|
|
35988
35997
|
}
|
|
35989
35998
|
const featureExpressions = [];
|
|
@@ -35991,7 +36000,7 @@ function getRouterModuleForRootFeatures(sourceFile, options, tracker) {
|
|
|
35991
36000
|
const inMemoryScrollingOptions = [];
|
|
35992
36001
|
const features = new UniqueItemTracker();
|
|
35993
36002
|
for (const prop of options.properties) {
|
|
35994
|
-
if (!
|
|
36003
|
+
if (!import_typescript112.default.isPropertyAssignment(prop) || !import_typescript112.default.isIdentifier(prop.name) && !import_typescript112.default.isStringLiteralLike(prop.name)) {
|
|
35995
36004
|
return null;
|
|
35996
36005
|
}
|
|
35997
36006
|
switch (prop.name.text) {
|
|
@@ -35999,12 +36008,12 @@ function getRouterModuleForRootFeatures(sourceFile, options, tracker) {
|
|
|
35999
36008
|
features.track("withPreloading", prop.initializer);
|
|
36000
36009
|
break;
|
|
36001
36010
|
case "enableTracing":
|
|
36002
|
-
if (prop.initializer.kind ===
|
|
36011
|
+
if (prop.initializer.kind === import_typescript112.default.SyntaxKind.TrueKeyword) {
|
|
36003
36012
|
features.track("withDebugTracing", null);
|
|
36004
36013
|
}
|
|
36005
36014
|
break;
|
|
36006
36015
|
case "initialNavigation":
|
|
36007
|
-
if (!
|
|
36016
|
+
if (!import_typescript112.default.isStringLiteralLike(prop.initializer)) {
|
|
36008
36017
|
return null;
|
|
36009
36018
|
}
|
|
36010
36019
|
if (prop.initializer.text === "enabledBlocking" || prop.initializer.text === "enabled") {
|
|
@@ -36014,7 +36023,7 @@ function getRouterModuleForRootFeatures(sourceFile, options, tracker) {
|
|
|
36014
36023
|
}
|
|
36015
36024
|
break;
|
|
36016
36025
|
case "useHash":
|
|
36017
|
-
if (prop.initializer.kind ===
|
|
36026
|
+
if (prop.initializer.kind === import_typescript112.default.SyntaxKind.TrueKeyword) {
|
|
36018
36027
|
features.track("withHashLocation", null);
|
|
36019
36028
|
}
|
|
36020
36029
|
break;
|
|
@@ -36031,10 +36040,10 @@ function getRouterModuleForRootFeatures(sourceFile, options, tracker) {
|
|
|
36031
36040
|
}
|
|
36032
36041
|
}
|
|
36033
36042
|
if (inMemoryScrollingOptions.length > 0) {
|
|
36034
|
-
features.track("withInMemoryScrolling",
|
|
36043
|
+
features.track("withInMemoryScrolling", import_typescript112.default.factory.createObjectLiteralExpression(inMemoryScrollingOptions));
|
|
36035
36044
|
}
|
|
36036
36045
|
if (configOptions.length > 0) {
|
|
36037
|
-
features.track("withRouterConfig",
|
|
36046
|
+
features.track("withRouterConfig", import_typescript112.default.factory.createObjectLiteralExpression(configOptions));
|
|
36038
36047
|
}
|
|
36039
36048
|
for (const [feature, featureArgs] of features.getEntries()) {
|
|
36040
36049
|
const callArgs = [];
|
|
@@ -36043,25 +36052,25 @@ function getRouterModuleForRootFeatures(sourceFile, options, tracker) {
|
|
|
36043
36052
|
callArgs.push(arg);
|
|
36044
36053
|
}
|
|
36045
36054
|
});
|
|
36046
|
-
featureExpressions.push(
|
|
36055
|
+
featureExpressions.push(import_typescript112.default.factory.createCallExpression(tracker.addImport(sourceFile, feature, "@angular/router"), [], callArgs));
|
|
36047
36056
|
}
|
|
36048
36057
|
return featureExpressions;
|
|
36049
36058
|
}
|
|
36050
36059
|
function addNodesToCopy(targetFile, rootNode, nodeLookup, tracker, nodesToCopy, referenceResolver) {
|
|
36051
36060
|
const refs = findAllSameFileReferences(rootNode, nodeLookup, referenceResolver);
|
|
36052
36061
|
for (const ref of refs) {
|
|
36053
|
-
const importSpecifier = closestOrSelf(ref,
|
|
36054
|
-
const importDeclaration = importSpecifier ? closestNode(importSpecifier,
|
|
36055
|
-
if (importDeclaration && importSpecifier &&
|
|
36062
|
+
const importSpecifier = closestOrSelf(ref, import_typescript112.default.isImportSpecifier);
|
|
36063
|
+
const importDeclaration = importSpecifier ? closestNode(importSpecifier, import_typescript112.default.isImportDeclaration) : null;
|
|
36064
|
+
if (importDeclaration && importSpecifier && import_typescript112.default.isStringLiteralLike(importDeclaration.moduleSpecifier)) {
|
|
36056
36065
|
const moduleName = importDeclaration.moduleSpecifier.text.startsWith(".") ? remapRelativeImport(targetFile.fileName, importDeclaration.moduleSpecifier) : importDeclaration.moduleSpecifier.text;
|
|
36057
36066
|
const symbolName = importSpecifier.propertyName ? importSpecifier.propertyName.text : importSpecifier.name.text;
|
|
36058
36067
|
const alias = importSpecifier.propertyName ? importSpecifier.name.text : null;
|
|
36059
36068
|
tracker.addImport(targetFile, symbolName, moduleName, alias);
|
|
36060
36069
|
continue;
|
|
36061
36070
|
}
|
|
36062
|
-
const variableDeclaration = closestOrSelf(ref,
|
|
36063
|
-
const variableStatement = variableDeclaration ? closestNode(variableDeclaration,
|
|
36064
|
-
if (variableDeclaration && variableStatement &&
|
|
36071
|
+
const variableDeclaration = closestOrSelf(ref, import_typescript112.default.isVariableDeclaration);
|
|
36072
|
+
const variableStatement = variableDeclaration ? closestNode(variableDeclaration, import_typescript112.default.isVariableStatement) : null;
|
|
36073
|
+
if (variableDeclaration && variableStatement && import_typescript112.default.isIdentifier(variableDeclaration.name)) {
|
|
36065
36074
|
if (isExported3(variableStatement)) {
|
|
36066
36075
|
tracker.addImport(targetFile, variableDeclaration.name.text, getRelativeImportPath(targetFile.fileName, ref.getSourceFile().fileName));
|
|
36067
36076
|
} else {
|
|
@@ -36102,7 +36111,7 @@ function findAllSameFileReferences(rootNode, nodeLookup, referenceResolver) {
|
|
|
36102
36111
|
if (!closestTopLevel || traversedTopLevelNodes.has(closestTopLevel)) {
|
|
36103
36112
|
continue;
|
|
36104
36113
|
}
|
|
36105
|
-
if (!
|
|
36114
|
+
if (!import_typescript112.default.isImportDeclaration(closestTopLevel) && isOutsideRange(excludeStart, excludeEnd, closestTopLevel.getStart(), closestTopLevel.getEnd())) {
|
|
36106
36115
|
traversedTopLevelNodes.add(closestTopLevel);
|
|
36107
36116
|
walk(closestTopLevel);
|
|
36108
36117
|
}
|
|
@@ -36123,25 +36132,25 @@ function referencesToNodeWithinSameFile(node, nodeLookup, excludeStart, excludeE
|
|
|
36123
36132
|
function remapDynamicImports(targetFileName, rootNode) {
|
|
36124
36133
|
let hasChanged = false;
|
|
36125
36134
|
const transformer = (context) => {
|
|
36126
|
-
return (sourceFile) =>
|
|
36127
|
-
if (
|
|
36135
|
+
return (sourceFile) => import_typescript112.default.visitNode(sourceFile, function walk(node) {
|
|
36136
|
+
if (import_typescript112.default.isCallExpression(node) && node.expression.kind === import_typescript112.default.SyntaxKind.ImportKeyword && node.arguments.length > 0 && import_typescript112.default.isStringLiteralLike(node.arguments[0]) && node.arguments[0].text.startsWith(".")) {
|
|
36128
36137
|
hasChanged = true;
|
|
36129
36138
|
return context.factory.updateCallExpression(node, node.expression, node.typeArguments, [
|
|
36130
36139
|
context.factory.createStringLiteral(remapRelativeImport(targetFileName, node.arguments[0])),
|
|
36131
36140
|
...node.arguments.slice(1)
|
|
36132
36141
|
]);
|
|
36133
36142
|
}
|
|
36134
|
-
return
|
|
36143
|
+
return import_typescript112.default.visitEachChild(node, walk, context);
|
|
36135
36144
|
});
|
|
36136
36145
|
};
|
|
36137
|
-
const result =
|
|
36146
|
+
const result = import_typescript112.default.transform(rootNode, [transformer]).transformed[0];
|
|
36138
36147
|
return hasChanged ? result : rootNode;
|
|
36139
36148
|
}
|
|
36140
36149
|
function isTopLevelStatement(node) {
|
|
36141
|
-
return node.parent != null &&
|
|
36150
|
+
return node.parent != null && import_typescript112.default.isSourceFile(node.parent);
|
|
36142
36151
|
}
|
|
36143
36152
|
function isReferenceIdentifier(node) {
|
|
36144
|
-
return
|
|
36153
|
+
return import_typescript112.default.isIdentifier(node) && (!import_typescript112.default.isPropertyAssignment(node.parent) && !import_typescript112.default.isParameter(node.parent) || node.parent.name !== node);
|
|
36145
36154
|
}
|
|
36146
36155
|
function isOutsideRange(excludeStart, excludeEnd, start, end) {
|
|
36147
36156
|
return start < excludeStart && end < excludeStart || start > excludeEnd;
|
|
@@ -36150,15 +36159,15 @@ function remapRelativeImport(targetFileName, specifier) {
|
|
|
36150
36159
|
return getRelativeImportPath(targetFileName, (0, import_path7.join)((0, import_path7.dirname)(specifier.getSourceFile().fileName), specifier.text));
|
|
36151
36160
|
}
|
|
36152
36161
|
function isExported3(node) {
|
|
36153
|
-
return
|
|
36162
|
+
return import_typescript112.default.canHaveModifiers(node) && node.modifiers ? node.modifiers.some((modifier) => modifier.kind === import_typescript112.default.SyntaxKind.ExportKeyword) : false;
|
|
36154
36163
|
}
|
|
36155
36164
|
function isExportableDeclaration(node) {
|
|
36156
|
-
return
|
|
36165
|
+
return import_typescript112.default.isEnumDeclaration(node) || import_typescript112.default.isClassDeclaration(node) || import_typescript112.default.isFunctionDeclaration(node) || import_typescript112.default.isInterfaceDeclaration(node) || import_typescript112.default.isTypeAliasDeclaration(node);
|
|
36157
36166
|
}
|
|
36158
36167
|
function getLastImportEnd(sourceFile) {
|
|
36159
36168
|
let index = 0;
|
|
36160
36169
|
for (const statement of sourceFile.statements) {
|
|
36161
|
-
if (
|
|
36170
|
+
if (import_typescript112.default.isImportDeclaration(statement)) {
|
|
36162
36171
|
index = Math.max(index, statement.getEnd());
|
|
36163
36172
|
} else {
|
|
36164
36173
|
break;
|
|
@@ -36166,8 +36175,24 @@ function getLastImportEnd(sourceFile) {
|
|
|
36166
36175
|
}
|
|
36167
36176
|
return index;
|
|
36168
36177
|
}
|
|
36178
|
+
function hasImport(program, rootFileNames, moduleName) {
|
|
36179
|
+
const tsProgram = program.getTsProgram();
|
|
36180
|
+
const deepImportStart = moduleName + "/";
|
|
36181
|
+
for (const fileName of rootFileNames) {
|
|
36182
|
+
const sourceFile = tsProgram.getSourceFile(fileName);
|
|
36183
|
+
if (!sourceFile) {
|
|
36184
|
+
continue;
|
|
36185
|
+
}
|
|
36186
|
+
for (const statement of sourceFile.statements) {
|
|
36187
|
+
if (import_typescript112.default.isImportDeclaration(statement) && import_typescript112.default.isStringLiteralLike(statement.moduleSpecifier) && (statement.moduleSpecifier.text === moduleName || statement.moduleSpecifier.text.startsWith(deepImportStart))) {
|
|
36188
|
+
return true;
|
|
36189
|
+
}
|
|
36190
|
+
}
|
|
36191
|
+
}
|
|
36192
|
+
return false;
|
|
36193
|
+
}
|
|
36169
36194
|
|
|
36170
|
-
// bazel-out/
|
|
36195
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/index.mjs
|
|
36171
36196
|
var MigrationMode;
|
|
36172
36197
|
(function(MigrationMode2) {
|
|
36173
36198
|
MigrationMode2["toStandalone"] = "convert-to-standalone";
|
|
@@ -36206,7 +36231,7 @@ function standaloneMigration(tree, tsconfigPath, basePath, pathToMigrate, schema
|
|
|
36206
36231
|
});
|
|
36207
36232
|
const referenceLookupExcludedFiles = /node_modules|\.ngtypecheck\.ts/;
|
|
36208
36233
|
const program = createProgram({ rootNames, host, options, oldProgram });
|
|
36209
|
-
const printer =
|
|
36234
|
+
const printer = import_typescript113.default.createPrinter();
|
|
36210
36235
|
if ((0, import_fs2.existsSync)(pathToMigrate) && !(0, import_fs2.statSync)(pathToMigrate).isDirectory()) {
|
|
36211
36236
|
throw new import_schematics.SchematicsException(`Migration path ${pathToMigrate} has to be a directory. Cannot run the standalone migration.`);
|
|
36212
36237
|
}
|