@angular/core 16.0.0-next.1 → 16.0.0-next.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/src/application_config.mjs +21 -0
- package/esm2020/src/application_init.mjs +21 -30
- package/esm2020/src/application_ref.mjs +123 -115
- package/esm2020/src/application_tokens.mjs +28 -33
- package/esm2020/src/change_detection/change_detection.mjs +2 -2
- package/esm2020/src/change_detection/constants.mjs +1 -49
- package/esm2020/src/compiler/compiler_facade_interface.mjs +1 -1
- package/esm2020/src/core.mjs +4 -3
- package/esm2020/src/core_private_export.mjs +6 -9
- package/esm2020/src/core_render3_private_export.mjs +2 -1
- package/esm2020/src/debug/debug_node.mjs +1 -5
- package/esm2020/src/di/contextual.mjs +37 -0
- package/esm2020/src/di/index.mjs +2 -1
- package/esm2020/src/di/r3_injector.mjs +1 -1
- package/esm2020/src/errors.mjs +1 -1
- package/esm2020/src/hydration/annotate.mjs +271 -0
- package/esm2020/src/hydration/api.mjs +128 -0
- package/esm2020/src/hydration/cleanup.mjs +50 -0
- package/esm2020/src/hydration/error_handling.mjs +37 -0
- package/esm2020/src/hydration/interfaces.mjs +17 -0
- package/esm2020/src/hydration/node_lookup_utils.mjs +83 -0
- package/esm2020/src/hydration/skip_hydration.mjs +49 -0
- package/esm2020/src/hydration/tokens.mjs +25 -0
- package/esm2020/src/hydration/utils.mjs +206 -0
- package/esm2020/src/hydration/views.mjs +80 -0
- package/esm2020/src/linker/template_ref.mjs +19 -4
- package/esm2020/src/linker/view_container_ref.mjs +110 -35
- package/esm2020/src/render3/component_ref.mjs +17 -10
- package/esm2020/src/render3/definition.mjs +114 -45
- package/esm2020/src/render3/i18n/i18n_util.mjs +3 -3
- package/esm2020/src/render3/instructions/element.mjs +58 -6
- package/esm2020/src/render3/instructions/element_container.mjs +53 -9
- package/esm2020/src/render3/instructions/listener.mjs +3 -3
- package/esm2020/src/render3/instructions/shared.mjs +71 -17
- package/esm2020/src/render3/instructions/template.mjs +57 -6
- package/esm2020/src/render3/instructions/text.mjs +36 -5
- package/esm2020/src/render3/interfaces/container.mjs +3 -2
- package/esm2020/src/render3/interfaces/node.mjs +1 -1
- package/esm2020/src/render3/interfaces/renderer_dom.mjs +1 -1
- package/esm2020/src/render3/interfaces/type_checks.mjs +2 -2
- package/esm2020/src/render3/interfaces/view.mjs +3 -2
- package/esm2020/src/render3/jit/directive.mjs +1 -2
- package/esm2020/src/render3/jit/module.mjs +3 -2
- package/esm2020/src/render3/ng_module_ref.mjs +9 -5
- package/esm2020/src/render3/node_manipulation.mjs +12 -1
- package/esm2020/src/render3/state.mjs +45 -1
- package/esm2020/src/render3/util/discovery_utils.mjs +3 -2
- package/esm2020/src/transfer_state.mjs +15 -10
- package/esm2020/src/util/lang.mjs +1 -11
- package/esm2020/src/util/ng_dev_mode.mjs +4 -1
- package/esm2020/src/version.mjs +1 -1
- package/esm2020/src/zone/ng_zone.mjs +62 -1
- package/esm2020/testing/src/logger.mjs +3 -3
- package/esm2020/testing/src/ng_zone_mock.mjs +3 -3
- package/esm2020/testing/src/test_bed_compiler.mjs +4 -4
- package/fesm2015/core.mjs +2990 -1683
- package/fesm2015/core.mjs.map +1 -1
- package/fesm2015/testing.mjs +3615 -2533
- package/fesm2015/testing.mjs.map +1 -1
- package/fesm2020/core.mjs +2831 -1520
- package/fesm2020/core.mjs.map +1 -1
- package/fesm2020/testing.mjs +2390 -1305
- package/fesm2020/testing.mjs.map +1 -1
- package/index.d.ts +636 -584
- 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 +882 -758
- 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";
|
|
@@ -4055,27 +4055,27 @@ function asLiteral(value) {
|
|
|
4055
4055
|
}
|
|
4056
4056
|
return literal(value, INFERRED_TYPE);
|
|
4057
4057
|
}
|
|
4058
|
-
function
|
|
4059
|
-
|
|
4060
|
-
|
|
4058
|
+
function conditionallyCreateDirectiveBindingLiteral(map, keepDeclared) {
|
|
4059
|
+
const keys = Object.getOwnPropertyNames(map);
|
|
4060
|
+
if (keys.length === 0) {
|
|
4061
|
+
return null;
|
|
4061
4062
|
}
|
|
4062
|
-
return
|
|
4063
|
-
}
|
|
4064
|
-
function mapToExpression(map, keepDeclared) {
|
|
4065
|
-
return literalMap(Object.getOwnPropertyNames(map).map((key) => {
|
|
4063
|
+
return literalMap(keys.map((key) => {
|
|
4066
4064
|
const value = map[key];
|
|
4067
4065
|
let declaredName;
|
|
4068
4066
|
let publicName;
|
|
4069
4067
|
let minifiedName;
|
|
4070
4068
|
let needsDeclaredName;
|
|
4071
|
-
if (
|
|
4072
|
-
|
|
4069
|
+
if (typeof value === "string") {
|
|
4070
|
+
declaredName = key;
|
|
4073
4071
|
minifiedName = key;
|
|
4074
|
-
needsDeclaredName = publicName !== declaredName;
|
|
4075
|
-
} else {
|
|
4076
|
-
minifiedName = declaredName = key;
|
|
4077
4072
|
publicName = value;
|
|
4078
4073
|
needsDeclaredName = false;
|
|
4074
|
+
} else {
|
|
4075
|
+
minifiedName = key;
|
|
4076
|
+
declaredName = value.classPropertyName;
|
|
4077
|
+
publicName = value.bindingPropertyName;
|
|
4078
|
+
needsDeclaredName = publicName !== declaredName;
|
|
4079
4079
|
}
|
|
4080
4080
|
return {
|
|
4081
4081
|
key: minifiedName,
|
|
@@ -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}`;
|
|
@@ -15123,8 +15123,8 @@ function baseDirectiveFields(meta, constantPool, bindingParser) {
|
|
|
15123
15123
|
definitionMap.set("viewQuery", createViewQueriesFunction(meta.viewQueries, constantPool, meta.name));
|
|
15124
15124
|
}
|
|
15125
15125
|
definitionMap.set("hostBindings", createHostBindingsFunction(meta.host, meta.typeSourceSpan, bindingParser, constantPool, meta.selector || "", meta.name, definitionMap));
|
|
15126
|
-
definitionMap.set("inputs",
|
|
15127
|
-
definitionMap.set("outputs",
|
|
15126
|
+
definitionMap.set("inputs", conditionallyCreateDirectiveBindingLiteral(meta.inputs, true));
|
|
15127
|
+
definitionMap.set("outputs", conditionallyCreateDirectiveBindingLiteral(meta.outputs));
|
|
15128
15128
|
if (meta.exportAs !== null) {
|
|
15129
15129
|
definitionMap.set("exportAs", literalArr(meta.exportAs.map((e) => literal(e))));
|
|
15130
15130
|
}
|
|
@@ -15320,11 +15320,16 @@ function createBaseDirectiveTypeParams(meta) {
|
|
|
15320
15320
|
typeWithParameters(meta.type.type, meta.typeArgumentCount),
|
|
15321
15321
|
selectorForType !== null ? stringAsType(selectorForType) : NONE_TYPE,
|
|
15322
15322
|
meta.exportAs !== null ? stringArrayAsType(meta.exportAs) : NONE_TYPE,
|
|
15323
|
-
expressionType(
|
|
15323
|
+
expressionType(getInputsTypeExpression(meta)),
|
|
15324
15324
|
expressionType(stringMapAsLiteralExpression(meta.outputs)),
|
|
15325
15325
|
stringArrayAsType(meta.queries.map((q) => q.propertyName))
|
|
15326
15326
|
];
|
|
15327
15327
|
}
|
|
15328
|
+
function getInputsTypeExpression(meta) {
|
|
15329
|
+
return literalMap(Object.keys(meta.inputs).map((key) => {
|
|
15330
|
+
return { key, value: literal(meta.inputs[key].bindingPropertyName), quoted: true };
|
|
15331
|
+
}));
|
|
15332
|
+
}
|
|
15328
15333
|
function createDirectiveType(meta) {
|
|
15329
15334
|
const typeParams = createBaseDirectiveTypeParams(meta);
|
|
15330
15335
|
typeParams.push(NONE_TYPE);
|
|
@@ -15623,11 +15628,11 @@ function createHostDirectivesMappingArray(mapping) {
|
|
|
15623
15628
|
return elements.length > 0 ? literalArr(elements) : null;
|
|
15624
15629
|
}
|
|
15625
15630
|
|
|
15626
|
-
// bazel-out/
|
|
15631
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/resource_loader.mjs
|
|
15627
15632
|
var ResourceLoader = class {
|
|
15628
15633
|
};
|
|
15629
15634
|
|
|
15630
|
-
// bazel-out/
|
|
15635
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/jit_compiler_facade.mjs
|
|
15631
15636
|
var CompilerFacadeImpl = class {
|
|
15632
15637
|
constructor(jitEvaluator = new JitEvaluator()) {
|
|
15633
15638
|
this.jitEvaluator = jitEvaluator;
|
|
@@ -15834,8 +15839,8 @@ function convertQueryPredicate(predicate) {
|
|
|
15834
15839
|
return Array.isArray(predicate) ? predicate : createMayBeForwardRefExpression(new WrappedNodeExpr(predicate), 1);
|
|
15835
15840
|
}
|
|
15836
15841
|
function convertDirectiveFacadeToMetadata(facade) {
|
|
15837
|
-
const inputsFromMetadata =
|
|
15838
|
-
const outputsFromMetadata =
|
|
15842
|
+
const inputsFromMetadata = parseInputsArray(facade.inputs || []);
|
|
15843
|
+
const outputsFromMetadata = parseMappingStringArray(facade.outputs || []);
|
|
15839
15844
|
const propMetadata = facade.propMetadata;
|
|
15840
15845
|
const inputsFromType = {};
|
|
15841
15846
|
const outputsFromType = {};
|
|
@@ -15843,7 +15848,10 @@ function convertDirectiveFacadeToMetadata(facade) {
|
|
|
15843
15848
|
if (propMetadata.hasOwnProperty(field)) {
|
|
15844
15849
|
propMetadata[field].forEach((ann) => {
|
|
15845
15850
|
if (isInput(ann)) {
|
|
15846
|
-
inputsFromType[field] =
|
|
15851
|
+
inputsFromType[field] = {
|
|
15852
|
+
bindingPropertyName: ann.bindingPropertyName || field,
|
|
15853
|
+
classPropertyName: field
|
|
15854
|
+
};
|
|
15847
15855
|
} else if (isOutput(ann)) {
|
|
15848
15856
|
outputsFromType[field] = ann.bindingPropertyName || field;
|
|
15849
15857
|
}
|
|
@@ -15867,26 +15875,26 @@ function convertDirectiveFacadeToMetadata(facade) {
|
|
|
15867
15875
|
});
|
|
15868
15876
|
}
|
|
15869
15877
|
function convertDeclareDirectiveFacadeToMetadata(declaration, typeSourceSpan) {
|
|
15870
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
15878
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
15871
15879
|
return {
|
|
15872
15880
|
name: declaration.type.name,
|
|
15873
15881
|
type: wrapReference(declaration.type),
|
|
15874
15882
|
typeSourceSpan,
|
|
15875
15883
|
internalType: new WrappedNodeExpr(declaration.type),
|
|
15876
15884
|
selector: (_a = declaration.selector) != null ? _a : null,
|
|
15877
|
-
inputs:
|
|
15878
|
-
outputs: (
|
|
15885
|
+
inputs: declaration.inputs ? inputsMappingToInputMetadata(declaration.inputs) : {},
|
|
15886
|
+
outputs: (_b = declaration.outputs) != null ? _b : {},
|
|
15879
15887
|
host: convertHostDeclarationToMetadata(declaration.host),
|
|
15880
|
-
queries: ((
|
|
15881
|
-
viewQueries: ((
|
|
15888
|
+
queries: ((_c = declaration.queries) != null ? _c : []).map(convertQueryDeclarationToMetadata),
|
|
15889
|
+
viewQueries: ((_d = declaration.viewQueries) != null ? _d : []).map(convertQueryDeclarationToMetadata),
|
|
15882
15890
|
providers: declaration.providers !== void 0 ? new WrappedNodeExpr(declaration.providers) : null,
|
|
15883
|
-
exportAs: (
|
|
15884
|
-
usesInheritance: (
|
|
15885
|
-
lifecycle: { usesOnChanges: (
|
|
15891
|
+
exportAs: (_e = declaration.exportAs) != null ? _e : null,
|
|
15892
|
+
usesInheritance: (_f = declaration.usesInheritance) != null ? _f : false,
|
|
15893
|
+
lifecycle: { usesOnChanges: (_g = declaration.usesOnChanges) != null ? _g : false },
|
|
15886
15894
|
deps: null,
|
|
15887
15895
|
typeArgumentCount: 0,
|
|
15888
15896
|
fullInheritance: false,
|
|
15889
|
-
isStandalone: (
|
|
15897
|
+
isStandalone: (_h = declaration.isStandalone) != null ? _h : false,
|
|
15890
15898
|
hostDirectives: convertHostDirectivesToMetadata(declaration)
|
|
15891
15899
|
};
|
|
15892
15900
|
}
|
|
@@ -15914,8 +15922,8 @@ function convertHostDirectivesToMetadata(metadata) {
|
|
|
15914
15922
|
} : {
|
|
15915
15923
|
directive: wrapReference(hostDirective.directive),
|
|
15916
15924
|
isForwardReference: false,
|
|
15917
|
-
inputs: hostDirective.inputs ?
|
|
15918
|
-
outputs: hostDirective.outputs ?
|
|
15925
|
+
inputs: hostDirective.inputs ? parseMappingStringArray(hostDirective.inputs) : null,
|
|
15926
|
+
outputs: hostDirective.outputs ? parseMappingStringArray(hostDirective.outputs) : null
|
|
15919
15927
|
};
|
|
15920
15928
|
});
|
|
15921
15929
|
}
|
|
@@ -16076,13 +16084,38 @@ function isInput(value) {
|
|
|
16076
16084
|
function isOutput(value) {
|
|
16077
16085
|
return value.ngMetadataName === "Output";
|
|
16078
16086
|
}
|
|
16079
|
-
function
|
|
16087
|
+
function inputsMappingToInputMetadata(inputs) {
|
|
16088
|
+
return Object.keys(inputs).reduce((result, key) => {
|
|
16089
|
+
const value = inputs[key];
|
|
16090
|
+
result[key] = typeof value === "string" ? { bindingPropertyName: value, classPropertyName: value } : { bindingPropertyName: value[0], classPropertyName: value[1] };
|
|
16091
|
+
return result;
|
|
16092
|
+
}, {});
|
|
16093
|
+
}
|
|
16094
|
+
function parseInputsArray(values) {
|
|
16080
16095
|
return values.reduce((results, value) => {
|
|
16081
|
-
|
|
16082
|
-
|
|
16096
|
+
if (typeof value === "string") {
|
|
16097
|
+
const [bindingPropertyName, classPropertyName] = parseMappingString(value);
|
|
16098
|
+
results[classPropertyName] = { bindingPropertyName, classPropertyName };
|
|
16099
|
+
} else {
|
|
16100
|
+
results[value.name] = {
|
|
16101
|
+
bindingPropertyName: value.alias || value.name,
|
|
16102
|
+
classPropertyName: value.name
|
|
16103
|
+
};
|
|
16104
|
+
}
|
|
16105
|
+
return results;
|
|
16106
|
+
}, {});
|
|
16107
|
+
}
|
|
16108
|
+
function parseMappingStringArray(values) {
|
|
16109
|
+
return values.reduce((results, value) => {
|
|
16110
|
+
const [publicName, fieldName] = parseMappingString(value);
|
|
16111
|
+
results[fieldName] = publicName;
|
|
16083
16112
|
return results;
|
|
16084
16113
|
}, {});
|
|
16085
16114
|
}
|
|
16115
|
+
function parseMappingString(value) {
|
|
16116
|
+
const [fieldName, bindingPropertyName] = value.split(":", 2).map((str) => str.trim());
|
|
16117
|
+
return [bindingPropertyName != null ? bindingPropertyName : fieldName, fieldName];
|
|
16118
|
+
}
|
|
16086
16119
|
function convertDeclarePipeFacadeToMetadata(declaration) {
|
|
16087
16120
|
var _a, _b;
|
|
16088
16121
|
return {
|
|
@@ -16110,10 +16143,10 @@ function publishFacade(global2) {
|
|
|
16110
16143
|
ng.\u0275compilerFacade = new CompilerFacadeImpl();
|
|
16111
16144
|
}
|
|
16112
16145
|
|
|
16113
|
-
// bazel-out/
|
|
16114
|
-
var VERSION2 = new Version("16.0.0-next.
|
|
16146
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/version.mjs
|
|
16147
|
+
var VERSION2 = new Version("16.0.0-next.3");
|
|
16115
16148
|
|
|
16116
|
-
// bazel-out/
|
|
16149
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
|
|
16117
16150
|
var _I18N_ATTR = "i18n";
|
|
16118
16151
|
var _I18N_ATTR_PREFIX = "i18n-";
|
|
16119
16152
|
var _I18N_COMMENT_PREFIX_REGEXP = /^i18n:?/;
|
|
@@ -16417,7 +16450,7 @@ function _parseMessageMeta(i18n) {
|
|
|
16417
16450
|
return { meaning, description, id: id.trim() };
|
|
16418
16451
|
}
|
|
16419
16452
|
|
|
16420
|
-
// bazel-out/
|
|
16453
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/xml_tags.mjs
|
|
16421
16454
|
var XmlTagDefinition = class {
|
|
16422
16455
|
constructor() {
|
|
16423
16456
|
this.closedByParent = false;
|
|
@@ -16441,7 +16474,7 @@ function getXmlTagDefinition(tagName) {
|
|
|
16441
16474
|
return _TAG_DEFINITION;
|
|
16442
16475
|
}
|
|
16443
16476
|
|
|
16444
|
-
// bazel-out/
|
|
16477
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/xml_parser.mjs
|
|
16445
16478
|
var XmlParser = class extends Parser2 {
|
|
16446
16479
|
constructor() {
|
|
16447
16480
|
super(getXmlTagDefinition);
|
|
@@ -16451,7 +16484,7 @@ var XmlParser = class extends Parser2 {
|
|
|
16451
16484
|
}
|
|
16452
16485
|
};
|
|
16453
16486
|
|
|
16454
|
-
// bazel-out/
|
|
16487
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/serializers/xliff.mjs
|
|
16455
16488
|
var _VERSION = "1.2";
|
|
16456
16489
|
var _XMLNS = "urn:oasis:names:tc:xliff:document:1.2";
|
|
16457
16490
|
var _DEFAULT_SOURCE_LANG = "en";
|
|
@@ -16691,7 +16724,7 @@ function getCtypeForTag(tag) {
|
|
|
16691
16724
|
}
|
|
16692
16725
|
}
|
|
16693
16726
|
|
|
16694
|
-
// bazel-out/
|
|
16727
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/serializers/xliff2.mjs
|
|
16695
16728
|
var _VERSION2 = "2.0";
|
|
16696
16729
|
var _XMLNS2 = "urn:oasis:names:tc:xliff:document:2.0";
|
|
16697
16730
|
var _DEFAULT_SOURCE_LANG2 = "en";
|
|
@@ -16979,7 +17012,7 @@ function getTypeForTag(tag) {
|
|
|
16979
17012
|
}
|
|
16980
17013
|
}
|
|
16981
17014
|
|
|
16982
|
-
// bazel-out/
|
|
17015
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/message_bundle.mjs
|
|
16983
17016
|
var MessageBundle = class {
|
|
16984
17017
|
constructor(_htmlParser, _implicitTags, _implicitAttrs, _locale = null) {
|
|
16985
17018
|
this._htmlParser = _htmlParser;
|
|
@@ -17046,7 +17079,7 @@ var MapPlaceholderNames = class extends CloneVisitor {
|
|
|
17046
17079
|
}
|
|
17047
17080
|
};
|
|
17048
17081
|
|
|
17049
|
-
// bazel-out/
|
|
17082
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/partial/api.mjs
|
|
17050
17083
|
var FactoryTarget2;
|
|
17051
17084
|
(function(FactoryTarget3) {
|
|
17052
17085
|
FactoryTarget3[FactoryTarget3["Directive"] = 0] = "Directive";
|
|
@@ -17056,7 +17089,7 @@ var FactoryTarget2;
|
|
|
17056
17089
|
FactoryTarget3[FactoryTarget3["NgModule"] = 4] = "NgModule";
|
|
17057
17090
|
})(FactoryTarget2 || (FactoryTarget2 = {}));
|
|
17058
17091
|
|
|
17059
|
-
// bazel-out/
|
|
17092
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/t2_binder.mjs
|
|
17060
17093
|
var R3TargetBinder = class {
|
|
17061
17094
|
constructor(directiveMatcher) {
|
|
17062
17095
|
this.directiveMatcher = directiveMatcher;
|
|
@@ -17408,7 +17441,7 @@ function extractTemplateEntities(rootScope) {
|
|
|
17408
17441
|
return templateEntities;
|
|
17409
17442
|
}
|
|
17410
17443
|
|
|
17411
|
-
// bazel-out/
|
|
17444
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_class_metadata_compiler.mjs
|
|
17412
17445
|
function compileClassMetadata(metadata) {
|
|
17413
17446
|
var _a, _b;
|
|
17414
17447
|
const fnCall = importExpr(Identifiers.setClassMetadata).callFn([
|
|
@@ -17421,12 +17454,12 @@ function compileClassMetadata(metadata) {
|
|
|
17421
17454
|
return iife.callFn([]);
|
|
17422
17455
|
}
|
|
17423
17456
|
|
|
17424
|
-
// bazel-out/
|
|
17457
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/partial/class_metadata.mjs
|
|
17425
17458
|
var MINIMUM_PARTIAL_LINKER_VERSION = "12.0.0";
|
|
17426
17459
|
function compileDeclareClassMetadata(metadata) {
|
|
17427
17460
|
const definitionMap = new DefinitionMap();
|
|
17428
17461
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
17429
|
-
definitionMap.set("version", literal("16.0.0-next.
|
|
17462
|
+
definitionMap.set("version", literal("16.0.0-next.3"));
|
|
17430
17463
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
17431
17464
|
definitionMap.set("type", metadata.type);
|
|
17432
17465
|
definitionMap.set("decorators", metadata.decorators);
|
|
@@ -17435,7 +17468,7 @@ function compileDeclareClassMetadata(metadata) {
|
|
|
17435
17468
|
return importExpr(Identifiers.declareClassMetadata).callFn([definitionMap.toLiteralMap()]);
|
|
17436
17469
|
}
|
|
17437
17470
|
|
|
17438
|
-
// bazel-out/
|
|
17471
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/partial/util.mjs
|
|
17439
17472
|
function toOptionalLiteralArray(values, mapper) {
|
|
17440
17473
|
if (values === null || values.length === 0) {
|
|
17441
17474
|
return null;
|
|
@@ -17483,7 +17516,7 @@ function compileDependency(dep) {
|
|
|
17483
17516
|
return depMeta.toLiteralMap();
|
|
17484
17517
|
}
|
|
17485
17518
|
|
|
17486
|
-
// bazel-out/
|
|
17519
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/partial/directive.mjs
|
|
17487
17520
|
var MINIMUM_PARTIAL_LINKER_VERSION2 = "14.0.0";
|
|
17488
17521
|
function compileDeclareDirectiveFromMetadata(meta) {
|
|
17489
17522
|
const definitionMap = createDirectiveDefinitionMap(meta);
|
|
@@ -17495,7 +17528,7 @@ function createDirectiveDefinitionMap(meta) {
|
|
|
17495
17528
|
var _a;
|
|
17496
17529
|
const definitionMap = new DefinitionMap();
|
|
17497
17530
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION2));
|
|
17498
|
-
definitionMap.set("version", literal("16.0.0-next.
|
|
17531
|
+
definitionMap.set("version", literal("16.0.0-next.3"));
|
|
17499
17532
|
definitionMap.set("type", meta.internalType);
|
|
17500
17533
|
if (meta.isStandalone) {
|
|
17501
17534
|
definitionMap.set("isStandalone", literal(meta.isStandalone));
|
|
@@ -17503,8 +17536,8 @@ function createDirectiveDefinitionMap(meta) {
|
|
|
17503
17536
|
if (meta.selector !== null) {
|
|
17504
17537
|
definitionMap.set("selector", literal(meta.selector));
|
|
17505
17538
|
}
|
|
17506
|
-
definitionMap.set("inputs",
|
|
17507
|
-
definitionMap.set("outputs",
|
|
17539
|
+
definitionMap.set("inputs", conditionallyCreateDirectiveBindingLiteral(meta.inputs, true));
|
|
17540
|
+
definitionMap.set("outputs", conditionallyCreateDirectiveBindingLiteral(meta.outputs));
|
|
17508
17541
|
definitionMap.set("host", compileHostMetadata(meta.host));
|
|
17509
17542
|
definitionMap.set("providers", meta.providers);
|
|
17510
17543
|
if (meta.queries.length > 0) {
|
|
@@ -17585,7 +17618,7 @@ function createHostDirectives(hostDirectives) {
|
|
|
17585
17618
|
return literalArr(expressions);
|
|
17586
17619
|
}
|
|
17587
17620
|
|
|
17588
|
-
// bazel-out/
|
|
17621
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/partial/component.mjs
|
|
17589
17622
|
function compileDeclareComponentFromMetadata(meta, template, additionalTemplateInfo) {
|
|
17590
17623
|
const definitionMap = createComponentDefinitionMap(meta, template, additionalTemplateInfo);
|
|
17591
17624
|
const expression = importExpr(Identifiers.declareComponent).callFn([definitionMap.toLiteralMap()]);
|
|
@@ -17672,12 +17705,12 @@ function compileUsedDependenciesMetadata(meta) {
|
|
|
17672
17705
|
});
|
|
17673
17706
|
}
|
|
17674
17707
|
|
|
17675
|
-
// bazel-out/
|
|
17708
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/partial/factory.mjs
|
|
17676
17709
|
var MINIMUM_PARTIAL_LINKER_VERSION3 = "12.0.0";
|
|
17677
17710
|
function compileDeclareFactoryFunction(meta) {
|
|
17678
17711
|
const definitionMap = new DefinitionMap();
|
|
17679
17712
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION3));
|
|
17680
|
-
definitionMap.set("version", literal("16.0.0-next.
|
|
17713
|
+
definitionMap.set("version", literal("16.0.0-next.3"));
|
|
17681
17714
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
17682
17715
|
definitionMap.set("type", meta.internalType);
|
|
17683
17716
|
definitionMap.set("deps", compileDependencies(meta.deps));
|
|
@@ -17689,7 +17722,7 @@ function compileDeclareFactoryFunction(meta) {
|
|
|
17689
17722
|
};
|
|
17690
17723
|
}
|
|
17691
17724
|
|
|
17692
|
-
// bazel-out/
|
|
17725
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/partial/injectable.mjs
|
|
17693
17726
|
var MINIMUM_PARTIAL_LINKER_VERSION4 = "12.0.0";
|
|
17694
17727
|
function compileDeclareInjectableFromMetadata(meta) {
|
|
17695
17728
|
const definitionMap = createInjectableDefinitionMap(meta);
|
|
@@ -17700,7 +17733,7 @@ function compileDeclareInjectableFromMetadata(meta) {
|
|
|
17700
17733
|
function createInjectableDefinitionMap(meta) {
|
|
17701
17734
|
const definitionMap = new DefinitionMap();
|
|
17702
17735
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION4));
|
|
17703
|
-
definitionMap.set("version", literal("16.0.0-next.
|
|
17736
|
+
definitionMap.set("version", literal("16.0.0-next.3"));
|
|
17704
17737
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
17705
17738
|
definitionMap.set("type", meta.internalType);
|
|
17706
17739
|
if (meta.providedIn !== void 0) {
|
|
@@ -17727,7 +17760,7 @@ function createInjectableDefinitionMap(meta) {
|
|
|
17727
17760
|
return definitionMap;
|
|
17728
17761
|
}
|
|
17729
17762
|
|
|
17730
|
-
// bazel-out/
|
|
17763
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/partial/injector.mjs
|
|
17731
17764
|
var MINIMUM_PARTIAL_LINKER_VERSION5 = "12.0.0";
|
|
17732
17765
|
function compileDeclareInjectorFromMetadata(meta) {
|
|
17733
17766
|
const definitionMap = createInjectorDefinitionMap(meta);
|
|
@@ -17738,7 +17771,7 @@ function compileDeclareInjectorFromMetadata(meta) {
|
|
|
17738
17771
|
function createInjectorDefinitionMap(meta) {
|
|
17739
17772
|
const definitionMap = new DefinitionMap();
|
|
17740
17773
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION5));
|
|
17741
|
-
definitionMap.set("version", literal("16.0.0-next.
|
|
17774
|
+
definitionMap.set("version", literal("16.0.0-next.3"));
|
|
17742
17775
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
17743
17776
|
definitionMap.set("type", meta.internalType);
|
|
17744
17777
|
definitionMap.set("providers", meta.providers);
|
|
@@ -17748,7 +17781,7 @@ function createInjectorDefinitionMap(meta) {
|
|
|
17748
17781
|
return definitionMap;
|
|
17749
17782
|
}
|
|
17750
17783
|
|
|
17751
|
-
// bazel-out/
|
|
17784
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/partial/ng_module.mjs
|
|
17752
17785
|
var MINIMUM_PARTIAL_LINKER_VERSION6 = "14.0.0";
|
|
17753
17786
|
function compileDeclareNgModuleFromMetadata(meta) {
|
|
17754
17787
|
const definitionMap = createNgModuleDefinitionMap(meta);
|
|
@@ -17759,7 +17792,7 @@ function compileDeclareNgModuleFromMetadata(meta) {
|
|
|
17759
17792
|
function createNgModuleDefinitionMap(meta) {
|
|
17760
17793
|
const definitionMap = new DefinitionMap();
|
|
17761
17794
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION6));
|
|
17762
|
-
definitionMap.set("version", literal("16.0.0-next.
|
|
17795
|
+
definitionMap.set("version", literal("16.0.0-next.3"));
|
|
17763
17796
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
17764
17797
|
definitionMap.set("type", meta.internalType);
|
|
17765
17798
|
if (meta.bootstrap.length > 0) {
|
|
@@ -17783,7 +17816,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
17783
17816
|
return definitionMap;
|
|
17784
17817
|
}
|
|
17785
17818
|
|
|
17786
|
-
// bazel-out/
|
|
17819
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/partial/pipe.mjs
|
|
17787
17820
|
var MINIMUM_PARTIAL_LINKER_VERSION7 = "14.0.0";
|
|
17788
17821
|
function compileDeclarePipeFromMetadata(meta) {
|
|
17789
17822
|
const definitionMap = createPipeDefinitionMap(meta);
|
|
@@ -17794,7 +17827,7 @@ function compileDeclarePipeFromMetadata(meta) {
|
|
|
17794
17827
|
function createPipeDefinitionMap(meta) {
|
|
17795
17828
|
const definitionMap = new DefinitionMap();
|
|
17796
17829
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION7));
|
|
17797
|
-
definitionMap.set("version", literal("16.0.0-next.
|
|
17830
|
+
definitionMap.set("version", literal("16.0.0-next.3"));
|
|
17798
17831
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
17799
17832
|
definitionMap.set("type", meta.internalType);
|
|
17800
17833
|
if (meta.isStandalone) {
|
|
@@ -17807,13 +17840,13 @@ function createPipeDefinitionMap(meta) {
|
|
|
17807
17840
|
return definitionMap;
|
|
17808
17841
|
}
|
|
17809
17842
|
|
|
17810
|
-
// bazel-out/
|
|
17843
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/compiler.mjs
|
|
17811
17844
|
publishFacade(_global);
|
|
17812
17845
|
|
|
17813
|
-
// bazel-out/
|
|
17814
|
-
var VERSION3 = new Version("16.0.0-next.
|
|
17846
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/version.mjs
|
|
17847
|
+
var VERSION3 = new Version("16.0.0-next.3");
|
|
17815
17848
|
|
|
17816
|
-
// bazel-out/
|
|
17849
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
|
|
17817
17850
|
var EmitFlags;
|
|
17818
17851
|
(function(EmitFlags2) {
|
|
17819
17852
|
EmitFlags2[EmitFlags2["DTS"] = 1] = "DTS";
|
|
@@ -17825,13 +17858,13 @@ var EmitFlags;
|
|
|
17825
17858
|
EmitFlags2[EmitFlags2["All"] = 31] = "All";
|
|
17826
17859
|
})(EmitFlags || (EmitFlags = {}));
|
|
17827
17860
|
|
|
17828
|
-
// bazel-out/
|
|
17861
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/compiler_host.mjs
|
|
17829
17862
|
var import_typescript2 = __toESM(require("typescript"), 1);
|
|
17830
17863
|
|
|
17831
|
-
// bazel-out/
|
|
17864
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
17832
17865
|
var import_typescript94 = __toESM(require("typescript"), 1);
|
|
17833
17866
|
|
|
17834
|
-
// bazel-out/
|
|
17867
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
|
|
17835
17868
|
var path = __toESM(require("path"), 1);
|
|
17836
17869
|
function i18nGetExtension(formatName) {
|
|
17837
17870
|
const format = formatName.toLowerCase();
|
|
@@ -17881,10 +17914,10 @@ function getPathNormalizer(basePath) {
|
|
|
17881
17914
|
};
|
|
17882
17915
|
}
|
|
17883
17916
|
|
|
17884
|
-
// bazel-out/
|
|
17917
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
17885
17918
|
var import_typescript3 = __toESM(require("typescript"), 1);
|
|
17886
17919
|
|
|
17887
|
-
// bazel-out/
|
|
17920
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/version_helpers.mjs
|
|
17888
17921
|
function toNumbers(value) {
|
|
17889
17922
|
const suffixIndex = value.lastIndexOf("-");
|
|
17890
17923
|
return value.slice(0, suffixIndex === -1 ? value.length : suffixIndex).split(".").map((segment) => {
|
|
@@ -17919,7 +17952,7 @@ function compareVersions(v1, v2) {
|
|
|
17919
17952
|
return compareNumbers(toNumbers(v1), toNumbers(v2));
|
|
17920
17953
|
}
|
|
17921
17954
|
|
|
17922
|
-
// bazel-out/
|
|
17955
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
17923
17956
|
var MIN_TS_VERSION = "4.9.3";
|
|
17924
17957
|
var MAX_TS_VERSION = "5.1.0";
|
|
17925
17958
|
var tsVersion = import_typescript3.default.version;
|
|
@@ -17932,13 +17965,13 @@ function verifySupportedTypeScriptVersion() {
|
|
|
17932
17965
|
checkVersion(tsVersion, MIN_TS_VERSION, MAX_TS_VERSION);
|
|
17933
17966
|
}
|
|
17934
17967
|
|
|
17935
|
-
// bazel-out/
|
|
17968
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
17936
17969
|
var import_typescript90 = __toESM(require("typescript"), 1);
|
|
17937
17970
|
|
|
17938
|
-
// bazel-out/
|
|
17971
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
|
|
17939
17972
|
var import_typescript19 = __toESM(require("typescript"), 1);
|
|
17940
17973
|
|
|
17941
|
-
// bazel-out/
|
|
17974
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_code.mjs
|
|
17942
17975
|
var ErrorCode;
|
|
17943
17976
|
(function(ErrorCode2) {
|
|
17944
17977
|
ErrorCode2[ErrorCode2["DECORATOR_ARG_NOT_LITERAL"] = 1001] = "DECORATOR_ARG_NOT_LITERAL";
|
|
@@ -18008,7 +18041,7 @@ var ErrorCode;
|
|
|
18008
18041
|
ErrorCode2[ErrorCode2["SUGGEST_SUBOPTIMAL_TYPE_INFERENCE"] = 10002] = "SUGGEST_SUBOPTIMAL_TYPE_INFERENCE";
|
|
18009
18042
|
})(ErrorCode || (ErrorCode = {}));
|
|
18010
18043
|
|
|
18011
|
-
// bazel-out/
|
|
18044
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/docs.mjs
|
|
18012
18045
|
var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
|
|
18013
18046
|
ErrorCode.DECORATOR_ARG_NOT_LITERAL,
|
|
18014
18047
|
ErrorCode.IMPORT_CYCLE_DETECTED,
|
|
@@ -18020,15 +18053,15 @@ var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
|
|
|
18020
18053
|
ErrorCode.WARN_NGMODULE_ID_UNNECESSARY
|
|
18021
18054
|
]);
|
|
18022
18055
|
|
|
18023
|
-
// bazel-out/
|
|
18056
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
|
|
18024
18057
|
var import_typescript4 = __toESM(require("typescript"), 1);
|
|
18025
18058
|
|
|
18026
|
-
// bazel-out/
|
|
18059
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/util.mjs
|
|
18027
18060
|
function ngErrorCode(code) {
|
|
18028
18061
|
return parseInt("-99" + code);
|
|
18029
18062
|
}
|
|
18030
18063
|
|
|
18031
|
-
// bazel-out/
|
|
18064
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
|
|
18032
18065
|
var FatalDiagnosticError = class {
|
|
18033
18066
|
constructor(code, node, message, relatedInformation) {
|
|
18034
18067
|
this.code = code;
|
|
@@ -18084,10 +18117,10 @@ function addDiagnosticChain(messageText, add) {
|
|
|
18084
18117
|
return messageText;
|
|
18085
18118
|
}
|
|
18086
18119
|
|
|
18087
|
-
// bazel-out/
|
|
18120
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.mjs
|
|
18088
18121
|
var ERROR_DETAILS_PAGE_BASE_URL = "https://angular.io/errors";
|
|
18089
18122
|
|
|
18090
|
-
// bazel-out/
|
|
18123
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.mjs
|
|
18091
18124
|
var ExtendedTemplateDiagnosticName;
|
|
18092
18125
|
(function(ExtendedTemplateDiagnosticName2) {
|
|
18093
18126
|
ExtendedTemplateDiagnosticName2["INVALID_BANANA_IN_BOX"] = "invalidBananaInBox";
|
|
@@ -18099,7 +18132,7 @@ var ExtendedTemplateDiagnosticName;
|
|
|
18099
18132
|
ExtendedTemplateDiagnosticName2["SUFFIX_NOT_SUPPORTED"] = "suffixNotSupported";
|
|
18100
18133
|
})(ExtendedTemplateDiagnosticName || (ExtendedTemplateDiagnosticName = {}));
|
|
18101
18134
|
|
|
18102
|
-
// bazel-out/
|
|
18135
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/host.mjs
|
|
18103
18136
|
var import_typescript5 = __toESM(require("typescript"), 1);
|
|
18104
18137
|
var Decorator = {
|
|
18105
18138
|
nodeForError: (decorator) => {
|
|
@@ -18134,7 +18167,7 @@ function isConcreteDeclaration(decl) {
|
|
|
18134
18167
|
return decl.kind === 0;
|
|
18135
18168
|
}
|
|
18136
18169
|
|
|
18137
|
-
// bazel-out/
|
|
18170
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/type_to_value.mjs
|
|
18138
18171
|
var import_typescript6 = __toESM(require("typescript"), 1);
|
|
18139
18172
|
function typeToValue(typeNode, checker) {
|
|
18140
18173
|
if (typeNode === null) {
|
|
@@ -18300,10 +18333,10 @@ function extractModuleName(node) {
|
|
|
18300
18333
|
return node.moduleSpecifier.text;
|
|
18301
18334
|
}
|
|
18302
18335
|
|
|
18303
|
-
// bazel-out/
|
|
18336
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
|
|
18304
18337
|
var import_typescript8 = __toESM(require("typescript"), 1);
|
|
18305
18338
|
|
|
18306
|
-
// bazel-out/
|
|
18339
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/util.mjs
|
|
18307
18340
|
var import_typescript7 = __toESM(require("typescript"), 1);
|
|
18308
18341
|
function isNamedClassDeclaration(node) {
|
|
18309
18342
|
return import_typescript7.default.isClassDeclaration(node) && isIdentifier(node.name);
|
|
@@ -18312,7 +18345,7 @@ function isIdentifier(node) {
|
|
|
18312
18345
|
return node !== void 0 && import_typescript7.default.isIdentifier(node);
|
|
18313
18346
|
}
|
|
18314
18347
|
|
|
18315
|
-
// bazel-out/
|
|
18348
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
|
|
18316
18349
|
var TypeScriptReflectionHost = class {
|
|
18317
18350
|
constructor(checker) {
|
|
18318
18351
|
this.checker = checker;
|
|
@@ -18748,13 +18781,13 @@ function getExportedName(decl, originalId) {
|
|
|
18748
18781
|
}
|
|
18749
18782
|
var LocalExportedDeclarations = Symbol("LocalExportedDeclarations");
|
|
18750
18783
|
|
|
18751
|
-
// bazel-out/
|
|
18784
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
|
|
18752
18785
|
var import_typescript18 = __toESM(require("typescript"), 1);
|
|
18753
18786
|
|
|
18754
|
-
// bazel-out/
|
|
18787
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
|
|
18755
18788
|
var import_typescript12 = __toESM(require("typescript"), 1);
|
|
18756
18789
|
|
|
18757
|
-
// bazel-out/
|
|
18790
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/typescript.mjs
|
|
18758
18791
|
var import_typescript10 = __toESM(require("typescript"), 1);
|
|
18759
18792
|
var TS = /\.tsx?$/i;
|
|
18760
18793
|
var D_TS = /\.d\.ts$/i;
|
|
@@ -18855,7 +18888,7 @@ function toUnredirectedSourceFile(sf) {
|
|
|
18855
18888
|
return redirectInfo.unredirected;
|
|
18856
18889
|
}
|
|
18857
18890
|
|
|
18858
|
-
// bazel-out/
|
|
18891
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/find_export.mjs
|
|
18859
18892
|
function findExportedNameOfNode(target, file, reflector) {
|
|
18860
18893
|
const exports = reflector.getExportsOfModule(file);
|
|
18861
18894
|
if (exports === null) {
|
|
@@ -18875,7 +18908,7 @@ function findExportedNameOfNode(target, file, reflector) {
|
|
|
18875
18908
|
return foundExportName;
|
|
18876
18909
|
}
|
|
18877
18910
|
|
|
18878
|
-
// bazel-out/
|
|
18911
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
|
|
18879
18912
|
var ImportFlags;
|
|
18880
18913
|
(function(ImportFlags2) {
|
|
18881
18914
|
ImportFlags2[ImportFlags2["None"] = 0] = "None";
|
|
@@ -19091,7 +19124,7 @@ var UnifiedModulesStrategy = class {
|
|
|
19091
19124
|
}
|
|
19092
19125
|
};
|
|
19093
19126
|
|
|
19094
|
-
// bazel-out/
|
|
19127
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
|
|
19095
19128
|
var CHARS_TO_ESCAPE = /[^a-zA-Z0-9/_]/g;
|
|
19096
19129
|
var UnifiedModulesAliasingHost = class {
|
|
19097
19130
|
constructor(unifiedModulesHost) {
|
|
@@ -19158,7 +19191,7 @@ var AliasStrategy = class {
|
|
|
19158
19191
|
}
|
|
19159
19192
|
};
|
|
19160
19193
|
|
|
19161
|
-
// bazel-out/
|
|
19194
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/path.mjs
|
|
19162
19195
|
function relativePathBetween(from, to) {
|
|
19163
19196
|
const relativePath = stripExtension(relative(dirname(resolve(from)), resolve(to)));
|
|
19164
19197
|
return relativePath !== "" ? toRelativeImport(relativePath) : null;
|
|
@@ -19167,7 +19200,7 @@ function normalizeSeparators2(path3) {
|
|
|
19167
19200
|
return path3.replace(/\\/g, "/");
|
|
19168
19201
|
}
|
|
19169
19202
|
|
|
19170
|
-
// bazel-out/
|
|
19203
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/core.mjs
|
|
19171
19204
|
var NoopImportRewriter = class {
|
|
19172
19205
|
shouldImportSymbol(symbol, specifier) {
|
|
19173
19206
|
return true;
|
|
@@ -19225,7 +19258,7 @@ function validateAndRewriteCoreSymbol(name) {
|
|
|
19225
19258
|
return CORE_SUPPORTED_SYMBOLS.get(name);
|
|
19226
19259
|
}
|
|
19227
19260
|
|
|
19228
|
-
// bazel-out/
|
|
19261
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/patch_alias_reference_resolution.mjs
|
|
19229
19262
|
var import_typescript14 = __toESM(require("typescript"), 1);
|
|
19230
19263
|
var patchedReferencedAliasesSymbol = Symbol("patchedReferencedAliases");
|
|
19231
19264
|
function loadIsReferencedAliasDeclarationPatch(context) {
|
|
@@ -19260,7 +19293,7 @@ function throwIncompatibleTransformationContextError() {
|
|
|
19260
19293
|
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
19294
|
}
|
|
19262
19295
|
|
|
19263
|
-
// bazel-out/
|
|
19296
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/default.mjs
|
|
19264
19297
|
var DefaultImportDeclaration = Symbol("DefaultImportDeclaration");
|
|
19265
19298
|
function attachDefaultImportDeclaration(expr, importDecl) {
|
|
19266
19299
|
expr[DefaultImportDeclaration] = importDecl;
|
|
@@ -19301,7 +19334,7 @@ var DefaultImportTracker = class {
|
|
|
19301
19334
|
}
|
|
19302
19335
|
};
|
|
19303
19336
|
|
|
19304
|
-
// bazel-out/
|
|
19337
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/references.mjs
|
|
19305
19338
|
var Reference2 = class {
|
|
19306
19339
|
constructor(node, bestGuessOwningModule = null) {
|
|
19307
19340
|
this.node = node;
|
|
@@ -19364,7 +19397,7 @@ var Reference2 = class {
|
|
|
19364
19397
|
}
|
|
19365
19398
|
};
|
|
19366
19399
|
|
|
19367
|
-
// bazel-out/
|
|
19400
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/resolver.mjs
|
|
19368
19401
|
var ModuleResolver = class {
|
|
19369
19402
|
constructor(program, compilerOptions, host, moduleResolutionCache) {
|
|
19370
19403
|
this.program = program;
|
|
@@ -19381,7 +19414,7 @@ var ModuleResolver = class {
|
|
|
19381
19414
|
}
|
|
19382
19415
|
};
|
|
19383
19416
|
|
|
19384
|
-
// bazel-out/
|
|
19417
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
|
|
19385
19418
|
function valueReferenceToExpression(valueRef) {
|
|
19386
19419
|
if (valueRef.kind === 2) {
|
|
19387
19420
|
return null;
|
|
@@ -19618,7 +19651,7 @@ function isAbstractClassDeclaration(clazz) {
|
|
|
19618
19651
|
return import_typescript18.default.canHaveModifiers(clazz) && clazz.modifiers !== void 0 ? clazz.modifiers.some((mod) => mod.kind === import_typescript18.default.SyntaxKind.AbstractKeyword) : false;
|
|
19619
19652
|
}
|
|
19620
19653
|
|
|
19621
|
-
// bazel-out/
|
|
19654
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
|
|
19622
19655
|
function getConstructorDependencies(clazz, reflector, isCore) {
|
|
19623
19656
|
const deps = [];
|
|
19624
19657
|
const errors = [];
|
|
@@ -19760,10 +19793,10 @@ function createUnsuitableInjectionTokenError(clazz, error2) {
|
|
|
19760
19793
|
return new FatalDiagnosticError(ErrorCode.PARAM_MISSING_TOKEN, param.nameNode, chain, hints);
|
|
19761
19794
|
}
|
|
19762
19795
|
|
|
19763
|
-
// bazel-out/
|
|
19796
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
|
|
19764
19797
|
var import_typescript27 = __toESM(require("typescript"), 1);
|
|
19765
19798
|
|
|
19766
|
-
// bazel-out/
|
|
19799
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/api.mjs
|
|
19767
19800
|
var MetaKind;
|
|
19768
19801
|
(function(MetaKind2) {
|
|
19769
19802
|
MetaKind2[MetaKind2["Directive"] = 0] = "Directive";
|
|
@@ -19776,10 +19809,10 @@ var MatchSource;
|
|
|
19776
19809
|
MatchSource2[MatchSource2["HostDirective"] = 1] = "HostDirective";
|
|
19777
19810
|
})(MatchSource || (MatchSource = {}));
|
|
19778
19811
|
|
|
19779
|
-
// bazel-out/
|
|
19812
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
19780
19813
|
var import_typescript22 = __toESM(require("typescript"), 1);
|
|
19781
19814
|
|
|
19782
|
-
// bazel-out/
|
|
19815
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/property_mapping.mjs
|
|
19783
19816
|
var ClassPropertyMapping = class {
|
|
19784
19817
|
constructor(forwardMap) {
|
|
19785
19818
|
this.forwardMap = forwardMap;
|
|
@@ -19792,8 +19825,14 @@ var ClassPropertyMapping = class {
|
|
|
19792
19825
|
const forwardMap = /* @__PURE__ */ new Map();
|
|
19793
19826
|
for (const classPropertyName of Object.keys(obj)) {
|
|
19794
19827
|
const value = obj[classPropertyName];
|
|
19795
|
-
|
|
19796
|
-
|
|
19828
|
+
let inputOrOutput;
|
|
19829
|
+
if (typeof value === "string") {
|
|
19830
|
+
inputOrOutput = { classPropertyName, bindingPropertyName: value };
|
|
19831
|
+
} else if (Array.isArray(value)) {
|
|
19832
|
+
inputOrOutput = { classPropertyName, bindingPropertyName: value[0] };
|
|
19833
|
+
} else {
|
|
19834
|
+
inputOrOutput = value;
|
|
19835
|
+
}
|
|
19797
19836
|
forwardMap.set(classPropertyName, inputOrOutput);
|
|
19798
19837
|
}
|
|
19799
19838
|
return new ClassPropertyMapping(forwardMap);
|
|
@@ -19830,17 +19869,13 @@ var ClassPropertyMapping = class {
|
|
|
19830
19869
|
toJointMappedObject() {
|
|
19831
19870
|
const obj = {};
|
|
19832
19871
|
for (const [classPropertyName, inputOrOutput] of this.forwardMap) {
|
|
19833
|
-
|
|
19834
|
-
obj[classPropertyName] = inputOrOutput.bindingPropertyName;
|
|
19835
|
-
} else {
|
|
19836
|
-
obj[classPropertyName] = [inputOrOutput.bindingPropertyName, classPropertyName];
|
|
19837
|
-
}
|
|
19872
|
+
obj[classPropertyName] = inputOrOutput;
|
|
19838
19873
|
}
|
|
19839
19874
|
return obj;
|
|
19840
19875
|
}
|
|
19841
19876
|
*[Symbol.iterator]() {
|
|
19842
|
-
for (const
|
|
19843
|
-
yield
|
|
19877
|
+
for (const inputOrOutput of this.forwardMap.values()) {
|
|
19878
|
+
yield inputOrOutput;
|
|
19844
19879
|
}
|
|
19845
19880
|
}
|
|
19846
19881
|
};
|
|
@@ -19855,7 +19890,7 @@ function reverseMapFromForwardMap(forwardMap) {
|
|
|
19855
19890
|
return reverseMap;
|
|
19856
19891
|
}
|
|
19857
19892
|
|
|
19858
|
-
// bazel-out/
|
|
19893
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/util.mjs
|
|
19859
19894
|
var import_typescript20 = __toESM(require("typescript"), 1);
|
|
19860
19895
|
function extractReferencesFromType(checker, def, bestGuessOwningModule) {
|
|
19861
19896
|
if (!import_typescript20.default.isTupleTypeNode(def)) {
|
|
@@ -20037,7 +20072,7 @@ function hasInjectableFields(clazz, host) {
|
|
|
20037
20072
|
return members.some(({ isStatic, name }) => isStatic && (name === "\u0275prov" || name === "\u0275fac"));
|
|
20038
20073
|
}
|
|
20039
20074
|
|
|
20040
|
-
// bazel-out/
|
|
20075
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
20041
20076
|
var DtsMetadataReader = class {
|
|
20042
20077
|
constructor(checker, reflector) {
|
|
20043
20078
|
this.checker = checker;
|
|
@@ -20080,7 +20115,7 @@ var DtsMetadataReader = class {
|
|
|
20080
20115
|
return param.typeValueReference.kind === 1 && param.typeValueReference.moduleName === "@angular/core" && param.typeValueReference.importedName === "TemplateRef";
|
|
20081
20116
|
});
|
|
20082
20117
|
const isStandalone = def.type.typeArguments.length > 7 && ((_a = readBooleanType(def.type.typeArguments[7])) != null ? _a : false);
|
|
20083
|
-
const inputs = ClassPropertyMapping.fromMappedObject(
|
|
20118
|
+
const inputs = ClassPropertyMapping.fromMappedObject(readInputsType(def.type.typeArguments[3]));
|
|
20084
20119
|
const outputs = ClassPropertyMapping.fromMappedObject(readMapType(def.type.typeArguments[4], readStringType));
|
|
20085
20120
|
const hostDirectives = def.type.typeArguments.length > 8 ? readHostDirectivesType(this.checker, def.type.typeArguments[8], ref.bestGuessOwningModule) : null;
|
|
20086
20121
|
return __spreadProps(__spreadValues({
|
|
@@ -20130,6 +20165,25 @@ var DtsMetadataReader = class {
|
|
|
20130
20165
|
};
|
|
20131
20166
|
}
|
|
20132
20167
|
};
|
|
20168
|
+
function readInputsType(type) {
|
|
20169
|
+
const inputsMap = {};
|
|
20170
|
+
if (import_typescript22.default.isTypeLiteralNode(type)) {
|
|
20171
|
+
for (const member of type.members) {
|
|
20172
|
+
if (!import_typescript22.default.isPropertySignature(member) || member.type === void 0 || member.name === void 0 || !import_typescript22.default.isStringLiteral(member.name) && !import_typescript22.default.isIdentifier(member.name)) {
|
|
20173
|
+
continue;
|
|
20174
|
+
}
|
|
20175
|
+
const stringValue = readStringType(member.type);
|
|
20176
|
+
if (stringValue != null) {
|
|
20177
|
+
inputsMap[member.name.text] = {
|
|
20178
|
+
bindingPropertyName: stringValue,
|
|
20179
|
+
classPropertyName: member.name.text,
|
|
20180
|
+
required: false
|
|
20181
|
+
};
|
|
20182
|
+
}
|
|
20183
|
+
}
|
|
20184
|
+
}
|
|
20185
|
+
return inputsMap;
|
|
20186
|
+
}
|
|
20133
20187
|
function readBaseClass2(clazz, checker, reflector) {
|
|
20134
20188
|
if (!isNamedClassDeclaration(clazz)) {
|
|
20135
20189
|
return reflector.hasBaseClass(clazz) ? "dynamic" : null;
|
|
@@ -20176,7 +20230,7 @@ function readHostDirectivesType(checker, type, bestGuessOwningModule) {
|
|
|
20176
20230
|
return result.length > 0 ? result : null;
|
|
20177
20231
|
}
|
|
20178
20232
|
|
|
20179
|
-
// bazel-out/
|
|
20233
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/inheritance.mjs
|
|
20180
20234
|
function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
20181
20235
|
const topMeta = reader.getDirectiveMetadata(dir);
|
|
20182
20236
|
if (topMeta === null) {
|
|
@@ -20233,7 +20287,7 @@ function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
|
20233
20287
|
});
|
|
20234
20288
|
}
|
|
20235
20289
|
|
|
20236
|
-
// bazel-out/
|
|
20290
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/registry.mjs
|
|
20237
20291
|
var LocalMetadataRegistry = class {
|
|
20238
20292
|
constructor() {
|
|
20239
20293
|
this.directives = /* @__PURE__ */ new Map();
|
|
@@ -20290,7 +20344,7 @@ var CompoundMetadataRegistry = class {
|
|
|
20290
20344
|
}
|
|
20291
20345
|
};
|
|
20292
20346
|
|
|
20293
|
-
// bazel-out/
|
|
20347
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/resource_registry.mjs
|
|
20294
20348
|
var ResourceRegistry = class {
|
|
20295
20349
|
constructor() {
|
|
20296
20350
|
this.externalTemplateToComponentsMap = /* @__PURE__ */ new Map();
|
|
@@ -20355,7 +20409,7 @@ var ResourceRegistry = class {
|
|
|
20355
20409
|
}
|
|
20356
20410
|
};
|
|
20357
20411
|
|
|
20358
|
-
// bazel-out/
|
|
20412
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/host_directives_resolver.mjs
|
|
20359
20413
|
var EMPTY_ARRAY = [];
|
|
20360
20414
|
var HostDirectivesResolver = class {
|
|
20361
20415
|
constructor(metaReader) {
|
|
@@ -20381,13 +20435,13 @@ var HostDirectivesResolver = class {
|
|
|
20381
20435
|
}
|
|
20382
20436
|
results.push(__spreadProps(__spreadValues({}, hostMeta), {
|
|
20383
20437
|
matchSource: MatchSource.HostDirective,
|
|
20384
|
-
inputs: this.filterMappings(hostMeta.inputs, current.inputs),
|
|
20385
|
-
outputs: this.filterMappings(hostMeta.outputs, current.outputs)
|
|
20438
|
+
inputs: ClassPropertyMapping.fromMappedObject(this.filterMappings(hostMeta.inputs, current.inputs, resolveInput)),
|
|
20439
|
+
outputs: ClassPropertyMapping.fromMappedObject(this.filterMappings(hostMeta.outputs, current.outputs, resolveOutput))
|
|
20386
20440
|
}));
|
|
20387
20441
|
}
|
|
20388
20442
|
return results;
|
|
20389
20443
|
}
|
|
20390
|
-
filterMappings(source, allowedProperties) {
|
|
20444
|
+
filterMappings(source, allowedProperties, valueResolver) {
|
|
20391
20445
|
const result = {};
|
|
20392
20446
|
if (allowedProperties !== null) {
|
|
20393
20447
|
for (const publicName in allowedProperties) {
|
|
@@ -20395,20 +20449,26 @@ var HostDirectivesResolver = class {
|
|
|
20395
20449
|
const bindings = source.getByBindingPropertyName(publicName);
|
|
20396
20450
|
if (bindings !== null) {
|
|
20397
20451
|
for (const binding of bindings) {
|
|
20398
|
-
result[binding.classPropertyName] = allowedProperties[publicName];
|
|
20452
|
+
result[binding.classPropertyName] = valueResolver(allowedProperties[publicName], binding.classPropertyName);
|
|
20399
20453
|
}
|
|
20400
20454
|
}
|
|
20401
20455
|
}
|
|
20402
20456
|
}
|
|
20403
20457
|
}
|
|
20404
|
-
return
|
|
20458
|
+
return result;
|
|
20405
20459
|
}
|
|
20406
20460
|
};
|
|
20461
|
+
function resolveInput(bindingName, classPropertyName) {
|
|
20462
|
+
return { bindingPropertyName: bindingName, classPropertyName, required: false };
|
|
20463
|
+
}
|
|
20464
|
+
function resolveOutput(bindingName) {
|
|
20465
|
+
return bindingName;
|
|
20466
|
+
}
|
|
20407
20467
|
|
|
20408
|
-
// bazel-out/
|
|
20468
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
|
|
20409
20469
|
var import_typescript24 = __toESM(require("typescript"), 1);
|
|
20410
20470
|
|
|
20411
|
-
// bazel-out/
|
|
20471
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/dynamic.mjs
|
|
20412
20472
|
var DynamicValue = class {
|
|
20413
20473
|
constructor(node, reason, code) {
|
|
20414
20474
|
this.node = node;
|
|
@@ -20498,7 +20558,7 @@ var DynamicValue = class {
|
|
|
20498
20558
|
}
|
|
20499
20559
|
};
|
|
20500
20560
|
|
|
20501
|
-
// bazel-out/
|
|
20561
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/result.mjs
|
|
20502
20562
|
var ResolvedModule = class {
|
|
20503
20563
|
constructor(exports, evaluate) {
|
|
20504
20564
|
this.exports = exports;
|
|
@@ -20528,7 +20588,7 @@ var EnumValue = class {
|
|
|
20528
20588
|
var KnownFn = class {
|
|
20529
20589
|
};
|
|
20530
20590
|
|
|
20531
|
-
// bazel-out/
|
|
20591
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
|
|
20532
20592
|
function describeResolvedType(value, maxDepth = 1) {
|
|
20533
20593
|
var _a, _b;
|
|
20534
20594
|
if (value === null) {
|
|
@@ -20657,10 +20717,10 @@ function getContainerNode(node) {
|
|
|
20657
20717
|
return node.getSourceFile();
|
|
20658
20718
|
}
|
|
20659
20719
|
|
|
20660
|
-
// bazel-out/
|
|
20720
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
20661
20721
|
var import_typescript25 = __toESM(require("typescript"), 1);
|
|
20662
20722
|
|
|
20663
|
-
// bazel-out/
|
|
20723
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/builtin.mjs
|
|
20664
20724
|
var ArraySliceBuiltinFn = class extends KnownFn {
|
|
20665
20725
|
constructor(lhs) {
|
|
20666
20726
|
super();
|
|
@@ -20731,7 +20791,7 @@ var ObjectAssignBuiltinFn = class extends KnownFn {
|
|
|
20731
20791
|
}
|
|
20732
20792
|
};
|
|
20733
20793
|
|
|
20734
|
-
// bazel-out/
|
|
20794
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/ts_helpers.mjs
|
|
20735
20795
|
var AssignHelperFn = class extends ObjectAssignBuiltinFn {
|
|
20736
20796
|
};
|
|
20737
20797
|
var SpreadHelperFn = class extends KnownFn {
|
|
@@ -20784,7 +20844,7 @@ var ReadHelperFn = class extends KnownFn {
|
|
|
20784
20844
|
}
|
|
20785
20845
|
};
|
|
20786
20846
|
|
|
20787
|
-
// bazel-out/
|
|
20847
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/known_declaration.mjs
|
|
20788
20848
|
var jsGlobalObjectValue = /* @__PURE__ */ new Map([["assign", new ObjectAssignBuiltinFn()]]);
|
|
20789
20849
|
var assignTsHelperFn = new AssignHelperFn();
|
|
20790
20850
|
var spreadTsHelperFn = new SpreadHelperFn();
|
|
@@ -20808,14 +20868,14 @@ function resolveKnownDeclaration(decl) {
|
|
|
20808
20868
|
}
|
|
20809
20869
|
}
|
|
20810
20870
|
|
|
20811
|
-
// bazel-out/
|
|
20871
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/synthetic.mjs
|
|
20812
20872
|
var SyntheticValue = class {
|
|
20813
20873
|
constructor(value) {
|
|
20814
20874
|
this.value = value;
|
|
20815
20875
|
}
|
|
20816
20876
|
};
|
|
20817
20877
|
|
|
20818
|
-
// bazel-out/
|
|
20878
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
20819
20879
|
function literalBinaryOp(op) {
|
|
20820
20880
|
return { op, literal: true };
|
|
20821
20881
|
}
|
|
@@ -21413,7 +21473,7 @@ function owningModule(context, override = null) {
|
|
|
21413
21473
|
}
|
|
21414
21474
|
}
|
|
21415
21475
|
|
|
21416
|
-
// bazel-out/
|
|
21476
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interface.mjs
|
|
21417
21477
|
var PartialEvaluator = class {
|
|
21418
21478
|
constructor(host, checker, dependencyTracker) {
|
|
21419
21479
|
this.host = host;
|
|
@@ -21433,7 +21493,7 @@ var PartialEvaluator = class {
|
|
|
21433
21493
|
}
|
|
21434
21494
|
};
|
|
21435
21495
|
|
|
21436
|
-
// bazel-out/
|
|
21496
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
|
|
21437
21497
|
function makeDuplicateDeclarationError(node, data, kind) {
|
|
21438
21498
|
const context = [];
|
|
21439
21499
|
for (const decl of data) {
|
|
@@ -21608,7 +21668,7 @@ function getInheritedUndecoratedCtorDiagnostic(node, baseClass, kind) {
|
|
|
21608
21668
|
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
21669
|
}
|
|
21610
21670
|
|
|
21611
|
-
// bazel-out/
|
|
21671
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/evaluation.mjs
|
|
21612
21672
|
var import_typescript29 = __toESM(require("typescript"), 1);
|
|
21613
21673
|
function resolveEnumValue(evaluator, metadata, field, enumSymbolName) {
|
|
21614
21674
|
let resolved = null;
|
|
@@ -21641,7 +21701,7 @@ function resolveLiteral(decorator, literalCache) {
|
|
|
21641
21701
|
return meta;
|
|
21642
21702
|
}
|
|
21643
21703
|
|
|
21644
|
-
// bazel-out/
|
|
21704
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/factory.mjs
|
|
21645
21705
|
function compileNgFactoryDefField(metadata) {
|
|
21646
21706
|
const res = compileFactoryFunction(metadata);
|
|
21647
21707
|
return { name: "\u0275fac", initializer: res.expression, statements: res.statements, type: res.type };
|
|
@@ -21651,7 +21711,7 @@ function compileDeclareFactory(metadata) {
|
|
|
21651
21711
|
return { name: "\u0275fac", initializer: res.expression, statements: res.statements, type: res.type };
|
|
21652
21712
|
}
|
|
21653
21713
|
|
|
21654
|
-
// bazel-out/
|
|
21714
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/injectable_registry.mjs
|
|
21655
21715
|
var InjectableClassRegistry = class {
|
|
21656
21716
|
constructor(host, isCore) {
|
|
21657
21717
|
this.host = host;
|
|
@@ -21677,7 +21737,7 @@ var InjectableClassRegistry = class {
|
|
|
21677
21737
|
}
|
|
21678
21738
|
};
|
|
21679
21739
|
|
|
21680
|
-
// bazel-out/
|
|
21740
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/metadata.mjs
|
|
21681
21741
|
var import_typescript30 = __toESM(require("typescript"), 1);
|
|
21682
21742
|
function extractClassMetadata(clazz, reflection, isCore, annotateForClosureCompiler, angularDecoratorTransform = (dec) => dec) {
|
|
21683
21743
|
if (!reflection.isClass(clazz)) {
|
|
@@ -21763,13 +21823,13 @@ function removeIdentifierReferences(node, name) {
|
|
|
21763
21823
|
return result.transformed[0];
|
|
21764
21824
|
}
|
|
21765
21825
|
|
|
21766
|
-
// bazel-out/
|
|
21826
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/references_registry.mjs
|
|
21767
21827
|
var NoopReferencesRegistry = class {
|
|
21768
21828
|
add(source, ...references) {
|
|
21769
21829
|
}
|
|
21770
21830
|
};
|
|
21771
21831
|
|
|
21772
|
-
// bazel-out/
|
|
21832
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/schema.mjs
|
|
21773
21833
|
function extractSchemas(rawExpr, evaluator, context) {
|
|
21774
21834
|
const schemas = [];
|
|
21775
21835
|
const result = evaluator.evaluate(rawExpr);
|
|
@@ -21798,10 +21858,10 @@ function extractSchemas(rawExpr, evaluator, context) {
|
|
|
21798
21858
|
return schemas;
|
|
21799
21859
|
}
|
|
21800
21860
|
|
|
21801
|
-
// bazel-out/
|
|
21861
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
21802
21862
|
var import_typescript51 = __toESM(require("typescript"), 1);
|
|
21803
21863
|
|
|
21804
|
-
// bazel-out/
|
|
21864
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.mjs
|
|
21805
21865
|
var import_typescript31 = __toESM(require("typescript"), 1);
|
|
21806
21866
|
var SemanticSymbol = class {
|
|
21807
21867
|
constructor(decl) {
|
|
@@ -21817,7 +21877,7 @@ function getSymbolIdentifier(decl) {
|
|
|
21817
21877
|
return decl.name.text;
|
|
21818
21878
|
}
|
|
21819
21879
|
|
|
21820
|
-
// bazel-out/
|
|
21880
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.mjs
|
|
21821
21881
|
var OpaqueSymbol = class extends SemanticSymbol {
|
|
21822
21882
|
isPublicApiAffected() {
|
|
21823
21883
|
return false;
|
|
@@ -21959,10 +22019,10 @@ function getImportPath(expr) {
|
|
|
21959
22019
|
}
|
|
21960
22020
|
}
|
|
21961
22021
|
|
|
21962
|
-
// bazel-out/
|
|
22022
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
21963
22023
|
var import_typescript32 = __toESM(require("typescript"), 1);
|
|
21964
22024
|
|
|
21965
|
-
// bazel-out/
|
|
22025
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/util.mjs
|
|
21966
22026
|
function isSymbolEqual(a, b) {
|
|
21967
22027
|
if (a.decl === b.decl) {
|
|
21968
22028
|
return true;
|
|
@@ -22012,7 +22072,7 @@ function isSetEqual(a, b, equalityTester = referenceEquality) {
|
|
|
22012
22072
|
return true;
|
|
22013
22073
|
}
|
|
22014
22074
|
|
|
22015
|
-
// bazel-out/
|
|
22075
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
22016
22076
|
function extractSemanticTypeParameters(node) {
|
|
22017
22077
|
if (!import_typescript32.default.isClassDeclaration(node) || node.typeParameters === void 0) {
|
|
22018
22078
|
return null;
|
|
@@ -22032,7 +22092,7 @@ function isTypeParameterEqual(a, b) {
|
|
|
22032
22092
|
return a.hasGenericTypeBound === b.hasGenericTypeBound;
|
|
22033
22093
|
}
|
|
22034
22094
|
|
|
22035
|
-
// bazel-out/
|
|
22095
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/api.mjs
|
|
22036
22096
|
var PerfPhase;
|
|
22037
22097
|
(function(PerfPhase2) {
|
|
22038
22098
|
PerfPhase2[PerfPhase2["Unaccounted"] = 0] = "Unaccounted";
|
|
@@ -22099,7 +22159,7 @@ var PerfCheckpoint;
|
|
|
22099
22159
|
PerfCheckpoint2[PerfCheckpoint2["LAST"] = 9] = "LAST";
|
|
22100
22160
|
})(PerfCheckpoint || (PerfCheckpoint = {}));
|
|
22101
22161
|
|
|
22102
|
-
// bazel-out/
|
|
22162
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/noop.mjs
|
|
22103
22163
|
var NoopPerfRecorder = class {
|
|
22104
22164
|
eventCount() {
|
|
22105
22165
|
}
|
|
@@ -22116,7 +22176,7 @@ var NoopPerfRecorder = class {
|
|
|
22116
22176
|
};
|
|
22117
22177
|
var NOOP_PERF_RECORDER = new NoopPerfRecorder();
|
|
22118
22178
|
|
|
22119
|
-
// bazel-out/
|
|
22179
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/clock.mjs
|
|
22120
22180
|
function mark() {
|
|
22121
22181
|
return process.hrtime();
|
|
22122
22182
|
}
|
|
@@ -22125,7 +22185,7 @@ function timeSinceInMicros(mark2) {
|
|
|
22125
22185
|
return delta[0] * 1e6 + Math.floor(delta[1] / 1e3);
|
|
22126
22186
|
}
|
|
22127
22187
|
|
|
22128
|
-
// bazel-out/
|
|
22188
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/recorder.mjs
|
|
22129
22189
|
var ActivePerfRecorder = class {
|
|
22130
22190
|
static zeroedToNow() {
|
|
22131
22191
|
return new ActivePerfRecorder(mark());
|
|
@@ -22219,14 +22279,14 @@ var DelegatingPerfRecorder = class {
|
|
|
22219
22279
|
}
|
|
22220
22280
|
};
|
|
22221
22281
|
|
|
22222
|
-
// bazel-out/
|
|
22282
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/api.mjs
|
|
22223
22283
|
var ComponentScopeKind;
|
|
22224
22284
|
(function(ComponentScopeKind2) {
|
|
22225
22285
|
ComponentScopeKind2[ComponentScopeKind2["NgModule"] = 0] = "NgModule";
|
|
22226
22286
|
ComponentScopeKind2[ComponentScopeKind2["Standalone"] = 1] = "Standalone";
|
|
22227
22287
|
})(ComponentScopeKind || (ComponentScopeKind = {}));
|
|
22228
22288
|
|
|
22229
|
-
// bazel-out/
|
|
22289
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/component_scope.mjs
|
|
22230
22290
|
var CompoundComponentScopeReader = class {
|
|
22231
22291
|
constructor(readers) {
|
|
22232
22292
|
this.readers = readers;
|
|
@@ -22251,7 +22311,7 @@ var CompoundComponentScopeReader = class {
|
|
|
22251
22311
|
}
|
|
22252
22312
|
};
|
|
22253
22313
|
|
|
22254
|
-
// bazel-out/
|
|
22314
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/dependency.mjs
|
|
22255
22315
|
var MetadataDtsModuleScopeResolver = class {
|
|
22256
22316
|
constructor(dtsMetaReader, aliasingHost) {
|
|
22257
22317
|
this.dtsMetaReader = dtsMetaReader;
|
|
@@ -22326,10 +22386,10 @@ var MetadataDtsModuleScopeResolver = class {
|
|
|
22326
22386
|
}
|
|
22327
22387
|
};
|
|
22328
22388
|
|
|
22329
|
-
// bazel-out/
|
|
22389
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
|
|
22330
22390
|
var import_typescript33 = __toESM(require("typescript"), 1);
|
|
22331
22391
|
|
|
22332
|
-
// bazel-out/
|
|
22392
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/util.mjs
|
|
22333
22393
|
function getDiagnosticNode(ref, rawExpr) {
|
|
22334
22394
|
return rawExpr !== null ? ref.getOriginForDiagnostics(rawExpr) : ref.node.name;
|
|
22335
22395
|
}
|
|
@@ -22352,7 +22412,7 @@ function makeUnknownComponentImportDiagnostic(ref, rawExpr) {
|
|
|
22352
22412
|
return makeDiagnostic(ErrorCode.COMPONENT_UNKNOWN_IMPORT, getDiagnosticNode(ref, rawExpr), `Component imports must be standalone components, directives, pipes, or must be NgModules.`);
|
|
22353
22413
|
}
|
|
22354
22414
|
|
|
22355
|
-
// bazel-out/
|
|
22415
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
|
|
22356
22416
|
var LocalModuleScopeRegistry = class {
|
|
22357
22417
|
constructor(localReader, fullReader, dependencyScopeReader, refEmitter, aliasingHost) {
|
|
22358
22418
|
this.localReader = localReader;
|
|
@@ -22691,7 +22751,7 @@ function reexportCollision(module3, refA, refB) {
|
|
|
22691
22751
|
]);
|
|
22692
22752
|
}
|
|
22693
22753
|
|
|
22694
|
-
// bazel-out/
|
|
22754
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/typecheck.mjs
|
|
22695
22755
|
var import_typescript35 = __toESM(require("typescript"), 1);
|
|
22696
22756
|
var TypeCheckScopeRegistry = class {
|
|
22697
22757
|
constructor(scopeReader, metaReader, hostDirectivesResolver) {
|
|
@@ -22759,7 +22819,7 @@ var TypeCheckScopeRegistry = class {
|
|
|
22759
22819
|
}
|
|
22760
22820
|
};
|
|
22761
22821
|
|
|
22762
|
-
// bazel-out/
|
|
22822
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/api.mjs
|
|
22763
22823
|
var CompilationMode;
|
|
22764
22824
|
(function(CompilationMode2) {
|
|
22765
22825
|
CompilationMode2[CompilationMode2["FULL"] = 0] = "FULL";
|
|
@@ -22777,7 +22837,7 @@ var HandlerFlags;
|
|
|
22777
22837
|
HandlerFlags2[HandlerFlags2["FULL_INHERITANCE"] = 1] = "FULL_INHERITANCE";
|
|
22778
22838
|
})(HandlerFlags || (HandlerFlags = {}));
|
|
22779
22839
|
|
|
22780
|
-
// bazel-out/
|
|
22840
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/alias.mjs
|
|
22781
22841
|
var import_typescript36 = __toESM(require("typescript"), 1);
|
|
22782
22842
|
function aliasTransformFactory(exportStatements) {
|
|
22783
22843
|
return () => {
|
|
@@ -22800,10 +22860,10 @@ function aliasTransformFactory(exportStatements) {
|
|
|
22800
22860
|
};
|
|
22801
22861
|
}
|
|
22802
22862
|
|
|
22803
|
-
// bazel-out/
|
|
22863
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
22804
22864
|
var import_typescript37 = __toESM(require("typescript"), 1);
|
|
22805
22865
|
|
|
22806
|
-
// bazel-out/
|
|
22866
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/trait.mjs
|
|
22807
22867
|
var TraitState;
|
|
22808
22868
|
(function(TraitState2) {
|
|
22809
22869
|
TraitState2[TraitState2["Pending"] = 0] = "Pending";
|
|
@@ -22858,7 +22918,7 @@ var TraitImpl = class {
|
|
|
22858
22918
|
}
|
|
22859
22919
|
};
|
|
22860
22920
|
|
|
22861
|
-
// bazel-out/
|
|
22921
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
22862
22922
|
var TraitCompiler = class {
|
|
22863
22923
|
constructor(handlers, reflector, perf, incrementalBuild, compileNonExportedClasses, compilationMode, dtsTransforms, semanticDepGraphUpdater, sourceFileTypeIdentifier) {
|
|
22864
22924
|
this.handlers = handlers;
|
|
@@ -23302,10 +23362,10 @@ function containsErrors(diagnostics) {
|
|
|
23302
23362
|
return diagnostics !== null && diagnostics.some((diag) => diag.category === import_typescript37.default.DiagnosticCategory.Error);
|
|
23303
23363
|
}
|
|
23304
23364
|
|
|
23305
|
-
// bazel-out/
|
|
23365
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
|
|
23306
23366
|
var import_typescript43 = __toESM(require("typescript"), 1);
|
|
23307
23367
|
|
|
23308
|
-
// bazel-out/
|
|
23368
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/context.mjs
|
|
23309
23369
|
var Context = class {
|
|
23310
23370
|
constructor(isStatement) {
|
|
23311
23371
|
this.isStatement = isStatement;
|
|
@@ -23318,7 +23378,7 @@ var Context = class {
|
|
|
23318
23378
|
}
|
|
23319
23379
|
};
|
|
23320
23380
|
|
|
23321
|
-
// bazel-out/
|
|
23381
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager.mjs
|
|
23322
23382
|
var import_typescript39 = __toESM(require("typescript"), 1);
|
|
23323
23383
|
var ImportManager = class {
|
|
23324
23384
|
constructor(rewriter = new NoopImportRewriter(), prefix = "i") {
|
|
@@ -23354,7 +23414,7 @@ var ImportManager = class {
|
|
|
23354
23414
|
}
|
|
23355
23415
|
};
|
|
23356
23416
|
|
|
23357
|
-
// bazel-out/
|
|
23417
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/translator.mjs
|
|
23358
23418
|
var UNARY_OPERATORS2 = /* @__PURE__ */ new Map([
|
|
23359
23419
|
[UnaryOperator.Minus, "-"],
|
|
23360
23420
|
[UnaryOperator.Plus, "+"]
|
|
@@ -23585,7 +23645,7 @@ function createRange(span) {
|
|
|
23585
23645
|
};
|
|
23586
23646
|
}
|
|
23587
23647
|
|
|
23588
|
-
// bazel-out/
|
|
23648
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
|
|
23589
23649
|
var import_typescript40 = __toESM(require("typescript"), 1);
|
|
23590
23650
|
function translateType(type, imports) {
|
|
23591
23651
|
return type.visitType(new TypeTranslatorVisitor(imports), new Context(false));
|
|
@@ -23760,7 +23820,7 @@ var TypeTranslatorVisitor = class {
|
|
|
23760
23820
|
}
|
|
23761
23821
|
};
|
|
23762
23822
|
|
|
23763
|
-
// bazel-out/
|
|
23823
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_ast_factory.mjs
|
|
23764
23824
|
var import_typescript41 = __toESM(require("typescript"), 1);
|
|
23765
23825
|
var PureAnnotation;
|
|
23766
23826
|
(function(PureAnnotation2) {
|
|
@@ -23943,7 +24003,7 @@ function attachComments(statement, leadingComments) {
|
|
|
23943
24003
|
}
|
|
23944
24004
|
}
|
|
23945
24005
|
|
|
23946
|
-
// bazel-out/
|
|
24006
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_translator.mjs
|
|
23947
24007
|
function translateExpression(expression, imports, options = {}) {
|
|
23948
24008
|
return expression.visitExpression(new ExpressionTranslatorVisitor(new TypeScriptAstFactory(options.annotateForClosureCompiler === true), imports, options), new Context(false));
|
|
23949
24009
|
}
|
|
@@ -23951,7 +24011,7 @@ function translateStatement(statement, imports, options = {}) {
|
|
|
23951
24011
|
return statement.visitStatement(new ExpressionTranslatorVisitor(new TypeScriptAstFactory(options.annotateForClosureCompiler === true), imports, options), new Context(true));
|
|
23952
24012
|
}
|
|
23953
24013
|
|
|
23954
|
-
// bazel-out/
|
|
24014
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/utils.mjs
|
|
23955
24015
|
var import_typescript42 = __toESM(require("typescript"), 1);
|
|
23956
24016
|
function addImports(importManager, sf, extraStatements = []) {
|
|
23957
24017
|
const addedImports = importManager.getAllImports(sf.fileName).map((i) => {
|
|
@@ -23987,7 +24047,7 @@ function isImportStatement(stmt) {
|
|
|
23987
24047
|
return import_typescript42.default.isImportDeclaration(stmt) || import_typescript42.default.isImportEqualsDeclaration(stmt) || import_typescript42.default.isNamespaceImport(stmt);
|
|
23988
24048
|
}
|
|
23989
24049
|
|
|
23990
|
-
// bazel-out/
|
|
24050
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
|
|
23991
24051
|
var DtsTransformRegistry = class {
|
|
23992
24052
|
constructor() {
|
|
23993
24053
|
this.ivyDeclarationTransforms = /* @__PURE__ */ new Map();
|
|
@@ -24132,10 +24192,10 @@ function markForEmitAsSingleLine(node) {
|
|
|
24132
24192
|
import_typescript43.default.forEachChild(node, markForEmitAsSingleLine);
|
|
24133
24193
|
}
|
|
24134
24194
|
|
|
24135
|
-
// bazel-out/
|
|
24195
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
24136
24196
|
var import_typescript45 = __toESM(require("typescript"), 1);
|
|
24137
24197
|
|
|
24138
|
-
// bazel-out/
|
|
24198
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/visitor.mjs
|
|
24139
24199
|
var import_typescript44 = __toESM(require("typescript"), 1);
|
|
24140
24200
|
function visit(node, visitor, context) {
|
|
24141
24201
|
return visitor._visit(node, context);
|
|
@@ -24196,7 +24256,7 @@ var Visitor = class {
|
|
|
24196
24256
|
}
|
|
24197
24257
|
};
|
|
24198
24258
|
|
|
24199
|
-
// bazel-out/
|
|
24259
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
24200
24260
|
var NO_DECORATORS = /* @__PURE__ */ new Set();
|
|
24201
24261
|
var CLOSURE_FILE_OVERVIEW_REGEXP = /\s+@fileoverview\s+/i;
|
|
24202
24262
|
function ivyTransformFactory(compilation, reflector, importRewriter, defaultImportTracker, perf, isCore, isClosureCompilerEnabled) {
|
|
@@ -24404,7 +24464,7 @@ function nodeArrayFromDecoratorsArray(decorators) {
|
|
|
24404
24464
|
return array;
|
|
24405
24465
|
}
|
|
24406
24466
|
|
|
24407
|
-
// bazel-out/
|
|
24467
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
|
|
24408
24468
|
var import_typescript46 = __toESM(require("typescript"), 1);
|
|
24409
24469
|
var EMPTY_OBJECT = {};
|
|
24410
24470
|
var QUERY_TYPES = /* @__PURE__ */ new Set([
|
|
@@ -24432,10 +24492,12 @@ function extractDirectiveMetadata(clazz, decorator, reflector, evaluator, refEmi
|
|
|
24432
24492
|
const members = reflector.getMembersOfClass(clazz);
|
|
24433
24493
|
const decoratedElements = members.filter((member) => !member.isStatic && member.decorators !== null);
|
|
24434
24494
|
const coreModule = isCore ? void 0 : "@angular/core";
|
|
24435
|
-
const inputsFromMeta =
|
|
24436
|
-
const inputsFromFields =
|
|
24437
|
-
const
|
|
24438
|
-
const
|
|
24495
|
+
const inputsFromMeta = parseInputsArray2(directive, evaluator);
|
|
24496
|
+
const inputsFromFields = parseInputFields(filterToMembersWithDecorator(decoratedElements, "Input", coreModule), evaluator);
|
|
24497
|
+
const inputs = ClassPropertyMapping.fromMappedObject(__spreadValues(__spreadValues({}, inputsFromMeta), inputsFromFields));
|
|
24498
|
+
const outputsFromMeta = parseOutputsArray(directive, evaluator);
|
|
24499
|
+
const outputsFromFields = parseOutputFields(filterToMembersWithDecorator(decoratedElements, "Output", coreModule), evaluator);
|
|
24500
|
+
const outputs = ClassPropertyMapping.fromMappedObject(__spreadValues(__spreadValues({}, outputsFromMeta), outputsFromFields));
|
|
24439
24501
|
const contentChildFromFields = queriesFromFields(filterToMembersWithDecorator(decoratedElements, "ContentChild", coreModule), reflector, evaluator);
|
|
24440
24502
|
const contentChildrenFromFields = queriesFromFields(filterToMembersWithDecorator(decoratedElements, "ContentChildren", coreModule), reflector, evaluator);
|
|
24441
24503
|
const queries = [...contentChildFromFields, ...contentChildrenFromFields];
|
|
@@ -24487,8 +24549,6 @@ function extractDirectiveMetadata(clazz, decorator, reflector, evaluator, refEmi
|
|
|
24487
24549
|
const sourceFile = clazz.getSourceFile();
|
|
24488
24550
|
const type = wrapTypeReference(reflector, clazz);
|
|
24489
24551
|
const internalType = new WrappedNodeExpr(reflector.getInternalNameOfClass(clazz));
|
|
24490
|
-
const inputs = ClassPropertyMapping.fromMappedObject(__spreadValues(__spreadValues({}, inputsFromMeta), inputsFromFields));
|
|
24491
|
-
const outputs = ClassPropertyMapping.fromMappedObject(__spreadValues(__spreadValues({}, outputsFromMeta), outputsFromFields));
|
|
24492
24552
|
const rawHostDirectives = directive.get("hostDirectives") || null;
|
|
24493
24553
|
const hostDirectives = rawHostDirectives === null ? null : extractHostDirectives(rawHostDirectives, evaluator);
|
|
24494
24554
|
const metadata = {
|
|
@@ -24668,7 +24728,7 @@ function extractQueriesFromDecorator(queryData, reflector, evaluator, isCore) {
|
|
|
24668
24728
|
});
|
|
24669
24729
|
return { content, view };
|
|
24670
24730
|
}
|
|
24671
|
-
function
|
|
24731
|
+
function parseFieldStringArrayValue(directive, field, evaluator) {
|
|
24672
24732
|
if (!directive.has(field)) {
|
|
24673
24733
|
return null;
|
|
24674
24734
|
}
|
|
@@ -24708,44 +24768,80 @@ function queriesFromFields(fields, reflector, evaluator) {
|
|
|
24708
24768
|
function isPropertyTypeMember(member) {
|
|
24709
24769
|
return member.kind === ClassMemberKind.Getter || member.kind === ClassMemberKind.Setter || member.kind === ClassMemberKind.Property;
|
|
24710
24770
|
}
|
|
24711
|
-
function
|
|
24712
|
-
const metaValues = parseFieldArrayValue(directive, field, evaluator);
|
|
24713
|
-
return metaValues ? parseInputOutputMappingArray(metaValues) : EMPTY_OBJECT;
|
|
24714
|
-
}
|
|
24715
|
-
function parseInputOutputMappingArray(values) {
|
|
24771
|
+
function parseMappingStringArray2(values) {
|
|
24716
24772
|
return values.reduce((results, value) => {
|
|
24717
24773
|
if (typeof value !== "string") {
|
|
24718
24774
|
throw new Error("Mapping value must be a string");
|
|
24719
24775
|
}
|
|
24720
|
-
const [
|
|
24721
|
-
results[
|
|
24776
|
+
const [bindingPropertyName, fieldName] = parseMappingString2(value);
|
|
24777
|
+
results[fieldName] = bindingPropertyName;
|
|
24722
24778
|
return results;
|
|
24723
24779
|
}, {});
|
|
24724
24780
|
}
|
|
24725
|
-
function
|
|
24726
|
-
|
|
24781
|
+
function parseMappingString2(value) {
|
|
24782
|
+
const [fieldName, bindingPropertyName] = value.split(":", 2).map((str) => str.trim());
|
|
24783
|
+
return [bindingPropertyName != null ? bindingPropertyName : fieldName, fieldName];
|
|
24784
|
+
}
|
|
24785
|
+
function parseDecoratedFields(fields, evaluator, callback) {
|
|
24786
|
+
for (const field of fields) {
|
|
24727
24787
|
const fieldName = field.member.name;
|
|
24728
|
-
field.decorators
|
|
24729
|
-
if (decorator.args
|
|
24730
|
-
results[fieldName] = fieldName;
|
|
24731
|
-
} else if (decorator.args.length === 1) {
|
|
24732
|
-
const property = evaluator.evaluate(decorator.args[0]);
|
|
24733
|
-
if (typeof property !== "string") {
|
|
24734
|
-
throw createValueHasWrongTypeError(Decorator.nodeForError(decorator), property, `@${decorator.name} decorator argument must resolve to a string`);
|
|
24735
|
-
}
|
|
24736
|
-
results[fieldName] = mapValueResolver(property, fieldName);
|
|
24737
|
-
} else {
|
|
24788
|
+
for (const decorator of field.decorators) {
|
|
24789
|
+
if (decorator.args != null && decorator.args.length > 1) {
|
|
24738
24790
|
throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARITY_WRONG, Decorator.nodeForError(decorator), `@${decorator.name} can have at most one argument, got ${decorator.args.length} argument(s)`);
|
|
24739
24791
|
}
|
|
24740
|
-
|
|
24741
|
-
|
|
24742
|
-
|
|
24792
|
+
const value = decorator.args != null && decorator.args.length > 0 ? evaluator.evaluate(decorator.args[0]) : null;
|
|
24793
|
+
callback(fieldName, value, decorator);
|
|
24794
|
+
}
|
|
24795
|
+
}
|
|
24796
|
+
}
|
|
24797
|
+
function parseInputsArray2(decoratorMetadata, evaluator) {
|
|
24798
|
+
const inputsField = decoratorMetadata.get("inputs");
|
|
24799
|
+
if (inputsField === void 0) {
|
|
24800
|
+
return {};
|
|
24801
|
+
}
|
|
24802
|
+
const inputs = {};
|
|
24803
|
+
const inputsArray = evaluator.evaluate(inputsField);
|
|
24804
|
+
if (!Array.isArray(inputsArray)) {
|
|
24805
|
+
throw createValueHasWrongTypeError(inputsField, inputsArray, `Failed to resolve @Directive.inputs to a string array`);
|
|
24806
|
+
}
|
|
24807
|
+
for (const value of inputsArray) {
|
|
24808
|
+
if (typeof value === "string") {
|
|
24809
|
+
const [bindingPropertyName, fieldName] = parseMappingString2(value);
|
|
24810
|
+
inputs[fieldName] = { bindingPropertyName, classPropertyName: fieldName, required: false };
|
|
24811
|
+
} else {
|
|
24812
|
+
throw createValueHasWrongTypeError(inputsField, value, `Failed to resolve @Directive.inputs to a string array`);
|
|
24813
|
+
}
|
|
24814
|
+
}
|
|
24815
|
+
return inputs;
|
|
24743
24816
|
}
|
|
24744
|
-
function
|
|
24745
|
-
|
|
24817
|
+
function parseInputFields(inputMembers, evaluator) {
|
|
24818
|
+
const inputs = {};
|
|
24819
|
+
parseDecoratedFields(inputMembers, evaluator, (classPropertyName, options, decorator) => {
|
|
24820
|
+
let bindingPropertyName;
|
|
24821
|
+
if (options === null) {
|
|
24822
|
+
bindingPropertyName = classPropertyName;
|
|
24823
|
+
} else if (typeof options === "string") {
|
|
24824
|
+
bindingPropertyName = options;
|
|
24825
|
+
} else {
|
|
24826
|
+
throw createValueHasWrongTypeError(Decorator.nodeForError(decorator), options, `@${decorator.name} decorator argument must resolve to a string`);
|
|
24827
|
+
}
|
|
24828
|
+
inputs[classPropertyName] = { bindingPropertyName, classPropertyName, required: false };
|
|
24829
|
+
});
|
|
24830
|
+
return inputs;
|
|
24831
|
+
}
|
|
24832
|
+
function parseOutputsArray(directive, evaluator) {
|
|
24833
|
+
const metaValues = parseFieldStringArrayValue(directive, "outputs", evaluator);
|
|
24834
|
+
return metaValues ? parseMappingStringArray2(metaValues) : EMPTY_OBJECT;
|
|
24746
24835
|
}
|
|
24747
|
-
function
|
|
24748
|
-
|
|
24836
|
+
function parseOutputFields(outputMembers, evaluator) {
|
|
24837
|
+
const outputs = {};
|
|
24838
|
+
parseDecoratedFields(outputMembers, evaluator, (fieldName, bindingPropertyName, decorator) => {
|
|
24839
|
+
if (bindingPropertyName != null && typeof bindingPropertyName !== "string") {
|
|
24840
|
+
throw createValueHasWrongTypeError(Decorator.nodeForError(decorator), bindingPropertyName, `@${decorator.name} decorator argument must resolve to a string`);
|
|
24841
|
+
}
|
|
24842
|
+
outputs[fieldName] = bindingPropertyName != null ? bindingPropertyName : fieldName;
|
|
24843
|
+
});
|
|
24844
|
+
return outputs;
|
|
24749
24845
|
}
|
|
24750
24846
|
function evaluateHostExpressionBindings(hostExpr, evaluator) {
|
|
24751
24847
|
const hostMetaMap = evaluator.evaluate(hostExpr);
|
|
@@ -24806,7 +24902,7 @@ function parseHostDirectivesMapping(field, resolvedValue, classReference, source
|
|
|
24806
24902
|
const nameForErrors = `@Directive.hostDirectives.${classReference.name.text}.${field}`;
|
|
24807
24903
|
const rawInputs = resolvedValue.get(field);
|
|
24808
24904
|
if (isStringArrayOrDie(rawInputs, nameForErrors, sourceExpression)) {
|
|
24809
|
-
return
|
|
24905
|
+
return parseMappingStringArray2(rawInputs);
|
|
24810
24906
|
}
|
|
24811
24907
|
}
|
|
24812
24908
|
return null;
|
|
@@ -24820,7 +24916,7 @@ function toHostDirectiveMetadata(hostDirective, context, refEmitter) {
|
|
|
24820
24916
|
};
|
|
24821
24917
|
}
|
|
24822
24918
|
|
|
24823
|
-
// bazel-out/
|
|
24919
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/symbol.mjs
|
|
24824
24920
|
var DirectiveSymbol = class extends SemanticSymbol {
|
|
24825
24921
|
constructor(decl, selector, inputs, outputs, exportAs, typeCheckMeta, typeParameters) {
|
|
24826
24922
|
super(decl);
|
|
@@ -24845,7 +24941,7 @@ var DirectiveSymbol = class extends SemanticSymbol {
|
|
|
24845
24941
|
if (!(previousSymbol instanceof DirectiveSymbol)) {
|
|
24846
24942
|
return true;
|
|
24847
24943
|
}
|
|
24848
|
-
if (!isArrayEqual(Array.from(this.inputs), Array.from(previousSymbol.inputs), isInputMappingEqual) || !isArrayEqual(Array.from(this.outputs), Array.from(previousSymbol.outputs),
|
|
24944
|
+
if (!isArrayEqual(Array.from(this.inputs), Array.from(previousSymbol.inputs), isInputMappingEqual) || !isArrayEqual(Array.from(this.outputs), Array.from(previousSymbol.outputs), isInputOrOutputEqual)) {
|
|
24849
24945
|
return true;
|
|
24850
24946
|
}
|
|
24851
24947
|
if (!areTypeParametersEqual(this.typeParameters, previousSymbol.typeParameters)) {
|
|
@@ -24861,7 +24957,10 @@ var DirectiveSymbol = class extends SemanticSymbol {
|
|
|
24861
24957
|
}
|
|
24862
24958
|
};
|
|
24863
24959
|
function isInputMappingEqual(current, previous) {
|
|
24864
|
-
return current
|
|
24960
|
+
return isInputOrOutputEqual(current, previous) && current.required === previous.required;
|
|
24961
|
+
}
|
|
24962
|
+
function isInputOrOutputEqual(current, previous) {
|
|
24963
|
+
return current.classPropertyName === previous.classPropertyName && current.bindingPropertyName === previous.bindingPropertyName;
|
|
24865
24964
|
}
|
|
24866
24965
|
function isTypeCheckMetaEqual(current, previous) {
|
|
24867
24966
|
if (current.hasNgTemplateContextGuard !== previous.hasNgTemplateContextGuard) {
|
|
@@ -24897,7 +24996,7 @@ function isBaseClassEqual(current, previous) {
|
|
|
24897
24996
|
return isSymbolEqual(current, previous);
|
|
24898
24997
|
}
|
|
24899
24998
|
|
|
24900
|
-
// bazel-out/
|
|
24999
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
|
|
24901
25000
|
var FIELD_DECORATORS = [
|
|
24902
25001
|
"Input",
|
|
24903
25002
|
"Output",
|
|
@@ -25056,10 +25155,10 @@ var DirectiveDecoratorHandler = class {
|
|
|
25056
25155
|
}
|
|
25057
25156
|
};
|
|
25058
25157
|
|
|
25059
|
-
// bazel-out/
|
|
25158
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
25060
25159
|
var import_typescript48 = __toESM(require("typescript"), 1);
|
|
25061
25160
|
|
|
25062
|
-
// bazel-out/
|
|
25161
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/module_with_providers.mjs
|
|
25063
25162
|
var import_typescript47 = __toESM(require("typescript"), 1);
|
|
25064
25163
|
function createModuleWithProvidersResolver(reflector, isCore) {
|
|
25065
25164
|
function _reflectModuleFromTypeParam(type, node) {
|
|
@@ -25126,7 +25225,7 @@ function isResolvedModuleWithProviders(sv) {
|
|
|
25126
25225
|
return typeof sv.value === "object" && sv.value != null && sv.value.hasOwnProperty("ngModule") && sv.value.hasOwnProperty("mwpCall");
|
|
25127
25226
|
}
|
|
25128
25227
|
|
|
25129
|
-
// bazel-out/
|
|
25228
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
25130
25229
|
var NgModuleSymbol = class extends SemanticSymbol {
|
|
25131
25230
|
constructor() {
|
|
25132
25231
|
super(...arguments);
|
|
@@ -25622,7 +25721,7 @@ function isSyntheticReference(ref) {
|
|
|
25622
25721
|
return ref.synthetic;
|
|
25623
25722
|
}
|
|
25624
25723
|
|
|
25625
|
-
// bazel-out/
|
|
25724
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/diagnostics.mjs
|
|
25626
25725
|
function makeCyclicImportInfo(ref, type, cycle) {
|
|
25627
25726
|
const name = ref.debugName || "(unknown)";
|
|
25628
25727
|
const path3 = cycle.getPath().map((sf) => sf.fileName).join(" -> ");
|
|
@@ -25645,7 +25744,7 @@ function checkCustomElementSelectorForErrors(selector) {
|
|
|
25645
25744
|
return null;
|
|
25646
25745
|
}
|
|
25647
25746
|
|
|
25648
|
-
// bazel-out/
|
|
25747
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/resources.mjs
|
|
25649
25748
|
var import_typescript50 = __toESM(require("typescript"), 1);
|
|
25650
25749
|
function getTemplateDeclarationNodeForError(declaration) {
|
|
25651
25750
|
switch (declaration.isInline) {
|
|
@@ -25960,7 +26059,7 @@ function _extractTemplateStyleUrls(template) {
|
|
|
25960
26059
|
return template.styleUrls.map((url) => ({ url, source: 1, nodeForError }));
|
|
25961
26060
|
}
|
|
25962
26061
|
|
|
25963
|
-
// bazel-out/
|
|
26062
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/symbol.mjs
|
|
25964
26063
|
var ComponentSymbol = class extends DirectiveSymbol {
|
|
25965
26064
|
constructor() {
|
|
25966
26065
|
super(...arguments);
|
|
@@ -25995,7 +26094,7 @@ var ComponentSymbol = class extends DirectiveSymbol {
|
|
|
25995
26094
|
}
|
|
25996
26095
|
};
|
|
25997
26096
|
|
|
25998
|
-
// bazel-out/
|
|
26097
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/util.mjs
|
|
25999
26098
|
function collectAnimationNames(value, animationTriggerNames) {
|
|
26000
26099
|
if (value instanceof Map) {
|
|
26001
26100
|
const name = value.get("name");
|
|
@@ -26071,7 +26170,7 @@ function isLikelyModuleWithProviders(value) {
|
|
|
26071
26170
|
return false;
|
|
26072
26171
|
}
|
|
26073
26172
|
|
|
26074
|
-
// bazel-out/
|
|
26173
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
26075
26174
|
var EMPTY_ARRAY2 = [];
|
|
26076
26175
|
var ComponentDecoratorHandler = class {
|
|
26077
26176
|
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) {
|
|
@@ -26154,7 +26253,7 @@ var ComponentDecoratorHandler = class {
|
|
|
26154
26253
|
const componentStyleUrls = extractComponentStyleUrls(this.evaluator, component);
|
|
26155
26254
|
let inlineStyles;
|
|
26156
26255
|
if (component.has("styles")) {
|
|
26157
|
-
const litStyles =
|
|
26256
|
+
const litStyles = parseFieldStringArrayValue(component, "styles", this.evaluator);
|
|
26158
26257
|
if (litStyles === null) {
|
|
26159
26258
|
this.preanalyzeStylesCache.set(node, null);
|
|
26160
26259
|
} else {
|
|
@@ -26313,7 +26412,7 @@ var ComponentDecoratorHandler = class {
|
|
|
26313
26412
|
throw new Error("Inline resource processing requires asynchronous preanalyze.");
|
|
26314
26413
|
}
|
|
26315
26414
|
if (component.has("styles")) {
|
|
26316
|
-
const litStyles =
|
|
26415
|
+
const litStyles = parseFieldStringArrayValue(component, "styles", this.evaluator);
|
|
26317
26416
|
if (litStyles !== null) {
|
|
26318
26417
|
inlineStyles = [...litStyles];
|
|
26319
26418
|
styles.push(...litStyles);
|
|
@@ -26717,7 +26816,7 @@ function validateStandaloneImports(importRefs, importExpr2, metaReader, scopeRea
|
|
|
26717
26816
|
return diagnostics;
|
|
26718
26817
|
}
|
|
26719
26818
|
|
|
26720
|
-
// bazel-out/
|
|
26819
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
|
|
26721
26820
|
var import_typescript53 = __toESM(require("typescript"), 1);
|
|
26722
26821
|
var InjectableDecoratorHandler = class {
|
|
26723
26822
|
constructor(reflector, evaluator, isCore, strictCtorDeps, injectableRegistry, perf, errorOnDuplicateProv = true) {
|
|
@@ -26933,7 +27032,7 @@ function getDep(dep, reflector) {
|
|
|
26933
27032
|
return meta;
|
|
26934
27033
|
}
|
|
26935
27034
|
|
|
26936
|
-
// bazel-out/
|
|
27035
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
|
|
26937
27036
|
var import_typescript54 = __toESM(require("typescript"), 1);
|
|
26938
27037
|
var PipeSymbol = class extends SemanticSymbol {
|
|
26939
27038
|
constructor(decl, name) {
|
|
@@ -27078,7 +27177,7 @@ var PipeDecoratorHandler = class {
|
|
|
27078
27177
|
}
|
|
27079
27178
|
};
|
|
27080
27179
|
|
|
27081
|
-
// bazel-out/
|
|
27180
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
|
|
27082
27181
|
var CycleAnalyzer = class {
|
|
27083
27182
|
constructor(importGraph) {
|
|
27084
27183
|
this.importGraph = importGraph;
|
|
@@ -27149,7 +27248,7 @@ var Cycle = class {
|
|
|
27149
27248
|
}
|
|
27150
27249
|
};
|
|
27151
27250
|
|
|
27152
|
-
// bazel-out/
|
|
27251
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/imports.mjs
|
|
27153
27252
|
var import_typescript55 = __toESM(require("typescript"), 1);
|
|
27154
27253
|
var ImportGraph = class {
|
|
27155
27254
|
constructor(checker, perf) {
|
|
@@ -27241,7 +27340,7 @@ var Found = class {
|
|
|
27241
27340
|
}
|
|
27242
27341
|
};
|
|
27243
27342
|
|
|
27244
|
-
// bazel-out/
|
|
27343
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
|
|
27245
27344
|
var import_typescript56 = __toESM(require("typescript"), 1);
|
|
27246
27345
|
var FlatIndexGenerator = class {
|
|
27247
27346
|
constructor(entryPoint, relativeFlatIndexPath, moduleName) {
|
|
@@ -27266,7 +27365,7 @@ export * from '${relativeEntryPoint}';
|
|
|
27266
27365
|
}
|
|
27267
27366
|
};
|
|
27268
27367
|
|
|
27269
|
-
// bazel-out/
|
|
27368
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/logic.mjs
|
|
27270
27369
|
function findFlatIndexEntryPoint(rootFiles) {
|
|
27271
27370
|
const tsFiles = rootFiles.filter((file) => isNonDeclarationTsPath(file));
|
|
27272
27371
|
let resolvedEntryPoint = null;
|
|
@@ -27282,7 +27381,7 @@ function findFlatIndexEntryPoint(rootFiles) {
|
|
|
27282
27381
|
return resolvedEntryPoint;
|
|
27283
27382
|
}
|
|
27284
27383
|
|
|
27285
|
-
// bazel-out/
|
|
27384
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
|
|
27286
27385
|
var import_typescript58 = __toESM(require("typescript"), 1);
|
|
27287
27386
|
function checkForPrivateExports(entryPoint, checker, refGraph) {
|
|
27288
27387
|
const diagnostics = [];
|
|
@@ -27362,7 +27461,7 @@ function getDescriptorOfDeclaration(decl) {
|
|
|
27362
27461
|
}
|
|
27363
27462
|
}
|
|
27364
27463
|
|
|
27365
|
-
// bazel-out/
|
|
27464
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/reference_graph.mjs
|
|
27366
27465
|
var ReferenceGraph = class {
|
|
27367
27466
|
constructor() {
|
|
27368
27467
|
this.references = /* @__PURE__ */ new Map();
|
|
@@ -27416,7 +27515,7 @@ var ReferenceGraph = class {
|
|
|
27416
27515
|
}
|
|
27417
27516
|
};
|
|
27418
27517
|
|
|
27419
|
-
// bazel-out/
|
|
27518
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/api.mjs
|
|
27420
27519
|
var NgOriginalFile = Symbol("NgOriginalFile");
|
|
27421
27520
|
var UpdateMode;
|
|
27422
27521
|
(function(UpdateMode2) {
|
|
@@ -27424,13 +27523,13 @@ var UpdateMode;
|
|
|
27424
27523
|
UpdateMode2[UpdateMode2["Incremental"] = 1] = "Incremental";
|
|
27425
27524
|
})(UpdateMode || (UpdateMode = {}));
|
|
27426
27525
|
|
|
27427
|
-
// bazel-out/
|
|
27526
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
|
|
27428
27527
|
var import_typescript62 = __toESM(require("typescript"), 1);
|
|
27429
27528
|
|
|
27430
|
-
// bazel-out/
|
|
27529
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
27431
27530
|
var import_typescript59 = __toESM(require("typescript"), 1);
|
|
27432
27531
|
|
|
27433
|
-
// bazel-out/
|
|
27532
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/expando.mjs
|
|
27434
27533
|
var NgExtension = Symbol("NgExtension");
|
|
27435
27534
|
function isExtended(sf) {
|
|
27436
27535
|
return sf[NgExtension] !== void 0;
|
|
@@ -27490,13 +27589,13 @@ function retagTsFile(sf) {
|
|
|
27490
27589
|
}
|
|
27491
27590
|
}
|
|
27492
27591
|
|
|
27493
|
-
// bazel-out/
|
|
27592
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/util.mjs
|
|
27494
27593
|
var TS_EXTENSIONS = /\.tsx?$/i;
|
|
27495
27594
|
function makeShimFileName(fileName, suffix) {
|
|
27496
27595
|
return absoluteFrom(fileName.replace(TS_EXTENSIONS, suffix));
|
|
27497
27596
|
}
|
|
27498
27597
|
|
|
27499
|
-
// bazel-out/
|
|
27598
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
27500
27599
|
var ShimAdapter = class {
|
|
27501
27600
|
constructor(delegate, tsRootFiles, topLevelGenerators, perFileGenerators, oldProgram) {
|
|
27502
27601
|
this.delegate = delegate;
|
|
@@ -27591,7 +27690,7 @@ var ShimAdapter = class {
|
|
|
27591
27690
|
}
|
|
27592
27691
|
};
|
|
27593
27692
|
|
|
27594
|
-
// bazel-out/
|
|
27693
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
|
|
27595
27694
|
var ShimReferenceTagger = class {
|
|
27596
27695
|
constructor(shimExtensions) {
|
|
27597
27696
|
this.tagged = /* @__PURE__ */ new Set();
|
|
@@ -27625,7 +27724,7 @@ var ShimReferenceTagger = class {
|
|
|
27625
27724
|
}
|
|
27626
27725
|
};
|
|
27627
27726
|
|
|
27628
|
-
// bazel-out/
|
|
27727
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
|
|
27629
27728
|
var DelegatingCompilerHost = class {
|
|
27630
27729
|
constructor(delegate) {
|
|
27631
27730
|
this.delegate = delegate;
|
|
@@ -27738,7 +27837,7 @@ var TsCreateProgramDriver = class {
|
|
|
27738
27837
|
}
|
|
27739
27838
|
};
|
|
27740
27839
|
|
|
27741
|
-
// bazel-out/
|
|
27840
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.mjs
|
|
27742
27841
|
var FileDependencyGraph = class {
|
|
27743
27842
|
constructor() {
|
|
27744
27843
|
this.nodes = /* @__PURE__ */ new Map();
|
|
@@ -27805,7 +27904,7 @@ function isLogicallyChanged(sf, node, changedTsPaths, deletedTsPaths, changedRes
|
|
|
27805
27904
|
return false;
|
|
27806
27905
|
}
|
|
27807
27906
|
|
|
27808
|
-
// bazel-out/
|
|
27907
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
|
|
27809
27908
|
var IncrementalStateKind;
|
|
27810
27909
|
(function(IncrementalStateKind2) {
|
|
27811
27910
|
IncrementalStateKind2[IncrementalStateKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -27813,7 +27912,7 @@ var IncrementalStateKind;
|
|
|
27813
27912
|
IncrementalStateKind2[IncrementalStateKind2["Analyzed"] = 2] = "Analyzed";
|
|
27814
27913
|
})(IncrementalStateKind || (IncrementalStateKind = {}));
|
|
27815
27914
|
|
|
27816
|
-
// bazel-out/
|
|
27915
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
|
|
27817
27916
|
var PhaseKind;
|
|
27818
27917
|
(function(PhaseKind2) {
|
|
27819
27918
|
PhaseKind2[PhaseKind2["Analysis"] = 0] = "Analysis";
|
|
@@ -28014,7 +28113,7 @@ function toOriginalSourceFile(sf) {
|
|
|
28014
28113
|
}
|
|
28015
28114
|
}
|
|
28016
28115
|
|
|
28017
|
-
// bazel-out/
|
|
28116
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
|
|
28018
28117
|
var TrackedIncrementalBuildStrategy = class {
|
|
28019
28118
|
constructor() {
|
|
28020
28119
|
this.state = null;
|
|
@@ -28035,7 +28134,7 @@ var TrackedIncrementalBuildStrategy = class {
|
|
|
28035
28134
|
};
|
|
28036
28135
|
var SYM_INCREMENTAL_STATE = Symbol("NgIncrementalState");
|
|
28037
28136
|
|
|
28038
|
-
// bazel-out/
|
|
28137
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
|
|
28039
28138
|
var IdentifierKind;
|
|
28040
28139
|
(function(IdentifierKind2) {
|
|
28041
28140
|
IdentifierKind2[IdentifierKind2["Property"] = 0] = "Property";
|
|
@@ -28053,7 +28152,7 @@ var AbsoluteSourceSpan2 = class {
|
|
|
28053
28152
|
}
|
|
28054
28153
|
};
|
|
28055
28154
|
|
|
28056
|
-
// bazel-out/
|
|
28155
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/context.mjs
|
|
28057
28156
|
var IndexingContext = class {
|
|
28058
28157
|
constructor() {
|
|
28059
28158
|
this.components = /* @__PURE__ */ new Set();
|
|
@@ -28063,7 +28162,7 @@ var IndexingContext = class {
|
|
|
28063
28162
|
}
|
|
28064
28163
|
};
|
|
28065
28164
|
|
|
28066
|
-
// bazel-out/
|
|
28165
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
|
|
28067
28166
|
var ExpressionVisitor = class extends RecursiveAstVisitor {
|
|
28068
28167
|
constructor(expressionStr, absoluteOffset, boundTemplate, targetToIdentifier) {
|
|
28069
28168
|
super();
|
|
@@ -28299,7 +28398,7 @@ function getTemplateIdentifiers(boundTemplate) {
|
|
|
28299
28398
|
return { identifiers: visitor.identifiers, errors: visitor.errors };
|
|
28300
28399
|
}
|
|
28301
28400
|
|
|
28302
|
-
// bazel-out/
|
|
28401
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
|
|
28303
28402
|
function generateAnalysis(context) {
|
|
28304
28403
|
const analysis = /* @__PURE__ */ new Map();
|
|
28305
28404
|
context.components.forEach(({ declaration, selector, boundTemplate, templateMeta }) => {
|
|
@@ -28335,7 +28434,7 @@ function generateAnalysis(context) {
|
|
|
28335
28434
|
return analysis;
|
|
28336
28435
|
}
|
|
28337
28436
|
|
|
28338
|
-
// bazel-out/
|
|
28437
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/ng_module_index.mjs
|
|
28339
28438
|
var NgModuleIndexImpl = class {
|
|
28340
28439
|
constructor(metaReader, localReader) {
|
|
28341
28440
|
this.metaReader = metaReader;
|
|
@@ -28424,7 +28523,7 @@ var NgModuleIndexImpl = class {
|
|
|
28424
28523
|
}
|
|
28425
28524
|
};
|
|
28426
28525
|
|
|
28427
|
-
// bazel-out/
|
|
28526
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
|
|
28428
28527
|
var import_typescript65 = __toESM(require("typescript"), 1);
|
|
28429
28528
|
var CSS_PREPROCESSOR_EXT = /(\.scss|\.sass|\.less|\.styl)$/;
|
|
28430
28529
|
var RESOURCE_MARKER = ".$ngresource$";
|
|
@@ -28572,7 +28671,7 @@ function createLookupResolutionHost(adapter) {
|
|
|
28572
28671
|
};
|
|
28573
28672
|
}
|
|
28574
28673
|
|
|
28575
|
-
// bazel-out/
|
|
28674
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/standalone.mjs
|
|
28576
28675
|
var StandaloneComponentScopeReader = class {
|
|
28577
28676
|
constructor(metaReader, localModuleReader, dtsModuleReader) {
|
|
28578
28677
|
this.metaReader = metaReader;
|
|
@@ -28650,21 +28749,21 @@ var StandaloneComponentScopeReader = class {
|
|
|
28650
28749
|
}
|
|
28651
28750
|
};
|
|
28652
28751
|
|
|
28653
|
-
// bazel-out/
|
|
28752
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/checker.mjs
|
|
28654
28753
|
var OptimizeFor;
|
|
28655
28754
|
(function(OptimizeFor2) {
|
|
28656
28755
|
OptimizeFor2[OptimizeFor2["SingleFile"] = 0] = "SingleFile";
|
|
28657
28756
|
OptimizeFor2[OptimizeFor2["WholeProgram"] = 1] = "WholeProgram";
|
|
28658
28757
|
})(OptimizeFor || (OptimizeFor = {}));
|
|
28659
28758
|
|
|
28660
|
-
// bazel-out/
|
|
28759
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/completion.mjs
|
|
28661
28760
|
var CompletionKind;
|
|
28662
28761
|
(function(CompletionKind2) {
|
|
28663
28762
|
CompletionKind2[CompletionKind2["Reference"] = 0] = "Reference";
|
|
28664
28763
|
CompletionKind2[CompletionKind2["Variable"] = 1] = "Variable";
|
|
28665
28764
|
})(CompletionKind || (CompletionKind = {}));
|
|
28666
28765
|
|
|
28667
|
-
// bazel-out/
|
|
28766
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/scope.mjs
|
|
28668
28767
|
var PotentialImportKind;
|
|
28669
28768
|
(function(PotentialImportKind2) {
|
|
28670
28769
|
PotentialImportKind2[PotentialImportKind2["NgModule"] = 0] = "NgModule";
|
|
@@ -28676,7 +28775,7 @@ var PotentialImportMode;
|
|
|
28676
28775
|
PotentialImportMode2[PotentialImportMode2["ForceDirect"] = 1] = "ForceDirect";
|
|
28677
28776
|
})(PotentialImportMode || (PotentialImportMode = {}));
|
|
28678
28777
|
|
|
28679
|
-
// bazel-out/
|
|
28778
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.mjs
|
|
28680
28779
|
var SymbolKind;
|
|
28681
28780
|
(function(SymbolKind2) {
|
|
28682
28781
|
SymbolKind2[SymbolKind2["Input"] = 0] = "Input";
|
|
@@ -28692,7 +28791,7 @@ var SymbolKind;
|
|
|
28692
28791
|
SymbolKind2[SymbolKind2["Pipe"] = 10] = "Pipe";
|
|
28693
28792
|
})(SymbolKind || (SymbolKind = {}));
|
|
28694
28793
|
|
|
28695
|
-
// bazel-out/
|
|
28794
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
|
|
28696
28795
|
var import_typescript66 = __toESM(require("typescript"), 1);
|
|
28697
28796
|
function makeTemplateDiagnostic(templateId, mapping, span, category, code, messageText, relatedMessages) {
|
|
28698
28797
|
var _a;
|
|
@@ -28799,7 +28898,7 @@ function parseTemplateAsSourceFile(fileName, template) {
|
|
|
28799
28898
|
return import_typescript66.default.createSourceFile(fileName, template, import_typescript66.default.ScriptTarget.Latest, false, import_typescript66.default.ScriptKind.JSX);
|
|
28800
28899
|
}
|
|
28801
28900
|
|
|
28802
|
-
// bazel-out/
|
|
28901
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
|
|
28803
28902
|
var TEMPLATE_ID = Symbol("ngTemplateId");
|
|
28804
28903
|
var NEXT_TEMPLATE_ID = Symbol("ngNextTemplateId");
|
|
28805
28904
|
function getTemplateId(clazz) {
|
|
@@ -28816,10 +28915,10 @@ function allocateTemplateId(sf) {
|
|
|
28816
28915
|
return `tcb${sf[NEXT_TEMPLATE_ID]++}`;
|
|
28817
28916
|
}
|
|
28818
28917
|
|
|
28819
|
-
// bazel-out/
|
|
28918
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
28820
28919
|
var import_typescript68 = __toESM(require("typescript"), 1);
|
|
28821
28920
|
|
|
28822
|
-
// bazel-out/
|
|
28921
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
|
|
28823
28922
|
var import_typescript67 = __toESM(require("typescript"), 1);
|
|
28824
28923
|
var parseSpanComment = /^(\d+),(\d+)$/;
|
|
28825
28924
|
function readSpanComment(node, sourceFile = node.getSourceFile()) {
|
|
@@ -28948,7 +29047,7 @@ function hasExpressionIdentifier(sourceFile, node, identifier) {
|
|
|
28948
29047
|
}) || false;
|
|
28949
29048
|
}
|
|
28950
29049
|
|
|
28951
|
-
// bazel-out/
|
|
29050
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
28952
29051
|
var CompletionEngine = class {
|
|
28953
29052
|
constructor(tcb, data, tcbPath, tcbIsShim) {
|
|
28954
29053
|
this.tcb = tcb;
|
|
@@ -29105,10 +29204,10 @@ var CompletionEngine = class {
|
|
|
29105
29204
|
}
|
|
29106
29205
|
};
|
|
29107
29206
|
|
|
29108
|
-
// bazel-out/
|
|
29207
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
29109
29208
|
var import_typescript83 = __toESM(require("typescript"), 1);
|
|
29110
29209
|
|
|
29111
|
-
// bazel-out/
|
|
29210
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
|
|
29112
29211
|
var import_typescript69 = __toESM(require("typescript"), 1);
|
|
29113
29212
|
var REGISTRY = new DomElementSchemaRegistry();
|
|
29114
29213
|
var REMOVE_XHTML_REGEX = /^:xhtml:/;
|
|
@@ -29160,10 +29259,10 @@ var RegistryDomSchemaChecker = class {
|
|
|
29160
29259
|
}
|
|
29161
29260
|
};
|
|
29162
29261
|
|
|
29163
|
-
// bazel-out/
|
|
29262
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
29164
29263
|
var import_typescript76 = __toESM(require("typescript"), 1);
|
|
29165
29264
|
|
|
29166
|
-
// bazel-out/
|
|
29265
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
|
|
29167
29266
|
var import_typescript70 = __toESM(require("typescript"), 1);
|
|
29168
29267
|
var SAFE_TO_CAST_WITHOUT_PARENS = /* @__PURE__ */ new Set([
|
|
29169
29268
|
import_typescript70.default.SyntaxKind.ParenthesizedExpression,
|
|
@@ -29237,16 +29336,16 @@ function isAccessExpression(node) {
|
|
|
29237
29336
|
return import_typescript70.default.isPropertyAccessExpression(node) || import_typescript70.default.isElementAccessExpression(node);
|
|
29238
29337
|
}
|
|
29239
29338
|
|
|
29240
|
-
// bazel-out/
|
|
29339
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
29241
29340
|
var import_typescript75 = __toESM(require("typescript"), 1);
|
|
29242
29341
|
|
|
29243
|
-
// bazel-out/
|
|
29342
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
29244
29343
|
var import_typescript73 = __toESM(require("typescript"), 1);
|
|
29245
29344
|
|
|
29246
|
-
// bazel-out/
|
|
29345
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
|
|
29247
29346
|
var import_typescript72 = __toESM(require("typescript"), 1);
|
|
29248
29347
|
|
|
29249
|
-
// bazel-out/
|
|
29348
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_emitter.mjs
|
|
29250
29349
|
var import_typescript71 = __toESM(require("typescript"), 1);
|
|
29251
29350
|
var INELIGIBLE = {};
|
|
29252
29351
|
function canEmitType(type, canEmit) {
|
|
@@ -29321,7 +29420,7 @@ var TypeEmitter = class {
|
|
|
29321
29420
|
}
|
|
29322
29421
|
};
|
|
29323
29422
|
|
|
29324
|
-
// bazel-out/
|
|
29423
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
|
|
29325
29424
|
var TypeParameterEmitter = class {
|
|
29326
29425
|
constructor(typeParameters, reflector) {
|
|
29327
29426
|
this.typeParameters = typeParameters;
|
|
@@ -29398,7 +29497,7 @@ var TypeParameterEmitter = class {
|
|
|
29398
29497
|
}
|
|
29399
29498
|
};
|
|
29400
29499
|
|
|
29401
|
-
// bazel-out/
|
|
29500
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
29402
29501
|
var TcbInliningRequirement;
|
|
29403
29502
|
(function(TcbInliningRequirement2) {
|
|
29404
29503
|
TcbInliningRequirement2[TcbInliningRequirement2["MustInline"] = 0] = "MustInline";
|
|
@@ -29478,7 +29577,7 @@ function checkIfGenericTypeBoundsCanBeEmitted(node, reflector, env) {
|
|
|
29478
29577
|
return emitter.canEmit((ref) => env.canReferenceType(ref));
|
|
29479
29578
|
}
|
|
29480
29579
|
|
|
29481
|
-
// bazel-out/
|
|
29580
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
29482
29581
|
function generateTypeCtorDeclarationFn(node, meta, nodeTypeRef, typeParams) {
|
|
29483
29582
|
const rawTypeArgs = typeParams !== void 0 ? generateGenericArgs(typeParams) : void 0;
|
|
29484
29583
|
const rawType = import_typescript75.default.factory.createTypeReferenceNode(nodeTypeRef, rawTypeArgs);
|
|
@@ -29590,7 +29689,7 @@ function typeParametersWithDefaultTypes(params) {
|
|
|
29590
29689
|
});
|
|
29591
29690
|
}
|
|
29592
29691
|
|
|
29593
|
-
// bazel-out/
|
|
29692
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
29594
29693
|
var Environment = class {
|
|
29595
29694
|
constructor(config, importManager, refEmitter, reflector, contextFile) {
|
|
29596
29695
|
this.config = config;
|
|
@@ -29682,7 +29781,7 @@ var Environment = class {
|
|
|
29682
29781
|
}
|
|
29683
29782
|
};
|
|
29684
29783
|
|
|
29685
|
-
// bazel-out/
|
|
29784
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
|
|
29686
29785
|
var import_typescript77 = __toESM(require("typescript"), 1);
|
|
29687
29786
|
var OutOfBandDiagnosticRecorderImpl = class {
|
|
29688
29787
|
constructor(resolver) {
|
|
@@ -29813,7 +29912,7 @@ function makeInlineDiagnostic(templateId, code, node, messageText, relatedInform
|
|
|
29813
29912
|
});
|
|
29814
29913
|
}
|
|
29815
29914
|
|
|
29816
|
-
// bazel-out/
|
|
29915
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
|
|
29817
29916
|
var import_typescript78 = __toESM(require("typescript"), 1);
|
|
29818
29917
|
var TypeCheckShimGenerator = class {
|
|
29819
29918
|
constructor() {
|
|
@@ -29831,10 +29930,10 @@ var TypeCheckShimGenerator = class {
|
|
|
29831
29930
|
}
|
|
29832
29931
|
};
|
|
29833
29932
|
|
|
29834
|
-
// bazel-out/
|
|
29933
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
29835
29934
|
var import_typescript81 = __toESM(require("typescript"), 1);
|
|
29836
29935
|
|
|
29837
|
-
// bazel-out/
|
|
29936
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
|
|
29838
29937
|
var import_typescript79 = __toESM(require("typescript"), 1);
|
|
29839
29938
|
function wrapForDiagnostics(expr) {
|
|
29840
29939
|
return import_typescript79.default.factory.createParenthesizedExpression(expr);
|
|
@@ -29879,7 +29978,7 @@ function translateDiagnostic(diagnostic, resolver) {
|
|
|
29879
29978
|
return makeTemplateDiagnostic(sourceLocation.id, templateSourceMapping, span, diagnostic.category, diagnostic.code, diagnostic.messageText);
|
|
29880
29979
|
}
|
|
29881
29980
|
|
|
29882
|
-
// bazel-out/
|
|
29981
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
|
|
29883
29982
|
var import_typescript80 = __toESM(require("typescript"), 1);
|
|
29884
29983
|
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
29984
|
var UNDEFINED = import_typescript80.default.factory.createIdentifier("undefined");
|
|
@@ -30208,7 +30307,7 @@ var VeSafeLhsInferenceBugDetector = class {
|
|
|
30208
30307
|
};
|
|
30209
30308
|
VeSafeLhsInferenceBugDetector.SINGLETON = new VeSafeLhsInferenceBugDetector();
|
|
30210
30309
|
|
|
30211
|
-
// bazel-out/
|
|
30310
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_semantics.mjs
|
|
30212
30311
|
var ExpressionSemanticVisitor = class extends RecursiveAstVisitor {
|
|
30213
30312
|
constructor(templateId, boundTarget, oob) {
|
|
30214
30313
|
super();
|
|
@@ -30231,7 +30330,7 @@ var ExpressionSemanticVisitor = class extends RecursiveAstVisitor {
|
|
|
30231
30330
|
}
|
|
30232
30331
|
};
|
|
30233
30332
|
|
|
30234
|
-
// bazel-out/
|
|
30333
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
30235
30334
|
var TcbGenericContextBehavior;
|
|
30236
30335
|
(function(TcbGenericContextBehavior2) {
|
|
30237
30336
|
TcbGenericContextBehavior2[TcbGenericContextBehavior2["UseEmitter"] = 0] = "UseEmitter";
|
|
@@ -30553,9 +30652,9 @@ var TcbDirectiveCtorOp = class extends TcbOp {
|
|
|
30553
30652
|
});
|
|
30554
30653
|
}
|
|
30555
30654
|
}
|
|
30556
|
-
for (const
|
|
30557
|
-
if (!genericInputs.has(
|
|
30558
|
-
genericInputs.set(
|
|
30655
|
+
for (const { classPropertyName } of this.dir.inputs) {
|
|
30656
|
+
if (!genericInputs.has(classPropertyName)) {
|
|
30657
|
+
genericInputs.set(classPropertyName, { type: "unset", field: classPropertyName });
|
|
30559
30658
|
}
|
|
30560
30659
|
}
|
|
30561
30660
|
const typeCtor = tcbCallTypeCtor(this.dir, this.tcb, Array.from(genericInputs.values()));
|
|
@@ -31334,7 +31433,7 @@ var TcbEventHandlerTranslator = class extends TcbExpressionTranslator {
|
|
|
31334
31433
|
}
|
|
31335
31434
|
};
|
|
31336
31435
|
|
|
31337
|
-
// bazel-out/
|
|
31436
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
|
|
31338
31437
|
var import_typescript82 = __toESM(require("typescript"), 1);
|
|
31339
31438
|
var TypeCheckFile = class extends Environment {
|
|
31340
31439
|
constructor(fileName, config, refEmitter, reflector, compilerHost) {
|
|
@@ -31370,7 +31469,7 @@ var TypeCheckFile = class extends Environment {
|
|
|
31370
31469
|
}
|
|
31371
31470
|
};
|
|
31372
31471
|
|
|
31373
|
-
// bazel-out/
|
|
31472
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
31374
31473
|
var InliningMode;
|
|
31375
31474
|
(function(InliningMode2) {
|
|
31376
31475
|
InliningMode2[InliningMode2["InlineOps"] = 0] = "InlineOps";
|
|
@@ -31608,7 +31707,7 @@ function splitStringAtPoints(str, points) {
|
|
|
31608
31707
|
return splits;
|
|
31609
31708
|
}
|
|
31610
31709
|
|
|
31611
|
-
// bazel-out/
|
|
31710
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/line_mappings.mjs
|
|
31612
31711
|
var LF_CHAR = 10;
|
|
31613
31712
|
var CR_CHAR = 13;
|
|
31614
31713
|
var LINE_SEP_CHAR = 8232;
|
|
@@ -31649,7 +31748,7 @@ function findClosestLineStartPosition(linesMap, position, low = 0, high = linesM
|
|
|
31649
31748
|
return low - 1;
|
|
31650
31749
|
}
|
|
31651
31750
|
|
|
31652
|
-
// bazel-out/
|
|
31751
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
|
|
31653
31752
|
var TemplateSource = class {
|
|
31654
31753
|
constructor(mapping, file) {
|
|
31655
31754
|
this.mapping = mapping;
|
|
@@ -31700,7 +31799,7 @@ var TemplateSourceManager = class {
|
|
|
31700
31799
|
}
|
|
31701
31800
|
};
|
|
31702
31801
|
|
|
31703
|
-
// bazel-out/
|
|
31802
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
|
|
31704
31803
|
var import_typescript84 = __toESM(require("typescript"), 1);
|
|
31705
31804
|
var SymbolBuilder = class {
|
|
31706
31805
|
constructor(tcbPath, tcbIsShim, typeCheckBlock, templateData, componentScopeReader, getTypeChecker) {
|
|
@@ -32177,7 +32276,7 @@ function sourceSpanEqual(a, b) {
|
|
|
32177
32276
|
return a.start.offset === b.start.offset && a.end.offset === b.end.offset;
|
|
32178
32277
|
}
|
|
32179
32278
|
|
|
32180
|
-
// bazel-out/
|
|
32279
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
|
|
32181
32280
|
var REGISTRY2 = new DomElementSchemaRegistry();
|
|
32182
32281
|
var TemplateTypeCheckerImpl = class {
|
|
32183
32282
|
constructor(originalProgram, programDriver, typeCheckAdapter, config, refEmitter, reflector, compilerHost, priorBuild, metaReader, localMetaReader, ngModuleIndex, componentScopeReader, typeCheckScopeRegistry, perf) {
|
|
@@ -32870,7 +32969,7 @@ var SingleShimTypeCheckingHost = class extends SingleFileTypeCheckingHost {
|
|
|
32870
32969
|
}
|
|
32871
32970
|
};
|
|
32872
32971
|
|
|
32873
|
-
// bazel-out/
|
|
32972
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
|
|
32874
32973
|
var TemplateCheckWithVisitor = class {
|
|
32875
32974
|
run(ctx, component, template) {
|
|
32876
32975
|
const visitor = new TemplateVisitor2(ctx, component, this);
|
|
@@ -32946,7 +33045,7 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor {
|
|
|
32946
33045
|
}
|
|
32947
33046
|
};
|
|
32948
33047
|
|
|
32949
|
-
// bazel-out/
|
|
33048
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
|
|
32950
33049
|
var InvalidBananaInBoxCheck = class extends TemplateCheckWithVisitor {
|
|
32951
33050
|
constructor() {
|
|
32952
33051
|
super(...arguments);
|
|
@@ -32971,7 +33070,7 @@ var factory = {
|
|
|
32971
33070
|
create: () => new InvalidBananaInBoxCheck()
|
|
32972
33071
|
};
|
|
32973
33072
|
|
|
32974
|
-
// bazel-out/
|
|
33073
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.mjs
|
|
32975
33074
|
var KNOWN_CONTROL_FLOW_DIRECTIVES = /* @__PURE__ */ new Map([
|
|
32976
33075
|
["ngIf", "NgIf"],
|
|
32977
33076
|
["ngFor", "NgFor"],
|
|
@@ -33015,7 +33114,7 @@ var factory2 = {
|
|
|
33015
33114
|
}
|
|
33016
33115
|
};
|
|
33017
33116
|
|
|
33018
|
-
// bazel-out/
|
|
33117
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.mjs
|
|
33019
33118
|
var MissingNgForOfLetCheck = class extends TemplateCheckWithVisitor {
|
|
33020
33119
|
constructor() {
|
|
33021
33120
|
super(...arguments);
|
|
@@ -33047,7 +33146,7 @@ var factory3 = {
|
|
|
33047
33146
|
create: () => new MissingNgForOfLetCheck()
|
|
33048
33147
|
};
|
|
33049
33148
|
|
|
33050
|
-
// bazel-out/
|
|
33149
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
|
|
33051
33150
|
var import_typescript87 = __toESM(require("typescript"), 1);
|
|
33052
33151
|
var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
33053
33152
|
constructor() {
|
|
@@ -33091,7 +33190,7 @@ var factory4 = {
|
|
|
33091
33190
|
}
|
|
33092
33191
|
};
|
|
33093
33192
|
|
|
33094
|
-
// bazel-out/
|
|
33193
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.mjs
|
|
33095
33194
|
var import_typescript88 = __toESM(require("typescript"), 1);
|
|
33096
33195
|
var OptionalChainNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
33097
33196
|
constructor() {
|
|
@@ -33136,7 +33235,7 @@ var factory5 = {
|
|
|
33136
33235
|
}
|
|
33137
33236
|
};
|
|
33138
33237
|
|
|
33139
|
-
// bazel-out/
|
|
33238
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.mjs
|
|
33140
33239
|
var STYLE_SUFFIXES = ["px", "%", "em"];
|
|
33141
33240
|
var SuffixNotSupportedCheck = class extends TemplateCheckWithVisitor {
|
|
33142
33241
|
constructor() {
|
|
@@ -33159,7 +33258,7 @@ var factory6 = {
|
|
|
33159
33258
|
create: () => new SuffixNotSupportedCheck()
|
|
33160
33259
|
};
|
|
33161
33260
|
|
|
33162
|
-
// bazel-out/
|
|
33261
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.mjs
|
|
33163
33262
|
var TextAttributeNotBindingSpec = class extends TemplateCheckWithVisitor {
|
|
33164
33263
|
constructor() {
|
|
33165
33264
|
super(...arguments);
|
|
@@ -33197,10 +33296,10 @@ var factory7 = {
|
|
|
33197
33296
|
create: () => new TextAttributeNotBindingSpec()
|
|
33198
33297
|
};
|
|
33199
33298
|
|
|
33200
|
-
// bazel-out/
|
|
33299
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
33201
33300
|
var import_typescript89 = __toESM(require("typescript"), 1);
|
|
33202
33301
|
|
|
33203
|
-
// bazel-out/
|
|
33302
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
|
|
33204
33303
|
var DiagnosticCategoryLabel;
|
|
33205
33304
|
(function(DiagnosticCategoryLabel2) {
|
|
33206
33305
|
DiagnosticCategoryLabel2["Warning"] = "warning";
|
|
@@ -33208,7 +33307,7 @@ var DiagnosticCategoryLabel;
|
|
|
33208
33307
|
DiagnosticCategoryLabel2["Suppress"] = "suppress";
|
|
33209
33308
|
})(DiagnosticCategoryLabel || (DiagnosticCategoryLabel = {}));
|
|
33210
33309
|
|
|
33211
|
-
// bazel-out/
|
|
33310
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
33212
33311
|
var ExtendedTemplateCheckerImpl = class {
|
|
33213
33312
|
constructor(templateTypeChecker, typeChecker, templateCheckFactories, options) {
|
|
33214
33313
|
var _a, _b, _c, _d, _e;
|
|
@@ -33260,7 +33359,7 @@ function assertNever(value) {
|
|
|
33260
33359
|
${value}`);
|
|
33261
33360
|
}
|
|
33262
33361
|
|
|
33263
|
-
// bazel-out/
|
|
33362
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
|
|
33264
33363
|
var ALL_DIAGNOSTIC_FACTORIES = [
|
|
33265
33364
|
factory,
|
|
33266
33365
|
factory4,
|
|
@@ -33271,7 +33370,7 @@ var ALL_DIAGNOSTIC_FACTORIES = [
|
|
|
33271
33370
|
factory6
|
|
33272
33371
|
];
|
|
33273
33372
|
|
|
33274
|
-
// bazel-out/
|
|
33373
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
33275
33374
|
var CompilationTicketKind;
|
|
33276
33375
|
(function(CompilationTicketKind2) {
|
|
33277
33376
|
CompilationTicketKind2[CompilationTicketKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -33958,7 +34057,7 @@ function versionMapFromProgram(program, driver) {
|
|
|
33958
34057
|
return versions;
|
|
33959
34058
|
}
|
|
33960
34059
|
|
|
33961
|
-
// bazel-out/
|
|
34060
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
|
|
33962
34061
|
var import_typescript92 = __toESM(require("typescript"), 1);
|
|
33963
34062
|
var DelegatingCompilerHost2 = class {
|
|
33964
34063
|
constructor(delegate) {
|
|
@@ -34091,7 +34190,7 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
|
|
|
34091
34190
|
}
|
|
34092
34191
|
};
|
|
34093
34192
|
|
|
34094
|
-
// bazel-out/
|
|
34193
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
34095
34194
|
var NgtscProgram = class {
|
|
34096
34195
|
constructor(rootNames, options, delegateHost, oldProgram) {
|
|
34097
34196
|
this.options = options;
|
|
@@ -34309,21 +34408,21 @@ function mergeEmitResults(emitResults) {
|
|
|
34309
34408
|
return { diagnostics, emitSkipped, emittedFiles };
|
|
34310
34409
|
}
|
|
34311
34410
|
|
|
34312
|
-
// bazel-out/
|
|
34411
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
|
|
34313
34412
|
function createProgram({ rootNames, options, host, oldProgram }) {
|
|
34314
34413
|
return new NgtscProgram(rootNames, options, host, oldProgram);
|
|
34315
34414
|
}
|
|
34316
34415
|
|
|
34317
|
-
// bazel-out/
|
|
34416
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
34318
34417
|
var import_typescript96 = __toESM(require("typescript"), 1);
|
|
34319
34418
|
|
|
34320
|
-
// bazel-out/
|
|
34419
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
|
|
34321
34420
|
var import_typescript95 = __toESM(require("typescript"), 1);
|
|
34322
34421
|
|
|
34323
|
-
// bazel-out/
|
|
34422
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/downlevel_decorators_transform/downlevel_decorators_transform.mjs
|
|
34324
34423
|
var import_typescript97 = __toESM(require("typescript"), 1);
|
|
34325
34424
|
|
|
34326
|
-
// bazel-out/
|
|
34425
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/private/tooling.mjs
|
|
34327
34426
|
var GLOBAL_DEFS_FOR_TERSER = {
|
|
34328
34427
|
ngDevMode: false,
|
|
34329
34428
|
ngI18nClosureMode: false
|
|
@@ -34332,7 +34431,7 @@ var GLOBAL_DEFS_FOR_TERSER_WITH_AOT = __spreadProps(__spreadValues({}, GLOBAL_DE
|
|
|
34332
34431
|
ngJitMode: false
|
|
34333
34432
|
});
|
|
34334
34433
|
|
|
34335
|
-
// bazel-out/
|
|
34434
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/logging/src/logger.mjs
|
|
34336
34435
|
var LogLevel;
|
|
34337
34436
|
(function(LogLevel2) {
|
|
34338
34437
|
LogLevel2[LogLevel2["debug"] = 0] = "debug";
|
|
@@ -34341,7 +34440,7 @@ var LogLevel;
|
|
|
34341
34440
|
LogLevel2[LogLevel2["error"] = 3] = "error";
|
|
34342
34441
|
})(LogLevel || (LogLevel = {}));
|
|
34343
34442
|
|
|
34344
|
-
// bazel-out/
|
|
34443
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/logging/src/console_logger.mjs
|
|
34345
34444
|
var RESET = "\x1B[0m";
|
|
34346
34445
|
var RED = "\x1B[31m";
|
|
34347
34446
|
var YELLOW = "\x1B[33m";
|
|
@@ -34350,233 +34449,20 @@ var DEBUG = `${BLUE}Debug:${RESET}`;
|
|
|
34350
34449
|
var WARN = `${YELLOW}Warning:${RESET}`;
|
|
34351
34450
|
var ERROR = `${RED}Error:${RESET}`;
|
|
34352
34451
|
|
|
34353
|
-
// bazel-out/
|
|
34452
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/index.mjs
|
|
34354
34453
|
setFileSystem(new NodeJSFileSystem());
|
|
34355
34454
|
|
|
34356
|
-
// bazel-out/
|
|
34455
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/index.mjs
|
|
34357
34456
|
var import_fs2 = require("fs");
|
|
34358
34457
|
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
|
-
}
|
|
34458
|
+
var import_typescript110 = __toESM(require("typescript"), 1);
|
|
34440
34459
|
|
|
34441
|
-
// bazel-out/
|
|
34442
|
-
var import_path4 = require("path");
|
|
34460
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
|
|
34443
34461
|
var import_typescript99 = __toESM(require("typescript"), 1);
|
|
34444
34462
|
|
|
34445
|
-
// bazel-out/
|
|
34446
|
-
var
|
|
34463
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/import_manager.mjs
|
|
34464
|
+
var import_path4 = require("path");
|
|
34447
34465
|
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
34466
|
var ImportManager2 = class {
|
|
34581
34467
|
constructor(getUpdateRecorder, printer) {
|
|
34582
34468
|
this.getUpdateRecorder = getUpdateRecorder;
|
|
@@ -34588,7 +34474,7 @@ var ImportManager2 = class {
|
|
|
34588
34474
|
this.importCache = [];
|
|
34589
34475
|
}
|
|
34590
34476
|
addImportToSourceFile(sourceFile, symbolName, moduleName, alias = null, typeImport = false) {
|
|
34591
|
-
const sourceDir = (0,
|
|
34477
|
+
const sourceDir = (0, import_path4.dirname)(sourceFile.fileName);
|
|
34592
34478
|
let importStartIndex = 0;
|
|
34593
34479
|
let existingImport = null;
|
|
34594
34480
|
const cachedImport = this.importCache.find((c) => c.sourceFile === sourceFile && c.symbolName === symbolName && c.moduleName === moduleName && c.alias === alias);
|
|
@@ -34597,21 +34483,21 @@ var ImportManager2 = class {
|
|
|
34597
34483
|
}
|
|
34598
34484
|
for (let i = sourceFile.statements.length - 1; i >= 0; i--) {
|
|
34599
34485
|
const statement = sourceFile.statements[i];
|
|
34600
|
-
if (!
|
|
34486
|
+
if (!import_typescript98.default.isImportDeclaration(statement) || !import_typescript98.default.isStringLiteral(statement.moduleSpecifier) || !statement.importClause) {
|
|
34601
34487
|
continue;
|
|
34602
34488
|
}
|
|
34603
34489
|
if (importStartIndex === 0) {
|
|
34604
34490
|
importStartIndex = this._getEndPositionOfNode(statement);
|
|
34605
34491
|
}
|
|
34606
34492
|
const moduleSpecifier = statement.moduleSpecifier.text;
|
|
34607
|
-
if (moduleSpecifier.startsWith(".") && (0,
|
|
34493
|
+
if (moduleSpecifier.startsWith(".") && (0, import_path4.resolve)(sourceDir, moduleSpecifier) !== (0, import_path4.resolve)(sourceDir, moduleName) || moduleSpecifier !== moduleName) {
|
|
34608
34494
|
continue;
|
|
34609
34495
|
}
|
|
34610
34496
|
if (statement.importClause.namedBindings) {
|
|
34611
34497
|
const namedBindings = statement.importClause.namedBindings;
|
|
34612
|
-
if (
|
|
34613
|
-
return
|
|
34614
|
-
} else if (
|
|
34498
|
+
if (import_typescript98.default.isNamespaceImport(namedBindings) && !typeImport) {
|
|
34499
|
+
return import_typescript98.default.factory.createPropertyAccessExpression(import_typescript98.default.factory.createIdentifier(namedBindings.name.text), import_typescript98.default.factory.createIdentifier(alias || symbolName || "default"));
|
|
34500
|
+
} else if (import_typescript98.default.isNamedImports(namedBindings) && symbolName) {
|
|
34615
34501
|
const existingElement = namedBindings.elements.find((e) => {
|
|
34616
34502
|
if (alias) {
|
|
34617
34503
|
return e.propertyName && e.name.text === alias && e.propertyName.text === symbolName;
|
|
@@ -34619,12 +34505,12 @@ var ImportManager2 = class {
|
|
|
34619
34505
|
return e.propertyName ? e.propertyName.text === symbolName : e.name.text === symbolName;
|
|
34620
34506
|
});
|
|
34621
34507
|
if (existingElement) {
|
|
34622
|
-
return
|
|
34508
|
+
return import_typescript98.default.factory.createIdentifier(existingElement.name.text);
|
|
34623
34509
|
}
|
|
34624
34510
|
existingImport = statement;
|
|
34625
34511
|
}
|
|
34626
34512
|
} else if (statement.importClause.name && !symbolName) {
|
|
34627
|
-
return
|
|
34513
|
+
return import_typescript98.default.factory.createIdentifier(statement.importClause.name.text);
|
|
34628
34514
|
}
|
|
34629
34515
|
}
|
|
34630
34516
|
if (existingImport) {
|
|
@@ -34648,7 +34534,7 @@ var ImportManager2 = class {
|
|
|
34648
34534
|
if (!importMap.has(moduleName)) {
|
|
34649
34535
|
importMap.set(moduleName, []);
|
|
34650
34536
|
}
|
|
34651
|
-
importMap.get(moduleName).push(
|
|
34537
|
+
importMap.get(moduleName).push(import_typescript98.default.factory.createImportSpecifier(false, propertyName, name));
|
|
34652
34538
|
} else {
|
|
34653
34539
|
const importMap = this.newImports.get(sourceFile).defaultImports;
|
|
34654
34540
|
identifier = this._getUniqueIdentifier(sourceFile, "defaultExport");
|
|
@@ -34662,19 +34548,19 @@ var ImportManager2 = class {
|
|
|
34662
34548
|
const sourceFile = importDecl.getSourceFile();
|
|
34663
34549
|
const recorder = this.getUpdateRecorder(sourceFile);
|
|
34664
34550
|
const namedBindings = importDecl.importClause.namedBindings;
|
|
34665
|
-
const newNamedBindings =
|
|
34666
|
-
const newNamedBindingsText = this.printer.printNode(
|
|
34551
|
+
const newNamedBindings = import_typescript98.default.factory.updateNamedImports(namedBindings, namedBindings.elements.concat(expressions.map(({ propertyName, importName }) => import_typescript98.default.factory.createImportSpecifier(false, propertyName, importName))));
|
|
34552
|
+
const newNamedBindingsText = this.printer.printNode(import_typescript98.default.EmitHint.Unspecified, newNamedBindings, sourceFile);
|
|
34667
34553
|
recorder.updateExistingImport(namedBindings, newNamedBindingsText);
|
|
34668
34554
|
});
|
|
34669
34555
|
this.newImports.forEach(({ importStartIndex, defaultImports, namedImports }, sourceFile) => {
|
|
34670
34556
|
const recorder = this.getUpdateRecorder(sourceFile);
|
|
34671
34557
|
const useSingleQuotes = this._getQuoteStyle(sourceFile) === 0;
|
|
34672
34558
|
defaultImports.forEach((identifier, moduleName) => {
|
|
34673
|
-
const newImport =
|
|
34559
|
+
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
34560
|
recorder.addNewImport(importStartIndex, this._getNewImportText(importStartIndex, newImport, sourceFile));
|
|
34675
34561
|
});
|
|
34676
34562
|
namedImports.forEach((specifiers, moduleName) => {
|
|
34677
|
-
const newImport =
|
|
34563
|
+
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
34564
|
recorder.addNewImport(importStartIndex, this._getNewImportText(importStartIndex, newImport, sourceFile));
|
|
34679
34565
|
});
|
|
34680
34566
|
});
|
|
@@ -34682,7 +34568,7 @@ var ImportManager2 = class {
|
|
|
34682
34568
|
_getUniqueIdentifier(sourceFile, baseName) {
|
|
34683
34569
|
if (this.isUniqueIdentifierName(sourceFile, baseName)) {
|
|
34684
34570
|
this._recordUsedIdentifier(sourceFile, baseName);
|
|
34685
|
-
return
|
|
34571
|
+
return import_typescript98.default.factory.createIdentifier(baseName);
|
|
34686
34572
|
}
|
|
34687
34573
|
let name = null;
|
|
34688
34574
|
let counter = 1;
|
|
@@ -34690,7 +34576,7 @@ var ImportManager2 = class {
|
|
|
34690
34576
|
name = `${baseName}_${counter++}`;
|
|
34691
34577
|
} while (!this.isUniqueIdentifierName(sourceFile, name));
|
|
34692
34578
|
this._recordUsedIdentifier(sourceFile, name);
|
|
34693
|
-
return
|
|
34579
|
+
return import_typescript98.default.factory.createIdentifier(name);
|
|
34694
34580
|
}
|
|
34695
34581
|
isUniqueIdentifierName(sourceFile, name) {
|
|
34696
34582
|
if (this.usedIdentifierNames.has(sourceFile) && this.usedIdentifierNames.get(sourceFile).indexOf(name) !== -1) {
|
|
@@ -34699,7 +34585,7 @@ var ImportManager2 = class {
|
|
|
34699
34585
|
const nodeQueue = [sourceFile];
|
|
34700
34586
|
while (nodeQueue.length) {
|
|
34701
34587
|
const node = nodeQueue.shift();
|
|
34702
|
-
if (
|
|
34588
|
+
if (import_typescript98.default.isIdentifier(node) && node.text === name && (!import_typescript98.default.isImportSpecifier(node.parent) || node.parent.propertyName !== node)) {
|
|
34703
34589
|
return false;
|
|
34704
34590
|
}
|
|
34705
34591
|
nodeQueue.push(...node.getChildren());
|
|
@@ -34711,21 +34597,21 @@ var ImportManager2 = class {
|
|
|
34711
34597
|
}
|
|
34712
34598
|
_getEndPositionOfNode(node) {
|
|
34713
34599
|
const nodeEndPos = node.getEnd();
|
|
34714
|
-
const commentRanges =
|
|
34600
|
+
const commentRanges = import_typescript98.default.getTrailingCommentRanges(node.getSourceFile().text, nodeEndPos);
|
|
34715
34601
|
if (!commentRanges || !commentRanges.length) {
|
|
34716
34602
|
return nodeEndPos;
|
|
34717
34603
|
}
|
|
34718
34604
|
return commentRanges[commentRanges.length - 1].end;
|
|
34719
34605
|
}
|
|
34720
34606
|
_getNewImportText(importStartIndex, newImport, sourceFile) {
|
|
34721
|
-
const text = this.printer.printNode(
|
|
34607
|
+
const text = this.printer.printNode(import_typescript98.default.EmitHint.Unspecified, newImport, sourceFile);
|
|
34722
34608
|
return importStartIndex === 0 ? `${text}
|
|
34723
34609
|
` : `
|
|
34724
34610
|
${text}`;
|
|
34725
34611
|
}
|
|
34726
34612
|
_getImportParts(sourceFile, symbolName, alias) {
|
|
34727
|
-
const symbolIdentifier =
|
|
34728
|
-
const aliasIdentifier = alias ?
|
|
34613
|
+
const symbolIdentifier = import_typescript98.default.factory.createIdentifier(symbolName);
|
|
34614
|
+
const aliasIdentifier = alias ? import_typescript98.default.factory.createIdentifier(alias) : null;
|
|
34729
34615
|
const generatedUniqueIdentifier = this._getUniqueIdentifier(sourceFile, alias || symbolName);
|
|
34730
34616
|
const needsGeneratedUniqueName = generatedUniqueIdentifier.text !== (alias || symbolName);
|
|
34731
34617
|
let propertyName;
|
|
@@ -34745,7 +34631,7 @@ ${text}`;
|
|
|
34745
34631
|
if (!this.quoteStyles.hasOwnProperty(sourceFile.fileName)) {
|
|
34746
34632
|
let quoteStyle;
|
|
34747
34633
|
for (const statement of sourceFile.statements) {
|
|
34748
|
-
if (
|
|
34634
|
+
if (import_typescript98.default.isImportDeclaration(statement) && import_typescript98.default.isStringLiteralLike(statement.moduleSpecifier)) {
|
|
34749
34635
|
quoteStyle = statement.moduleSpecifier.getText().trim().startsWith('"') ? 1 : 0;
|
|
34750
34636
|
break;
|
|
34751
34637
|
}
|
|
@@ -34756,7 +34642,7 @@ ${text}`;
|
|
|
34756
34642
|
}
|
|
34757
34643
|
};
|
|
34758
34644
|
|
|
34759
|
-
// bazel-out/
|
|
34645
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
|
|
34760
34646
|
var ChangeTracker = class {
|
|
34761
34647
|
constructor(_printer, _importRemapper) {
|
|
34762
34648
|
this._printer = _printer;
|
|
@@ -34773,7 +34659,7 @@ var ChangeTracker = class {
|
|
|
34773
34659
|
replaceText(sourceFile, start, removeLength, text) {
|
|
34774
34660
|
this._trackChange(sourceFile, { start, removeLength, text });
|
|
34775
34661
|
}
|
|
34776
|
-
replaceNode(oldNode, newNode, emitHint =
|
|
34662
|
+
replaceNode(oldNode, newNode, emitHint = import_typescript99.default.EmitHint.Unspecified, sourceFileWhenPrinting) {
|
|
34777
34663
|
const sourceFile = oldNode.getSourceFile();
|
|
34778
34664
|
this.replaceText(sourceFile, oldNode.getStart(), oldNode.getWidth(), this._printer.printNode(emitHint, newNode, sourceFileWhenPrinting || sourceFile));
|
|
34779
34665
|
}
|
|
@@ -34782,7 +34668,7 @@ var ChangeTracker = class {
|
|
|
34782
34668
|
}
|
|
34783
34669
|
addImport(sourceFile, symbolName, moduleName, alias = null) {
|
|
34784
34670
|
if (this._importRemapper) {
|
|
34785
|
-
moduleName = this._importRemapper(moduleName);
|
|
34671
|
+
moduleName = this._importRemapper(moduleName, sourceFile.fileName);
|
|
34786
34672
|
}
|
|
34787
34673
|
moduleName = normalizePath(moduleName);
|
|
34788
34674
|
return this._importManager.addImportToSourceFile(sourceFile, symbolName, moduleName, alias);
|
|
@@ -34805,6 +34691,225 @@ var ChangeTracker = class {
|
|
|
34805
34691
|
}
|
|
34806
34692
|
}
|
|
34807
34693
|
};
|
|
34694
|
+
function normalizePath(path3) {
|
|
34695
|
+
return path3.replace(/\\/g, "/");
|
|
34696
|
+
}
|
|
34697
|
+
|
|
34698
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
|
|
34699
|
+
var import_core13 = require("@angular-devkit/core");
|
|
34700
|
+
function getProjectTsConfigPaths(tree) {
|
|
34701
|
+
return __async(this, null, function* () {
|
|
34702
|
+
const buildPaths = /* @__PURE__ */ new Set();
|
|
34703
|
+
const testPaths = /* @__PURE__ */ new Set();
|
|
34704
|
+
const workspace = yield getWorkspace(tree);
|
|
34705
|
+
for (const [, project] of workspace.projects) {
|
|
34706
|
+
for (const [name, target] of project.targets) {
|
|
34707
|
+
if (name !== "build" && name !== "test") {
|
|
34708
|
+
continue;
|
|
34709
|
+
}
|
|
34710
|
+
for (const [, options] of allTargetOptions(target)) {
|
|
34711
|
+
const tsConfig = options.tsConfig;
|
|
34712
|
+
if (typeof tsConfig !== "string" || !tree.exists(tsConfig)) {
|
|
34713
|
+
continue;
|
|
34714
|
+
}
|
|
34715
|
+
if (name === "build") {
|
|
34716
|
+
buildPaths.add((0, import_core13.normalize)(tsConfig));
|
|
34717
|
+
} else {
|
|
34718
|
+
testPaths.add((0, import_core13.normalize)(tsConfig));
|
|
34719
|
+
}
|
|
34720
|
+
}
|
|
34721
|
+
}
|
|
34722
|
+
}
|
|
34723
|
+
return {
|
|
34724
|
+
buildPaths: [...buildPaths],
|
|
34725
|
+
testPaths: [...testPaths]
|
|
34726
|
+
};
|
|
34727
|
+
});
|
|
34728
|
+
}
|
|
34729
|
+
function* allTargetOptions(target) {
|
|
34730
|
+
if (target.options) {
|
|
34731
|
+
yield [void 0, target.options];
|
|
34732
|
+
}
|
|
34733
|
+
if (!target.configurations) {
|
|
34734
|
+
return;
|
|
34735
|
+
}
|
|
34736
|
+
for (const [name, options] of Object.entries(target.configurations)) {
|
|
34737
|
+
if (options) {
|
|
34738
|
+
yield [name, options];
|
|
34739
|
+
}
|
|
34740
|
+
}
|
|
34741
|
+
}
|
|
34742
|
+
function createHost(tree) {
|
|
34743
|
+
return {
|
|
34744
|
+
readFile(path3) {
|
|
34745
|
+
return __async(this, null, function* () {
|
|
34746
|
+
const data = tree.read(path3);
|
|
34747
|
+
if (!data) {
|
|
34748
|
+
throw new Error("File not found.");
|
|
34749
|
+
}
|
|
34750
|
+
return import_core13.virtualFs.fileBufferToString(data);
|
|
34751
|
+
});
|
|
34752
|
+
},
|
|
34753
|
+
writeFile(path3, data) {
|
|
34754
|
+
return __async(this, null, function* () {
|
|
34755
|
+
return tree.overwrite(path3, data);
|
|
34756
|
+
});
|
|
34757
|
+
},
|
|
34758
|
+
isDirectory(path3) {
|
|
34759
|
+
return __async(this, null, function* () {
|
|
34760
|
+
return !tree.exists(path3) && tree.getDir(path3).subfiles.length > 0;
|
|
34761
|
+
});
|
|
34762
|
+
},
|
|
34763
|
+
isFile(path3) {
|
|
34764
|
+
return __async(this, null, function* () {
|
|
34765
|
+
return tree.exists(path3);
|
|
34766
|
+
});
|
|
34767
|
+
}
|
|
34768
|
+
};
|
|
34769
|
+
}
|
|
34770
|
+
function getWorkspace(tree) {
|
|
34771
|
+
return __async(this, null, function* () {
|
|
34772
|
+
const host = createHost(tree);
|
|
34773
|
+
const { workspace } = yield import_core13.workspaces.readWorkspace("/", host);
|
|
34774
|
+
return workspace;
|
|
34775
|
+
});
|
|
34776
|
+
}
|
|
34777
|
+
|
|
34778
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
34779
|
+
var import_path5 = require("path");
|
|
34780
|
+
var import_typescript101 = __toESM(require("typescript"), 1);
|
|
34781
|
+
|
|
34782
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
|
|
34783
|
+
var path2 = __toESM(require("path"), 1);
|
|
34784
|
+
var import_typescript100 = __toESM(require("typescript"), 1);
|
|
34785
|
+
function parseTsconfigFile(tsconfigPath, basePath) {
|
|
34786
|
+
const { config } = import_typescript100.default.readConfigFile(tsconfigPath, import_typescript100.default.sys.readFile);
|
|
34787
|
+
const parseConfigHost = {
|
|
34788
|
+
useCaseSensitiveFileNames: import_typescript100.default.sys.useCaseSensitiveFileNames,
|
|
34789
|
+
fileExists: import_typescript100.default.sys.fileExists,
|
|
34790
|
+
readDirectory: import_typescript100.default.sys.readDirectory,
|
|
34791
|
+
readFile: import_typescript100.default.sys.readFile
|
|
34792
|
+
};
|
|
34793
|
+
if (!path2.isAbsolute(basePath)) {
|
|
34794
|
+
throw Error("Unexpected relative base path has been specified.");
|
|
34795
|
+
}
|
|
34796
|
+
return import_typescript100.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
|
|
34797
|
+
}
|
|
34798
|
+
|
|
34799
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
34800
|
+
function createProgramOptions(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles, optionOverrides) {
|
|
34801
|
+
tsconfigPath = (0, import_path5.resolve)(basePath, tsconfigPath);
|
|
34802
|
+
const parsed = parseTsconfigFile(tsconfigPath, (0, import_path5.dirname)(tsconfigPath));
|
|
34803
|
+
const options = optionOverrides ? __spreadValues(__spreadValues({}, parsed.options), optionOverrides) : parsed.options;
|
|
34804
|
+
const host = createMigrationCompilerHost(tree, options, basePath, fakeFileRead);
|
|
34805
|
+
return { rootNames: parsed.fileNames.concat(additionalFiles || []), options, host };
|
|
34806
|
+
}
|
|
34807
|
+
function createMigrationCompilerHost(tree, options, basePath, fakeRead) {
|
|
34808
|
+
const host = import_typescript101.default.createCompilerHost(options, true);
|
|
34809
|
+
const defaultReadFile = host.readFile;
|
|
34810
|
+
host.readFile = (fileName) => {
|
|
34811
|
+
var _a;
|
|
34812
|
+
const treeRelativePath = (0, import_path5.relative)(basePath, fileName);
|
|
34813
|
+
let result = fakeRead == null ? void 0 : fakeRead(treeRelativePath);
|
|
34814
|
+
if (typeof result !== "string") {
|
|
34815
|
+
result = treeRelativePath.startsWith("..") ? defaultReadFile.call(host, fileName) : (_a = tree.read(treeRelativePath)) == null ? void 0 : _a.toString();
|
|
34816
|
+
}
|
|
34817
|
+
return typeof result === "string" ? result.replace(/^\uFEFF/, "") : void 0;
|
|
34818
|
+
};
|
|
34819
|
+
return host;
|
|
34820
|
+
}
|
|
34821
|
+
function canMigrateFile(basePath, sourceFile, program) {
|
|
34822
|
+
if (sourceFile.fileName.endsWith(".ngtypecheck.ts") || sourceFile.isDeclarationFile || program.isSourceFileFromExternalLibrary(sourceFile)) {
|
|
34823
|
+
return false;
|
|
34824
|
+
}
|
|
34825
|
+
return !(0, import_path5.relative)(basePath, sourceFile.fileName).startsWith("..");
|
|
34826
|
+
}
|
|
34827
|
+
|
|
34828
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/prune-modules.mjs
|
|
34829
|
+
var import_typescript106 = __toESM(require("typescript"), 1);
|
|
34830
|
+
|
|
34831
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
|
|
34832
|
+
var import_typescript103 = __toESM(require("typescript"), 1);
|
|
34833
|
+
|
|
34834
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
|
|
34835
|
+
var import_typescript102 = __toESM(require("typescript"), 1);
|
|
34836
|
+
function getImportOfIdentifier(typeChecker, node) {
|
|
34837
|
+
const symbol = typeChecker.getSymbolAtLocation(node);
|
|
34838
|
+
if (!symbol || symbol.declarations === void 0 || !symbol.declarations.length) {
|
|
34839
|
+
return null;
|
|
34840
|
+
}
|
|
34841
|
+
const decl = symbol.declarations[0];
|
|
34842
|
+
if (!import_typescript102.default.isImportSpecifier(decl)) {
|
|
34843
|
+
return null;
|
|
34844
|
+
}
|
|
34845
|
+
const importDecl = decl.parent.parent.parent;
|
|
34846
|
+
if (!import_typescript102.default.isStringLiteral(importDecl.moduleSpecifier)) {
|
|
34847
|
+
return null;
|
|
34848
|
+
}
|
|
34849
|
+
return {
|
|
34850
|
+
name: decl.propertyName ? decl.propertyName.text : decl.name.text,
|
|
34851
|
+
importModule: importDecl.moduleSpecifier.text,
|
|
34852
|
+
node: importDecl
|
|
34853
|
+
};
|
|
34854
|
+
}
|
|
34855
|
+
function getImportSpecifier(sourceFile, moduleName, specifierName) {
|
|
34856
|
+
var _a;
|
|
34857
|
+
for (const node of sourceFile.statements) {
|
|
34858
|
+
if (import_typescript102.default.isImportDeclaration(node) && import_typescript102.default.isStringLiteral(node.moduleSpecifier)) {
|
|
34859
|
+
const isMatch = typeof moduleName === "string" ? node.moduleSpecifier.text === moduleName : moduleName.test(node.moduleSpecifier.text);
|
|
34860
|
+
const namedBindings = (_a = node.importClause) == null ? void 0 : _a.namedBindings;
|
|
34861
|
+
if (isMatch && namedBindings && import_typescript102.default.isNamedImports(namedBindings)) {
|
|
34862
|
+
const match = findImportSpecifier(namedBindings.elements, specifierName);
|
|
34863
|
+
if (match) {
|
|
34864
|
+
return match;
|
|
34865
|
+
}
|
|
34866
|
+
}
|
|
34867
|
+
}
|
|
34868
|
+
}
|
|
34869
|
+
return null;
|
|
34870
|
+
}
|
|
34871
|
+
function findImportSpecifier(nodes, specifierName) {
|
|
34872
|
+
return nodes.find((element) => {
|
|
34873
|
+
const { name, propertyName } = element;
|
|
34874
|
+
return propertyName ? propertyName.text === specifierName : name.text === specifierName;
|
|
34875
|
+
});
|
|
34876
|
+
}
|
|
34877
|
+
|
|
34878
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
|
|
34879
|
+
function getCallDecoratorImport(typeChecker, decorator) {
|
|
34880
|
+
if (!import_typescript103.default.isCallExpression(decorator.expression) || !import_typescript103.default.isIdentifier(decorator.expression.expression)) {
|
|
34881
|
+
return null;
|
|
34882
|
+
}
|
|
34883
|
+
const identifier = decorator.expression.expression;
|
|
34884
|
+
return getImportOfIdentifier(typeChecker, identifier);
|
|
34885
|
+
}
|
|
34886
|
+
|
|
34887
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/ng_decorators.mjs
|
|
34888
|
+
function getAngularDecorators(typeChecker, decorators) {
|
|
34889
|
+
return decorators.map((node) => ({ node, importData: getCallDecoratorImport(typeChecker, node) })).filter(({ importData }) => importData && importData.importModule.startsWith("@angular/")).map(({ node, importData }) => ({
|
|
34890
|
+
node,
|
|
34891
|
+
name: importData.name,
|
|
34892
|
+
moduleName: importData.importModule,
|
|
34893
|
+
importNode: importData.node
|
|
34894
|
+
}));
|
|
34895
|
+
}
|
|
34896
|
+
|
|
34897
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/nodes.mjs
|
|
34898
|
+
var import_typescript104 = __toESM(require("typescript"), 1);
|
|
34899
|
+
function closestNode(node, predicate) {
|
|
34900
|
+
let current = node.parent;
|
|
34901
|
+
while (current && !import_typescript104.default.isSourceFile(current)) {
|
|
34902
|
+
if (predicate(current)) {
|
|
34903
|
+
return current;
|
|
34904
|
+
}
|
|
34905
|
+
current = current.parent;
|
|
34906
|
+
}
|
|
34907
|
+
return null;
|
|
34908
|
+
}
|
|
34909
|
+
|
|
34910
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/util.mjs
|
|
34911
|
+
var import_path6 = require("path");
|
|
34912
|
+
var import_typescript105 = __toESM(require("typescript"), 1);
|
|
34808
34913
|
var UniqueItemTracker = class {
|
|
34809
34914
|
constructor() {
|
|
34810
34915
|
this._nodes = /* @__PURE__ */ new Map();
|
|
@@ -34847,7 +34952,7 @@ var ReferenceResolver = class {
|
|
|
34847
34952
|
const results = /* @__PURE__ */ new Map();
|
|
34848
34953
|
for (const symbol of referencedSymbols) {
|
|
34849
34954
|
for (const ref of symbol.references) {
|
|
34850
|
-
if (!ref.isDefinition || symbol.definition.kind ===
|
|
34955
|
+
if (!ref.isDefinition || symbol.definition.kind === import_typescript105.default.ScriptElementKind.alias) {
|
|
34851
34956
|
if (!results.has(ref.fileName)) {
|
|
34852
34957
|
results.set(ref.fileName, []);
|
|
34853
34958
|
}
|
|
@@ -34871,7 +34976,7 @@ var ReferenceResolver = class {
|
|
|
34871
34976
|
for (const file of highlights) {
|
|
34872
34977
|
if (file.fileName === fileName) {
|
|
34873
34978
|
for (const { textSpan: { start, length }, kind } of file.highlightSpans) {
|
|
34874
|
-
if (kind !==
|
|
34979
|
+
if (kind !== import_typescript105.default.HighlightSpanKind.none) {
|
|
34875
34980
|
results.push([start, start + length]);
|
|
34876
34981
|
}
|
|
34877
34982
|
}
|
|
@@ -34897,19 +35002,19 @@ var ReferenceResolver = class {
|
|
|
34897
35002
|
rootFileNames.push(fileName);
|
|
34898
35003
|
}
|
|
34899
35004
|
});
|
|
34900
|
-
this._languageService =
|
|
35005
|
+
this._languageService = import_typescript105.default.createLanguageService({
|
|
34901
35006
|
getCompilationSettings: () => this._program.getTsProgram().getCompilerOptions(),
|
|
34902
35007
|
getScriptFileNames: () => rootFileNames,
|
|
34903
35008
|
getScriptVersion: () => "0",
|
|
34904
35009
|
getScriptSnapshot: (path3) => {
|
|
34905
35010
|
const content = this._readFile(path3);
|
|
34906
|
-
return content ?
|
|
35011
|
+
return content ? import_typescript105.default.ScriptSnapshot.fromString(content) : void 0;
|
|
34907
35012
|
},
|
|
34908
35013
|
getCurrentDirectory: () => this._basePath,
|
|
34909
|
-
getDefaultLibFileName: (options) =>
|
|
35014
|
+
getDefaultLibFileName: (options) => import_typescript105.default.getDefaultLibFilePath(options),
|
|
34910
35015
|
readFile: (path3) => this._readFile(path3),
|
|
34911
35016
|
fileExists: (path3) => this._host.fileExists(path3)
|
|
34912
|
-
},
|
|
35017
|
+
}, import_typescript105.default.createDocumentRegistry(), import_typescript105.default.LanguageServiceMode.PartialSemantic);
|
|
34913
35018
|
}
|
|
34914
35019
|
return this._languageService;
|
|
34915
35020
|
}
|
|
@@ -34939,10 +35044,10 @@ function offsetsToNodes(lookup, offsets, results) {
|
|
|
34939
35044
|
}
|
|
34940
35045
|
function findClassDeclaration(reference, typeChecker) {
|
|
34941
35046
|
var _a, _b;
|
|
34942
|
-
return ((_b = (_a = typeChecker.getTypeAtLocation(reference).getSymbol()) == null ? void 0 : _a.declarations) == null ? void 0 : _b.find(
|
|
35047
|
+
return ((_b = (_a = typeChecker.getTypeAtLocation(reference).getSymbol()) == null ? void 0 : _a.declarations) == null ? void 0 : _b.find(import_typescript105.default.isClassDeclaration)) || null;
|
|
34943
35048
|
}
|
|
34944
35049
|
function findLiteralProperty(literal3, name) {
|
|
34945
|
-
return literal3.properties.find((prop) => prop.name &&
|
|
35050
|
+
return literal3.properties.find((prop) => prop.name && import_typescript105.default.isIdentifier(prop.name) && prop.name.text === name);
|
|
34946
35051
|
}
|
|
34947
35052
|
function getRelativeImportPath(fromFile, toFile) {
|
|
34948
35053
|
let path3 = (0, import_path6.relative)((0, import_path6.dirname)(fromFile), toFile).replace(/\.ts$/, "");
|
|
@@ -34951,9 +35056,6 @@ function getRelativeImportPath(fromFile, toFile) {
|
|
|
34951
35056
|
}
|
|
34952
35057
|
return normalizePath(path3);
|
|
34953
35058
|
}
|
|
34954
|
-
function normalizePath(path3) {
|
|
34955
|
-
return path3.replace(/\\/g, "/");
|
|
34956
|
-
}
|
|
34957
35059
|
function knownInternalAliasRemapper(imports) {
|
|
34958
35060
|
return imports.map((current) => current.moduleSpecifier === "@angular/common" && current.symbolName === "NgForOf" ? __spreadProps(__spreadValues({}, current), { symbolName: "NgFor" }) : current);
|
|
34959
35061
|
}
|
|
@@ -34966,16 +35068,16 @@ function isClassReferenceInAngularModule(node, className, moduleName, typeChecke
|
|
|
34966
35068
|
const externalName = `@angular/${moduleName}`;
|
|
34967
35069
|
const internalName = `angular2/rc/packages/${moduleName}`;
|
|
34968
35070
|
return !!((_a = symbol == null ? void 0 : symbol.declarations) == null ? void 0 : _a.some((decl) => {
|
|
34969
|
-
const closestClass = closestOrSelf(decl,
|
|
35071
|
+
const closestClass = closestOrSelf(decl, import_typescript105.default.isClassDeclaration);
|
|
34970
35072
|
const closestClassFileName = closestClass == null ? void 0 : closestClass.getSourceFile().fileName;
|
|
34971
|
-
if (!closestClass || !closestClassFileName || !closestClass.name || !
|
|
35073
|
+
if (!closestClass || !closestClassFileName || !closestClass.name || !import_typescript105.default.isIdentifier(closestClass.name) || !closestClassFileName.includes(externalName) && !closestClassFileName.includes(internalName)) {
|
|
34972
35074
|
return false;
|
|
34973
35075
|
}
|
|
34974
35076
|
return typeof className === "string" ? closestClass.name.text === className : className.test(closestClass.name.text);
|
|
34975
35077
|
}));
|
|
34976
35078
|
}
|
|
34977
35079
|
|
|
34978
|
-
// bazel-out/
|
|
35080
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/prune-modules.mjs
|
|
34979
35081
|
function pruneNgModules(program, host, basePath, rootFileNames, sourceFiles, printer, importRemapper, referenceLookupExcludedFiles) {
|
|
34980
35082
|
const filesToRemove = /* @__PURE__ */ new Set();
|
|
34981
35083
|
const tracker = new ChangeTracker(printer, importRemapper);
|
|
@@ -34993,10 +35095,10 @@ function pruneNgModules(program, host, basePath, rootFileNames, sourceFiles, pri
|
|
|
34993
35095
|
const nodesToRemove = /* @__PURE__ */ new Set();
|
|
34994
35096
|
sourceFiles.forEach(function walk(node) {
|
|
34995
35097
|
var _a, _b;
|
|
34996
|
-
if (
|
|
35098
|
+
if (import_typescript106.default.isClassDeclaration(node) && canRemoveClass(node, typeChecker)) {
|
|
34997
35099
|
collectRemovalLocations(node, removalLocations, referenceResolver, program);
|
|
34998
35100
|
classesToRemove.add(node);
|
|
34999
|
-
} else if (
|
|
35101
|
+
} else if (import_typescript106.default.isExportDeclaration(node) && !node.exportClause && node.moduleSpecifier && import_typescript106.default.isStringLiteralLike(node.moduleSpecifier) && node.moduleSpecifier.text.startsWith(".")) {
|
|
35000
35102
|
const exportedSourceFile = (_b = (_a = typeChecker.getSymbolAtLocation(node.moduleSpecifier)) == null ? void 0 : _a.valueDeclaration) == null ? void 0 : _b.getSourceFile();
|
|
35001
35103
|
if (exportedSourceFile) {
|
|
35002
35104
|
barrelExports.track(exportedSourceFile, node);
|
|
@@ -35042,17 +35144,17 @@ function collectRemovalLocations(ngModule, removalLocations, referenceResolver,
|
|
|
35042
35144
|
}
|
|
35043
35145
|
}
|
|
35044
35146
|
for (const node of nodes) {
|
|
35045
|
-
const closestArray = closestNode(node,
|
|
35147
|
+
const closestArray = closestNode(node, import_typescript106.default.isArrayLiteralExpression);
|
|
35046
35148
|
if (closestArray) {
|
|
35047
35149
|
removalLocations.arrays.track(closestArray, node);
|
|
35048
35150
|
continue;
|
|
35049
35151
|
}
|
|
35050
|
-
const closestImport = closestNode(node,
|
|
35152
|
+
const closestImport = closestNode(node, import_typescript106.default.isNamedImports);
|
|
35051
35153
|
if (closestImport) {
|
|
35052
35154
|
removalLocations.imports.track(closestImport, node);
|
|
35053
35155
|
continue;
|
|
35054
35156
|
}
|
|
35055
|
-
const closestExport = closestNode(node,
|
|
35157
|
+
const closestExport = closestNode(node, import_typescript106.default.isNamedExports);
|
|
35056
35158
|
if (closestExport) {
|
|
35057
35159
|
removalLocations.exports.track(closestExport, node);
|
|
35058
35160
|
continue;
|
|
@@ -35063,24 +35165,24 @@ function collectRemovalLocations(ngModule, removalLocations, referenceResolver,
|
|
|
35063
35165
|
function removeArrayReferences(locations, tracker) {
|
|
35064
35166
|
for (const [array, toRemove] of locations.getEntries()) {
|
|
35065
35167
|
const newElements = filterRemovedElements(array.elements, toRemove);
|
|
35066
|
-
tracker.replaceNode(array,
|
|
35168
|
+
tracker.replaceNode(array, import_typescript106.default.factory.updateArrayLiteralExpression(array, newElements));
|
|
35067
35169
|
}
|
|
35068
35170
|
}
|
|
35069
35171
|
function removeImportReferences(locations, tracker) {
|
|
35070
35172
|
for (const [namedImports, toRemove] of locations.getEntries()) {
|
|
35071
35173
|
const newElements = filterRemovedElements(namedImports.elements, toRemove);
|
|
35072
35174
|
if (newElements.length === 0) {
|
|
35073
|
-
const importClause = closestNode(namedImports,
|
|
35175
|
+
const importClause = closestNode(namedImports, import_typescript106.default.isImportClause);
|
|
35074
35176
|
if (importClause && importClause.name) {
|
|
35075
|
-
tracker.replaceNode(importClause,
|
|
35177
|
+
tracker.replaceNode(importClause, import_typescript106.default.factory.updateImportClause(importClause, importClause.isTypeOnly, importClause.name, void 0));
|
|
35076
35178
|
} else {
|
|
35077
|
-
const declaration = closestNode(namedImports,
|
|
35179
|
+
const declaration = closestNode(namedImports, import_typescript106.default.isImportDeclaration);
|
|
35078
35180
|
if (declaration) {
|
|
35079
35181
|
tracker.removeNode(declaration);
|
|
35080
35182
|
}
|
|
35081
35183
|
}
|
|
35082
35184
|
} else {
|
|
35083
|
-
tracker.replaceNode(namedImports,
|
|
35185
|
+
tracker.replaceNode(namedImports, import_typescript106.default.factory.updateNamedImports(namedImports, newElements));
|
|
35084
35186
|
}
|
|
35085
35187
|
}
|
|
35086
35188
|
}
|
|
@@ -35088,22 +35190,22 @@ function removeExportReferences(locations, tracker) {
|
|
|
35088
35190
|
for (const [namedExports, toRemove] of locations.getEntries()) {
|
|
35089
35191
|
const newElements = filterRemovedElements(namedExports.elements, toRemove);
|
|
35090
35192
|
if (newElements.length === 0) {
|
|
35091
|
-
const declaration = closestNode(namedExports,
|
|
35193
|
+
const declaration = closestNode(namedExports, import_typescript106.default.isExportDeclaration);
|
|
35092
35194
|
if (declaration) {
|
|
35093
35195
|
tracker.removeNode(declaration);
|
|
35094
35196
|
}
|
|
35095
35197
|
} else {
|
|
35096
|
-
tracker.replaceNode(namedExports,
|
|
35198
|
+
tracker.replaceNode(namedExports, import_typescript106.default.factory.updateNamedExports(namedExports, newElements));
|
|
35097
35199
|
}
|
|
35098
35200
|
}
|
|
35099
35201
|
}
|
|
35100
35202
|
function canRemoveClass(node, typeChecker) {
|
|
35101
35203
|
var _a;
|
|
35102
35204
|
const decorator = (_a = findNgModuleDecorator(node, typeChecker)) == null ? void 0 : _a.node;
|
|
35103
|
-
if (!decorator || !
|
|
35205
|
+
if (!decorator || !import_typescript106.default.isCallExpression(decorator.expression)) {
|
|
35104
35206
|
return false;
|
|
35105
35207
|
}
|
|
35106
|
-
if (decorator.expression.arguments.length > 0 && !
|
|
35208
|
+
if (decorator.expression.arguments.length > 0 && !import_typescript106.default.isObjectLiteralExpression(decorator.expression.arguments[0])) {
|
|
35107
35209
|
return false;
|
|
35108
35210
|
}
|
|
35109
35211
|
if (node.members.length > 0 && node.members.some((member) => !isEmptyConstructor(member))) {
|
|
@@ -35116,7 +35218,7 @@ function canRemoveClass(node, typeChecker) {
|
|
|
35116
35218
|
const imports = findLiteralProperty(literal3, "imports");
|
|
35117
35219
|
if (imports && isNonEmptyNgModuleProperty(imports)) {
|
|
35118
35220
|
for (const dep of imports.initializer.elements) {
|
|
35119
|
-
if (!
|
|
35221
|
+
if (!import_typescript106.default.isIdentifier(dep)) {
|
|
35120
35222
|
return false;
|
|
35121
35223
|
}
|
|
35122
35224
|
const depDeclaration = findClassDeclaration(dep, typeChecker);
|
|
@@ -35134,15 +35236,15 @@ function canRemoveClass(node, typeChecker) {
|
|
|
35134
35236
|
return true;
|
|
35135
35237
|
}
|
|
35136
35238
|
function isNonEmptyNgModuleProperty(node) {
|
|
35137
|
-
return
|
|
35239
|
+
return import_typescript106.default.isPropertyAssignment(node) && import_typescript106.default.isIdentifier(node.name) && import_typescript106.default.isArrayLiteralExpression(node.initializer) && node.initializer.elements.length > 0;
|
|
35138
35240
|
}
|
|
35139
35241
|
function canRemoveFile(sourceFile, nodesToBeRemoved) {
|
|
35140
35242
|
var _a;
|
|
35141
35243
|
for (const node of sourceFile.statements) {
|
|
35142
|
-
if (
|
|
35244
|
+
if (import_typescript106.default.isImportDeclaration(node) || nodesToBeRemoved.has(node)) {
|
|
35143
35245
|
continue;
|
|
35144
35246
|
}
|
|
35145
|
-
if (
|
|
35247
|
+
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
35248
|
return false;
|
|
35147
35249
|
}
|
|
35148
35250
|
}
|
|
@@ -35162,7 +35264,7 @@ function filterRemovedElements(elements, toRemove) {
|
|
|
35162
35264
|
});
|
|
35163
35265
|
}
|
|
35164
35266
|
function isEmptyConstructor(node) {
|
|
35165
|
-
return
|
|
35267
|
+
return import_typescript106.default.isConstructorDeclaration(node) && node.parameters.length === 0 && (node.body == null || node.body.statements.length === 0);
|
|
35166
35268
|
}
|
|
35167
35269
|
function addRemovalTodos(nodes, tracker) {
|
|
35168
35270
|
for (const node of nodes) {
|
|
@@ -35170,19 +35272,19 @@ function addRemovalTodos(nodes, tracker) {
|
|
|
35170
35272
|
}
|
|
35171
35273
|
}
|
|
35172
35274
|
function findNgModuleDecorator(node, typeChecker) {
|
|
35173
|
-
const decorators = getAngularDecorators(typeChecker,
|
|
35275
|
+
const decorators = getAngularDecorators(typeChecker, import_typescript106.default.getDecorators(node) || []);
|
|
35174
35276
|
return decorators.find((decorator) => decorator.name === "NgModule") || null;
|
|
35175
35277
|
}
|
|
35176
35278
|
|
|
35177
|
-
// bazel-out/
|
|
35279
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/standalone-bootstrap.mjs
|
|
35178
35280
|
var import_path7 = require("path");
|
|
35281
|
+
var import_typescript109 = __toESM(require("typescript"), 1);
|
|
35282
|
+
|
|
35283
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/to-standalone.mjs
|
|
35179
35284
|
var import_typescript108 = __toESM(require("typescript"), 1);
|
|
35180
35285
|
|
|
35181
|
-
// bazel-out/
|
|
35286
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/symbol.mjs
|
|
35182
35287
|
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
35288
|
function isReferenceToImport(typeChecker, node, importSpecifier) {
|
|
35187
35289
|
var _a, _b;
|
|
35188
35290
|
const nodeSymbol = typeChecker.getTypeAtLocation(node).getSymbol();
|
|
@@ -35190,7 +35292,7 @@ function isReferenceToImport(typeChecker, node, importSpecifier) {
|
|
|
35190
35292
|
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
35293
|
}
|
|
35192
35294
|
|
|
35193
|
-
// bazel-out/
|
|
35295
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/to-standalone.mjs
|
|
35194
35296
|
function toStandalone(sourceFiles, program, printer, fileImportRemapper, componentImportRemapper) {
|
|
35195
35297
|
const templateTypeChecker = program.compiler.getTemplateTypeChecker();
|
|
35196
35298
|
const typeChecker = program.getTsProgram().getTypeChecker();
|
|
@@ -35227,7 +35329,7 @@ function convertNgModuleDeclarationToStandalone(decl, allDeclarations, tracker,
|
|
|
35227
35329
|
if (directiveMeta.isComponent) {
|
|
35228
35330
|
const importsToAdd = getComponentImportExpressions(decl, allDeclarations, tracker, typeChecker, importRemapper);
|
|
35229
35331
|
if (importsToAdd.length > 0) {
|
|
35230
|
-
decorator = addPropertyToAngularDecorator(decorator,
|
|
35332
|
+
decorator = addPropertyToAngularDecorator(decorator, import_typescript108.default.factory.createPropertyAssignment("imports", import_typescript108.default.factory.createArrayLiteralExpression(importsToAdd)));
|
|
35231
35333
|
}
|
|
35232
35334
|
}
|
|
35233
35335
|
tracker.replaceNode(directiveMeta.decorator, decorator);
|
|
@@ -35257,11 +35359,11 @@ function getComponentImportExpressions(decl, allDeclarations, tracker, typeCheck
|
|
|
35257
35359
|
const identifier = tracker.addImport(decl.getSourceFile(), importLocation.symbolName, importLocation.moduleSpecifier);
|
|
35258
35360
|
imports.push(identifier);
|
|
35259
35361
|
} else {
|
|
35260
|
-
const identifier =
|
|
35362
|
+
const identifier = import_typescript108.default.factory.createIdentifier(importLocation.symbolName);
|
|
35261
35363
|
if (importLocation.isForwardReference) {
|
|
35262
35364
|
const forwardRefExpression = tracker.addImport(decl.getSourceFile(), "forwardRef", "@angular/core");
|
|
35263
|
-
const arrowFunction =
|
|
35264
|
-
imports.push(
|
|
35365
|
+
const arrowFunction = import_typescript108.default.factory.createArrowFunction(void 0, void 0, [], void 0, void 0, identifier);
|
|
35366
|
+
imports.push(import_typescript108.default.factory.createCallExpression(forwardRefExpression, void 0, [arrowFunction]));
|
|
35265
35367
|
} else {
|
|
35266
35368
|
imports.push(identifier);
|
|
35267
35369
|
}
|
|
@@ -35286,10 +35388,10 @@ function moveDeclarationsToImports(literal3, allDeclarations, typeChecker, templ
|
|
|
35286
35388
|
const declarationsToCopy = [];
|
|
35287
35389
|
const properties = [];
|
|
35288
35390
|
const importsProp = findLiteralProperty(literal3, "imports");
|
|
35289
|
-
if (
|
|
35290
|
-
if (
|
|
35391
|
+
if (import_typescript108.default.isPropertyAssignment(declarationsProp)) {
|
|
35392
|
+
if (import_typescript108.default.isArrayLiteralExpression(declarationsProp.initializer)) {
|
|
35291
35393
|
for (const el of declarationsProp.initializer.elements) {
|
|
35292
|
-
if (
|
|
35394
|
+
if (import_typescript108.default.isIdentifier(el)) {
|
|
35293
35395
|
const correspondingClass = findClassDeclaration(el, typeChecker);
|
|
35294
35396
|
if (!correspondingClass || isStandaloneDeclaration(correspondingClass, allDeclarations, templateTypeChecker)) {
|
|
35295
35397
|
declarationsToCopy.push(el);
|
|
@@ -35301,11 +35403,11 @@ function moveDeclarationsToImports(literal3, allDeclarations, typeChecker, templ
|
|
|
35301
35403
|
}
|
|
35302
35404
|
}
|
|
35303
35405
|
} else {
|
|
35304
|
-
declarationsToCopy.push(
|
|
35406
|
+
declarationsToCopy.push(import_typescript108.default.factory.createSpreadElement(declarationsProp.initializer));
|
|
35305
35407
|
}
|
|
35306
35408
|
}
|
|
35307
35409
|
if (!importsProp && declarationsToCopy.length > 0) {
|
|
35308
|
-
properties.push(
|
|
35410
|
+
properties.push(import_typescript108.default.factory.createPropertyAssignment("imports", import_typescript108.default.factory.createArrayLiteralExpression(declarationsToCopy)));
|
|
35309
35411
|
}
|
|
35310
35412
|
for (const prop of literal3.properties) {
|
|
35311
35413
|
if (!isNamedPropertyAssignment(prop)) {
|
|
@@ -35314,43 +35416,43 @@ function moveDeclarationsToImports(literal3, allDeclarations, typeChecker, templ
|
|
|
35314
35416
|
}
|
|
35315
35417
|
if (prop === declarationsProp) {
|
|
35316
35418
|
if (declarationsToPreserve.length > 0) {
|
|
35317
|
-
properties.push(
|
|
35419
|
+
properties.push(import_typescript108.default.factory.updatePropertyAssignment(prop, prop.name, import_typescript108.default.factory.createArrayLiteralExpression(declarationsToPreserve)));
|
|
35318
35420
|
}
|
|
35319
35421
|
continue;
|
|
35320
35422
|
}
|
|
35321
35423
|
if (prop === importsProp && declarationsToCopy.length > 0) {
|
|
35322
35424
|
let initializer;
|
|
35323
|
-
if (
|
|
35324
|
-
initializer =
|
|
35425
|
+
if (import_typescript108.default.isArrayLiteralExpression(prop.initializer)) {
|
|
35426
|
+
initializer = import_typescript108.default.factory.updateArrayLiteralExpression(prop.initializer, [...prop.initializer.elements, ...declarationsToCopy]);
|
|
35325
35427
|
} else {
|
|
35326
|
-
initializer =
|
|
35428
|
+
initializer = import_typescript108.default.factory.createArrayLiteralExpression([import_typescript108.default.factory.createSpreadElement(prop.initializer), ...declarationsToCopy]);
|
|
35327
35429
|
}
|
|
35328
|
-
properties.push(
|
|
35430
|
+
properties.push(import_typescript108.default.factory.updatePropertyAssignment(prop, prop.name, initializer));
|
|
35329
35431
|
continue;
|
|
35330
35432
|
}
|
|
35331
35433
|
properties.push(prop);
|
|
35332
35434
|
}
|
|
35333
|
-
tracker.replaceNode(literal3,
|
|
35435
|
+
tracker.replaceNode(literal3, import_typescript108.default.factory.updateObjectLiteralExpression(literal3, properties), import_typescript108.default.EmitHint.Expression);
|
|
35334
35436
|
}
|
|
35335
35437
|
function addStandaloneToDecorator(node) {
|
|
35336
|
-
return addPropertyToAngularDecorator(node,
|
|
35438
|
+
return addPropertyToAngularDecorator(node, import_typescript108.default.factory.createPropertyAssignment("standalone", import_typescript108.default.factory.createToken(import_typescript108.default.SyntaxKind.TrueKeyword)));
|
|
35337
35439
|
}
|
|
35338
35440
|
function addPropertyToAngularDecorator(node, property) {
|
|
35339
|
-
if (!
|
|
35441
|
+
if (!import_typescript108.default.isCallExpression(node.expression) || node.expression.arguments.length > 1) {
|
|
35340
35442
|
return node;
|
|
35341
35443
|
}
|
|
35342
35444
|
let literalProperties;
|
|
35343
35445
|
if (node.expression.arguments.length === 0) {
|
|
35344
35446
|
literalProperties = [property];
|
|
35345
|
-
} else if (
|
|
35447
|
+
} else if (import_typescript108.default.isObjectLiteralExpression(node.expression.arguments[0])) {
|
|
35346
35448
|
literalProperties = [...node.expression.arguments[0].properties, property];
|
|
35347
35449
|
} else {
|
|
35348
35450
|
return node;
|
|
35349
35451
|
}
|
|
35350
|
-
return
|
|
35452
|
+
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
35453
|
}
|
|
35352
35454
|
function isNamedPropertyAssignment(node) {
|
|
35353
|
-
return
|
|
35455
|
+
return import_typescript108.default.isPropertyAssignment(node) && node.name && import_typescript108.default.isIdentifier(node.name);
|
|
35354
35456
|
}
|
|
35355
35457
|
function findImportLocation(target, inComponent, importMode, typeChecker) {
|
|
35356
35458
|
const importLocations = typeChecker.getPotentialImportsFor(target, inComponent, importMode);
|
|
@@ -35370,14 +35472,14 @@ function findImportLocation(target, inComponent, importMode, typeChecker) {
|
|
|
35370
35472
|
return firstSameFileImport || firstModuleImport || importLocations[0] || null;
|
|
35371
35473
|
}
|
|
35372
35474
|
function hasNgModuleMetadataElements(node) {
|
|
35373
|
-
return
|
|
35475
|
+
return import_typescript108.default.isPropertyAssignment(node) && (!import_typescript108.default.isArrayLiteralExpression(node.initializer) || node.initializer.elements.length > 0);
|
|
35374
35476
|
}
|
|
35375
35477
|
function findNgModuleClassesToMigrate(sourceFile, typeChecker) {
|
|
35376
35478
|
const modules = [];
|
|
35377
35479
|
if (getImportSpecifier(sourceFile, "@angular/core", "NgModule")) {
|
|
35378
35480
|
sourceFile.forEachChild(function walk(node) {
|
|
35379
|
-
if (
|
|
35380
|
-
const decorator = getAngularDecorators(typeChecker,
|
|
35481
|
+
if (import_typescript108.default.isClassDeclaration(node)) {
|
|
35482
|
+
const decorator = getAngularDecorators(typeChecker, import_typescript108.default.getDecorators(node) || []).find((current) => current.name === "NgModule");
|
|
35381
35483
|
const metadata = decorator ? extractMetadataLiteral(decorator.node) : null;
|
|
35382
35484
|
if (metadata) {
|
|
35383
35485
|
const declarations = findLiteralProperty(metadata, "declarations");
|
|
@@ -35397,8 +35499,8 @@ function findTestObjectsToMigrate(sourceFile, typeChecker) {
|
|
|
35397
35499
|
const catalystImport = getImportSpecifier(sourceFile, /testing\/catalyst$/, "setupModule");
|
|
35398
35500
|
if (testBedImport || catalystImport) {
|
|
35399
35501
|
sourceFile.forEachChild(function walk(node) {
|
|
35400
|
-
if (
|
|
35401
|
-
if (testBedImport &&
|
|
35502
|
+
if (import_typescript108.default.isCallExpression(node) && node.arguments.length > 0 && import_typescript108.default.isObjectLiteralExpression(node.arguments[0])) {
|
|
35503
|
+
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
35504
|
testObjects.push(node.arguments[0]);
|
|
35403
35505
|
}
|
|
35404
35506
|
}
|
|
@@ -35413,7 +35515,7 @@ function findTemplateDependencies(decl, typeChecker) {
|
|
|
35413
35515
|
const usedPipes = typeChecker.getUsedPipes(decl);
|
|
35414
35516
|
if (usedDirectives !== null) {
|
|
35415
35517
|
for (const dir of usedDirectives) {
|
|
35416
|
-
if (
|
|
35518
|
+
if (import_typescript108.default.isClassDeclaration(dir.ref.node)) {
|
|
35417
35519
|
results.push(dir.ref);
|
|
35418
35520
|
}
|
|
35419
35521
|
}
|
|
@@ -35421,7 +35523,7 @@ function findTemplateDependencies(decl, typeChecker) {
|
|
|
35421
35523
|
if (usedPipes !== null) {
|
|
35422
35524
|
const potentialPipes = typeChecker.getPotentialPipes(decl);
|
|
35423
35525
|
for (const pipe of potentialPipes) {
|
|
35424
|
-
if (
|
|
35526
|
+
if (import_typescript108.default.isClassDeclaration(pipe.ref.node) && usedPipes.some((current) => pipe.name === current)) {
|
|
35425
35527
|
results.push(pipe.ref);
|
|
35426
35528
|
}
|
|
35427
35529
|
}
|
|
@@ -35435,12 +35537,12 @@ function filterNonBootstrappedDeclarations(declarations, ngModule, templateTypeC
|
|
|
35435
35537
|
if (!bootstrapProp) {
|
|
35436
35538
|
return declarations;
|
|
35437
35539
|
}
|
|
35438
|
-
if (!
|
|
35540
|
+
if (!import_typescript108.default.isPropertyAssignment(bootstrapProp) || !import_typescript108.default.isArrayLiteralExpression(bootstrapProp.initializer)) {
|
|
35439
35541
|
return [];
|
|
35440
35542
|
}
|
|
35441
35543
|
const bootstrappedClasses = /* @__PURE__ */ new Set();
|
|
35442
35544
|
for (const el of bootstrapProp.initializer.elements) {
|
|
35443
|
-
const referencedClass =
|
|
35545
|
+
const referencedClass = import_typescript108.default.isIdentifier(el) ? findClassDeclaration(el, typeChecker) : null;
|
|
35444
35546
|
if (referencedClass) {
|
|
35445
35547
|
bootstrappedClasses.add(referencedClass);
|
|
35446
35548
|
} else {
|
|
@@ -35451,13 +35553,13 @@ function filterNonBootstrappedDeclarations(declarations, ngModule, templateTypeC
|
|
|
35451
35553
|
}
|
|
35452
35554
|
function extractDeclarationsFromModule(ngModule, templateTypeChecker) {
|
|
35453
35555
|
const metadata = templateTypeChecker.getNgModuleMetadata(ngModule);
|
|
35454
|
-
return metadata ? metadata.declarations.filter((decl) =>
|
|
35556
|
+
return metadata ? metadata.declarations.filter((decl) => import_typescript108.default.isClassDeclaration(decl.node)).map((decl) => decl.node) : [];
|
|
35455
35557
|
}
|
|
35456
35558
|
function migrateTestDeclarations(testObjects, declarationsOutsideOfTestFiles, tracker, templateTypeChecker, typeChecker) {
|
|
35457
35559
|
const { decorators, componentImports } = analyzeTestingModules(testObjects, typeChecker);
|
|
35458
35560
|
const allDeclarations = new Set(declarationsOutsideOfTestFiles);
|
|
35459
35561
|
for (const decorator of decorators) {
|
|
35460
|
-
const closestClass = closestNode(decorator.node,
|
|
35562
|
+
const closestClass = closestNode(decorator.node, import_typescript108.default.isClassDeclaration);
|
|
35461
35563
|
if (decorator.name === "Pipe" || decorator.name === "Directive") {
|
|
35462
35564
|
tracker.replaceNode(decorator.node, addStandaloneToDecorator(decorator.node));
|
|
35463
35565
|
if (closestClass) {
|
|
@@ -35470,7 +35572,7 @@ function migrateTestDeclarations(testObjects, declarationsOutsideOfTestFiles, tr
|
|
|
35470
35572
|
allDeclarations.add(closestClass);
|
|
35471
35573
|
}
|
|
35472
35574
|
if (importsToAdd && importsToAdd.size > 0) {
|
|
35473
|
-
tracker.replaceNode(decorator.node, addPropertyToAngularDecorator(newDecorator,
|
|
35575
|
+
tracker.replaceNode(decorator.node, addPropertyToAngularDecorator(newDecorator, import_typescript108.default.factory.createPropertyAssignment("imports", import_typescript108.default.factory.createArrayLiteralExpression(Array.from(importsToAdd)))));
|
|
35474
35576
|
} else {
|
|
35475
35577
|
tracker.replaceNode(decorator.node, newDecorator);
|
|
35476
35578
|
}
|
|
@@ -35491,13 +35593,13 @@ function analyzeTestingModules(testObjects, typeChecker) {
|
|
|
35491
35593
|
}
|
|
35492
35594
|
const importsProp = findLiteralProperty(obj, "imports");
|
|
35493
35595
|
const importElements = importsProp && hasNgModuleMetadataElements(importsProp) ? importsProp.initializer.elements.filter((el) => {
|
|
35494
|
-
return !
|
|
35596
|
+
return !import_typescript108.default.isCallExpression(el) && !isClassReferenceInAngularModule(el, /^BrowserAnimationsModule|NoopAnimationsModule$/, "platform-browser/animations", typeChecker);
|
|
35495
35597
|
}) : null;
|
|
35496
35598
|
for (const decl of declarations) {
|
|
35497
35599
|
if (seenDeclarations.has(decl)) {
|
|
35498
35600
|
continue;
|
|
35499
35601
|
}
|
|
35500
|
-
const [decorator] = getAngularDecorators(typeChecker,
|
|
35602
|
+
const [decorator] = getAngularDecorators(typeChecker, import_typescript108.default.getDecorators(decl) || []);
|
|
35501
35603
|
if (decorator) {
|
|
35502
35604
|
seenDeclarations.add(decl);
|
|
35503
35605
|
decorators.push(decorator);
|
|
@@ -35528,7 +35630,7 @@ function extractDeclarationsFromTestObject(obj, typeChecker) {
|
|
|
35528
35630
|
return results;
|
|
35529
35631
|
}
|
|
35530
35632
|
function extractMetadataLiteral(decorator) {
|
|
35531
|
-
return
|
|
35633
|
+
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
35634
|
}
|
|
35533
35635
|
function isStandaloneDeclaration(node, declarationsInMigration, templateTypeChecker) {
|
|
35534
35636
|
if (declarationsInMigration.has(node)) {
|
|
@@ -35538,7 +35640,7 @@ function isStandaloneDeclaration(node, declarationsInMigration, templateTypeChec
|
|
|
35538
35640
|
return metadata != null && metadata.isStandalone;
|
|
35539
35641
|
}
|
|
35540
35642
|
|
|
35541
|
-
// bazel-out/
|
|
35643
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/standalone-bootstrap.mjs
|
|
35542
35644
|
function toStandaloneBootstrap(program, host, basePath, rootFileNames, sourceFiles, printer, importRemapper, referenceLookupExcludedFiles, componentImportRemapper) {
|
|
35543
35645
|
const tracker = new ChangeTracker(printer, importRemapper);
|
|
35544
35646
|
const typeChecker = program.getTsProgram().getTypeChecker();
|
|
@@ -35547,9 +35649,10 @@ function toStandaloneBootstrap(program, host, basePath, rootFileNames, sourceFil
|
|
|
35547
35649
|
const bootstrapCalls = [];
|
|
35548
35650
|
const testObjects = /* @__PURE__ */ new Set();
|
|
35549
35651
|
const allDeclarations = /* @__PURE__ */ new Set();
|
|
35652
|
+
const additionalProviders = hasImport(program, rootFileNames, "protractor") ? /* @__PURE__ */ new Map([["provideProtractorTestingSupport", "@angular/platform-browser"]]) : null;
|
|
35550
35653
|
for (const sourceFile of sourceFiles) {
|
|
35551
35654
|
sourceFile.forEachChild(function walk(node) {
|
|
35552
|
-
if (
|
|
35655
|
+
if (import_typescript109.default.isCallExpression(node) && import_typescript109.default.isPropertyAccessExpression(node.expression) && node.expression.name.text === "bootstrapModule" && isClassReferenceInAngularModule(node.expression, "PlatformRef", "core", typeChecker)) {
|
|
35553
35656
|
const call = analyzeBootstrapCall(node, typeChecker, templateTypeChecker);
|
|
35554
35657
|
if (call) {
|
|
35555
35658
|
bootstrapCalls.push(call);
|
|
@@ -35561,7 +35664,7 @@ function toStandaloneBootstrap(program, host, basePath, rootFileNames, sourceFil
|
|
|
35561
35664
|
}
|
|
35562
35665
|
for (const call of bootstrapCalls) {
|
|
35563
35666
|
call.declarations.forEach((decl) => allDeclarations.add(decl));
|
|
35564
|
-
migrateBootstrapCall(call, tracker, referenceResolver, typeChecker, printer);
|
|
35667
|
+
migrateBootstrapCall(call, tracker, additionalProviders, referenceResolver, typeChecker, printer);
|
|
35565
35668
|
}
|
|
35566
35669
|
for (const declaration of allDeclarations) {
|
|
35567
35670
|
convertNgModuleDeclarationToStandalone(declaration, allDeclarations, tracker, templateTypeChecker, componentImportRemapper);
|
|
@@ -35570,24 +35673,24 @@ function toStandaloneBootstrap(program, host, basePath, rootFileNames, sourceFil
|
|
|
35570
35673
|
return tracker.recordChanges();
|
|
35571
35674
|
}
|
|
35572
35675
|
function analyzeBootstrapCall(call, typeChecker, templateTypeChecker) {
|
|
35573
|
-
if (call.arguments.length === 0 || !
|
|
35676
|
+
if (call.arguments.length === 0 || !import_typescript109.default.isIdentifier(call.arguments[0])) {
|
|
35574
35677
|
return null;
|
|
35575
35678
|
}
|
|
35576
35679
|
const declaration = findClassDeclaration(call.arguments[0], typeChecker);
|
|
35577
35680
|
if (!declaration) {
|
|
35578
35681
|
return null;
|
|
35579
35682
|
}
|
|
35580
|
-
const decorator = getAngularDecorators(typeChecker,
|
|
35581
|
-
if (!decorator || decorator.node.expression.arguments.length === 0 || !
|
|
35683
|
+
const decorator = getAngularDecorators(typeChecker, import_typescript109.default.getDecorators(declaration) || []).find((decorator2) => decorator2.name === "NgModule");
|
|
35684
|
+
if (!decorator || decorator.node.expression.arguments.length === 0 || !import_typescript109.default.isObjectLiteralExpression(decorator.node.expression.arguments[0])) {
|
|
35582
35685
|
return null;
|
|
35583
35686
|
}
|
|
35584
35687
|
const metadata = decorator.node.expression.arguments[0];
|
|
35585
35688
|
const bootstrapProp = findLiteralProperty(metadata, "bootstrap");
|
|
35586
|
-
if (!bootstrapProp || !
|
|
35689
|
+
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
35690
|
return null;
|
|
35588
35691
|
}
|
|
35589
35692
|
const component = findClassDeclaration(bootstrapProp.initializer.elements[0], typeChecker);
|
|
35590
|
-
if (component && component.name &&
|
|
35693
|
+
if (component && component.name && import_typescript109.default.isIdentifier(component.name)) {
|
|
35591
35694
|
return {
|
|
35592
35695
|
module: declaration,
|
|
35593
35696
|
metadata,
|
|
@@ -35598,7 +35701,7 @@ function analyzeBootstrapCall(call, typeChecker, templateTypeChecker) {
|
|
|
35598
35701
|
}
|
|
35599
35702
|
return null;
|
|
35600
35703
|
}
|
|
35601
|
-
function migrateBootstrapCall(analysis, tracker, referenceResolver, typeChecker, printer) {
|
|
35704
|
+
function migrateBootstrapCall(analysis, tracker, additionalProviders, referenceResolver, typeChecker, printer) {
|
|
35602
35705
|
const sourceFile = analysis.call.getSourceFile();
|
|
35603
35706
|
const moduleSourceFile = analysis.metadata.getSourceFile();
|
|
35604
35707
|
const providers = findLiteralProperty(analysis.metadata, "providers");
|
|
@@ -35609,19 +35712,24 @@ function migrateBootstrapCall(analysis, tracker, referenceResolver, typeChecker,
|
|
|
35609
35712
|
let nodeLookup = null;
|
|
35610
35713
|
tracker.insertText(moduleSourceFile, analysis.metadata.getStart(), "/* TODO(standalone-migration): clean up removed NgModule class manually. \n");
|
|
35611
35714
|
tracker.insertText(moduleSourceFile, analysis.metadata.getEnd(), " */");
|
|
35612
|
-
if (providers &&
|
|
35715
|
+
if (providers && import_typescript109.default.isPropertyAssignment(providers)) {
|
|
35613
35716
|
nodeLookup = nodeLookup || getNodeLookup(moduleSourceFile);
|
|
35614
|
-
if (
|
|
35717
|
+
if (import_typescript109.default.isArrayLiteralExpression(providers.initializer)) {
|
|
35615
35718
|
providersInNewCall.push(...providers.initializer.elements);
|
|
35616
35719
|
} else {
|
|
35617
|
-
providersInNewCall.push(
|
|
35720
|
+
providersInNewCall.push(import_typescript109.default.factory.createSpreadElement(providers.initializer));
|
|
35618
35721
|
}
|
|
35619
35722
|
addNodesToCopy(sourceFile, providers, nodeLookup, tracker, nodesToCopy, referenceResolver);
|
|
35620
35723
|
}
|
|
35621
|
-
if (imports &&
|
|
35724
|
+
if (imports && import_typescript109.default.isPropertyAssignment(imports)) {
|
|
35622
35725
|
nodeLookup = nodeLookup || getNodeLookup(moduleSourceFile);
|
|
35623
35726
|
migrateImportsForBootstrapCall(sourceFile, imports, nodeLookup, moduleImportsInNewCall, providersInNewCall, tracker, nodesToCopy, referenceResolver, typeChecker);
|
|
35624
35727
|
}
|
|
35728
|
+
if (additionalProviders) {
|
|
35729
|
+
additionalProviders.forEach((moduleSpecifier, name) => {
|
|
35730
|
+
providersInNewCall.push(import_typescript109.default.factory.createCallExpression(tracker.addImport(sourceFile, name, moduleSpecifier), void 0, void 0));
|
|
35731
|
+
});
|
|
35732
|
+
}
|
|
35625
35733
|
if (nodesToCopy.size > 0) {
|
|
35626
35734
|
let text = "\n\n";
|
|
35627
35735
|
nodesToCopy.forEach((node) => {
|
|
@@ -35629,7 +35737,7 @@ function migrateBootstrapCall(analysis, tracker, referenceResolver, typeChecker,
|
|
|
35629
35737
|
if (transformedNode === node) {
|
|
35630
35738
|
text += transformedNode.getText() + "\n";
|
|
35631
35739
|
} else {
|
|
35632
|
-
text += printer.printNode(
|
|
35740
|
+
text += printer.printNode(import_typescript109.default.EmitHint.Unspecified, transformedNode, node.getSourceFile());
|
|
35633
35741
|
}
|
|
35634
35742
|
});
|
|
35635
35743
|
text += "\n";
|
|
@@ -35646,30 +35754,30 @@ function replaceBootstrapCallExpression(analysis, providers, modules, tracker) {
|
|
|
35646
35754
|
const combinedProviders = [];
|
|
35647
35755
|
if (modules.length > 0) {
|
|
35648
35756
|
const importProvidersExpression = tracker.addImport(sourceFile, "importProvidersFrom", "@angular/core");
|
|
35649
|
-
combinedProviders.push(
|
|
35757
|
+
combinedProviders.push(import_typescript109.default.factory.createCallExpression(importProvidersExpression, [], modules));
|
|
35650
35758
|
}
|
|
35651
35759
|
combinedProviders.push(...providers);
|
|
35652
|
-
const initializer = remapDynamicImports(sourceFile.fileName,
|
|
35653
|
-
args.push(
|
|
35760
|
+
const initializer = remapDynamicImports(sourceFile.fileName, import_typescript109.default.factory.createArrayLiteralExpression(combinedProviders, combinedProviders.length > 1));
|
|
35761
|
+
args.push(import_typescript109.default.factory.createObjectLiteralExpression([import_typescript109.default.factory.createPropertyAssignment("providers", initializer)], true));
|
|
35654
35762
|
}
|
|
35655
35763
|
tracker.replaceNode(
|
|
35656
35764
|
analysis.call,
|
|
35657
|
-
|
|
35765
|
+
import_typescript109.default.factory.createCallExpression(bootstrapExpression, [], args),
|
|
35658
35766
|
void 0,
|
|
35659
35767
|
analysis.metadata.getSourceFile()
|
|
35660
35768
|
);
|
|
35661
35769
|
}
|
|
35662
35770
|
function migrateImportsForBootstrapCall(sourceFile, imports, nodeLookup, importsForNewCall, providersInNewCall, tracker, nodesToCopy, referenceResolver, typeChecker) {
|
|
35663
|
-
if (!
|
|
35771
|
+
if (!import_typescript109.default.isArrayLiteralExpression(imports.initializer)) {
|
|
35664
35772
|
importsForNewCall.push(imports.initializer);
|
|
35665
35773
|
return;
|
|
35666
35774
|
}
|
|
35667
35775
|
for (const element of imports.initializer.elements) {
|
|
35668
|
-
if (
|
|
35776
|
+
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
35777
|
const options = element.arguments[1];
|
|
35670
35778
|
const features = options ? getRouterModuleForRootFeatures(sourceFile, options, tracker) : [];
|
|
35671
35779
|
if (features !== null) {
|
|
35672
|
-
providersInNewCall.push(
|
|
35780
|
+
providersInNewCall.push(import_typescript109.default.factory.createCallExpression(tracker.addImport(sourceFile, "provideRouter", "@angular/router"), [], [element.arguments[0], ...features]));
|
|
35673
35781
|
addNodesToCopy(sourceFile, element.arguments[0], nodeLookup, tracker, nodesToCopy, referenceResolver);
|
|
35674
35782
|
if (options) {
|
|
35675
35783
|
addNodesToCopy(sourceFile, options, nodeLookup, tracker, nodesToCopy, referenceResolver);
|
|
@@ -35677,30 +35785,30 @@ function migrateImportsForBootstrapCall(sourceFile, imports, nodeLookup, imports
|
|
|
35677
35785
|
continue;
|
|
35678
35786
|
}
|
|
35679
35787
|
}
|
|
35680
|
-
if (
|
|
35788
|
+
if (import_typescript109.default.isIdentifier(element)) {
|
|
35681
35789
|
const animationsModule = "platform-browser/animations";
|
|
35682
35790
|
const animationsImport = `@angular/${animationsModule}`;
|
|
35683
35791
|
if (isClassReferenceInAngularModule(element, "BrowserAnimationsModule", animationsModule, typeChecker)) {
|
|
35684
|
-
providersInNewCall.push(
|
|
35792
|
+
providersInNewCall.push(import_typescript109.default.factory.createCallExpression(tracker.addImport(sourceFile, "provideAnimations", animationsImport), [], []));
|
|
35685
35793
|
continue;
|
|
35686
35794
|
}
|
|
35687
35795
|
if (isClassReferenceInAngularModule(element, "NoopAnimationsModule", animationsModule, typeChecker)) {
|
|
35688
|
-
providersInNewCall.push(
|
|
35796
|
+
providersInNewCall.push(import_typescript109.default.factory.createCallExpression(tracker.addImport(sourceFile, "provideNoopAnimations", animationsImport), [], []));
|
|
35689
35797
|
continue;
|
|
35690
35798
|
}
|
|
35691
35799
|
const httpClientModule = "common/http";
|
|
35692
35800
|
const httpClientImport = `@angular/${httpClientModule}`;
|
|
35693
35801
|
if (isClassReferenceInAngularModule(element, "HttpClientModule", httpClientModule, typeChecker)) {
|
|
35694
35802
|
const callArgs = [
|
|
35695
|
-
|
|
35803
|
+
import_typescript109.default.factory.createCallExpression(tracker.addImport(sourceFile, "withInterceptorsFromDi", httpClientImport), [], [])
|
|
35696
35804
|
];
|
|
35697
|
-
providersInNewCall.push(
|
|
35805
|
+
providersInNewCall.push(import_typescript109.default.factory.createCallExpression(tracker.addImport(sourceFile, "provideHttpClient", httpClientImport), [], callArgs));
|
|
35698
35806
|
continue;
|
|
35699
35807
|
}
|
|
35700
35808
|
}
|
|
35701
|
-
const target =
|
|
35809
|
+
const target = import_typescript109.default.isCallExpression(element) && import_typescript109.default.isPropertyAccessExpression(element.expression) ? element.expression.expression : element;
|
|
35702
35810
|
const classDeclaration = findClassDeclaration(target, typeChecker);
|
|
35703
|
-
const decorators = classDeclaration ? getAngularDecorators(typeChecker,
|
|
35811
|
+
const decorators = classDeclaration ? getAngularDecorators(typeChecker, import_typescript109.default.getDecorators(classDeclaration) || []) : void 0;
|
|
35704
35812
|
if (!decorators || decorators.length === 0 || decorators.every(({ name }) => name !== "Directive" && name !== "Component" && name !== "Pipe")) {
|
|
35705
35813
|
importsForNewCall.push(element);
|
|
35706
35814
|
addNodesToCopy(sourceFile, element, nodeLookup, tracker, nodesToCopy, referenceResolver);
|
|
@@ -35708,7 +35816,7 @@ function migrateImportsForBootstrapCall(sourceFile, imports, nodeLookup, imports
|
|
|
35708
35816
|
}
|
|
35709
35817
|
}
|
|
35710
35818
|
function getRouterModuleForRootFeatures(sourceFile, options, tracker) {
|
|
35711
|
-
if (!
|
|
35819
|
+
if (!import_typescript109.default.isObjectLiteralExpression(options)) {
|
|
35712
35820
|
return null;
|
|
35713
35821
|
}
|
|
35714
35822
|
const featureExpressions = [];
|
|
@@ -35716,7 +35824,7 @@ function getRouterModuleForRootFeatures(sourceFile, options, tracker) {
|
|
|
35716
35824
|
const inMemoryScrollingOptions = [];
|
|
35717
35825
|
const features = new UniqueItemTracker();
|
|
35718
35826
|
for (const prop of options.properties) {
|
|
35719
|
-
if (!
|
|
35827
|
+
if (!import_typescript109.default.isPropertyAssignment(prop) || !import_typescript109.default.isIdentifier(prop.name) && !import_typescript109.default.isStringLiteralLike(prop.name)) {
|
|
35720
35828
|
return null;
|
|
35721
35829
|
}
|
|
35722
35830
|
switch (prop.name.text) {
|
|
@@ -35724,12 +35832,12 @@ function getRouterModuleForRootFeatures(sourceFile, options, tracker) {
|
|
|
35724
35832
|
features.track("withPreloading", prop.initializer);
|
|
35725
35833
|
break;
|
|
35726
35834
|
case "enableTracing":
|
|
35727
|
-
if (prop.initializer.kind ===
|
|
35835
|
+
if (prop.initializer.kind === import_typescript109.default.SyntaxKind.TrueKeyword) {
|
|
35728
35836
|
features.track("withDebugTracing", null);
|
|
35729
35837
|
}
|
|
35730
35838
|
break;
|
|
35731
35839
|
case "initialNavigation":
|
|
35732
|
-
if (!
|
|
35840
|
+
if (!import_typescript109.default.isStringLiteralLike(prop.initializer)) {
|
|
35733
35841
|
return null;
|
|
35734
35842
|
}
|
|
35735
35843
|
if (prop.initializer.text === "enabledBlocking" || prop.initializer.text === "enabled") {
|
|
@@ -35739,7 +35847,7 @@ function getRouterModuleForRootFeatures(sourceFile, options, tracker) {
|
|
|
35739
35847
|
}
|
|
35740
35848
|
break;
|
|
35741
35849
|
case "useHash":
|
|
35742
|
-
if (prop.initializer.kind ===
|
|
35850
|
+
if (prop.initializer.kind === import_typescript109.default.SyntaxKind.TrueKeyword) {
|
|
35743
35851
|
features.track("withHashLocation", null);
|
|
35744
35852
|
}
|
|
35745
35853
|
break;
|
|
@@ -35756,10 +35864,10 @@ function getRouterModuleForRootFeatures(sourceFile, options, tracker) {
|
|
|
35756
35864
|
}
|
|
35757
35865
|
}
|
|
35758
35866
|
if (inMemoryScrollingOptions.length > 0) {
|
|
35759
|
-
features.track("withInMemoryScrolling",
|
|
35867
|
+
features.track("withInMemoryScrolling", import_typescript109.default.factory.createObjectLiteralExpression(inMemoryScrollingOptions));
|
|
35760
35868
|
}
|
|
35761
35869
|
if (configOptions.length > 0) {
|
|
35762
|
-
features.track("withRouterConfig",
|
|
35870
|
+
features.track("withRouterConfig", import_typescript109.default.factory.createObjectLiteralExpression(configOptions));
|
|
35763
35871
|
}
|
|
35764
35872
|
for (const [feature, featureArgs] of features.getEntries()) {
|
|
35765
35873
|
const callArgs = [];
|
|
@@ -35768,25 +35876,25 @@ function getRouterModuleForRootFeatures(sourceFile, options, tracker) {
|
|
|
35768
35876
|
callArgs.push(arg);
|
|
35769
35877
|
}
|
|
35770
35878
|
});
|
|
35771
|
-
featureExpressions.push(
|
|
35879
|
+
featureExpressions.push(import_typescript109.default.factory.createCallExpression(tracker.addImport(sourceFile, feature, "@angular/router"), [], callArgs));
|
|
35772
35880
|
}
|
|
35773
35881
|
return featureExpressions;
|
|
35774
35882
|
}
|
|
35775
35883
|
function addNodesToCopy(targetFile, rootNode, nodeLookup, tracker, nodesToCopy, referenceResolver) {
|
|
35776
35884
|
const refs = findAllSameFileReferences(rootNode, nodeLookup, referenceResolver);
|
|
35777
35885
|
for (const ref of refs) {
|
|
35778
|
-
const importSpecifier = closestOrSelf(ref,
|
|
35779
|
-
const importDeclaration = importSpecifier ? closestNode(importSpecifier,
|
|
35780
|
-
if (importDeclaration && importSpecifier &&
|
|
35886
|
+
const importSpecifier = closestOrSelf(ref, import_typescript109.default.isImportSpecifier);
|
|
35887
|
+
const importDeclaration = importSpecifier ? closestNode(importSpecifier, import_typescript109.default.isImportDeclaration) : null;
|
|
35888
|
+
if (importDeclaration && importSpecifier && import_typescript109.default.isStringLiteralLike(importDeclaration.moduleSpecifier)) {
|
|
35781
35889
|
const moduleName = importDeclaration.moduleSpecifier.text.startsWith(".") ? remapRelativeImport(targetFile.fileName, importDeclaration.moduleSpecifier) : importDeclaration.moduleSpecifier.text;
|
|
35782
35890
|
const symbolName = importSpecifier.propertyName ? importSpecifier.propertyName.text : importSpecifier.name.text;
|
|
35783
35891
|
const alias = importSpecifier.propertyName ? importSpecifier.name.text : null;
|
|
35784
35892
|
tracker.addImport(targetFile, symbolName, moduleName, alias);
|
|
35785
35893
|
continue;
|
|
35786
35894
|
}
|
|
35787
|
-
const variableDeclaration = closestOrSelf(ref,
|
|
35788
|
-
const variableStatement = variableDeclaration ? closestNode(variableDeclaration,
|
|
35789
|
-
if (variableDeclaration && variableStatement &&
|
|
35895
|
+
const variableDeclaration = closestOrSelf(ref, import_typescript109.default.isVariableDeclaration);
|
|
35896
|
+
const variableStatement = variableDeclaration ? closestNode(variableDeclaration, import_typescript109.default.isVariableStatement) : null;
|
|
35897
|
+
if (variableDeclaration && variableStatement && import_typescript109.default.isIdentifier(variableDeclaration.name)) {
|
|
35790
35898
|
if (isExported(variableStatement)) {
|
|
35791
35899
|
tracker.addImport(targetFile, variableDeclaration.name.text, getRelativeImportPath(targetFile.fileName, ref.getSourceFile().fileName));
|
|
35792
35900
|
} else {
|
|
@@ -35827,7 +35935,7 @@ function findAllSameFileReferences(rootNode, nodeLookup, referenceResolver) {
|
|
|
35827
35935
|
if (!closestTopLevel || traversedTopLevelNodes.has(closestTopLevel)) {
|
|
35828
35936
|
continue;
|
|
35829
35937
|
}
|
|
35830
|
-
if (!
|
|
35938
|
+
if (!import_typescript109.default.isImportDeclaration(closestTopLevel) && isOutsideRange(excludeStart, excludeEnd, closestTopLevel.getStart(), closestTopLevel.getEnd())) {
|
|
35831
35939
|
traversedTopLevelNodes.add(closestTopLevel);
|
|
35832
35940
|
walk(closestTopLevel);
|
|
35833
35941
|
}
|
|
@@ -35848,25 +35956,25 @@ function referencesToNodeWithinSameFile(node, nodeLookup, excludeStart, excludeE
|
|
|
35848
35956
|
function remapDynamicImports(targetFileName, rootNode) {
|
|
35849
35957
|
let hasChanged = false;
|
|
35850
35958
|
const transformer = (context) => {
|
|
35851
|
-
return (sourceFile) =>
|
|
35852
|
-
if (
|
|
35959
|
+
return (sourceFile) => import_typescript109.default.visitNode(sourceFile, function walk(node) {
|
|
35960
|
+
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
35961
|
hasChanged = true;
|
|
35854
35962
|
return context.factory.updateCallExpression(node, node.expression, node.typeArguments, [
|
|
35855
35963
|
context.factory.createStringLiteral(remapRelativeImport(targetFileName, node.arguments[0])),
|
|
35856
35964
|
...node.arguments.slice(1)
|
|
35857
35965
|
]);
|
|
35858
35966
|
}
|
|
35859
|
-
return
|
|
35967
|
+
return import_typescript109.default.visitEachChild(node, walk, context);
|
|
35860
35968
|
});
|
|
35861
35969
|
};
|
|
35862
|
-
const result =
|
|
35970
|
+
const result = import_typescript109.default.transform(rootNode, [transformer]).transformed[0];
|
|
35863
35971
|
return hasChanged ? result : rootNode;
|
|
35864
35972
|
}
|
|
35865
35973
|
function isTopLevelStatement(node) {
|
|
35866
|
-
return node.parent != null &&
|
|
35974
|
+
return node.parent != null && import_typescript109.default.isSourceFile(node.parent);
|
|
35867
35975
|
}
|
|
35868
35976
|
function isReferenceIdentifier(node) {
|
|
35869
|
-
return
|
|
35977
|
+
return import_typescript109.default.isIdentifier(node) && (!import_typescript109.default.isPropertyAssignment(node.parent) && !import_typescript109.default.isParameter(node.parent) || node.parent.name !== node);
|
|
35870
35978
|
}
|
|
35871
35979
|
function isOutsideRange(excludeStart, excludeEnd, start, end) {
|
|
35872
35980
|
return start < excludeStart && end < excludeStart || start > excludeEnd;
|
|
@@ -35875,15 +35983,15 @@ function remapRelativeImport(targetFileName, specifier) {
|
|
|
35875
35983
|
return getRelativeImportPath(targetFileName, (0, import_path7.join)((0, import_path7.dirname)(specifier.getSourceFile().fileName), specifier.text));
|
|
35876
35984
|
}
|
|
35877
35985
|
function isExported(node) {
|
|
35878
|
-
return
|
|
35986
|
+
return import_typescript109.default.canHaveModifiers(node) && node.modifiers ? node.modifiers.some((modifier) => modifier.kind === import_typescript109.default.SyntaxKind.ExportKeyword) : false;
|
|
35879
35987
|
}
|
|
35880
35988
|
function isExportableDeclaration(node) {
|
|
35881
|
-
return
|
|
35989
|
+
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
35990
|
}
|
|
35883
35991
|
function getLastImportEnd(sourceFile) {
|
|
35884
35992
|
let index = 0;
|
|
35885
35993
|
for (const statement of sourceFile.statements) {
|
|
35886
|
-
if (
|
|
35994
|
+
if (import_typescript109.default.isImportDeclaration(statement)) {
|
|
35887
35995
|
index = Math.max(index, statement.getEnd());
|
|
35888
35996
|
} else {
|
|
35889
35997
|
break;
|
|
@@ -35891,8 +35999,24 @@ function getLastImportEnd(sourceFile) {
|
|
|
35891
35999
|
}
|
|
35892
36000
|
return index;
|
|
35893
36001
|
}
|
|
36002
|
+
function hasImport(program, rootFileNames, moduleName) {
|
|
36003
|
+
const tsProgram = program.getTsProgram();
|
|
36004
|
+
const deepImportStart = moduleName + "/";
|
|
36005
|
+
for (const fileName of rootFileNames) {
|
|
36006
|
+
const sourceFile = tsProgram.getSourceFile(fileName);
|
|
36007
|
+
if (!sourceFile) {
|
|
36008
|
+
continue;
|
|
36009
|
+
}
|
|
36010
|
+
for (const statement of sourceFile.statements) {
|
|
36011
|
+
if (import_typescript109.default.isImportDeclaration(statement) && import_typescript109.default.isStringLiteralLike(statement.moduleSpecifier) && (statement.moduleSpecifier.text === moduleName || statement.moduleSpecifier.text.startsWith(deepImportStart))) {
|
|
36012
|
+
return true;
|
|
36013
|
+
}
|
|
36014
|
+
}
|
|
36015
|
+
}
|
|
36016
|
+
return false;
|
|
36017
|
+
}
|
|
35894
36018
|
|
|
35895
|
-
// bazel-out/
|
|
36019
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/index.mjs
|
|
35896
36020
|
var MigrationMode;
|
|
35897
36021
|
(function(MigrationMode2) {
|
|
35898
36022
|
MigrationMode2["toStandalone"] = "convert-to-standalone";
|
|
@@ -35931,7 +36055,7 @@ function standaloneMigration(tree, tsconfigPath, basePath, pathToMigrate, schema
|
|
|
35931
36055
|
});
|
|
35932
36056
|
const referenceLookupExcludedFiles = /node_modules|\.ngtypecheck\.ts/;
|
|
35933
36057
|
const program = createProgram({ rootNames, host, options, oldProgram });
|
|
35934
|
-
const printer =
|
|
36058
|
+
const printer = import_typescript110.default.createPrinter();
|
|
35935
36059
|
if ((0, import_fs2.existsSync)(pathToMigrate) && !(0, import_fs2.statSync)(pathToMigrate).isDirectory()) {
|
|
35936
36060
|
throw new import_schematics.SchematicsException(`Migration path ${pathToMigrate} has to be a directory. Cannot run the standalone migration.`);
|
|
35937
36061
|
}
|