@angular/core 15.2.0-next.2 → 15.2.0-next.3
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 +1 -1
- 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 +2 -2
- package/fesm2015/core.mjs.map +1 -1
- package/fesm2015/testing.mjs +2 -2
- package/fesm2015/testing.mjs.map +1 -1
- package/fesm2020/core.mjs +2 -2
- package/fesm2020/core.mjs.map +1 -1
- package/fesm2020/testing.mjs +2 -2
- package/fesm2020/testing.mjs.map +1 -1
- package/index.d.ts +5 -2
- package/package.json +1 -1
- package/schematics/migrations/relative-link-resolution/bundle.js +9 -9
- package/schematics/migrations/relative-link-resolution/bundle.js.map +2 -2
- package/schematics/migrations/router-link-with-href/bundle.js +12 -12
- package/schematics/migrations/router-link-with-href/bundle.js.map +2 -2
- package/schematics/ng-generate/standalone-migration/bundle.js +750 -380
- package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
- package/schematics/ng-generate/standalone-migration/schema.json +6 -5
- 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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-fastbuild/bin/packages/compiler/src/compiler_util/expression_converter.mjs
|
|
5577
5577
|
var EventHandlerVars = class {
|
|
5578
5578
|
};
|
|
5579
5579
|
EventHandlerVars.event = variable("$event");
|
|
@@ -6034,7 +6034,7 @@ var _AstToIrVisitor = class {
|
|
|
6034
6034
|
return null;
|
|
6035
6035
|
},
|
|
6036
6036
|
visitNonNullAssert(ast2) {
|
|
6037
|
-
return
|
|
6037
|
+
return visit2(this, ast2.expression);
|
|
6038
6038
|
},
|
|
6039
6039
|
visitPropertyRead(ast2) {
|
|
6040
6040
|
return visit2(this, ast2.receiver);
|
|
@@ -6191,7 +6191,7 @@ var BuiltinFunctionCall = class extends Call {
|
|
|
6191
6191
|
}
|
|
6192
6192
|
};
|
|
6193
6193
|
|
|
6194
|
-
// bazel-out/
|
|
6194
|
+
// bazel-out/darwin-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-fastbuild/bin/packages/compiler/src/shadow_css.mjs
|
|
6253
6253
|
var animationKeywords = /* @__PURE__ */ new Set([
|
|
6254
6254
|
"inherit",
|
|
6255
6255
|
"initial",
|
|
@@ -6713,7 +6713,7 @@ function repeatGroups(groups, multiples) {
|
|
|
6713
6713
|
}
|
|
6714
6714
|
}
|
|
6715
6715
|
|
|
6716
|
-
// bazel-out/
|
|
6716
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/style_parser.mjs
|
|
6717
6717
|
function parse(value) {
|
|
6718
6718
|
const styles = [];
|
|
6719
6719
|
let i = 0;
|
|
@@ -6789,7 +6789,7 @@ function hyphenate(value) {
|
|
|
6789
6789
|
}).toLowerCase();
|
|
6790
6790
|
}
|
|
6791
6791
|
|
|
6792
|
-
// bazel-out/
|
|
6792
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/styling_builder.mjs
|
|
6793
6793
|
var IMPORTANT_FLAG = "!important";
|
|
6794
6794
|
var MIN_STYLING_BINDING_SLOTS_REQUIRED = 2;
|
|
6795
6795
|
var StylingBuilder = class {
|
|
@@ -7122,7 +7122,7 @@ function isEmptyExpression(ast) {
|
|
|
7122
7122
|
return ast instanceof EmptyExpr;
|
|
7123
7123
|
}
|
|
7124
7124
|
|
|
7125
|
-
// bazel-out/
|
|
7125
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/expression_parser/lexer.mjs
|
|
7126
7126
|
var TokenType;
|
|
7127
7127
|
(function(TokenType2) {
|
|
7128
7128
|
TokenType2[TokenType2["Character"] = 0] = "Character";
|
|
@@ -7483,7 +7483,7 @@ function parseIntAutoRadix(text) {
|
|
|
7483
7483
|
return result;
|
|
7484
7484
|
}
|
|
7485
7485
|
|
|
7486
|
-
// bazel-out/
|
|
7486
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/expression_parser/parser.mjs
|
|
7487
7487
|
var SplitInterpolation = class {
|
|
7488
7488
|
constructor(strings, expressions, offsets) {
|
|
7489
7489
|
this.strings = strings;
|
|
@@ -8377,7 +8377,7 @@ function getIndexMapForOriginalTemplate(interpolatedTokens) {
|
|
|
8377
8377
|
return offsetMap;
|
|
8378
8378
|
}
|
|
8379
8379
|
|
|
8380
|
-
// bazel-out/
|
|
8380
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/ast.mjs
|
|
8381
8381
|
var NodeWithI18n = class {
|
|
8382
8382
|
constructor(sourceSpan, i18n) {
|
|
8383
8383
|
this.sourceSpan = sourceSpan;
|
|
@@ -8465,7 +8465,7 @@ function visitAll2(visitor, nodes, context = null) {
|
|
|
8465
8465
|
return result;
|
|
8466
8466
|
}
|
|
8467
8467
|
|
|
8468
|
-
// bazel-out/
|
|
8468
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/tags.mjs
|
|
8469
8469
|
var TagContentType;
|
|
8470
8470
|
(function(TagContentType2) {
|
|
8471
8471
|
TagContentType2[TagContentType2["RAW_TEXT"] = 0] = "RAW_TEXT";
|
|
@@ -8498,11 +8498,11 @@ function mergeNsAndName(prefix, localName) {
|
|
|
8498
8498
|
return prefix ? `:${prefix}:${localName}` : localName;
|
|
8499
8499
|
}
|
|
8500
8500
|
|
|
8501
|
-
// bazel-out/
|
|
8501
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/schema/element_schema_registry.mjs
|
|
8502
8502
|
var ElementSchemaRegistry = class {
|
|
8503
8503
|
};
|
|
8504
8504
|
|
|
8505
|
-
// bazel-out/
|
|
8505
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/schema/dom_element_schema_registry.mjs
|
|
8506
8506
|
var BOOLEAN = "boolean";
|
|
8507
8507
|
var NUMBER = "number";
|
|
8508
8508
|
var STRING = "string";
|
|
@@ -8855,7 +8855,7 @@ function _isPixelDimensionStyle(prop) {
|
|
|
8855
8855
|
}
|
|
8856
8856
|
}
|
|
8857
8857
|
|
|
8858
|
-
// bazel-out/
|
|
8858
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/html_tags.mjs
|
|
8859
8859
|
var HtmlTagDefinition = class {
|
|
8860
8860
|
constructor({ closedByChildren, implicitNamespacePrefix, contentType = TagContentType.PARSABLE_DATA, closedByParent = false, isVoid = false, ignoreFirstLf = false, preventNamespaceInheritance = false, canSelfClose = false } = {}) {
|
|
8861
8861
|
this.closedByChildren = {};
|
|
@@ -8973,7 +8973,7 @@ function getHtmlTagDefinition(tagName) {
|
|
|
8973
8973
|
return (_b = (_a = TAG_DEFINITIONS[tagName]) != null ? _a : TAG_DEFINITIONS[tagName.toLowerCase()]) != null ? _b : DEFAULT_TAG_DEFINITION;
|
|
8974
8974
|
}
|
|
8975
8975
|
|
|
8976
|
-
// bazel-out/
|
|
8976
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/entities.mjs
|
|
8977
8977
|
var NAMED_ENTITIES = {
|
|
8978
8978
|
"AElig": "\xC6",
|
|
8979
8979
|
"AMP": "&",
|
|
@@ -11104,7 +11104,7 @@ var NAMED_ENTITIES = {
|
|
|
11104
11104
|
var NGSP_UNICODE = "\uE500";
|
|
11105
11105
|
NAMED_ENTITIES["ngsp"] = NGSP_UNICODE;
|
|
11106
11106
|
|
|
11107
|
-
// bazel-out/
|
|
11107
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/lexer.mjs
|
|
11108
11108
|
var TokenError = class extends ParseError {
|
|
11109
11109
|
constructor(errorMsg, tokenType, span) {
|
|
11110
11110
|
super(span, errorMsg);
|
|
@@ -11939,7 +11939,7 @@ var CursorError = class {
|
|
|
11939
11939
|
}
|
|
11940
11940
|
};
|
|
11941
11941
|
|
|
11942
|
-
// bazel-out/
|
|
11942
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/parser.mjs
|
|
11943
11943
|
var TreeError = class extends ParseError {
|
|
11944
11944
|
static create(elementName, span, msg) {
|
|
11945
11945
|
return new TreeError(elementName, span, msg);
|
|
@@ -12266,7 +12266,7 @@ function decodeEntity(match, entity) {
|
|
|
12266
12266
|
return match;
|
|
12267
12267
|
}
|
|
12268
12268
|
|
|
12269
|
-
// bazel-out/
|
|
12269
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/html_parser.mjs
|
|
12270
12270
|
var HtmlParser = class extends Parser2 {
|
|
12271
12271
|
constructor() {
|
|
12272
12272
|
super(getHtmlTagDefinition);
|
|
@@ -12276,7 +12276,7 @@ var HtmlParser = class extends Parser2 {
|
|
|
12276
12276
|
}
|
|
12277
12277
|
};
|
|
12278
12278
|
|
|
12279
|
-
// bazel-out/
|
|
12279
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/html_whitespaces.mjs
|
|
12280
12280
|
var PRESERVE_WS_ATTR_NAME = "ngPreserveWhitespaces";
|
|
12281
12281
|
var SKIP_WS_TRIM_TAGS = /* @__PURE__ */ new Set(["pre", "template", "textarea", "script", "style"]);
|
|
12282
12282
|
var WS_CHARS = " \f\n\r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF";
|
|
@@ -12336,7 +12336,7 @@ function visitAllWithSiblings(visitor, nodes) {
|
|
|
12336
12336
|
return result;
|
|
12337
12337
|
}
|
|
12338
12338
|
|
|
12339
|
-
// bazel-out/
|
|
12339
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/output/map_util.mjs
|
|
12340
12340
|
function mapLiteral(obj, quoted = false) {
|
|
12341
12341
|
return literalMap(Object.keys(obj).map((key) => ({
|
|
12342
12342
|
key,
|
|
@@ -12345,7 +12345,7 @@ function mapLiteral(obj, quoted = false) {
|
|
|
12345
12345
|
})));
|
|
12346
12346
|
}
|
|
12347
12347
|
|
|
12348
|
-
// bazel-out/
|
|
12348
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/schema/trusted_types_sinks.mjs
|
|
12349
12349
|
var TRUSTED_TYPES_SINKS = /* @__PURE__ */ new Set([
|
|
12350
12350
|
"iframe|srcdoc",
|
|
12351
12351
|
"*|innerhtml",
|
|
@@ -12360,7 +12360,7 @@ function isTrustedTypesSink(tagName, propName) {
|
|
|
12360
12360
|
return TRUSTED_TYPES_SINKS.has(tagName + "|" + propName) || TRUSTED_TYPES_SINKS.has("*|" + propName);
|
|
12361
12361
|
}
|
|
12362
12362
|
|
|
12363
|
-
// bazel-out/
|
|
12363
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template_parser/binding_parser.mjs
|
|
12364
12364
|
var PROPERTY_PARTS_SEPARATOR = ".";
|
|
12365
12365
|
var ATTRIBUTE_PREFIX = "attr";
|
|
12366
12366
|
var CLASS_PREFIX = "class";
|
|
@@ -12680,7 +12680,7 @@ function moveParseSourceSpan(sourceSpan, absoluteSpan) {
|
|
|
12680
12680
|
return new ParseSourceSpan(sourceSpan.start.moveBy(startDiff), sourceSpan.end.moveBy(endDiff), sourceSpan.fullStart.moveBy(startDiff), sourceSpan.details);
|
|
12681
12681
|
}
|
|
12682
12682
|
|
|
12683
|
-
// bazel-out/
|
|
12683
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/style_url_resolver.mjs
|
|
12684
12684
|
function isStyleUrlResolvable(url) {
|
|
12685
12685
|
if (url == null || url.length === 0 || url[0] == "/")
|
|
12686
12686
|
return false;
|
|
@@ -12689,7 +12689,7 @@ function isStyleUrlResolvable(url) {
|
|
|
12689
12689
|
}
|
|
12690
12690
|
var URL_WITH_SCHEMA_REGEXP = /^([^:/?#]+):/;
|
|
12691
12691
|
|
|
12692
|
-
// bazel-out/
|
|
12692
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template_parser/template_preparser.mjs
|
|
12693
12693
|
var NG_CONTENT_SELECT_ATTR = "select";
|
|
12694
12694
|
var LINK_ELEMENT = "link";
|
|
12695
12695
|
var LINK_STYLE_REL_ATTR = "rel";
|
|
@@ -12759,7 +12759,7 @@ function normalizeNgContentSelect(selectAttr) {
|
|
|
12759
12759
|
return selectAttr;
|
|
12760
12760
|
}
|
|
12761
12761
|
|
|
12762
|
-
// bazel-out/
|
|
12762
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_template_transform.mjs
|
|
12763
12763
|
var BIND_NAME_REGEXP = /^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/;
|
|
12764
12764
|
var KW_BIND_IDX = 1;
|
|
12765
12765
|
var KW_LET_IDX = 2;
|
|
@@ -13107,7 +13107,7 @@ function textContents(node) {
|
|
|
13107
13107
|
}
|
|
13108
13108
|
}
|
|
13109
13109
|
|
|
13110
|
-
// bazel-out/
|
|
13110
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/i18n/context.mjs
|
|
13111
13111
|
var TagType;
|
|
13112
13112
|
(function(TagType2) {
|
|
13113
13113
|
TagType2[TagType2["ELEMENT"] = 0] = "ELEMENT";
|
|
@@ -13242,7 +13242,7 @@ function serializePlaceholderValue(value) {
|
|
|
13242
13242
|
}
|
|
13243
13243
|
}
|
|
13244
13244
|
|
|
13245
|
-
// bazel-out/
|
|
13245
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/i18n/icu_serializer.mjs
|
|
13246
13246
|
var IcuSerializerVisitor = class {
|
|
13247
13247
|
visitText(text) {
|
|
13248
13248
|
return text.value;
|
|
@@ -13273,7 +13273,7 @@ function serializeIcuNode(icu) {
|
|
|
13273
13273
|
return icu.visit(serializer);
|
|
13274
13274
|
}
|
|
13275
13275
|
|
|
13276
|
-
// bazel-out/
|
|
13276
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/serializers/placeholder.mjs
|
|
13277
13277
|
var TAG_TO_PLACEHOLDER_NAMES = {
|
|
13278
13278
|
"A": "LINK",
|
|
13279
13279
|
"B": "BOLD_TEXT",
|
|
@@ -13367,7 +13367,7 @@ var PlaceholderRegistry = class {
|
|
|
13367
13367
|
}
|
|
13368
13368
|
};
|
|
13369
13369
|
|
|
13370
|
-
// bazel-out/
|
|
13370
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/i18n_parser.mjs
|
|
13371
13371
|
var _expParser = new Parser(new Lexer());
|
|
13372
13372
|
function createI18nMessageFactory(interpolationConfig) {
|
|
13373
13373
|
const visitor = new _I18nVisitor(_expParser, interpolationConfig);
|
|
@@ -13522,14 +13522,14 @@ function extractPlaceholderName(input) {
|
|
|
13522
13522
|
return input.split(_CUSTOM_PH_EXP)[2];
|
|
13523
13523
|
}
|
|
13524
13524
|
|
|
13525
|
-
// bazel-out/
|
|
13525
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/parse_util.mjs
|
|
13526
13526
|
var I18nError = class extends ParseError {
|
|
13527
13527
|
constructor(span, msg) {
|
|
13528
13528
|
super(span, msg);
|
|
13529
13529
|
}
|
|
13530
13530
|
};
|
|
13531
13531
|
|
|
13532
|
-
// bazel-out/
|
|
13532
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/i18n/meta.mjs
|
|
13533
13533
|
var setI18nRefs = (htmlNode, i18nNode) => {
|
|
13534
13534
|
if (htmlNode instanceof NodeWithI18n) {
|
|
13535
13535
|
if (i18nNode instanceof IcuPlaceholder && htmlNode.i18n instanceof Message) {
|
|
@@ -13678,7 +13678,7 @@ function i18nMetaToJSDoc(meta) {
|
|
|
13678
13678
|
return jsDocComment(tags);
|
|
13679
13679
|
}
|
|
13680
13680
|
|
|
13681
|
-
// bazel-out/
|
|
13681
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/i18n/get_msg_utils.mjs
|
|
13682
13682
|
var GOOG_GET_MSG = "goog.getMsg";
|
|
13683
13683
|
function createGoogleGetMsgStatements(variable2, message, closureVar, placeholderValues) {
|
|
13684
13684
|
const messageString = serializeI18nMessageForGetMsg(message);
|
|
@@ -13726,7 +13726,7 @@ function serializeI18nMessageForGetMsg(message) {
|
|
|
13726
13726
|
return message.nodes.map((node) => node.visit(serializerVisitor2, null)).join("");
|
|
13727
13727
|
}
|
|
13728
13728
|
|
|
13729
|
-
// bazel-out/
|
|
13729
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/i18n/localize_utils.mjs
|
|
13730
13730
|
function createLocalizeStatements(variable2, message, params) {
|
|
13731
13731
|
const { messageParts, placeHolders } = serializeI18nMessageForLocalize(message);
|
|
13732
13732
|
const sourceSpan = getSourceSpan(message);
|
|
@@ -13809,7 +13809,7 @@ function createEmptyMessagePart(location) {
|
|
|
13809
13809
|
return new LiteralPiece("", new ParseSourceSpan(location, location));
|
|
13810
13810
|
}
|
|
13811
13811
|
|
|
13812
|
-
// bazel-out/
|
|
13812
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/template.mjs
|
|
13813
13813
|
var NG_CONTENT_SELECT_ATTR2 = "select";
|
|
13814
13814
|
var NG_PROJECT_AS_ATTR_NAME = "ngProjectAs";
|
|
13815
13815
|
var EVENT_BINDING_SCOPE_GLOBALS = /* @__PURE__ */ new Set(["$event"]);
|
|
@@ -15111,7 +15111,7 @@ function createClosureModeGuard() {
|
|
|
15111
15111
|
return typeofExpr(variable(NG_I18N_CLOSURE_MODE)).notIdentical(literal("undefined", STRING_TYPE)).and(variable(NG_I18N_CLOSURE_MODE));
|
|
15112
15112
|
}
|
|
15113
15113
|
|
|
15114
|
-
// bazel-out/
|
|
15114
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/compiler.mjs
|
|
15115
15115
|
var ATTR_REGEX = /attr\.([^\]]+)/;
|
|
15116
15116
|
var COMPONENT_VARIABLE = "%COMP%";
|
|
15117
15117
|
var HOST_ATTR = `_nghost-${COMPONENT_VARIABLE}`;
|
|
@@ -15630,11 +15630,11 @@ function createHostDirectivesMappingArray(mapping) {
|
|
|
15630
15630
|
return elements.length > 0 ? literalArr(elements) : null;
|
|
15631
15631
|
}
|
|
15632
15632
|
|
|
15633
|
-
// bazel-out/
|
|
15633
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/resource_loader.mjs
|
|
15634
15634
|
var ResourceLoader = class {
|
|
15635
15635
|
};
|
|
15636
15636
|
|
|
15637
|
-
// bazel-out/
|
|
15637
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/jit_compiler_facade.mjs
|
|
15638
15638
|
var CompilerFacadeImpl = class {
|
|
15639
15639
|
constructor(jitEvaluator = new JitEvaluator()) {
|
|
15640
15640
|
this.jitEvaluator = jitEvaluator;
|
|
@@ -16117,10 +16117,10 @@ function publishFacade(global2) {
|
|
|
16117
16117
|
ng.\u0275compilerFacade = new CompilerFacadeImpl();
|
|
16118
16118
|
}
|
|
16119
16119
|
|
|
16120
|
-
// bazel-out/
|
|
16121
|
-
var VERSION2 = new Version("15.2.0-next.
|
|
16120
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/version.mjs
|
|
16121
|
+
var VERSION2 = new Version("15.2.0-next.3");
|
|
16122
16122
|
|
|
16123
|
-
// bazel-out/
|
|
16123
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
|
|
16124
16124
|
var _I18N_ATTR = "i18n";
|
|
16125
16125
|
var _I18N_ATTR_PREFIX = "i18n-";
|
|
16126
16126
|
var _I18N_COMMENT_PREFIX_REGEXP = /^i18n:?/;
|
|
@@ -16424,7 +16424,7 @@ function _parseMessageMeta(i18n) {
|
|
|
16424
16424
|
return { meaning, description, id: id.trim() };
|
|
16425
16425
|
}
|
|
16426
16426
|
|
|
16427
|
-
// bazel-out/
|
|
16427
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/xml_tags.mjs
|
|
16428
16428
|
var XmlTagDefinition = class {
|
|
16429
16429
|
constructor() {
|
|
16430
16430
|
this.closedByParent = false;
|
|
@@ -16448,7 +16448,7 @@ function getXmlTagDefinition(tagName) {
|
|
|
16448
16448
|
return _TAG_DEFINITION;
|
|
16449
16449
|
}
|
|
16450
16450
|
|
|
16451
|
-
// bazel-out/
|
|
16451
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/xml_parser.mjs
|
|
16452
16452
|
var XmlParser = class extends Parser2 {
|
|
16453
16453
|
constructor() {
|
|
16454
16454
|
super(getXmlTagDefinition);
|
|
@@ -16458,7 +16458,7 @@ var XmlParser = class extends Parser2 {
|
|
|
16458
16458
|
}
|
|
16459
16459
|
};
|
|
16460
16460
|
|
|
16461
|
-
// bazel-out/
|
|
16461
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/serializers/xliff.mjs
|
|
16462
16462
|
var _VERSION = "1.2";
|
|
16463
16463
|
var _XMLNS = "urn:oasis:names:tc:xliff:document:1.2";
|
|
16464
16464
|
var _DEFAULT_SOURCE_LANG = "en";
|
|
@@ -16698,7 +16698,7 @@ function getCtypeForTag(tag) {
|
|
|
16698
16698
|
}
|
|
16699
16699
|
}
|
|
16700
16700
|
|
|
16701
|
-
// bazel-out/
|
|
16701
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/serializers/xliff2.mjs
|
|
16702
16702
|
var _VERSION2 = "2.0";
|
|
16703
16703
|
var _XMLNS2 = "urn:oasis:names:tc:xliff:document:2.0";
|
|
16704
16704
|
var _DEFAULT_SOURCE_LANG2 = "en";
|
|
@@ -16986,7 +16986,7 @@ function getTypeForTag(tag) {
|
|
|
16986
16986
|
}
|
|
16987
16987
|
}
|
|
16988
16988
|
|
|
16989
|
-
// bazel-out/
|
|
16989
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/i18n/message_bundle.mjs
|
|
16990
16990
|
var MessageBundle = class {
|
|
16991
16991
|
constructor(_htmlParser, _implicitTags, _implicitAttrs, _locale = null) {
|
|
16992
16992
|
this._htmlParser = _htmlParser;
|
|
@@ -17053,7 +17053,7 @@ var MapPlaceholderNames = class extends CloneVisitor {
|
|
|
17053
17053
|
}
|
|
17054
17054
|
};
|
|
17055
17055
|
|
|
17056
|
-
// bazel-out/
|
|
17056
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/partial/api.mjs
|
|
17057
17057
|
var FactoryTarget2;
|
|
17058
17058
|
(function(FactoryTarget3) {
|
|
17059
17059
|
FactoryTarget3[FactoryTarget3["Directive"] = 0] = "Directive";
|
|
@@ -17063,7 +17063,7 @@ var FactoryTarget2;
|
|
|
17063
17063
|
FactoryTarget3[FactoryTarget3["NgModule"] = 4] = "NgModule";
|
|
17064
17064
|
})(FactoryTarget2 || (FactoryTarget2 = {}));
|
|
17065
17065
|
|
|
17066
|
-
// bazel-out/
|
|
17066
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/view/t2_binder.mjs
|
|
17067
17067
|
var R3TargetBinder = class {
|
|
17068
17068
|
constructor(directiveMatcher) {
|
|
17069
17069
|
this.directiveMatcher = directiveMatcher;
|
|
@@ -17415,7 +17415,7 @@ function extractTemplateEntities(rootScope) {
|
|
|
17415
17415
|
return templateEntities;
|
|
17416
17416
|
}
|
|
17417
17417
|
|
|
17418
|
-
// bazel-out/
|
|
17418
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/r3_class_metadata_compiler.mjs
|
|
17419
17419
|
function compileClassMetadata(metadata) {
|
|
17420
17420
|
var _a, _b;
|
|
17421
17421
|
const fnCall = importExpr(Identifiers.setClassMetadata).callFn([
|
|
@@ -17428,12 +17428,12 @@ function compileClassMetadata(metadata) {
|
|
|
17428
17428
|
return iife.callFn([]);
|
|
17429
17429
|
}
|
|
17430
17430
|
|
|
17431
|
-
// bazel-out/
|
|
17431
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/partial/class_metadata.mjs
|
|
17432
17432
|
var MINIMUM_PARTIAL_LINKER_VERSION = "12.0.0";
|
|
17433
17433
|
function compileDeclareClassMetadata(metadata) {
|
|
17434
17434
|
const definitionMap = new DefinitionMap();
|
|
17435
17435
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
17436
|
-
definitionMap.set("version", literal("15.2.0-next.
|
|
17436
|
+
definitionMap.set("version", literal("15.2.0-next.3"));
|
|
17437
17437
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
17438
17438
|
definitionMap.set("type", metadata.type);
|
|
17439
17439
|
definitionMap.set("decorators", metadata.decorators);
|
|
@@ -17442,7 +17442,7 @@ function compileDeclareClassMetadata(metadata) {
|
|
|
17442
17442
|
return importExpr(Identifiers.declareClassMetadata).callFn([definitionMap.toLiteralMap()]);
|
|
17443
17443
|
}
|
|
17444
17444
|
|
|
17445
|
-
// bazel-out/
|
|
17445
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/partial/util.mjs
|
|
17446
17446
|
function toOptionalLiteralArray(values, mapper) {
|
|
17447
17447
|
if (values === null || values.length === 0) {
|
|
17448
17448
|
return null;
|
|
@@ -17490,7 +17490,7 @@ function compileDependency(dep) {
|
|
|
17490
17490
|
return depMeta.toLiteralMap();
|
|
17491
17491
|
}
|
|
17492
17492
|
|
|
17493
|
-
// bazel-out/
|
|
17493
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/partial/directive.mjs
|
|
17494
17494
|
var MINIMUM_PARTIAL_LINKER_VERSION2 = "14.0.0";
|
|
17495
17495
|
function compileDeclareDirectiveFromMetadata(meta) {
|
|
17496
17496
|
const definitionMap = createDirectiveDefinitionMap(meta);
|
|
@@ -17502,7 +17502,7 @@ function createDirectiveDefinitionMap(meta) {
|
|
|
17502
17502
|
var _a;
|
|
17503
17503
|
const definitionMap = new DefinitionMap();
|
|
17504
17504
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION2));
|
|
17505
|
-
definitionMap.set("version", literal("15.2.0-next.
|
|
17505
|
+
definitionMap.set("version", literal("15.2.0-next.3"));
|
|
17506
17506
|
definitionMap.set("type", meta.internalType);
|
|
17507
17507
|
if (meta.isStandalone) {
|
|
17508
17508
|
definitionMap.set("isStandalone", literal(meta.isStandalone));
|
|
@@ -17592,7 +17592,7 @@ function createHostDirectives(hostDirectives) {
|
|
|
17592
17592
|
return literalArr(expressions);
|
|
17593
17593
|
}
|
|
17594
17594
|
|
|
17595
|
-
// bazel-out/
|
|
17595
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/partial/component.mjs
|
|
17596
17596
|
function compileDeclareComponentFromMetadata(meta, template, additionalTemplateInfo) {
|
|
17597
17597
|
const definitionMap = createComponentDefinitionMap(meta, template, additionalTemplateInfo);
|
|
17598
17598
|
const expression = importExpr(Identifiers.declareComponent).callFn([definitionMap.toLiteralMap()]);
|
|
@@ -17679,12 +17679,12 @@ function compileUsedDependenciesMetadata(meta) {
|
|
|
17679
17679
|
});
|
|
17680
17680
|
}
|
|
17681
17681
|
|
|
17682
|
-
// bazel-out/
|
|
17682
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/partial/factory.mjs
|
|
17683
17683
|
var MINIMUM_PARTIAL_LINKER_VERSION3 = "12.0.0";
|
|
17684
17684
|
function compileDeclareFactoryFunction(meta) {
|
|
17685
17685
|
const definitionMap = new DefinitionMap();
|
|
17686
17686
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION3));
|
|
17687
|
-
definitionMap.set("version", literal("15.2.0-next.
|
|
17687
|
+
definitionMap.set("version", literal("15.2.0-next.3"));
|
|
17688
17688
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
17689
17689
|
definitionMap.set("type", meta.internalType);
|
|
17690
17690
|
definitionMap.set("deps", compileDependencies(meta.deps));
|
|
@@ -17696,7 +17696,7 @@ function compileDeclareFactoryFunction(meta) {
|
|
|
17696
17696
|
};
|
|
17697
17697
|
}
|
|
17698
17698
|
|
|
17699
|
-
// bazel-out/
|
|
17699
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/partial/injectable.mjs
|
|
17700
17700
|
var MINIMUM_PARTIAL_LINKER_VERSION4 = "12.0.0";
|
|
17701
17701
|
function compileDeclareInjectableFromMetadata(meta) {
|
|
17702
17702
|
const definitionMap = createInjectableDefinitionMap(meta);
|
|
@@ -17707,7 +17707,7 @@ function compileDeclareInjectableFromMetadata(meta) {
|
|
|
17707
17707
|
function createInjectableDefinitionMap(meta) {
|
|
17708
17708
|
const definitionMap = new DefinitionMap();
|
|
17709
17709
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION4));
|
|
17710
|
-
definitionMap.set("version", literal("15.2.0-next.
|
|
17710
|
+
definitionMap.set("version", literal("15.2.0-next.3"));
|
|
17711
17711
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
17712
17712
|
definitionMap.set("type", meta.internalType);
|
|
17713
17713
|
if (meta.providedIn !== void 0) {
|
|
@@ -17734,7 +17734,7 @@ function createInjectableDefinitionMap(meta) {
|
|
|
17734
17734
|
return definitionMap;
|
|
17735
17735
|
}
|
|
17736
17736
|
|
|
17737
|
-
// bazel-out/
|
|
17737
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/partial/injector.mjs
|
|
17738
17738
|
var MINIMUM_PARTIAL_LINKER_VERSION5 = "12.0.0";
|
|
17739
17739
|
function compileDeclareInjectorFromMetadata(meta) {
|
|
17740
17740
|
const definitionMap = createInjectorDefinitionMap(meta);
|
|
@@ -17745,7 +17745,7 @@ function compileDeclareInjectorFromMetadata(meta) {
|
|
|
17745
17745
|
function createInjectorDefinitionMap(meta) {
|
|
17746
17746
|
const definitionMap = new DefinitionMap();
|
|
17747
17747
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION5));
|
|
17748
|
-
definitionMap.set("version", literal("15.2.0-next.
|
|
17748
|
+
definitionMap.set("version", literal("15.2.0-next.3"));
|
|
17749
17749
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
17750
17750
|
definitionMap.set("type", meta.internalType);
|
|
17751
17751
|
definitionMap.set("providers", meta.providers);
|
|
@@ -17755,7 +17755,7 @@ function createInjectorDefinitionMap(meta) {
|
|
|
17755
17755
|
return definitionMap;
|
|
17756
17756
|
}
|
|
17757
17757
|
|
|
17758
|
-
// bazel-out/
|
|
17758
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/partial/ng_module.mjs
|
|
17759
17759
|
var MINIMUM_PARTIAL_LINKER_VERSION6 = "14.0.0";
|
|
17760
17760
|
function compileDeclareNgModuleFromMetadata(meta) {
|
|
17761
17761
|
const definitionMap = createNgModuleDefinitionMap(meta);
|
|
@@ -17766,7 +17766,7 @@ function compileDeclareNgModuleFromMetadata(meta) {
|
|
|
17766
17766
|
function createNgModuleDefinitionMap(meta) {
|
|
17767
17767
|
const definitionMap = new DefinitionMap();
|
|
17768
17768
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION6));
|
|
17769
|
-
definitionMap.set("version", literal("15.2.0-next.
|
|
17769
|
+
definitionMap.set("version", literal("15.2.0-next.3"));
|
|
17770
17770
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
17771
17771
|
definitionMap.set("type", meta.internalType);
|
|
17772
17772
|
if (meta.bootstrap.length > 0) {
|
|
@@ -17790,7 +17790,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
17790
17790
|
return definitionMap;
|
|
17791
17791
|
}
|
|
17792
17792
|
|
|
17793
|
-
// bazel-out/
|
|
17793
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/render3/partial/pipe.mjs
|
|
17794
17794
|
var MINIMUM_PARTIAL_LINKER_VERSION7 = "14.0.0";
|
|
17795
17795
|
function compileDeclarePipeFromMetadata(meta) {
|
|
17796
17796
|
const definitionMap = createPipeDefinitionMap(meta);
|
|
@@ -17801,7 +17801,7 @@ function compileDeclarePipeFromMetadata(meta) {
|
|
|
17801
17801
|
function createPipeDefinitionMap(meta) {
|
|
17802
17802
|
const definitionMap = new DefinitionMap();
|
|
17803
17803
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION7));
|
|
17804
|
-
definitionMap.set("version", literal("15.2.0-next.
|
|
17804
|
+
definitionMap.set("version", literal("15.2.0-next.3"));
|
|
17805
17805
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
17806
17806
|
definitionMap.set("type", meta.internalType);
|
|
17807
17807
|
if (meta.isStandalone) {
|
|
@@ -17814,13 +17814,13 @@ function createPipeDefinitionMap(meta) {
|
|
|
17814
17814
|
return definitionMap;
|
|
17815
17815
|
}
|
|
17816
17816
|
|
|
17817
|
-
// bazel-out/
|
|
17817
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/compiler.mjs
|
|
17818
17818
|
publishFacade(_global);
|
|
17819
17819
|
|
|
17820
|
-
// bazel-out/
|
|
17821
|
-
var VERSION3 = new Version("15.2.0-next.
|
|
17820
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/version.mjs
|
|
17821
|
+
var VERSION3 = new Version("15.2.0-next.3");
|
|
17822
17822
|
|
|
17823
|
-
// bazel-out/
|
|
17823
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
|
|
17824
17824
|
var EmitFlags;
|
|
17825
17825
|
(function(EmitFlags2) {
|
|
17826
17826
|
EmitFlags2[EmitFlags2["DTS"] = 1] = "DTS";
|
|
@@ -17832,13 +17832,13 @@ var EmitFlags;
|
|
|
17832
17832
|
EmitFlags2[EmitFlags2["All"] = 31] = "All";
|
|
17833
17833
|
})(EmitFlags || (EmitFlags = {}));
|
|
17834
17834
|
|
|
17835
|
-
// bazel-out/
|
|
17835
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/compiler_host.mjs
|
|
17836
17836
|
var import_typescript2 = __toESM(require("typescript"), 1);
|
|
17837
17837
|
|
|
17838
|
-
// bazel-out/
|
|
17838
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
17839
17839
|
var import_typescript97 = __toESM(require("typescript"), 1);
|
|
17840
17840
|
|
|
17841
|
-
// bazel-out/
|
|
17841
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
|
|
17842
17842
|
var path = __toESM(require("path"), 1);
|
|
17843
17843
|
function i18nGetExtension(formatName) {
|
|
17844
17844
|
const format = formatName.toLowerCase();
|
|
@@ -17888,10 +17888,10 @@ function getPathNormalizer(basePath) {
|
|
|
17888
17888
|
};
|
|
17889
17889
|
}
|
|
17890
17890
|
|
|
17891
|
-
// bazel-out/
|
|
17891
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
17892
17892
|
var import_typescript3 = __toESM(require("typescript"), 1);
|
|
17893
17893
|
|
|
17894
|
-
// bazel-out/
|
|
17894
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/version_helpers.mjs
|
|
17895
17895
|
function toNumbers(value) {
|
|
17896
17896
|
const suffixIndex = value.lastIndexOf("-");
|
|
17897
17897
|
return value.slice(0, suffixIndex === -1 ? value.length : suffixIndex).split(".").map((segment) => {
|
|
@@ -17926,7 +17926,7 @@ function compareVersions(v1, v2) {
|
|
|
17926
17926
|
return compareNumbers(toNumbers(v1), toNumbers(v2));
|
|
17927
17927
|
}
|
|
17928
17928
|
|
|
17929
|
-
// bazel-out/
|
|
17929
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
17930
17930
|
var MIN_TS_VERSION = "4.8.2";
|
|
17931
17931
|
var MAX_TS_VERSION = "5.0.0";
|
|
17932
17932
|
var tsVersion = import_typescript3.default.version;
|
|
@@ -17939,13 +17939,13 @@ function verifySupportedTypeScriptVersion() {
|
|
|
17939
17939
|
checkVersion(tsVersion, MIN_TS_VERSION, MAX_TS_VERSION);
|
|
17940
17940
|
}
|
|
17941
17941
|
|
|
17942
|
-
// bazel-out/
|
|
17942
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
17943
17943
|
var import_typescript93 = __toESM(require("typescript"), 1);
|
|
17944
17944
|
|
|
17945
|
-
// bazel-out/
|
|
17945
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
|
|
17946
17946
|
var import_typescript19 = __toESM(require("typescript"), 1);
|
|
17947
17947
|
|
|
17948
|
-
// bazel-out/
|
|
17948
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_code.mjs
|
|
17949
17949
|
var ErrorCode;
|
|
17950
17950
|
(function(ErrorCode2) {
|
|
17951
17951
|
ErrorCode2[ErrorCode2["DECORATOR_ARG_NOT_LITERAL"] = 1001] = "DECORATOR_ARG_NOT_LITERAL";
|
|
@@ -18015,7 +18015,7 @@ var ErrorCode;
|
|
|
18015
18015
|
ErrorCode2[ErrorCode2["SUGGEST_SUBOPTIMAL_TYPE_INFERENCE"] = 10002] = "SUGGEST_SUBOPTIMAL_TYPE_INFERENCE";
|
|
18016
18016
|
})(ErrorCode || (ErrorCode = {}));
|
|
18017
18017
|
|
|
18018
|
-
// bazel-out/
|
|
18018
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/docs.mjs
|
|
18019
18019
|
var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
|
|
18020
18020
|
ErrorCode.DECORATOR_ARG_NOT_LITERAL,
|
|
18021
18021
|
ErrorCode.IMPORT_CYCLE_DETECTED,
|
|
@@ -18027,15 +18027,15 @@ var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
|
|
|
18027
18027
|
ErrorCode.WARN_NGMODULE_ID_UNNECESSARY
|
|
18028
18028
|
]);
|
|
18029
18029
|
|
|
18030
|
-
// bazel-out/
|
|
18030
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
|
|
18031
18031
|
var import_typescript4 = __toESM(require("typescript"), 1);
|
|
18032
18032
|
|
|
18033
|
-
// bazel-out/
|
|
18033
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/util.mjs
|
|
18034
18034
|
function ngErrorCode(code) {
|
|
18035
18035
|
return parseInt("-99" + code);
|
|
18036
18036
|
}
|
|
18037
18037
|
|
|
18038
|
-
// bazel-out/
|
|
18038
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
|
|
18039
18039
|
var FatalDiagnosticError = class {
|
|
18040
18040
|
constructor(code, node, message, relatedInformation) {
|
|
18041
18041
|
this.code = code;
|
|
@@ -18091,10 +18091,10 @@ function addDiagnosticChain(messageText, add) {
|
|
|
18091
18091
|
return messageText;
|
|
18092
18092
|
}
|
|
18093
18093
|
|
|
18094
|
-
// bazel-out/
|
|
18094
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.mjs
|
|
18095
18095
|
var ERROR_DETAILS_PAGE_BASE_URL = "https://angular.io/errors";
|
|
18096
18096
|
|
|
18097
|
-
// bazel-out/
|
|
18097
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.mjs
|
|
18098
18098
|
var ExtendedTemplateDiagnosticName;
|
|
18099
18099
|
(function(ExtendedTemplateDiagnosticName2) {
|
|
18100
18100
|
ExtendedTemplateDiagnosticName2["INVALID_BANANA_IN_BOX"] = "invalidBananaInBox";
|
|
@@ -18106,7 +18106,7 @@ var ExtendedTemplateDiagnosticName;
|
|
|
18106
18106
|
ExtendedTemplateDiagnosticName2["SUFFIX_NOT_SUPPORTED"] = "suffixNotSupported";
|
|
18107
18107
|
})(ExtendedTemplateDiagnosticName || (ExtendedTemplateDiagnosticName = {}));
|
|
18108
18108
|
|
|
18109
|
-
// bazel-out/
|
|
18109
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/host.mjs
|
|
18110
18110
|
var import_typescript5 = __toESM(require("typescript"), 1);
|
|
18111
18111
|
var Decorator = {
|
|
18112
18112
|
nodeForError: (decorator) => {
|
|
@@ -18141,7 +18141,7 @@ function isConcreteDeclaration(decl) {
|
|
|
18141
18141
|
return decl.kind === 0;
|
|
18142
18142
|
}
|
|
18143
18143
|
|
|
18144
|
-
// bazel-out/
|
|
18144
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/type_to_value.mjs
|
|
18145
18145
|
var import_typescript6 = __toESM(require("typescript"), 1);
|
|
18146
18146
|
function typeToValue(typeNode, checker) {
|
|
18147
18147
|
if (typeNode === null) {
|
|
@@ -18307,10 +18307,10 @@ function extractModuleName(node) {
|
|
|
18307
18307
|
return node.moduleSpecifier.text;
|
|
18308
18308
|
}
|
|
18309
18309
|
|
|
18310
|
-
// bazel-out/
|
|
18310
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
|
|
18311
18311
|
var import_typescript8 = __toESM(require("typescript"), 1);
|
|
18312
18312
|
|
|
18313
|
-
// bazel-out/
|
|
18313
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/util.mjs
|
|
18314
18314
|
var import_typescript7 = __toESM(require("typescript"), 1);
|
|
18315
18315
|
function isNamedClassDeclaration(node) {
|
|
18316
18316
|
return import_typescript7.default.isClassDeclaration(node) && isIdentifier(node.name);
|
|
@@ -18319,7 +18319,7 @@ function isIdentifier(node) {
|
|
|
18319
18319
|
return node !== void 0 && import_typescript7.default.isIdentifier(node);
|
|
18320
18320
|
}
|
|
18321
18321
|
|
|
18322
|
-
// bazel-out/
|
|
18322
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
|
|
18323
18323
|
var TypeScriptReflectionHost = class {
|
|
18324
18324
|
constructor(checker) {
|
|
18325
18325
|
this.checker = checker;
|
|
@@ -18755,13 +18755,13 @@ function getExportedName(decl, originalId) {
|
|
|
18755
18755
|
}
|
|
18756
18756
|
var LocalExportedDeclarations = Symbol("LocalExportedDeclarations");
|
|
18757
18757
|
|
|
18758
|
-
// bazel-out/
|
|
18758
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
|
|
18759
18759
|
var import_typescript18 = __toESM(require("typescript"), 1);
|
|
18760
18760
|
|
|
18761
|
-
// bazel-out/
|
|
18761
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
|
|
18762
18762
|
var import_typescript12 = __toESM(require("typescript"), 1);
|
|
18763
18763
|
|
|
18764
|
-
// bazel-out/
|
|
18764
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/typescript.mjs
|
|
18765
18765
|
var import_typescript10 = __toESM(require("typescript"), 1);
|
|
18766
18766
|
var TS = /\.tsx?$/i;
|
|
18767
18767
|
var D_TS = /\.d\.ts$/i;
|
|
@@ -18862,7 +18862,7 @@ function toUnredirectedSourceFile(sf) {
|
|
|
18862
18862
|
return redirectInfo.unredirected;
|
|
18863
18863
|
}
|
|
18864
18864
|
|
|
18865
|
-
// bazel-out/
|
|
18865
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/find_export.mjs
|
|
18866
18866
|
function findExportedNameOfNode(target, file, reflector) {
|
|
18867
18867
|
const exports = reflector.getExportsOfModule(file);
|
|
18868
18868
|
if (exports === null) {
|
|
@@ -18882,7 +18882,7 @@ function findExportedNameOfNode(target, file, reflector) {
|
|
|
18882
18882
|
return foundExportName;
|
|
18883
18883
|
}
|
|
18884
18884
|
|
|
18885
|
-
// bazel-out/
|
|
18885
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
|
|
18886
18886
|
var ImportFlags;
|
|
18887
18887
|
(function(ImportFlags2) {
|
|
18888
18888
|
ImportFlags2[ImportFlags2["None"] = 0] = "None";
|
|
@@ -19098,7 +19098,7 @@ var UnifiedModulesStrategy = class {
|
|
|
19098
19098
|
}
|
|
19099
19099
|
};
|
|
19100
19100
|
|
|
19101
|
-
// bazel-out/
|
|
19101
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
|
|
19102
19102
|
var CHARS_TO_ESCAPE = /[^a-zA-Z0-9/_]/g;
|
|
19103
19103
|
var UnifiedModulesAliasingHost = class {
|
|
19104
19104
|
constructor(unifiedModulesHost) {
|
|
@@ -19165,7 +19165,7 @@ var AliasStrategy = class {
|
|
|
19165
19165
|
}
|
|
19166
19166
|
};
|
|
19167
19167
|
|
|
19168
|
-
// bazel-out/
|
|
19168
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/path.mjs
|
|
19169
19169
|
function relativePathBetween(from, to) {
|
|
19170
19170
|
const relativePath = stripExtension(relative(dirname(resolve(from)), resolve(to)));
|
|
19171
19171
|
return relativePath !== "" ? toRelativeImport(relativePath) : null;
|
|
@@ -19174,7 +19174,7 @@ function normalizeSeparators2(path3) {
|
|
|
19174
19174
|
return path3.replace(/\\/g, "/");
|
|
19175
19175
|
}
|
|
19176
19176
|
|
|
19177
|
-
// bazel-out/
|
|
19177
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/core.mjs
|
|
19178
19178
|
var NoopImportRewriter = class {
|
|
19179
19179
|
shouldImportSymbol(symbol, specifier) {
|
|
19180
19180
|
return true;
|
|
@@ -19232,7 +19232,7 @@ function validateAndRewriteCoreSymbol(name) {
|
|
|
19232
19232
|
return CORE_SUPPORTED_SYMBOLS.get(name);
|
|
19233
19233
|
}
|
|
19234
19234
|
|
|
19235
|
-
// bazel-out/
|
|
19235
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/default.mjs
|
|
19236
19236
|
var import_typescript14 = __toESM(require("typescript"), 1);
|
|
19237
19237
|
var DefaultImportDeclaration = Symbol("DefaultImportDeclaration");
|
|
19238
19238
|
function attachDefaultImportDeclaration(expr, importDecl) {
|
|
@@ -19277,7 +19277,7 @@ var DefaultImportTracker = class {
|
|
|
19277
19277
|
}
|
|
19278
19278
|
};
|
|
19279
19279
|
|
|
19280
|
-
// bazel-out/
|
|
19280
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/references.mjs
|
|
19281
19281
|
var Reference2 = class {
|
|
19282
19282
|
constructor(node, bestGuessOwningModule = null) {
|
|
19283
19283
|
this.node = node;
|
|
@@ -19340,7 +19340,7 @@ var Reference2 = class {
|
|
|
19340
19340
|
}
|
|
19341
19341
|
};
|
|
19342
19342
|
|
|
19343
|
-
// bazel-out/
|
|
19343
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/resolver.mjs
|
|
19344
19344
|
var ModuleResolver = class {
|
|
19345
19345
|
constructor(program, compilerOptions, host, moduleResolutionCache) {
|
|
19346
19346
|
this.program = program;
|
|
@@ -19357,7 +19357,7 @@ var ModuleResolver = class {
|
|
|
19357
19357
|
}
|
|
19358
19358
|
};
|
|
19359
19359
|
|
|
19360
|
-
// bazel-out/
|
|
19360
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
|
|
19361
19361
|
function valueReferenceToExpression(valueRef) {
|
|
19362
19362
|
if (valueRef.kind === 2) {
|
|
19363
19363
|
return null;
|
|
@@ -19594,7 +19594,7 @@ function isAbstractClassDeclaration(clazz) {
|
|
|
19594
19594
|
return clazz.modifiers !== void 0 && clazz.modifiers.some((mod) => mod.kind === import_typescript18.default.SyntaxKind.AbstractKeyword);
|
|
19595
19595
|
}
|
|
19596
19596
|
|
|
19597
|
-
// bazel-out/
|
|
19597
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
|
|
19598
19598
|
function getConstructorDependencies(clazz, reflector, isCore) {
|
|
19599
19599
|
const deps = [];
|
|
19600
19600
|
const errors = [];
|
|
@@ -19736,10 +19736,10 @@ function createUnsuitableInjectionTokenError(clazz, error2) {
|
|
|
19736
19736
|
return new FatalDiagnosticError(ErrorCode.PARAM_MISSING_TOKEN, param.nameNode, chain, hints);
|
|
19737
19737
|
}
|
|
19738
19738
|
|
|
19739
|
-
// bazel-out/
|
|
19739
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
|
|
19740
19740
|
var import_typescript27 = __toESM(require("typescript"), 1);
|
|
19741
19741
|
|
|
19742
|
-
// bazel-out/
|
|
19742
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/api.mjs
|
|
19743
19743
|
var MetaKind;
|
|
19744
19744
|
(function(MetaKind2) {
|
|
19745
19745
|
MetaKind2[MetaKind2["Directive"] = 0] = "Directive";
|
|
@@ -19752,10 +19752,10 @@ var MatchSource;
|
|
|
19752
19752
|
MatchSource2[MatchSource2["HostDirective"] = 1] = "HostDirective";
|
|
19753
19753
|
})(MatchSource || (MatchSource = {}));
|
|
19754
19754
|
|
|
19755
|
-
// bazel-out/
|
|
19755
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
19756
19756
|
var import_typescript22 = __toESM(require("typescript"), 1);
|
|
19757
19757
|
|
|
19758
|
-
// bazel-out/
|
|
19758
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/property_mapping.mjs
|
|
19759
19759
|
var ClassPropertyMapping = class {
|
|
19760
19760
|
constructor(forwardMap) {
|
|
19761
19761
|
this.forwardMap = forwardMap;
|
|
@@ -19831,7 +19831,7 @@ function reverseMapFromForwardMap(forwardMap) {
|
|
|
19831
19831
|
return reverseMap;
|
|
19832
19832
|
}
|
|
19833
19833
|
|
|
19834
|
-
// bazel-out/
|
|
19834
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/util.mjs
|
|
19835
19835
|
var import_typescript20 = __toESM(require("typescript"), 1);
|
|
19836
19836
|
function extractReferencesFromType(checker, def, bestGuessOwningModule) {
|
|
19837
19837
|
if (!import_typescript20.default.isTupleTypeNode(def)) {
|
|
@@ -20013,7 +20013,7 @@ function hasInjectableFields(clazz, host) {
|
|
|
20013
20013
|
return members.some(({ isStatic, name }) => isStatic && (name === "\u0275prov" || name === "\u0275fac"));
|
|
20014
20014
|
}
|
|
20015
20015
|
|
|
20016
|
-
// bazel-out/
|
|
20016
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
20017
20017
|
var DtsMetadataReader = class {
|
|
20018
20018
|
constructor(checker, reflector) {
|
|
20019
20019
|
this.checker = checker;
|
|
@@ -20152,7 +20152,7 @@ function readHostDirectivesType(checker, type, bestGuessOwningModule) {
|
|
|
20152
20152
|
return result.length > 0 ? result : null;
|
|
20153
20153
|
}
|
|
20154
20154
|
|
|
20155
|
-
// bazel-out/
|
|
20155
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/inheritance.mjs
|
|
20156
20156
|
function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
20157
20157
|
const topMeta = reader.getDirectiveMetadata(dir);
|
|
20158
20158
|
if (topMeta === null) {
|
|
@@ -20209,7 +20209,7 @@ function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
|
20209
20209
|
});
|
|
20210
20210
|
}
|
|
20211
20211
|
|
|
20212
|
-
// bazel-out/
|
|
20212
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/registry.mjs
|
|
20213
20213
|
var LocalMetadataRegistry = class {
|
|
20214
20214
|
constructor() {
|
|
20215
20215
|
this.directives = /* @__PURE__ */ new Map();
|
|
@@ -20266,7 +20266,7 @@ var CompoundMetadataRegistry = class {
|
|
|
20266
20266
|
}
|
|
20267
20267
|
};
|
|
20268
20268
|
|
|
20269
|
-
// bazel-out/
|
|
20269
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/resource_registry.mjs
|
|
20270
20270
|
var ResourceRegistry = class {
|
|
20271
20271
|
constructor() {
|
|
20272
20272
|
this.externalTemplateToComponentsMap = /* @__PURE__ */ new Map();
|
|
@@ -20331,7 +20331,7 @@ var ResourceRegistry = class {
|
|
|
20331
20331
|
}
|
|
20332
20332
|
};
|
|
20333
20333
|
|
|
20334
|
-
// bazel-out/
|
|
20334
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/host_directives_resolver.mjs
|
|
20335
20335
|
var EMPTY_ARRAY = [];
|
|
20336
20336
|
var HostDirectivesResolver = class {
|
|
20337
20337
|
constructor(metaReader) {
|
|
@@ -20381,10 +20381,10 @@ var HostDirectivesResolver = class {
|
|
|
20381
20381
|
}
|
|
20382
20382
|
};
|
|
20383
20383
|
|
|
20384
|
-
// bazel-out/
|
|
20384
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
|
|
20385
20385
|
var import_typescript24 = __toESM(require("typescript"), 1);
|
|
20386
20386
|
|
|
20387
|
-
// bazel-out/
|
|
20387
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/dynamic.mjs
|
|
20388
20388
|
var DynamicValue = class {
|
|
20389
20389
|
constructor(node, reason, code) {
|
|
20390
20390
|
this.node = node;
|
|
@@ -20474,7 +20474,7 @@ var DynamicValue = class {
|
|
|
20474
20474
|
}
|
|
20475
20475
|
};
|
|
20476
20476
|
|
|
20477
|
-
// bazel-out/
|
|
20477
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/result.mjs
|
|
20478
20478
|
var ResolvedModule = class {
|
|
20479
20479
|
constructor(exports, evaluate) {
|
|
20480
20480
|
this.exports = exports;
|
|
@@ -20504,7 +20504,7 @@ var EnumValue = class {
|
|
|
20504
20504
|
var KnownFn = class {
|
|
20505
20505
|
};
|
|
20506
20506
|
|
|
20507
|
-
// bazel-out/
|
|
20507
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
|
|
20508
20508
|
function describeResolvedType(value, maxDepth = 1) {
|
|
20509
20509
|
var _a, _b;
|
|
20510
20510
|
if (value === null) {
|
|
@@ -20633,10 +20633,10 @@ function getContainerNode(node) {
|
|
|
20633
20633
|
return node.getSourceFile();
|
|
20634
20634
|
}
|
|
20635
20635
|
|
|
20636
|
-
// bazel-out/
|
|
20636
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
20637
20637
|
var import_typescript25 = __toESM(require("typescript"), 1);
|
|
20638
20638
|
|
|
20639
|
-
// bazel-out/
|
|
20639
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/builtin.mjs
|
|
20640
20640
|
var ArraySliceBuiltinFn = class extends KnownFn {
|
|
20641
20641
|
constructor(lhs) {
|
|
20642
20642
|
super();
|
|
@@ -20707,7 +20707,7 @@ var ObjectAssignBuiltinFn = class extends KnownFn {
|
|
|
20707
20707
|
}
|
|
20708
20708
|
};
|
|
20709
20709
|
|
|
20710
|
-
// bazel-out/
|
|
20710
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/ts_helpers.mjs
|
|
20711
20711
|
var AssignHelperFn = class extends ObjectAssignBuiltinFn {
|
|
20712
20712
|
};
|
|
20713
20713
|
var SpreadHelperFn = class extends KnownFn {
|
|
@@ -20760,7 +20760,7 @@ var ReadHelperFn = class extends KnownFn {
|
|
|
20760
20760
|
}
|
|
20761
20761
|
};
|
|
20762
20762
|
|
|
20763
|
-
// bazel-out/
|
|
20763
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/known_declaration.mjs
|
|
20764
20764
|
var jsGlobalObjectValue = /* @__PURE__ */ new Map([["assign", new ObjectAssignBuiltinFn()]]);
|
|
20765
20765
|
var assignTsHelperFn = new AssignHelperFn();
|
|
20766
20766
|
var spreadTsHelperFn = new SpreadHelperFn();
|
|
@@ -20784,14 +20784,14 @@ function resolveKnownDeclaration(decl) {
|
|
|
20784
20784
|
}
|
|
20785
20785
|
}
|
|
20786
20786
|
|
|
20787
|
-
// bazel-out/
|
|
20787
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/synthetic.mjs
|
|
20788
20788
|
var SyntheticValue = class {
|
|
20789
20789
|
constructor(value) {
|
|
20790
20790
|
this.value = value;
|
|
20791
20791
|
}
|
|
20792
20792
|
};
|
|
20793
20793
|
|
|
20794
|
-
// bazel-out/
|
|
20794
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
20795
20795
|
function literalBinaryOp(op) {
|
|
20796
20796
|
return { op, literal: true };
|
|
20797
20797
|
}
|
|
@@ -21389,7 +21389,7 @@ function owningModule(context, override = null) {
|
|
|
21389
21389
|
}
|
|
21390
21390
|
}
|
|
21391
21391
|
|
|
21392
|
-
// bazel-out/
|
|
21392
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interface.mjs
|
|
21393
21393
|
var PartialEvaluator = class {
|
|
21394
21394
|
constructor(host, checker, dependencyTracker) {
|
|
21395
21395
|
this.host = host;
|
|
@@ -21409,7 +21409,7 @@ var PartialEvaluator = class {
|
|
|
21409
21409
|
}
|
|
21410
21410
|
};
|
|
21411
21411
|
|
|
21412
|
-
// bazel-out/
|
|
21412
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
|
|
21413
21413
|
function makeDuplicateDeclarationError(node, data, kind) {
|
|
21414
21414
|
const context = [];
|
|
21415
21415
|
for (const decl of data) {
|
|
@@ -21584,7 +21584,7 @@ function getInheritedUndecoratedCtorDiagnostic(node, baseClass, kind) {
|
|
|
21584
21584
|
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}.`);
|
|
21585
21585
|
}
|
|
21586
21586
|
|
|
21587
|
-
// bazel-out/
|
|
21587
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/evaluation.mjs
|
|
21588
21588
|
var import_typescript29 = __toESM(require("typescript"), 1);
|
|
21589
21589
|
function resolveEnumValue(evaluator, metadata, field, enumSymbolName) {
|
|
21590
21590
|
let resolved = null;
|
|
@@ -21617,7 +21617,7 @@ function resolveLiteral(decorator, literalCache) {
|
|
|
21617
21617
|
return meta;
|
|
21618
21618
|
}
|
|
21619
21619
|
|
|
21620
|
-
// bazel-out/
|
|
21620
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/factory.mjs
|
|
21621
21621
|
function compileNgFactoryDefField(metadata) {
|
|
21622
21622
|
const res = compileFactoryFunction(metadata);
|
|
21623
21623
|
return { name: "\u0275fac", initializer: res.expression, statements: res.statements, type: res.type };
|
|
@@ -21627,7 +21627,7 @@ function compileDeclareFactory(metadata) {
|
|
|
21627
21627
|
return { name: "\u0275fac", initializer: res.expression, statements: res.statements, type: res.type };
|
|
21628
21628
|
}
|
|
21629
21629
|
|
|
21630
|
-
// bazel-out/
|
|
21630
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/injectable_registry.mjs
|
|
21631
21631
|
var InjectableClassRegistry = class {
|
|
21632
21632
|
constructor(host, isCore) {
|
|
21633
21633
|
this.host = host;
|
|
@@ -21653,7 +21653,7 @@ var InjectableClassRegistry = class {
|
|
|
21653
21653
|
}
|
|
21654
21654
|
};
|
|
21655
21655
|
|
|
21656
|
-
// bazel-out/
|
|
21656
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/metadata.mjs
|
|
21657
21657
|
var import_typescript30 = __toESM(require("typescript"), 1);
|
|
21658
21658
|
function extractClassMetadata(clazz, reflection, isCore, annotateForClosureCompiler, angularDecoratorTransform = (dec) => dec) {
|
|
21659
21659
|
if (!reflection.isClass(clazz)) {
|
|
@@ -21739,13 +21739,13 @@ function removeIdentifierReferences(node, name) {
|
|
|
21739
21739
|
return result.transformed[0];
|
|
21740
21740
|
}
|
|
21741
21741
|
|
|
21742
|
-
// bazel-out/
|
|
21742
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/references_registry.mjs
|
|
21743
21743
|
var NoopReferencesRegistry = class {
|
|
21744
21744
|
add(source, ...references) {
|
|
21745
21745
|
}
|
|
21746
21746
|
};
|
|
21747
21747
|
|
|
21748
|
-
// bazel-out/
|
|
21748
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/schema.mjs
|
|
21749
21749
|
function extractSchemas(rawExpr, evaluator, context) {
|
|
21750
21750
|
const schemas = [];
|
|
21751
21751
|
const result = evaluator.evaluate(rawExpr);
|
|
@@ -21774,10 +21774,10 @@ function extractSchemas(rawExpr, evaluator, context) {
|
|
|
21774
21774
|
return schemas;
|
|
21775
21775
|
}
|
|
21776
21776
|
|
|
21777
|
-
// bazel-out/
|
|
21777
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
21778
21778
|
var import_typescript52 = __toESM(require("typescript"), 1);
|
|
21779
21779
|
|
|
21780
|
-
// bazel-out/
|
|
21780
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.mjs
|
|
21781
21781
|
var import_typescript31 = __toESM(require("typescript"), 1);
|
|
21782
21782
|
var SemanticSymbol = class {
|
|
21783
21783
|
constructor(decl) {
|
|
@@ -21793,7 +21793,7 @@ function getSymbolIdentifier(decl) {
|
|
|
21793
21793
|
return decl.name.text;
|
|
21794
21794
|
}
|
|
21795
21795
|
|
|
21796
|
-
// bazel-out/
|
|
21796
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.mjs
|
|
21797
21797
|
var OpaqueSymbol = class extends SemanticSymbol {
|
|
21798
21798
|
isPublicApiAffected() {
|
|
21799
21799
|
return false;
|
|
@@ -21935,10 +21935,10 @@ function getImportPath(expr) {
|
|
|
21935
21935
|
}
|
|
21936
21936
|
}
|
|
21937
21937
|
|
|
21938
|
-
// bazel-out/
|
|
21938
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
21939
21939
|
var import_typescript32 = __toESM(require("typescript"), 1);
|
|
21940
21940
|
|
|
21941
|
-
// bazel-out/
|
|
21941
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/util.mjs
|
|
21942
21942
|
function isSymbolEqual(a, b) {
|
|
21943
21943
|
if (a.decl === b.decl) {
|
|
21944
21944
|
return true;
|
|
@@ -21988,7 +21988,7 @@ function isSetEqual(a, b, equalityTester = referenceEquality) {
|
|
|
21988
21988
|
return true;
|
|
21989
21989
|
}
|
|
21990
21990
|
|
|
21991
|
-
// bazel-out/
|
|
21991
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
21992
21992
|
function extractSemanticTypeParameters(node) {
|
|
21993
21993
|
if (!import_typescript32.default.isClassDeclaration(node) || node.typeParameters === void 0) {
|
|
21994
21994
|
return null;
|
|
@@ -22008,7 +22008,7 @@ function isTypeParameterEqual(a, b) {
|
|
|
22008
22008
|
return a.hasGenericTypeBound === b.hasGenericTypeBound;
|
|
22009
22009
|
}
|
|
22010
22010
|
|
|
22011
|
-
// bazel-out/
|
|
22011
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/api.mjs
|
|
22012
22012
|
var PerfPhase;
|
|
22013
22013
|
(function(PerfPhase2) {
|
|
22014
22014
|
PerfPhase2[PerfPhase2["Unaccounted"] = 0] = "Unaccounted";
|
|
@@ -22075,7 +22075,7 @@ var PerfCheckpoint;
|
|
|
22075
22075
|
PerfCheckpoint2[PerfCheckpoint2["LAST"] = 9] = "LAST";
|
|
22076
22076
|
})(PerfCheckpoint || (PerfCheckpoint = {}));
|
|
22077
22077
|
|
|
22078
|
-
// bazel-out/
|
|
22078
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/noop.mjs
|
|
22079
22079
|
var NoopPerfRecorder = class {
|
|
22080
22080
|
eventCount() {
|
|
22081
22081
|
}
|
|
@@ -22092,7 +22092,7 @@ var NoopPerfRecorder = class {
|
|
|
22092
22092
|
};
|
|
22093
22093
|
var NOOP_PERF_RECORDER = new NoopPerfRecorder();
|
|
22094
22094
|
|
|
22095
|
-
// bazel-out/
|
|
22095
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/clock.mjs
|
|
22096
22096
|
function mark() {
|
|
22097
22097
|
return process.hrtime();
|
|
22098
22098
|
}
|
|
@@ -22101,7 +22101,7 @@ function timeSinceInMicros(mark2) {
|
|
|
22101
22101
|
return delta[0] * 1e6 + Math.floor(delta[1] / 1e3);
|
|
22102
22102
|
}
|
|
22103
22103
|
|
|
22104
|
-
// bazel-out/
|
|
22104
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/recorder.mjs
|
|
22105
22105
|
var ActivePerfRecorder = class {
|
|
22106
22106
|
static zeroedToNow() {
|
|
22107
22107
|
return new ActivePerfRecorder(mark());
|
|
@@ -22195,14 +22195,14 @@ var DelegatingPerfRecorder = class {
|
|
|
22195
22195
|
}
|
|
22196
22196
|
};
|
|
22197
22197
|
|
|
22198
|
-
// bazel-out/
|
|
22198
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/api.mjs
|
|
22199
22199
|
var ComponentScopeKind;
|
|
22200
22200
|
(function(ComponentScopeKind2) {
|
|
22201
22201
|
ComponentScopeKind2[ComponentScopeKind2["NgModule"] = 0] = "NgModule";
|
|
22202
22202
|
ComponentScopeKind2[ComponentScopeKind2["Standalone"] = 1] = "Standalone";
|
|
22203
22203
|
})(ComponentScopeKind || (ComponentScopeKind = {}));
|
|
22204
22204
|
|
|
22205
|
-
// bazel-out/
|
|
22205
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/component_scope.mjs
|
|
22206
22206
|
var CompoundComponentScopeReader = class {
|
|
22207
22207
|
constructor(readers) {
|
|
22208
22208
|
this.readers = readers;
|
|
@@ -22227,7 +22227,7 @@ var CompoundComponentScopeReader = class {
|
|
|
22227
22227
|
}
|
|
22228
22228
|
};
|
|
22229
22229
|
|
|
22230
|
-
// bazel-out/
|
|
22230
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/dependency.mjs
|
|
22231
22231
|
var MetadataDtsModuleScopeResolver = class {
|
|
22232
22232
|
constructor(dtsMetaReader, aliasingHost) {
|
|
22233
22233
|
this.dtsMetaReader = dtsMetaReader;
|
|
@@ -22302,10 +22302,10 @@ var MetadataDtsModuleScopeResolver = class {
|
|
|
22302
22302
|
}
|
|
22303
22303
|
};
|
|
22304
22304
|
|
|
22305
|
-
// bazel-out/
|
|
22305
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
|
|
22306
22306
|
var import_typescript33 = __toESM(require("typescript"), 1);
|
|
22307
22307
|
|
|
22308
|
-
// bazel-out/
|
|
22308
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/util.mjs
|
|
22309
22309
|
function getDiagnosticNode(ref, rawExpr) {
|
|
22310
22310
|
return rawExpr !== null ? ref.getOriginForDiagnostics(rawExpr) : ref.node.name;
|
|
22311
22311
|
}
|
|
@@ -22314,8 +22314,8 @@ function makeNotStandaloneDiagnostic(scopeReader, ref, rawExpr, kind) {
|
|
|
22314
22314
|
let message = `The ${kind} '${ref.node.name.text}' appears in 'imports', but is not standalone and cannot be imported directly.`;
|
|
22315
22315
|
let relatedInformation = void 0;
|
|
22316
22316
|
if (scope !== null && scope.kind === ComponentScopeKind.NgModule) {
|
|
22317
|
-
const
|
|
22318
|
-
const relatedInfoMessageText =
|
|
22317
|
+
const isExported4 = scope.exported.dependencies.some((dep) => dep.ref.node === ref.node);
|
|
22318
|
+
const relatedInfoMessageText = isExported4 ? `It can be imported using its '${scope.ngModule.name.text}' NgModule instead.` : `It's declared in the '${scope.ngModule.name.text}' NgModule, but is not exported. Consider exporting it and importing the NgModule instead.`;
|
|
22319
22319
|
relatedInformation = [makeRelatedInformation(scope.ngModule.name, relatedInfoMessageText)];
|
|
22320
22320
|
} else {
|
|
22321
22321
|
}
|
|
@@ -22328,7 +22328,7 @@ function makeUnknownComponentImportDiagnostic(ref, rawExpr) {
|
|
|
22328
22328
|
return makeDiagnostic(ErrorCode.COMPONENT_UNKNOWN_IMPORT, getDiagnosticNode(ref, rawExpr), `Component imports must be standalone components, directives, pipes, or must be NgModules.`);
|
|
22329
22329
|
}
|
|
22330
22330
|
|
|
22331
|
-
// bazel-out/
|
|
22331
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
|
|
22332
22332
|
var LocalModuleScopeRegistry = class {
|
|
22333
22333
|
constructor(localReader, fullReader, dependencyScopeReader, refEmitter, aliasingHost) {
|
|
22334
22334
|
this.localReader = localReader;
|
|
@@ -22667,7 +22667,7 @@ function reexportCollision(module3, refA, refB) {
|
|
|
22667
22667
|
]);
|
|
22668
22668
|
}
|
|
22669
22669
|
|
|
22670
|
-
// bazel-out/
|
|
22670
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/typecheck.mjs
|
|
22671
22671
|
var import_typescript35 = __toESM(require("typescript"), 1);
|
|
22672
22672
|
var TypeCheckScopeRegistry = class {
|
|
22673
22673
|
constructor(scopeReader, metaReader, hostDirectivesResolver) {
|
|
@@ -22735,7 +22735,7 @@ var TypeCheckScopeRegistry = class {
|
|
|
22735
22735
|
}
|
|
22736
22736
|
};
|
|
22737
22737
|
|
|
22738
|
-
// bazel-out/
|
|
22738
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/api.mjs
|
|
22739
22739
|
var CompilationMode;
|
|
22740
22740
|
(function(CompilationMode2) {
|
|
22741
22741
|
CompilationMode2[CompilationMode2["FULL"] = 0] = "FULL";
|
|
@@ -22753,7 +22753,7 @@ var HandlerFlags;
|
|
|
22753
22753
|
HandlerFlags2[HandlerFlags2["FULL_INHERITANCE"] = 1] = "FULL_INHERITANCE";
|
|
22754
22754
|
})(HandlerFlags || (HandlerFlags = {}));
|
|
22755
22755
|
|
|
22756
|
-
// bazel-out/
|
|
22756
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/alias.mjs
|
|
22757
22757
|
var import_typescript36 = __toESM(require("typescript"), 1);
|
|
22758
22758
|
function aliasTransformFactory(exportStatements) {
|
|
22759
22759
|
return () => {
|
|
@@ -22776,10 +22776,10 @@ function aliasTransformFactory(exportStatements) {
|
|
|
22776
22776
|
};
|
|
22777
22777
|
}
|
|
22778
22778
|
|
|
22779
|
-
// bazel-out/
|
|
22779
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
22780
22780
|
var import_typescript37 = __toESM(require("typescript"), 1);
|
|
22781
22781
|
|
|
22782
|
-
// bazel-out/
|
|
22782
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/trait.mjs
|
|
22783
22783
|
var TraitState;
|
|
22784
22784
|
(function(TraitState2) {
|
|
22785
22785
|
TraitState2[TraitState2["Pending"] = 0] = "Pending";
|
|
@@ -22834,7 +22834,7 @@ var TraitImpl = class {
|
|
|
22834
22834
|
}
|
|
22835
22835
|
};
|
|
22836
22836
|
|
|
22837
|
-
// bazel-out/
|
|
22837
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
22838
22838
|
var TraitCompiler = class {
|
|
22839
22839
|
constructor(handlers, reflector, perf, incrementalBuild, compileNonExportedClasses, compilationMode, dtsTransforms, semanticDepGraphUpdater, sourceFileTypeIdentifier) {
|
|
22840
22840
|
this.handlers = handlers;
|
|
@@ -23278,10 +23278,10 @@ function containsErrors(diagnostics) {
|
|
|
23278
23278
|
return diagnostics !== null && diagnostics.some((diag) => diag.category === import_typescript37.default.DiagnosticCategory.Error);
|
|
23279
23279
|
}
|
|
23280
23280
|
|
|
23281
|
-
// bazel-out/
|
|
23281
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
|
|
23282
23282
|
var import_typescript44 = __toESM(require("typescript"), 1);
|
|
23283
23283
|
|
|
23284
|
-
// bazel-out/
|
|
23284
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/context.mjs
|
|
23285
23285
|
var Context = class {
|
|
23286
23286
|
constructor(isStatement) {
|
|
23287
23287
|
this.isStatement = isStatement;
|
|
@@ -23294,7 +23294,7 @@ var Context = class {
|
|
|
23294
23294
|
}
|
|
23295
23295
|
};
|
|
23296
23296
|
|
|
23297
|
-
// bazel-out/
|
|
23297
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager.mjs
|
|
23298
23298
|
var import_typescript39 = __toESM(require("typescript"), 1);
|
|
23299
23299
|
var ImportManager = class {
|
|
23300
23300
|
constructor(rewriter = new NoopImportRewriter(), prefix = "i") {
|
|
@@ -23330,7 +23330,7 @@ var ImportManager = class {
|
|
|
23330
23330
|
}
|
|
23331
23331
|
};
|
|
23332
23332
|
|
|
23333
|
-
// bazel-out/
|
|
23333
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/translator.mjs
|
|
23334
23334
|
var UNARY_OPERATORS2 = /* @__PURE__ */ new Map([
|
|
23335
23335
|
[UnaryOperator.Minus, "-"],
|
|
23336
23336
|
[UnaryOperator.Plus, "+"]
|
|
@@ -23561,10 +23561,10 @@ function createRange(span) {
|
|
|
23561
23561
|
};
|
|
23562
23562
|
}
|
|
23563
23563
|
|
|
23564
|
-
// bazel-out/
|
|
23564
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
|
|
23565
23565
|
var import_typescript41 = __toESM(require("typescript"), 1);
|
|
23566
23566
|
|
|
23567
|
-
// bazel-out/
|
|
23567
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/ts_compatibility/src/ts_cross_version_utils.mjs
|
|
23568
23568
|
var import_typescript40 = __toESM(require("typescript"), 1);
|
|
23569
23569
|
var IS_AFTER_TS_49 = isAfterVersion(4, 9);
|
|
23570
23570
|
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);
|
|
@@ -23594,7 +23594,7 @@ function isAfterVersion(targetMajor, targetMinor) {
|
|
|
23594
23594
|
return major === targetMajor ? minor >= targetMinor : true;
|
|
23595
23595
|
}
|
|
23596
23596
|
|
|
23597
|
-
// bazel-out/
|
|
23597
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
|
|
23598
23598
|
function translateType(type, imports) {
|
|
23599
23599
|
return type.visitType(new TypeTranslatorVisitor(imports), new Context(false));
|
|
23600
23600
|
}
|
|
@@ -23768,7 +23768,7 @@ var TypeTranslatorVisitor = class {
|
|
|
23768
23768
|
}
|
|
23769
23769
|
};
|
|
23770
23770
|
|
|
23771
|
-
// bazel-out/
|
|
23771
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_ast_factory.mjs
|
|
23772
23772
|
var import_typescript42 = __toESM(require("typescript"), 1);
|
|
23773
23773
|
var PureAnnotation;
|
|
23774
23774
|
(function(PureAnnotation2) {
|
|
@@ -23951,7 +23951,7 @@ function attachComments(statement, leadingComments) {
|
|
|
23951
23951
|
}
|
|
23952
23952
|
}
|
|
23953
23953
|
|
|
23954
|
-
// bazel-out/
|
|
23954
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_translator.mjs
|
|
23955
23955
|
function translateExpression(expression, imports, options = {}) {
|
|
23956
23956
|
return expression.visitExpression(new ExpressionTranslatorVisitor(new TypeScriptAstFactory(options.annotateForClosureCompiler === true), imports, options), new Context(false));
|
|
23957
23957
|
}
|
|
@@ -23959,7 +23959,7 @@ function translateStatement(statement, imports, options = {}) {
|
|
|
23959
23959
|
return statement.visitStatement(new ExpressionTranslatorVisitor(new TypeScriptAstFactory(options.annotateForClosureCompiler === true), imports, options), new Context(true));
|
|
23960
23960
|
}
|
|
23961
23961
|
|
|
23962
|
-
// bazel-out/
|
|
23962
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/utils.mjs
|
|
23963
23963
|
var import_typescript43 = __toESM(require("typescript"), 1);
|
|
23964
23964
|
function addImports(importManager, sf, extraStatements = []) {
|
|
23965
23965
|
const addedImports = importManager.getAllImports(sf.fileName).map((i) => {
|
|
@@ -23995,7 +23995,7 @@ function isImportStatement(stmt) {
|
|
|
23995
23995
|
return import_typescript43.default.isImportDeclaration(stmt) || import_typescript43.default.isImportEqualsDeclaration(stmt) || import_typescript43.default.isNamespaceImport(stmt);
|
|
23996
23996
|
}
|
|
23997
23997
|
|
|
23998
|
-
// bazel-out/
|
|
23998
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
|
|
23999
23999
|
var DtsTransformRegistry = class {
|
|
24000
24000
|
constructor() {
|
|
24001
24001
|
this.ivyDeclarationTransforms = /* @__PURE__ */ new Map();
|
|
@@ -24140,10 +24140,10 @@ function markForEmitAsSingleLine(node) {
|
|
|
24140
24140
|
import_typescript44.default.forEachChild(node, markForEmitAsSingleLine);
|
|
24141
24141
|
}
|
|
24142
24142
|
|
|
24143
|
-
// bazel-out/
|
|
24143
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
24144
24144
|
var import_typescript46 = __toESM(require("typescript"), 1);
|
|
24145
24145
|
|
|
24146
|
-
// bazel-out/
|
|
24146
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/visitor.mjs
|
|
24147
24147
|
var import_typescript45 = __toESM(require("typescript"), 1);
|
|
24148
24148
|
function visit(node, visitor, context) {
|
|
24149
24149
|
return visitor._visit(node, context);
|
|
@@ -24204,7 +24204,7 @@ var Visitor = class {
|
|
|
24204
24204
|
}
|
|
24205
24205
|
};
|
|
24206
24206
|
|
|
24207
|
-
// bazel-out/
|
|
24207
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
24208
24208
|
var NO_DECORATORS = /* @__PURE__ */ new Set();
|
|
24209
24209
|
var CLOSURE_FILE_OVERVIEW_REGEXP = /\s+@fileoverview\s+/i;
|
|
24210
24210
|
function ivyTransformFactory(compilation, reflector, importRewriter, defaultImportTracker, perf, isCore, isClosureCompilerEnabled) {
|
|
@@ -24412,7 +24412,7 @@ function nodeArrayFromDecoratorsArray(decorators) {
|
|
|
24412
24412
|
return array;
|
|
24413
24413
|
}
|
|
24414
24414
|
|
|
24415
|
-
// bazel-out/
|
|
24415
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
|
|
24416
24416
|
var import_typescript47 = __toESM(require("typescript"), 1);
|
|
24417
24417
|
var EMPTY_OBJECT = {};
|
|
24418
24418
|
var QUERY_TYPES = /* @__PURE__ */ new Set([
|
|
@@ -24828,7 +24828,7 @@ function toHostDirectiveMetadata(hostDirective, context, refEmitter) {
|
|
|
24828
24828
|
};
|
|
24829
24829
|
}
|
|
24830
24830
|
|
|
24831
|
-
// bazel-out/
|
|
24831
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/symbol.mjs
|
|
24832
24832
|
var DirectiveSymbol = class extends SemanticSymbol {
|
|
24833
24833
|
constructor(decl, selector, inputs, outputs, exportAs, typeCheckMeta, typeParameters) {
|
|
24834
24834
|
super(decl);
|
|
@@ -24905,7 +24905,7 @@ function isBaseClassEqual(current, previous) {
|
|
|
24905
24905
|
return isSymbolEqual(current, previous);
|
|
24906
24906
|
}
|
|
24907
24907
|
|
|
24908
|
-
// bazel-out/
|
|
24908
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
|
|
24909
24909
|
var FIELD_DECORATORS = [
|
|
24910
24910
|
"Input",
|
|
24911
24911
|
"Output",
|
|
@@ -25064,10 +25064,10 @@ var DirectiveDecoratorHandler = class {
|
|
|
25064
25064
|
}
|
|
25065
25065
|
};
|
|
25066
25066
|
|
|
25067
|
-
// bazel-out/
|
|
25067
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
25068
25068
|
var import_typescript49 = __toESM(require("typescript"), 1);
|
|
25069
25069
|
|
|
25070
|
-
// bazel-out/
|
|
25070
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/module_with_providers.mjs
|
|
25071
25071
|
var import_typescript48 = __toESM(require("typescript"), 1);
|
|
25072
25072
|
function createModuleWithProvidersResolver(reflector, isCore) {
|
|
25073
25073
|
function _reflectModuleFromTypeParam(type, node) {
|
|
@@ -25134,7 +25134,7 @@ function isResolvedModuleWithProviders(sv) {
|
|
|
25134
25134
|
return typeof sv.value === "object" && sv.value != null && sv.value.hasOwnProperty("ngModule") && sv.value.hasOwnProperty("mwpCall");
|
|
25135
25135
|
}
|
|
25136
25136
|
|
|
25137
|
-
// bazel-out/
|
|
25137
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
25138
25138
|
var NgModuleSymbol = class extends SemanticSymbol {
|
|
25139
25139
|
constructor() {
|
|
25140
25140
|
super(...arguments);
|
|
@@ -25636,7 +25636,7 @@ function isSyntheticReference(ref) {
|
|
|
25636
25636
|
return ref.synthetic;
|
|
25637
25637
|
}
|
|
25638
25638
|
|
|
25639
|
-
// bazel-out/
|
|
25639
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/diagnostics.mjs
|
|
25640
25640
|
function makeCyclicImportInfo(ref, type, cycle) {
|
|
25641
25641
|
const name = ref.debugName || "(unknown)";
|
|
25642
25642
|
const path3 = cycle.getPath().map((sf) => sf.fileName).join(" -> ");
|
|
@@ -25659,7 +25659,7 @@ function checkCustomElementSelectorForErrors(selector) {
|
|
|
25659
25659
|
return null;
|
|
25660
25660
|
}
|
|
25661
25661
|
|
|
25662
|
-
// bazel-out/
|
|
25662
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/resources.mjs
|
|
25663
25663
|
var import_typescript51 = __toESM(require("typescript"), 1);
|
|
25664
25664
|
function getTemplateDeclarationNodeForError(declaration) {
|
|
25665
25665
|
switch (declaration.isInline) {
|
|
@@ -25968,7 +25968,7 @@ function _extractTemplateStyleUrls(template) {
|
|
|
25968
25968
|
return template.styleUrls.map((url) => ({ url, source: 1, nodeForError }));
|
|
25969
25969
|
}
|
|
25970
25970
|
|
|
25971
|
-
// bazel-out/
|
|
25971
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/symbol.mjs
|
|
25972
25972
|
var ComponentSymbol = class extends DirectiveSymbol {
|
|
25973
25973
|
constructor() {
|
|
25974
25974
|
super(...arguments);
|
|
@@ -26003,7 +26003,7 @@ var ComponentSymbol = class extends DirectiveSymbol {
|
|
|
26003
26003
|
}
|
|
26004
26004
|
};
|
|
26005
26005
|
|
|
26006
|
-
// bazel-out/
|
|
26006
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/util.mjs
|
|
26007
26007
|
function collectAnimationNames(value, animationTriggerNames) {
|
|
26008
26008
|
if (value instanceof Map) {
|
|
26009
26009
|
const name = value.get("name");
|
|
@@ -26079,7 +26079,7 @@ function isLikelyModuleWithProviders(value) {
|
|
|
26079
26079
|
return false;
|
|
26080
26080
|
}
|
|
26081
26081
|
|
|
26082
|
-
// bazel-out/
|
|
26082
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
26083
26083
|
var EMPTY_ARRAY2 = [];
|
|
26084
26084
|
var ComponentDecoratorHandler = class {
|
|
26085
26085
|
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) {
|
|
@@ -26722,7 +26722,7 @@ function validateStandaloneImports(importRefs, importExpr2, metaReader, scopeRea
|
|
|
26722
26722
|
return diagnostics;
|
|
26723
26723
|
}
|
|
26724
26724
|
|
|
26725
|
-
// bazel-out/
|
|
26725
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
|
|
26726
26726
|
var import_typescript54 = __toESM(require("typescript"), 1);
|
|
26727
26727
|
var InjectableDecoratorHandler = class {
|
|
26728
26728
|
constructor(reflector, evaluator, isCore, strictCtorDeps, injectableRegistry, perf, errorOnDuplicateProv = true) {
|
|
@@ -26938,7 +26938,7 @@ function getDep(dep, reflector) {
|
|
|
26938
26938
|
return meta;
|
|
26939
26939
|
}
|
|
26940
26940
|
|
|
26941
|
-
// bazel-out/
|
|
26941
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
|
|
26942
26942
|
var import_typescript55 = __toESM(require("typescript"), 1);
|
|
26943
26943
|
var PipeSymbol = class extends SemanticSymbol {
|
|
26944
26944
|
constructor(decl, name) {
|
|
@@ -27083,7 +27083,7 @@ var PipeDecoratorHandler = class {
|
|
|
27083
27083
|
}
|
|
27084
27084
|
};
|
|
27085
27085
|
|
|
27086
|
-
// bazel-out/
|
|
27086
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
|
|
27087
27087
|
var CycleAnalyzer = class {
|
|
27088
27088
|
constructor(importGraph) {
|
|
27089
27089
|
this.importGraph = importGraph;
|
|
@@ -27154,7 +27154,7 @@ var Cycle = class {
|
|
|
27154
27154
|
}
|
|
27155
27155
|
};
|
|
27156
27156
|
|
|
27157
|
-
// bazel-out/
|
|
27157
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/imports.mjs
|
|
27158
27158
|
var import_typescript56 = __toESM(require("typescript"), 1);
|
|
27159
27159
|
var ImportGraph = class {
|
|
27160
27160
|
constructor(checker, perf) {
|
|
@@ -27246,7 +27246,7 @@ var Found = class {
|
|
|
27246
27246
|
}
|
|
27247
27247
|
};
|
|
27248
27248
|
|
|
27249
|
-
// bazel-out/
|
|
27249
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
|
|
27250
27250
|
var import_typescript57 = __toESM(require("typescript"), 1);
|
|
27251
27251
|
var FlatIndexGenerator = class {
|
|
27252
27252
|
constructor(entryPoint, relativeFlatIndexPath, moduleName) {
|
|
@@ -27271,7 +27271,7 @@ export * from '${relativeEntryPoint}';
|
|
|
27271
27271
|
}
|
|
27272
27272
|
};
|
|
27273
27273
|
|
|
27274
|
-
// bazel-out/
|
|
27274
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/logic.mjs
|
|
27275
27275
|
function findFlatIndexEntryPoint(rootFiles) {
|
|
27276
27276
|
const tsFiles = rootFiles.filter((file) => isNonDeclarationTsPath(file));
|
|
27277
27277
|
let resolvedEntryPoint = null;
|
|
@@ -27287,7 +27287,7 @@ function findFlatIndexEntryPoint(rootFiles) {
|
|
|
27287
27287
|
return resolvedEntryPoint;
|
|
27288
27288
|
}
|
|
27289
27289
|
|
|
27290
|
-
// bazel-out/
|
|
27290
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
|
|
27291
27291
|
var import_typescript59 = __toESM(require("typescript"), 1);
|
|
27292
27292
|
function checkForPrivateExports(entryPoint, checker, refGraph) {
|
|
27293
27293
|
const diagnostics = [];
|
|
@@ -27367,7 +27367,7 @@ function getDescriptorOfDeclaration(decl) {
|
|
|
27367
27367
|
}
|
|
27368
27368
|
}
|
|
27369
27369
|
|
|
27370
|
-
// bazel-out/
|
|
27370
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/reference_graph.mjs
|
|
27371
27371
|
var ReferenceGraph = class {
|
|
27372
27372
|
constructor() {
|
|
27373
27373
|
this.references = /* @__PURE__ */ new Map();
|
|
@@ -27421,7 +27421,7 @@ var ReferenceGraph = class {
|
|
|
27421
27421
|
}
|
|
27422
27422
|
};
|
|
27423
27423
|
|
|
27424
|
-
// bazel-out/
|
|
27424
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/api.mjs
|
|
27425
27425
|
var NgOriginalFile = Symbol("NgOriginalFile");
|
|
27426
27426
|
var UpdateMode;
|
|
27427
27427
|
(function(UpdateMode2) {
|
|
@@ -27429,13 +27429,13 @@ var UpdateMode;
|
|
|
27429
27429
|
UpdateMode2[UpdateMode2["Incremental"] = 1] = "Incremental";
|
|
27430
27430
|
})(UpdateMode || (UpdateMode = {}));
|
|
27431
27431
|
|
|
27432
|
-
// bazel-out/
|
|
27432
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
|
|
27433
27433
|
var import_typescript65 = __toESM(require("typescript"), 1);
|
|
27434
27434
|
|
|
27435
|
-
// bazel-out/
|
|
27435
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
27436
27436
|
var import_typescript60 = __toESM(require("typescript"), 1);
|
|
27437
27437
|
|
|
27438
|
-
// bazel-out/
|
|
27438
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/expando.mjs
|
|
27439
27439
|
var NgExtension = Symbol("NgExtension");
|
|
27440
27440
|
function isExtended(sf) {
|
|
27441
27441
|
return sf[NgExtension] !== void 0;
|
|
@@ -27495,7 +27495,7 @@ function retagTsFile(sf) {
|
|
|
27495
27495
|
}
|
|
27496
27496
|
}
|
|
27497
27497
|
|
|
27498
|
-
// bazel-out/
|
|
27498
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/util.mjs
|
|
27499
27499
|
var TS_EXTENSIONS = /\.tsx?$/i;
|
|
27500
27500
|
function makeShimFileName(fileName, suffix) {
|
|
27501
27501
|
return absoluteFrom(fileName.replace(TS_EXTENSIONS, suffix));
|
|
@@ -27510,7 +27510,7 @@ function generatedModuleName(originalModuleName, originalFileName, genSuffix) {
|
|
|
27510
27510
|
return moduleName;
|
|
27511
27511
|
}
|
|
27512
27512
|
|
|
27513
|
-
// bazel-out/
|
|
27513
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
27514
27514
|
var ShimAdapter = class {
|
|
27515
27515
|
constructor(delegate, tsRootFiles, topLevelGenerators, perFileGenerators, oldProgram) {
|
|
27516
27516
|
this.delegate = delegate;
|
|
@@ -27605,7 +27605,7 @@ var ShimAdapter = class {
|
|
|
27605
27605
|
}
|
|
27606
27606
|
};
|
|
27607
27607
|
|
|
27608
|
-
// bazel-out/
|
|
27608
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/factory_generator.mjs
|
|
27609
27609
|
var import_typescript62 = __toESM(require("typescript"), 1);
|
|
27610
27610
|
var TS_DTS_SUFFIX = /(\.d)?\.ts$/;
|
|
27611
27611
|
var STRIP_NG_FACTORY = /(.*)NgFactory$/;
|
|
@@ -27765,7 +27765,7 @@ function updateInitializers(stmt, update) {
|
|
|
27765
27765
|
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)))));
|
|
27766
27766
|
}
|
|
27767
27767
|
|
|
27768
|
-
// bazel-out/
|
|
27768
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
|
|
27769
27769
|
var ShimReferenceTagger = class {
|
|
27770
27770
|
constructor(shimExtensions) {
|
|
27771
27771
|
this.tagged = /* @__PURE__ */ new Set();
|
|
@@ -27799,7 +27799,7 @@ var ShimReferenceTagger = class {
|
|
|
27799
27799
|
}
|
|
27800
27800
|
};
|
|
27801
27801
|
|
|
27802
|
-
// bazel-out/
|
|
27802
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/summary_generator.mjs
|
|
27803
27803
|
var import_typescript64 = __toESM(require("typescript"), 1);
|
|
27804
27804
|
var SummaryGenerator = class {
|
|
27805
27805
|
constructor() {
|
|
@@ -27840,7 +27840,7 @@ function isExported2(decl) {
|
|
|
27840
27840
|
return modifiers !== void 0 && modifiers.some((mod) => mod.kind == import_typescript64.default.SyntaxKind.ExportKeyword) || false;
|
|
27841
27841
|
}
|
|
27842
27842
|
|
|
27843
|
-
// bazel-out/
|
|
27843
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
|
|
27844
27844
|
var DelegatingCompilerHost = class {
|
|
27845
27845
|
constructor(delegate) {
|
|
27846
27846
|
this.delegate = delegate;
|
|
@@ -27951,7 +27951,7 @@ var TsCreateProgramDriver = class {
|
|
|
27951
27951
|
}
|
|
27952
27952
|
};
|
|
27953
27953
|
|
|
27954
|
-
// bazel-out/
|
|
27954
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.mjs
|
|
27955
27955
|
var FileDependencyGraph = class {
|
|
27956
27956
|
constructor() {
|
|
27957
27957
|
this.nodes = /* @__PURE__ */ new Map();
|
|
@@ -28018,7 +28018,7 @@ function isLogicallyChanged(sf, node, changedTsPaths, deletedTsPaths, changedRes
|
|
|
28018
28018
|
return false;
|
|
28019
28019
|
}
|
|
28020
28020
|
|
|
28021
|
-
// bazel-out/
|
|
28021
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
|
|
28022
28022
|
var IncrementalStateKind;
|
|
28023
28023
|
(function(IncrementalStateKind2) {
|
|
28024
28024
|
IncrementalStateKind2[IncrementalStateKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -28026,7 +28026,7 @@ var IncrementalStateKind;
|
|
|
28026
28026
|
IncrementalStateKind2[IncrementalStateKind2["Analyzed"] = 2] = "Analyzed";
|
|
28027
28027
|
})(IncrementalStateKind || (IncrementalStateKind = {}));
|
|
28028
28028
|
|
|
28029
|
-
// bazel-out/
|
|
28029
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
|
|
28030
28030
|
var PhaseKind;
|
|
28031
28031
|
(function(PhaseKind2) {
|
|
28032
28032
|
PhaseKind2[PhaseKind2["Analysis"] = 0] = "Analysis";
|
|
@@ -28227,7 +28227,7 @@ function toOriginalSourceFile(sf) {
|
|
|
28227
28227
|
}
|
|
28228
28228
|
}
|
|
28229
28229
|
|
|
28230
|
-
// bazel-out/
|
|
28230
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
|
|
28231
28231
|
var TrackedIncrementalBuildStrategy = class {
|
|
28232
28232
|
constructor() {
|
|
28233
28233
|
this.state = null;
|
|
@@ -28248,7 +28248,7 @@ var TrackedIncrementalBuildStrategy = class {
|
|
|
28248
28248
|
};
|
|
28249
28249
|
var SYM_INCREMENTAL_STATE = Symbol("NgIncrementalState");
|
|
28250
28250
|
|
|
28251
|
-
// bazel-out/
|
|
28251
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
|
|
28252
28252
|
var IdentifierKind;
|
|
28253
28253
|
(function(IdentifierKind2) {
|
|
28254
28254
|
IdentifierKind2[IdentifierKind2["Property"] = 0] = "Property";
|
|
@@ -28266,7 +28266,7 @@ var AbsoluteSourceSpan2 = class {
|
|
|
28266
28266
|
}
|
|
28267
28267
|
};
|
|
28268
28268
|
|
|
28269
|
-
// bazel-out/
|
|
28269
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/context.mjs
|
|
28270
28270
|
var IndexingContext = class {
|
|
28271
28271
|
constructor() {
|
|
28272
28272
|
this.components = /* @__PURE__ */ new Set();
|
|
@@ -28276,7 +28276,7 @@ var IndexingContext = class {
|
|
|
28276
28276
|
}
|
|
28277
28277
|
};
|
|
28278
28278
|
|
|
28279
|
-
// bazel-out/
|
|
28279
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
|
|
28280
28280
|
var ExpressionVisitor = class extends RecursiveAstVisitor {
|
|
28281
28281
|
constructor(expressionStr, absoluteOffset, boundTemplate, targetToIdentifier) {
|
|
28282
28282
|
super();
|
|
@@ -28512,7 +28512,7 @@ function getTemplateIdentifiers(boundTemplate) {
|
|
|
28512
28512
|
return { identifiers: visitor.identifiers, errors: visitor.errors };
|
|
28513
28513
|
}
|
|
28514
28514
|
|
|
28515
|
-
// bazel-out/
|
|
28515
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
|
|
28516
28516
|
function generateAnalysis(context) {
|
|
28517
28517
|
const analysis = /* @__PURE__ */ new Map();
|
|
28518
28518
|
context.components.forEach(({ declaration, selector, boundTemplate, templateMeta }) => {
|
|
@@ -28548,7 +28548,7 @@ function generateAnalysis(context) {
|
|
|
28548
28548
|
return analysis;
|
|
28549
28549
|
}
|
|
28550
28550
|
|
|
28551
|
-
// bazel-out/
|
|
28551
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/ng_module_index.mjs
|
|
28552
28552
|
var NgModuleIndexImpl = class {
|
|
28553
28553
|
constructor(metaReader, localReader) {
|
|
28554
28554
|
this.metaReader = metaReader;
|
|
@@ -28637,7 +28637,7 @@ var NgModuleIndexImpl = class {
|
|
|
28637
28637
|
}
|
|
28638
28638
|
};
|
|
28639
28639
|
|
|
28640
|
-
// bazel-out/
|
|
28640
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
|
|
28641
28641
|
var import_typescript68 = __toESM(require("typescript"), 1);
|
|
28642
28642
|
var CSS_PREPROCESSOR_EXT = /(\.scss|\.sass|\.less|\.styl)$/;
|
|
28643
28643
|
var RESOURCE_MARKER = ".$ngresource$";
|
|
@@ -28785,7 +28785,7 @@ function createLookupResolutionHost(adapter) {
|
|
|
28785
28785
|
};
|
|
28786
28786
|
}
|
|
28787
28787
|
|
|
28788
|
-
// bazel-out/
|
|
28788
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/standalone.mjs
|
|
28789
28789
|
var StandaloneComponentScopeReader = class {
|
|
28790
28790
|
constructor(metaReader, localModuleReader, dtsModuleReader) {
|
|
28791
28791
|
this.metaReader = metaReader;
|
|
@@ -28863,21 +28863,21 @@ var StandaloneComponentScopeReader = class {
|
|
|
28863
28863
|
}
|
|
28864
28864
|
};
|
|
28865
28865
|
|
|
28866
|
-
// bazel-out/
|
|
28866
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/checker.mjs
|
|
28867
28867
|
var OptimizeFor;
|
|
28868
28868
|
(function(OptimizeFor2) {
|
|
28869
28869
|
OptimizeFor2[OptimizeFor2["SingleFile"] = 0] = "SingleFile";
|
|
28870
28870
|
OptimizeFor2[OptimizeFor2["WholeProgram"] = 1] = "WholeProgram";
|
|
28871
28871
|
})(OptimizeFor || (OptimizeFor = {}));
|
|
28872
28872
|
|
|
28873
|
-
// bazel-out/
|
|
28873
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/completion.mjs
|
|
28874
28874
|
var CompletionKind;
|
|
28875
28875
|
(function(CompletionKind2) {
|
|
28876
28876
|
CompletionKind2[CompletionKind2["Reference"] = 0] = "Reference";
|
|
28877
28877
|
CompletionKind2[CompletionKind2["Variable"] = 1] = "Variable";
|
|
28878
28878
|
})(CompletionKind || (CompletionKind = {}));
|
|
28879
28879
|
|
|
28880
|
-
// bazel-out/
|
|
28880
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/scope.mjs
|
|
28881
28881
|
var PotentialImportKind;
|
|
28882
28882
|
(function(PotentialImportKind2) {
|
|
28883
28883
|
PotentialImportKind2[PotentialImportKind2["NgModule"] = 0] = "NgModule";
|
|
@@ -28889,7 +28889,7 @@ var PotentialImportMode;
|
|
|
28889
28889
|
PotentialImportMode2[PotentialImportMode2["ForceDirect"] = 1] = "ForceDirect";
|
|
28890
28890
|
})(PotentialImportMode || (PotentialImportMode = {}));
|
|
28891
28891
|
|
|
28892
|
-
// bazel-out/
|
|
28892
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.mjs
|
|
28893
28893
|
var SymbolKind;
|
|
28894
28894
|
(function(SymbolKind2) {
|
|
28895
28895
|
SymbolKind2[SymbolKind2["Input"] = 0] = "Input";
|
|
@@ -28905,7 +28905,7 @@ var SymbolKind;
|
|
|
28905
28905
|
SymbolKind2[SymbolKind2["Pipe"] = 10] = "Pipe";
|
|
28906
28906
|
})(SymbolKind || (SymbolKind = {}));
|
|
28907
28907
|
|
|
28908
|
-
// bazel-out/
|
|
28908
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
|
|
28909
28909
|
var import_typescript69 = __toESM(require("typescript"), 1);
|
|
28910
28910
|
function makeTemplateDiagnostic(templateId, mapping, span, category, code, messageText, relatedMessages) {
|
|
28911
28911
|
var _a;
|
|
@@ -29012,7 +29012,7 @@ function parseTemplateAsSourceFile(fileName, template) {
|
|
|
29012
29012
|
return import_typescript69.default.createSourceFile(fileName, template, import_typescript69.default.ScriptTarget.Latest, false, import_typescript69.default.ScriptKind.JSX);
|
|
29013
29013
|
}
|
|
29014
29014
|
|
|
29015
|
-
// bazel-out/
|
|
29015
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
|
|
29016
29016
|
var TEMPLATE_ID = Symbol("ngTemplateId");
|
|
29017
29017
|
var NEXT_TEMPLATE_ID = Symbol("ngNextTemplateId");
|
|
29018
29018
|
function getTemplateId(clazz) {
|
|
@@ -29029,10 +29029,10 @@ function allocateTemplateId(sf) {
|
|
|
29029
29029
|
return `tcb${sf[NEXT_TEMPLATE_ID]++}`;
|
|
29030
29030
|
}
|
|
29031
29031
|
|
|
29032
|
-
// bazel-out/
|
|
29032
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
29033
29033
|
var import_typescript71 = __toESM(require("typescript"), 1);
|
|
29034
29034
|
|
|
29035
|
-
// bazel-out/
|
|
29035
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
|
|
29036
29036
|
var import_typescript70 = __toESM(require("typescript"), 1);
|
|
29037
29037
|
var parseSpanComment = /^(\d+),(\d+)$/;
|
|
29038
29038
|
function readSpanComment(node, sourceFile = node.getSourceFile()) {
|
|
@@ -29161,7 +29161,7 @@ function hasExpressionIdentifier(sourceFile, node, identifier) {
|
|
|
29161
29161
|
}) || false;
|
|
29162
29162
|
}
|
|
29163
29163
|
|
|
29164
|
-
// bazel-out/
|
|
29164
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
29165
29165
|
var CompletionEngine = class {
|
|
29166
29166
|
constructor(tcb, data, tcbPath, tcbIsShim) {
|
|
29167
29167
|
this.tcb = tcb;
|
|
@@ -29318,10 +29318,10 @@ var CompletionEngine = class {
|
|
|
29318
29318
|
}
|
|
29319
29319
|
};
|
|
29320
29320
|
|
|
29321
|
-
// bazel-out/
|
|
29321
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
29322
29322
|
var import_typescript86 = __toESM(require("typescript"), 1);
|
|
29323
29323
|
|
|
29324
|
-
// bazel-out/
|
|
29324
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
|
|
29325
29325
|
var import_typescript72 = __toESM(require("typescript"), 1);
|
|
29326
29326
|
var REGISTRY = new DomElementSchemaRegistry();
|
|
29327
29327
|
var REMOVE_XHTML_REGEX = /^:xhtml:/;
|
|
@@ -29373,10 +29373,10 @@ var RegistryDomSchemaChecker = class {
|
|
|
29373
29373
|
}
|
|
29374
29374
|
};
|
|
29375
29375
|
|
|
29376
|
-
// bazel-out/
|
|
29376
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
29377
29377
|
var import_typescript79 = __toESM(require("typescript"), 1);
|
|
29378
29378
|
|
|
29379
|
-
// bazel-out/
|
|
29379
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
|
|
29380
29380
|
var import_typescript73 = __toESM(require("typescript"), 1);
|
|
29381
29381
|
var SAFE_TO_CAST_WITHOUT_PARENS = /* @__PURE__ */ new Set([
|
|
29382
29382
|
import_typescript73.default.SyntaxKind.ParenthesizedExpression,
|
|
@@ -29450,16 +29450,16 @@ function isAccessExpression(node) {
|
|
|
29450
29450
|
return import_typescript73.default.isPropertyAccessExpression(node) || import_typescript73.default.isElementAccessExpression(node);
|
|
29451
29451
|
}
|
|
29452
29452
|
|
|
29453
|
-
// bazel-out/
|
|
29453
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
29454
29454
|
var import_typescript78 = __toESM(require("typescript"), 1);
|
|
29455
29455
|
|
|
29456
|
-
// bazel-out/
|
|
29456
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
29457
29457
|
var import_typescript76 = __toESM(require("typescript"), 1);
|
|
29458
29458
|
|
|
29459
|
-
// bazel-out/
|
|
29459
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
|
|
29460
29460
|
var import_typescript75 = __toESM(require("typescript"), 1);
|
|
29461
29461
|
|
|
29462
|
-
// bazel-out/
|
|
29462
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_emitter.mjs
|
|
29463
29463
|
var import_typescript74 = __toESM(require("typescript"), 1);
|
|
29464
29464
|
var INELIGIBLE = {};
|
|
29465
29465
|
function canEmitType(type, canEmit) {
|
|
@@ -29534,7 +29534,7 @@ var TypeEmitter = class {
|
|
|
29534
29534
|
}
|
|
29535
29535
|
};
|
|
29536
29536
|
|
|
29537
|
-
// bazel-out/
|
|
29537
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
|
|
29538
29538
|
var TypeParameterEmitter = class {
|
|
29539
29539
|
constructor(typeParameters, reflector) {
|
|
29540
29540
|
this.typeParameters = typeParameters;
|
|
@@ -29611,7 +29611,7 @@ var TypeParameterEmitter = class {
|
|
|
29611
29611
|
}
|
|
29612
29612
|
};
|
|
29613
29613
|
|
|
29614
|
-
// bazel-out/
|
|
29614
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
29615
29615
|
var TcbInliningRequirement;
|
|
29616
29616
|
(function(TcbInliningRequirement2) {
|
|
29617
29617
|
TcbInliningRequirement2[TcbInliningRequirement2["MustInline"] = 0] = "MustInline";
|
|
@@ -29691,7 +29691,7 @@ function checkIfGenericTypeBoundsCanBeEmitted(node, reflector, env) {
|
|
|
29691
29691
|
return emitter.canEmit((ref) => env.canReferenceType(ref));
|
|
29692
29692
|
}
|
|
29693
29693
|
|
|
29694
|
-
// bazel-out/
|
|
29694
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
29695
29695
|
function generateTypeCtorDeclarationFn(node, meta, nodeTypeRef, typeParams) {
|
|
29696
29696
|
const rawTypeArgs = typeParams !== void 0 ? generateGenericArgs(typeParams) : void 0;
|
|
29697
29697
|
const rawType = import_typescript78.default.factory.createTypeReferenceNode(nodeTypeRef, rawTypeArgs);
|
|
@@ -29803,7 +29803,7 @@ function typeParametersWithDefaultTypes(params) {
|
|
|
29803
29803
|
});
|
|
29804
29804
|
}
|
|
29805
29805
|
|
|
29806
|
-
// bazel-out/
|
|
29806
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
29807
29807
|
var Environment = class {
|
|
29808
29808
|
constructor(config, importManager, refEmitter, reflector, contextFile) {
|
|
29809
29809
|
this.config = config;
|
|
@@ -29895,7 +29895,7 @@ var Environment = class {
|
|
|
29895
29895
|
}
|
|
29896
29896
|
};
|
|
29897
29897
|
|
|
29898
|
-
// bazel-out/
|
|
29898
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
|
|
29899
29899
|
var import_typescript80 = __toESM(require("typescript"), 1);
|
|
29900
29900
|
var OutOfBandDiagnosticRecorderImpl = class {
|
|
29901
29901
|
constructor(resolver) {
|
|
@@ -30026,7 +30026,7 @@ function makeInlineDiagnostic(templateId, code, node, messageText, relatedInform
|
|
|
30026
30026
|
});
|
|
30027
30027
|
}
|
|
30028
30028
|
|
|
30029
|
-
// bazel-out/
|
|
30029
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
|
|
30030
30030
|
var import_typescript81 = __toESM(require("typescript"), 1);
|
|
30031
30031
|
var TypeCheckShimGenerator = class {
|
|
30032
30032
|
constructor() {
|
|
@@ -30044,10 +30044,10 @@ var TypeCheckShimGenerator = class {
|
|
|
30044
30044
|
}
|
|
30045
30045
|
};
|
|
30046
30046
|
|
|
30047
|
-
// bazel-out/
|
|
30047
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
30048
30048
|
var import_typescript84 = __toESM(require("typescript"), 1);
|
|
30049
30049
|
|
|
30050
|
-
// bazel-out/
|
|
30050
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
|
|
30051
30051
|
var import_typescript82 = __toESM(require("typescript"), 1);
|
|
30052
30052
|
function wrapForDiagnostics(expr) {
|
|
30053
30053
|
return import_typescript82.default.factory.createParenthesizedExpression(expr);
|
|
@@ -30092,7 +30092,7 @@ function translateDiagnostic(diagnostic, resolver) {
|
|
|
30092
30092
|
return makeTemplateDiagnostic(sourceLocation.id, templateSourceMapping, span, diagnostic.category, diagnostic.code, diagnostic.messageText);
|
|
30093
30093
|
}
|
|
30094
30094
|
|
|
30095
|
-
// bazel-out/
|
|
30095
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
|
|
30096
30096
|
var import_typescript83 = __toESM(require("typescript"), 1);
|
|
30097
30097
|
var NULL_AS_ANY = import_typescript83.default.factory.createAsExpression(import_typescript83.default.factory.createNull(), import_typescript83.default.factory.createKeywordTypeNode(import_typescript83.default.SyntaxKind.AnyKeyword));
|
|
30098
30098
|
var UNDEFINED = import_typescript83.default.factory.createIdentifier("undefined");
|
|
@@ -30421,7 +30421,7 @@ var VeSafeLhsInferenceBugDetector = class {
|
|
|
30421
30421
|
};
|
|
30422
30422
|
VeSafeLhsInferenceBugDetector.SINGLETON = new VeSafeLhsInferenceBugDetector();
|
|
30423
30423
|
|
|
30424
|
-
// bazel-out/
|
|
30424
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_semantics.mjs
|
|
30425
30425
|
var ExpressionSemanticVisitor = class extends RecursiveAstVisitor {
|
|
30426
30426
|
constructor(templateId, boundTarget, oob) {
|
|
30427
30427
|
super();
|
|
@@ -30444,7 +30444,7 @@ var ExpressionSemanticVisitor = class extends RecursiveAstVisitor {
|
|
|
30444
30444
|
}
|
|
30445
30445
|
};
|
|
30446
30446
|
|
|
30447
|
-
// bazel-out/
|
|
30447
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
30448
30448
|
var TcbGenericContextBehavior;
|
|
30449
30449
|
(function(TcbGenericContextBehavior2) {
|
|
30450
30450
|
TcbGenericContextBehavior2[TcbGenericContextBehavior2["UseEmitter"] = 0] = "UseEmitter";
|
|
@@ -31547,7 +31547,7 @@ var TcbEventHandlerTranslator = class extends TcbExpressionTranslator {
|
|
|
31547
31547
|
}
|
|
31548
31548
|
};
|
|
31549
31549
|
|
|
31550
|
-
// bazel-out/
|
|
31550
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
|
|
31551
31551
|
var import_typescript85 = __toESM(require("typescript"), 1);
|
|
31552
31552
|
var TypeCheckFile = class extends Environment {
|
|
31553
31553
|
constructor(fileName, config, refEmitter, reflector, compilerHost) {
|
|
@@ -31583,7 +31583,7 @@ var TypeCheckFile = class extends Environment {
|
|
|
31583
31583
|
}
|
|
31584
31584
|
};
|
|
31585
31585
|
|
|
31586
|
-
// bazel-out/
|
|
31586
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
31587
31587
|
var InliningMode;
|
|
31588
31588
|
(function(InliningMode2) {
|
|
31589
31589
|
InliningMode2[InliningMode2["InlineOps"] = 0] = "InlineOps";
|
|
@@ -31821,7 +31821,7 @@ function splitStringAtPoints(str, points) {
|
|
|
31821
31821
|
return splits;
|
|
31822
31822
|
}
|
|
31823
31823
|
|
|
31824
|
-
// bazel-out/
|
|
31824
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/line_mappings.mjs
|
|
31825
31825
|
var LF_CHAR = 10;
|
|
31826
31826
|
var CR_CHAR = 13;
|
|
31827
31827
|
var LINE_SEP_CHAR = 8232;
|
|
@@ -31862,7 +31862,7 @@ function findClosestLineStartPosition(linesMap, position, low = 0, high = linesM
|
|
|
31862
31862
|
return low - 1;
|
|
31863
31863
|
}
|
|
31864
31864
|
|
|
31865
|
-
// bazel-out/
|
|
31865
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
|
|
31866
31866
|
var TemplateSource = class {
|
|
31867
31867
|
constructor(mapping, file) {
|
|
31868
31868
|
this.mapping = mapping;
|
|
@@ -31913,7 +31913,7 @@ var TemplateSourceManager = class {
|
|
|
31913
31913
|
}
|
|
31914
31914
|
};
|
|
31915
31915
|
|
|
31916
|
-
// bazel-out/
|
|
31916
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
|
|
31917
31917
|
var import_typescript87 = __toESM(require("typescript"), 1);
|
|
31918
31918
|
var SymbolBuilder = class {
|
|
31919
31919
|
constructor(tcbPath, tcbIsShim, typeCheckBlock, templateData, componentScopeReader, getTypeChecker) {
|
|
@@ -32390,7 +32390,7 @@ function sourceSpanEqual(a, b) {
|
|
|
32390
32390
|
return a.start.offset === b.start.offset && a.end.offset === b.end.offset;
|
|
32391
32391
|
}
|
|
32392
32392
|
|
|
32393
|
-
// bazel-out/
|
|
32393
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
|
|
32394
32394
|
var REGISTRY2 = new DomElementSchemaRegistry();
|
|
32395
32395
|
var TemplateTypeCheckerImpl = class {
|
|
32396
32396
|
constructor(originalProgram, programDriver, typeCheckAdapter, config, refEmitter, reflector, compilerHost, priorBuild, metaReader, localMetaReader, ngModuleIndex, componentScopeReader, typeCheckScopeRegistry, perf) {
|
|
@@ -33074,7 +33074,7 @@ var SingleShimTypeCheckingHost = class extends SingleFileTypeCheckingHost {
|
|
|
33074
33074
|
}
|
|
33075
33075
|
};
|
|
33076
33076
|
|
|
33077
|
-
// bazel-out/
|
|
33077
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
|
|
33078
33078
|
var TemplateCheckWithVisitor = class {
|
|
33079
33079
|
run(ctx, component, template) {
|
|
33080
33080
|
const visitor = new TemplateVisitor2(ctx, component, this);
|
|
@@ -33150,7 +33150,7 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor {
|
|
|
33150
33150
|
}
|
|
33151
33151
|
};
|
|
33152
33152
|
|
|
33153
|
-
// bazel-out/
|
|
33153
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
|
|
33154
33154
|
var InvalidBananaInBoxCheck = class extends TemplateCheckWithVisitor {
|
|
33155
33155
|
constructor() {
|
|
33156
33156
|
super(...arguments);
|
|
@@ -33175,7 +33175,7 @@ var factory = {
|
|
|
33175
33175
|
create: () => new InvalidBananaInBoxCheck()
|
|
33176
33176
|
};
|
|
33177
33177
|
|
|
33178
|
-
// bazel-out/
|
|
33178
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.mjs
|
|
33179
33179
|
var KNOWN_CONTROL_FLOW_DIRECTIVES = /* @__PURE__ */ new Map([
|
|
33180
33180
|
["ngIf", "NgIf"],
|
|
33181
33181
|
["ngFor", "NgFor"],
|
|
@@ -33219,7 +33219,7 @@ var factory2 = {
|
|
|
33219
33219
|
}
|
|
33220
33220
|
};
|
|
33221
33221
|
|
|
33222
|
-
// bazel-out/
|
|
33222
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.mjs
|
|
33223
33223
|
var MissingNgForOfLetCheck = class extends TemplateCheckWithVisitor {
|
|
33224
33224
|
constructor() {
|
|
33225
33225
|
super(...arguments);
|
|
@@ -33251,7 +33251,7 @@ var factory3 = {
|
|
|
33251
33251
|
create: () => new MissingNgForOfLetCheck()
|
|
33252
33252
|
};
|
|
33253
33253
|
|
|
33254
|
-
// bazel-out/
|
|
33254
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
|
|
33255
33255
|
var import_typescript90 = __toESM(require("typescript"), 1);
|
|
33256
33256
|
var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
33257
33257
|
constructor() {
|
|
@@ -33295,7 +33295,7 @@ var factory4 = {
|
|
|
33295
33295
|
}
|
|
33296
33296
|
};
|
|
33297
33297
|
|
|
33298
|
-
// bazel-out/
|
|
33298
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.mjs
|
|
33299
33299
|
var import_typescript91 = __toESM(require("typescript"), 1);
|
|
33300
33300
|
var OptionalChainNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
33301
33301
|
constructor() {
|
|
@@ -33340,7 +33340,7 @@ var factory5 = {
|
|
|
33340
33340
|
}
|
|
33341
33341
|
};
|
|
33342
33342
|
|
|
33343
|
-
// bazel-out/
|
|
33343
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.mjs
|
|
33344
33344
|
var STYLE_SUFFIXES = ["px", "%", "em"];
|
|
33345
33345
|
var SuffixNotSupportedCheck = class extends TemplateCheckWithVisitor {
|
|
33346
33346
|
constructor() {
|
|
@@ -33363,7 +33363,7 @@ var factory6 = {
|
|
|
33363
33363
|
create: () => new SuffixNotSupportedCheck()
|
|
33364
33364
|
};
|
|
33365
33365
|
|
|
33366
|
-
// bazel-out/
|
|
33366
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.mjs
|
|
33367
33367
|
var TextAttributeNotBindingSpec = class extends TemplateCheckWithVisitor {
|
|
33368
33368
|
constructor() {
|
|
33369
33369
|
super(...arguments);
|
|
@@ -33401,10 +33401,10 @@ var factory7 = {
|
|
|
33401
33401
|
create: () => new TextAttributeNotBindingSpec()
|
|
33402
33402
|
};
|
|
33403
33403
|
|
|
33404
|
-
// bazel-out/
|
|
33404
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
33405
33405
|
var import_typescript92 = __toESM(require("typescript"), 1);
|
|
33406
33406
|
|
|
33407
|
-
// bazel-out/
|
|
33407
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
|
|
33408
33408
|
var DiagnosticCategoryLabel;
|
|
33409
33409
|
(function(DiagnosticCategoryLabel2) {
|
|
33410
33410
|
DiagnosticCategoryLabel2["Warning"] = "warning";
|
|
@@ -33412,7 +33412,7 @@ var DiagnosticCategoryLabel;
|
|
|
33412
33412
|
DiagnosticCategoryLabel2["Suppress"] = "suppress";
|
|
33413
33413
|
})(DiagnosticCategoryLabel || (DiagnosticCategoryLabel = {}));
|
|
33414
33414
|
|
|
33415
|
-
// bazel-out/
|
|
33415
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
33416
33416
|
var ExtendedTemplateCheckerImpl = class {
|
|
33417
33417
|
constructor(templateTypeChecker, typeChecker, templateCheckFactories, options) {
|
|
33418
33418
|
var _a, _b, _c, _d, _e;
|
|
@@ -33464,7 +33464,7 @@ function assertNever(value) {
|
|
|
33464
33464
|
${value}`);
|
|
33465
33465
|
}
|
|
33466
33466
|
|
|
33467
|
-
// bazel-out/
|
|
33467
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
|
|
33468
33468
|
var ALL_DIAGNOSTIC_FACTORIES = [
|
|
33469
33469
|
factory,
|
|
33470
33470
|
factory4,
|
|
@@ -33475,7 +33475,7 @@ var ALL_DIAGNOSTIC_FACTORIES = [
|
|
|
33475
33475
|
factory6
|
|
33476
33476
|
];
|
|
33477
33477
|
|
|
33478
|
-
// bazel-out/
|
|
33478
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
33479
33479
|
var CompilationTicketKind;
|
|
33480
33480
|
(function(CompilationTicketKind2) {
|
|
33481
33481
|
CompilationTicketKind2[CompilationTicketKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -34165,7 +34165,7 @@ function versionMapFromProgram(program, driver) {
|
|
|
34165
34165
|
return versions;
|
|
34166
34166
|
}
|
|
34167
34167
|
|
|
34168
|
-
// bazel-out/
|
|
34168
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
|
|
34169
34169
|
var import_typescript95 = __toESM(require("typescript"), 1);
|
|
34170
34170
|
var DelegatingCompilerHost2 = class {
|
|
34171
34171
|
constructor(delegate) {
|
|
@@ -34310,7 +34310,7 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
|
|
|
34310
34310
|
}
|
|
34311
34311
|
};
|
|
34312
34312
|
|
|
34313
|
-
// bazel-out/
|
|
34313
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
34314
34314
|
var NgtscProgram = class {
|
|
34315
34315
|
constructor(rootNames, options, delegateHost, oldProgram) {
|
|
34316
34316
|
this.options = options;
|
|
@@ -34528,25 +34528,25 @@ function mergeEmitResults(emitResults) {
|
|
|
34528
34528
|
return { diagnostics, emitSkipped, emittedFiles };
|
|
34529
34529
|
}
|
|
34530
34530
|
|
|
34531
|
-
// bazel-out/
|
|
34531
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
|
|
34532
34532
|
function createProgram({ rootNames, options, host, oldProgram }) {
|
|
34533
34533
|
return new NgtscProgram(rootNames, options, host, oldProgram);
|
|
34534
34534
|
}
|
|
34535
34535
|
|
|
34536
|
-
// bazel-out/
|
|
34536
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
34537
34537
|
var import_typescript99 = __toESM(require("typescript"), 1);
|
|
34538
34538
|
|
|
34539
|
-
// bazel-out/
|
|
34539
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
|
|
34540
34540
|
var import_typescript98 = __toESM(require("typescript"), 1);
|
|
34541
34541
|
|
|
34542
|
-
// bazel-out/
|
|
34542
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/downlevel_decorators_transform/downlevel_decorators_transform.mjs
|
|
34543
34543
|
var import_typescript101 = __toESM(require("typescript"), 1);
|
|
34544
34544
|
|
|
34545
|
-
// bazel-out/
|
|
34545
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/transformers/downlevel_decorators_transform/patch_alias_reference_resolution.mjs
|
|
34546
34546
|
var import_typescript100 = __toESM(require("typescript"), 1);
|
|
34547
34547
|
var patchedReferencedAliasesSymbol = Symbol("patchedReferencedAliases");
|
|
34548
34548
|
|
|
34549
|
-
// bazel-out/
|
|
34549
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/private/tooling.mjs
|
|
34550
34550
|
var GLOBAL_DEFS_FOR_TERSER = {
|
|
34551
34551
|
ngDevMode: false,
|
|
34552
34552
|
ngI18nClosureMode: false
|
|
@@ -34555,7 +34555,7 @@ var GLOBAL_DEFS_FOR_TERSER_WITH_AOT = __spreadProps(__spreadValues({}, GLOBAL_DE
|
|
|
34555
34555
|
ngJitMode: false
|
|
34556
34556
|
});
|
|
34557
34557
|
|
|
34558
|
-
// bazel-out/
|
|
34558
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/logging/src/logger.mjs
|
|
34559
34559
|
var LogLevel;
|
|
34560
34560
|
(function(LogLevel2) {
|
|
34561
34561
|
LogLevel2[LogLevel2["debug"] = 0] = "debug";
|
|
@@ -34564,7 +34564,7 @@ var LogLevel;
|
|
|
34564
34564
|
LogLevel2[LogLevel2["error"] = 3] = "error";
|
|
34565
34565
|
})(LogLevel || (LogLevel = {}));
|
|
34566
34566
|
|
|
34567
|
-
// bazel-out/
|
|
34567
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/logging/src/console_logger.mjs
|
|
34568
34568
|
var RESET = "\x1B[0m";
|
|
34569
34569
|
var RED = "\x1B[31m";
|
|
34570
34570
|
var YELLOW = "\x1B[33m";
|
|
@@ -34573,15 +34573,15 @@ var DEBUG = `${BLUE}Debug:${RESET}`;
|
|
|
34573
34573
|
var WARN = `${YELLOW}Warning:${RESET}`;
|
|
34574
34574
|
var ERROR = `${RED}Error:${RESET}`;
|
|
34575
34575
|
|
|
34576
|
-
// bazel-out/
|
|
34576
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/index.mjs
|
|
34577
34577
|
setFileSystem(new NodeJSFileSystem());
|
|
34578
34578
|
|
|
34579
|
-
// bazel-out/
|
|
34579
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/index.mjs
|
|
34580
34580
|
var import_fs2 = require("fs");
|
|
34581
|
-
var
|
|
34582
|
-
var
|
|
34581
|
+
var import_path8 = require("path");
|
|
34582
|
+
var import_typescript113 = __toESM(require("typescript"), 1);
|
|
34583
34583
|
|
|
34584
|
-
// bazel-out/
|
|
34584
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
|
|
34585
34585
|
var import_core13 = require("@angular-devkit/core");
|
|
34586
34586
|
function getProjectTsConfigPaths(tree) {
|
|
34587
34587
|
return __async(this, null, function* () {
|
|
@@ -34661,11 +34661,11 @@ function getWorkspace(tree) {
|
|
|
34661
34661
|
});
|
|
34662
34662
|
}
|
|
34663
34663
|
|
|
34664
|
-
// bazel-out/
|
|
34664
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
34665
34665
|
var import_path4 = require("path");
|
|
34666
34666
|
var import_typescript103 = __toESM(require("typescript"), 1);
|
|
34667
34667
|
|
|
34668
|
-
// bazel-out/
|
|
34668
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
|
|
34669
34669
|
var path2 = __toESM(require("path"), 1);
|
|
34670
34670
|
var import_typescript102 = __toESM(require("typescript"), 1);
|
|
34671
34671
|
function parseTsconfigFile(tsconfigPath, basePath) {
|
|
@@ -34682,7 +34682,7 @@ function parseTsconfigFile(tsconfigPath, basePath) {
|
|
|
34682
34682
|
return import_typescript102.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
|
|
34683
34683
|
}
|
|
34684
34684
|
|
|
34685
|
-
// bazel-out/
|
|
34685
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
34686
34686
|
function createProgramOptions(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles) {
|
|
34687
34687
|
tsconfigPath = (0, import_path4.resolve)(basePath, tsconfigPath);
|
|
34688
34688
|
const parsed = parseTsconfigFile(tsconfigPath, (0, import_path4.dirname)(tsconfigPath));
|
|
@@ -34696,10 +34696,10 @@ function createMigrationCompilerHost(tree, options, basePath, fakeRead) {
|
|
|
34696
34696
|
var _a;
|
|
34697
34697
|
const treeRelativePath = (0, import_path4.relative)(basePath, fileName);
|
|
34698
34698
|
let result = fakeRead == null ? void 0 : fakeRead(treeRelativePath);
|
|
34699
|
-
if (result
|
|
34699
|
+
if (typeof result !== "string") {
|
|
34700
34700
|
result = treeRelativePath.startsWith("..") ? defaultReadFile.call(host, fileName) : (_a = tree.read(treeRelativePath)) == null ? void 0 : _a.toString();
|
|
34701
34701
|
}
|
|
34702
|
-
return result ? result.replace(/^\uFEFF/, "") : void 0;
|
|
34702
|
+
return typeof result === "string" ? result.replace(/^\uFEFF/, "") : void 0;
|
|
34703
34703
|
};
|
|
34704
34704
|
return host;
|
|
34705
34705
|
}
|
|
@@ -34710,13 +34710,13 @@ function canMigrateFile(basePath, sourceFile, program) {
|
|
|
34710
34710
|
return !(0, import_path4.relative)(basePath, sourceFile.fileName).startsWith("..");
|
|
34711
34711
|
}
|
|
34712
34712
|
|
|
34713
|
-
// bazel-out/
|
|
34713
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/prune-modules.mjs
|
|
34714
34714
|
var import_typescript109 = __toESM(require("typescript"), 1);
|
|
34715
34715
|
|
|
34716
|
-
// bazel-out/
|
|
34716
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
|
|
34717
34717
|
var import_typescript105 = __toESM(require("typescript"), 1);
|
|
34718
34718
|
|
|
34719
|
-
// bazel-out/
|
|
34719
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
|
|
34720
34720
|
var import_typescript104 = __toESM(require("typescript"), 1);
|
|
34721
34721
|
function getImportOfIdentifier(typeChecker, node) {
|
|
34722
34722
|
const symbol = typeChecker.getSymbolAtLocation(node);
|
|
@@ -34760,7 +34760,7 @@ function findImportSpecifier(nodes, specifierName) {
|
|
|
34760
34760
|
});
|
|
34761
34761
|
}
|
|
34762
34762
|
|
|
34763
|
-
// bazel-out/
|
|
34763
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
|
|
34764
34764
|
function getCallDecoratorImport(typeChecker, decorator) {
|
|
34765
34765
|
if (!import_typescript105.default.isCallExpression(decorator.expression) || !import_typescript105.default.isIdentifier(decorator.expression.expression)) {
|
|
34766
34766
|
return null;
|
|
@@ -34769,7 +34769,7 @@ function getCallDecoratorImport(typeChecker, decorator) {
|
|
|
34769
34769
|
return getImportOfIdentifier(typeChecker, identifier);
|
|
34770
34770
|
}
|
|
34771
34771
|
|
|
34772
|
-
// bazel-out/
|
|
34772
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/ng_decorators.mjs
|
|
34773
34773
|
function getAngularDecorators(typeChecker, decorators) {
|
|
34774
34774
|
return decorators.map((node) => ({ node, importData: getCallDecoratorImport(typeChecker, node) })).filter(({ importData }) => importData && importData.importModule.startsWith("@angular/")).map(({ node, importData }) => ({
|
|
34775
34775
|
node,
|
|
@@ -34779,7 +34779,7 @@ function getAngularDecorators(typeChecker, decorators) {
|
|
|
34779
34779
|
}));
|
|
34780
34780
|
}
|
|
34781
34781
|
|
|
34782
|
-
// bazel-out/
|
|
34782
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/nodes.mjs
|
|
34783
34783
|
var import_typescript106 = __toESM(require("typescript"), 1);
|
|
34784
34784
|
function closestNode(node, predicate) {
|
|
34785
34785
|
let current = node.parent;
|
|
@@ -34792,10 +34792,11 @@ function closestNode(node, predicate) {
|
|
|
34792
34792
|
return null;
|
|
34793
34793
|
}
|
|
34794
34794
|
|
|
34795
|
-
// bazel-out/
|
|
34795
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/util.mjs
|
|
34796
|
+
var import_path6 = require("path");
|
|
34796
34797
|
var import_typescript108 = __toESM(require("typescript"), 1);
|
|
34797
34798
|
|
|
34798
|
-
// bazel-out/
|
|
34799
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/import_manager.mjs
|
|
34799
34800
|
var import_path5 = require("path");
|
|
34800
34801
|
var import_typescript107 = __toESM(require("typescript"), 1);
|
|
34801
34802
|
var IS_AFTER_TS_492 = isAfterVersion2(4, 9);
|
|
@@ -34806,6 +34807,7 @@ var ImportManager2 = class {
|
|
|
34806
34807
|
this.updatedImports = /* @__PURE__ */ new Map();
|
|
34807
34808
|
this.usedIdentifierNames = /* @__PURE__ */ new Map();
|
|
34808
34809
|
this.newImports = /* @__PURE__ */ new Map();
|
|
34810
|
+
this.quoteStyles = {};
|
|
34809
34811
|
this.importCache = [];
|
|
34810
34812
|
}
|
|
34811
34813
|
addImportToSourceFile(sourceFile, symbolName, moduleName, alias = null, typeImport = false) {
|
|
@@ -34889,12 +34891,13 @@ var ImportManager2 = class {
|
|
|
34889
34891
|
});
|
|
34890
34892
|
this.newImports.forEach(({ importStartIndex, defaultImports, namedImports }, sourceFile) => {
|
|
34891
34893
|
const recorder = this.getUpdateRecorder(sourceFile);
|
|
34894
|
+
const useSingleQuotes = this._getQuoteStyle(sourceFile) === 0;
|
|
34892
34895
|
defaultImports.forEach((identifier, moduleName) => {
|
|
34893
|
-
const newImport = createImportDeclaration2(void 0, import_typescript107.default.factory.createImportClause(false, identifier, void 0), import_typescript107.default.factory.createStringLiteral(moduleName));
|
|
34896
|
+
const newImport = createImportDeclaration2(void 0, import_typescript107.default.factory.createImportClause(false, identifier, void 0), import_typescript107.default.factory.createStringLiteral(moduleName, useSingleQuotes));
|
|
34894
34897
|
recorder.addNewImport(importStartIndex, this._getNewImportText(importStartIndex, newImport, sourceFile));
|
|
34895
34898
|
});
|
|
34896
34899
|
namedImports.forEach((specifiers, moduleName) => {
|
|
34897
|
-
const newImport = createImportDeclaration2(void 0, import_typescript107.default.factory.createImportClause(false, void 0, import_typescript107.default.factory.createNamedImports(specifiers)), import_typescript107.default.factory.createStringLiteral(moduleName));
|
|
34900
|
+
const newImport = createImportDeclaration2(void 0, import_typescript107.default.factory.createImportClause(false, void 0, import_typescript107.default.factory.createNamedImports(specifiers)), import_typescript107.default.factory.createStringLiteral(moduleName, useSingleQuotes));
|
|
34898
34901
|
recorder.addNewImport(importStartIndex, this._getNewImportText(importStartIndex, newImport, sourceFile));
|
|
34899
34902
|
});
|
|
34900
34903
|
});
|
|
@@ -34961,6 +34964,19 @@ ${text}`;
|
|
|
34961
34964
|
}
|
|
34962
34965
|
return { propertyName, name };
|
|
34963
34966
|
}
|
|
34967
|
+
_getQuoteStyle(sourceFile) {
|
|
34968
|
+
if (!this.quoteStyles.hasOwnProperty(sourceFile.fileName)) {
|
|
34969
|
+
let quoteStyle;
|
|
34970
|
+
for (const statement of sourceFile.statements) {
|
|
34971
|
+
if (import_typescript107.default.isImportDeclaration(statement) && import_typescript107.default.isStringLiteralLike(statement.moduleSpecifier)) {
|
|
34972
|
+
quoteStyle = statement.moduleSpecifier.getText().trim().startsWith('"') ? 1 : 0;
|
|
34973
|
+
break;
|
|
34974
|
+
}
|
|
34975
|
+
}
|
|
34976
|
+
this.quoteStyles[sourceFile.fileName] = quoteStyle != null ? quoteStyle : 0;
|
|
34977
|
+
}
|
|
34978
|
+
return this.quoteStyles[sourceFile.fileName];
|
|
34979
|
+
}
|
|
34964
34980
|
};
|
|
34965
34981
|
function createImportDeclaration2(modifiers, importClause, moduleSpecifier, assertClause) {
|
|
34966
34982
|
return IS_AFTER_TS_492 ? import_typescript107.default.factory.createImportDeclaration(modifiers, importClause, moduleSpecifier, assertClause) : import_typescript107.default.factory.createImportDeclaration(void 0, modifiers, importClause, moduleSpecifier, assertClause);
|
|
@@ -34973,7 +34989,7 @@ function isAfterVersion2(targetMajor, targetMinor) {
|
|
|
34973
34989
|
return major === targetMajor ? minor >= targetMinor : true;
|
|
34974
34990
|
}
|
|
34975
34991
|
|
|
34976
|
-
// bazel-out/
|
|
34992
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/util.mjs
|
|
34977
34993
|
var ChangeTracker = class {
|
|
34978
34994
|
constructor(_printer) {
|
|
34979
34995
|
this._printer = _printer;
|
|
@@ -35078,8 +35094,15 @@ function findClassDeclaration(reference, typeChecker) {
|
|
|
35078
35094
|
function findLiteralProperty(literal3, name) {
|
|
35079
35095
|
return literal3.properties.find((prop) => prop.name && import_typescript108.default.isIdentifier(prop.name) && prop.name.text === name);
|
|
35080
35096
|
}
|
|
35097
|
+
function getRelativeImportPath(fromFile, toFile) {
|
|
35098
|
+
let path3 = (0, import_path6.relative)((0, import_path6.dirname)(fromFile), toFile).replace(/\.ts$/, "");
|
|
35099
|
+
if (!path3.startsWith(".")) {
|
|
35100
|
+
path3 = "./" + path3;
|
|
35101
|
+
}
|
|
35102
|
+
return path3;
|
|
35103
|
+
}
|
|
35081
35104
|
|
|
35082
|
-
// bazel-out/
|
|
35105
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/prune-modules.mjs
|
|
35083
35106
|
function pruneNgModules(program, host, basePath, rootFileNames, sourceFiles, printer) {
|
|
35084
35107
|
const filesToRemove = /* @__PURE__ */ new Set();
|
|
35085
35108
|
const tracker = new ChangeTracker(printer);
|
|
@@ -35181,7 +35204,7 @@ function removeExportReferences(locations, tracker) {
|
|
|
35181
35204
|
}
|
|
35182
35205
|
function canRemoveClass(node, typeChecker) {
|
|
35183
35206
|
var _a;
|
|
35184
|
-
const decorator = (_a =
|
|
35207
|
+
const decorator = (_a = findNgModuleDecorator(node, typeChecker)) == null ? void 0 : _a.node;
|
|
35185
35208
|
if (!decorator || !import_typescript109.default.isCallExpression(decorator.expression)) {
|
|
35186
35209
|
return false;
|
|
35187
35210
|
}
|
|
@@ -35196,8 +35219,17 @@ function canRemoveClass(node, typeChecker) {
|
|
|
35196
35219
|
}
|
|
35197
35220
|
const literal3 = decorator.expression.arguments[0];
|
|
35198
35221
|
const imports = findLiteralProperty(literal3, "imports");
|
|
35199
|
-
if (imports && isNonEmptyNgModuleProperty(imports)
|
|
35200
|
-
|
|
35222
|
+
if (imports && isNonEmptyNgModuleProperty(imports)) {
|
|
35223
|
+
for (const dep of imports.initializer.elements) {
|
|
35224
|
+
if (!import_typescript109.default.isIdentifier(dep)) {
|
|
35225
|
+
return false;
|
|
35226
|
+
}
|
|
35227
|
+
const depDeclaration = findClassDeclaration(dep, typeChecker);
|
|
35228
|
+
const depNgModule = depDeclaration ? findNgModuleDecorator(depDeclaration, typeChecker) : null;
|
|
35229
|
+
if (depDeclaration !== null && depNgModule !== null && !canRemoveClass(depDeclaration, typeChecker)) {
|
|
35230
|
+
return false;
|
|
35231
|
+
}
|
|
35232
|
+
}
|
|
35201
35233
|
}
|
|
35202
35234
|
for (const prop of literal3.properties) {
|
|
35203
35235
|
if (isNonEmptyNgModuleProperty(prop) && (prop.name.text === "declarations" || prop.name.text === "providers" || prop.name.text === "bootstrap")) {
|
|
@@ -35257,11 +35289,19 @@ function addRemovalTodos(nodes, tracker) {
|
|
|
35257
35289
|
tracker.insertText(node.getSourceFile(), node.getFullStart(), ` /* TODO(standalone-migration): clean up removed NgModule reference manually. */ `);
|
|
35258
35290
|
}
|
|
35259
35291
|
}
|
|
35292
|
+
function findNgModuleDecorator(node, typeChecker) {
|
|
35293
|
+
const decorators = getAngularDecorators(typeChecker, import_typescript109.default.getDecorators(node) || []);
|
|
35294
|
+
return decorators.find((decorator) => decorator.name === "NgModule") || null;
|
|
35295
|
+
}
|
|
35260
35296
|
|
|
35261
|
-
// bazel-out/
|
|
35297
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/standalone-bootstrap.mjs
|
|
35298
|
+
var import_path7 = require("path");
|
|
35299
|
+
var import_typescript112 = __toESM(require("typescript"), 1);
|
|
35300
|
+
|
|
35301
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/to-standalone.mjs
|
|
35262
35302
|
var import_typescript111 = __toESM(require("typescript"), 1);
|
|
35263
35303
|
|
|
35264
|
-
// bazel-out/
|
|
35304
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/symbol.mjs
|
|
35265
35305
|
var import_typescript110 = __toESM(require("typescript"), 1);
|
|
35266
35306
|
function isReferenceToImport(typeChecker, node, importSpecifier) {
|
|
35267
35307
|
var _a, _b;
|
|
@@ -35270,7 +35310,7 @@ function isReferenceToImport(typeChecker, node, importSpecifier) {
|
|
|
35270
35310
|
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];
|
|
35271
35311
|
}
|
|
35272
35312
|
|
|
35273
|
-
// bazel-out/
|
|
35313
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/to-standalone.mjs
|
|
35274
35314
|
function toStandalone(sourceFiles, program, printer) {
|
|
35275
35315
|
const templateTypeChecker = program.compiler.getTemplateTypeChecker();
|
|
35276
35316
|
const typeChecker = program.getTsProgram().getTypeChecker();
|
|
@@ -35288,9 +35328,9 @@ function toStandalone(sourceFiles, program, printer) {
|
|
|
35288
35328
|
convertNgModuleDeclarationToStandalone(declaration, declarations, tracker, templateTypeChecker);
|
|
35289
35329
|
}
|
|
35290
35330
|
for (const node of modulesToMigrate) {
|
|
35291
|
-
migrateNgModuleClass(node, tracker, templateTypeChecker);
|
|
35331
|
+
migrateNgModuleClass(node, declarations, tracker, typeChecker, templateTypeChecker);
|
|
35292
35332
|
}
|
|
35293
|
-
migrateTestDeclarations(testObjectsToMigrate, tracker, typeChecker);
|
|
35333
|
+
migrateTestDeclarations(testObjectsToMigrate, declarations, tracker, typeChecker);
|
|
35294
35334
|
return tracker.recordChanges();
|
|
35295
35335
|
}
|
|
35296
35336
|
function convertNgModuleDeclarationToStandalone(ref, allDeclarations, tracker, typeChecker) {
|
|
@@ -35330,46 +35370,67 @@ function getComponentImportExpressions(ref, allDeclarations, tracker, typeChecke
|
|
|
35330
35370
|
}
|
|
35331
35371
|
return imports;
|
|
35332
35372
|
}
|
|
35333
|
-
function migrateNgModuleClass(node, tracker, typeChecker) {
|
|
35373
|
+
function migrateNgModuleClass(node, allDeclarations, tracker, typeChecker, templateTypeChecker) {
|
|
35334
35374
|
var _a;
|
|
35335
|
-
const decorator = (_a =
|
|
35375
|
+
const decorator = (_a = templateTypeChecker.getNgModuleMetadata(node)) == null ? void 0 : _a.decorator;
|
|
35336
35376
|
if (decorator && import_typescript111.default.isCallExpression(decorator.expression) && decorator.expression.arguments.length === 1 && import_typescript111.default.isObjectLiteralExpression(decorator.expression.arguments[0])) {
|
|
35337
|
-
moveDeclarationsToImports(decorator.expression.arguments[0], tracker);
|
|
35377
|
+
moveDeclarationsToImports(decorator.expression.arguments[0], allDeclarations.map((decl) => decl.node), typeChecker, tracker);
|
|
35338
35378
|
}
|
|
35339
35379
|
}
|
|
35340
|
-
function moveDeclarationsToImports(literal3, tracker) {
|
|
35341
|
-
const
|
|
35380
|
+
function moveDeclarationsToImports(literal3, allDeclarations, typeChecker, tracker) {
|
|
35381
|
+
const declarationsProp = findLiteralProperty(literal3, "declarations");
|
|
35382
|
+
if (!declarationsProp) {
|
|
35383
|
+
return;
|
|
35384
|
+
}
|
|
35385
|
+
const declarationsToPreserve = [];
|
|
35386
|
+
const declarationsToCopy = [];
|
|
35387
|
+
const properties = [];
|
|
35388
|
+
const importsProp = findLiteralProperty(literal3, "imports");
|
|
35389
|
+
if (import_typescript111.default.isPropertyAssignment(declarationsProp)) {
|
|
35390
|
+
if (import_typescript111.default.isArrayLiteralExpression(declarationsProp.initializer)) {
|
|
35391
|
+
for (const el of declarationsProp.initializer.elements) {
|
|
35392
|
+
if (import_typescript111.default.isIdentifier(el)) {
|
|
35393
|
+
const correspondingClass = findClassDeclaration(el, typeChecker);
|
|
35394
|
+
if (!correspondingClass || allDeclarations.includes(correspondingClass)) {
|
|
35395
|
+
declarationsToCopy.push(el);
|
|
35396
|
+
} else {
|
|
35397
|
+
declarationsToPreserve.push(el);
|
|
35398
|
+
}
|
|
35399
|
+
} else {
|
|
35400
|
+
declarationsToCopy.push(el);
|
|
35401
|
+
}
|
|
35402
|
+
}
|
|
35403
|
+
} else {
|
|
35404
|
+
declarationsToCopy.push(import_typescript111.default.factory.createSpreadElement(declarationsProp.initializer));
|
|
35405
|
+
}
|
|
35406
|
+
}
|
|
35407
|
+
if (!importsProp && declarationsToCopy.length > 0) {
|
|
35408
|
+
properties.push(import_typescript111.default.factory.createPropertyAssignment("imports", import_typescript111.default.factory.createArrayLiteralExpression(declarationsToCopy)));
|
|
35409
|
+
}
|
|
35410
|
+
for (const prop of literal3.properties) {
|
|
35342
35411
|
if (!isNamedPropertyAssignment(prop)) {
|
|
35343
|
-
|
|
35344
|
-
|
|
35345
|
-
|
|
35346
|
-
|
|
35347
|
-
|
|
35348
|
-
|
|
35349
|
-
|
|
35350
|
-
|
|
35351
|
-
}
|
|
35352
|
-
|
|
35353
|
-
|
|
35354
|
-
|
|
35355
|
-
|
|
35356
|
-
|
|
35357
|
-
|
|
35358
|
-
|
|
35359
|
-
|
|
35360
|
-
|
|
35361
|
-
|
|
35362
|
-
|
|
35363
|
-
arrayElements = [...imports.initializer.elements, import_typescript111.default.factory.createSpreadElement(declarations.initializer)];
|
|
35364
|
-
} else if (declarationsIsArray) {
|
|
35365
|
-
arrayElements = [import_typescript111.default.factory.createSpreadElement(imports.initializer), ...declarations.initializer.elements];
|
|
35366
|
-
} else {
|
|
35367
|
-
arrayElements = [
|
|
35368
|
-
import_typescript111.default.factory.createSpreadElement(imports.initializer),
|
|
35369
|
-
import_typescript111.default.factory.createSpreadElement(declarations.initializer)
|
|
35370
|
-
];
|
|
35412
|
+
properties.push(prop);
|
|
35413
|
+
continue;
|
|
35414
|
+
}
|
|
35415
|
+
if (prop === declarationsProp) {
|
|
35416
|
+
if (declarationsToPreserve.length > 0) {
|
|
35417
|
+
properties.push(import_typescript111.default.factory.updatePropertyAssignment(prop, prop.name, import_typescript111.default.factory.createArrayLiteralExpression(declarationsToPreserve)));
|
|
35418
|
+
}
|
|
35419
|
+
continue;
|
|
35420
|
+
}
|
|
35421
|
+
if (prop === importsProp && declarationsToCopy.length > 0) {
|
|
35422
|
+
let initializer;
|
|
35423
|
+
if (import_typescript111.default.isArrayLiteralExpression(prop.initializer)) {
|
|
35424
|
+
initializer = import_typescript111.default.factory.updateArrayLiteralExpression(prop.initializer, [...prop.initializer.elements, ...declarationsToCopy]);
|
|
35425
|
+
} else {
|
|
35426
|
+
initializer = import_typescript111.default.factory.createArrayLiteralExpression([import_typescript111.default.factory.createSpreadElement(prop.initializer), ...declarationsToCopy]);
|
|
35427
|
+
}
|
|
35428
|
+
properties.push(import_typescript111.default.factory.updatePropertyAssignment(prop, prop.name, initializer));
|
|
35429
|
+
continue;
|
|
35430
|
+
}
|
|
35431
|
+
properties.push(prop);
|
|
35371
35432
|
}
|
|
35372
|
-
|
|
35433
|
+
tracker.replaceNode(literal3, import_typescript111.default.factory.updateObjectLiteralExpression(literal3, properties), import_typescript111.default.EmitHint.Expression);
|
|
35373
35434
|
}
|
|
35374
35435
|
function addStandaloneToDecorator(node) {
|
|
35375
35436
|
return addPropertyToAngularDecorator(node, import_typescript111.default.factory.createPropertyAssignment("standalone", import_typescript111.default.factory.createToken(import_typescript111.default.SyntaxKind.TrueKeyword)));
|
|
@@ -35461,14 +35522,22 @@ function extractDeclarationsFromModule(ngModule, typeChecker) {
|
|
|
35461
35522
|
var _a;
|
|
35462
35523
|
return ((_a = typeChecker.getNgModuleMetadata(ngModule)) == null ? void 0 : _a.declarations.filter((decl) => import_typescript111.default.isClassDeclaration(decl.node))) || [];
|
|
35463
35524
|
}
|
|
35464
|
-
function migrateTestDeclarations(testObjects, tracker, typeChecker) {
|
|
35465
|
-
const { decorators, componentImports } = analyzeTestingModules(testObjects,
|
|
35525
|
+
function migrateTestDeclarations(testObjects, declarationsOutsideOfTestFiles, tracker, typeChecker) {
|
|
35526
|
+
const { decorators, componentImports } = analyzeTestingModules(testObjects, typeChecker);
|
|
35527
|
+
const allDeclarations = declarationsOutsideOfTestFiles.map((ref) => ref.node);
|
|
35466
35528
|
for (const decorator of decorators) {
|
|
35529
|
+
const closestClass = closestNode(decorator.node, import_typescript111.default.isClassDeclaration);
|
|
35467
35530
|
if (decorator.name === "Pipe" || decorator.name === "Directive") {
|
|
35468
35531
|
tracker.replaceNode(decorator.node, addStandaloneToDecorator(decorator.node));
|
|
35532
|
+
if (closestClass) {
|
|
35533
|
+
allDeclarations.push(closestClass);
|
|
35534
|
+
}
|
|
35469
35535
|
} else if (decorator.name === "Component") {
|
|
35470
35536
|
const newDecorator = addStandaloneToDecorator(decorator.node);
|
|
35471
35537
|
const importsToAdd = componentImports.get(decorator.node);
|
|
35538
|
+
if (closestClass) {
|
|
35539
|
+
allDeclarations.push(closestClass);
|
|
35540
|
+
}
|
|
35472
35541
|
if (importsToAdd && importsToAdd.size > 0) {
|
|
35473
35542
|
tracker.replaceNode(decorator.node, addPropertyToAngularDecorator(newDecorator, import_typescript111.default.factory.createPropertyAssignment("imports", import_typescript111.default.factory.createArrayLiteralExpression(Array.from(importsToAdd)))));
|
|
35474
35543
|
} else {
|
|
@@ -35476,16 +35545,21 @@ function migrateTestDeclarations(testObjects, tracker, typeChecker) {
|
|
|
35476
35545
|
}
|
|
35477
35546
|
}
|
|
35478
35547
|
}
|
|
35548
|
+
for (const obj of testObjects) {
|
|
35549
|
+
moveDeclarationsToImports(obj, allDeclarations, typeChecker, tracker);
|
|
35550
|
+
}
|
|
35479
35551
|
}
|
|
35480
|
-
function analyzeTestingModules(testObjects,
|
|
35552
|
+
function analyzeTestingModules(testObjects, typeChecker) {
|
|
35481
35553
|
const seenDeclarations = /* @__PURE__ */ new Set();
|
|
35482
35554
|
const decorators = [];
|
|
35483
35555
|
const componentImports = /* @__PURE__ */ new Map();
|
|
35484
35556
|
for (const obj of testObjects) {
|
|
35485
35557
|
const declarations = extractDeclarationsFromTestObject(obj, typeChecker);
|
|
35558
|
+
if (declarations.length === 0) {
|
|
35559
|
+
continue;
|
|
35560
|
+
}
|
|
35486
35561
|
const importsProp = findLiteralProperty(obj, "imports");
|
|
35487
35562
|
const importElements = importsProp && hasNgModuleMetadataElements(importsProp) ? importsProp.initializer.elements : null;
|
|
35488
|
-
moveDeclarationsToImports(obj, tracker);
|
|
35489
35563
|
for (const decl of declarations) {
|
|
35490
35564
|
if (seenDeclarations.has(decl)) {
|
|
35491
35565
|
continue;
|
|
@@ -35521,12 +35595,308 @@ function extractDeclarationsFromTestObject(obj, typeChecker) {
|
|
|
35521
35595
|
return results;
|
|
35522
35596
|
}
|
|
35523
35597
|
|
|
35524
|
-
// bazel-out/
|
|
35598
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/standalone-bootstrap.mjs
|
|
35599
|
+
function toStandaloneBootstrap(program, host, basePath, rootFileNames, sourceFiles, printer) {
|
|
35600
|
+
const tracker = new ChangeTracker(printer);
|
|
35601
|
+
const typeChecker = program.getTsProgram().getTypeChecker();
|
|
35602
|
+
const templateTypeChecker = program.compiler.getTemplateTypeChecker();
|
|
35603
|
+
const languageService = createLanguageService(program, host, rootFileNames, basePath);
|
|
35604
|
+
const bootstrapCalls = [];
|
|
35605
|
+
sourceFiles.forEach(function walk(node) {
|
|
35606
|
+
if (import_typescript112.default.isCallExpression(node) && import_typescript112.default.isPropertyAccessExpression(node.expression) && node.expression.name.text === "bootstrapModule" && isClassReferenceInModule(node.expression, "PlatformRef", "@angular/core", typeChecker)) {
|
|
35607
|
+
const call = analyzeBootstrapCall(node, typeChecker);
|
|
35608
|
+
if (call) {
|
|
35609
|
+
bootstrapCalls.push(call);
|
|
35610
|
+
}
|
|
35611
|
+
}
|
|
35612
|
+
node.forEachChild(walk);
|
|
35613
|
+
});
|
|
35614
|
+
for (const call of bootstrapCalls) {
|
|
35615
|
+
migrateBootstrapCall(call, tracker, languageService, typeChecker, templateTypeChecker, printer);
|
|
35616
|
+
}
|
|
35617
|
+
return tracker.recordChanges();
|
|
35618
|
+
}
|
|
35619
|
+
function analyzeBootstrapCall(call, typeChecker) {
|
|
35620
|
+
if (call.arguments.length === 0 || !import_typescript112.default.isIdentifier(call.arguments[0])) {
|
|
35621
|
+
return null;
|
|
35622
|
+
}
|
|
35623
|
+
const declaration = findClassDeclaration(call.arguments[0], typeChecker);
|
|
35624
|
+
if (!declaration) {
|
|
35625
|
+
return null;
|
|
35626
|
+
}
|
|
35627
|
+
const decorator = getAngularDecorators(typeChecker, import_typescript112.default.getDecorators(declaration) || []).find((decorator2) => decorator2.name === "NgModule");
|
|
35628
|
+
if (!decorator || decorator.node.expression.arguments.length === 0 || !import_typescript112.default.isObjectLiteralExpression(decorator.node.expression.arguments[0])) {
|
|
35629
|
+
return null;
|
|
35630
|
+
}
|
|
35631
|
+
const metadata = decorator.node.expression.arguments[0];
|
|
35632
|
+
const bootstrapProp = findLiteralProperty(metadata, "bootstrap");
|
|
35633
|
+
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])) {
|
|
35634
|
+
return null;
|
|
35635
|
+
}
|
|
35636
|
+
const component = findClassDeclaration(bootstrapProp.initializer.elements[0], typeChecker);
|
|
35637
|
+
if (component && component.name && import_typescript112.default.isIdentifier(component.name)) {
|
|
35638
|
+
return { module: declaration, metadata, component, call };
|
|
35639
|
+
}
|
|
35640
|
+
return null;
|
|
35641
|
+
}
|
|
35642
|
+
function migrateBootstrapCall(analysis, tracker, languageService, typeChecker, templateTypeChecker, printer) {
|
|
35643
|
+
const sourceFile = analysis.call.getSourceFile();
|
|
35644
|
+
const moduleSourceFile = analysis.metadata.getSourceFile();
|
|
35645
|
+
const providers = findLiteralProperty(analysis.metadata, "providers");
|
|
35646
|
+
const imports = findLiteralProperty(analysis.metadata, "imports");
|
|
35647
|
+
const nodesToCopy = /* @__PURE__ */ new Set();
|
|
35648
|
+
const providersInNewCall = [];
|
|
35649
|
+
const moduleImportsInNewCall = [];
|
|
35650
|
+
let nodeLookup = null;
|
|
35651
|
+
convertBootstrappedModuleToStandalone(analysis, tracker, templateTypeChecker);
|
|
35652
|
+
tracker.insertText(moduleSourceFile, analysis.metadata.getStart(), '/* TODO(standalone-migration): clean up removed NgModule class manually or run the "Remove unnecessary NgModule classes" step of the migration again. \n');
|
|
35653
|
+
tracker.insertText(moduleSourceFile, analysis.metadata.getEnd(), " */");
|
|
35654
|
+
if (providers && import_typescript112.default.isPropertyAssignment(providers)) {
|
|
35655
|
+
nodeLookup = nodeLookup || getNodeLookup(moduleSourceFile);
|
|
35656
|
+
if (import_typescript112.default.isArrayLiteralExpression(providers.initializer)) {
|
|
35657
|
+
providersInNewCall.push(...providers.initializer.elements);
|
|
35658
|
+
} else {
|
|
35659
|
+
providersInNewCall.push(import_typescript112.default.factory.createSpreadElement(providers.initializer));
|
|
35660
|
+
}
|
|
35661
|
+
addNodesToCopy(sourceFile, providers, nodeLookup, tracker, nodesToCopy, languageService);
|
|
35662
|
+
}
|
|
35663
|
+
if (imports && import_typescript112.default.isPropertyAssignment(imports)) {
|
|
35664
|
+
nodeLookup = nodeLookup || getNodeLookup(moduleSourceFile);
|
|
35665
|
+
migrateImportsForBootstrapCall(sourceFile, imports, nodeLookup, moduleImportsInNewCall, providersInNewCall, tracker, nodesToCopy, languageService, typeChecker);
|
|
35666
|
+
}
|
|
35667
|
+
if (nodesToCopy.size > 0) {
|
|
35668
|
+
let text = "\n\n";
|
|
35669
|
+
nodesToCopy.forEach((node) => {
|
|
35670
|
+
const transformedNode = remapDynamicImports(sourceFile.fileName, node);
|
|
35671
|
+
if (transformedNode === node) {
|
|
35672
|
+
text += transformedNode.getText() + "\n";
|
|
35673
|
+
} else {
|
|
35674
|
+
text += printer.printNode(import_typescript112.default.EmitHint.Unspecified, transformedNode, node.getSourceFile());
|
|
35675
|
+
}
|
|
35676
|
+
});
|
|
35677
|
+
text += "\n";
|
|
35678
|
+
tracker.insertText(sourceFile, getLastImportEnd(sourceFile), text);
|
|
35679
|
+
}
|
|
35680
|
+
replaceBootstrapCallExpression(analysis, providersInNewCall, moduleImportsInNewCall, tracker);
|
|
35681
|
+
}
|
|
35682
|
+
function replaceBootstrapCallExpression(analysis, providers, modules, tracker) {
|
|
35683
|
+
const sourceFile = analysis.call.getSourceFile();
|
|
35684
|
+
const componentPath = getRelativeImportPath(sourceFile.fileName, analysis.component.getSourceFile().fileName);
|
|
35685
|
+
const args = [tracker.addImport(sourceFile, analysis.component.name.text, componentPath)];
|
|
35686
|
+
const bootstrapExpression = tracker.addImport(sourceFile, "bootstrapApplication", "@angular/platform-browser");
|
|
35687
|
+
if (providers.length > 0 || modules.length > 0) {
|
|
35688
|
+
const combinedProviders = [];
|
|
35689
|
+
if (modules.length > 0) {
|
|
35690
|
+
const importProvidersExpression = tracker.addImport(sourceFile, "importProvidersFrom", "@angular/core");
|
|
35691
|
+
combinedProviders.push(import_typescript112.default.factory.createCallExpression(importProvidersExpression, [], modules));
|
|
35692
|
+
}
|
|
35693
|
+
combinedProviders.push(...providers);
|
|
35694
|
+
const initializer = remapDynamicImports(sourceFile.fileName, import_typescript112.default.factory.createArrayLiteralExpression(combinedProviders, combinedProviders.length > 1));
|
|
35695
|
+
args.push(import_typescript112.default.factory.createObjectLiteralExpression([import_typescript112.default.factory.createPropertyAssignment("providers", initializer)], true));
|
|
35696
|
+
}
|
|
35697
|
+
tracker.replaceNode(
|
|
35698
|
+
analysis.call,
|
|
35699
|
+
import_typescript112.default.factory.createCallExpression(bootstrapExpression, [], args),
|
|
35700
|
+
void 0,
|
|
35701
|
+
analysis.metadata.getSourceFile()
|
|
35702
|
+
);
|
|
35703
|
+
}
|
|
35704
|
+
function convertBootstrappedModuleToStandalone(analysis, tracker, templateTypeChecker) {
|
|
35705
|
+
var _a, _b;
|
|
35706
|
+
const metadata = templateTypeChecker.getNgModuleMetadata(analysis.module);
|
|
35707
|
+
if (!metadata) {
|
|
35708
|
+
throw new Error(`Cannot resolve NgModule metadata for class ${(_a = analysis.module.name) == null ? void 0 : _a.getText()}. Cannot switch to standalone bootstrap API.`);
|
|
35709
|
+
}
|
|
35710
|
+
const classDeclarations = metadata.declarations.filter((decl) => import_typescript112.default.isClassDeclaration(decl.node));
|
|
35711
|
+
if (!classDeclarations.some((decl) => decl.node === analysis.component)) {
|
|
35712
|
+
throw new Error(`Bootstrapped component is not in the declarations array of NgModule ${(_b = analysis.module.name) == null ? void 0 : _b.getText()}. Cannot switch to standalone bootstrap API.`);
|
|
35713
|
+
}
|
|
35714
|
+
for (const decl of classDeclarations) {
|
|
35715
|
+
if (import_typescript112.default.isClassDeclaration(decl.node)) {
|
|
35716
|
+
convertNgModuleDeclarationToStandalone(decl, classDeclarations, tracker, templateTypeChecker);
|
|
35717
|
+
}
|
|
35718
|
+
}
|
|
35719
|
+
}
|
|
35720
|
+
function migrateImportsForBootstrapCall(sourceFile, imports, nodeLookup, importsForNewCall, providersInNewCall, tracker, nodesToCopy, languageService, typeChecker) {
|
|
35721
|
+
if (!import_typescript112.default.isArrayLiteralExpression(imports.initializer)) {
|
|
35722
|
+
importsForNewCall.push(imports.initializer);
|
|
35723
|
+
return;
|
|
35724
|
+
}
|
|
35725
|
+
for (const element of imports.initializer.elements) {
|
|
35726
|
+
if (import_typescript112.default.isCallExpression(element) && element.arguments.length === 1 && import_typescript112.default.isPropertyAccessExpression(element.expression) && element.expression.name.text === "forRoot" && isClassReferenceInModule(element.expression.expression, "RouterModule", "@angular/router", typeChecker)) {
|
|
35727
|
+
providersInNewCall.push(import_typescript112.default.factory.createCallExpression(tracker.addImport(sourceFile, "provideRouter", "@angular/router"), [], element.arguments));
|
|
35728
|
+
addNodesToCopy(sourceFile, element.arguments[0], nodeLookup, tracker, nodesToCopy, languageService);
|
|
35729
|
+
continue;
|
|
35730
|
+
}
|
|
35731
|
+
if (import_typescript112.default.isIdentifier(element)) {
|
|
35732
|
+
const animationsModule = "@angular/platform-browser/animations";
|
|
35733
|
+
if (isClassReferenceInModule(element, "BrowserAnimationsModule", animationsModule, typeChecker)) {
|
|
35734
|
+
providersInNewCall.push(import_typescript112.default.factory.createCallExpression(tracker.addImport(sourceFile, "provideAnimations", animationsModule), [], []));
|
|
35735
|
+
continue;
|
|
35736
|
+
}
|
|
35737
|
+
if (isClassReferenceInModule(element, "NoopAnimationsModule", animationsModule, typeChecker)) {
|
|
35738
|
+
providersInNewCall.push(import_typescript112.default.factory.createCallExpression(tracker.addImport(sourceFile, "provideNoopAnimations", animationsModule), [], []));
|
|
35739
|
+
continue;
|
|
35740
|
+
}
|
|
35741
|
+
}
|
|
35742
|
+
const target = import_typescript112.default.isCallExpression(element) && import_typescript112.default.isPropertyAccessExpression(element.expression) ? element.expression.expression : element;
|
|
35743
|
+
const classDeclaration = findClassDeclaration(target, typeChecker);
|
|
35744
|
+
const decorators = classDeclaration ? getAngularDecorators(typeChecker, import_typescript112.default.getDecorators(classDeclaration) || []) : void 0;
|
|
35745
|
+
if (!decorators || decorators.length === 0 || decorators.every(({ name }) => name !== "Directive" && name !== "Component" && name !== "Pipe")) {
|
|
35746
|
+
importsForNewCall.push(element);
|
|
35747
|
+
addNodesToCopy(sourceFile, element, nodeLookup, tracker, nodesToCopy, languageService);
|
|
35748
|
+
}
|
|
35749
|
+
}
|
|
35750
|
+
}
|
|
35751
|
+
function addNodesToCopy(targetFile, rootNode, nodeLookup, tracker, nodesToCopy, languageService) {
|
|
35752
|
+
const refs = findAllSameFileReferences(rootNode, nodeLookup, languageService);
|
|
35753
|
+
for (const ref of refs) {
|
|
35754
|
+
const importSpecifier = closestOrSelf(ref, import_typescript112.default.isImportSpecifier);
|
|
35755
|
+
const importDeclaration = importSpecifier ? closestNode(importSpecifier, import_typescript112.default.isImportDeclaration) : null;
|
|
35756
|
+
if (importDeclaration && importSpecifier && import_typescript112.default.isStringLiteralLike(importDeclaration.moduleSpecifier)) {
|
|
35757
|
+
const moduleName = importDeclaration.moduleSpecifier.text.startsWith(".") ? remapRelativeImport(targetFile.fileName, importDeclaration.moduleSpecifier) : importDeclaration.moduleSpecifier.text;
|
|
35758
|
+
const symbolName = importSpecifier.propertyName ? importSpecifier.propertyName.text : importSpecifier.name.text;
|
|
35759
|
+
const alias = importSpecifier.propertyName ? importSpecifier.name.text : null;
|
|
35760
|
+
tracker.addImport(targetFile, symbolName, moduleName, alias);
|
|
35761
|
+
continue;
|
|
35762
|
+
}
|
|
35763
|
+
const variableDeclaration = closestOrSelf(ref, import_typescript112.default.isVariableDeclaration);
|
|
35764
|
+
const variableStatement = variableDeclaration ? closestNode(variableDeclaration, import_typescript112.default.isVariableStatement) : null;
|
|
35765
|
+
if (variableDeclaration && variableStatement && import_typescript112.default.isIdentifier(variableDeclaration.name)) {
|
|
35766
|
+
if (isExported3(variableStatement)) {
|
|
35767
|
+
tracker.addImport(targetFile, variableDeclaration.name.text, getRelativeImportPath(targetFile.fileName, ref.getSourceFile().fileName));
|
|
35768
|
+
} else {
|
|
35769
|
+
nodesToCopy.add(variableStatement);
|
|
35770
|
+
}
|
|
35771
|
+
continue;
|
|
35772
|
+
}
|
|
35773
|
+
const closestExportable = closestOrSelf(ref, isExportableDeclaration);
|
|
35774
|
+
if (closestExportable) {
|
|
35775
|
+
if (isExported3(closestExportable) && closestExportable.name) {
|
|
35776
|
+
tracker.addImport(targetFile, closestExportable.name.text, getRelativeImportPath(targetFile.fileName, ref.getSourceFile().fileName));
|
|
35777
|
+
} else {
|
|
35778
|
+
nodesToCopy.add(closestExportable);
|
|
35779
|
+
}
|
|
35780
|
+
}
|
|
35781
|
+
}
|
|
35782
|
+
}
|
|
35783
|
+
function findAllSameFileReferences(rootNode, nodeLookup, languageService) {
|
|
35784
|
+
const results = /* @__PURE__ */ new Set();
|
|
35785
|
+
const excludeStart = rootNode.getStart();
|
|
35786
|
+
const excludeEnd = rootNode.getEnd();
|
|
35787
|
+
(function walk(node) {
|
|
35788
|
+
if (!isReferenceIdentifier(node)) {
|
|
35789
|
+
node.forEachChild(walk);
|
|
35790
|
+
return;
|
|
35791
|
+
}
|
|
35792
|
+
const refs = referencesToNodeWithinSameFile(node, nodeLookup, excludeStart, excludeEnd, languageService);
|
|
35793
|
+
if (refs === null) {
|
|
35794
|
+
return;
|
|
35795
|
+
}
|
|
35796
|
+
for (const ref of refs) {
|
|
35797
|
+
if (results.has(ref)) {
|
|
35798
|
+
continue;
|
|
35799
|
+
}
|
|
35800
|
+
const closestTopLevel = closestNode(ref, isTopLevelStatement);
|
|
35801
|
+
results.add(ref);
|
|
35802
|
+
if (closestTopLevel && !import_typescript112.default.isImportDeclaration(closestTopLevel) && isOutsideRange(excludeStart, excludeEnd, closestTopLevel.getStart(), closestTopLevel.getEnd())) {
|
|
35803
|
+
walk(closestTopLevel);
|
|
35804
|
+
}
|
|
35805
|
+
}
|
|
35806
|
+
})(rootNode);
|
|
35807
|
+
return results;
|
|
35808
|
+
}
|
|
35809
|
+
function referencesToNodeWithinSameFile(node, nodeLookup, excludeStart, excludeEnd, languageService) {
|
|
35810
|
+
const sourceFile = node.getSourceFile();
|
|
35811
|
+
const fileName = sourceFile.fileName;
|
|
35812
|
+
const highlights = languageService.getDocumentHighlights(fileName, node.getStart(), [fileName]);
|
|
35813
|
+
if (highlights) {
|
|
35814
|
+
const offsets = [];
|
|
35815
|
+
for (const file of highlights) {
|
|
35816
|
+
if (file.fileName === fileName) {
|
|
35817
|
+
for (const { textSpan: { start, length }, kind } of file.highlightSpans) {
|
|
35818
|
+
const end = start + length;
|
|
35819
|
+
if (kind !== import_typescript112.default.HighlightSpanKind.none && isOutsideRange(excludeStart, excludeEnd, start, end)) {
|
|
35820
|
+
offsets.push([start, end]);
|
|
35821
|
+
}
|
|
35822
|
+
}
|
|
35823
|
+
}
|
|
35824
|
+
}
|
|
35825
|
+
if (offsets.length > 0) {
|
|
35826
|
+
const nodes = offsetsToNodes(nodeLookup, offsets, /* @__PURE__ */ new Set());
|
|
35827
|
+
if (nodes.size > 0) {
|
|
35828
|
+
return nodes;
|
|
35829
|
+
}
|
|
35830
|
+
}
|
|
35831
|
+
}
|
|
35832
|
+
return null;
|
|
35833
|
+
}
|
|
35834
|
+
function remapDynamicImports(targetFileName, rootNode) {
|
|
35835
|
+
let hasChanged = false;
|
|
35836
|
+
const transformer = (context) => {
|
|
35837
|
+
return (sourceFile) => import_typescript112.default.visitNode(sourceFile, function walk(node) {
|
|
35838
|
+
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(".")) {
|
|
35839
|
+
hasChanged = true;
|
|
35840
|
+
return context.factory.updateCallExpression(node, node.expression, node.typeArguments, [
|
|
35841
|
+
context.factory.createStringLiteral(remapRelativeImport(targetFileName, node.arguments[0])),
|
|
35842
|
+
...node.arguments.slice(1)
|
|
35843
|
+
]);
|
|
35844
|
+
}
|
|
35845
|
+
return import_typescript112.default.visitEachChild(node, walk, context);
|
|
35846
|
+
});
|
|
35847
|
+
};
|
|
35848
|
+
const result = import_typescript112.default.transform(rootNode, [transformer]).transformed[0];
|
|
35849
|
+
return hasChanged ? result : rootNode;
|
|
35850
|
+
}
|
|
35851
|
+
function isTopLevelStatement(node) {
|
|
35852
|
+
return node.parent != null && import_typescript112.default.isSourceFile(node.parent);
|
|
35853
|
+
}
|
|
35854
|
+
function isReferenceIdentifier(node) {
|
|
35855
|
+
return import_typescript112.default.isIdentifier(node) && (!import_typescript112.default.isPropertyAssignment(node.parent) && !import_typescript112.default.isParameter(node.parent) || node.parent.name !== node);
|
|
35856
|
+
}
|
|
35857
|
+
function isOutsideRange(excludeStart, excludeEnd, start, end) {
|
|
35858
|
+
return start < excludeStart && end < excludeStart || start > excludeEnd;
|
|
35859
|
+
}
|
|
35860
|
+
function remapRelativeImport(targetFileName, specifier) {
|
|
35861
|
+
return getRelativeImportPath(targetFileName, (0, import_path7.join)((0, import_path7.dirname)(specifier.getSourceFile().fileName), specifier.text));
|
|
35862
|
+
}
|
|
35863
|
+
function isExported3(node) {
|
|
35864
|
+
return import_typescript112.default.canHaveModifiers(node) && node.modifiers ? node.modifiers.some((modifier) => modifier.kind === import_typescript112.default.SyntaxKind.ExportKeyword) : false;
|
|
35865
|
+
}
|
|
35866
|
+
function closestOrSelf(node, predicate) {
|
|
35867
|
+
return predicate(node) ? node : closestNode(node, predicate);
|
|
35868
|
+
}
|
|
35869
|
+
function isExportableDeclaration(node) {
|
|
35870
|
+
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);
|
|
35871
|
+
}
|
|
35872
|
+
function isClassReferenceInModule(node, className, moduleName, typeChecker) {
|
|
35873
|
+
var _a;
|
|
35874
|
+
const symbol = typeChecker.getTypeAtLocation(node).getSymbol();
|
|
35875
|
+
return !!((_a = symbol == null ? void 0 : symbol.declarations) == null ? void 0 : _a.some((decl) => {
|
|
35876
|
+
const closestClass = closestOrSelf(decl, import_typescript112.default.isClassDeclaration);
|
|
35877
|
+
return closestClass && closestClass.name && import_typescript112.default.isIdentifier(closestClass.name) && closestClass.name.text === className && closestClass.getSourceFile().fileName.includes(moduleName);
|
|
35878
|
+
}));
|
|
35879
|
+
}
|
|
35880
|
+
function getLastImportEnd(sourceFile) {
|
|
35881
|
+
let index = 0;
|
|
35882
|
+
for (const statement of sourceFile.statements) {
|
|
35883
|
+
if (import_typescript112.default.isImportDeclaration(statement)) {
|
|
35884
|
+
index = Math.max(index, statement.getEnd());
|
|
35885
|
+
} else {
|
|
35886
|
+
break;
|
|
35887
|
+
}
|
|
35888
|
+
}
|
|
35889
|
+
return index;
|
|
35890
|
+
}
|
|
35891
|
+
|
|
35892
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/index.mjs
|
|
35525
35893
|
var MigrationMode;
|
|
35526
35894
|
(function(MigrationMode2) {
|
|
35527
35895
|
MigrationMode2["toStandalone"] = "convert-to-standalone";
|
|
35528
35896
|
MigrationMode2["pruneModules"] = "prune-ng-modules";
|
|
35897
|
+
MigrationMode2["standaloneBootstrap"] = "standalone-bootstrap";
|
|
35529
35898
|
})(MigrationMode || (MigrationMode = {}));
|
|
35899
|
+
var normalizePath = (path3) => path3.replace(/\\/g, "/");
|
|
35530
35900
|
function standalone_migration_default(options) {
|
|
35531
35901
|
return (tree) => __async(this, null, function* () {
|
|
35532
35902
|
const { buildPaths, testPaths } = yield getProjectTsConfigPaths(tree);
|
|
@@ -35550,8 +35920,8 @@ function standaloneMigration(tree, tsconfigPath, basePath, options) {
|
|
|
35550
35920
|
host,
|
|
35551
35921
|
options: { _enableTemplateTypeChecker: true, compileNonExportedClasses: true }
|
|
35552
35922
|
});
|
|
35553
|
-
const printer =
|
|
35554
|
-
const pathToMigrate = (0,
|
|
35923
|
+
const printer = import_typescript113.default.createPrinter();
|
|
35924
|
+
const pathToMigrate = normalizePath((0, import_path8.join)(basePath, options.path));
|
|
35555
35925
|
if ((0, import_fs2.existsSync)(pathToMigrate) && !(0, import_fs2.statSync)(pathToMigrate).isDirectory()) {
|
|
35556
35926
|
throw new import_schematics.SchematicsException(`Migration path ${pathToMigrate} has to be a directory. Cannot run the standalone migration.`);
|
|
35557
35927
|
}
|
|
@@ -35563,20 +35933,20 @@ function standaloneMigration(tree, tsconfigPath, basePath, options) {
|
|
|
35563
35933
|
}
|
|
35564
35934
|
let pendingChanges;
|
|
35565
35935
|
let filesToRemove = null;
|
|
35566
|
-
if (options.mode === MigrationMode.
|
|
35567
|
-
pendingChanges = toStandalone(sourceFiles, program, printer);
|
|
35568
|
-
} else if (options.mode === MigrationMode.pruneModules) {
|
|
35936
|
+
if (options.mode === MigrationMode.pruneModules) {
|
|
35569
35937
|
const result = pruneNgModules(program, host, basePath, rootNames, sourceFiles, printer);
|
|
35570
35938
|
pendingChanges = result.pendingChanges;
|
|
35571
35939
|
filesToRemove = result.filesToRemove;
|
|
35940
|
+
} else if (options.mode === MigrationMode.standaloneBootstrap) {
|
|
35941
|
+
pendingChanges = toStandaloneBootstrap(program, host, basePath, rootNames, sourceFiles, printer);
|
|
35572
35942
|
} else {
|
|
35573
|
-
|
|
35943
|
+
pendingChanges = toStandalone(sourceFiles, program, printer);
|
|
35574
35944
|
}
|
|
35575
35945
|
for (const [file, changes] of pendingChanges.entries()) {
|
|
35576
35946
|
if (filesToRemove == null ? void 0 : filesToRemove.has(file)) {
|
|
35577
35947
|
continue;
|
|
35578
35948
|
}
|
|
35579
|
-
const update = tree.beginUpdate((0,
|
|
35949
|
+
const update = tree.beginUpdate((0, import_path8.relative)(basePath, file.fileName));
|
|
35580
35950
|
changes.forEach((change) => {
|
|
35581
35951
|
if (change.removeLength != null) {
|
|
35582
35952
|
update.remove(change.start, change.removeLength);
|
|
@@ -35587,7 +35957,7 @@ function standaloneMigration(tree, tsconfigPath, basePath, options) {
|
|
|
35587
35957
|
}
|
|
35588
35958
|
if (filesToRemove) {
|
|
35589
35959
|
for (const file of filesToRemove) {
|
|
35590
|
-
tree.delete((0,
|
|
35960
|
+
tree.delete((0, import_path8.relative)(basePath, file.fileName));
|
|
35591
35961
|
}
|
|
35592
35962
|
}
|
|
35593
35963
|
}
|