@angular/core 16.0.0-next.1 → 16.0.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/src/application_config.mjs +21 -0
- package/esm2020/src/application_init.mjs +21 -30
- package/esm2020/src/application_ref.mjs +31 -31
- package/esm2020/src/application_tokens.mjs +2 -13
- package/esm2020/src/change_detection/change_detection.mjs +2 -2
- package/esm2020/src/change_detection/constants.mjs +1 -49
- package/esm2020/src/core.mjs +4 -3
- package/esm2020/src/core_private_export.mjs +5 -7
- package/esm2020/src/core_render3_private_export.mjs +2 -1
- package/esm2020/src/debug/debug_node.mjs +1 -5
- package/esm2020/src/hydration/annotate.mjs +140 -0
- package/esm2020/src/hydration/api.mjs +120 -0
- package/esm2020/src/hydration/error_handling.mjs +29 -0
- package/esm2020/src/hydration/interfaces.mjs +10 -0
- package/esm2020/src/hydration/node_lookup_utils.mjs +75 -0
- package/esm2020/src/hydration/skip_hydration.mjs +34 -0
- package/esm2020/src/hydration/tokens.mjs +25 -0
- package/esm2020/src/hydration/utils.mjs +131 -0
- package/esm2020/src/linker/template_ref.mjs +4 -4
- package/esm2020/src/render3/component_ref.mjs +16 -9
- package/esm2020/src/render3/i18n/i18n_util.mjs +3 -3
- package/esm2020/src/render3/instructions/element.mjs +48 -6
- package/esm2020/src/render3/instructions/element_container.mjs +54 -9
- package/esm2020/src/render3/instructions/listener.mjs +3 -3
- package/esm2020/src/render3/instructions/shared.mjs +25 -8
- package/esm2020/src/render3/instructions/template.mjs +2 -2
- package/esm2020/src/render3/instructions/text.mjs +36 -5
- package/esm2020/src/render3/interfaces/node.mjs +1 -1
- package/esm2020/src/render3/interfaces/renderer_dom.mjs +1 -1
- package/esm2020/src/render3/interfaces/view.mjs +3 -2
- package/esm2020/src/render3/jit/directive.mjs +1 -2
- package/esm2020/src/render3/node_manipulation.mjs +12 -1
- package/esm2020/src/render3/state.mjs +45 -1
- package/esm2020/src/transfer_state.mjs +15 -10
- package/esm2020/src/util/lang.mjs +1 -11
- package/esm2020/src/util/ng_dev_mode.mjs +3 -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 +1127 -517
- package/fesm2015/core.mjs.map +1 -1
- package/fesm2015/testing.mjs +677 -90
- package/fesm2015/testing.mjs.map +1 -1
- package/fesm2020/core.mjs +1119 -515
- package/fesm2020/core.mjs.map +1 -1
- package/fesm2020/testing.mjs +671 -90
- package/fesm2020/testing.mjs.map +1 -1
- package/index.d.ts +174 -92
- package/package.json +2 -2
- package/schematics/migrations/relative-link-resolution/bundle.js +7 -7
- package/schematics/migrations/router-link-with-href/bundle.js +10 -10
- package/schematics/ng-generate/standalone-migration/bundle.js +693 -668
- package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
- package/testing/index.d.ts +1 -1
|
@@ -59,7 +59,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
59
59
|
});
|
|
60
60
|
};
|
|
61
61
|
|
|
62
|
-
// bazel-out/
|
|
62
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/index.mjs
|
|
63
63
|
var standalone_migration_exports = {};
|
|
64
64
|
__export(standalone_migration_exports, {
|
|
65
65
|
default: () => standalone_migration_default
|
|
@@ -67,10 +67,10 @@ __export(standalone_migration_exports, {
|
|
|
67
67
|
module.exports = __toCommonJS(standalone_migration_exports);
|
|
68
68
|
var import_schematics = require("@angular-devkit/schematics");
|
|
69
69
|
|
|
70
|
-
// bazel-out/
|
|
70
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/compiler_host.mjs
|
|
71
71
|
var import_typescript = __toESM(require("typescript"), 1);
|
|
72
72
|
|
|
73
|
-
// bazel-out/
|
|
73
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/invalid_file_system.mjs
|
|
74
74
|
var InvalidFileSystem = class {
|
|
75
75
|
exists(path3) {
|
|
76
76
|
throw makeError();
|
|
@@ -158,7 +158,7 @@ function makeError() {
|
|
|
158
158
|
return new Error("FileSystem has not been configured. Please call `setFileSystem()` before calling this method.");
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
// bazel-out/
|
|
161
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/util.mjs
|
|
162
162
|
var TS_DTS_JS_EXTENSION = /(?:\.d)?\.ts$|\.js$/;
|
|
163
163
|
function stripExtension(path3) {
|
|
164
164
|
return path3.replace(TS_DTS_JS_EXTENSION, "");
|
|
@@ -171,7 +171,7 @@ function getSourceFileOrError(program, fileName) {
|
|
|
171
171
|
return sf;
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
-
// bazel-out/
|
|
174
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/helpers.mjs
|
|
175
175
|
var fs = new InvalidFileSystem();
|
|
176
176
|
function getFileSystem() {
|
|
177
177
|
return fs;
|
|
@@ -215,7 +215,7 @@ function toRelativeImport(relativePath) {
|
|
|
215
215
|
return isLocalRelativePath(relativePath) ? `./${relativePath}` : relativePath;
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
-
// bazel-out/
|
|
218
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/logical.mjs
|
|
219
219
|
var LogicalProjectPath = {
|
|
220
220
|
relativePathBetween: function(from, to) {
|
|
221
221
|
const relativePath = relative(dirname(resolve(from)), resolve(to));
|
|
@@ -261,7 +261,7 @@ function isWithinBasePath(base, path3) {
|
|
|
261
261
|
return isLocalRelativePath(relative(base, path3));
|
|
262
262
|
}
|
|
263
263
|
|
|
264
|
-
// bazel-out/
|
|
264
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/node_js_file_system.mjs
|
|
265
265
|
var import_fs = __toESM(require("fs"), 1);
|
|
266
266
|
var import_module = __toESM(require("module"), 1);
|
|
267
267
|
var p = __toESM(require("path"), 1);
|
|
@@ -369,7 +369,7 @@ function toggleCase(str) {
|
|
|
369
369
|
return str.replace(/\w/g, (ch) => ch.toUpperCase() === ch ? ch.toLowerCase() : ch.toUpperCase());
|
|
370
370
|
}
|
|
371
371
|
|
|
372
|
-
// bazel-out/
|
|
372
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/selector.mjs
|
|
373
373
|
var _SELECTOR_REGEXP = new RegExp(
|
|
374
374
|
`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,
|
|
375
375
|
"g"
|
|
@@ -677,7 +677,7 @@ var SelectorContext = class {
|
|
|
677
677
|
}
|
|
678
678
|
};
|
|
679
679
|
|
|
680
|
-
// bazel-out/
|
|
680
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/core.mjs
|
|
681
681
|
var emitDistinctChangesOnlyDefaultValue = true;
|
|
682
682
|
var ViewEncapsulation;
|
|
683
683
|
(function(ViewEncapsulation2) {
|
|
@@ -740,7 +740,7 @@ function parseSelectorToR3Selector(selector) {
|
|
|
740
740
|
return selector ? CssSelector.parse(selector).map(parserSelectorToR3Selector) : [];
|
|
741
741
|
}
|
|
742
742
|
|
|
743
|
-
// bazel-out/
|
|
743
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/big_integer.mjs
|
|
744
744
|
var BigInteger = class {
|
|
745
745
|
static zero() {
|
|
746
746
|
return new BigInteger([0]);
|
|
@@ -832,7 +832,7 @@ var BigIntExponentiation = class {
|
|
|
832
832
|
}
|
|
833
833
|
};
|
|
834
834
|
|
|
835
|
-
// bazel-out/
|
|
835
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/digest.mjs
|
|
836
836
|
var textEncoder;
|
|
837
837
|
function digest(message) {
|
|
838
838
|
return message.id || computeDigest(message);
|
|
@@ -1095,7 +1095,7 @@ function wordsToDecimalString(hi, lo) {
|
|
|
1095
1095
|
return decimal.toString();
|
|
1096
1096
|
}
|
|
1097
1097
|
|
|
1098
|
-
// bazel-out/
|
|
1098
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/output_ast.mjs
|
|
1099
1099
|
var TypeModifier;
|
|
1100
1100
|
(function(TypeModifier2) {
|
|
1101
1101
|
TypeModifier2[TypeModifier2["None"] = 0] = "None";
|
|
@@ -1922,7 +1922,7 @@ function serializeTags(tags) {
|
|
|
1922
1922
|
return out;
|
|
1923
1923
|
}
|
|
1924
1924
|
|
|
1925
|
-
// bazel-out/
|
|
1925
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/constant_pool.mjs
|
|
1926
1926
|
var CONSTANT_PREFIX = "_c";
|
|
1927
1927
|
var UNKNOWN_VALUE_KEY = variable("<unknown>");
|
|
1928
1928
|
var KEY_CONTEXT = {};
|
|
@@ -2090,7 +2090,7 @@ function isLongStringLiteral(expr) {
|
|
|
2090
2090
|
return expr instanceof LiteralExpr && typeof expr.value === "string" && expr.value.length >= POOL_INCLUSION_LENGTH_THRESHOLD_FOR_STRINGS;
|
|
2091
2091
|
}
|
|
2092
2092
|
|
|
2093
|
-
// bazel-out/
|
|
2093
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_identifiers.mjs
|
|
2094
2094
|
var CORE = "@angular/core";
|
|
2095
2095
|
var Identifiers = class {
|
|
2096
2096
|
};
|
|
@@ -2294,7 +2294,7 @@ Identifiers.trustConstantHtml = { name: "\u0275\u0275trustConstantHtml", moduleN
|
|
|
2294
2294
|
Identifiers.trustConstantResourceUrl = { name: "\u0275\u0275trustConstantResourceUrl", moduleName: CORE };
|
|
2295
2295
|
Identifiers.validateIframeAttribute = { name: "\u0275\u0275validateIframeAttribute", moduleName: CORE };
|
|
2296
2296
|
|
|
2297
|
-
// bazel-out/
|
|
2297
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/util.mjs
|
|
2298
2298
|
var DASH_CASE_REGEXP = /-+([a-z0-9])/g;
|
|
2299
2299
|
function dashCaseToCamelCase(input) {
|
|
2300
2300
|
return input.replace(DASH_CASE_REGEXP, (...m) => m[1].toUpperCase());
|
|
@@ -2382,7 +2382,7 @@ function partitionArray(arr, conditionFn) {
|
|
|
2382
2382
|
return [truthy, falsy];
|
|
2383
2383
|
}
|
|
2384
2384
|
|
|
2385
|
-
// bazel-out/
|
|
2385
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/source_map.mjs
|
|
2386
2386
|
var VERSION = 3;
|
|
2387
2387
|
var JS_B64_PREFIX = "# sourceMappingURL=data:application/json;base64,";
|
|
2388
2388
|
var SourceMapGenerator = class {
|
|
@@ -2511,7 +2511,7 @@ function toBase64Digit(value) {
|
|
|
2511
2511
|
return B64_DIGITS[value];
|
|
2512
2512
|
}
|
|
2513
2513
|
|
|
2514
|
-
// bazel-out/
|
|
2514
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/abstract_emitter.mjs
|
|
2515
2515
|
var _SINGLE_QUOTE_ESCAPE_STRING_RE = /'|\\|\n|\r|\$/g;
|
|
2516
2516
|
var _LEGAL_IDENTIFIER_RE = /^[$A-Z_][0-9A-Z_$]*$/i;
|
|
2517
2517
|
var _INDENT_WITH = " ";
|
|
@@ -2986,7 +2986,7 @@ function _createIndent(count) {
|
|
|
2986
2986
|
return res;
|
|
2987
2987
|
}
|
|
2988
2988
|
|
|
2989
|
-
// bazel-out/
|
|
2989
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/util.mjs
|
|
2990
2990
|
function typeWithParameters(type, numParams) {
|
|
2991
2991
|
if (numParams === 0) {
|
|
2992
2992
|
return expressionType(type);
|
|
@@ -3054,7 +3054,7 @@ function generateForwardRef(expr) {
|
|
|
3054
3054
|
return importExpr(Identifiers.forwardRef).callFn([fn([], [new ReturnStatement(expr)])]);
|
|
3055
3055
|
}
|
|
3056
3056
|
|
|
3057
|
-
// bazel-out/
|
|
3057
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_factory.mjs
|
|
3058
3058
|
var R3FactoryDelegateType;
|
|
3059
3059
|
(function(R3FactoryDelegateType2) {
|
|
3060
3060
|
R3FactoryDelegateType2[R3FactoryDelegateType2["Class"] = 0] = "Class";
|
|
@@ -3199,7 +3199,7 @@ function getInjectFn(target) {
|
|
|
3199
3199
|
}
|
|
3200
3200
|
}
|
|
3201
3201
|
|
|
3202
|
-
// bazel-out/
|
|
3202
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_ast.mjs
|
|
3203
3203
|
var Comment = class {
|
|
3204
3204
|
constructor(value, sourceSpan) {
|
|
3205
3205
|
this.value = value;
|
|
@@ -3421,7 +3421,7 @@ function visitAll(visitor, nodes) {
|
|
|
3421
3421
|
return result;
|
|
3422
3422
|
}
|
|
3423
3423
|
|
|
3424
|
-
// bazel-out/
|
|
3424
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/i18n_ast.mjs
|
|
3425
3425
|
var Message = class {
|
|
3426
3426
|
constructor(nodes, placeholders, placeholderToMessage, meaning, description, customId) {
|
|
3427
3427
|
this.nodes = nodes;
|
|
@@ -3584,7 +3584,7 @@ var LocalizeMessageStringVisitor = class {
|
|
|
3584
3584
|
}
|
|
3585
3585
|
};
|
|
3586
3586
|
|
|
3587
|
-
// bazel-out/
|
|
3587
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/serializers/serializer.mjs
|
|
3588
3588
|
var Serializer = class {
|
|
3589
3589
|
createNameMapper(message) {
|
|
3590
3590
|
return null;
|
|
@@ -3636,7 +3636,7 @@ var SimplePlaceholderMapper = class extends RecurseVisitor {
|
|
|
3636
3636
|
}
|
|
3637
3637
|
};
|
|
3638
3638
|
|
|
3639
|
-
// bazel-out/
|
|
3639
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/serializers/xml_helper.mjs
|
|
3640
3640
|
var _Visitor = class {
|
|
3641
3641
|
visitTag(tag) {
|
|
3642
3642
|
const strAttrs = this._serializeAttributes(tag.attrs);
|
|
@@ -3724,7 +3724,7 @@ function escapeXml(text) {
|
|
|
3724
3724
|
return _ESCAPED_CHARS.reduce((text2, entry) => text2.replace(entry[0], entry[1]), text);
|
|
3725
3725
|
}
|
|
3726
3726
|
|
|
3727
|
-
// bazel-out/
|
|
3727
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/serializers/xmb.mjs
|
|
3728
3728
|
var _MESSAGES_TAG = "messagebundle";
|
|
3729
3729
|
var _MESSAGE_TAG = "msg";
|
|
3730
3730
|
var _PLACEHOLDER_TAG = "ph";
|
|
@@ -3867,7 +3867,7 @@ function toPublicName(internalName) {
|
|
|
3867
3867
|
return internalName.toUpperCase().replace(/[^A-Z0-9_]/g, "_");
|
|
3868
3868
|
}
|
|
3869
3869
|
|
|
3870
|
-
// bazel-out/
|
|
3870
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/i18n/util.mjs
|
|
3871
3871
|
var CLOSURE_TRANSLATION_VAR_PREFIX = "MSG_";
|
|
3872
3872
|
var TRANSLATION_VAR_PREFIX = "i18n_";
|
|
3873
3873
|
var I18N_ATTR = "i18n";
|
|
@@ -3969,7 +3969,7 @@ function declareI18nVariable(variable2) {
|
|
|
3969
3969
|
return new DeclareVarStmt(variable2.name, void 0, INFERRED_TYPE, void 0, variable2.sourceSpan);
|
|
3970
3970
|
}
|
|
3971
3971
|
|
|
3972
|
-
// bazel-out/
|
|
3972
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/util.mjs
|
|
3973
3973
|
var UNSAFE_OBJECT_KEY_NAME_REGEXP = /[-.]/;
|
|
3974
3974
|
var TEMPORARY_NAME = "_t";
|
|
3975
3975
|
var CONTEXT_NAME = "ctx";
|
|
@@ -4175,7 +4175,7 @@ function getInstructionStatements(instructions) {
|
|
|
4175
4175
|
return statements;
|
|
4176
4176
|
}
|
|
4177
4177
|
|
|
4178
|
-
// bazel-out/
|
|
4178
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/injectable_compiler_2.mjs
|
|
4179
4179
|
function compileInjectable(meta, resolveForwardRefs) {
|
|
4180
4180
|
let result = null;
|
|
4181
4181
|
const factoryMeta = {
|
|
@@ -4264,7 +4264,7 @@ function createFactoryFunction(type) {
|
|
|
4264
4264
|
return fn([new FnParam("t", DYNAMIC_TYPE)], [new ReturnStatement(type.prop("\u0275fac").callFn([variable("t")]))]);
|
|
4265
4265
|
}
|
|
4266
4266
|
|
|
4267
|
-
// bazel-out/
|
|
4267
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/assertions.mjs
|
|
4268
4268
|
var UNUSABLE_INTERPOLATION_REGEXPS = [
|
|
4269
4269
|
/^\s*$/,
|
|
4270
4270
|
/[<>]/,
|
|
@@ -4286,7 +4286,7 @@ function assertInterpolationSymbols(identifier, value) {
|
|
|
4286
4286
|
}
|
|
4287
4287
|
}
|
|
4288
4288
|
|
|
4289
|
-
// bazel-out/
|
|
4289
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/interpolation_config.mjs
|
|
4290
4290
|
var InterpolationConfig = class {
|
|
4291
4291
|
static fromArray(markers) {
|
|
4292
4292
|
if (!markers) {
|
|
@@ -4302,7 +4302,7 @@ var InterpolationConfig = class {
|
|
|
4302
4302
|
};
|
|
4303
4303
|
var DEFAULT_INTERPOLATION_CONFIG = new InterpolationConfig("{{", "}}");
|
|
4304
4304
|
|
|
4305
|
-
// bazel-out/
|
|
4305
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/chars.mjs
|
|
4306
4306
|
var $EOF = 0;
|
|
4307
4307
|
var $BSPACE = 8;
|
|
4308
4308
|
var $TAB = 9;
|
|
@@ -4383,7 +4383,7 @@ function isQuote(code) {
|
|
|
4383
4383
|
return code === $SQ || code === $DQ || code === $BT;
|
|
4384
4384
|
}
|
|
4385
4385
|
|
|
4386
|
-
// bazel-out/
|
|
4386
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/parse_util.mjs
|
|
4387
4387
|
var ParseLocation = class {
|
|
4388
4388
|
constructor(file, offset, line, col) {
|
|
4389
4389
|
this.file = file;
|
|
@@ -4530,7 +4530,7 @@ function sanitizeIdentifier(name) {
|
|
|
4530
4530
|
return name.replace(/\W/g, "_");
|
|
4531
4531
|
}
|
|
4532
4532
|
|
|
4533
|
-
// bazel-out/
|
|
4533
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/abstract_js_emitter.mjs
|
|
4534
4534
|
var makeTemplateObjectPolyfill = '(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})';
|
|
4535
4535
|
var AbstractJsEmitterVisitor = class extends AbstractEmitterVisitor {
|
|
4536
4536
|
constructor() {
|
|
@@ -4601,7 +4601,7 @@ var AbstractJsEmitterVisitor = class extends AbstractEmitterVisitor {
|
|
|
4601
4601
|
}
|
|
4602
4602
|
};
|
|
4603
4603
|
|
|
4604
|
-
// bazel-out/
|
|
4604
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/output_jit_trusted_types.mjs
|
|
4605
4605
|
var policy;
|
|
4606
4606
|
function getPolicy() {
|
|
4607
4607
|
if (policy === void 0) {
|
|
@@ -4638,7 +4638,7 @@ function newTrustedFunctionForJIT(...args) {
|
|
|
4638
4638
|
return fn2.bind(_global);
|
|
4639
4639
|
}
|
|
4640
4640
|
|
|
4641
|
-
// bazel-out/
|
|
4641
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/output_jit.mjs
|
|
4642
4642
|
var JitEvaluator = class {
|
|
4643
4643
|
evaluateStatements(sourceUrl, statements, refResolver, createSourceMaps) {
|
|
4644
4644
|
const converter = new JitEmitterVisitor(refResolver);
|
|
@@ -4729,7 +4729,7 @@ function isUseStrictStatement(statement) {
|
|
|
4729
4729
|
return statement.isEquivalent(literal("use strict").toStmt());
|
|
4730
4730
|
}
|
|
4731
4731
|
|
|
4732
|
-
// bazel-out/
|
|
4732
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_injector_compiler.mjs
|
|
4733
4733
|
function compileInjector(meta) {
|
|
4734
4734
|
const definitionMap = new DefinitionMap();
|
|
4735
4735
|
if (meta.providers !== null) {
|
|
@@ -4746,7 +4746,7 @@ function createInjectorType(meta) {
|
|
|
4746
4746
|
return new ExpressionType(importExpr(Identifiers.InjectorDeclaration, [new ExpressionType(meta.type.type)]));
|
|
4747
4747
|
}
|
|
4748
4748
|
|
|
4749
|
-
// bazel-out/
|
|
4749
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_jit.mjs
|
|
4750
4750
|
var R3JitReflector = class {
|
|
4751
4751
|
constructor(context) {
|
|
4752
4752
|
this.context = context;
|
|
@@ -4762,7 +4762,7 @@ var R3JitReflector = class {
|
|
|
4762
4762
|
}
|
|
4763
4763
|
};
|
|
4764
4764
|
|
|
4765
|
-
// bazel-out/
|
|
4765
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_module_compiler.mjs
|
|
4766
4766
|
var R3SelectorScopeMode;
|
|
4767
4767
|
(function(R3SelectorScopeMode2) {
|
|
4768
4768
|
R3SelectorScopeMode2[R3SelectorScopeMode2["Inline"] = 0] = "Inline";
|
|
@@ -4875,7 +4875,7 @@ function tupleOfTypes(types) {
|
|
|
4875
4875
|
return types.length > 0 ? expressionType(literalArr(typeofTypes)) : NONE_TYPE;
|
|
4876
4876
|
}
|
|
4877
4877
|
|
|
4878
|
-
// bazel-out/
|
|
4878
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_pipe_compiler.mjs
|
|
4879
4879
|
function compilePipeFromMetadata(metadata) {
|
|
4880
4880
|
const definitionMapValues = [];
|
|
4881
4881
|
definitionMapValues.push({ key: "name", value: literal(metadata.pipeName), quoted: false });
|
|
@@ -4896,7 +4896,7 @@ function createPipeType(metadata) {
|
|
|
4896
4896
|
]));
|
|
4897
4897
|
}
|
|
4898
4898
|
|
|
4899
|
-
// bazel-out/
|
|
4899
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/api.mjs
|
|
4900
4900
|
var R3TemplateDependencyKind;
|
|
4901
4901
|
(function(R3TemplateDependencyKind2) {
|
|
4902
4902
|
R3TemplateDependencyKind2[R3TemplateDependencyKind2["Directive"] = 0] = "Directive";
|
|
@@ -4904,7 +4904,7 @@ var R3TemplateDependencyKind;
|
|
|
4904
4904
|
R3TemplateDependencyKind2[R3TemplateDependencyKind2["NgModule"] = 2] = "NgModule";
|
|
4905
4905
|
})(R3TemplateDependencyKind || (R3TemplateDependencyKind = {}));
|
|
4906
4906
|
|
|
4907
|
-
// bazel-out/
|
|
4907
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/expression_parser/ast.mjs
|
|
4908
4908
|
var ParserError = class {
|
|
4909
4909
|
constructor(message, input, errLocation, ctxLocation) {
|
|
4910
4910
|
this.input = input;
|
|
@@ -5570,7 +5570,7 @@ var BoundElementProperty = class {
|
|
|
5570
5570
|
}
|
|
5571
5571
|
};
|
|
5572
5572
|
|
|
5573
|
-
// bazel-out/
|
|
5573
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/compiler_util/expression_converter.mjs
|
|
5574
5574
|
var EventHandlerVars = class {
|
|
5575
5575
|
};
|
|
5576
5576
|
EventHandlerVars.event = variable("$event");
|
|
@@ -6188,7 +6188,7 @@ var BuiltinFunctionCall = class extends Call {
|
|
|
6188
6188
|
}
|
|
6189
6189
|
};
|
|
6190
6190
|
|
|
6191
|
-
// bazel-out/
|
|
6191
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/schema/dom_security_schema.mjs
|
|
6192
6192
|
var _SECURITY_SCHEMA;
|
|
6193
6193
|
function SECURITY_SCHEMA() {
|
|
6194
6194
|
if (!_SECURITY_SCHEMA) {
|
|
@@ -6246,7 +6246,7 @@ function isIframeSecuritySensitiveAttr(attrName) {
|
|
|
6246
6246
|
return IFRAME_SECURITY_SENSITIVE_ATTRS.has(attrName.toLowerCase());
|
|
6247
6247
|
}
|
|
6248
6248
|
|
|
6249
|
-
// bazel-out/
|
|
6249
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/shadow_css.mjs
|
|
6250
6250
|
var animationKeywords = /* @__PURE__ */ new Set([
|
|
6251
6251
|
"inherit",
|
|
6252
6252
|
"initial",
|
|
@@ -6706,7 +6706,7 @@ function repeatGroups(groups, multiples) {
|
|
|
6706
6706
|
}
|
|
6707
6707
|
}
|
|
6708
6708
|
|
|
6709
|
-
// bazel-out/
|
|
6709
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/style_parser.mjs
|
|
6710
6710
|
function parse(value) {
|
|
6711
6711
|
const styles = [];
|
|
6712
6712
|
let i = 0;
|
|
@@ -6782,7 +6782,7 @@ function hyphenate(value) {
|
|
|
6782
6782
|
}).toLowerCase();
|
|
6783
6783
|
}
|
|
6784
6784
|
|
|
6785
|
-
// bazel-out/
|
|
6785
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/styling_builder.mjs
|
|
6786
6786
|
var IMPORTANT_FLAG = "!important";
|
|
6787
6787
|
var MIN_STYLING_BINDING_SLOTS_REQUIRED = 2;
|
|
6788
6788
|
var StylingBuilder = class {
|
|
@@ -7115,7 +7115,7 @@ function isEmptyExpression(ast) {
|
|
|
7115
7115
|
return ast instanceof EmptyExpr;
|
|
7116
7116
|
}
|
|
7117
7117
|
|
|
7118
|
-
// bazel-out/
|
|
7118
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/expression_parser/lexer.mjs
|
|
7119
7119
|
var TokenType;
|
|
7120
7120
|
(function(TokenType2) {
|
|
7121
7121
|
TokenType2[TokenType2["Character"] = 0] = "Character";
|
|
@@ -7476,7 +7476,7 @@ function parseIntAutoRadix(text) {
|
|
|
7476
7476
|
return result;
|
|
7477
7477
|
}
|
|
7478
7478
|
|
|
7479
|
-
// bazel-out/
|
|
7479
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/expression_parser/parser.mjs
|
|
7480
7480
|
var SplitInterpolation = class {
|
|
7481
7481
|
constructor(strings, expressions, offsets) {
|
|
7482
7482
|
this.strings = strings;
|
|
@@ -8370,7 +8370,7 @@ function getIndexMapForOriginalTemplate(interpolatedTokens) {
|
|
|
8370
8370
|
return offsetMap;
|
|
8371
8371
|
}
|
|
8372
8372
|
|
|
8373
|
-
// bazel-out/
|
|
8373
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/ast.mjs
|
|
8374
8374
|
var NodeWithI18n = class {
|
|
8375
8375
|
constructor(sourceSpan, i18n) {
|
|
8376
8376
|
this.sourceSpan = sourceSpan;
|
|
@@ -8458,7 +8458,7 @@ function visitAll2(visitor, nodes, context = null) {
|
|
|
8458
8458
|
return result;
|
|
8459
8459
|
}
|
|
8460
8460
|
|
|
8461
|
-
// bazel-out/
|
|
8461
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/tags.mjs
|
|
8462
8462
|
var TagContentType;
|
|
8463
8463
|
(function(TagContentType2) {
|
|
8464
8464
|
TagContentType2[TagContentType2["RAW_TEXT"] = 0] = "RAW_TEXT";
|
|
@@ -8491,11 +8491,11 @@ function mergeNsAndName(prefix, localName) {
|
|
|
8491
8491
|
return prefix ? `:${prefix}:${localName}` : localName;
|
|
8492
8492
|
}
|
|
8493
8493
|
|
|
8494
|
-
// bazel-out/
|
|
8494
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/schema/element_schema_registry.mjs
|
|
8495
8495
|
var ElementSchemaRegistry = class {
|
|
8496
8496
|
};
|
|
8497
8497
|
|
|
8498
|
-
// bazel-out/
|
|
8498
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/schema/dom_element_schema_registry.mjs
|
|
8499
8499
|
var BOOLEAN = "boolean";
|
|
8500
8500
|
var NUMBER = "number";
|
|
8501
8501
|
var STRING = "string";
|
|
@@ -8848,7 +8848,7 @@ function _isPixelDimensionStyle(prop) {
|
|
|
8848
8848
|
}
|
|
8849
8849
|
}
|
|
8850
8850
|
|
|
8851
|
-
// bazel-out/
|
|
8851
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/html_tags.mjs
|
|
8852
8852
|
var HtmlTagDefinition = class {
|
|
8853
8853
|
constructor({ closedByChildren, implicitNamespacePrefix, contentType = TagContentType.PARSABLE_DATA, closedByParent = false, isVoid = false, ignoreFirstLf = false, preventNamespaceInheritance = false, canSelfClose = false } = {}) {
|
|
8854
8854
|
this.closedByChildren = {};
|
|
@@ -8966,7 +8966,7 @@ function getHtmlTagDefinition(tagName) {
|
|
|
8966
8966
|
return (_b = (_a = TAG_DEFINITIONS[tagName]) != null ? _a : TAG_DEFINITIONS[tagName.toLowerCase()]) != null ? _b : DEFAULT_TAG_DEFINITION;
|
|
8967
8967
|
}
|
|
8968
8968
|
|
|
8969
|
-
// bazel-out/
|
|
8969
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/entities.mjs
|
|
8970
8970
|
var NAMED_ENTITIES = {
|
|
8971
8971
|
"AElig": "\xC6",
|
|
8972
8972
|
"AMP": "&",
|
|
@@ -11097,7 +11097,7 @@ var NAMED_ENTITIES = {
|
|
|
11097
11097
|
var NGSP_UNICODE = "\uE500";
|
|
11098
11098
|
NAMED_ENTITIES["ngsp"] = NGSP_UNICODE;
|
|
11099
11099
|
|
|
11100
|
-
// bazel-out/
|
|
11100
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/lexer.mjs
|
|
11101
11101
|
var TokenError = class extends ParseError {
|
|
11102
11102
|
constructor(errorMsg, tokenType, span) {
|
|
11103
11103
|
super(span, errorMsg);
|
|
@@ -11932,7 +11932,7 @@ var CursorError = class {
|
|
|
11932
11932
|
}
|
|
11933
11933
|
};
|
|
11934
11934
|
|
|
11935
|
-
// bazel-out/
|
|
11935
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/parser.mjs
|
|
11936
11936
|
var TreeError = class extends ParseError {
|
|
11937
11937
|
static create(elementName, span, msg) {
|
|
11938
11938
|
return new TreeError(elementName, span, msg);
|
|
@@ -12259,7 +12259,7 @@ function decodeEntity(match, entity) {
|
|
|
12259
12259
|
return match;
|
|
12260
12260
|
}
|
|
12261
12261
|
|
|
12262
|
-
// bazel-out/
|
|
12262
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/html_parser.mjs
|
|
12263
12263
|
var HtmlParser = class extends Parser2 {
|
|
12264
12264
|
constructor() {
|
|
12265
12265
|
super(getHtmlTagDefinition);
|
|
@@ -12269,7 +12269,7 @@ var HtmlParser = class extends Parser2 {
|
|
|
12269
12269
|
}
|
|
12270
12270
|
};
|
|
12271
12271
|
|
|
12272
|
-
// bazel-out/
|
|
12272
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/html_whitespaces.mjs
|
|
12273
12273
|
var PRESERVE_WS_ATTR_NAME = "ngPreserveWhitespaces";
|
|
12274
12274
|
var SKIP_WS_TRIM_TAGS = /* @__PURE__ */ new Set(["pre", "template", "textarea", "script", "style"]);
|
|
12275
12275
|
var WS_CHARS = " \f\n\r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF";
|
|
@@ -12329,7 +12329,7 @@ function visitAllWithSiblings(visitor, nodes) {
|
|
|
12329
12329
|
return result;
|
|
12330
12330
|
}
|
|
12331
12331
|
|
|
12332
|
-
// bazel-out/
|
|
12332
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/map_util.mjs
|
|
12333
12333
|
function mapLiteral(obj, quoted = false) {
|
|
12334
12334
|
return literalMap(Object.keys(obj).map((key) => ({
|
|
12335
12335
|
key,
|
|
@@ -12338,7 +12338,7 @@ function mapLiteral(obj, quoted = false) {
|
|
|
12338
12338
|
})));
|
|
12339
12339
|
}
|
|
12340
12340
|
|
|
12341
|
-
// bazel-out/
|
|
12341
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/schema/trusted_types_sinks.mjs
|
|
12342
12342
|
var TRUSTED_TYPES_SINKS = /* @__PURE__ */ new Set([
|
|
12343
12343
|
"iframe|srcdoc",
|
|
12344
12344
|
"*|innerhtml",
|
|
@@ -12353,7 +12353,7 @@ function isTrustedTypesSink(tagName, propName) {
|
|
|
12353
12353
|
return TRUSTED_TYPES_SINKS.has(tagName + "|" + propName) || TRUSTED_TYPES_SINKS.has("*|" + propName);
|
|
12354
12354
|
}
|
|
12355
12355
|
|
|
12356
|
-
// bazel-out/
|
|
12356
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template_parser/binding_parser.mjs
|
|
12357
12357
|
var PROPERTY_PARTS_SEPARATOR = ".";
|
|
12358
12358
|
var ATTRIBUTE_PREFIX = "attr";
|
|
12359
12359
|
var CLASS_PREFIX = "class";
|
|
@@ -12673,7 +12673,7 @@ function moveParseSourceSpan(sourceSpan, absoluteSpan) {
|
|
|
12673
12673
|
return new ParseSourceSpan(sourceSpan.start.moveBy(startDiff), sourceSpan.end.moveBy(endDiff), sourceSpan.fullStart.moveBy(startDiff), sourceSpan.details);
|
|
12674
12674
|
}
|
|
12675
12675
|
|
|
12676
|
-
// bazel-out/
|
|
12676
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/style_url_resolver.mjs
|
|
12677
12677
|
function isStyleUrlResolvable(url) {
|
|
12678
12678
|
if (url == null || url.length === 0 || url[0] == "/")
|
|
12679
12679
|
return false;
|
|
@@ -12682,7 +12682,7 @@ function isStyleUrlResolvable(url) {
|
|
|
12682
12682
|
}
|
|
12683
12683
|
var URL_WITH_SCHEMA_REGEXP = /^([^:/?#]+):/;
|
|
12684
12684
|
|
|
12685
|
-
// bazel-out/
|
|
12685
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template_parser/template_preparser.mjs
|
|
12686
12686
|
var NG_CONTENT_SELECT_ATTR = "select";
|
|
12687
12687
|
var LINK_ELEMENT = "link";
|
|
12688
12688
|
var LINK_STYLE_REL_ATTR = "rel";
|
|
@@ -12752,7 +12752,7 @@ function normalizeNgContentSelect(selectAttr) {
|
|
|
12752
12752
|
return selectAttr;
|
|
12753
12753
|
}
|
|
12754
12754
|
|
|
12755
|
-
// bazel-out/
|
|
12755
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_template_transform.mjs
|
|
12756
12756
|
var BIND_NAME_REGEXP = /^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/;
|
|
12757
12757
|
var KW_BIND_IDX = 1;
|
|
12758
12758
|
var KW_LET_IDX = 2;
|
|
@@ -13100,7 +13100,7 @@ function textContents(node) {
|
|
|
13100
13100
|
}
|
|
13101
13101
|
}
|
|
13102
13102
|
|
|
13103
|
-
// bazel-out/
|
|
13103
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/i18n/context.mjs
|
|
13104
13104
|
var TagType;
|
|
13105
13105
|
(function(TagType2) {
|
|
13106
13106
|
TagType2[TagType2["ELEMENT"] = 0] = "ELEMENT";
|
|
@@ -13235,7 +13235,7 @@ function serializePlaceholderValue(value) {
|
|
|
13235
13235
|
}
|
|
13236
13236
|
}
|
|
13237
13237
|
|
|
13238
|
-
// bazel-out/
|
|
13238
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/i18n/icu_serializer.mjs
|
|
13239
13239
|
var IcuSerializerVisitor = class {
|
|
13240
13240
|
visitText(text) {
|
|
13241
13241
|
return text.value;
|
|
@@ -13266,7 +13266,7 @@ function serializeIcuNode(icu) {
|
|
|
13266
13266
|
return icu.visit(serializer);
|
|
13267
13267
|
}
|
|
13268
13268
|
|
|
13269
|
-
// bazel-out/
|
|
13269
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/serializers/placeholder.mjs
|
|
13270
13270
|
var TAG_TO_PLACEHOLDER_NAMES = {
|
|
13271
13271
|
"A": "LINK",
|
|
13272
13272
|
"B": "BOLD_TEXT",
|
|
@@ -13360,7 +13360,7 @@ var PlaceholderRegistry = class {
|
|
|
13360
13360
|
}
|
|
13361
13361
|
};
|
|
13362
13362
|
|
|
13363
|
-
// bazel-out/
|
|
13363
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/i18n_parser.mjs
|
|
13364
13364
|
var _expParser = new Parser(new Lexer());
|
|
13365
13365
|
function createI18nMessageFactory(interpolationConfig) {
|
|
13366
13366
|
const visitor = new _I18nVisitor(_expParser, interpolationConfig);
|
|
@@ -13515,14 +13515,14 @@ function extractPlaceholderName(input) {
|
|
|
13515
13515
|
return input.split(_CUSTOM_PH_EXP)[2];
|
|
13516
13516
|
}
|
|
13517
13517
|
|
|
13518
|
-
// bazel-out/
|
|
13518
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/parse_util.mjs
|
|
13519
13519
|
var I18nError = class extends ParseError {
|
|
13520
13520
|
constructor(span, msg) {
|
|
13521
13521
|
super(span, msg);
|
|
13522
13522
|
}
|
|
13523
13523
|
};
|
|
13524
13524
|
|
|
13525
|
-
// bazel-out/
|
|
13525
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/i18n/meta.mjs
|
|
13526
13526
|
var setI18nRefs = (htmlNode, i18nNode) => {
|
|
13527
13527
|
if (htmlNode instanceof NodeWithI18n) {
|
|
13528
13528
|
if (i18nNode instanceof IcuPlaceholder && htmlNode.i18n instanceof Message) {
|
|
@@ -13671,7 +13671,7 @@ function i18nMetaToJSDoc(meta) {
|
|
|
13671
13671
|
return jsDocComment(tags);
|
|
13672
13672
|
}
|
|
13673
13673
|
|
|
13674
|
-
// bazel-out/
|
|
13674
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/i18n/get_msg_utils.mjs
|
|
13675
13675
|
var GOOG_GET_MSG = "goog.getMsg";
|
|
13676
13676
|
function createGoogleGetMsgStatements(variable2, message, closureVar, placeholderValues) {
|
|
13677
13677
|
const messageString = serializeI18nMessageForGetMsg(message);
|
|
@@ -13719,7 +13719,7 @@ function serializeI18nMessageForGetMsg(message) {
|
|
|
13719
13719
|
return message.nodes.map((node) => node.visit(serializerVisitor2, null)).join("");
|
|
13720
13720
|
}
|
|
13721
13721
|
|
|
13722
|
-
// bazel-out/
|
|
13722
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/i18n/localize_utils.mjs
|
|
13723
13723
|
function createLocalizeStatements(variable2, message, params) {
|
|
13724
13724
|
const { messageParts, placeHolders } = serializeI18nMessageForLocalize(message);
|
|
13725
13725
|
const sourceSpan = getSourceSpan(message);
|
|
@@ -13802,7 +13802,7 @@ function createEmptyMessagePart(location) {
|
|
|
13802
13802
|
return new LiteralPiece("", new ParseSourceSpan(location, location));
|
|
13803
13803
|
}
|
|
13804
13804
|
|
|
13805
|
-
// bazel-out/
|
|
13805
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/template.mjs
|
|
13806
13806
|
var NG_CONTENT_SELECT_ATTR2 = "select";
|
|
13807
13807
|
var NG_PROJECT_AS_ATTR_NAME = "ngProjectAs";
|
|
13808
13808
|
var EVENT_BINDING_SCOPE_GLOBALS = /* @__PURE__ */ new Set(["$event"]);
|
|
@@ -15104,7 +15104,7 @@ function createClosureModeGuard() {
|
|
|
15104
15104
|
return typeofExpr(variable(NG_I18N_CLOSURE_MODE)).notIdentical(literal("undefined", STRING_TYPE)).and(variable(NG_I18N_CLOSURE_MODE));
|
|
15105
15105
|
}
|
|
15106
15106
|
|
|
15107
|
-
// bazel-out/
|
|
15107
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/compiler.mjs
|
|
15108
15108
|
var ATTR_REGEX = /attr\.([^\]]+)/;
|
|
15109
15109
|
var COMPONENT_VARIABLE = "%COMP%";
|
|
15110
15110
|
var HOST_ATTR = `_nghost-${COMPONENT_VARIABLE}`;
|
|
@@ -15623,11 +15623,11 @@ function createHostDirectivesMappingArray(mapping) {
|
|
|
15623
15623
|
return elements.length > 0 ? literalArr(elements) : null;
|
|
15624
15624
|
}
|
|
15625
15625
|
|
|
15626
|
-
// bazel-out/
|
|
15626
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/resource_loader.mjs
|
|
15627
15627
|
var ResourceLoader = class {
|
|
15628
15628
|
};
|
|
15629
15629
|
|
|
15630
|
-
// bazel-out/
|
|
15630
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/jit_compiler_facade.mjs
|
|
15631
15631
|
var CompilerFacadeImpl = class {
|
|
15632
15632
|
constructor(jitEvaluator = new JitEvaluator()) {
|
|
15633
15633
|
this.jitEvaluator = jitEvaluator;
|
|
@@ -16110,10 +16110,10 @@ function publishFacade(global2) {
|
|
|
16110
16110
|
ng.\u0275compilerFacade = new CompilerFacadeImpl();
|
|
16111
16111
|
}
|
|
16112
16112
|
|
|
16113
|
-
// bazel-out/
|
|
16114
|
-
var VERSION2 = new Version("16.0.0-next.
|
|
16113
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/version.mjs
|
|
16114
|
+
var VERSION2 = new Version("16.0.0-next.2");
|
|
16115
16115
|
|
|
16116
|
-
// bazel-out/
|
|
16116
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
|
|
16117
16117
|
var _I18N_ATTR = "i18n";
|
|
16118
16118
|
var _I18N_ATTR_PREFIX = "i18n-";
|
|
16119
16119
|
var _I18N_COMMENT_PREFIX_REGEXP = /^i18n:?/;
|
|
@@ -16417,7 +16417,7 @@ function _parseMessageMeta(i18n) {
|
|
|
16417
16417
|
return { meaning, description, id: id.trim() };
|
|
16418
16418
|
}
|
|
16419
16419
|
|
|
16420
|
-
// bazel-out/
|
|
16420
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/xml_tags.mjs
|
|
16421
16421
|
var XmlTagDefinition = class {
|
|
16422
16422
|
constructor() {
|
|
16423
16423
|
this.closedByParent = false;
|
|
@@ -16441,7 +16441,7 @@ function getXmlTagDefinition(tagName) {
|
|
|
16441
16441
|
return _TAG_DEFINITION;
|
|
16442
16442
|
}
|
|
16443
16443
|
|
|
16444
|
-
// bazel-out/
|
|
16444
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/xml_parser.mjs
|
|
16445
16445
|
var XmlParser = class extends Parser2 {
|
|
16446
16446
|
constructor() {
|
|
16447
16447
|
super(getXmlTagDefinition);
|
|
@@ -16451,7 +16451,7 @@ var XmlParser = class extends Parser2 {
|
|
|
16451
16451
|
}
|
|
16452
16452
|
};
|
|
16453
16453
|
|
|
16454
|
-
// bazel-out/
|
|
16454
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/serializers/xliff.mjs
|
|
16455
16455
|
var _VERSION = "1.2";
|
|
16456
16456
|
var _XMLNS = "urn:oasis:names:tc:xliff:document:1.2";
|
|
16457
16457
|
var _DEFAULT_SOURCE_LANG = "en";
|
|
@@ -16691,7 +16691,7 @@ function getCtypeForTag(tag) {
|
|
|
16691
16691
|
}
|
|
16692
16692
|
}
|
|
16693
16693
|
|
|
16694
|
-
// bazel-out/
|
|
16694
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/serializers/xliff2.mjs
|
|
16695
16695
|
var _VERSION2 = "2.0";
|
|
16696
16696
|
var _XMLNS2 = "urn:oasis:names:tc:xliff:document:2.0";
|
|
16697
16697
|
var _DEFAULT_SOURCE_LANG2 = "en";
|
|
@@ -16979,7 +16979,7 @@ function getTypeForTag(tag) {
|
|
|
16979
16979
|
}
|
|
16980
16980
|
}
|
|
16981
16981
|
|
|
16982
|
-
// bazel-out/
|
|
16982
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/message_bundle.mjs
|
|
16983
16983
|
var MessageBundle = class {
|
|
16984
16984
|
constructor(_htmlParser, _implicitTags, _implicitAttrs, _locale = null) {
|
|
16985
16985
|
this._htmlParser = _htmlParser;
|
|
@@ -17046,7 +17046,7 @@ var MapPlaceholderNames = class extends CloneVisitor {
|
|
|
17046
17046
|
}
|
|
17047
17047
|
};
|
|
17048
17048
|
|
|
17049
|
-
// bazel-out/
|
|
17049
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/partial/api.mjs
|
|
17050
17050
|
var FactoryTarget2;
|
|
17051
17051
|
(function(FactoryTarget3) {
|
|
17052
17052
|
FactoryTarget3[FactoryTarget3["Directive"] = 0] = "Directive";
|
|
@@ -17056,7 +17056,7 @@ var FactoryTarget2;
|
|
|
17056
17056
|
FactoryTarget3[FactoryTarget3["NgModule"] = 4] = "NgModule";
|
|
17057
17057
|
})(FactoryTarget2 || (FactoryTarget2 = {}));
|
|
17058
17058
|
|
|
17059
|
-
// bazel-out/
|
|
17059
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/t2_binder.mjs
|
|
17060
17060
|
var R3TargetBinder = class {
|
|
17061
17061
|
constructor(directiveMatcher) {
|
|
17062
17062
|
this.directiveMatcher = directiveMatcher;
|
|
@@ -17408,7 +17408,7 @@ function extractTemplateEntities(rootScope) {
|
|
|
17408
17408
|
return templateEntities;
|
|
17409
17409
|
}
|
|
17410
17410
|
|
|
17411
|
-
// bazel-out/
|
|
17411
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_class_metadata_compiler.mjs
|
|
17412
17412
|
function compileClassMetadata(metadata) {
|
|
17413
17413
|
var _a, _b;
|
|
17414
17414
|
const fnCall = importExpr(Identifiers.setClassMetadata).callFn([
|
|
@@ -17421,12 +17421,12 @@ function compileClassMetadata(metadata) {
|
|
|
17421
17421
|
return iife.callFn([]);
|
|
17422
17422
|
}
|
|
17423
17423
|
|
|
17424
|
-
// bazel-out/
|
|
17424
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/partial/class_metadata.mjs
|
|
17425
17425
|
var MINIMUM_PARTIAL_LINKER_VERSION = "12.0.0";
|
|
17426
17426
|
function compileDeclareClassMetadata(metadata) {
|
|
17427
17427
|
const definitionMap = new DefinitionMap();
|
|
17428
17428
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
17429
|
-
definitionMap.set("version", literal("16.0.0-next.
|
|
17429
|
+
definitionMap.set("version", literal("16.0.0-next.2"));
|
|
17430
17430
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
17431
17431
|
definitionMap.set("type", metadata.type);
|
|
17432
17432
|
definitionMap.set("decorators", metadata.decorators);
|
|
@@ -17435,7 +17435,7 @@ function compileDeclareClassMetadata(metadata) {
|
|
|
17435
17435
|
return importExpr(Identifiers.declareClassMetadata).callFn([definitionMap.toLiteralMap()]);
|
|
17436
17436
|
}
|
|
17437
17437
|
|
|
17438
|
-
// bazel-out/
|
|
17438
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/partial/util.mjs
|
|
17439
17439
|
function toOptionalLiteralArray(values, mapper) {
|
|
17440
17440
|
if (values === null || values.length === 0) {
|
|
17441
17441
|
return null;
|
|
@@ -17483,7 +17483,7 @@ function compileDependency(dep) {
|
|
|
17483
17483
|
return depMeta.toLiteralMap();
|
|
17484
17484
|
}
|
|
17485
17485
|
|
|
17486
|
-
// bazel-out/
|
|
17486
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/partial/directive.mjs
|
|
17487
17487
|
var MINIMUM_PARTIAL_LINKER_VERSION2 = "14.0.0";
|
|
17488
17488
|
function compileDeclareDirectiveFromMetadata(meta) {
|
|
17489
17489
|
const definitionMap = createDirectiveDefinitionMap(meta);
|
|
@@ -17495,7 +17495,7 @@ function createDirectiveDefinitionMap(meta) {
|
|
|
17495
17495
|
var _a;
|
|
17496
17496
|
const definitionMap = new DefinitionMap();
|
|
17497
17497
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION2));
|
|
17498
|
-
definitionMap.set("version", literal("16.0.0-next.
|
|
17498
|
+
definitionMap.set("version", literal("16.0.0-next.2"));
|
|
17499
17499
|
definitionMap.set("type", meta.internalType);
|
|
17500
17500
|
if (meta.isStandalone) {
|
|
17501
17501
|
definitionMap.set("isStandalone", literal(meta.isStandalone));
|
|
@@ -17585,7 +17585,7 @@ function createHostDirectives(hostDirectives) {
|
|
|
17585
17585
|
return literalArr(expressions);
|
|
17586
17586
|
}
|
|
17587
17587
|
|
|
17588
|
-
// bazel-out/
|
|
17588
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/partial/component.mjs
|
|
17589
17589
|
function compileDeclareComponentFromMetadata(meta, template, additionalTemplateInfo) {
|
|
17590
17590
|
const definitionMap = createComponentDefinitionMap(meta, template, additionalTemplateInfo);
|
|
17591
17591
|
const expression = importExpr(Identifiers.declareComponent).callFn([definitionMap.toLiteralMap()]);
|
|
@@ -17672,12 +17672,12 @@ function compileUsedDependenciesMetadata(meta) {
|
|
|
17672
17672
|
});
|
|
17673
17673
|
}
|
|
17674
17674
|
|
|
17675
|
-
// bazel-out/
|
|
17675
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/partial/factory.mjs
|
|
17676
17676
|
var MINIMUM_PARTIAL_LINKER_VERSION3 = "12.0.0";
|
|
17677
17677
|
function compileDeclareFactoryFunction(meta) {
|
|
17678
17678
|
const definitionMap = new DefinitionMap();
|
|
17679
17679
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION3));
|
|
17680
|
-
definitionMap.set("version", literal("16.0.0-next.
|
|
17680
|
+
definitionMap.set("version", literal("16.0.0-next.2"));
|
|
17681
17681
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
17682
17682
|
definitionMap.set("type", meta.internalType);
|
|
17683
17683
|
definitionMap.set("deps", compileDependencies(meta.deps));
|
|
@@ -17689,7 +17689,7 @@ function compileDeclareFactoryFunction(meta) {
|
|
|
17689
17689
|
};
|
|
17690
17690
|
}
|
|
17691
17691
|
|
|
17692
|
-
// bazel-out/
|
|
17692
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/partial/injectable.mjs
|
|
17693
17693
|
var MINIMUM_PARTIAL_LINKER_VERSION4 = "12.0.0";
|
|
17694
17694
|
function compileDeclareInjectableFromMetadata(meta) {
|
|
17695
17695
|
const definitionMap = createInjectableDefinitionMap(meta);
|
|
@@ -17700,7 +17700,7 @@ function compileDeclareInjectableFromMetadata(meta) {
|
|
|
17700
17700
|
function createInjectableDefinitionMap(meta) {
|
|
17701
17701
|
const definitionMap = new DefinitionMap();
|
|
17702
17702
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION4));
|
|
17703
|
-
definitionMap.set("version", literal("16.0.0-next.
|
|
17703
|
+
definitionMap.set("version", literal("16.0.0-next.2"));
|
|
17704
17704
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
17705
17705
|
definitionMap.set("type", meta.internalType);
|
|
17706
17706
|
if (meta.providedIn !== void 0) {
|
|
@@ -17727,7 +17727,7 @@ function createInjectableDefinitionMap(meta) {
|
|
|
17727
17727
|
return definitionMap;
|
|
17728
17728
|
}
|
|
17729
17729
|
|
|
17730
|
-
// bazel-out/
|
|
17730
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/partial/injector.mjs
|
|
17731
17731
|
var MINIMUM_PARTIAL_LINKER_VERSION5 = "12.0.0";
|
|
17732
17732
|
function compileDeclareInjectorFromMetadata(meta) {
|
|
17733
17733
|
const definitionMap = createInjectorDefinitionMap(meta);
|
|
@@ -17738,7 +17738,7 @@ function compileDeclareInjectorFromMetadata(meta) {
|
|
|
17738
17738
|
function createInjectorDefinitionMap(meta) {
|
|
17739
17739
|
const definitionMap = new DefinitionMap();
|
|
17740
17740
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION5));
|
|
17741
|
-
definitionMap.set("version", literal("16.0.0-next.
|
|
17741
|
+
definitionMap.set("version", literal("16.0.0-next.2"));
|
|
17742
17742
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
17743
17743
|
definitionMap.set("type", meta.internalType);
|
|
17744
17744
|
definitionMap.set("providers", meta.providers);
|
|
@@ -17748,7 +17748,7 @@ function createInjectorDefinitionMap(meta) {
|
|
|
17748
17748
|
return definitionMap;
|
|
17749
17749
|
}
|
|
17750
17750
|
|
|
17751
|
-
// bazel-out/
|
|
17751
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/partial/ng_module.mjs
|
|
17752
17752
|
var MINIMUM_PARTIAL_LINKER_VERSION6 = "14.0.0";
|
|
17753
17753
|
function compileDeclareNgModuleFromMetadata(meta) {
|
|
17754
17754
|
const definitionMap = createNgModuleDefinitionMap(meta);
|
|
@@ -17759,7 +17759,7 @@ function compileDeclareNgModuleFromMetadata(meta) {
|
|
|
17759
17759
|
function createNgModuleDefinitionMap(meta) {
|
|
17760
17760
|
const definitionMap = new DefinitionMap();
|
|
17761
17761
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION6));
|
|
17762
|
-
definitionMap.set("version", literal("16.0.0-next.
|
|
17762
|
+
definitionMap.set("version", literal("16.0.0-next.2"));
|
|
17763
17763
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
17764
17764
|
definitionMap.set("type", meta.internalType);
|
|
17765
17765
|
if (meta.bootstrap.length > 0) {
|
|
@@ -17783,7 +17783,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
17783
17783
|
return definitionMap;
|
|
17784
17784
|
}
|
|
17785
17785
|
|
|
17786
|
-
// bazel-out/
|
|
17786
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/partial/pipe.mjs
|
|
17787
17787
|
var MINIMUM_PARTIAL_LINKER_VERSION7 = "14.0.0";
|
|
17788
17788
|
function compileDeclarePipeFromMetadata(meta) {
|
|
17789
17789
|
const definitionMap = createPipeDefinitionMap(meta);
|
|
@@ -17794,7 +17794,7 @@ function compileDeclarePipeFromMetadata(meta) {
|
|
|
17794
17794
|
function createPipeDefinitionMap(meta) {
|
|
17795
17795
|
const definitionMap = new DefinitionMap();
|
|
17796
17796
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION7));
|
|
17797
|
-
definitionMap.set("version", literal("16.0.0-next.
|
|
17797
|
+
definitionMap.set("version", literal("16.0.0-next.2"));
|
|
17798
17798
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
17799
17799
|
definitionMap.set("type", meta.internalType);
|
|
17800
17800
|
if (meta.isStandalone) {
|
|
@@ -17807,13 +17807,13 @@ function createPipeDefinitionMap(meta) {
|
|
|
17807
17807
|
return definitionMap;
|
|
17808
17808
|
}
|
|
17809
17809
|
|
|
17810
|
-
// bazel-out/
|
|
17810
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/compiler.mjs
|
|
17811
17811
|
publishFacade(_global);
|
|
17812
17812
|
|
|
17813
|
-
// bazel-out/
|
|
17814
|
-
var VERSION3 = new Version("16.0.0-next.
|
|
17813
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/version.mjs
|
|
17814
|
+
var VERSION3 = new Version("16.0.0-next.2");
|
|
17815
17815
|
|
|
17816
|
-
// bazel-out/
|
|
17816
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
|
|
17817
17817
|
var EmitFlags;
|
|
17818
17818
|
(function(EmitFlags2) {
|
|
17819
17819
|
EmitFlags2[EmitFlags2["DTS"] = 1] = "DTS";
|
|
@@ -17825,13 +17825,13 @@ var EmitFlags;
|
|
|
17825
17825
|
EmitFlags2[EmitFlags2["All"] = 31] = "All";
|
|
17826
17826
|
})(EmitFlags || (EmitFlags = {}));
|
|
17827
17827
|
|
|
17828
|
-
// bazel-out/
|
|
17828
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/compiler_host.mjs
|
|
17829
17829
|
var import_typescript2 = __toESM(require("typescript"), 1);
|
|
17830
17830
|
|
|
17831
|
-
// bazel-out/
|
|
17831
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
17832
17832
|
var import_typescript94 = __toESM(require("typescript"), 1);
|
|
17833
17833
|
|
|
17834
|
-
// bazel-out/
|
|
17834
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
|
|
17835
17835
|
var path = __toESM(require("path"), 1);
|
|
17836
17836
|
function i18nGetExtension(formatName) {
|
|
17837
17837
|
const format = formatName.toLowerCase();
|
|
@@ -17881,10 +17881,10 @@ function getPathNormalizer(basePath) {
|
|
|
17881
17881
|
};
|
|
17882
17882
|
}
|
|
17883
17883
|
|
|
17884
|
-
// bazel-out/
|
|
17884
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
17885
17885
|
var import_typescript3 = __toESM(require("typescript"), 1);
|
|
17886
17886
|
|
|
17887
|
-
// bazel-out/
|
|
17887
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/version_helpers.mjs
|
|
17888
17888
|
function toNumbers(value) {
|
|
17889
17889
|
const suffixIndex = value.lastIndexOf("-");
|
|
17890
17890
|
return value.slice(0, suffixIndex === -1 ? value.length : suffixIndex).split(".").map((segment) => {
|
|
@@ -17919,7 +17919,7 @@ function compareVersions(v1, v2) {
|
|
|
17919
17919
|
return compareNumbers(toNumbers(v1), toNumbers(v2));
|
|
17920
17920
|
}
|
|
17921
17921
|
|
|
17922
|
-
// bazel-out/
|
|
17922
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
17923
17923
|
var MIN_TS_VERSION = "4.9.3";
|
|
17924
17924
|
var MAX_TS_VERSION = "5.1.0";
|
|
17925
17925
|
var tsVersion = import_typescript3.default.version;
|
|
@@ -17932,13 +17932,13 @@ function verifySupportedTypeScriptVersion() {
|
|
|
17932
17932
|
checkVersion(tsVersion, MIN_TS_VERSION, MAX_TS_VERSION);
|
|
17933
17933
|
}
|
|
17934
17934
|
|
|
17935
|
-
// bazel-out/
|
|
17935
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
17936
17936
|
var import_typescript90 = __toESM(require("typescript"), 1);
|
|
17937
17937
|
|
|
17938
|
-
// bazel-out/
|
|
17938
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
|
|
17939
17939
|
var import_typescript19 = __toESM(require("typescript"), 1);
|
|
17940
17940
|
|
|
17941
|
-
// bazel-out/
|
|
17941
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_code.mjs
|
|
17942
17942
|
var ErrorCode;
|
|
17943
17943
|
(function(ErrorCode2) {
|
|
17944
17944
|
ErrorCode2[ErrorCode2["DECORATOR_ARG_NOT_LITERAL"] = 1001] = "DECORATOR_ARG_NOT_LITERAL";
|
|
@@ -18008,7 +18008,7 @@ var ErrorCode;
|
|
|
18008
18008
|
ErrorCode2[ErrorCode2["SUGGEST_SUBOPTIMAL_TYPE_INFERENCE"] = 10002] = "SUGGEST_SUBOPTIMAL_TYPE_INFERENCE";
|
|
18009
18009
|
})(ErrorCode || (ErrorCode = {}));
|
|
18010
18010
|
|
|
18011
|
-
// bazel-out/
|
|
18011
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/docs.mjs
|
|
18012
18012
|
var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
|
|
18013
18013
|
ErrorCode.DECORATOR_ARG_NOT_LITERAL,
|
|
18014
18014
|
ErrorCode.IMPORT_CYCLE_DETECTED,
|
|
@@ -18020,15 +18020,15 @@ var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
|
|
|
18020
18020
|
ErrorCode.WARN_NGMODULE_ID_UNNECESSARY
|
|
18021
18021
|
]);
|
|
18022
18022
|
|
|
18023
|
-
// bazel-out/
|
|
18023
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
|
|
18024
18024
|
var import_typescript4 = __toESM(require("typescript"), 1);
|
|
18025
18025
|
|
|
18026
|
-
// bazel-out/
|
|
18026
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/util.mjs
|
|
18027
18027
|
function ngErrorCode(code) {
|
|
18028
18028
|
return parseInt("-99" + code);
|
|
18029
18029
|
}
|
|
18030
18030
|
|
|
18031
|
-
// bazel-out/
|
|
18031
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
|
|
18032
18032
|
var FatalDiagnosticError = class {
|
|
18033
18033
|
constructor(code, node, message, relatedInformation) {
|
|
18034
18034
|
this.code = code;
|
|
@@ -18084,10 +18084,10 @@ function addDiagnosticChain(messageText, add) {
|
|
|
18084
18084
|
return messageText;
|
|
18085
18085
|
}
|
|
18086
18086
|
|
|
18087
|
-
// bazel-out/
|
|
18087
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.mjs
|
|
18088
18088
|
var ERROR_DETAILS_PAGE_BASE_URL = "https://angular.io/errors";
|
|
18089
18089
|
|
|
18090
|
-
// bazel-out/
|
|
18090
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.mjs
|
|
18091
18091
|
var ExtendedTemplateDiagnosticName;
|
|
18092
18092
|
(function(ExtendedTemplateDiagnosticName2) {
|
|
18093
18093
|
ExtendedTemplateDiagnosticName2["INVALID_BANANA_IN_BOX"] = "invalidBananaInBox";
|
|
@@ -18099,7 +18099,7 @@ var ExtendedTemplateDiagnosticName;
|
|
|
18099
18099
|
ExtendedTemplateDiagnosticName2["SUFFIX_NOT_SUPPORTED"] = "suffixNotSupported";
|
|
18100
18100
|
})(ExtendedTemplateDiagnosticName || (ExtendedTemplateDiagnosticName = {}));
|
|
18101
18101
|
|
|
18102
|
-
// bazel-out/
|
|
18102
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/host.mjs
|
|
18103
18103
|
var import_typescript5 = __toESM(require("typescript"), 1);
|
|
18104
18104
|
var Decorator = {
|
|
18105
18105
|
nodeForError: (decorator) => {
|
|
@@ -18134,7 +18134,7 @@ function isConcreteDeclaration(decl) {
|
|
|
18134
18134
|
return decl.kind === 0;
|
|
18135
18135
|
}
|
|
18136
18136
|
|
|
18137
|
-
// bazel-out/
|
|
18137
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/type_to_value.mjs
|
|
18138
18138
|
var import_typescript6 = __toESM(require("typescript"), 1);
|
|
18139
18139
|
function typeToValue(typeNode, checker) {
|
|
18140
18140
|
if (typeNode === null) {
|
|
@@ -18300,10 +18300,10 @@ function extractModuleName(node) {
|
|
|
18300
18300
|
return node.moduleSpecifier.text;
|
|
18301
18301
|
}
|
|
18302
18302
|
|
|
18303
|
-
// bazel-out/
|
|
18303
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
|
|
18304
18304
|
var import_typescript8 = __toESM(require("typescript"), 1);
|
|
18305
18305
|
|
|
18306
|
-
// bazel-out/
|
|
18306
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/util.mjs
|
|
18307
18307
|
var import_typescript7 = __toESM(require("typescript"), 1);
|
|
18308
18308
|
function isNamedClassDeclaration(node) {
|
|
18309
18309
|
return import_typescript7.default.isClassDeclaration(node) && isIdentifier(node.name);
|
|
@@ -18312,7 +18312,7 @@ function isIdentifier(node) {
|
|
|
18312
18312
|
return node !== void 0 && import_typescript7.default.isIdentifier(node);
|
|
18313
18313
|
}
|
|
18314
18314
|
|
|
18315
|
-
// bazel-out/
|
|
18315
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
|
|
18316
18316
|
var TypeScriptReflectionHost = class {
|
|
18317
18317
|
constructor(checker) {
|
|
18318
18318
|
this.checker = checker;
|
|
@@ -18748,13 +18748,13 @@ function getExportedName(decl, originalId) {
|
|
|
18748
18748
|
}
|
|
18749
18749
|
var LocalExportedDeclarations = Symbol("LocalExportedDeclarations");
|
|
18750
18750
|
|
|
18751
|
-
// bazel-out/
|
|
18751
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
|
|
18752
18752
|
var import_typescript18 = __toESM(require("typescript"), 1);
|
|
18753
18753
|
|
|
18754
|
-
// bazel-out/
|
|
18754
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
|
|
18755
18755
|
var import_typescript12 = __toESM(require("typescript"), 1);
|
|
18756
18756
|
|
|
18757
|
-
// bazel-out/
|
|
18757
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/typescript.mjs
|
|
18758
18758
|
var import_typescript10 = __toESM(require("typescript"), 1);
|
|
18759
18759
|
var TS = /\.tsx?$/i;
|
|
18760
18760
|
var D_TS = /\.d\.ts$/i;
|
|
@@ -18855,7 +18855,7 @@ function toUnredirectedSourceFile(sf) {
|
|
|
18855
18855
|
return redirectInfo.unredirected;
|
|
18856
18856
|
}
|
|
18857
18857
|
|
|
18858
|
-
// bazel-out/
|
|
18858
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/find_export.mjs
|
|
18859
18859
|
function findExportedNameOfNode(target, file, reflector) {
|
|
18860
18860
|
const exports = reflector.getExportsOfModule(file);
|
|
18861
18861
|
if (exports === null) {
|
|
@@ -18875,7 +18875,7 @@ function findExportedNameOfNode(target, file, reflector) {
|
|
|
18875
18875
|
return foundExportName;
|
|
18876
18876
|
}
|
|
18877
18877
|
|
|
18878
|
-
// bazel-out/
|
|
18878
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
|
|
18879
18879
|
var ImportFlags;
|
|
18880
18880
|
(function(ImportFlags2) {
|
|
18881
18881
|
ImportFlags2[ImportFlags2["None"] = 0] = "None";
|
|
@@ -19091,7 +19091,7 @@ var UnifiedModulesStrategy = class {
|
|
|
19091
19091
|
}
|
|
19092
19092
|
};
|
|
19093
19093
|
|
|
19094
|
-
// bazel-out/
|
|
19094
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
|
|
19095
19095
|
var CHARS_TO_ESCAPE = /[^a-zA-Z0-9/_]/g;
|
|
19096
19096
|
var UnifiedModulesAliasingHost = class {
|
|
19097
19097
|
constructor(unifiedModulesHost) {
|
|
@@ -19158,7 +19158,7 @@ var AliasStrategy = class {
|
|
|
19158
19158
|
}
|
|
19159
19159
|
};
|
|
19160
19160
|
|
|
19161
|
-
// bazel-out/
|
|
19161
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/path.mjs
|
|
19162
19162
|
function relativePathBetween(from, to) {
|
|
19163
19163
|
const relativePath = stripExtension(relative(dirname(resolve(from)), resolve(to)));
|
|
19164
19164
|
return relativePath !== "" ? toRelativeImport(relativePath) : null;
|
|
@@ -19167,7 +19167,7 @@ function normalizeSeparators2(path3) {
|
|
|
19167
19167
|
return path3.replace(/\\/g, "/");
|
|
19168
19168
|
}
|
|
19169
19169
|
|
|
19170
|
-
// bazel-out/
|
|
19170
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/core.mjs
|
|
19171
19171
|
var NoopImportRewriter = class {
|
|
19172
19172
|
shouldImportSymbol(symbol, specifier) {
|
|
19173
19173
|
return true;
|
|
@@ -19225,7 +19225,7 @@ function validateAndRewriteCoreSymbol(name) {
|
|
|
19225
19225
|
return CORE_SUPPORTED_SYMBOLS.get(name);
|
|
19226
19226
|
}
|
|
19227
19227
|
|
|
19228
|
-
// bazel-out/
|
|
19228
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/patch_alias_reference_resolution.mjs
|
|
19229
19229
|
var import_typescript14 = __toESM(require("typescript"), 1);
|
|
19230
19230
|
var patchedReferencedAliasesSymbol = Symbol("patchedReferencedAliases");
|
|
19231
19231
|
function loadIsReferencedAliasDeclarationPatch(context) {
|
|
@@ -19260,7 +19260,7 @@ function throwIncompatibleTransformationContextError() {
|
|
|
19260
19260
|
throw Error("Angular compiler is incompatible with this version of the TypeScript compiler.\n\nIf you recently updated TypeScript and this issue surfaces now, consider downgrading.\n\nPlease report an issue on the Angular repositories when this issue surfaces and you are using a supposedly compatible TypeScript version.");
|
|
19261
19261
|
}
|
|
19262
19262
|
|
|
19263
|
-
// bazel-out/
|
|
19263
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/default.mjs
|
|
19264
19264
|
var DefaultImportDeclaration = Symbol("DefaultImportDeclaration");
|
|
19265
19265
|
function attachDefaultImportDeclaration(expr, importDecl) {
|
|
19266
19266
|
expr[DefaultImportDeclaration] = importDecl;
|
|
@@ -19301,7 +19301,7 @@ var DefaultImportTracker = class {
|
|
|
19301
19301
|
}
|
|
19302
19302
|
};
|
|
19303
19303
|
|
|
19304
|
-
// bazel-out/
|
|
19304
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/references.mjs
|
|
19305
19305
|
var Reference2 = class {
|
|
19306
19306
|
constructor(node, bestGuessOwningModule = null) {
|
|
19307
19307
|
this.node = node;
|
|
@@ -19364,7 +19364,7 @@ var Reference2 = class {
|
|
|
19364
19364
|
}
|
|
19365
19365
|
};
|
|
19366
19366
|
|
|
19367
|
-
// bazel-out/
|
|
19367
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/resolver.mjs
|
|
19368
19368
|
var ModuleResolver = class {
|
|
19369
19369
|
constructor(program, compilerOptions, host, moduleResolutionCache) {
|
|
19370
19370
|
this.program = program;
|
|
@@ -19381,7 +19381,7 @@ var ModuleResolver = class {
|
|
|
19381
19381
|
}
|
|
19382
19382
|
};
|
|
19383
19383
|
|
|
19384
|
-
// bazel-out/
|
|
19384
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
|
|
19385
19385
|
function valueReferenceToExpression(valueRef) {
|
|
19386
19386
|
if (valueRef.kind === 2) {
|
|
19387
19387
|
return null;
|
|
@@ -19618,7 +19618,7 @@ function isAbstractClassDeclaration(clazz) {
|
|
|
19618
19618
|
return import_typescript18.default.canHaveModifiers(clazz) && clazz.modifiers !== void 0 ? clazz.modifiers.some((mod) => mod.kind === import_typescript18.default.SyntaxKind.AbstractKeyword) : false;
|
|
19619
19619
|
}
|
|
19620
19620
|
|
|
19621
|
-
// bazel-out/
|
|
19621
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
|
|
19622
19622
|
function getConstructorDependencies(clazz, reflector, isCore) {
|
|
19623
19623
|
const deps = [];
|
|
19624
19624
|
const errors = [];
|
|
@@ -19760,10 +19760,10 @@ function createUnsuitableInjectionTokenError(clazz, error2) {
|
|
|
19760
19760
|
return new FatalDiagnosticError(ErrorCode.PARAM_MISSING_TOKEN, param.nameNode, chain, hints);
|
|
19761
19761
|
}
|
|
19762
19762
|
|
|
19763
|
-
// bazel-out/
|
|
19763
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
|
|
19764
19764
|
var import_typescript27 = __toESM(require("typescript"), 1);
|
|
19765
19765
|
|
|
19766
|
-
// bazel-out/
|
|
19766
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/api.mjs
|
|
19767
19767
|
var MetaKind;
|
|
19768
19768
|
(function(MetaKind2) {
|
|
19769
19769
|
MetaKind2[MetaKind2["Directive"] = 0] = "Directive";
|
|
@@ -19776,10 +19776,10 @@ var MatchSource;
|
|
|
19776
19776
|
MatchSource2[MatchSource2["HostDirective"] = 1] = "HostDirective";
|
|
19777
19777
|
})(MatchSource || (MatchSource = {}));
|
|
19778
19778
|
|
|
19779
|
-
// bazel-out/
|
|
19779
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
19780
19780
|
var import_typescript22 = __toESM(require("typescript"), 1);
|
|
19781
19781
|
|
|
19782
|
-
// bazel-out/
|
|
19782
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/property_mapping.mjs
|
|
19783
19783
|
var ClassPropertyMapping = class {
|
|
19784
19784
|
constructor(forwardMap) {
|
|
19785
19785
|
this.forwardMap = forwardMap;
|
|
@@ -19855,7 +19855,7 @@ function reverseMapFromForwardMap(forwardMap) {
|
|
|
19855
19855
|
return reverseMap;
|
|
19856
19856
|
}
|
|
19857
19857
|
|
|
19858
|
-
// bazel-out/
|
|
19858
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/util.mjs
|
|
19859
19859
|
var import_typescript20 = __toESM(require("typescript"), 1);
|
|
19860
19860
|
function extractReferencesFromType(checker, def, bestGuessOwningModule) {
|
|
19861
19861
|
if (!import_typescript20.default.isTupleTypeNode(def)) {
|
|
@@ -20037,7 +20037,7 @@ function hasInjectableFields(clazz, host) {
|
|
|
20037
20037
|
return members.some(({ isStatic, name }) => isStatic && (name === "\u0275prov" || name === "\u0275fac"));
|
|
20038
20038
|
}
|
|
20039
20039
|
|
|
20040
|
-
// bazel-out/
|
|
20040
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
20041
20041
|
var DtsMetadataReader = class {
|
|
20042
20042
|
constructor(checker, reflector) {
|
|
20043
20043
|
this.checker = checker;
|
|
@@ -20176,7 +20176,7 @@ function readHostDirectivesType(checker, type, bestGuessOwningModule) {
|
|
|
20176
20176
|
return result.length > 0 ? result : null;
|
|
20177
20177
|
}
|
|
20178
20178
|
|
|
20179
|
-
// bazel-out/
|
|
20179
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/inheritance.mjs
|
|
20180
20180
|
function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
20181
20181
|
const topMeta = reader.getDirectiveMetadata(dir);
|
|
20182
20182
|
if (topMeta === null) {
|
|
@@ -20233,7 +20233,7 @@ function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
|
20233
20233
|
});
|
|
20234
20234
|
}
|
|
20235
20235
|
|
|
20236
|
-
// bazel-out/
|
|
20236
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/registry.mjs
|
|
20237
20237
|
var LocalMetadataRegistry = class {
|
|
20238
20238
|
constructor() {
|
|
20239
20239
|
this.directives = /* @__PURE__ */ new Map();
|
|
@@ -20290,7 +20290,7 @@ var CompoundMetadataRegistry = class {
|
|
|
20290
20290
|
}
|
|
20291
20291
|
};
|
|
20292
20292
|
|
|
20293
|
-
// bazel-out/
|
|
20293
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/resource_registry.mjs
|
|
20294
20294
|
var ResourceRegistry = class {
|
|
20295
20295
|
constructor() {
|
|
20296
20296
|
this.externalTemplateToComponentsMap = /* @__PURE__ */ new Map();
|
|
@@ -20355,7 +20355,7 @@ var ResourceRegistry = class {
|
|
|
20355
20355
|
}
|
|
20356
20356
|
};
|
|
20357
20357
|
|
|
20358
|
-
// bazel-out/
|
|
20358
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/host_directives_resolver.mjs
|
|
20359
20359
|
var EMPTY_ARRAY = [];
|
|
20360
20360
|
var HostDirectivesResolver = class {
|
|
20361
20361
|
constructor(metaReader) {
|
|
@@ -20405,10 +20405,10 @@ var HostDirectivesResolver = class {
|
|
|
20405
20405
|
}
|
|
20406
20406
|
};
|
|
20407
20407
|
|
|
20408
|
-
// bazel-out/
|
|
20408
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
|
|
20409
20409
|
var import_typescript24 = __toESM(require("typescript"), 1);
|
|
20410
20410
|
|
|
20411
|
-
// bazel-out/
|
|
20411
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/dynamic.mjs
|
|
20412
20412
|
var DynamicValue = class {
|
|
20413
20413
|
constructor(node, reason, code) {
|
|
20414
20414
|
this.node = node;
|
|
@@ -20498,7 +20498,7 @@ var DynamicValue = class {
|
|
|
20498
20498
|
}
|
|
20499
20499
|
};
|
|
20500
20500
|
|
|
20501
|
-
// bazel-out/
|
|
20501
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/result.mjs
|
|
20502
20502
|
var ResolvedModule = class {
|
|
20503
20503
|
constructor(exports, evaluate) {
|
|
20504
20504
|
this.exports = exports;
|
|
@@ -20528,7 +20528,7 @@ var EnumValue = class {
|
|
|
20528
20528
|
var KnownFn = class {
|
|
20529
20529
|
};
|
|
20530
20530
|
|
|
20531
|
-
// bazel-out/
|
|
20531
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
|
|
20532
20532
|
function describeResolvedType(value, maxDepth = 1) {
|
|
20533
20533
|
var _a, _b;
|
|
20534
20534
|
if (value === null) {
|
|
@@ -20657,10 +20657,10 @@ function getContainerNode(node) {
|
|
|
20657
20657
|
return node.getSourceFile();
|
|
20658
20658
|
}
|
|
20659
20659
|
|
|
20660
|
-
// bazel-out/
|
|
20660
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
20661
20661
|
var import_typescript25 = __toESM(require("typescript"), 1);
|
|
20662
20662
|
|
|
20663
|
-
// bazel-out/
|
|
20663
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/builtin.mjs
|
|
20664
20664
|
var ArraySliceBuiltinFn = class extends KnownFn {
|
|
20665
20665
|
constructor(lhs) {
|
|
20666
20666
|
super();
|
|
@@ -20731,7 +20731,7 @@ var ObjectAssignBuiltinFn = class extends KnownFn {
|
|
|
20731
20731
|
}
|
|
20732
20732
|
};
|
|
20733
20733
|
|
|
20734
|
-
// bazel-out/
|
|
20734
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/ts_helpers.mjs
|
|
20735
20735
|
var AssignHelperFn = class extends ObjectAssignBuiltinFn {
|
|
20736
20736
|
};
|
|
20737
20737
|
var SpreadHelperFn = class extends KnownFn {
|
|
@@ -20784,7 +20784,7 @@ var ReadHelperFn = class extends KnownFn {
|
|
|
20784
20784
|
}
|
|
20785
20785
|
};
|
|
20786
20786
|
|
|
20787
|
-
// bazel-out/
|
|
20787
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/known_declaration.mjs
|
|
20788
20788
|
var jsGlobalObjectValue = /* @__PURE__ */ new Map([["assign", new ObjectAssignBuiltinFn()]]);
|
|
20789
20789
|
var assignTsHelperFn = new AssignHelperFn();
|
|
20790
20790
|
var spreadTsHelperFn = new SpreadHelperFn();
|
|
@@ -20808,14 +20808,14 @@ function resolveKnownDeclaration(decl) {
|
|
|
20808
20808
|
}
|
|
20809
20809
|
}
|
|
20810
20810
|
|
|
20811
|
-
// bazel-out/
|
|
20811
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/synthetic.mjs
|
|
20812
20812
|
var SyntheticValue = class {
|
|
20813
20813
|
constructor(value) {
|
|
20814
20814
|
this.value = value;
|
|
20815
20815
|
}
|
|
20816
20816
|
};
|
|
20817
20817
|
|
|
20818
|
-
// bazel-out/
|
|
20818
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
20819
20819
|
function literalBinaryOp(op) {
|
|
20820
20820
|
return { op, literal: true };
|
|
20821
20821
|
}
|
|
@@ -21413,7 +21413,7 @@ function owningModule(context, override = null) {
|
|
|
21413
21413
|
}
|
|
21414
21414
|
}
|
|
21415
21415
|
|
|
21416
|
-
// bazel-out/
|
|
21416
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interface.mjs
|
|
21417
21417
|
var PartialEvaluator = class {
|
|
21418
21418
|
constructor(host, checker, dependencyTracker) {
|
|
21419
21419
|
this.host = host;
|
|
@@ -21433,7 +21433,7 @@ var PartialEvaluator = class {
|
|
|
21433
21433
|
}
|
|
21434
21434
|
};
|
|
21435
21435
|
|
|
21436
|
-
// bazel-out/
|
|
21436
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
|
|
21437
21437
|
function makeDuplicateDeclarationError(node, data, kind) {
|
|
21438
21438
|
const context = [];
|
|
21439
21439
|
for (const decl of data) {
|
|
@@ -21608,7 +21608,7 @@ function getInheritedUndecoratedCtorDiagnostic(node, baseClass, kind) {
|
|
|
21608
21608
|
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}.`);
|
|
21609
21609
|
}
|
|
21610
21610
|
|
|
21611
|
-
// bazel-out/
|
|
21611
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/evaluation.mjs
|
|
21612
21612
|
var import_typescript29 = __toESM(require("typescript"), 1);
|
|
21613
21613
|
function resolveEnumValue(evaluator, metadata, field, enumSymbolName) {
|
|
21614
21614
|
let resolved = null;
|
|
@@ -21641,7 +21641,7 @@ function resolveLiteral(decorator, literalCache) {
|
|
|
21641
21641
|
return meta;
|
|
21642
21642
|
}
|
|
21643
21643
|
|
|
21644
|
-
// bazel-out/
|
|
21644
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/factory.mjs
|
|
21645
21645
|
function compileNgFactoryDefField(metadata) {
|
|
21646
21646
|
const res = compileFactoryFunction(metadata);
|
|
21647
21647
|
return { name: "\u0275fac", initializer: res.expression, statements: res.statements, type: res.type };
|
|
@@ -21651,7 +21651,7 @@ function compileDeclareFactory(metadata) {
|
|
|
21651
21651
|
return { name: "\u0275fac", initializer: res.expression, statements: res.statements, type: res.type };
|
|
21652
21652
|
}
|
|
21653
21653
|
|
|
21654
|
-
// bazel-out/
|
|
21654
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/injectable_registry.mjs
|
|
21655
21655
|
var InjectableClassRegistry = class {
|
|
21656
21656
|
constructor(host, isCore) {
|
|
21657
21657
|
this.host = host;
|
|
@@ -21677,7 +21677,7 @@ var InjectableClassRegistry = class {
|
|
|
21677
21677
|
}
|
|
21678
21678
|
};
|
|
21679
21679
|
|
|
21680
|
-
// bazel-out/
|
|
21680
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/metadata.mjs
|
|
21681
21681
|
var import_typescript30 = __toESM(require("typescript"), 1);
|
|
21682
21682
|
function extractClassMetadata(clazz, reflection, isCore, annotateForClosureCompiler, angularDecoratorTransform = (dec) => dec) {
|
|
21683
21683
|
if (!reflection.isClass(clazz)) {
|
|
@@ -21763,13 +21763,13 @@ function removeIdentifierReferences(node, name) {
|
|
|
21763
21763
|
return result.transformed[0];
|
|
21764
21764
|
}
|
|
21765
21765
|
|
|
21766
|
-
// bazel-out/
|
|
21766
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/references_registry.mjs
|
|
21767
21767
|
var NoopReferencesRegistry = class {
|
|
21768
21768
|
add(source, ...references) {
|
|
21769
21769
|
}
|
|
21770
21770
|
};
|
|
21771
21771
|
|
|
21772
|
-
// bazel-out/
|
|
21772
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/schema.mjs
|
|
21773
21773
|
function extractSchemas(rawExpr, evaluator, context) {
|
|
21774
21774
|
const schemas = [];
|
|
21775
21775
|
const result = evaluator.evaluate(rawExpr);
|
|
@@ -21798,10 +21798,10 @@ function extractSchemas(rawExpr, evaluator, context) {
|
|
|
21798
21798
|
return schemas;
|
|
21799
21799
|
}
|
|
21800
21800
|
|
|
21801
|
-
// bazel-out/
|
|
21801
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
21802
21802
|
var import_typescript51 = __toESM(require("typescript"), 1);
|
|
21803
21803
|
|
|
21804
|
-
// bazel-out/
|
|
21804
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.mjs
|
|
21805
21805
|
var import_typescript31 = __toESM(require("typescript"), 1);
|
|
21806
21806
|
var SemanticSymbol = class {
|
|
21807
21807
|
constructor(decl) {
|
|
@@ -21817,7 +21817,7 @@ function getSymbolIdentifier(decl) {
|
|
|
21817
21817
|
return decl.name.text;
|
|
21818
21818
|
}
|
|
21819
21819
|
|
|
21820
|
-
// bazel-out/
|
|
21820
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.mjs
|
|
21821
21821
|
var OpaqueSymbol = class extends SemanticSymbol {
|
|
21822
21822
|
isPublicApiAffected() {
|
|
21823
21823
|
return false;
|
|
@@ -21959,10 +21959,10 @@ function getImportPath(expr) {
|
|
|
21959
21959
|
}
|
|
21960
21960
|
}
|
|
21961
21961
|
|
|
21962
|
-
// bazel-out/
|
|
21962
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
21963
21963
|
var import_typescript32 = __toESM(require("typescript"), 1);
|
|
21964
21964
|
|
|
21965
|
-
// bazel-out/
|
|
21965
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/util.mjs
|
|
21966
21966
|
function isSymbolEqual(a, b) {
|
|
21967
21967
|
if (a.decl === b.decl) {
|
|
21968
21968
|
return true;
|
|
@@ -22012,7 +22012,7 @@ function isSetEqual(a, b, equalityTester = referenceEquality) {
|
|
|
22012
22012
|
return true;
|
|
22013
22013
|
}
|
|
22014
22014
|
|
|
22015
|
-
// bazel-out/
|
|
22015
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
22016
22016
|
function extractSemanticTypeParameters(node) {
|
|
22017
22017
|
if (!import_typescript32.default.isClassDeclaration(node) || node.typeParameters === void 0) {
|
|
22018
22018
|
return null;
|
|
@@ -22032,7 +22032,7 @@ function isTypeParameterEqual(a, b) {
|
|
|
22032
22032
|
return a.hasGenericTypeBound === b.hasGenericTypeBound;
|
|
22033
22033
|
}
|
|
22034
22034
|
|
|
22035
|
-
// bazel-out/
|
|
22035
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/api.mjs
|
|
22036
22036
|
var PerfPhase;
|
|
22037
22037
|
(function(PerfPhase2) {
|
|
22038
22038
|
PerfPhase2[PerfPhase2["Unaccounted"] = 0] = "Unaccounted";
|
|
@@ -22099,7 +22099,7 @@ var PerfCheckpoint;
|
|
|
22099
22099
|
PerfCheckpoint2[PerfCheckpoint2["LAST"] = 9] = "LAST";
|
|
22100
22100
|
})(PerfCheckpoint || (PerfCheckpoint = {}));
|
|
22101
22101
|
|
|
22102
|
-
// bazel-out/
|
|
22102
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/noop.mjs
|
|
22103
22103
|
var NoopPerfRecorder = class {
|
|
22104
22104
|
eventCount() {
|
|
22105
22105
|
}
|
|
@@ -22116,7 +22116,7 @@ var NoopPerfRecorder = class {
|
|
|
22116
22116
|
};
|
|
22117
22117
|
var NOOP_PERF_RECORDER = new NoopPerfRecorder();
|
|
22118
22118
|
|
|
22119
|
-
// bazel-out/
|
|
22119
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/clock.mjs
|
|
22120
22120
|
function mark() {
|
|
22121
22121
|
return process.hrtime();
|
|
22122
22122
|
}
|
|
@@ -22125,7 +22125,7 @@ function timeSinceInMicros(mark2) {
|
|
|
22125
22125
|
return delta[0] * 1e6 + Math.floor(delta[1] / 1e3);
|
|
22126
22126
|
}
|
|
22127
22127
|
|
|
22128
|
-
// bazel-out/
|
|
22128
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/recorder.mjs
|
|
22129
22129
|
var ActivePerfRecorder = class {
|
|
22130
22130
|
static zeroedToNow() {
|
|
22131
22131
|
return new ActivePerfRecorder(mark());
|
|
@@ -22219,14 +22219,14 @@ var DelegatingPerfRecorder = class {
|
|
|
22219
22219
|
}
|
|
22220
22220
|
};
|
|
22221
22221
|
|
|
22222
|
-
// bazel-out/
|
|
22222
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/api.mjs
|
|
22223
22223
|
var ComponentScopeKind;
|
|
22224
22224
|
(function(ComponentScopeKind2) {
|
|
22225
22225
|
ComponentScopeKind2[ComponentScopeKind2["NgModule"] = 0] = "NgModule";
|
|
22226
22226
|
ComponentScopeKind2[ComponentScopeKind2["Standalone"] = 1] = "Standalone";
|
|
22227
22227
|
})(ComponentScopeKind || (ComponentScopeKind = {}));
|
|
22228
22228
|
|
|
22229
|
-
// bazel-out/
|
|
22229
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/component_scope.mjs
|
|
22230
22230
|
var CompoundComponentScopeReader = class {
|
|
22231
22231
|
constructor(readers) {
|
|
22232
22232
|
this.readers = readers;
|
|
@@ -22251,7 +22251,7 @@ var CompoundComponentScopeReader = class {
|
|
|
22251
22251
|
}
|
|
22252
22252
|
};
|
|
22253
22253
|
|
|
22254
|
-
// bazel-out/
|
|
22254
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/dependency.mjs
|
|
22255
22255
|
var MetadataDtsModuleScopeResolver = class {
|
|
22256
22256
|
constructor(dtsMetaReader, aliasingHost) {
|
|
22257
22257
|
this.dtsMetaReader = dtsMetaReader;
|
|
@@ -22326,10 +22326,10 @@ var MetadataDtsModuleScopeResolver = class {
|
|
|
22326
22326
|
}
|
|
22327
22327
|
};
|
|
22328
22328
|
|
|
22329
|
-
// bazel-out/
|
|
22329
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
|
|
22330
22330
|
var import_typescript33 = __toESM(require("typescript"), 1);
|
|
22331
22331
|
|
|
22332
|
-
// bazel-out/
|
|
22332
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/util.mjs
|
|
22333
22333
|
function getDiagnosticNode(ref, rawExpr) {
|
|
22334
22334
|
return rawExpr !== null ? ref.getOriginForDiagnostics(rawExpr) : ref.node.name;
|
|
22335
22335
|
}
|
|
@@ -22352,7 +22352,7 @@ function makeUnknownComponentImportDiagnostic(ref, rawExpr) {
|
|
|
22352
22352
|
return makeDiagnostic(ErrorCode.COMPONENT_UNKNOWN_IMPORT, getDiagnosticNode(ref, rawExpr), `Component imports must be standalone components, directives, pipes, or must be NgModules.`);
|
|
22353
22353
|
}
|
|
22354
22354
|
|
|
22355
|
-
// bazel-out/
|
|
22355
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
|
|
22356
22356
|
var LocalModuleScopeRegistry = class {
|
|
22357
22357
|
constructor(localReader, fullReader, dependencyScopeReader, refEmitter, aliasingHost) {
|
|
22358
22358
|
this.localReader = localReader;
|
|
@@ -22691,7 +22691,7 @@ function reexportCollision(module3, refA, refB) {
|
|
|
22691
22691
|
]);
|
|
22692
22692
|
}
|
|
22693
22693
|
|
|
22694
|
-
// bazel-out/
|
|
22694
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/typecheck.mjs
|
|
22695
22695
|
var import_typescript35 = __toESM(require("typescript"), 1);
|
|
22696
22696
|
var TypeCheckScopeRegistry = class {
|
|
22697
22697
|
constructor(scopeReader, metaReader, hostDirectivesResolver) {
|
|
@@ -22759,7 +22759,7 @@ var TypeCheckScopeRegistry = class {
|
|
|
22759
22759
|
}
|
|
22760
22760
|
};
|
|
22761
22761
|
|
|
22762
|
-
// bazel-out/
|
|
22762
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/api.mjs
|
|
22763
22763
|
var CompilationMode;
|
|
22764
22764
|
(function(CompilationMode2) {
|
|
22765
22765
|
CompilationMode2[CompilationMode2["FULL"] = 0] = "FULL";
|
|
@@ -22777,7 +22777,7 @@ var HandlerFlags;
|
|
|
22777
22777
|
HandlerFlags2[HandlerFlags2["FULL_INHERITANCE"] = 1] = "FULL_INHERITANCE";
|
|
22778
22778
|
})(HandlerFlags || (HandlerFlags = {}));
|
|
22779
22779
|
|
|
22780
|
-
// bazel-out/
|
|
22780
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/alias.mjs
|
|
22781
22781
|
var import_typescript36 = __toESM(require("typescript"), 1);
|
|
22782
22782
|
function aliasTransformFactory(exportStatements) {
|
|
22783
22783
|
return () => {
|
|
@@ -22800,10 +22800,10 @@ function aliasTransformFactory(exportStatements) {
|
|
|
22800
22800
|
};
|
|
22801
22801
|
}
|
|
22802
22802
|
|
|
22803
|
-
// bazel-out/
|
|
22803
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
22804
22804
|
var import_typescript37 = __toESM(require("typescript"), 1);
|
|
22805
22805
|
|
|
22806
|
-
// bazel-out/
|
|
22806
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/trait.mjs
|
|
22807
22807
|
var TraitState;
|
|
22808
22808
|
(function(TraitState2) {
|
|
22809
22809
|
TraitState2[TraitState2["Pending"] = 0] = "Pending";
|
|
@@ -22858,7 +22858,7 @@ var TraitImpl = class {
|
|
|
22858
22858
|
}
|
|
22859
22859
|
};
|
|
22860
22860
|
|
|
22861
|
-
// bazel-out/
|
|
22861
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
22862
22862
|
var TraitCompiler = class {
|
|
22863
22863
|
constructor(handlers, reflector, perf, incrementalBuild, compileNonExportedClasses, compilationMode, dtsTransforms, semanticDepGraphUpdater, sourceFileTypeIdentifier) {
|
|
22864
22864
|
this.handlers = handlers;
|
|
@@ -23302,10 +23302,10 @@ function containsErrors(diagnostics) {
|
|
|
23302
23302
|
return diagnostics !== null && diagnostics.some((diag) => diag.category === import_typescript37.default.DiagnosticCategory.Error);
|
|
23303
23303
|
}
|
|
23304
23304
|
|
|
23305
|
-
// bazel-out/
|
|
23305
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
|
|
23306
23306
|
var import_typescript43 = __toESM(require("typescript"), 1);
|
|
23307
23307
|
|
|
23308
|
-
// bazel-out/
|
|
23308
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/context.mjs
|
|
23309
23309
|
var Context = class {
|
|
23310
23310
|
constructor(isStatement) {
|
|
23311
23311
|
this.isStatement = isStatement;
|
|
@@ -23318,7 +23318,7 @@ var Context = class {
|
|
|
23318
23318
|
}
|
|
23319
23319
|
};
|
|
23320
23320
|
|
|
23321
|
-
// bazel-out/
|
|
23321
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager.mjs
|
|
23322
23322
|
var import_typescript39 = __toESM(require("typescript"), 1);
|
|
23323
23323
|
var ImportManager = class {
|
|
23324
23324
|
constructor(rewriter = new NoopImportRewriter(), prefix = "i") {
|
|
@@ -23354,7 +23354,7 @@ var ImportManager = class {
|
|
|
23354
23354
|
}
|
|
23355
23355
|
};
|
|
23356
23356
|
|
|
23357
|
-
// bazel-out/
|
|
23357
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/translator.mjs
|
|
23358
23358
|
var UNARY_OPERATORS2 = /* @__PURE__ */ new Map([
|
|
23359
23359
|
[UnaryOperator.Minus, "-"],
|
|
23360
23360
|
[UnaryOperator.Plus, "+"]
|
|
@@ -23585,7 +23585,7 @@ function createRange(span) {
|
|
|
23585
23585
|
};
|
|
23586
23586
|
}
|
|
23587
23587
|
|
|
23588
|
-
// bazel-out/
|
|
23588
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
|
|
23589
23589
|
var import_typescript40 = __toESM(require("typescript"), 1);
|
|
23590
23590
|
function translateType(type, imports) {
|
|
23591
23591
|
return type.visitType(new TypeTranslatorVisitor(imports), new Context(false));
|
|
@@ -23760,7 +23760,7 @@ var TypeTranslatorVisitor = class {
|
|
|
23760
23760
|
}
|
|
23761
23761
|
};
|
|
23762
23762
|
|
|
23763
|
-
// bazel-out/
|
|
23763
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_ast_factory.mjs
|
|
23764
23764
|
var import_typescript41 = __toESM(require("typescript"), 1);
|
|
23765
23765
|
var PureAnnotation;
|
|
23766
23766
|
(function(PureAnnotation2) {
|
|
@@ -23943,7 +23943,7 @@ function attachComments(statement, leadingComments) {
|
|
|
23943
23943
|
}
|
|
23944
23944
|
}
|
|
23945
23945
|
|
|
23946
|
-
// bazel-out/
|
|
23946
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_translator.mjs
|
|
23947
23947
|
function translateExpression(expression, imports, options = {}) {
|
|
23948
23948
|
return expression.visitExpression(new ExpressionTranslatorVisitor(new TypeScriptAstFactory(options.annotateForClosureCompiler === true), imports, options), new Context(false));
|
|
23949
23949
|
}
|
|
@@ -23951,7 +23951,7 @@ function translateStatement(statement, imports, options = {}) {
|
|
|
23951
23951
|
return statement.visitStatement(new ExpressionTranslatorVisitor(new TypeScriptAstFactory(options.annotateForClosureCompiler === true), imports, options), new Context(true));
|
|
23952
23952
|
}
|
|
23953
23953
|
|
|
23954
|
-
// bazel-out/
|
|
23954
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/utils.mjs
|
|
23955
23955
|
var import_typescript42 = __toESM(require("typescript"), 1);
|
|
23956
23956
|
function addImports(importManager, sf, extraStatements = []) {
|
|
23957
23957
|
const addedImports = importManager.getAllImports(sf.fileName).map((i) => {
|
|
@@ -23987,7 +23987,7 @@ function isImportStatement(stmt) {
|
|
|
23987
23987
|
return import_typescript42.default.isImportDeclaration(stmt) || import_typescript42.default.isImportEqualsDeclaration(stmt) || import_typescript42.default.isNamespaceImport(stmt);
|
|
23988
23988
|
}
|
|
23989
23989
|
|
|
23990
|
-
// bazel-out/
|
|
23990
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
|
|
23991
23991
|
var DtsTransformRegistry = class {
|
|
23992
23992
|
constructor() {
|
|
23993
23993
|
this.ivyDeclarationTransforms = /* @__PURE__ */ new Map();
|
|
@@ -24132,10 +24132,10 @@ function markForEmitAsSingleLine(node) {
|
|
|
24132
24132
|
import_typescript43.default.forEachChild(node, markForEmitAsSingleLine);
|
|
24133
24133
|
}
|
|
24134
24134
|
|
|
24135
|
-
// bazel-out/
|
|
24135
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
24136
24136
|
var import_typescript45 = __toESM(require("typescript"), 1);
|
|
24137
24137
|
|
|
24138
|
-
// bazel-out/
|
|
24138
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/visitor.mjs
|
|
24139
24139
|
var import_typescript44 = __toESM(require("typescript"), 1);
|
|
24140
24140
|
function visit(node, visitor, context) {
|
|
24141
24141
|
return visitor._visit(node, context);
|
|
@@ -24196,7 +24196,7 @@ var Visitor = class {
|
|
|
24196
24196
|
}
|
|
24197
24197
|
};
|
|
24198
24198
|
|
|
24199
|
-
// bazel-out/
|
|
24199
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
24200
24200
|
var NO_DECORATORS = /* @__PURE__ */ new Set();
|
|
24201
24201
|
var CLOSURE_FILE_OVERVIEW_REGEXP = /\s+@fileoverview\s+/i;
|
|
24202
24202
|
function ivyTransformFactory(compilation, reflector, importRewriter, defaultImportTracker, perf, isCore, isClosureCompilerEnabled) {
|
|
@@ -24404,7 +24404,7 @@ function nodeArrayFromDecoratorsArray(decorators) {
|
|
|
24404
24404
|
return array;
|
|
24405
24405
|
}
|
|
24406
24406
|
|
|
24407
|
-
// bazel-out/
|
|
24407
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
|
|
24408
24408
|
var import_typescript46 = __toESM(require("typescript"), 1);
|
|
24409
24409
|
var EMPTY_OBJECT = {};
|
|
24410
24410
|
var QUERY_TYPES = /* @__PURE__ */ new Set([
|
|
@@ -24820,7 +24820,7 @@ function toHostDirectiveMetadata(hostDirective, context, refEmitter) {
|
|
|
24820
24820
|
};
|
|
24821
24821
|
}
|
|
24822
24822
|
|
|
24823
|
-
// bazel-out/
|
|
24823
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/symbol.mjs
|
|
24824
24824
|
var DirectiveSymbol = class extends SemanticSymbol {
|
|
24825
24825
|
constructor(decl, selector, inputs, outputs, exportAs, typeCheckMeta, typeParameters) {
|
|
24826
24826
|
super(decl);
|
|
@@ -24897,7 +24897,7 @@ function isBaseClassEqual(current, previous) {
|
|
|
24897
24897
|
return isSymbolEqual(current, previous);
|
|
24898
24898
|
}
|
|
24899
24899
|
|
|
24900
|
-
// bazel-out/
|
|
24900
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
|
|
24901
24901
|
var FIELD_DECORATORS = [
|
|
24902
24902
|
"Input",
|
|
24903
24903
|
"Output",
|
|
@@ -25056,10 +25056,10 @@ var DirectiveDecoratorHandler = class {
|
|
|
25056
25056
|
}
|
|
25057
25057
|
};
|
|
25058
25058
|
|
|
25059
|
-
// bazel-out/
|
|
25059
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
25060
25060
|
var import_typescript48 = __toESM(require("typescript"), 1);
|
|
25061
25061
|
|
|
25062
|
-
// bazel-out/
|
|
25062
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/module_with_providers.mjs
|
|
25063
25063
|
var import_typescript47 = __toESM(require("typescript"), 1);
|
|
25064
25064
|
function createModuleWithProvidersResolver(reflector, isCore) {
|
|
25065
25065
|
function _reflectModuleFromTypeParam(type, node) {
|
|
@@ -25126,7 +25126,7 @@ function isResolvedModuleWithProviders(sv) {
|
|
|
25126
25126
|
return typeof sv.value === "object" && sv.value != null && sv.value.hasOwnProperty("ngModule") && sv.value.hasOwnProperty("mwpCall");
|
|
25127
25127
|
}
|
|
25128
25128
|
|
|
25129
|
-
// bazel-out/
|
|
25129
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
25130
25130
|
var NgModuleSymbol = class extends SemanticSymbol {
|
|
25131
25131
|
constructor() {
|
|
25132
25132
|
super(...arguments);
|
|
@@ -25622,7 +25622,7 @@ function isSyntheticReference(ref) {
|
|
|
25622
25622
|
return ref.synthetic;
|
|
25623
25623
|
}
|
|
25624
25624
|
|
|
25625
|
-
// bazel-out/
|
|
25625
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/diagnostics.mjs
|
|
25626
25626
|
function makeCyclicImportInfo(ref, type, cycle) {
|
|
25627
25627
|
const name = ref.debugName || "(unknown)";
|
|
25628
25628
|
const path3 = cycle.getPath().map((sf) => sf.fileName).join(" -> ");
|
|
@@ -25645,7 +25645,7 @@ function checkCustomElementSelectorForErrors(selector) {
|
|
|
25645
25645
|
return null;
|
|
25646
25646
|
}
|
|
25647
25647
|
|
|
25648
|
-
// bazel-out/
|
|
25648
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/resources.mjs
|
|
25649
25649
|
var import_typescript50 = __toESM(require("typescript"), 1);
|
|
25650
25650
|
function getTemplateDeclarationNodeForError(declaration) {
|
|
25651
25651
|
switch (declaration.isInline) {
|
|
@@ -25960,7 +25960,7 @@ function _extractTemplateStyleUrls(template) {
|
|
|
25960
25960
|
return template.styleUrls.map((url) => ({ url, source: 1, nodeForError }));
|
|
25961
25961
|
}
|
|
25962
25962
|
|
|
25963
|
-
// bazel-out/
|
|
25963
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/symbol.mjs
|
|
25964
25964
|
var ComponentSymbol = class extends DirectiveSymbol {
|
|
25965
25965
|
constructor() {
|
|
25966
25966
|
super(...arguments);
|
|
@@ -25995,7 +25995,7 @@ var ComponentSymbol = class extends DirectiveSymbol {
|
|
|
25995
25995
|
}
|
|
25996
25996
|
};
|
|
25997
25997
|
|
|
25998
|
-
// bazel-out/
|
|
25998
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/util.mjs
|
|
25999
25999
|
function collectAnimationNames(value, animationTriggerNames) {
|
|
26000
26000
|
if (value instanceof Map) {
|
|
26001
26001
|
const name = value.get("name");
|
|
@@ -26071,7 +26071,7 @@ function isLikelyModuleWithProviders(value) {
|
|
|
26071
26071
|
return false;
|
|
26072
26072
|
}
|
|
26073
26073
|
|
|
26074
|
-
// bazel-out/
|
|
26074
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
26075
26075
|
var EMPTY_ARRAY2 = [];
|
|
26076
26076
|
var ComponentDecoratorHandler = class {
|
|
26077
26077
|
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) {
|
|
@@ -26717,7 +26717,7 @@ function validateStandaloneImports(importRefs, importExpr2, metaReader, scopeRea
|
|
|
26717
26717
|
return diagnostics;
|
|
26718
26718
|
}
|
|
26719
26719
|
|
|
26720
|
-
// bazel-out/
|
|
26720
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
|
|
26721
26721
|
var import_typescript53 = __toESM(require("typescript"), 1);
|
|
26722
26722
|
var InjectableDecoratorHandler = class {
|
|
26723
26723
|
constructor(reflector, evaluator, isCore, strictCtorDeps, injectableRegistry, perf, errorOnDuplicateProv = true) {
|
|
@@ -26933,7 +26933,7 @@ function getDep(dep, reflector) {
|
|
|
26933
26933
|
return meta;
|
|
26934
26934
|
}
|
|
26935
26935
|
|
|
26936
|
-
// bazel-out/
|
|
26936
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
|
|
26937
26937
|
var import_typescript54 = __toESM(require("typescript"), 1);
|
|
26938
26938
|
var PipeSymbol = class extends SemanticSymbol {
|
|
26939
26939
|
constructor(decl, name) {
|
|
@@ -27078,7 +27078,7 @@ var PipeDecoratorHandler = class {
|
|
|
27078
27078
|
}
|
|
27079
27079
|
};
|
|
27080
27080
|
|
|
27081
|
-
// bazel-out/
|
|
27081
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
|
|
27082
27082
|
var CycleAnalyzer = class {
|
|
27083
27083
|
constructor(importGraph) {
|
|
27084
27084
|
this.importGraph = importGraph;
|
|
@@ -27149,7 +27149,7 @@ var Cycle = class {
|
|
|
27149
27149
|
}
|
|
27150
27150
|
};
|
|
27151
27151
|
|
|
27152
|
-
// bazel-out/
|
|
27152
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/imports.mjs
|
|
27153
27153
|
var import_typescript55 = __toESM(require("typescript"), 1);
|
|
27154
27154
|
var ImportGraph = class {
|
|
27155
27155
|
constructor(checker, perf) {
|
|
@@ -27241,7 +27241,7 @@ var Found = class {
|
|
|
27241
27241
|
}
|
|
27242
27242
|
};
|
|
27243
27243
|
|
|
27244
|
-
// bazel-out/
|
|
27244
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
|
|
27245
27245
|
var import_typescript56 = __toESM(require("typescript"), 1);
|
|
27246
27246
|
var FlatIndexGenerator = class {
|
|
27247
27247
|
constructor(entryPoint, relativeFlatIndexPath, moduleName) {
|
|
@@ -27266,7 +27266,7 @@ export * from '${relativeEntryPoint}';
|
|
|
27266
27266
|
}
|
|
27267
27267
|
};
|
|
27268
27268
|
|
|
27269
|
-
// bazel-out/
|
|
27269
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/logic.mjs
|
|
27270
27270
|
function findFlatIndexEntryPoint(rootFiles) {
|
|
27271
27271
|
const tsFiles = rootFiles.filter((file) => isNonDeclarationTsPath(file));
|
|
27272
27272
|
let resolvedEntryPoint = null;
|
|
@@ -27282,7 +27282,7 @@ function findFlatIndexEntryPoint(rootFiles) {
|
|
|
27282
27282
|
return resolvedEntryPoint;
|
|
27283
27283
|
}
|
|
27284
27284
|
|
|
27285
|
-
// bazel-out/
|
|
27285
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
|
|
27286
27286
|
var import_typescript58 = __toESM(require("typescript"), 1);
|
|
27287
27287
|
function checkForPrivateExports(entryPoint, checker, refGraph) {
|
|
27288
27288
|
const diagnostics = [];
|
|
@@ -27362,7 +27362,7 @@ function getDescriptorOfDeclaration(decl) {
|
|
|
27362
27362
|
}
|
|
27363
27363
|
}
|
|
27364
27364
|
|
|
27365
|
-
// bazel-out/
|
|
27365
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/reference_graph.mjs
|
|
27366
27366
|
var ReferenceGraph = class {
|
|
27367
27367
|
constructor() {
|
|
27368
27368
|
this.references = /* @__PURE__ */ new Map();
|
|
@@ -27416,7 +27416,7 @@ var ReferenceGraph = class {
|
|
|
27416
27416
|
}
|
|
27417
27417
|
};
|
|
27418
27418
|
|
|
27419
|
-
// bazel-out/
|
|
27419
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/api.mjs
|
|
27420
27420
|
var NgOriginalFile = Symbol("NgOriginalFile");
|
|
27421
27421
|
var UpdateMode;
|
|
27422
27422
|
(function(UpdateMode2) {
|
|
@@ -27424,13 +27424,13 @@ var UpdateMode;
|
|
|
27424
27424
|
UpdateMode2[UpdateMode2["Incremental"] = 1] = "Incremental";
|
|
27425
27425
|
})(UpdateMode || (UpdateMode = {}));
|
|
27426
27426
|
|
|
27427
|
-
// bazel-out/
|
|
27427
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
|
|
27428
27428
|
var import_typescript62 = __toESM(require("typescript"), 1);
|
|
27429
27429
|
|
|
27430
|
-
// bazel-out/
|
|
27430
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
27431
27431
|
var import_typescript59 = __toESM(require("typescript"), 1);
|
|
27432
27432
|
|
|
27433
|
-
// bazel-out/
|
|
27433
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/expando.mjs
|
|
27434
27434
|
var NgExtension = Symbol("NgExtension");
|
|
27435
27435
|
function isExtended(sf) {
|
|
27436
27436
|
return sf[NgExtension] !== void 0;
|
|
@@ -27490,13 +27490,13 @@ function retagTsFile(sf) {
|
|
|
27490
27490
|
}
|
|
27491
27491
|
}
|
|
27492
27492
|
|
|
27493
|
-
// bazel-out/
|
|
27493
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/util.mjs
|
|
27494
27494
|
var TS_EXTENSIONS = /\.tsx?$/i;
|
|
27495
27495
|
function makeShimFileName(fileName, suffix) {
|
|
27496
27496
|
return absoluteFrom(fileName.replace(TS_EXTENSIONS, suffix));
|
|
27497
27497
|
}
|
|
27498
27498
|
|
|
27499
|
-
// bazel-out/
|
|
27499
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
27500
27500
|
var ShimAdapter = class {
|
|
27501
27501
|
constructor(delegate, tsRootFiles, topLevelGenerators, perFileGenerators, oldProgram) {
|
|
27502
27502
|
this.delegate = delegate;
|
|
@@ -27591,7 +27591,7 @@ var ShimAdapter = class {
|
|
|
27591
27591
|
}
|
|
27592
27592
|
};
|
|
27593
27593
|
|
|
27594
|
-
// bazel-out/
|
|
27594
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
|
|
27595
27595
|
var ShimReferenceTagger = class {
|
|
27596
27596
|
constructor(shimExtensions) {
|
|
27597
27597
|
this.tagged = /* @__PURE__ */ new Set();
|
|
@@ -27625,7 +27625,7 @@ var ShimReferenceTagger = class {
|
|
|
27625
27625
|
}
|
|
27626
27626
|
};
|
|
27627
27627
|
|
|
27628
|
-
// bazel-out/
|
|
27628
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
|
|
27629
27629
|
var DelegatingCompilerHost = class {
|
|
27630
27630
|
constructor(delegate) {
|
|
27631
27631
|
this.delegate = delegate;
|
|
@@ -27738,7 +27738,7 @@ var TsCreateProgramDriver = class {
|
|
|
27738
27738
|
}
|
|
27739
27739
|
};
|
|
27740
27740
|
|
|
27741
|
-
// bazel-out/
|
|
27741
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.mjs
|
|
27742
27742
|
var FileDependencyGraph = class {
|
|
27743
27743
|
constructor() {
|
|
27744
27744
|
this.nodes = /* @__PURE__ */ new Map();
|
|
@@ -27805,7 +27805,7 @@ function isLogicallyChanged(sf, node, changedTsPaths, deletedTsPaths, changedRes
|
|
|
27805
27805
|
return false;
|
|
27806
27806
|
}
|
|
27807
27807
|
|
|
27808
|
-
// bazel-out/
|
|
27808
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
|
|
27809
27809
|
var IncrementalStateKind;
|
|
27810
27810
|
(function(IncrementalStateKind2) {
|
|
27811
27811
|
IncrementalStateKind2[IncrementalStateKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -27813,7 +27813,7 @@ var IncrementalStateKind;
|
|
|
27813
27813
|
IncrementalStateKind2[IncrementalStateKind2["Analyzed"] = 2] = "Analyzed";
|
|
27814
27814
|
})(IncrementalStateKind || (IncrementalStateKind = {}));
|
|
27815
27815
|
|
|
27816
|
-
// bazel-out/
|
|
27816
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
|
|
27817
27817
|
var PhaseKind;
|
|
27818
27818
|
(function(PhaseKind2) {
|
|
27819
27819
|
PhaseKind2[PhaseKind2["Analysis"] = 0] = "Analysis";
|
|
@@ -28014,7 +28014,7 @@ function toOriginalSourceFile(sf) {
|
|
|
28014
28014
|
}
|
|
28015
28015
|
}
|
|
28016
28016
|
|
|
28017
|
-
// bazel-out/
|
|
28017
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
|
|
28018
28018
|
var TrackedIncrementalBuildStrategy = class {
|
|
28019
28019
|
constructor() {
|
|
28020
28020
|
this.state = null;
|
|
@@ -28035,7 +28035,7 @@ var TrackedIncrementalBuildStrategy = class {
|
|
|
28035
28035
|
};
|
|
28036
28036
|
var SYM_INCREMENTAL_STATE = Symbol("NgIncrementalState");
|
|
28037
28037
|
|
|
28038
|
-
// bazel-out/
|
|
28038
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
|
|
28039
28039
|
var IdentifierKind;
|
|
28040
28040
|
(function(IdentifierKind2) {
|
|
28041
28041
|
IdentifierKind2[IdentifierKind2["Property"] = 0] = "Property";
|
|
@@ -28053,7 +28053,7 @@ var AbsoluteSourceSpan2 = class {
|
|
|
28053
28053
|
}
|
|
28054
28054
|
};
|
|
28055
28055
|
|
|
28056
|
-
// bazel-out/
|
|
28056
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/context.mjs
|
|
28057
28057
|
var IndexingContext = class {
|
|
28058
28058
|
constructor() {
|
|
28059
28059
|
this.components = /* @__PURE__ */ new Set();
|
|
@@ -28063,7 +28063,7 @@ var IndexingContext = class {
|
|
|
28063
28063
|
}
|
|
28064
28064
|
};
|
|
28065
28065
|
|
|
28066
|
-
// bazel-out/
|
|
28066
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
|
|
28067
28067
|
var ExpressionVisitor = class extends RecursiveAstVisitor {
|
|
28068
28068
|
constructor(expressionStr, absoluteOffset, boundTemplate, targetToIdentifier) {
|
|
28069
28069
|
super();
|
|
@@ -28299,7 +28299,7 @@ function getTemplateIdentifiers(boundTemplate) {
|
|
|
28299
28299
|
return { identifiers: visitor.identifiers, errors: visitor.errors };
|
|
28300
28300
|
}
|
|
28301
28301
|
|
|
28302
|
-
// bazel-out/
|
|
28302
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
|
|
28303
28303
|
function generateAnalysis(context) {
|
|
28304
28304
|
const analysis = /* @__PURE__ */ new Map();
|
|
28305
28305
|
context.components.forEach(({ declaration, selector, boundTemplate, templateMeta }) => {
|
|
@@ -28335,7 +28335,7 @@ function generateAnalysis(context) {
|
|
|
28335
28335
|
return analysis;
|
|
28336
28336
|
}
|
|
28337
28337
|
|
|
28338
|
-
// bazel-out/
|
|
28338
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/ng_module_index.mjs
|
|
28339
28339
|
var NgModuleIndexImpl = class {
|
|
28340
28340
|
constructor(metaReader, localReader) {
|
|
28341
28341
|
this.metaReader = metaReader;
|
|
@@ -28424,7 +28424,7 @@ var NgModuleIndexImpl = class {
|
|
|
28424
28424
|
}
|
|
28425
28425
|
};
|
|
28426
28426
|
|
|
28427
|
-
// bazel-out/
|
|
28427
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
|
|
28428
28428
|
var import_typescript65 = __toESM(require("typescript"), 1);
|
|
28429
28429
|
var CSS_PREPROCESSOR_EXT = /(\.scss|\.sass|\.less|\.styl)$/;
|
|
28430
28430
|
var RESOURCE_MARKER = ".$ngresource$";
|
|
@@ -28572,7 +28572,7 @@ function createLookupResolutionHost(adapter) {
|
|
|
28572
28572
|
};
|
|
28573
28573
|
}
|
|
28574
28574
|
|
|
28575
|
-
// bazel-out/
|
|
28575
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/standalone.mjs
|
|
28576
28576
|
var StandaloneComponentScopeReader = class {
|
|
28577
28577
|
constructor(metaReader, localModuleReader, dtsModuleReader) {
|
|
28578
28578
|
this.metaReader = metaReader;
|
|
@@ -28650,21 +28650,21 @@ var StandaloneComponentScopeReader = class {
|
|
|
28650
28650
|
}
|
|
28651
28651
|
};
|
|
28652
28652
|
|
|
28653
|
-
// bazel-out/
|
|
28653
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/checker.mjs
|
|
28654
28654
|
var OptimizeFor;
|
|
28655
28655
|
(function(OptimizeFor2) {
|
|
28656
28656
|
OptimizeFor2[OptimizeFor2["SingleFile"] = 0] = "SingleFile";
|
|
28657
28657
|
OptimizeFor2[OptimizeFor2["WholeProgram"] = 1] = "WholeProgram";
|
|
28658
28658
|
})(OptimizeFor || (OptimizeFor = {}));
|
|
28659
28659
|
|
|
28660
|
-
// bazel-out/
|
|
28660
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/completion.mjs
|
|
28661
28661
|
var CompletionKind;
|
|
28662
28662
|
(function(CompletionKind2) {
|
|
28663
28663
|
CompletionKind2[CompletionKind2["Reference"] = 0] = "Reference";
|
|
28664
28664
|
CompletionKind2[CompletionKind2["Variable"] = 1] = "Variable";
|
|
28665
28665
|
})(CompletionKind || (CompletionKind = {}));
|
|
28666
28666
|
|
|
28667
|
-
// bazel-out/
|
|
28667
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/scope.mjs
|
|
28668
28668
|
var PotentialImportKind;
|
|
28669
28669
|
(function(PotentialImportKind2) {
|
|
28670
28670
|
PotentialImportKind2[PotentialImportKind2["NgModule"] = 0] = "NgModule";
|
|
@@ -28676,7 +28676,7 @@ var PotentialImportMode;
|
|
|
28676
28676
|
PotentialImportMode2[PotentialImportMode2["ForceDirect"] = 1] = "ForceDirect";
|
|
28677
28677
|
})(PotentialImportMode || (PotentialImportMode = {}));
|
|
28678
28678
|
|
|
28679
|
-
// bazel-out/
|
|
28679
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.mjs
|
|
28680
28680
|
var SymbolKind;
|
|
28681
28681
|
(function(SymbolKind2) {
|
|
28682
28682
|
SymbolKind2[SymbolKind2["Input"] = 0] = "Input";
|
|
@@ -28692,7 +28692,7 @@ var SymbolKind;
|
|
|
28692
28692
|
SymbolKind2[SymbolKind2["Pipe"] = 10] = "Pipe";
|
|
28693
28693
|
})(SymbolKind || (SymbolKind = {}));
|
|
28694
28694
|
|
|
28695
|
-
// bazel-out/
|
|
28695
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
|
|
28696
28696
|
var import_typescript66 = __toESM(require("typescript"), 1);
|
|
28697
28697
|
function makeTemplateDiagnostic(templateId, mapping, span, category, code, messageText, relatedMessages) {
|
|
28698
28698
|
var _a;
|
|
@@ -28799,7 +28799,7 @@ function parseTemplateAsSourceFile(fileName, template) {
|
|
|
28799
28799
|
return import_typescript66.default.createSourceFile(fileName, template, import_typescript66.default.ScriptTarget.Latest, false, import_typescript66.default.ScriptKind.JSX);
|
|
28800
28800
|
}
|
|
28801
28801
|
|
|
28802
|
-
// bazel-out/
|
|
28802
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
|
|
28803
28803
|
var TEMPLATE_ID = Symbol("ngTemplateId");
|
|
28804
28804
|
var NEXT_TEMPLATE_ID = Symbol("ngNextTemplateId");
|
|
28805
28805
|
function getTemplateId(clazz) {
|
|
@@ -28816,10 +28816,10 @@ function allocateTemplateId(sf) {
|
|
|
28816
28816
|
return `tcb${sf[NEXT_TEMPLATE_ID]++}`;
|
|
28817
28817
|
}
|
|
28818
28818
|
|
|
28819
|
-
// bazel-out/
|
|
28819
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
28820
28820
|
var import_typescript68 = __toESM(require("typescript"), 1);
|
|
28821
28821
|
|
|
28822
|
-
// bazel-out/
|
|
28822
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
|
|
28823
28823
|
var import_typescript67 = __toESM(require("typescript"), 1);
|
|
28824
28824
|
var parseSpanComment = /^(\d+),(\d+)$/;
|
|
28825
28825
|
function readSpanComment(node, sourceFile = node.getSourceFile()) {
|
|
@@ -28948,7 +28948,7 @@ function hasExpressionIdentifier(sourceFile, node, identifier) {
|
|
|
28948
28948
|
}) || false;
|
|
28949
28949
|
}
|
|
28950
28950
|
|
|
28951
|
-
// bazel-out/
|
|
28951
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
28952
28952
|
var CompletionEngine = class {
|
|
28953
28953
|
constructor(tcb, data, tcbPath, tcbIsShim) {
|
|
28954
28954
|
this.tcb = tcb;
|
|
@@ -29105,10 +29105,10 @@ var CompletionEngine = class {
|
|
|
29105
29105
|
}
|
|
29106
29106
|
};
|
|
29107
29107
|
|
|
29108
|
-
// bazel-out/
|
|
29108
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
29109
29109
|
var import_typescript83 = __toESM(require("typescript"), 1);
|
|
29110
29110
|
|
|
29111
|
-
// bazel-out/
|
|
29111
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
|
|
29112
29112
|
var import_typescript69 = __toESM(require("typescript"), 1);
|
|
29113
29113
|
var REGISTRY = new DomElementSchemaRegistry();
|
|
29114
29114
|
var REMOVE_XHTML_REGEX = /^:xhtml:/;
|
|
@@ -29160,10 +29160,10 @@ var RegistryDomSchemaChecker = class {
|
|
|
29160
29160
|
}
|
|
29161
29161
|
};
|
|
29162
29162
|
|
|
29163
|
-
// bazel-out/
|
|
29163
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
29164
29164
|
var import_typescript76 = __toESM(require("typescript"), 1);
|
|
29165
29165
|
|
|
29166
|
-
// bazel-out/
|
|
29166
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
|
|
29167
29167
|
var import_typescript70 = __toESM(require("typescript"), 1);
|
|
29168
29168
|
var SAFE_TO_CAST_WITHOUT_PARENS = /* @__PURE__ */ new Set([
|
|
29169
29169
|
import_typescript70.default.SyntaxKind.ParenthesizedExpression,
|
|
@@ -29237,16 +29237,16 @@ function isAccessExpression(node) {
|
|
|
29237
29237
|
return import_typescript70.default.isPropertyAccessExpression(node) || import_typescript70.default.isElementAccessExpression(node);
|
|
29238
29238
|
}
|
|
29239
29239
|
|
|
29240
|
-
// bazel-out/
|
|
29240
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
29241
29241
|
var import_typescript75 = __toESM(require("typescript"), 1);
|
|
29242
29242
|
|
|
29243
|
-
// bazel-out/
|
|
29243
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
29244
29244
|
var import_typescript73 = __toESM(require("typescript"), 1);
|
|
29245
29245
|
|
|
29246
|
-
// bazel-out/
|
|
29246
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
|
|
29247
29247
|
var import_typescript72 = __toESM(require("typescript"), 1);
|
|
29248
29248
|
|
|
29249
|
-
// bazel-out/
|
|
29249
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_emitter.mjs
|
|
29250
29250
|
var import_typescript71 = __toESM(require("typescript"), 1);
|
|
29251
29251
|
var INELIGIBLE = {};
|
|
29252
29252
|
function canEmitType(type, canEmit) {
|
|
@@ -29321,7 +29321,7 @@ var TypeEmitter = class {
|
|
|
29321
29321
|
}
|
|
29322
29322
|
};
|
|
29323
29323
|
|
|
29324
|
-
// bazel-out/
|
|
29324
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
|
|
29325
29325
|
var TypeParameterEmitter = class {
|
|
29326
29326
|
constructor(typeParameters, reflector) {
|
|
29327
29327
|
this.typeParameters = typeParameters;
|
|
@@ -29398,7 +29398,7 @@ var TypeParameterEmitter = class {
|
|
|
29398
29398
|
}
|
|
29399
29399
|
};
|
|
29400
29400
|
|
|
29401
|
-
// bazel-out/
|
|
29401
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
29402
29402
|
var TcbInliningRequirement;
|
|
29403
29403
|
(function(TcbInliningRequirement2) {
|
|
29404
29404
|
TcbInliningRequirement2[TcbInliningRequirement2["MustInline"] = 0] = "MustInline";
|
|
@@ -29478,7 +29478,7 @@ function checkIfGenericTypeBoundsCanBeEmitted(node, reflector, env) {
|
|
|
29478
29478
|
return emitter.canEmit((ref) => env.canReferenceType(ref));
|
|
29479
29479
|
}
|
|
29480
29480
|
|
|
29481
|
-
// bazel-out/
|
|
29481
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
29482
29482
|
function generateTypeCtorDeclarationFn(node, meta, nodeTypeRef, typeParams) {
|
|
29483
29483
|
const rawTypeArgs = typeParams !== void 0 ? generateGenericArgs(typeParams) : void 0;
|
|
29484
29484
|
const rawType = import_typescript75.default.factory.createTypeReferenceNode(nodeTypeRef, rawTypeArgs);
|
|
@@ -29590,7 +29590,7 @@ function typeParametersWithDefaultTypes(params) {
|
|
|
29590
29590
|
});
|
|
29591
29591
|
}
|
|
29592
29592
|
|
|
29593
|
-
// bazel-out/
|
|
29593
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
29594
29594
|
var Environment = class {
|
|
29595
29595
|
constructor(config, importManager, refEmitter, reflector, contextFile) {
|
|
29596
29596
|
this.config = config;
|
|
@@ -29682,7 +29682,7 @@ var Environment = class {
|
|
|
29682
29682
|
}
|
|
29683
29683
|
};
|
|
29684
29684
|
|
|
29685
|
-
// bazel-out/
|
|
29685
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
|
|
29686
29686
|
var import_typescript77 = __toESM(require("typescript"), 1);
|
|
29687
29687
|
var OutOfBandDiagnosticRecorderImpl = class {
|
|
29688
29688
|
constructor(resolver) {
|
|
@@ -29813,7 +29813,7 @@ function makeInlineDiagnostic(templateId, code, node, messageText, relatedInform
|
|
|
29813
29813
|
});
|
|
29814
29814
|
}
|
|
29815
29815
|
|
|
29816
|
-
// bazel-out/
|
|
29816
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
|
|
29817
29817
|
var import_typescript78 = __toESM(require("typescript"), 1);
|
|
29818
29818
|
var TypeCheckShimGenerator = class {
|
|
29819
29819
|
constructor() {
|
|
@@ -29831,10 +29831,10 @@ var TypeCheckShimGenerator = class {
|
|
|
29831
29831
|
}
|
|
29832
29832
|
};
|
|
29833
29833
|
|
|
29834
|
-
// bazel-out/
|
|
29834
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
29835
29835
|
var import_typescript81 = __toESM(require("typescript"), 1);
|
|
29836
29836
|
|
|
29837
|
-
// bazel-out/
|
|
29837
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
|
|
29838
29838
|
var import_typescript79 = __toESM(require("typescript"), 1);
|
|
29839
29839
|
function wrapForDiagnostics(expr) {
|
|
29840
29840
|
return import_typescript79.default.factory.createParenthesizedExpression(expr);
|
|
@@ -29879,7 +29879,7 @@ function translateDiagnostic(diagnostic, resolver) {
|
|
|
29879
29879
|
return makeTemplateDiagnostic(sourceLocation.id, templateSourceMapping, span, diagnostic.category, diagnostic.code, diagnostic.messageText);
|
|
29880
29880
|
}
|
|
29881
29881
|
|
|
29882
|
-
// bazel-out/
|
|
29882
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
|
|
29883
29883
|
var import_typescript80 = __toESM(require("typescript"), 1);
|
|
29884
29884
|
var NULL_AS_ANY = import_typescript80.default.factory.createAsExpression(import_typescript80.default.factory.createNull(), import_typescript80.default.factory.createKeywordTypeNode(import_typescript80.default.SyntaxKind.AnyKeyword));
|
|
29885
29885
|
var UNDEFINED = import_typescript80.default.factory.createIdentifier("undefined");
|
|
@@ -30208,7 +30208,7 @@ var VeSafeLhsInferenceBugDetector = class {
|
|
|
30208
30208
|
};
|
|
30209
30209
|
VeSafeLhsInferenceBugDetector.SINGLETON = new VeSafeLhsInferenceBugDetector();
|
|
30210
30210
|
|
|
30211
|
-
// bazel-out/
|
|
30211
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_semantics.mjs
|
|
30212
30212
|
var ExpressionSemanticVisitor = class extends RecursiveAstVisitor {
|
|
30213
30213
|
constructor(templateId, boundTarget, oob) {
|
|
30214
30214
|
super();
|
|
@@ -30231,7 +30231,7 @@ var ExpressionSemanticVisitor = class extends RecursiveAstVisitor {
|
|
|
30231
30231
|
}
|
|
30232
30232
|
};
|
|
30233
30233
|
|
|
30234
|
-
// bazel-out/
|
|
30234
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
30235
30235
|
var TcbGenericContextBehavior;
|
|
30236
30236
|
(function(TcbGenericContextBehavior2) {
|
|
30237
30237
|
TcbGenericContextBehavior2[TcbGenericContextBehavior2["UseEmitter"] = 0] = "UseEmitter";
|
|
@@ -31334,7 +31334,7 @@ var TcbEventHandlerTranslator = class extends TcbExpressionTranslator {
|
|
|
31334
31334
|
}
|
|
31335
31335
|
};
|
|
31336
31336
|
|
|
31337
|
-
// bazel-out/
|
|
31337
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
|
|
31338
31338
|
var import_typescript82 = __toESM(require("typescript"), 1);
|
|
31339
31339
|
var TypeCheckFile = class extends Environment {
|
|
31340
31340
|
constructor(fileName, config, refEmitter, reflector, compilerHost) {
|
|
@@ -31370,7 +31370,7 @@ var TypeCheckFile = class extends Environment {
|
|
|
31370
31370
|
}
|
|
31371
31371
|
};
|
|
31372
31372
|
|
|
31373
|
-
// bazel-out/
|
|
31373
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
31374
31374
|
var InliningMode;
|
|
31375
31375
|
(function(InliningMode2) {
|
|
31376
31376
|
InliningMode2[InliningMode2["InlineOps"] = 0] = "InlineOps";
|
|
@@ -31608,7 +31608,7 @@ function splitStringAtPoints(str, points) {
|
|
|
31608
31608
|
return splits;
|
|
31609
31609
|
}
|
|
31610
31610
|
|
|
31611
|
-
// bazel-out/
|
|
31611
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/line_mappings.mjs
|
|
31612
31612
|
var LF_CHAR = 10;
|
|
31613
31613
|
var CR_CHAR = 13;
|
|
31614
31614
|
var LINE_SEP_CHAR = 8232;
|
|
@@ -31649,7 +31649,7 @@ function findClosestLineStartPosition(linesMap, position, low = 0, high = linesM
|
|
|
31649
31649
|
return low - 1;
|
|
31650
31650
|
}
|
|
31651
31651
|
|
|
31652
|
-
// bazel-out/
|
|
31652
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
|
|
31653
31653
|
var TemplateSource = class {
|
|
31654
31654
|
constructor(mapping, file) {
|
|
31655
31655
|
this.mapping = mapping;
|
|
@@ -31700,7 +31700,7 @@ var TemplateSourceManager = class {
|
|
|
31700
31700
|
}
|
|
31701
31701
|
};
|
|
31702
31702
|
|
|
31703
|
-
// bazel-out/
|
|
31703
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
|
|
31704
31704
|
var import_typescript84 = __toESM(require("typescript"), 1);
|
|
31705
31705
|
var SymbolBuilder = class {
|
|
31706
31706
|
constructor(tcbPath, tcbIsShim, typeCheckBlock, templateData, componentScopeReader, getTypeChecker) {
|
|
@@ -32177,7 +32177,7 @@ function sourceSpanEqual(a, b) {
|
|
|
32177
32177
|
return a.start.offset === b.start.offset && a.end.offset === b.end.offset;
|
|
32178
32178
|
}
|
|
32179
32179
|
|
|
32180
|
-
// bazel-out/
|
|
32180
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
|
|
32181
32181
|
var REGISTRY2 = new DomElementSchemaRegistry();
|
|
32182
32182
|
var TemplateTypeCheckerImpl = class {
|
|
32183
32183
|
constructor(originalProgram, programDriver, typeCheckAdapter, config, refEmitter, reflector, compilerHost, priorBuild, metaReader, localMetaReader, ngModuleIndex, componentScopeReader, typeCheckScopeRegistry, perf) {
|
|
@@ -32870,7 +32870,7 @@ var SingleShimTypeCheckingHost = class extends SingleFileTypeCheckingHost {
|
|
|
32870
32870
|
}
|
|
32871
32871
|
};
|
|
32872
32872
|
|
|
32873
|
-
// bazel-out/
|
|
32873
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
|
|
32874
32874
|
var TemplateCheckWithVisitor = class {
|
|
32875
32875
|
run(ctx, component, template) {
|
|
32876
32876
|
const visitor = new TemplateVisitor2(ctx, component, this);
|
|
@@ -32946,7 +32946,7 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor {
|
|
|
32946
32946
|
}
|
|
32947
32947
|
};
|
|
32948
32948
|
|
|
32949
|
-
// bazel-out/
|
|
32949
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
|
|
32950
32950
|
var InvalidBananaInBoxCheck = class extends TemplateCheckWithVisitor {
|
|
32951
32951
|
constructor() {
|
|
32952
32952
|
super(...arguments);
|
|
@@ -32971,7 +32971,7 @@ var factory = {
|
|
|
32971
32971
|
create: () => new InvalidBananaInBoxCheck()
|
|
32972
32972
|
};
|
|
32973
32973
|
|
|
32974
|
-
// bazel-out/
|
|
32974
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.mjs
|
|
32975
32975
|
var KNOWN_CONTROL_FLOW_DIRECTIVES = /* @__PURE__ */ new Map([
|
|
32976
32976
|
["ngIf", "NgIf"],
|
|
32977
32977
|
["ngFor", "NgFor"],
|
|
@@ -33015,7 +33015,7 @@ var factory2 = {
|
|
|
33015
33015
|
}
|
|
33016
33016
|
};
|
|
33017
33017
|
|
|
33018
|
-
// bazel-out/
|
|
33018
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.mjs
|
|
33019
33019
|
var MissingNgForOfLetCheck = class extends TemplateCheckWithVisitor {
|
|
33020
33020
|
constructor() {
|
|
33021
33021
|
super(...arguments);
|
|
@@ -33047,7 +33047,7 @@ var factory3 = {
|
|
|
33047
33047
|
create: () => new MissingNgForOfLetCheck()
|
|
33048
33048
|
};
|
|
33049
33049
|
|
|
33050
|
-
// bazel-out/
|
|
33050
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
|
|
33051
33051
|
var import_typescript87 = __toESM(require("typescript"), 1);
|
|
33052
33052
|
var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
33053
33053
|
constructor() {
|
|
@@ -33091,7 +33091,7 @@ var factory4 = {
|
|
|
33091
33091
|
}
|
|
33092
33092
|
};
|
|
33093
33093
|
|
|
33094
|
-
// bazel-out/
|
|
33094
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.mjs
|
|
33095
33095
|
var import_typescript88 = __toESM(require("typescript"), 1);
|
|
33096
33096
|
var OptionalChainNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
33097
33097
|
constructor() {
|
|
@@ -33136,7 +33136,7 @@ var factory5 = {
|
|
|
33136
33136
|
}
|
|
33137
33137
|
};
|
|
33138
33138
|
|
|
33139
|
-
// bazel-out/
|
|
33139
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.mjs
|
|
33140
33140
|
var STYLE_SUFFIXES = ["px", "%", "em"];
|
|
33141
33141
|
var SuffixNotSupportedCheck = class extends TemplateCheckWithVisitor {
|
|
33142
33142
|
constructor() {
|
|
@@ -33159,7 +33159,7 @@ var factory6 = {
|
|
|
33159
33159
|
create: () => new SuffixNotSupportedCheck()
|
|
33160
33160
|
};
|
|
33161
33161
|
|
|
33162
|
-
// bazel-out/
|
|
33162
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.mjs
|
|
33163
33163
|
var TextAttributeNotBindingSpec = class extends TemplateCheckWithVisitor {
|
|
33164
33164
|
constructor() {
|
|
33165
33165
|
super(...arguments);
|
|
@@ -33197,10 +33197,10 @@ var factory7 = {
|
|
|
33197
33197
|
create: () => new TextAttributeNotBindingSpec()
|
|
33198
33198
|
};
|
|
33199
33199
|
|
|
33200
|
-
// bazel-out/
|
|
33200
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
33201
33201
|
var import_typescript89 = __toESM(require("typescript"), 1);
|
|
33202
33202
|
|
|
33203
|
-
// bazel-out/
|
|
33203
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
|
|
33204
33204
|
var DiagnosticCategoryLabel;
|
|
33205
33205
|
(function(DiagnosticCategoryLabel2) {
|
|
33206
33206
|
DiagnosticCategoryLabel2["Warning"] = "warning";
|
|
@@ -33208,7 +33208,7 @@ var DiagnosticCategoryLabel;
|
|
|
33208
33208
|
DiagnosticCategoryLabel2["Suppress"] = "suppress";
|
|
33209
33209
|
})(DiagnosticCategoryLabel || (DiagnosticCategoryLabel = {}));
|
|
33210
33210
|
|
|
33211
|
-
// bazel-out/
|
|
33211
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
33212
33212
|
var ExtendedTemplateCheckerImpl = class {
|
|
33213
33213
|
constructor(templateTypeChecker, typeChecker, templateCheckFactories, options) {
|
|
33214
33214
|
var _a, _b, _c, _d, _e;
|
|
@@ -33260,7 +33260,7 @@ function assertNever(value) {
|
|
|
33260
33260
|
${value}`);
|
|
33261
33261
|
}
|
|
33262
33262
|
|
|
33263
|
-
// bazel-out/
|
|
33263
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
|
|
33264
33264
|
var ALL_DIAGNOSTIC_FACTORIES = [
|
|
33265
33265
|
factory,
|
|
33266
33266
|
factory4,
|
|
@@ -33271,7 +33271,7 @@ var ALL_DIAGNOSTIC_FACTORIES = [
|
|
|
33271
33271
|
factory6
|
|
33272
33272
|
];
|
|
33273
33273
|
|
|
33274
|
-
// bazel-out/
|
|
33274
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
33275
33275
|
var CompilationTicketKind;
|
|
33276
33276
|
(function(CompilationTicketKind2) {
|
|
33277
33277
|
CompilationTicketKind2[CompilationTicketKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -33958,7 +33958,7 @@ function versionMapFromProgram(program, driver) {
|
|
|
33958
33958
|
return versions;
|
|
33959
33959
|
}
|
|
33960
33960
|
|
|
33961
|
-
// bazel-out/
|
|
33961
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
|
|
33962
33962
|
var import_typescript92 = __toESM(require("typescript"), 1);
|
|
33963
33963
|
var DelegatingCompilerHost2 = class {
|
|
33964
33964
|
constructor(delegate) {
|
|
@@ -34091,7 +34091,7 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
|
|
|
34091
34091
|
}
|
|
34092
34092
|
};
|
|
34093
34093
|
|
|
34094
|
-
// bazel-out/
|
|
34094
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
34095
34095
|
var NgtscProgram = class {
|
|
34096
34096
|
constructor(rootNames, options, delegateHost, oldProgram) {
|
|
34097
34097
|
this.options = options;
|
|
@@ -34309,21 +34309,21 @@ function mergeEmitResults(emitResults) {
|
|
|
34309
34309
|
return { diagnostics, emitSkipped, emittedFiles };
|
|
34310
34310
|
}
|
|
34311
34311
|
|
|
34312
|
-
// bazel-out/
|
|
34312
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
|
|
34313
34313
|
function createProgram({ rootNames, options, host, oldProgram }) {
|
|
34314
34314
|
return new NgtscProgram(rootNames, options, host, oldProgram);
|
|
34315
34315
|
}
|
|
34316
34316
|
|
|
34317
|
-
// bazel-out/
|
|
34317
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
34318
34318
|
var import_typescript96 = __toESM(require("typescript"), 1);
|
|
34319
34319
|
|
|
34320
|
-
// bazel-out/
|
|
34320
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
|
|
34321
34321
|
var import_typescript95 = __toESM(require("typescript"), 1);
|
|
34322
34322
|
|
|
34323
|
-
// bazel-out/
|
|
34323
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/downlevel_decorators_transform/downlevel_decorators_transform.mjs
|
|
34324
34324
|
var import_typescript97 = __toESM(require("typescript"), 1);
|
|
34325
34325
|
|
|
34326
|
-
// bazel-out/
|
|
34326
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/private/tooling.mjs
|
|
34327
34327
|
var GLOBAL_DEFS_FOR_TERSER = {
|
|
34328
34328
|
ngDevMode: false,
|
|
34329
34329
|
ngI18nClosureMode: false
|
|
@@ -34332,7 +34332,7 @@ var GLOBAL_DEFS_FOR_TERSER_WITH_AOT = __spreadProps(__spreadValues({}, GLOBAL_DE
|
|
|
34332
34332
|
ngJitMode: false
|
|
34333
34333
|
});
|
|
34334
34334
|
|
|
34335
|
-
// bazel-out/
|
|
34335
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/logging/src/logger.mjs
|
|
34336
34336
|
var LogLevel;
|
|
34337
34337
|
(function(LogLevel2) {
|
|
34338
34338
|
LogLevel2[LogLevel2["debug"] = 0] = "debug";
|
|
@@ -34341,7 +34341,7 @@ var LogLevel;
|
|
|
34341
34341
|
LogLevel2[LogLevel2["error"] = 3] = "error";
|
|
34342
34342
|
})(LogLevel || (LogLevel = {}));
|
|
34343
34343
|
|
|
34344
|
-
// bazel-out/
|
|
34344
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/logging/src/console_logger.mjs
|
|
34345
34345
|
var RESET = "\x1B[0m";
|
|
34346
34346
|
var RED = "\x1B[31m";
|
|
34347
34347
|
var YELLOW = "\x1B[33m";
|
|
@@ -34350,233 +34350,20 @@ var DEBUG = `${BLUE}Debug:${RESET}`;
|
|
|
34350
34350
|
var WARN = `${YELLOW}Warning:${RESET}`;
|
|
34351
34351
|
var ERROR = `${RED}Error:${RESET}`;
|
|
34352
34352
|
|
|
34353
|
-
// bazel-out/
|
|
34353
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/index.mjs
|
|
34354
34354
|
setFileSystem(new NodeJSFileSystem());
|
|
34355
34355
|
|
|
34356
|
-
// bazel-out/
|
|
34356
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/index.mjs
|
|
34357
34357
|
var import_fs2 = require("fs");
|
|
34358
34358
|
var import_path8 = require("path");
|
|
34359
|
-
var
|
|
34360
|
-
|
|
34361
|
-
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
|
|
34362
|
-
var import_core13 = require("@angular-devkit/core");
|
|
34363
|
-
function getProjectTsConfigPaths(tree) {
|
|
34364
|
-
return __async(this, null, function* () {
|
|
34365
|
-
const buildPaths = /* @__PURE__ */ new Set();
|
|
34366
|
-
const testPaths = /* @__PURE__ */ new Set();
|
|
34367
|
-
const workspace = yield getWorkspace(tree);
|
|
34368
|
-
for (const [, project] of workspace.projects) {
|
|
34369
|
-
for (const [name, target] of project.targets) {
|
|
34370
|
-
if (name !== "build" && name !== "test") {
|
|
34371
|
-
continue;
|
|
34372
|
-
}
|
|
34373
|
-
for (const [, options] of allTargetOptions(target)) {
|
|
34374
|
-
const tsConfig = options.tsConfig;
|
|
34375
|
-
if (typeof tsConfig !== "string" || !tree.exists(tsConfig)) {
|
|
34376
|
-
continue;
|
|
34377
|
-
}
|
|
34378
|
-
if (name === "build") {
|
|
34379
|
-
buildPaths.add((0, import_core13.normalize)(tsConfig));
|
|
34380
|
-
} else {
|
|
34381
|
-
testPaths.add((0, import_core13.normalize)(tsConfig));
|
|
34382
|
-
}
|
|
34383
|
-
}
|
|
34384
|
-
}
|
|
34385
|
-
}
|
|
34386
|
-
return {
|
|
34387
|
-
buildPaths: [...buildPaths],
|
|
34388
|
-
testPaths: [...testPaths]
|
|
34389
|
-
};
|
|
34390
|
-
});
|
|
34391
|
-
}
|
|
34392
|
-
function* allTargetOptions(target) {
|
|
34393
|
-
if (target.options) {
|
|
34394
|
-
yield [void 0, target.options];
|
|
34395
|
-
}
|
|
34396
|
-
if (!target.configurations) {
|
|
34397
|
-
return;
|
|
34398
|
-
}
|
|
34399
|
-
for (const [name, options] of Object.entries(target.configurations)) {
|
|
34400
|
-
if (options) {
|
|
34401
|
-
yield [name, options];
|
|
34402
|
-
}
|
|
34403
|
-
}
|
|
34404
|
-
}
|
|
34405
|
-
function createHost(tree) {
|
|
34406
|
-
return {
|
|
34407
|
-
readFile(path3) {
|
|
34408
|
-
return __async(this, null, function* () {
|
|
34409
|
-
const data = tree.read(path3);
|
|
34410
|
-
if (!data) {
|
|
34411
|
-
throw new Error("File not found.");
|
|
34412
|
-
}
|
|
34413
|
-
return import_core13.virtualFs.fileBufferToString(data);
|
|
34414
|
-
});
|
|
34415
|
-
},
|
|
34416
|
-
writeFile(path3, data) {
|
|
34417
|
-
return __async(this, null, function* () {
|
|
34418
|
-
return tree.overwrite(path3, data);
|
|
34419
|
-
});
|
|
34420
|
-
},
|
|
34421
|
-
isDirectory(path3) {
|
|
34422
|
-
return __async(this, null, function* () {
|
|
34423
|
-
return !tree.exists(path3) && tree.getDir(path3).subfiles.length > 0;
|
|
34424
|
-
});
|
|
34425
|
-
},
|
|
34426
|
-
isFile(path3) {
|
|
34427
|
-
return __async(this, null, function* () {
|
|
34428
|
-
return tree.exists(path3);
|
|
34429
|
-
});
|
|
34430
|
-
}
|
|
34431
|
-
};
|
|
34432
|
-
}
|
|
34433
|
-
function getWorkspace(tree) {
|
|
34434
|
-
return __async(this, null, function* () {
|
|
34435
|
-
const host = createHost(tree);
|
|
34436
|
-
const { workspace } = yield import_core13.workspaces.readWorkspace("/", host);
|
|
34437
|
-
return workspace;
|
|
34438
|
-
});
|
|
34439
|
-
}
|
|
34359
|
+
var import_typescript110 = __toESM(require("typescript"), 1);
|
|
34440
34360
|
|
|
34441
|
-
// bazel-out/
|
|
34442
|
-
var import_path4 = require("path");
|
|
34361
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
|
|
34443
34362
|
var import_typescript99 = __toESM(require("typescript"), 1);
|
|
34444
34363
|
|
|
34445
|
-
// bazel-out/
|
|
34446
|
-
var
|
|
34364
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/import_manager.mjs
|
|
34365
|
+
var import_path4 = require("path");
|
|
34447
34366
|
var import_typescript98 = __toESM(require("typescript"), 1);
|
|
34448
|
-
function parseTsconfigFile(tsconfigPath, basePath) {
|
|
34449
|
-
const { config } = import_typescript98.default.readConfigFile(tsconfigPath, import_typescript98.default.sys.readFile);
|
|
34450
|
-
const parseConfigHost = {
|
|
34451
|
-
useCaseSensitiveFileNames: import_typescript98.default.sys.useCaseSensitiveFileNames,
|
|
34452
|
-
fileExists: import_typescript98.default.sys.fileExists,
|
|
34453
|
-
readDirectory: import_typescript98.default.sys.readDirectory,
|
|
34454
|
-
readFile: import_typescript98.default.sys.readFile
|
|
34455
|
-
};
|
|
34456
|
-
if (!path2.isAbsolute(basePath)) {
|
|
34457
|
-
throw Error("Unexpected relative base path has been specified.");
|
|
34458
|
-
}
|
|
34459
|
-
return import_typescript98.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
|
|
34460
|
-
}
|
|
34461
|
-
|
|
34462
|
-
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
34463
|
-
function createProgramOptions(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles, optionOverrides) {
|
|
34464
|
-
tsconfigPath = (0, import_path4.resolve)(basePath, tsconfigPath);
|
|
34465
|
-
const parsed = parseTsconfigFile(tsconfigPath, (0, import_path4.dirname)(tsconfigPath));
|
|
34466
|
-
const options = optionOverrides ? __spreadValues(__spreadValues({}, parsed.options), optionOverrides) : parsed.options;
|
|
34467
|
-
const host = createMigrationCompilerHost(tree, options, basePath, fakeFileRead);
|
|
34468
|
-
return { rootNames: parsed.fileNames.concat(additionalFiles || []), options, host };
|
|
34469
|
-
}
|
|
34470
|
-
function createMigrationCompilerHost(tree, options, basePath, fakeRead) {
|
|
34471
|
-
const host = import_typescript99.default.createCompilerHost(options, true);
|
|
34472
|
-
const defaultReadFile = host.readFile;
|
|
34473
|
-
host.readFile = (fileName) => {
|
|
34474
|
-
var _a;
|
|
34475
|
-
const treeRelativePath = (0, import_path4.relative)(basePath, fileName);
|
|
34476
|
-
let result = fakeRead == null ? void 0 : fakeRead(treeRelativePath);
|
|
34477
|
-
if (typeof result !== "string") {
|
|
34478
|
-
result = treeRelativePath.startsWith("..") ? defaultReadFile.call(host, fileName) : (_a = tree.read(treeRelativePath)) == null ? void 0 : _a.toString();
|
|
34479
|
-
}
|
|
34480
|
-
return typeof result === "string" ? result.replace(/^\uFEFF/, "") : void 0;
|
|
34481
|
-
};
|
|
34482
|
-
return host;
|
|
34483
|
-
}
|
|
34484
|
-
function canMigrateFile(basePath, sourceFile, program) {
|
|
34485
|
-
if (sourceFile.fileName.endsWith(".ngtypecheck.ts") || sourceFile.isDeclarationFile || program.isSourceFileFromExternalLibrary(sourceFile)) {
|
|
34486
|
-
return false;
|
|
34487
|
-
}
|
|
34488
|
-
return !(0, import_path4.relative)(basePath, sourceFile.fileName).startsWith("..");
|
|
34489
|
-
}
|
|
34490
|
-
|
|
34491
|
-
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/prune-modules.mjs
|
|
34492
|
-
var import_typescript105 = __toESM(require("typescript"), 1);
|
|
34493
|
-
|
|
34494
|
-
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
|
|
34495
|
-
var import_typescript101 = __toESM(require("typescript"), 1);
|
|
34496
|
-
|
|
34497
|
-
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
|
|
34498
|
-
var import_typescript100 = __toESM(require("typescript"), 1);
|
|
34499
|
-
function getImportOfIdentifier(typeChecker, node) {
|
|
34500
|
-
const symbol = typeChecker.getSymbolAtLocation(node);
|
|
34501
|
-
if (!symbol || symbol.declarations === void 0 || !symbol.declarations.length) {
|
|
34502
|
-
return null;
|
|
34503
|
-
}
|
|
34504
|
-
const decl = symbol.declarations[0];
|
|
34505
|
-
if (!import_typescript100.default.isImportSpecifier(decl)) {
|
|
34506
|
-
return null;
|
|
34507
|
-
}
|
|
34508
|
-
const importDecl = decl.parent.parent.parent;
|
|
34509
|
-
if (!import_typescript100.default.isStringLiteral(importDecl.moduleSpecifier)) {
|
|
34510
|
-
return null;
|
|
34511
|
-
}
|
|
34512
|
-
return {
|
|
34513
|
-
name: decl.propertyName ? decl.propertyName.text : decl.name.text,
|
|
34514
|
-
importModule: importDecl.moduleSpecifier.text,
|
|
34515
|
-
node: importDecl
|
|
34516
|
-
};
|
|
34517
|
-
}
|
|
34518
|
-
function getImportSpecifier(sourceFile, moduleName, specifierName) {
|
|
34519
|
-
var _a;
|
|
34520
|
-
for (const node of sourceFile.statements) {
|
|
34521
|
-
if (import_typescript100.default.isImportDeclaration(node) && import_typescript100.default.isStringLiteral(node.moduleSpecifier)) {
|
|
34522
|
-
const isMatch = typeof moduleName === "string" ? node.moduleSpecifier.text === moduleName : moduleName.test(node.moduleSpecifier.text);
|
|
34523
|
-
const namedBindings = (_a = node.importClause) == null ? void 0 : _a.namedBindings;
|
|
34524
|
-
if (isMatch && namedBindings && import_typescript100.default.isNamedImports(namedBindings)) {
|
|
34525
|
-
const match = findImportSpecifier(namedBindings.elements, specifierName);
|
|
34526
|
-
if (match) {
|
|
34527
|
-
return match;
|
|
34528
|
-
}
|
|
34529
|
-
}
|
|
34530
|
-
}
|
|
34531
|
-
}
|
|
34532
|
-
return null;
|
|
34533
|
-
}
|
|
34534
|
-
function findImportSpecifier(nodes, specifierName) {
|
|
34535
|
-
return nodes.find((element) => {
|
|
34536
|
-
const { name, propertyName } = element;
|
|
34537
|
-
return propertyName ? propertyName.text === specifierName : name.text === specifierName;
|
|
34538
|
-
});
|
|
34539
|
-
}
|
|
34540
|
-
|
|
34541
|
-
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
|
|
34542
|
-
function getCallDecoratorImport(typeChecker, decorator) {
|
|
34543
|
-
if (!import_typescript101.default.isCallExpression(decorator.expression) || !import_typescript101.default.isIdentifier(decorator.expression.expression)) {
|
|
34544
|
-
return null;
|
|
34545
|
-
}
|
|
34546
|
-
const identifier = decorator.expression.expression;
|
|
34547
|
-
return getImportOfIdentifier(typeChecker, identifier);
|
|
34548
|
-
}
|
|
34549
|
-
|
|
34550
|
-
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/ng_decorators.mjs
|
|
34551
|
-
function getAngularDecorators(typeChecker, decorators) {
|
|
34552
|
-
return decorators.map((node) => ({ node, importData: getCallDecoratorImport(typeChecker, node) })).filter(({ importData }) => importData && importData.importModule.startsWith("@angular/")).map(({ node, importData }) => ({
|
|
34553
|
-
node,
|
|
34554
|
-
name: importData.name,
|
|
34555
|
-
moduleName: importData.importModule,
|
|
34556
|
-
importNode: importData.node
|
|
34557
|
-
}));
|
|
34558
|
-
}
|
|
34559
|
-
|
|
34560
|
-
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/nodes.mjs
|
|
34561
|
-
var import_typescript102 = __toESM(require("typescript"), 1);
|
|
34562
|
-
function closestNode(node, predicate) {
|
|
34563
|
-
let current = node.parent;
|
|
34564
|
-
while (current && !import_typescript102.default.isSourceFile(current)) {
|
|
34565
|
-
if (predicate(current)) {
|
|
34566
|
-
return current;
|
|
34567
|
-
}
|
|
34568
|
-
current = current.parent;
|
|
34569
|
-
}
|
|
34570
|
-
return null;
|
|
34571
|
-
}
|
|
34572
|
-
|
|
34573
|
-
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/util.mjs
|
|
34574
|
-
var import_path6 = require("path");
|
|
34575
|
-
var import_typescript104 = __toESM(require("typescript"), 1);
|
|
34576
|
-
|
|
34577
|
-
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/import_manager.mjs
|
|
34578
|
-
var import_path5 = require("path");
|
|
34579
|
-
var import_typescript103 = __toESM(require("typescript"), 1);
|
|
34580
34367
|
var ImportManager2 = class {
|
|
34581
34368
|
constructor(getUpdateRecorder, printer) {
|
|
34582
34369
|
this.getUpdateRecorder = getUpdateRecorder;
|
|
@@ -34588,7 +34375,7 @@ var ImportManager2 = class {
|
|
|
34588
34375
|
this.importCache = [];
|
|
34589
34376
|
}
|
|
34590
34377
|
addImportToSourceFile(sourceFile, symbolName, moduleName, alias = null, typeImport = false) {
|
|
34591
|
-
const sourceDir = (0,
|
|
34378
|
+
const sourceDir = (0, import_path4.dirname)(sourceFile.fileName);
|
|
34592
34379
|
let importStartIndex = 0;
|
|
34593
34380
|
let existingImport = null;
|
|
34594
34381
|
const cachedImport = this.importCache.find((c) => c.sourceFile === sourceFile && c.symbolName === symbolName && c.moduleName === moduleName && c.alias === alias);
|
|
@@ -34597,21 +34384,21 @@ var ImportManager2 = class {
|
|
|
34597
34384
|
}
|
|
34598
34385
|
for (let i = sourceFile.statements.length - 1; i >= 0; i--) {
|
|
34599
34386
|
const statement = sourceFile.statements[i];
|
|
34600
|
-
if (!
|
|
34387
|
+
if (!import_typescript98.default.isImportDeclaration(statement) || !import_typescript98.default.isStringLiteral(statement.moduleSpecifier) || !statement.importClause) {
|
|
34601
34388
|
continue;
|
|
34602
34389
|
}
|
|
34603
34390
|
if (importStartIndex === 0) {
|
|
34604
34391
|
importStartIndex = this._getEndPositionOfNode(statement);
|
|
34605
34392
|
}
|
|
34606
34393
|
const moduleSpecifier = statement.moduleSpecifier.text;
|
|
34607
|
-
if (moduleSpecifier.startsWith(".") && (0,
|
|
34394
|
+
if (moduleSpecifier.startsWith(".") && (0, import_path4.resolve)(sourceDir, moduleSpecifier) !== (0, import_path4.resolve)(sourceDir, moduleName) || moduleSpecifier !== moduleName) {
|
|
34608
34395
|
continue;
|
|
34609
34396
|
}
|
|
34610
34397
|
if (statement.importClause.namedBindings) {
|
|
34611
34398
|
const namedBindings = statement.importClause.namedBindings;
|
|
34612
|
-
if (
|
|
34613
|
-
return
|
|
34614
|
-
} else if (
|
|
34399
|
+
if (import_typescript98.default.isNamespaceImport(namedBindings) && !typeImport) {
|
|
34400
|
+
return import_typescript98.default.factory.createPropertyAccessExpression(import_typescript98.default.factory.createIdentifier(namedBindings.name.text), import_typescript98.default.factory.createIdentifier(alias || symbolName || "default"));
|
|
34401
|
+
} else if (import_typescript98.default.isNamedImports(namedBindings) && symbolName) {
|
|
34615
34402
|
const existingElement = namedBindings.elements.find((e) => {
|
|
34616
34403
|
if (alias) {
|
|
34617
34404
|
return e.propertyName && e.name.text === alias && e.propertyName.text === symbolName;
|
|
@@ -34619,12 +34406,12 @@ var ImportManager2 = class {
|
|
|
34619
34406
|
return e.propertyName ? e.propertyName.text === symbolName : e.name.text === symbolName;
|
|
34620
34407
|
});
|
|
34621
34408
|
if (existingElement) {
|
|
34622
|
-
return
|
|
34409
|
+
return import_typescript98.default.factory.createIdentifier(existingElement.name.text);
|
|
34623
34410
|
}
|
|
34624
34411
|
existingImport = statement;
|
|
34625
34412
|
}
|
|
34626
34413
|
} else if (statement.importClause.name && !symbolName) {
|
|
34627
|
-
return
|
|
34414
|
+
return import_typescript98.default.factory.createIdentifier(statement.importClause.name.text);
|
|
34628
34415
|
}
|
|
34629
34416
|
}
|
|
34630
34417
|
if (existingImport) {
|
|
@@ -34648,7 +34435,7 @@ var ImportManager2 = class {
|
|
|
34648
34435
|
if (!importMap.has(moduleName)) {
|
|
34649
34436
|
importMap.set(moduleName, []);
|
|
34650
34437
|
}
|
|
34651
|
-
importMap.get(moduleName).push(
|
|
34438
|
+
importMap.get(moduleName).push(import_typescript98.default.factory.createImportSpecifier(false, propertyName, name));
|
|
34652
34439
|
} else {
|
|
34653
34440
|
const importMap = this.newImports.get(sourceFile).defaultImports;
|
|
34654
34441
|
identifier = this._getUniqueIdentifier(sourceFile, "defaultExport");
|
|
@@ -34662,19 +34449,19 @@ var ImportManager2 = class {
|
|
|
34662
34449
|
const sourceFile = importDecl.getSourceFile();
|
|
34663
34450
|
const recorder = this.getUpdateRecorder(sourceFile);
|
|
34664
34451
|
const namedBindings = importDecl.importClause.namedBindings;
|
|
34665
|
-
const newNamedBindings =
|
|
34666
|
-
const newNamedBindingsText = this.printer.printNode(
|
|
34452
|
+
const newNamedBindings = import_typescript98.default.factory.updateNamedImports(namedBindings, namedBindings.elements.concat(expressions.map(({ propertyName, importName }) => import_typescript98.default.factory.createImportSpecifier(false, propertyName, importName))));
|
|
34453
|
+
const newNamedBindingsText = this.printer.printNode(import_typescript98.default.EmitHint.Unspecified, newNamedBindings, sourceFile);
|
|
34667
34454
|
recorder.updateExistingImport(namedBindings, newNamedBindingsText);
|
|
34668
34455
|
});
|
|
34669
34456
|
this.newImports.forEach(({ importStartIndex, defaultImports, namedImports }, sourceFile) => {
|
|
34670
34457
|
const recorder = this.getUpdateRecorder(sourceFile);
|
|
34671
34458
|
const useSingleQuotes = this._getQuoteStyle(sourceFile) === 0;
|
|
34672
34459
|
defaultImports.forEach((identifier, moduleName) => {
|
|
34673
|
-
const newImport =
|
|
34460
|
+
const newImport = import_typescript98.default.factory.createImportDeclaration(void 0, import_typescript98.default.factory.createImportClause(false, identifier, void 0), import_typescript98.default.factory.createStringLiteral(moduleName, useSingleQuotes));
|
|
34674
34461
|
recorder.addNewImport(importStartIndex, this._getNewImportText(importStartIndex, newImport, sourceFile));
|
|
34675
34462
|
});
|
|
34676
34463
|
namedImports.forEach((specifiers, moduleName) => {
|
|
34677
|
-
const newImport =
|
|
34464
|
+
const newImport = import_typescript98.default.factory.createImportDeclaration(void 0, import_typescript98.default.factory.createImportClause(false, void 0, import_typescript98.default.factory.createNamedImports(specifiers)), import_typescript98.default.factory.createStringLiteral(moduleName, useSingleQuotes));
|
|
34678
34465
|
recorder.addNewImport(importStartIndex, this._getNewImportText(importStartIndex, newImport, sourceFile));
|
|
34679
34466
|
});
|
|
34680
34467
|
});
|
|
@@ -34682,7 +34469,7 @@ var ImportManager2 = class {
|
|
|
34682
34469
|
_getUniqueIdentifier(sourceFile, baseName) {
|
|
34683
34470
|
if (this.isUniqueIdentifierName(sourceFile, baseName)) {
|
|
34684
34471
|
this._recordUsedIdentifier(sourceFile, baseName);
|
|
34685
|
-
return
|
|
34472
|
+
return import_typescript98.default.factory.createIdentifier(baseName);
|
|
34686
34473
|
}
|
|
34687
34474
|
let name = null;
|
|
34688
34475
|
let counter = 1;
|
|
@@ -34690,7 +34477,7 @@ var ImportManager2 = class {
|
|
|
34690
34477
|
name = `${baseName}_${counter++}`;
|
|
34691
34478
|
} while (!this.isUniqueIdentifierName(sourceFile, name));
|
|
34692
34479
|
this._recordUsedIdentifier(sourceFile, name);
|
|
34693
|
-
return
|
|
34480
|
+
return import_typescript98.default.factory.createIdentifier(name);
|
|
34694
34481
|
}
|
|
34695
34482
|
isUniqueIdentifierName(sourceFile, name) {
|
|
34696
34483
|
if (this.usedIdentifierNames.has(sourceFile) && this.usedIdentifierNames.get(sourceFile).indexOf(name) !== -1) {
|
|
@@ -34699,7 +34486,7 @@ var ImportManager2 = class {
|
|
|
34699
34486
|
const nodeQueue = [sourceFile];
|
|
34700
34487
|
while (nodeQueue.length) {
|
|
34701
34488
|
const node = nodeQueue.shift();
|
|
34702
|
-
if (
|
|
34489
|
+
if (import_typescript98.default.isIdentifier(node) && node.text === name && (!import_typescript98.default.isImportSpecifier(node.parent) || node.parent.propertyName !== node)) {
|
|
34703
34490
|
return false;
|
|
34704
34491
|
}
|
|
34705
34492
|
nodeQueue.push(...node.getChildren());
|
|
@@ -34711,21 +34498,21 @@ var ImportManager2 = class {
|
|
|
34711
34498
|
}
|
|
34712
34499
|
_getEndPositionOfNode(node) {
|
|
34713
34500
|
const nodeEndPos = node.getEnd();
|
|
34714
|
-
const commentRanges =
|
|
34501
|
+
const commentRanges = import_typescript98.default.getTrailingCommentRanges(node.getSourceFile().text, nodeEndPos);
|
|
34715
34502
|
if (!commentRanges || !commentRanges.length) {
|
|
34716
34503
|
return nodeEndPos;
|
|
34717
34504
|
}
|
|
34718
34505
|
return commentRanges[commentRanges.length - 1].end;
|
|
34719
34506
|
}
|
|
34720
34507
|
_getNewImportText(importStartIndex, newImport, sourceFile) {
|
|
34721
|
-
const text = this.printer.printNode(
|
|
34508
|
+
const text = this.printer.printNode(import_typescript98.default.EmitHint.Unspecified, newImport, sourceFile);
|
|
34722
34509
|
return importStartIndex === 0 ? `${text}
|
|
34723
34510
|
` : `
|
|
34724
34511
|
${text}`;
|
|
34725
34512
|
}
|
|
34726
34513
|
_getImportParts(sourceFile, symbolName, alias) {
|
|
34727
|
-
const symbolIdentifier =
|
|
34728
|
-
const aliasIdentifier = alias ?
|
|
34514
|
+
const symbolIdentifier = import_typescript98.default.factory.createIdentifier(symbolName);
|
|
34515
|
+
const aliasIdentifier = alias ? import_typescript98.default.factory.createIdentifier(alias) : null;
|
|
34729
34516
|
const generatedUniqueIdentifier = this._getUniqueIdentifier(sourceFile, alias || symbolName);
|
|
34730
34517
|
const needsGeneratedUniqueName = generatedUniqueIdentifier.text !== (alias || symbolName);
|
|
34731
34518
|
let propertyName;
|
|
@@ -34745,7 +34532,7 @@ ${text}`;
|
|
|
34745
34532
|
if (!this.quoteStyles.hasOwnProperty(sourceFile.fileName)) {
|
|
34746
34533
|
let quoteStyle;
|
|
34747
34534
|
for (const statement of sourceFile.statements) {
|
|
34748
|
-
if (
|
|
34535
|
+
if (import_typescript98.default.isImportDeclaration(statement) && import_typescript98.default.isStringLiteralLike(statement.moduleSpecifier)) {
|
|
34749
34536
|
quoteStyle = statement.moduleSpecifier.getText().trim().startsWith('"') ? 1 : 0;
|
|
34750
34537
|
break;
|
|
34751
34538
|
}
|
|
@@ -34756,7 +34543,7 @@ ${text}`;
|
|
|
34756
34543
|
}
|
|
34757
34544
|
};
|
|
34758
34545
|
|
|
34759
|
-
// bazel-out/
|
|
34546
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
|
|
34760
34547
|
var ChangeTracker = class {
|
|
34761
34548
|
constructor(_printer, _importRemapper) {
|
|
34762
34549
|
this._printer = _printer;
|
|
@@ -34773,7 +34560,7 @@ var ChangeTracker = class {
|
|
|
34773
34560
|
replaceText(sourceFile, start, removeLength, text) {
|
|
34774
34561
|
this._trackChange(sourceFile, { start, removeLength, text });
|
|
34775
34562
|
}
|
|
34776
|
-
replaceNode(oldNode, newNode, emitHint =
|
|
34563
|
+
replaceNode(oldNode, newNode, emitHint = import_typescript99.default.EmitHint.Unspecified, sourceFileWhenPrinting) {
|
|
34777
34564
|
const sourceFile = oldNode.getSourceFile();
|
|
34778
34565
|
this.replaceText(sourceFile, oldNode.getStart(), oldNode.getWidth(), this._printer.printNode(emitHint, newNode, sourceFileWhenPrinting || sourceFile));
|
|
34779
34566
|
}
|
|
@@ -34782,7 +34569,7 @@ var ChangeTracker = class {
|
|
|
34782
34569
|
}
|
|
34783
34570
|
addImport(sourceFile, symbolName, moduleName, alias = null) {
|
|
34784
34571
|
if (this._importRemapper) {
|
|
34785
|
-
moduleName = this._importRemapper(moduleName);
|
|
34572
|
+
moduleName = this._importRemapper(moduleName, sourceFile.fileName);
|
|
34786
34573
|
}
|
|
34787
34574
|
moduleName = normalizePath(moduleName);
|
|
34788
34575
|
return this._importManager.addImportToSourceFile(sourceFile, symbolName, moduleName, alias);
|
|
@@ -34805,6 +34592,225 @@ var ChangeTracker = class {
|
|
|
34805
34592
|
}
|
|
34806
34593
|
}
|
|
34807
34594
|
};
|
|
34595
|
+
function normalizePath(path3) {
|
|
34596
|
+
return path3.replace(/\\/g, "/");
|
|
34597
|
+
}
|
|
34598
|
+
|
|
34599
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
|
|
34600
|
+
var import_core13 = require("@angular-devkit/core");
|
|
34601
|
+
function getProjectTsConfigPaths(tree) {
|
|
34602
|
+
return __async(this, null, function* () {
|
|
34603
|
+
const buildPaths = /* @__PURE__ */ new Set();
|
|
34604
|
+
const testPaths = /* @__PURE__ */ new Set();
|
|
34605
|
+
const workspace = yield getWorkspace(tree);
|
|
34606
|
+
for (const [, project] of workspace.projects) {
|
|
34607
|
+
for (const [name, target] of project.targets) {
|
|
34608
|
+
if (name !== "build" && name !== "test") {
|
|
34609
|
+
continue;
|
|
34610
|
+
}
|
|
34611
|
+
for (const [, options] of allTargetOptions(target)) {
|
|
34612
|
+
const tsConfig = options.tsConfig;
|
|
34613
|
+
if (typeof tsConfig !== "string" || !tree.exists(tsConfig)) {
|
|
34614
|
+
continue;
|
|
34615
|
+
}
|
|
34616
|
+
if (name === "build") {
|
|
34617
|
+
buildPaths.add((0, import_core13.normalize)(tsConfig));
|
|
34618
|
+
} else {
|
|
34619
|
+
testPaths.add((0, import_core13.normalize)(tsConfig));
|
|
34620
|
+
}
|
|
34621
|
+
}
|
|
34622
|
+
}
|
|
34623
|
+
}
|
|
34624
|
+
return {
|
|
34625
|
+
buildPaths: [...buildPaths],
|
|
34626
|
+
testPaths: [...testPaths]
|
|
34627
|
+
};
|
|
34628
|
+
});
|
|
34629
|
+
}
|
|
34630
|
+
function* allTargetOptions(target) {
|
|
34631
|
+
if (target.options) {
|
|
34632
|
+
yield [void 0, target.options];
|
|
34633
|
+
}
|
|
34634
|
+
if (!target.configurations) {
|
|
34635
|
+
return;
|
|
34636
|
+
}
|
|
34637
|
+
for (const [name, options] of Object.entries(target.configurations)) {
|
|
34638
|
+
if (options) {
|
|
34639
|
+
yield [name, options];
|
|
34640
|
+
}
|
|
34641
|
+
}
|
|
34642
|
+
}
|
|
34643
|
+
function createHost(tree) {
|
|
34644
|
+
return {
|
|
34645
|
+
readFile(path3) {
|
|
34646
|
+
return __async(this, null, function* () {
|
|
34647
|
+
const data = tree.read(path3);
|
|
34648
|
+
if (!data) {
|
|
34649
|
+
throw new Error("File not found.");
|
|
34650
|
+
}
|
|
34651
|
+
return import_core13.virtualFs.fileBufferToString(data);
|
|
34652
|
+
});
|
|
34653
|
+
},
|
|
34654
|
+
writeFile(path3, data) {
|
|
34655
|
+
return __async(this, null, function* () {
|
|
34656
|
+
return tree.overwrite(path3, data);
|
|
34657
|
+
});
|
|
34658
|
+
},
|
|
34659
|
+
isDirectory(path3) {
|
|
34660
|
+
return __async(this, null, function* () {
|
|
34661
|
+
return !tree.exists(path3) && tree.getDir(path3).subfiles.length > 0;
|
|
34662
|
+
});
|
|
34663
|
+
},
|
|
34664
|
+
isFile(path3) {
|
|
34665
|
+
return __async(this, null, function* () {
|
|
34666
|
+
return tree.exists(path3);
|
|
34667
|
+
});
|
|
34668
|
+
}
|
|
34669
|
+
};
|
|
34670
|
+
}
|
|
34671
|
+
function getWorkspace(tree) {
|
|
34672
|
+
return __async(this, null, function* () {
|
|
34673
|
+
const host = createHost(tree);
|
|
34674
|
+
const { workspace } = yield import_core13.workspaces.readWorkspace("/", host);
|
|
34675
|
+
return workspace;
|
|
34676
|
+
});
|
|
34677
|
+
}
|
|
34678
|
+
|
|
34679
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
34680
|
+
var import_path5 = require("path");
|
|
34681
|
+
var import_typescript101 = __toESM(require("typescript"), 1);
|
|
34682
|
+
|
|
34683
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
|
|
34684
|
+
var path2 = __toESM(require("path"), 1);
|
|
34685
|
+
var import_typescript100 = __toESM(require("typescript"), 1);
|
|
34686
|
+
function parseTsconfigFile(tsconfigPath, basePath) {
|
|
34687
|
+
const { config } = import_typescript100.default.readConfigFile(tsconfigPath, import_typescript100.default.sys.readFile);
|
|
34688
|
+
const parseConfigHost = {
|
|
34689
|
+
useCaseSensitiveFileNames: import_typescript100.default.sys.useCaseSensitiveFileNames,
|
|
34690
|
+
fileExists: import_typescript100.default.sys.fileExists,
|
|
34691
|
+
readDirectory: import_typescript100.default.sys.readDirectory,
|
|
34692
|
+
readFile: import_typescript100.default.sys.readFile
|
|
34693
|
+
};
|
|
34694
|
+
if (!path2.isAbsolute(basePath)) {
|
|
34695
|
+
throw Error("Unexpected relative base path has been specified.");
|
|
34696
|
+
}
|
|
34697
|
+
return import_typescript100.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
|
|
34698
|
+
}
|
|
34699
|
+
|
|
34700
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
34701
|
+
function createProgramOptions(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles, optionOverrides) {
|
|
34702
|
+
tsconfigPath = (0, import_path5.resolve)(basePath, tsconfigPath);
|
|
34703
|
+
const parsed = parseTsconfigFile(tsconfigPath, (0, import_path5.dirname)(tsconfigPath));
|
|
34704
|
+
const options = optionOverrides ? __spreadValues(__spreadValues({}, parsed.options), optionOverrides) : parsed.options;
|
|
34705
|
+
const host = createMigrationCompilerHost(tree, options, basePath, fakeFileRead);
|
|
34706
|
+
return { rootNames: parsed.fileNames.concat(additionalFiles || []), options, host };
|
|
34707
|
+
}
|
|
34708
|
+
function createMigrationCompilerHost(tree, options, basePath, fakeRead) {
|
|
34709
|
+
const host = import_typescript101.default.createCompilerHost(options, true);
|
|
34710
|
+
const defaultReadFile = host.readFile;
|
|
34711
|
+
host.readFile = (fileName) => {
|
|
34712
|
+
var _a;
|
|
34713
|
+
const treeRelativePath = (0, import_path5.relative)(basePath, fileName);
|
|
34714
|
+
let result = fakeRead == null ? void 0 : fakeRead(treeRelativePath);
|
|
34715
|
+
if (typeof result !== "string") {
|
|
34716
|
+
result = treeRelativePath.startsWith("..") ? defaultReadFile.call(host, fileName) : (_a = tree.read(treeRelativePath)) == null ? void 0 : _a.toString();
|
|
34717
|
+
}
|
|
34718
|
+
return typeof result === "string" ? result.replace(/^\uFEFF/, "") : void 0;
|
|
34719
|
+
};
|
|
34720
|
+
return host;
|
|
34721
|
+
}
|
|
34722
|
+
function canMigrateFile(basePath, sourceFile, program) {
|
|
34723
|
+
if (sourceFile.fileName.endsWith(".ngtypecheck.ts") || sourceFile.isDeclarationFile || program.isSourceFileFromExternalLibrary(sourceFile)) {
|
|
34724
|
+
return false;
|
|
34725
|
+
}
|
|
34726
|
+
return !(0, import_path5.relative)(basePath, sourceFile.fileName).startsWith("..");
|
|
34727
|
+
}
|
|
34728
|
+
|
|
34729
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/prune-modules.mjs
|
|
34730
|
+
var import_typescript106 = __toESM(require("typescript"), 1);
|
|
34731
|
+
|
|
34732
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
|
|
34733
|
+
var import_typescript103 = __toESM(require("typescript"), 1);
|
|
34734
|
+
|
|
34735
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
|
|
34736
|
+
var import_typescript102 = __toESM(require("typescript"), 1);
|
|
34737
|
+
function getImportOfIdentifier(typeChecker, node) {
|
|
34738
|
+
const symbol = typeChecker.getSymbolAtLocation(node);
|
|
34739
|
+
if (!symbol || symbol.declarations === void 0 || !symbol.declarations.length) {
|
|
34740
|
+
return null;
|
|
34741
|
+
}
|
|
34742
|
+
const decl = symbol.declarations[0];
|
|
34743
|
+
if (!import_typescript102.default.isImportSpecifier(decl)) {
|
|
34744
|
+
return null;
|
|
34745
|
+
}
|
|
34746
|
+
const importDecl = decl.parent.parent.parent;
|
|
34747
|
+
if (!import_typescript102.default.isStringLiteral(importDecl.moduleSpecifier)) {
|
|
34748
|
+
return null;
|
|
34749
|
+
}
|
|
34750
|
+
return {
|
|
34751
|
+
name: decl.propertyName ? decl.propertyName.text : decl.name.text,
|
|
34752
|
+
importModule: importDecl.moduleSpecifier.text,
|
|
34753
|
+
node: importDecl
|
|
34754
|
+
};
|
|
34755
|
+
}
|
|
34756
|
+
function getImportSpecifier(sourceFile, moduleName, specifierName) {
|
|
34757
|
+
var _a;
|
|
34758
|
+
for (const node of sourceFile.statements) {
|
|
34759
|
+
if (import_typescript102.default.isImportDeclaration(node) && import_typescript102.default.isStringLiteral(node.moduleSpecifier)) {
|
|
34760
|
+
const isMatch = typeof moduleName === "string" ? node.moduleSpecifier.text === moduleName : moduleName.test(node.moduleSpecifier.text);
|
|
34761
|
+
const namedBindings = (_a = node.importClause) == null ? void 0 : _a.namedBindings;
|
|
34762
|
+
if (isMatch && namedBindings && import_typescript102.default.isNamedImports(namedBindings)) {
|
|
34763
|
+
const match = findImportSpecifier(namedBindings.elements, specifierName);
|
|
34764
|
+
if (match) {
|
|
34765
|
+
return match;
|
|
34766
|
+
}
|
|
34767
|
+
}
|
|
34768
|
+
}
|
|
34769
|
+
}
|
|
34770
|
+
return null;
|
|
34771
|
+
}
|
|
34772
|
+
function findImportSpecifier(nodes, specifierName) {
|
|
34773
|
+
return nodes.find((element) => {
|
|
34774
|
+
const { name, propertyName } = element;
|
|
34775
|
+
return propertyName ? propertyName.text === specifierName : name.text === specifierName;
|
|
34776
|
+
});
|
|
34777
|
+
}
|
|
34778
|
+
|
|
34779
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
|
|
34780
|
+
function getCallDecoratorImport(typeChecker, decorator) {
|
|
34781
|
+
if (!import_typescript103.default.isCallExpression(decorator.expression) || !import_typescript103.default.isIdentifier(decorator.expression.expression)) {
|
|
34782
|
+
return null;
|
|
34783
|
+
}
|
|
34784
|
+
const identifier = decorator.expression.expression;
|
|
34785
|
+
return getImportOfIdentifier(typeChecker, identifier);
|
|
34786
|
+
}
|
|
34787
|
+
|
|
34788
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/ng_decorators.mjs
|
|
34789
|
+
function getAngularDecorators(typeChecker, decorators) {
|
|
34790
|
+
return decorators.map((node) => ({ node, importData: getCallDecoratorImport(typeChecker, node) })).filter(({ importData }) => importData && importData.importModule.startsWith("@angular/")).map(({ node, importData }) => ({
|
|
34791
|
+
node,
|
|
34792
|
+
name: importData.name,
|
|
34793
|
+
moduleName: importData.importModule,
|
|
34794
|
+
importNode: importData.node
|
|
34795
|
+
}));
|
|
34796
|
+
}
|
|
34797
|
+
|
|
34798
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/nodes.mjs
|
|
34799
|
+
var import_typescript104 = __toESM(require("typescript"), 1);
|
|
34800
|
+
function closestNode(node, predicate) {
|
|
34801
|
+
let current = node.parent;
|
|
34802
|
+
while (current && !import_typescript104.default.isSourceFile(current)) {
|
|
34803
|
+
if (predicate(current)) {
|
|
34804
|
+
return current;
|
|
34805
|
+
}
|
|
34806
|
+
current = current.parent;
|
|
34807
|
+
}
|
|
34808
|
+
return null;
|
|
34809
|
+
}
|
|
34810
|
+
|
|
34811
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/util.mjs
|
|
34812
|
+
var import_path6 = require("path");
|
|
34813
|
+
var import_typescript105 = __toESM(require("typescript"), 1);
|
|
34808
34814
|
var UniqueItemTracker = class {
|
|
34809
34815
|
constructor() {
|
|
34810
34816
|
this._nodes = /* @__PURE__ */ new Map();
|
|
@@ -34847,7 +34853,7 @@ var ReferenceResolver = class {
|
|
|
34847
34853
|
const results = /* @__PURE__ */ new Map();
|
|
34848
34854
|
for (const symbol of referencedSymbols) {
|
|
34849
34855
|
for (const ref of symbol.references) {
|
|
34850
|
-
if (!ref.isDefinition || symbol.definition.kind ===
|
|
34856
|
+
if (!ref.isDefinition || symbol.definition.kind === import_typescript105.default.ScriptElementKind.alias) {
|
|
34851
34857
|
if (!results.has(ref.fileName)) {
|
|
34852
34858
|
results.set(ref.fileName, []);
|
|
34853
34859
|
}
|
|
@@ -34871,7 +34877,7 @@ var ReferenceResolver = class {
|
|
|
34871
34877
|
for (const file of highlights) {
|
|
34872
34878
|
if (file.fileName === fileName) {
|
|
34873
34879
|
for (const { textSpan: { start, length }, kind } of file.highlightSpans) {
|
|
34874
|
-
if (kind !==
|
|
34880
|
+
if (kind !== import_typescript105.default.HighlightSpanKind.none) {
|
|
34875
34881
|
results.push([start, start + length]);
|
|
34876
34882
|
}
|
|
34877
34883
|
}
|
|
@@ -34897,19 +34903,19 @@ var ReferenceResolver = class {
|
|
|
34897
34903
|
rootFileNames.push(fileName);
|
|
34898
34904
|
}
|
|
34899
34905
|
});
|
|
34900
|
-
this._languageService =
|
|
34906
|
+
this._languageService = import_typescript105.default.createLanguageService({
|
|
34901
34907
|
getCompilationSettings: () => this._program.getTsProgram().getCompilerOptions(),
|
|
34902
34908
|
getScriptFileNames: () => rootFileNames,
|
|
34903
34909
|
getScriptVersion: () => "0",
|
|
34904
34910
|
getScriptSnapshot: (path3) => {
|
|
34905
34911
|
const content = this._readFile(path3);
|
|
34906
|
-
return content ?
|
|
34912
|
+
return content ? import_typescript105.default.ScriptSnapshot.fromString(content) : void 0;
|
|
34907
34913
|
},
|
|
34908
34914
|
getCurrentDirectory: () => this._basePath,
|
|
34909
|
-
getDefaultLibFileName: (options) =>
|
|
34915
|
+
getDefaultLibFileName: (options) => import_typescript105.default.getDefaultLibFilePath(options),
|
|
34910
34916
|
readFile: (path3) => this._readFile(path3),
|
|
34911
34917
|
fileExists: (path3) => this._host.fileExists(path3)
|
|
34912
|
-
},
|
|
34918
|
+
}, import_typescript105.default.createDocumentRegistry(), import_typescript105.default.LanguageServiceMode.PartialSemantic);
|
|
34913
34919
|
}
|
|
34914
34920
|
return this._languageService;
|
|
34915
34921
|
}
|
|
@@ -34939,10 +34945,10 @@ function offsetsToNodes(lookup, offsets, results) {
|
|
|
34939
34945
|
}
|
|
34940
34946
|
function findClassDeclaration(reference, typeChecker) {
|
|
34941
34947
|
var _a, _b;
|
|
34942
|
-
return ((_b = (_a = typeChecker.getTypeAtLocation(reference).getSymbol()) == null ? void 0 : _a.declarations) == null ? void 0 : _b.find(
|
|
34948
|
+
return ((_b = (_a = typeChecker.getTypeAtLocation(reference).getSymbol()) == null ? void 0 : _a.declarations) == null ? void 0 : _b.find(import_typescript105.default.isClassDeclaration)) || null;
|
|
34943
34949
|
}
|
|
34944
34950
|
function findLiteralProperty(literal3, name) {
|
|
34945
|
-
return literal3.properties.find((prop) => prop.name &&
|
|
34951
|
+
return literal3.properties.find((prop) => prop.name && import_typescript105.default.isIdentifier(prop.name) && prop.name.text === name);
|
|
34946
34952
|
}
|
|
34947
34953
|
function getRelativeImportPath(fromFile, toFile) {
|
|
34948
34954
|
let path3 = (0, import_path6.relative)((0, import_path6.dirname)(fromFile), toFile).replace(/\.ts$/, "");
|
|
@@ -34951,9 +34957,6 @@ function getRelativeImportPath(fromFile, toFile) {
|
|
|
34951
34957
|
}
|
|
34952
34958
|
return normalizePath(path3);
|
|
34953
34959
|
}
|
|
34954
|
-
function normalizePath(path3) {
|
|
34955
|
-
return path3.replace(/\\/g, "/");
|
|
34956
|
-
}
|
|
34957
34960
|
function knownInternalAliasRemapper(imports) {
|
|
34958
34961
|
return imports.map((current) => current.moduleSpecifier === "@angular/common" && current.symbolName === "NgForOf" ? __spreadProps(__spreadValues({}, current), { symbolName: "NgFor" }) : current);
|
|
34959
34962
|
}
|
|
@@ -34966,16 +34969,16 @@ function isClassReferenceInAngularModule(node, className, moduleName, typeChecke
|
|
|
34966
34969
|
const externalName = `@angular/${moduleName}`;
|
|
34967
34970
|
const internalName = `angular2/rc/packages/${moduleName}`;
|
|
34968
34971
|
return !!((_a = symbol == null ? void 0 : symbol.declarations) == null ? void 0 : _a.some((decl) => {
|
|
34969
|
-
const closestClass = closestOrSelf(decl,
|
|
34972
|
+
const closestClass = closestOrSelf(decl, import_typescript105.default.isClassDeclaration);
|
|
34970
34973
|
const closestClassFileName = closestClass == null ? void 0 : closestClass.getSourceFile().fileName;
|
|
34971
|
-
if (!closestClass || !closestClassFileName || !closestClass.name || !
|
|
34974
|
+
if (!closestClass || !closestClassFileName || !closestClass.name || !import_typescript105.default.isIdentifier(closestClass.name) || !closestClassFileName.includes(externalName) && !closestClassFileName.includes(internalName)) {
|
|
34972
34975
|
return false;
|
|
34973
34976
|
}
|
|
34974
34977
|
return typeof className === "string" ? closestClass.name.text === className : className.test(closestClass.name.text);
|
|
34975
34978
|
}));
|
|
34976
34979
|
}
|
|
34977
34980
|
|
|
34978
|
-
// bazel-out/
|
|
34981
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/prune-modules.mjs
|
|
34979
34982
|
function pruneNgModules(program, host, basePath, rootFileNames, sourceFiles, printer, importRemapper, referenceLookupExcludedFiles) {
|
|
34980
34983
|
const filesToRemove = /* @__PURE__ */ new Set();
|
|
34981
34984
|
const tracker = new ChangeTracker(printer, importRemapper);
|
|
@@ -34993,10 +34996,10 @@ function pruneNgModules(program, host, basePath, rootFileNames, sourceFiles, pri
|
|
|
34993
34996
|
const nodesToRemove = /* @__PURE__ */ new Set();
|
|
34994
34997
|
sourceFiles.forEach(function walk(node) {
|
|
34995
34998
|
var _a, _b;
|
|
34996
|
-
if (
|
|
34999
|
+
if (import_typescript106.default.isClassDeclaration(node) && canRemoveClass(node, typeChecker)) {
|
|
34997
35000
|
collectRemovalLocations(node, removalLocations, referenceResolver, program);
|
|
34998
35001
|
classesToRemove.add(node);
|
|
34999
|
-
} else if (
|
|
35002
|
+
} else if (import_typescript106.default.isExportDeclaration(node) && !node.exportClause && node.moduleSpecifier && import_typescript106.default.isStringLiteralLike(node.moduleSpecifier) && node.moduleSpecifier.text.startsWith(".")) {
|
|
35000
35003
|
const exportedSourceFile = (_b = (_a = typeChecker.getSymbolAtLocation(node.moduleSpecifier)) == null ? void 0 : _a.valueDeclaration) == null ? void 0 : _b.getSourceFile();
|
|
35001
35004
|
if (exportedSourceFile) {
|
|
35002
35005
|
barrelExports.track(exportedSourceFile, node);
|
|
@@ -35042,17 +35045,17 @@ function collectRemovalLocations(ngModule, removalLocations, referenceResolver,
|
|
|
35042
35045
|
}
|
|
35043
35046
|
}
|
|
35044
35047
|
for (const node of nodes) {
|
|
35045
|
-
const closestArray = closestNode(node,
|
|
35048
|
+
const closestArray = closestNode(node, import_typescript106.default.isArrayLiteralExpression);
|
|
35046
35049
|
if (closestArray) {
|
|
35047
35050
|
removalLocations.arrays.track(closestArray, node);
|
|
35048
35051
|
continue;
|
|
35049
35052
|
}
|
|
35050
|
-
const closestImport = closestNode(node,
|
|
35053
|
+
const closestImport = closestNode(node, import_typescript106.default.isNamedImports);
|
|
35051
35054
|
if (closestImport) {
|
|
35052
35055
|
removalLocations.imports.track(closestImport, node);
|
|
35053
35056
|
continue;
|
|
35054
35057
|
}
|
|
35055
|
-
const closestExport = closestNode(node,
|
|
35058
|
+
const closestExport = closestNode(node, import_typescript106.default.isNamedExports);
|
|
35056
35059
|
if (closestExport) {
|
|
35057
35060
|
removalLocations.exports.track(closestExport, node);
|
|
35058
35061
|
continue;
|
|
@@ -35063,24 +35066,24 @@ function collectRemovalLocations(ngModule, removalLocations, referenceResolver,
|
|
|
35063
35066
|
function removeArrayReferences(locations, tracker) {
|
|
35064
35067
|
for (const [array, toRemove] of locations.getEntries()) {
|
|
35065
35068
|
const newElements = filterRemovedElements(array.elements, toRemove);
|
|
35066
|
-
tracker.replaceNode(array,
|
|
35069
|
+
tracker.replaceNode(array, import_typescript106.default.factory.updateArrayLiteralExpression(array, newElements));
|
|
35067
35070
|
}
|
|
35068
35071
|
}
|
|
35069
35072
|
function removeImportReferences(locations, tracker) {
|
|
35070
35073
|
for (const [namedImports, toRemove] of locations.getEntries()) {
|
|
35071
35074
|
const newElements = filterRemovedElements(namedImports.elements, toRemove);
|
|
35072
35075
|
if (newElements.length === 0) {
|
|
35073
|
-
const importClause = closestNode(namedImports,
|
|
35076
|
+
const importClause = closestNode(namedImports, import_typescript106.default.isImportClause);
|
|
35074
35077
|
if (importClause && importClause.name) {
|
|
35075
|
-
tracker.replaceNode(importClause,
|
|
35078
|
+
tracker.replaceNode(importClause, import_typescript106.default.factory.updateImportClause(importClause, importClause.isTypeOnly, importClause.name, void 0));
|
|
35076
35079
|
} else {
|
|
35077
|
-
const declaration = closestNode(namedImports,
|
|
35080
|
+
const declaration = closestNode(namedImports, import_typescript106.default.isImportDeclaration);
|
|
35078
35081
|
if (declaration) {
|
|
35079
35082
|
tracker.removeNode(declaration);
|
|
35080
35083
|
}
|
|
35081
35084
|
}
|
|
35082
35085
|
} else {
|
|
35083
|
-
tracker.replaceNode(namedImports,
|
|
35086
|
+
tracker.replaceNode(namedImports, import_typescript106.default.factory.updateNamedImports(namedImports, newElements));
|
|
35084
35087
|
}
|
|
35085
35088
|
}
|
|
35086
35089
|
}
|
|
@@ -35088,22 +35091,22 @@ function removeExportReferences(locations, tracker) {
|
|
|
35088
35091
|
for (const [namedExports, toRemove] of locations.getEntries()) {
|
|
35089
35092
|
const newElements = filterRemovedElements(namedExports.elements, toRemove);
|
|
35090
35093
|
if (newElements.length === 0) {
|
|
35091
|
-
const declaration = closestNode(namedExports,
|
|
35094
|
+
const declaration = closestNode(namedExports, import_typescript106.default.isExportDeclaration);
|
|
35092
35095
|
if (declaration) {
|
|
35093
35096
|
tracker.removeNode(declaration);
|
|
35094
35097
|
}
|
|
35095
35098
|
} else {
|
|
35096
|
-
tracker.replaceNode(namedExports,
|
|
35099
|
+
tracker.replaceNode(namedExports, import_typescript106.default.factory.updateNamedExports(namedExports, newElements));
|
|
35097
35100
|
}
|
|
35098
35101
|
}
|
|
35099
35102
|
}
|
|
35100
35103
|
function canRemoveClass(node, typeChecker) {
|
|
35101
35104
|
var _a;
|
|
35102
35105
|
const decorator = (_a = findNgModuleDecorator(node, typeChecker)) == null ? void 0 : _a.node;
|
|
35103
|
-
if (!decorator || !
|
|
35106
|
+
if (!decorator || !import_typescript106.default.isCallExpression(decorator.expression)) {
|
|
35104
35107
|
return false;
|
|
35105
35108
|
}
|
|
35106
|
-
if (decorator.expression.arguments.length > 0 && !
|
|
35109
|
+
if (decorator.expression.arguments.length > 0 && !import_typescript106.default.isObjectLiteralExpression(decorator.expression.arguments[0])) {
|
|
35107
35110
|
return false;
|
|
35108
35111
|
}
|
|
35109
35112
|
if (node.members.length > 0 && node.members.some((member) => !isEmptyConstructor(member))) {
|
|
@@ -35116,7 +35119,7 @@ function canRemoveClass(node, typeChecker) {
|
|
|
35116
35119
|
const imports = findLiteralProperty(literal3, "imports");
|
|
35117
35120
|
if (imports && isNonEmptyNgModuleProperty(imports)) {
|
|
35118
35121
|
for (const dep of imports.initializer.elements) {
|
|
35119
|
-
if (!
|
|
35122
|
+
if (!import_typescript106.default.isIdentifier(dep)) {
|
|
35120
35123
|
return false;
|
|
35121
35124
|
}
|
|
35122
35125
|
const depDeclaration = findClassDeclaration(dep, typeChecker);
|
|
@@ -35134,15 +35137,15 @@ function canRemoveClass(node, typeChecker) {
|
|
|
35134
35137
|
return true;
|
|
35135
35138
|
}
|
|
35136
35139
|
function isNonEmptyNgModuleProperty(node) {
|
|
35137
|
-
return
|
|
35140
|
+
return import_typescript106.default.isPropertyAssignment(node) && import_typescript106.default.isIdentifier(node.name) && import_typescript106.default.isArrayLiteralExpression(node.initializer) && node.initializer.elements.length > 0;
|
|
35138
35141
|
}
|
|
35139
35142
|
function canRemoveFile(sourceFile, nodesToBeRemoved) {
|
|
35140
35143
|
var _a;
|
|
35141
35144
|
for (const node of sourceFile.statements) {
|
|
35142
|
-
if (
|
|
35145
|
+
if (import_typescript106.default.isImportDeclaration(node) || nodesToBeRemoved.has(node)) {
|
|
35143
35146
|
continue;
|
|
35144
35147
|
}
|
|
35145
|
-
if (
|
|
35148
|
+
if (import_typescript106.default.isExportDeclaration(node) || import_typescript106.default.canHaveModifiers(node) && ((_a = import_typescript106.default.getModifiers(node)) == null ? void 0 : _a.some((m) => m.kind === import_typescript106.default.SyntaxKind.ExportKeyword))) {
|
|
35146
35149
|
return false;
|
|
35147
35150
|
}
|
|
35148
35151
|
}
|
|
@@ -35162,7 +35165,7 @@ function filterRemovedElements(elements, toRemove) {
|
|
|
35162
35165
|
});
|
|
35163
35166
|
}
|
|
35164
35167
|
function isEmptyConstructor(node) {
|
|
35165
|
-
return
|
|
35168
|
+
return import_typescript106.default.isConstructorDeclaration(node) && node.parameters.length === 0 && (node.body == null || node.body.statements.length === 0);
|
|
35166
35169
|
}
|
|
35167
35170
|
function addRemovalTodos(nodes, tracker) {
|
|
35168
35171
|
for (const node of nodes) {
|
|
@@ -35170,19 +35173,19 @@ function addRemovalTodos(nodes, tracker) {
|
|
|
35170
35173
|
}
|
|
35171
35174
|
}
|
|
35172
35175
|
function findNgModuleDecorator(node, typeChecker) {
|
|
35173
|
-
const decorators = getAngularDecorators(typeChecker,
|
|
35176
|
+
const decorators = getAngularDecorators(typeChecker, import_typescript106.default.getDecorators(node) || []);
|
|
35174
35177
|
return decorators.find((decorator) => decorator.name === "NgModule") || null;
|
|
35175
35178
|
}
|
|
35176
35179
|
|
|
35177
|
-
// bazel-out/
|
|
35180
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/standalone-bootstrap.mjs
|
|
35178
35181
|
var import_path7 = require("path");
|
|
35182
|
+
var import_typescript109 = __toESM(require("typescript"), 1);
|
|
35183
|
+
|
|
35184
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/to-standalone.mjs
|
|
35179
35185
|
var import_typescript108 = __toESM(require("typescript"), 1);
|
|
35180
35186
|
|
|
35181
|
-
// bazel-out/
|
|
35187
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/symbol.mjs
|
|
35182
35188
|
var import_typescript107 = __toESM(require("typescript"), 1);
|
|
35183
|
-
|
|
35184
|
-
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/symbol.mjs
|
|
35185
|
-
var import_typescript106 = __toESM(require("typescript"), 1);
|
|
35186
35189
|
function isReferenceToImport(typeChecker, node, importSpecifier) {
|
|
35187
35190
|
var _a, _b;
|
|
35188
35191
|
const nodeSymbol = typeChecker.getTypeAtLocation(node).getSymbol();
|
|
@@ -35190,7 +35193,7 @@ function isReferenceToImport(typeChecker, node, importSpecifier) {
|
|
|
35190
35193
|
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];
|
|
35191
35194
|
}
|
|
35192
35195
|
|
|
35193
|
-
// bazel-out/
|
|
35196
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/to-standalone.mjs
|
|
35194
35197
|
function toStandalone(sourceFiles, program, printer, fileImportRemapper, componentImportRemapper) {
|
|
35195
35198
|
const templateTypeChecker = program.compiler.getTemplateTypeChecker();
|
|
35196
35199
|
const typeChecker = program.getTsProgram().getTypeChecker();
|
|
@@ -35227,7 +35230,7 @@ function convertNgModuleDeclarationToStandalone(decl, allDeclarations, tracker,
|
|
|
35227
35230
|
if (directiveMeta.isComponent) {
|
|
35228
35231
|
const importsToAdd = getComponentImportExpressions(decl, allDeclarations, tracker, typeChecker, importRemapper);
|
|
35229
35232
|
if (importsToAdd.length > 0) {
|
|
35230
|
-
decorator = addPropertyToAngularDecorator(decorator,
|
|
35233
|
+
decorator = addPropertyToAngularDecorator(decorator, import_typescript108.default.factory.createPropertyAssignment("imports", import_typescript108.default.factory.createArrayLiteralExpression(importsToAdd)));
|
|
35231
35234
|
}
|
|
35232
35235
|
}
|
|
35233
35236
|
tracker.replaceNode(directiveMeta.decorator, decorator);
|
|
@@ -35257,11 +35260,11 @@ function getComponentImportExpressions(decl, allDeclarations, tracker, typeCheck
|
|
|
35257
35260
|
const identifier = tracker.addImport(decl.getSourceFile(), importLocation.symbolName, importLocation.moduleSpecifier);
|
|
35258
35261
|
imports.push(identifier);
|
|
35259
35262
|
} else {
|
|
35260
|
-
const identifier =
|
|
35263
|
+
const identifier = import_typescript108.default.factory.createIdentifier(importLocation.symbolName);
|
|
35261
35264
|
if (importLocation.isForwardReference) {
|
|
35262
35265
|
const forwardRefExpression = tracker.addImport(decl.getSourceFile(), "forwardRef", "@angular/core");
|
|
35263
|
-
const arrowFunction =
|
|
35264
|
-
imports.push(
|
|
35266
|
+
const arrowFunction = import_typescript108.default.factory.createArrowFunction(void 0, void 0, [], void 0, void 0, identifier);
|
|
35267
|
+
imports.push(import_typescript108.default.factory.createCallExpression(forwardRefExpression, void 0, [arrowFunction]));
|
|
35265
35268
|
} else {
|
|
35266
35269
|
imports.push(identifier);
|
|
35267
35270
|
}
|
|
@@ -35286,10 +35289,10 @@ function moveDeclarationsToImports(literal3, allDeclarations, typeChecker, templ
|
|
|
35286
35289
|
const declarationsToCopy = [];
|
|
35287
35290
|
const properties = [];
|
|
35288
35291
|
const importsProp = findLiteralProperty(literal3, "imports");
|
|
35289
|
-
if (
|
|
35290
|
-
if (
|
|
35292
|
+
if (import_typescript108.default.isPropertyAssignment(declarationsProp)) {
|
|
35293
|
+
if (import_typescript108.default.isArrayLiteralExpression(declarationsProp.initializer)) {
|
|
35291
35294
|
for (const el of declarationsProp.initializer.elements) {
|
|
35292
|
-
if (
|
|
35295
|
+
if (import_typescript108.default.isIdentifier(el)) {
|
|
35293
35296
|
const correspondingClass = findClassDeclaration(el, typeChecker);
|
|
35294
35297
|
if (!correspondingClass || isStandaloneDeclaration(correspondingClass, allDeclarations, templateTypeChecker)) {
|
|
35295
35298
|
declarationsToCopy.push(el);
|
|
@@ -35301,11 +35304,11 @@ function moveDeclarationsToImports(literal3, allDeclarations, typeChecker, templ
|
|
|
35301
35304
|
}
|
|
35302
35305
|
}
|
|
35303
35306
|
} else {
|
|
35304
|
-
declarationsToCopy.push(
|
|
35307
|
+
declarationsToCopy.push(import_typescript108.default.factory.createSpreadElement(declarationsProp.initializer));
|
|
35305
35308
|
}
|
|
35306
35309
|
}
|
|
35307
35310
|
if (!importsProp && declarationsToCopy.length > 0) {
|
|
35308
|
-
properties.push(
|
|
35311
|
+
properties.push(import_typescript108.default.factory.createPropertyAssignment("imports", import_typescript108.default.factory.createArrayLiteralExpression(declarationsToCopy)));
|
|
35309
35312
|
}
|
|
35310
35313
|
for (const prop of literal3.properties) {
|
|
35311
35314
|
if (!isNamedPropertyAssignment(prop)) {
|
|
@@ -35314,43 +35317,43 @@ function moveDeclarationsToImports(literal3, allDeclarations, typeChecker, templ
|
|
|
35314
35317
|
}
|
|
35315
35318
|
if (prop === declarationsProp) {
|
|
35316
35319
|
if (declarationsToPreserve.length > 0) {
|
|
35317
|
-
properties.push(
|
|
35320
|
+
properties.push(import_typescript108.default.factory.updatePropertyAssignment(prop, prop.name, import_typescript108.default.factory.createArrayLiteralExpression(declarationsToPreserve)));
|
|
35318
35321
|
}
|
|
35319
35322
|
continue;
|
|
35320
35323
|
}
|
|
35321
35324
|
if (prop === importsProp && declarationsToCopy.length > 0) {
|
|
35322
35325
|
let initializer;
|
|
35323
|
-
if (
|
|
35324
|
-
initializer =
|
|
35326
|
+
if (import_typescript108.default.isArrayLiteralExpression(prop.initializer)) {
|
|
35327
|
+
initializer = import_typescript108.default.factory.updateArrayLiteralExpression(prop.initializer, [...prop.initializer.elements, ...declarationsToCopy]);
|
|
35325
35328
|
} else {
|
|
35326
|
-
initializer =
|
|
35329
|
+
initializer = import_typescript108.default.factory.createArrayLiteralExpression([import_typescript108.default.factory.createSpreadElement(prop.initializer), ...declarationsToCopy]);
|
|
35327
35330
|
}
|
|
35328
|
-
properties.push(
|
|
35331
|
+
properties.push(import_typescript108.default.factory.updatePropertyAssignment(prop, prop.name, initializer));
|
|
35329
35332
|
continue;
|
|
35330
35333
|
}
|
|
35331
35334
|
properties.push(prop);
|
|
35332
35335
|
}
|
|
35333
|
-
tracker.replaceNode(literal3,
|
|
35336
|
+
tracker.replaceNode(literal3, import_typescript108.default.factory.updateObjectLiteralExpression(literal3, properties), import_typescript108.default.EmitHint.Expression);
|
|
35334
35337
|
}
|
|
35335
35338
|
function addStandaloneToDecorator(node) {
|
|
35336
|
-
return addPropertyToAngularDecorator(node,
|
|
35339
|
+
return addPropertyToAngularDecorator(node, import_typescript108.default.factory.createPropertyAssignment("standalone", import_typescript108.default.factory.createToken(import_typescript108.default.SyntaxKind.TrueKeyword)));
|
|
35337
35340
|
}
|
|
35338
35341
|
function addPropertyToAngularDecorator(node, property) {
|
|
35339
|
-
if (!
|
|
35342
|
+
if (!import_typescript108.default.isCallExpression(node.expression) || node.expression.arguments.length > 1) {
|
|
35340
35343
|
return node;
|
|
35341
35344
|
}
|
|
35342
35345
|
let literalProperties;
|
|
35343
35346
|
if (node.expression.arguments.length === 0) {
|
|
35344
35347
|
literalProperties = [property];
|
|
35345
|
-
} else if (
|
|
35348
|
+
} else if (import_typescript108.default.isObjectLiteralExpression(node.expression.arguments[0])) {
|
|
35346
35349
|
literalProperties = [...node.expression.arguments[0].properties, property];
|
|
35347
35350
|
} else {
|
|
35348
35351
|
return node;
|
|
35349
35352
|
}
|
|
35350
|
-
return
|
|
35353
|
+
return import_typescript108.default.factory.createDecorator(import_typescript108.default.factory.createCallExpression(node.expression.expression, node.expression.typeArguments, [import_typescript108.default.factory.createObjectLiteralExpression(literalProperties, literalProperties.length > 1)]));
|
|
35351
35354
|
}
|
|
35352
35355
|
function isNamedPropertyAssignment(node) {
|
|
35353
|
-
return
|
|
35356
|
+
return import_typescript108.default.isPropertyAssignment(node) && node.name && import_typescript108.default.isIdentifier(node.name);
|
|
35354
35357
|
}
|
|
35355
35358
|
function findImportLocation(target, inComponent, importMode, typeChecker) {
|
|
35356
35359
|
const importLocations = typeChecker.getPotentialImportsFor(target, inComponent, importMode);
|
|
@@ -35370,14 +35373,14 @@ function findImportLocation(target, inComponent, importMode, typeChecker) {
|
|
|
35370
35373
|
return firstSameFileImport || firstModuleImport || importLocations[0] || null;
|
|
35371
35374
|
}
|
|
35372
35375
|
function hasNgModuleMetadataElements(node) {
|
|
35373
|
-
return
|
|
35376
|
+
return import_typescript108.default.isPropertyAssignment(node) && (!import_typescript108.default.isArrayLiteralExpression(node.initializer) || node.initializer.elements.length > 0);
|
|
35374
35377
|
}
|
|
35375
35378
|
function findNgModuleClassesToMigrate(sourceFile, typeChecker) {
|
|
35376
35379
|
const modules = [];
|
|
35377
35380
|
if (getImportSpecifier(sourceFile, "@angular/core", "NgModule")) {
|
|
35378
35381
|
sourceFile.forEachChild(function walk(node) {
|
|
35379
|
-
if (
|
|
35380
|
-
const decorator = getAngularDecorators(typeChecker,
|
|
35382
|
+
if (import_typescript108.default.isClassDeclaration(node)) {
|
|
35383
|
+
const decorator = getAngularDecorators(typeChecker, import_typescript108.default.getDecorators(node) || []).find((current) => current.name === "NgModule");
|
|
35381
35384
|
const metadata = decorator ? extractMetadataLiteral(decorator.node) : null;
|
|
35382
35385
|
if (metadata) {
|
|
35383
35386
|
const declarations = findLiteralProperty(metadata, "declarations");
|
|
@@ -35397,8 +35400,8 @@ function findTestObjectsToMigrate(sourceFile, typeChecker) {
|
|
|
35397
35400
|
const catalystImport = getImportSpecifier(sourceFile, /testing\/catalyst$/, "setupModule");
|
|
35398
35401
|
if (testBedImport || catalystImport) {
|
|
35399
35402
|
sourceFile.forEachChild(function walk(node) {
|
|
35400
|
-
if (
|
|
35401
|
-
if (testBedImport &&
|
|
35403
|
+
if (import_typescript108.default.isCallExpression(node) && node.arguments.length > 0 && import_typescript108.default.isObjectLiteralExpression(node.arguments[0])) {
|
|
35404
|
+
if (testBedImport && import_typescript108.default.isPropertyAccessExpression(node.expression) && node.expression.name.text === "configureTestingModule" && isReferenceToImport(typeChecker, node.expression.expression, testBedImport) || catalystImport && import_typescript108.default.isIdentifier(node.expression) && isReferenceToImport(typeChecker, node.expression, catalystImport)) {
|
|
35402
35405
|
testObjects.push(node.arguments[0]);
|
|
35403
35406
|
}
|
|
35404
35407
|
}
|
|
@@ -35413,7 +35416,7 @@ function findTemplateDependencies(decl, typeChecker) {
|
|
|
35413
35416
|
const usedPipes = typeChecker.getUsedPipes(decl);
|
|
35414
35417
|
if (usedDirectives !== null) {
|
|
35415
35418
|
for (const dir of usedDirectives) {
|
|
35416
|
-
if (
|
|
35419
|
+
if (import_typescript108.default.isClassDeclaration(dir.ref.node)) {
|
|
35417
35420
|
results.push(dir.ref);
|
|
35418
35421
|
}
|
|
35419
35422
|
}
|
|
@@ -35421,7 +35424,7 @@ function findTemplateDependencies(decl, typeChecker) {
|
|
|
35421
35424
|
if (usedPipes !== null) {
|
|
35422
35425
|
const potentialPipes = typeChecker.getPotentialPipes(decl);
|
|
35423
35426
|
for (const pipe of potentialPipes) {
|
|
35424
|
-
if (
|
|
35427
|
+
if (import_typescript108.default.isClassDeclaration(pipe.ref.node) && usedPipes.some((current) => pipe.name === current)) {
|
|
35425
35428
|
results.push(pipe.ref);
|
|
35426
35429
|
}
|
|
35427
35430
|
}
|
|
@@ -35435,12 +35438,12 @@ function filterNonBootstrappedDeclarations(declarations, ngModule, templateTypeC
|
|
|
35435
35438
|
if (!bootstrapProp) {
|
|
35436
35439
|
return declarations;
|
|
35437
35440
|
}
|
|
35438
|
-
if (!
|
|
35441
|
+
if (!import_typescript108.default.isPropertyAssignment(bootstrapProp) || !import_typescript108.default.isArrayLiteralExpression(bootstrapProp.initializer)) {
|
|
35439
35442
|
return [];
|
|
35440
35443
|
}
|
|
35441
35444
|
const bootstrappedClasses = /* @__PURE__ */ new Set();
|
|
35442
35445
|
for (const el of bootstrapProp.initializer.elements) {
|
|
35443
|
-
const referencedClass =
|
|
35446
|
+
const referencedClass = import_typescript108.default.isIdentifier(el) ? findClassDeclaration(el, typeChecker) : null;
|
|
35444
35447
|
if (referencedClass) {
|
|
35445
35448
|
bootstrappedClasses.add(referencedClass);
|
|
35446
35449
|
} else {
|
|
@@ -35451,13 +35454,13 @@ function filterNonBootstrappedDeclarations(declarations, ngModule, templateTypeC
|
|
|
35451
35454
|
}
|
|
35452
35455
|
function extractDeclarationsFromModule(ngModule, templateTypeChecker) {
|
|
35453
35456
|
const metadata = templateTypeChecker.getNgModuleMetadata(ngModule);
|
|
35454
|
-
return metadata ? metadata.declarations.filter((decl) =>
|
|
35457
|
+
return metadata ? metadata.declarations.filter((decl) => import_typescript108.default.isClassDeclaration(decl.node)).map((decl) => decl.node) : [];
|
|
35455
35458
|
}
|
|
35456
35459
|
function migrateTestDeclarations(testObjects, declarationsOutsideOfTestFiles, tracker, templateTypeChecker, typeChecker) {
|
|
35457
35460
|
const { decorators, componentImports } = analyzeTestingModules(testObjects, typeChecker);
|
|
35458
35461
|
const allDeclarations = new Set(declarationsOutsideOfTestFiles);
|
|
35459
35462
|
for (const decorator of decorators) {
|
|
35460
|
-
const closestClass = closestNode(decorator.node,
|
|
35463
|
+
const closestClass = closestNode(decorator.node, import_typescript108.default.isClassDeclaration);
|
|
35461
35464
|
if (decorator.name === "Pipe" || decorator.name === "Directive") {
|
|
35462
35465
|
tracker.replaceNode(decorator.node, addStandaloneToDecorator(decorator.node));
|
|
35463
35466
|
if (closestClass) {
|
|
@@ -35470,7 +35473,7 @@ function migrateTestDeclarations(testObjects, declarationsOutsideOfTestFiles, tr
|
|
|
35470
35473
|
allDeclarations.add(closestClass);
|
|
35471
35474
|
}
|
|
35472
35475
|
if (importsToAdd && importsToAdd.size > 0) {
|
|
35473
|
-
tracker.replaceNode(decorator.node, addPropertyToAngularDecorator(newDecorator,
|
|
35476
|
+
tracker.replaceNode(decorator.node, addPropertyToAngularDecorator(newDecorator, import_typescript108.default.factory.createPropertyAssignment("imports", import_typescript108.default.factory.createArrayLiteralExpression(Array.from(importsToAdd)))));
|
|
35474
35477
|
} else {
|
|
35475
35478
|
tracker.replaceNode(decorator.node, newDecorator);
|
|
35476
35479
|
}
|
|
@@ -35491,13 +35494,13 @@ function analyzeTestingModules(testObjects, typeChecker) {
|
|
|
35491
35494
|
}
|
|
35492
35495
|
const importsProp = findLiteralProperty(obj, "imports");
|
|
35493
35496
|
const importElements = importsProp && hasNgModuleMetadataElements(importsProp) ? importsProp.initializer.elements.filter((el) => {
|
|
35494
|
-
return !
|
|
35497
|
+
return !import_typescript108.default.isCallExpression(el) && !isClassReferenceInAngularModule(el, /^BrowserAnimationsModule|NoopAnimationsModule$/, "platform-browser/animations", typeChecker);
|
|
35495
35498
|
}) : null;
|
|
35496
35499
|
for (const decl of declarations) {
|
|
35497
35500
|
if (seenDeclarations.has(decl)) {
|
|
35498
35501
|
continue;
|
|
35499
35502
|
}
|
|
35500
|
-
const [decorator] = getAngularDecorators(typeChecker,
|
|
35503
|
+
const [decorator] = getAngularDecorators(typeChecker, import_typescript108.default.getDecorators(decl) || []);
|
|
35501
35504
|
if (decorator) {
|
|
35502
35505
|
seenDeclarations.add(decl);
|
|
35503
35506
|
decorators.push(decorator);
|
|
@@ -35528,7 +35531,7 @@ function extractDeclarationsFromTestObject(obj, typeChecker) {
|
|
|
35528
35531
|
return results;
|
|
35529
35532
|
}
|
|
35530
35533
|
function extractMetadataLiteral(decorator) {
|
|
35531
|
-
return
|
|
35534
|
+
return import_typescript108.default.isCallExpression(decorator.expression) && decorator.expression.arguments.length === 1 && import_typescript108.default.isObjectLiteralExpression(decorator.expression.arguments[0]) ? decorator.expression.arguments[0] : null;
|
|
35532
35535
|
}
|
|
35533
35536
|
function isStandaloneDeclaration(node, declarationsInMigration, templateTypeChecker) {
|
|
35534
35537
|
if (declarationsInMigration.has(node)) {
|
|
@@ -35538,7 +35541,7 @@ function isStandaloneDeclaration(node, declarationsInMigration, templateTypeChec
|
|
|
35538
35541
|
return metadata != null && metadata.isStandalone;
|
|
35539
35542
|
}
|
|
35540
35543
|
|
|
35541
|
-
// bazel-out/
|
|
35544
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/standalone-bootstrap.mjs
|
|
35542
35545
|
function toStandaloneBootstrap(program, host, basePath, rootFileNames, sourceFiles, printer, importRemapper, referenceLookupExcludedFiles, componentImportRemapper) {
|
|
35543
35546
|
const tracker = new ChangeTracker(printer, importRemapper);
|
|
35544
35547
|
const typeChecker = program.getTsProgram().getTypeChecker();
|
|
@@ -35547,9 +35550,10 @@ function toStandaloneBootstrap(program, host, basePath, rootFileNames, sourceFil
|
|
|
35547
35550
|
const bootstrapCalls = [];
|
|
35548
35551
|
const testObjects = /* @__PURE__ */ new Set();
|
|
35549
35552
|
const allDeclarations = /* @__PURE__ */ new Set();
|
|
35553
|
+
const additionalProviders = hasImport(program, rootFileNames, "protractor") ? /* @__PURE__ */ new Map([["provideProtractorTestingSupport", "@angular/platform-browser"]]) : null;
|
|
35550
35554
|
for (const sourceFile of sourceFiles) {
|
|
35551
35555
|
sourceFile.forEachChild(function walk(node) {
|
|
35552
|
-
if (
|
|
35556
|
+
if (import_typescript109.default.isCallExpression(node) && import_typescript109.default.isPropertyAccessExpression(node.expression) && node.expression.name.text === "bootstrapModule" && isClassReferenceInAngularModule(node.expression, "PlatformRef", "core", typeChecker)) {
|
|
35553
35557
|
const call = analyzeBootstrapCall(node, typeChecker, templateTypeChecker);
|
|
35554
35558
|
if (call) {
|
|
35555
35559
|
bootstrapCalls.push(call);
|
|
@@ -35561,7 +35565,7 @@ function toStandaloneBootstrap(program, host, basePath, rootFileNames, sourceFil
|
|
|
35561
35565
|
}
|
|
35562
35566
|
for (const call of bootstrapCalls) {
|
|
35563
35567
|
call.declarations.forEach((decl) => allDeclarations.add(decl));
|
|
35564
|
-
migrateBootstrapCall(call, tracker, referenceResolver, typeChecker, printer);
|
|
35568
|
+
migrateBootstrapCall(call, tracker, additionalProviders, referenceResolver, typeChecker, printer);
|
|
35565
35569
|
}
|
|
35566
35570
|
for (const declaration of allDeclarations) {
|
|
35567
35571
|
convertNgModuleDeclarationToStandalone(declaration, allDeclarations, tracker, templateTypeChecker, componentImportRemapper);
|
|
@@ -35570,24 +35574,24 @@ function toStandaloneBootstrap(program, host, basePath, rootFileNames, sourceFil
|
|
|
35570
35574
|
return tracker.recordChanges();
|
|
35571
35575
|
}
|
|
35572
35576
|
function analyzeBootstrapCall(call, typeChecker, templateTypeChecker) {
|
|
35573
|
-
if (call.arguments.length === 0 || !
|
|
35577
|
+
if (call.arguments.length === 0 || !import_typescript109.default.isIdentifier(call.arguments[0])) {
|
|
35574
35578
|
return null;
|
|
35575
35579
|
}
|
|
35576
35580
|
const declaration = findClassDeclaration(call.arguments[0], typeChecker);
|
|
35577
35581
|
if (!declaration) {
|
|
35578
35582
|
return null;
|
|
35579
35583
|
}
|
|
35580
|
-
const decorator = getAngularDecorators(typeChecker,
|
|
35581
|
-
if (!decorator || decorator.node.expression.arguments.length === 0 || !
|
|
35584
|
+
const decorator = getAngularDecorators(typeChecker, import_typescript109.default.getDecorators(declaration) || []).find((decorator2) => decorator2.name === "NgModule");
|
|
35585
|
+
if (!decorator || decorator.node.expression.arguments.length === 0 || !import_typescript109.default.isObjectLiteralExpression(decorator.node.expression.arguments[0])) {
|
|
35582
35586
|
return null;
|
|
35583
35587
|
}
|
|
35584
35588
|
const metadata = decorator.node.expression.arguments[0];
|
|
35585
35589
|
const bootstrapProp = findLiteralProperty(metadata, "bootstrap");
|
|
35586
|
-
if (!bootstrapProp || !
|
|
35590
|
+
if (!bootstrapProp || !import_typescript109.default.isPropertyAssignment(bootstrapProp) || !import_typescript109.default.isArrayLiteralExpression(bootstrapProp.initializer) || bootstrapProp.initializer.elements.length === 0 || !import_typescript109.default.isIdentifier(bootstrapProp.initializer.elements[0])) {
|
|
35587
35591
|
return null;
|
|
35588
35592
|
}
|
|
35589
35593
|
const component = findClassDeclaration(bootstrapProp.initializer.elements[0], typeChecker);
|
|
35590
|
-
if (component && component.name &&
|
|
35594
|
+
if (component && component.name && import_typescript109.default.isIdentifier(component.name)) {
|
|
35591
35595
|
return {
|
|
35592
35596
|
module: declaration,
|
|
35593
35597
|
metadata,
|
|
@@ -35598,7 +35602,7 @@ function analyzeBootstrapCall(call, typeChecker, templateTypeChecker) {
|
|
|
35598
35602
|
}
|
|
35599
35603
|
return null;
|
|
35600
35604
|
}
|
|
35601
|
-
function migrateBootstrapCall(analysis, tracker, referenceResolver, typeChecker, printer) {
|
|
35605
|
+
function migrateBootstrapCall(analysis, tracker, additionalProviders, referenceResolver, typeChecker, printer) {
|
|
35602
35606
|
const sourceFile = analysis.call.getSourceFile();
|
|
35603
35607
|
const moduleSourceFile = analysis.metadata.getSourceFile();
|
|
35604
35608
|
const providers = findLiteralProperty(analysis.metadata, "providers");
|
|
@@ -35609,19 +35613,24 @@ function migrateBootstrapCall(analysis, tracker, referenceResolver, typeChecker,
|
|
|
35609
35613
|
let nodeLookup = null;
|
|
35610
35614
|
tracker.insertText(moduleSourceFile, analysis.metadata.getStart(), "/* TODO(standalone-migration): clean up removed NgModule class manually. \n");
|
|
35611
35615
|
tracker.insertText(moduleSourceFile, analysis.metadata.getEnd(), " */");
|
|
35612
|
-
if (providers &&
|
|
35616
|
+
if (providers && import_typescript109.default.isPropertyAssignment(providers)) {
|
|
35613
35617
|
nodeLookup = nodeLookup || getNodeLookup(moduleSourceFile);
|
|
35614
|
-
if (
|
|
35618
|
+
if (import_typescript109.default.isArrayLiteralExpression(providers.initializer)) {
|
|
35615
35619
|
providersInNewCall.push(...providers.initializer.elements);
|
|
35616
35620
|
} else {
|
|
35617
|
-
providersInNewCall.push(
|
|
35621
|
+
providersInNewCall.push(import_typescript109.default.factory.createSpreadElement(providers.initializer));
|
|
35618
35622
|
}
|
|
35619
35623
|
addNodesToCopy(sourceFile, providers, nodeLookup, tracker, nodesToCopy, referenceResolver);
|
|
35620
35624
|
}
|
|
35621
|
-
if (imports &&
|
|
35625
|
+
if (imports && import_typescript109.default.isPropertyAssignment(imports)) {
|
|
35622
35626
|
nodeLookup = nodeLookup || getNodeLookup(moduleSourceFile);
|
|
35623
35627
|
migrateImportsForBootstrapCall(sourceFile, imports, nodeLookup, moduleImportsInNewCall, providersInNewCall, tracker, nodesToCopy, referenceResolver, typeChecker);
|
|
35624
35628
|
}
|
|
35629
|
+
if (additionalProviders) {
|
|
35630
|
+
additionalProviders.forEach((moduleSpecifier, name) => {
|
|
35631
|
+
providersInNewCall.push(import_typescript109.default.factory.createCallExpression(tracker.addImport(sourceFile, name, moduleSpecifier), void 0, void 0));
|
|
35632
|
+
});
|
|
35633
|
+
}
|
|
35625
35634
|
if (nodesToCopy.size > 0) {
|
|
35626
35635
|
let text = "\n\n";
|
|
35627
35636
|
nodesToCopy.forEach((node) => {
|
|
@@ -35629,7 +35638,7 @@ function migrateBootstrapCall(analysis, tracker, referenceResolver, typeChecker,
|
|
|
35629
35638
|
if (transformedNode === node) {
|
|
35630
35639
|
text += transformedNode.getText() + "\n";
|
|
35631
35640
|
} else {
|
|
35632
|
-
text += printer.printNode(
|
|
35641
|
+
text += printer.printNode(import_typescript109.default.EmitHint.Unspecified, transformedNode, node.getSourceFile());
|
|
35633
35642
|
}
|
|
35634
35643
|
});
|
|
35635
35644
|
text += "\n";
|
|
@@ -35646,30 +35655,30 @@ function replaceBootstrapCallExpression(analysis, providers, modules, tracker) {
|
|
|
35646
35655
|
const combinedProviders = [];
|
|
35647
35656
|
if (modules.length > 0) {
|
|
35648
35657
|
const importProvidersExpression = tracker.addImport(sourceFile, "importProvidersFrom", "@angular/core");
|
|
35649
|
-
combinedProviders.push(
|
|
35658
|
+
combinedProviders.push(import_typescript109.default.factory.createCallExpression(importProvidersExpression, [], modules));
|
|
35650
35659
|
}
|
|
35651
35660
|
combinedProviders.push(...providers);
|
|
35652
|
-
const initializer = remapDynamicImports(sourceFile.fileName,
|
|
35653
|
-
args.push(
|
|
35661
|
+
const initializer = remapDynamicImports(sourceFile.fileName, import_typescript109.default.factory.createArrayLiteralExpression(combinedProviders, combinedProviders.length > 1));
|
|
35662
|
+
args.push(import_typescript109.default.factory.createObjectLiteralExpression([import_typescript109.default.factory.createPropertyAssignment("providers", initializer)], true));
|
|
35654
35663
|
}
|
|
35655
35664
|
tracker.replaceNode(
|
|
35656
35665
|
analysis.call,
|
|
35657
|
-
|
|
35666
|
+
import_typescript109.default.factory.createCallExpression(bootstrapExpression, [], args),
|
|
35658
35667
|
void 0,
|
|
35659
35668
|
analysis.metadata.getSourceFile()
|
|
35660
35669
|
);
|
|
35661
35670
|
}
|
|
35662
35671
|
function migrateImportsForBootstrapCall(sourceFile, imports, nodeLookup, importsForNewCall, providersInNewCall, tracker, nodesToCopy, referenceResolver, typeChecker) {
|
|
35663
|
-
if (!
|
|
35672
|
+
if (!import_typescript109.default.isArrayLiteralExpression(imports.initializer)) {
|
|
35664
35673
|
importsForNewCall.push(imports.initializer);
|
|
35665
35674
|
return;
|
|
35666
35675
|
}
|
|
35667
35676
|
for (const element of imports.initializer.elements) {
|
|
35668
|
-
if (
|
|
35677
|
+
if (import_typescript109.default.isCallExpression(element) && import_typescript109.default.isPropertyAccessExpression(element.expression) && element.arguments.length > 0 && element.expression.name.text === "forRoot" && isClassReferenceInAngularModule(element.expression.expression, "RouterModule", "router", typeChecker)) {
|
|
35669
35678
|
const options = element.arguments[1];
|
|
35670
35679
|
const features = options ? getRouterModuleForRootFeatures(sourceFile, options, tracker) : [];
|
|
35671
35680
|
if (features !== null) {
|
|
35672
|
-
providersInNewCall.push(
|
|
35681
|
+
providersInNewCall.push(import_typescript109.default.factory.createCallExpression(tracker.addImport(sourceFile, "provideRouter", "@angular/router"), [], [element.arguments[0], ...features]));
|
|
35673
35682
|
addNodesToCopy(sourceFile, element.arguments[0], nodeLookup, tracker, nodesToCopy, referenceResolver);
|
|
35674
35683
|
if (options) {
|
|
35675
35684
|
addNodesToCopy(sourceFile, options, nodeLookup, tracker, nodesToCopy, referenceResolver);
|
|
@@ -35677,30 +35686,30 @@ function migrateImportsForBootstrapCall(sourceFile, imports, nodeLookup, imports
|
|
|
35677
35686
|
continue;
|
|
35678
35687
|
}
|
|
35679
35688
|
}
|
|
35680
|
-
if (
|
|
35689
|
+
if (import_typescript109.default.isIdentifier(element)) {
|
|
35681
35690
|
const animationsModule = "platform-browser/animations";
|
|
35682
35691
|
const animationsImport = `@angular/${animationsModule}`;
|
|
35683
35692
|
if (isClassReferenceInAngularModule(element, "BrowserAnimationsModule", animationsModule, typeChecker)) {
|
|
35684
|
-
providersInNewCall.push(
|
|
35693
|
+
providersInNewCall.push(import_typescript109.default.factory.createCallExpression(tracker.addImport(sourceFile, "provideAnimations", animationsImport), [], []));
|
|
35685
35694
|
continue;
|
|
35686
35695
|
}
|
|
35687
35696
|
if (isClassReferenceInAngularModule(element, "NoopAnimationsModule", animationsModule, typeChecker)) {
|
|
35688
|
-
providersInNewCall.push(
|
|
35697
|
+
providersInNewCall.push(import_typescript109.default.factory.createCallExpression(tracker.addImport(sourceFile, "provideNoopAnimations", animationsImport), [], []));
|
|
35689
35698
|
continue;
|
|
35690
35699
|
}
|
|
35691
35700
|
const httpClientModule = "common/http";
|
|
35692
35701
|
const httpClientImport = `@angular/${httpClientModule}`;
|
|
35693
35702
|
if (isClassReferenceInAngularModule(element, "HttpClientModule", httpClientModule, typeChecker)) {
|
|
35694
35703
|
const callArgs = [
|
|
35695
|
-
|
|
35704
|
+
import_typescript109.default.factory.createCallExpression(tracker.addImport(sourceFile, "withInterceptorsFromDi", httpClientImport), [], [])
|
|
35696
35705
|
];
|
|
35697
|
-
providersInNewCall.push(
|
|
35706
|
+
providersInNewCall.push(import_typescript109.default.factory.createCallExpression(tracker.addImport(sourceFile, "provideHttpClient", httpClientImport), [], callArgs));
|
|
35698
35707
|
continue;
|
|
35699
35708
|
}
|
|
35700
35709
|
}
|
|
35701
|
-
const target =
|
|
35710
|
+
const target = import_typescript109.default.isCallExpression(element) && import_typescript109.default.isPropertyAccessExpression(element.expression) ? element.expression.expression : element;
|
|
35702
35711
|
const classDeclaration = findClassDeclaration(target, typeChecker);
|
|
35703
|
-
const decorators = classDeclaration ? getAngularDecorators(typeChecker,
|
|
35712
|
+
const decorators = classDeclaration ? getAngularDecorators(typeChecker, import_typescript109.default.getDecorators(classDeclaration) || []) : void 0;
|
|
35704
35713
|
if (!decorators || decorators.length === 0 || decorators.every(({ name }) => name !== "Directive" && name !== "Component" && name !== "Pipe")) {
|
|
35705
35714
|
importsForNewCall.push(element);
|
|
35706
35715
|
addNodesToCopy(sourceFile, element, nodeLookup, tracker, nodesToCopy, referenceResolver);
|
|
@@ -35708,7 +35717,7 @@ function migrateImportsForBootstrapCall(sourceFile, imports, nodeLookup, imports
|
|
|
35708
35717
|
}
|
|
35709
35718
|
}
|
|
35710
35719
|
function getRouterModuleForRootFeatures(sourceFile, options, tracker) {
|
|
35711
|
-
if (!
|
|
35720
|
+
if (!import_typescript109.default.isObjectLiteralExpression(options)) {
|
|
35712
35721
|
return null;
|
|
35713
35722
|
}
|
|
35714
35723
|
const featureExpressions = [];
|
|
@@ -35716,7 +35725,7 @@ function getRouterModuleForRootFeatures(sourceFile, options, tracker) {
|
|
|
35716
35725
|
const inMemoryScrollingOptions = [];
|
|
35717
35726
|
const features = new UniqueItemTracker();
|
|
35718
35727
|
for (const prop of options.properties) {
|
|
35719
|
-
if (!
|
|
35728
|
+
if (!import_typescript109.default.isPropertyAssignment(prop) || !import_typescript109.default.isIdentifier(prop.name) && !import_typescript109.default.isStringLiteralLike(prop.name)) {
|
|
35720
35729
|
return null;
|
|
35721
35730
|
}
|
|
35722
35731
|
switch (prop.name.text) {
|
|
@@ -35724,12 +35733,12 @@ function getRouterModuleForRootFeatures(sourceFile, options, tracker) {
|
|
|
35724
35733
|
features.track("withPreloading", prop.initializer);
|
|
35725
35734
|
break;
|
|
35726
35735
|
case "enableTracing":
|
|
35727
|
-
if (prop.initializer.kind ===
|
|
35736
|
+
if (prop.initializer.kind === import_typescript109.default.SyntaxKind.TrueKeyword) {
|
|
35728
35737
|
features.track("withDebugTracing", null);
|
|
35729
35738
|
}
|
|
35730
35739
|
break;
|
|
35731
35740
|
case "initialNavigation":
|
|
35732
|
-
if (!
|
|
35741
|
+
if (!import_typescript109.default.isStringLiteralLike(prop.initializer)) {
|
|
35733
35742
|
return null;
|
|
35734
35743
|
}
|
|
35735
35744
|
if (prop.initializer.text === "enabledBlocking" || prop.initializer.text === "enabled") {
|
|
@@ -35739,7 +35748,7 @@ function getRouterModuleForRootFeatures(sourceFile, options, tracker) {
|
|
|
35739
35748
|
}
|
|
35740
35749
|
break;
|
|
35741
35750
|
case "useHash":
|
|
35742
|
-
if (prop.initializer.kind ===
|
|
35751
|
+
if (prop.initializer.kind === import_typescript109.default.SyntaxKind.TrueKeyword) {
|
|
35743
35752
|
features.track("withHashLocation", null);
|
|
35744
35753
|
}
|
|
35745
35754
|
break;
|
|
@@ -35756,10 +35765,10 @@ function getRouterModuleForRootFeatures(sourceFile, options, tracker) {
|
|
|
35756
35765
|
}
|
|
35757
35766
|
}
|
|
35758
35767
|
if (inMemoryScrollingOptions.length > 0) {
|
|
35759
|
-
features.track("withInMemoryScrolling",
|
|
35768
|
+
features.track("withInMemoryScrolling", import_typescript109.default.factory.createObjectLiteralExpression(inMemoryScrollingOptions));
|
|
35760
35769
|
}
|
|
35761
35770
|
if (configOptions.length > 0) {
|
|
35762
|
-
features.track("withRouterConfig",
|
|
35771
|
+
features.track("withRouterConfig", import_typescript109.default.factory.createObjectLiteralExpression(configOptions));
|
|
35763
35772
|
}
|
|
35764
35773
|
for (const [feature, featureArgs] of features.getEntries()) {
|
|
35765
35774
|
const callArgs = [];
|
|
@@ -35768,25 +35777,25 @@ function getRouterModuleForRootFeatures(sourceFile, options, tracker) {
|
|
|
35768
35777
|
callArgs.push(arg);
|
|
35769
35778
|
}
|
|
35770
35779
|
});
|
|
35771
|
-
featureExpressions.push(
|
|
35780
|
+
featureExpressions.push(import_typescript109.default.factory.createCallExpression(tracker.addImport(sourceFile, feature, "@angular/router"), [], callArgs));
|
|
35772
35781
|
}
|
|
35773
35782
|
return featureExpressions;
|
|
35774
35783
|
}
|
|
35775
35784
|
function addNodesToCopy(targetFile, rootNode, nodeLookup, tracker, nodesToCopy, referenceResolver) {
|
|
35776
35785
|
const refs = findAllSameFileReferences(rootNode, nodeLookup, referenceResolver);
|
|
35777
35786
|
for (const ref of refs) {
|
|
35778
|
-
const importSpecifier = closestOrSelf(ref,
|
|
35779
|
-
const importDeclaration = importSpecifier ? closestNode(importSpecifier,
|
|
35780
|
-
if (importDeclaration && importSpecifier &&
|
|
35787
|
+
const importSpecifier = closestOrSelf(ref, import_typescript109.default.isImportSpecifier);
|
|
35788
|
+
const importDeclaration = importSpecifier ? closestNode(importSpecifier, import_typescript109.default.isImportDeclaration) : null;
|
|
35789
|
+
if (importDeclaration && importSpecifier && import_typescript109.default.isStringLiteralLike(importDeclaration.moduleSpecifier)) {
|
|
35781
35790
|
const moduleName = importDeclaration.moduleSpecifier.text.startsWith(".") ? remapRelativeImport(targetFile.fileName, importDeclaration.moduleSpecifier) : importDeclaration.moduleSpecifier.text;
|
|
35782
35791
|
const symbolName = importSpecifier.propertyName ? importSpecifier.propertyName.text : importSpecifier.name.text;
|
|
35783
35792
|
const alias = importSpecifier.propertyName ? importSpecifier.name.text : null;
|
|
35784
35793
|
tracker.addImport(targetFile, symbolName, moduleName, alias);
|
|
35785
35794
|
continue;
|
|
35786
35795
|
}
|
|
35787
|
-
const variableDeclaration = closestOrSelf(ref,
|
|
35788
|
-
const variableStatement = variableDeclaration ? closestNode(variableDeclaration,
|
|
35789
|
-
if (variableDeclaration && variableStatement &&
|
|
35796
|
+
const variableDeclaration = closestOrSelf(ref, import_typescript109.default.isVariableDeclaration);
|
|
35797
|
+
const variableStatement = variableDeclaration ? closestNode(variableDeclaration, import_typescript109.default.isVariableStatement) : null;
|
|
35798
|
+
if (variableDeclaration && variableStatement && import_typescript109.default.isIdentifier(variableDeclaration.name)) {
|
|
35790
35799
|
if (isExported(variableStatement)) {
|
|
35791
35800
|
tracker.addImport(targetFile, variableDeclaration.name.text, getRelativeImportPath(targetFile.fileName, ref.getSourceFile().fileName));
|
|
35792
35801
|
} else {
|
|
@@ -35827,7 +35836,7 @@ function findAllSameFileReferences(rootNode, nodeLookup, referenceResolver) {
|
|
|
35827
35836
|
if (!closestTopLevel || traversedTopLevelNodes.has(closestTopLevel)) {
|
|
35828
35837
|
continue;
|
|
35829
35838
|
}
|
|
35830
|
-
if (!
|
|
35839
|
+
if (!import_typescript109.default.isImportDeclaration(closestTopLevel) && isOutsideRange(excludeStart, excludeEnd, closestTopLevel.getStart(), closestTopLevel.getEnd())) {
|
|
35831
35840
|
traversedTopLevelNodes.add(closestTopLevel);
|
|
35832
35841
|
walk(closestTopLevel);
|
|
35833
35842
|
}
|
|
@@ -35848,25 +35857,25 @@ function referencesToNodeWithinSameFile(node, nodeLookup, excludeStart, excludeE
|
|
|
35848
35857
|
function remapDynamicImports(targetFileName, rootNode) {
|
|
35849
35858
|
let hasChanged = false;
|
|
35850
35859
|
const transformer = (context) => {
|
|
35851
|
-
return (sourceFile) =>
|
|
35852
|
-
if (
|
|
35860
|
+
return (sourceFile) => import_typescript109.default.visitNode(sourceFile, function walk(node) {
|
|
35861
|
+
if (import_typescript109.default.isCallExpression(node) && node.expression.kind === import_typescript109.default.SyntaxKind.ImportKeyword && node.arguments.length > 0 && import_typescript109.default.isStringLiteralLike(node.arguments[0]) && node.arguments[0].text.startsWith(".")) {
|
|
35853
35862
|
hasChanged = true;
|
|
35854
35863
|
return context.factory.updateCallExpression(node, node.expression, node.typeArguments, [
|
|
35855
35864
|
context.factory.createStringLiteral(remapRelativeImport(targetFileName, node.arguments[0])),
|
|
35856
35865
|
...node.arguments.slice(1)
|
|
35857
35866
|
]);
|
|
35858
35867
|
}
|
|
35859
|
-
return
|
|
35868
|
+
return import_typescript109.default.visitEachChild(node, walk, context);
|
|
35860
35869
|
});
|
|
35861
35870
|
};
|
|
35862
|
-
const result =
|
|
35871
|
+
const result = import_typescript109.default.transform(rootNode, [transformer]).transformed[0];
|
|
35863
35872
|
return hasChanged ? result : rootNode;
|
|
35864
35873
|
}
|
|
35865
35874
|
function isTopLevelStatement(node) {
|
|
35866
|
-
return node.parent != null &&
|
|
35875
|
+
return node.parent != null && import_typescript109.default.isSourceFile(node.parent);
|
|
35867
35876
|
}
|
|
35868
35877
|
function isReferenceIdentifier(node) {
|
|
35869
|
-
return
|
|
35878
|
+
return import_typescript109.default.isIdentifier(node) && (!import_typescript109.default.isPropertyAssignment(node.parent) && !import_typescript109.default.isParameter(node.parent) || node.parent.name !== node);
|
|
35870
35879
|
}
|
|
35871
35880
|
function isOutsideRange(excludeStart, excludeEnd, start, end) {
|
|
35872
35881
|
return start < excludeStart && end < excludeStart || start > excludeEnd;
|
|
@@ -35875,15 +35884,15 @@ function remapRelativeImport(targetFileName, specifier) {
|
|
|
35875
35884
|
return getRelativeImportPath(targetFileName, (0, import_path7.join)((0, import_path7.dirname)(specifier.getSourceFile().fileName), specifier.text));
|
|
35876
35885
|
}
|
|
35877
35886
|
function isExported(node) {
|
|
35878
|
-
return
|
|
35887
|
+
return import_typescript109.default.canHaveModifiers(node) && node.modifiers ? node.modifiers.some((modifier) => modifier.kind === import_typescript109.default.SyntaxKind.ExportKeyword) : false;
|
|
35879
35888
|
}
|
|
35880
35889
|
function isExportableDeclaration(node) {
|
|
35881
|
-
return
|
|
35890
|
+
return import_typescript109.default.isEnumDeclaration(node) || import_typescript109.default.isClassDeclaration(node) || import_typescript109.default.isFunctionDeclaration(node) || import_typescript109.default.isInterfaceDeclaration(node) || import_typescript109.default.isTypeAliasDeclaration(node);
|
|
35882
35891
|
}
|
|
35883
35892
|
function getLastImportEnd(sourceFile) {
|
|
35884
35893
|
let index = 0;
|
|
35885
35894
|
for (const statement of sourceFile.statements) {
|
|
35886
|
-
if (
|
|
35895
|
+
if (import_typescript109.default.isImportDeclaration(statement)) {
|
|
35887
35896
|
index = Math.max(index, statement.getEnd());
|
|
35888
35897
|
} else {
|
|
35889
35898
|
break;
|
|
@@ -35891,8 +35900,24 @@ function getLastImportEnd(sourceFile) {
|
|
|
35891
35900
|
}
|
|
35892
35901
|
return index;
|
|
35893
35902
|
}
|
|
35903
|
+
function hasImport(program, rootFileNames, moduleName) {
|
|
35904
|
+
const tsProgram = program.getTsProgram();
|
|
35905
|
+
const deepImportStart = moduleName + "/";
|
|
35906
|
+
for (const fileName of rootFileNames) {
|
|
35907
|
+
const sourceFile = tsProgram.getSourceFile(fileName);
|
|
35908
|
+
if (!sourceFile) {
|
|
35909
|
+
continue;
|
|
35910
|
+
}
|
|
35911
|
+
for (const statement of sourceFile.statements) {
|
|
35912
|
+
if (import_typescript109.default.isImportDeclaration(statement) && import_typescript109.default.isStringLiteralLike(statement.moduleSpecifier) && (statement.moduleSpecifier.text === moduleName || statement.moduleSpecifier.text.startsWith(deepImportStart))) {
|
|
35913
|
+
return true;
|
|
35914
|
+
}
|
|
35915
|
+
}
|
|
35916
|
+
}
|
|
35917
|
+
return false;
|
|
35918
|
+
}
|
|
35894
35919
|
|
|
35895
|
-
// bazel-out/
|
|
35920
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/index.mjs
|
|
35896
35921
|
var MigrationMode;
|
|
35897
35922
|
(function(MigrationMode2) {
|
|
35898
35923
|
MigrationMode2["toStandalone"] = "convert-to-standalone";
|
|
@@ -35931,7 +35956,7 @@ function standaloneMigration(tree, tsconfigPath, basePath, pathToMigrate, schema
|
|
|
35931
35956
|
});
|
|
35932
35957
|
const referenceLookupExcludedFiles = /node_modules|\.ngtypecheck\.ts/;
|
|
35933
35958
|
const program = createProgram({ rootNames, host, options, oldProgram });
|
|
35934
|
-
const printer =
|
|
35959
|
+
const printer = import_typescript110.default.createPrinter();
|
|
35935
35960
|
if ((0, import_fs2.existsSync)(pathToMigrate) && !(0, import_fs2.statSync)(pathToMigrate).isDirectory()) {
|
|
35936
35961
|
throw new import_schematics.SchematicsException(`Migration path ${pathToMigrate} has to be a directory. Cannot run the standalone migration.`);
|
|
35937
35962
|
}
|