@angular/core 18.0.0 → 18.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/primitives/event-dispatch/index.mjs +4 -2
- package/esm2022/primitives/event-dispatch/src/action_resolver.mjs +51 -35
- package/esm2022/primitives/event-dispatch/src/dispatcher.mjs +8 -6
- package/esm2022/primitives/event-dispatch/src/event.mjs +3 -7
- package/esm2022/primitives/event-dispatch/src/event_dispatcher.mjs +128 -0
- package/esm2022/primitives/event-dispatch/src/event_type.mjs +85 -1
- package/esm2022/primitives/event-dispatch/src/eventcontract.mjs +5 -8
- package/esm2022/primitives/signals/src/graph.mjs +6 -5
- package/esm2022/src/application/create_application.mjs +8 -3
- package/esm2022/src/change_detection/scheduling/ng_zone_scheduling.mjs +5 -14
- package/esm2022/src/change_detection/scheduling/zoneless_scheduling_impl.mjs +2 -2
- package/esm2022/src/core_private_export.mjs +3 -2
- package/esm2022/src/error_details_base_url.mjs +2 -2
- package/esm2022/src/errors.mjs +1 -1
- package/esm2022/src/event_delegation_utils.mjs +68 -0
- package/esm2022/src/hydration/annotate.mjs +24 -8
- package/esm2022/src/hydration/api.mjs +2 -2
- package/esm2022/src/hydration/event_replay.mjs +55 -81
- package/esm2022/src/hydration/tokens.mjs +6 -1
- package/esm2022/src/image_performance_warning.mjs +3 -3
- package/esm2022/src/platform/platform_ref.mjs +10 -3
- package/esm2022/src/render3/component_ref.mjs +1 -1
- package/esm2022/src/render3/instructions/listener.mjs +8 -11
- package/esm2022/src/render3/instructions/shared.mjs +3 -3
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/logger.mjs +3 -3
- package/esm2022/testing/src/test_bed_compiler.mjs +7 -3
- package/fesm2022/core.mjs +340 -292
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/primitives/event-dispatch.mjs +1402 -1189
- package/fesm2022/primitives/event-dispatch.mjs.map +1 -1
- package/fesm2022/primitives/signals.mjs +6 -5
- package/fesm2022/primitives/signals.mjs.map +1 -1
- package/fesm2022/rxjs-interop.mjs +1 -1
- package/fesm2022/testing.mjs +7 -3
- package/fesm2022/testing.mjs.map +1 -1
- package/index.d.ts +45 -3
- package/package.json +2 -2
- package/primitives/event-dispatch/index.d.ts +109 -116
- package/primitives/signals/index.d.ts +1 -1
- package/rxjs-interop/index.d.ts +1 -1
- package/schematics/migrations/http-providers/bundle.js +25 -17
- package/schematics/migrations/http-providers/bundle.js.map +2 -2
- package/schematics/migrations/invalid-two-way-bindings/bundle.js +337 -166
- package/schematics/migrations/invalid-two-way-bindings/bundle.js.map +3 -3
- package/schematics/ng-generate/control-flow-migration/bundle.js +361 -183
- package/schematics/ng-generate/control-flow-migration/bundle.js.map +3 -3
- package/schematics/ng-generate/standalone-migration/bundle.js +812 -497
- package/schematics/ng-generate/standalone-migration/bundle.js.map +3 -3
- package/testing/index.d.ts +1 -1
- package/esm2022/src/change_detection/scheduling/flags.mjs +0 -10
|
@@ -2501,7 +2501,7 @@ var require_semver2 = __commonJS({
|
|
|
2501
2501
|
}
|
|
2502
2502
|
});
|
|
2503
2503
|
|
|
2504
|
-
// bazel-out/
|
|
2504
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/index.mjs
|
|
2505
2505
|
var standalone_migration_exports = {};
|
|
2506
2506
|
__export(standalone_migration_exports, {
|
|
2507
2507
|
default: () => standalone_migration_default
|
|
@@ -2509,10 +2509,10 @@ __export(standalone_migration_exports, {
|
|
|
2509
2509
|
module.exports = __toCommonJS(standalone_migration_exports);
|
|
2510
2510
|
var import_schematics = require("@angular-devkit/schematics");
|
|
2511
2511
|
|
|
2512
|
-
// bazel-out/
|
|
2512
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/compiler_host.mjs
|
|
2513
2513
|
var import_typescript = __toESM(require("typescript"), 1);
|
|
2514
2514
|
|
|
2515
|
-
// bazel-out/
|
|
2515
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/invalid_file_system.mjs
|
|
2516
2516
|
var InvalidFileSystem = class {
|
|
2517
2517
|
exists(path4) {
|
|
2518
2518
|
throw makeError();
|
|
@@ -2600,7 +2600,7 @@ function makeError() {
|
|
|
2600
2600
|
return new Error("FileSystem has not been configured. Please call `setFileSystem()` before calling this method.");
|
|
2601
2601
|
}
|
|
2602
2602
|
|
|
2603
|
-
// bazel-out/
|
|
2603
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/util.mjs
|
|
2604
2604
|
var TS_DTS_JS_EXTENSION = /(?:\.d)?\.ts$|\.js$/;
|
|
2605
2605
|
function stripExtension(path4) {
|
|
2606
2606
|
return path4.replace(TS_DTS_JS_EXTENSION, "");
|
|
@@ -2613,7 +2613,7 @@ function getSourceFileOrError(program, fileName) {
|
|
|
2613
2613
|
return sf;
|
|
2614
2614
|
}
|
|
2615
2615
|
|
|
2616
|
-
// bazel-out/
|
|
2616
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/helpers.mjs
|
|
2617
2617
|
var fs = new InvalidFileSystem();
|
|
2618
2618
|
function getFileSystem() {
|
|
2619
2619
|
return fs;
|
|
@@ -2657,7 +2657,7 @@ function toRelativeImport(relativePath) {
|
|
|
2657
2657
|
return isLocalRelativePath(relativePath) ? `./${relativePath}` : relativePath;
|
|
2658
2658
|
}
|
|
2659
2659
|
|
|
2660
|
-
// bazel-out/
|
|
2660
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/logical.mjs
|
|
2661
2661
|
var LogicalProjectPath = {
|
|
2662
2662
|
relativePathBetween: function(from, to) {
|
|
2663
2663
|
const relativePath = relative(dirname(resolve(from)), resolve(to));
|
|
@@ -2703,7 +2703,7 @@ function isWithinBasePath(base, path4) {
|
|
|
2703
2703
|
return isLocalRelativePath(relative(base, path4));
|
|
2704
2704
|
}
|
|
2705
2705
|
|
|
2706
|
-
// bazel-out/
|
|
2706
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/file_system/src/node_js_file_system.mjs
|
|
2707
2707
|
var import_fs = __toESM(require("fs"), 1);
|
|
2708
2708
|
var import_module = require("module");
|
|
2709
2709
|
var p = __toESM(require("path"), 1);
|
|
@@ -2811,7 +2811,7 @@ function toggleCase(str) {
|
|
|
2811
2811
|
return str.replace(/\w/g, (ch) => ch.toUpperCase() === ch ? ch.toLowerCase() : ch.toUpperCase());
|
|
2812
2812
|
}
|
|
2813
2813
|
|
|
2814
|
-
// bazel-out/
|
|
2814
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/selector.mjs
|
|
2815
2815
|
var _SELECTOR_REGEXP = new RegExp(
|
|
2816
2816
|
`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,
|
|
2817
2817
|
"g"
|
|
@@ -3119,7 +3119,7 @@ var SelectorContext = class {
|
|
|
3119
3119
|
}
|
|
3120
3120
|
};
|
|
3121
3121
|
|
|
3122
|
-
// bazel-out/
|
|
3122
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/core.mjs
|
|
3123
3123
|
var emitDistinctChangesOnlyDefaultValue = true;
|
|
3124
3124
|
var ViewEncapsulation;
|
|
3125
3125
|
(function(ViewEncapsulation2) {
|
|
@@ -3188,7 +3188,7 @@ function parseSelectorToR3Selector(selector) {
|
|
|
3188
3188
|
return selector ? CssSelector.parse(selector).map(parserSelectorToR3Selector) : [];
|
|
3189
3189
|
}
|
|
3190
3190
|
|
|
3191
|
-
// bazel-out/
|
|
3191
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/output_ast.mjs
|
|
3192
3192
|
var output_ast_exports = {};
|
|
3193
3193
|
__export(output_ast_exports, {
|
|
3194
3194
|
ArrayType: () => ArrayType,
|
|
@@ -3276,7 +3276,7 @@ __export(output_ast_exports, {
|
|
|
3276
3276
|
variable: () => variable
|
|
3277
3277
|
});
|
|
3278
3278
|
|
|
3279
|
-
// bazel-out/
|
|
3279
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/digest.mjs
|
|
3280
3280
|
var textEncoder;
|
|
3281
3281
|
function digest(message) {
|
|
3282
3282
|
return message.id || computeDigest(message);
|
|
@@ -3519,7 +3519,7 @@ function wordAt(bytes, index, endian) {
|
|
|
3519
3519
|
return word;
|
|
3520
3520
|
}
|
|
3521
3521
|
|
|
3522
|
-
// bazel-out/
|
|
3522
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/output_ast.mjs
|
|
3523
3523
|
var TypeModifier;
|
|
3524
3524
|
(function(TypeModifier2) {
|
|
3525
3525
|
TypeModifier2[TypeModifier2["None"] = 0] = "None";
|
|
@@ -4714,7 +4714,7 @@ function serializeTags(tags) {
|
|
|
4714
4714
|
return out;
|
|
4715
4715
|
}
|
|
4716
4716
|
|
|
4717
|
-
// bazel-out/
|
|
4717
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/constant_pool.mjs
|
|
4718
4718
|
var CONSTANT_PREFIX = "_c";
|
|
4719
4719
|
var UNKNOWN_VALUE_KEY = variable("<unknown>");
|
|
4720
4720
|
var KEY_CONTEXT = {};
|
|
@@ -4902,7 +4902,7 @@ function isLongStringLiteral(expr) {
|
|
|
4902
4902
|
return expr instanceof LiteralExpr && typeof expr.value === "string" && expr.value.length >= POOL_INCLUSION_LENGTH_THRESHOLD_FOR_STRINGS;
|
|
4903
4903
|
}
|
|
4904
4904
|
|
|
4905
|
-
// bazel-out/
|
|
4905
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_identifiers.mjs
|
|
4906
4906
|
var CORE = "@angular/core";
|
|
4907
4907
|
var _Identifiers = class {
|
|
4908
4908
|
};
|
|
@@ -5790,7 +5790,7 @@ var Identifiers = _Identifiers;
|
|
|
5790
5790
|
_Identifiers.unwrapWritableSignal = { name: "\u0275unwrapWritableSignal", moduleName: CORE };
|
|
5791
5791
|
})();
|
|
5792
5792
|
|
|
5793
|
-
// bazel-out/
|
|
5793
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/util.mjs
|
|
5794
5794
|
var DASH_CASE_REGEXP = /-+([a-z0-9])/g;
|
|
5795
5795
|
function dashCaseToCamelCase(input) {
|
|
5796
5796
|
return input.replace(DASH_CASE_REGEXP, (...m) => m[1].toUpperCase());
|
|
@@ -5867,7 +5867,7 @@ var Version = class {
|
|
|
5867
5867
|
};
|
|
5868
5868
|
var _global = globalThis;
|
|
5869
5869
|
|
|
5870
|
-
// bazel-out/
|
|
5870
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/source_map.mjs
|
|
5871
5871
|
var VERSION = 3;
|
|
5872
5872
|
var JS_B64_PREFIX = "# sourceMappingURL=data:application/json;base64,";
|
|
5873
5873
|
var SourceMapGenerator = class {
|
|
@@ -5996,7 +5996,7 @@ function toBase64Digit(value) {
|
|
|
5996
5996
|
return B64_DIGITS[value];
|
|
5997
5997
|
}
|
|
5998
5998
|
|
|
5999
|
-
// bazel-out/
|
|
5999
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/abstract_emitter.mjs
|
|
6000
6000
|
var _SINGLE_QUOTE_ESCAPE_STRING_RE = /'|\\|\n|\r|\$/g;
|
|
6001
6001
|
var _LEGAL_IDENTIFIER_RE = /^[$A-Z_][0-9A-Z_$]*$/i;
|
|
6002
6002
|
var _INDENT_WITH = " ";
|
|
@@ -6484,7 +6484,7 @@ function _createIndent(count) {
|
|
|
6484
6484
|
return res;
|
|
6485
6485
|
}
|
|
6486
6486
|
|
|
6487
|
-
// bazel-out/
|
|
6487
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/util.mjs
|
|
6488
6488
|
function typeWithParameters(type, numParams) {
|
|
6489
6489
|
if (numParams === 0) {
|
|
6490
6490
|
return expressionType(type);
|
|
@@ -6542,7 +6542,7 @@ function generateForwardRef(expr) {
|
|
|
6542
6542
|
return importExpr(Identifiers.forwardRef).callFn([arrowFn([], expr)]);
|
|
6543
6543
|
}
|
|
6544
6544
|
|
|
6545
|
-
// bazel-out/
|
|
6545
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_factory.mjs
|
|
6546
6546
|
var R3FactoryDelegateType;
|
|
6547
6547
|
(function(R3FactoryDelegateType2) {
|
|
6548
6548
|
R3FactoryDelegateType2[R3FactoryDelegateType2["Class"] = 0] = "Class";
|
|
@@ -6687,7 +6687,7 @@ function getInjectFn(target) {
|
|
|
6687
6687
|
}
|
|
6688
6688
|
}
|
|
6689
6689
|
|
|
6690
|
-
// bazel-out/
|
|
6690
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/expression_parser/ast.mjs
|
|
6691
6691
|
var ParserError = class {
|
|
6692
6692
|
constructor(message, input, errLocation, ctxLocation) {
|
|
6693
6693
|
this.input = input;
|
|
@@ -7125,7 +7125,7 @@ var BoundElementProperty = class {
|
|
|
7125
7125
|
}
|
|
7126
7126
|
};
|
|
7127
7127
|
|
|
7128
|
-
// bazel-out/
|
|
7128
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/tags.mjs
|
|
7129
7129
|
var TagContentType;
|
|
7130
7130
|
(function(TagContentType2) {
|
|
7131
7131
|
TagContentType2[TagContentType2["RAW_TEXT"] = 0] = "RAW_TEXT";
|
|
@@ -7162,7 +7162,7 @@ function mergeNsAndName(prefix, localName) {
|
|
|
7162
7162
|
return prefix ? `:${prefix}:${localName}` : localName;
|
|
7163
7163
|
}
|
|
7164
7164
|
|
|
7165
|
-
// bazel-out/
|
|
7165
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_ast.mjs
|
|
7166
7166
|
var Comment = class {
|
|
7167
7167
|
constructor(value, sourceSpan) {
|
|
7168
7168
|
this.value = value;
|
|
@@ -7460,6 +7460,18 @@ var UnknownBlock = class {
|
|
|
7460
7460
|
return visitor.visitUnknownBlock(this);
|
|
7461
7461
|
}
|
|
7462
7462
|
};
|
|
7463
|
+
var LetDeclaration = class {
|
|
7464
|
+
constructor(name, value, sourceSpan, nameSpan, valueSpan) {
|
|
7465
|
+
this.name = name;
|
|
7466
|
+
this.value = value;
|
|
7467
|
+
this.sourceSpan = sourceSpan;
|
|
7468
|
+
this.nameSpan = nameSpan;
|
|
7469
|
+
this.valueSpan = valueSpan;
|
|
7470
|
+
}
|
|
7471
|
+
visit(visitor) {
|
|
7472
|
+
return visitor.visitLetDeclaration(this);
|
|
7473
|
+
}
|
|
7474
|
+
};
|
|
7463
7475
|
var Template = class {
|
|
7464
7476
|
constructor(tagName, attributes, inputs, outputs, templateAttrs, children, references, variables, sourceSpan, startSourceSpan, endSourceSpan, i18n2) {
|
|
7465
7477
|
this.tagName = tagName;
|
|
@@ -7600,6 +7612,8 @@ var RecursiveVisitor = class {
|
|
|
7600
7612
|
}
|
|
7601
7613
|
visitUnknownBlock(block) {
|
|
7602
7614
|
}
|
|
7615
|
+
visitLetDeclaration(decl) {
|
|
7616
|
+
}
|
|
7603
7617
|
};
|
|
7604
7618
|
function visitAll(visitor, nodes) {
|
|
7605
7619
|
const result = [];
|
|
@@ -7618,7 +7632,7 @@ function visitAll(visitor, nodes) {
|
|
|
7618
7632
|
return result;
|
|
7619
7633
|
}
|
|
7620
7634
|
|
|
7621
|
-
// bazel-out/
|
|
7635
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/i18n_ast.mjs
|
|
7622
7636
|
var Message = class {
|
|
7623
7637
|
constructor(nodes, placeholders, placeholderToMessage, meaning, description, customId) {
|
|
7624
7638
|
this.nodes = nodes;
|
|
@@ -7809,7 +7823,7 @@ var LocalizeMessageStringVisitor = class {
|
|
|
7809
7823
|
}
|
|
7810
7824
|
};
|
|
7811
7825
|
|
|
7812
|
-
// bazel-out/
|
|
7826
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/serializer.mjs
|
|
7813
7827
|
var Serializer = class {
|
|
7814
7828
|
createNameMapper(message) {
|
|
7815
7829
|
return null;
|
|
@@ -7866,7 +7880,7 @@ var SimplePlaceholderMapper = class extends RecurseVisitor {
|
|
|
7866
7880
|
}
|
|
7867
7881
|
};
|
|
7868
7882
|
|
|
7869
|
-
// bazel-out/
|
|
7883
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/xml_helper.mjs
|
|
7870
7884
|
var _Visitor = class {
|
|
7871
7885
|
visitTag(tag) {
|
|
7872
7886
|
const strAttrs = this._serializeAttributes(tag.attrs);
|
|
@@ -7954,7 +7968,7 @@ function escapeXml(text2) {
|
|
|
7954
7968
|
return _ESCAPED_CHARS.reduce((text3, entry) => text3.replace(entry[0], entry[1]), text2);
|
|
7955
7969
|
}
|
|
7956
7970
|
|
|
7957
|
-
// bazel-out/
|
|
7971
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/xmb.mjs
|
|
7958
7972
|
var _XMB_HANDLER = "angular";
|
|
7959
7973
|
var _MESSAGES_TAG = "messagebundle";
|
|
7960
7974
|
var _MESSAGE_TAG = "msg";
|
|
@@ -8116,7 +8130,7 @@ function toPublicName(internalName) {
|
|
|
8116
8130
|
return internalName.toUpperCase().replace(/[^A-Z0-9_]/g, "_");
|
|
8117
8131
|
}
|
|
8118
8132
|
|
|
8119
|
-
// bazel-out/
|
|
8133
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/util.mjs
|
|
8120
8134
|
var I18N_ATTR = "i18n";
|
|
8121
8135
|
var I18N_ATTR_PREFIX = "i18n-";
|
|
8122
8136
|
var I18N_ICU_VAR_PREFIX = "VAR_";
|
|
@@ -8156,7 +8170,7 @@ function formatI18nPlaceholderName(name, useCamelCase = true) {
|
|
|
8156
8170
|
return postfix ? `${raw}_${postfix}` : raw;
|
|
8157
8171
|
}
|
|
8158
8172
|
|
|
8159
|
-
// bazel-out/
|
|
8173
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/util.mjs
|
|
8160
8174
|
var UNSAFE_OBJECT_KEY_NAME_REGEXP = /[-.]/;
|
|
8161
8175
|
var TEMPORARY_NAME = "_t";
|
|
8162
8176
|
var CONTEXT_NAME = "ctx";
|
|
@@ -8283,7 +8297,7 @@ function getAttrsForDirectiveMatching(elOrTpl) {
|
|
|
8283
8297
|
return attributesMap;
|
|
8284
8298
|
}
|
|
8285
8299
|
|
|
8286
|
-
// bazel-out/
|
|
8300
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/injectable_compiler_2.mjs
|
|
8287
8301
|
function compileInjectable(meta, resolveForwardRefs) {
|
|
8288
8302
|
let result = null;
|
|
8289
8303
|
const factoryMeta = {
|
|
@@ -8370,7 +8384,7 @@ function createFactoryFunction(type) {
|
|
|
8370
8384
|
return arrowFn([new FnParam("t", DYNAMIC_TYPE)], type.prop("\u0275fac").callFn([variable("t")]));
|
|
8371
8385
|
}
|
|
8372
8386
|
|
|
8373
|
-
// bazel-out/
|
|
8387
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/assertions.mjs
|
|
8374
8388
|
var UNUSABLE_INTERPOLATION_REGEXPS = [
|
|
8375
8389
|
/@/,
|
|
8376
8390
|
/^\s*$/,
|
|
@@ -8393,7 +8407,7 @@ function assertInterpolationSymbols(identifier, value) {
|
|
|
8393
8407
|
}
|
|
8394
8408
|
}
|
|
8395
8409
|
|
|
8396
|
-
// bazel-out/
|
|
8410
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/defaults.mjs
|
|
8397
8411
|
var InterpolationConfig = class {
|
|
8398
8412
|
static fromArray(markers) {
|
|
8399
8413
|
if (!markers) {
|
|
@@ -8410,7 +8424,7 @@ var InterpolationConfig = class {
|
|
|
8410
8424
|
var DEFAULT_INTERPOLATION_CONFIG = new InterpolationConfig("{{", "}}");
|
|
8411
8425
|
var DEFAULT_CONTAINER_BLOCKS = /* @__PURE__ */ new Set(["switch"]);
|
|
8412
8426
|
|
|
8413
|
-
// bazel-out/
|
|
8427
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/chars.mjs
|
|
8414
8428
|
var $EOF = 0;
|
|
8415
8429
|
var $BSPACE = 8;
|
|
8416
8430
|
var $TAB = 9;
|
|
@@ -8492,7 +8506,7 @@ function isQuote(code) {
|
|
|
8492
8506
|
return code === $SQ || code === $DQ || code === $BT;
|
|
8493
8507
|
}
|
|
8494
8508
|
|
|
8495
|
-
// bazel-out/
|
|
8509
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/parse_util.mjs
|
|
8496
8510
|
var ParseLocation = class {
|
|
8497
8511
|
constructor(file, offset, line, col) {
|
|
8498
8512
|
this.file = file;
|
|
@@ -8639,7 +8653,7 @@ function sanitizeIdentifier(name) {
|
|
|
8639
8653
|
return name.replace(/\W/g, "_");
|
|
8640
8654
|
}
|
|
8641
8655
|
|
|
8642
|
-
// bazel-out/
|
|
8656
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/abstract_js_emitter.mjs
|
|
8643
8657
|
var makeTemplateObjectPolyfill = '(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})';
|
|
8644
8658
|
var AbstractJsEmitterVisitor = class extends AbstractEmitterVisitor {
|
|
8645
8659
|
constructor() {
|
|
@@ -8732,7 +8746,7 @@ var AbstractJsEmitterVisitor = class extends AbstractEmitterVisitor {
|
|
|
8732
8746
|
}
|
|
8733
8747
|
};
|
|
8734
8748
|
|
|
8735
|
-
// bazel-out/
|
|
8749
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/output_jit_trusted_types.mjs
|
|
8736
8750
|
var policy;
|
|
8737
8751
|
function getPolicy() {
|
|
8738
8752
|
if (policy === void 0) {
|
|
@@ -8770,7 +8784,7 @@ function newTrustedFunctionForJIT(...args) {
|
|
|
8770
8784
|
return fn2.bind(_global);
|
|
8771
8785
|
}
|
|
8772
8786
|
|
|
8773
|
-
// bazel-out/
|
|
8787
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/output_jit.mjs
|
|
8774
8788
|
var JitEvaluator = class {
|
|
8775
8789
|
evaluateStatements(sourceUrl, statements, refResolver, createSourceMaps) {
|
|
8776
8790
|
const converter = new JitEmitterVisitor(refResolver);
|
|
@@ -8858,7 +8872,7 @@ function isUseStrictStatement(statement) {
|
|
|
8858
8872
|
return statement.isEquivalent(literal("use strict").toStmt());
|
|
8859
8873
|
}
|
|
8860
8874
|
|
|
8861
|
-
// bazel-out/
|
|
8875
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_injector_compiler.mjs
|
|
8862
8876
|
function compileInjector(meta) {
|
|
8863
8877
|
const definitionMap = new DefinitionMap();
|
|
8864
8878
|
if (meta.providers !== null) {
|
|
@@ -8875,7 +8889,7 @@ function createInjectorType(meta) {
|
|
|
8875
8889
|
return new ExpressionType(importExpr(Identifiers.InjectorDeclaration, [new ExpressionType(meta.type.type)]));
|
|
8876
8890
|
}
|
|
8877
8891
|
|
|
8878
|
-
// bazel-out/
|
|
8892
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_jit.mjs
|
|
8879
8893
|
var R3JitReflector = class {
|
|
8880
8894
|
constructor(context) {
|
|
8881
8895
|
this.context = context;
|
|
@@ -8891,7 +8905,7 @@ var R3JitReflector = class {
|
|
|
8891
8905
|
}
|
|
8892
8906
|
};
|
|
8893
8907
|
|
|
8894
|
-
// bazel-out/
|
|
8908
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_module_compiler.mjs
|
|
8895
8909
|
var R3SelectorScopeMode;
|
|
8896
8910
|
(function(R3SelectorScopeMode2) {
|
|
8897
8911
|
R3SelectorScopeMode2[R3SelectorScopeMode2["Inline"] = 0] = "Inline";
|
|
@@ -9026,7 +9040,7 @@ function tupleOfTypes(types) {
|
|
|
9026
9040
|
return types.length > 0 ? expressionType(literalArr(typeofTypes)) : NONE_TYPE;
|
|
9027
9041
|
}
|
|
9028
9042
|
|
|
9029
|
-
// bazel-out/
|
|
9043
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_pipe_compiler.mjs
|
|
9030
9044
|
function compilePipeFromMetadata(metadata) {
|
|
9031
9045
|
const definitionMapValues = [];
|
|
9032
9046
|
definitionMapValues.push({ key: "name", value: literal(metadata.pipeName), quoted: false });
|
|
@@ -9047,7 +9061,7 @@ function createPipeType(metadata) {
|
|
|
9047
9061
|
]));
|
|
9048
9062
|
}
|
|
9049
9063
|
|
|
9050
|
-
// bazel-out/
|
|
9064
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/api.mjs
|
|
9051
9065
|
var R3TemplateDependencyKind;
|
|
9052
9066
|
(function(R3TemplateDependencyKind2) {
|
|
9053
9067
|
R3TemplateDependencyKind2[R3TemplateDependencyKind2["Directive"] = 0] = "Directive";
|
|
@@ -9055,7 +9069,7 @@ var R3TemplateDependencyKind;
|
|
|
9055
9069
|
R3TemplateDependencyKind2[R3TemplateDependencyKind2["NgModule"] = 2] = "NgModule";
|
|
9056
9070
|
})(R3TemplateDependencyKind || (R3TemplateDependencyKind = {}));
|
|
9057
9071
|
|
|
9058
|
-
// bazel-out/
|
|
9072
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/shadow_css.mjs
|
|
9059
9073
|
var animationKeywords = /* @__PURE__ */ new Set([
|
|
9060
9074
|
"inherit",
|
|
9061
9075
|
"initial",
|
|
@@ -9535,7 +9549,7 @@ function repeatGroups(groups, multiples) {
|
|
|
9535
9549
|
}
|
|
9536
9550
|
}
|
|
9537
9551
|
|
|
9538
|
-
// bazel-out/
|
|
9552
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/enums.mjs
|
|
9539
9553
|
var OpKind;
|
|
9540
9554
|
(function(OpKind2) {
|
|
9541
9555
|
OpKind2[OpKind2["ListEnd"] = 0] = "ListEnd";
|
|
@@ -9689,7 +9703,7 @@ var TemplateKind;
|
|
|
9689
9703
|
TemplateKind2[TemplateKind2["Block"] = 2] = "Block";
|
|
9690
9704
|
})(TemplateKind || (TemplateKind = {}));
|
|
9691
9705
|
|
|
9692
|
-
// bazel-out/
|
|
9706
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/traits.mjs
|
|
9693
9707
|
var ConsumesSlot = Symbol("ConsumesSlot");
|
|
9694
9708
|
var DependsOnSlotContext = Symbol("DependsOnSlotContext");
|
|
9695
9709
|
var ConsumesVarsTrait = Symbol("ConsumesVars");
|
|
@@ -9717,7 +9731,7 @@ function hasUsesVarOffsetTrait(expr) {
|
|
|
9717
9731
|
return expr[UsesVarOffset] === true;
|
|
9718
9732
|
}
|
|
9719
9733
|
|
|
9720
|
-
// bazel-out/
|
|
9734
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/shared.mjs
|
|
9721
9735
|
function createStatementOp(statement) {
|
|
9722
9736
|
return __spreadValues({
|
|
9723
9737
|
kind: OpKind.Statement,
|
|
@@ -9739,7 +9753,7 @@ var NEW_OP = {
|
|
|
9739
9753
|
next: null
|
|
9740
9754
|
};
|
|
9741
9755
|
|
|
9742
|
-
// bazel-out/
|
|
9756
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/update.mjs
|
|
9743
9757
|
function createInterpolateTextOp(xref, interpolation, sourceSpan) {
|
|
9744
9758
|
return __spreadValues(__spreadValues(__spreadValues({
|
|
9745
9759
|
kind: OpKind.InterpolateText,
|
|
@@ -9919,7 +9933,7 @@ function createI18nApplyOp(owner, handle, sourceSpan) {
|
|
|
9919
9933
|
}, NEW_OP);
|
|
9920
9934
|
}
|
|
9921
9935
|
|
|
9922
|
-
// bazel-out/
|
|
9936
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/expression.mjs
|
|
9923
9937
|
var _a;
|
|
9924
9938
|
var _b;
|
|
9925
9939
|
var _c;
|
|
@@ -10781,7 +10795,7 @@ function isStringLiteral(expr) {
|
|
|
10781
10795
|
return expr instanceof LiteralExpr && typeof expr.value === "string";
|
|
10782
10796
|
}
|
|
10783
10797
|
|
|
10784
|
-
// bazel-out/
|
|
10798
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/operations.mjs
|
|
10785
10799
|
var _OpList = class {
|
|
10786
10800
|
constructor() {
|
|
10787
10801
|
this.debugListId = _OpList.nextListId++;
|
|
@@ -10972,14 +10986,14 @@ var OpList = _OpList;
|
|
|
10972
10986
|
_OpList.nextListId = 0;
|
|
10973
10987
|
})();
|
|
10974
10988
|
|
|
10975
|
-
// bazel-out/
|
|
10989
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/handle.mjs
|
|
10976
10990
|
var SlotHandle = class {
|
|
10977
10991
|
constructor() {
|
|
10978
10992
|
this.slot = null;
|
|
10979
10993
|
}
|
|
10980
10994
|
};
|
|
10981
10995
|
|
|
10982
|
-
// bazel-out/
|
|
10996
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/create.mjs
|
|
10983
10997
|
var elementContainerOpKinds = /* @__PURE__ */ new Set([
|
|
10984
10998
|
OpKind.Element,
|
|
10985
10999
|
OpKind.ElementStart,
|
|
@@ -11283,7 +11297,7 @@ function createI18nAttributesOp(xref, handle, target) {
|
|
|
11283
11297
|
}, NEW_OP), TRAIT_CONSUMES_SLOT);
|
|
11284
11298
|
}
|
|
11285
11299
|
|
|
11286
|
-
// bazel-out/
|
|
11300
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/host.mjs
|
|
11287
11301
|
function createHostPropertyOp(name, expression, isAnimationTrigger, i18nContext, securityContext, sourceSpan) {
|
|
11288
11302
|
return __spreadValues(__spreadValues({
|
|
11289
11303
|
kind: OpKind.HostProperty,
|
|
@@ -11297,10 +11311,10 @@ function createHostPropertyOp(name, expression, isAnimationTrigger, i18nContext,
|
|
|
11297
11311
|
}, TRAIT_CONSUMES_VARS), NEW_OP);
|
|
11298
11312
|
}
|
|
11299
11313
|
|
|
11300
|
-
// bazel-out/
|
|
11314
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/variable.mjs
|
|
11301
11315
|
var CTX_REF = "CTX_REF_MARKER";
|
|
11302
11316
|
|
|
11303
|
-
// bazel-out/
|
|
11317
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/compilation.mjs
|
|
11304
11318
|
var CompilationJobKind;
|
|
11305
11319
|
(function(CompilationJobKind2) {
|
|
11306
11320
|
CompilationJobKind2[CompilationJobKind2["Tmpl"] = 0] = "Tmpl";
|
|
@@ -11408,7 +11422,7 @@ var HostBindingCompilationUnit = class extends CompilationUnit {
|
|
|
11408
11422
|
}
|
|
11409
11423
|
};
|
|
11410
11424
|
|
|
11411
|
-
// bazel-out/
|
|
11425
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/any_cast.mjs
|
|
11412
11426
|
function deleteAnyCasts(job) {
|
|
11413
11427
|
for (const unit of job.units) {
|
|
11414
11428
|
for (const op of unit.ops()) {
|
|
@@ -11426,7 +11440,7 @@ function removeAnys(e) {
|
|
|
11426
11440
|
return e;
|
|
11427
11441
|
}
|
|
11428
11442
|
|
|
11429
|
-
// bazel-out/
|
|
11443
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/apply_i18n_expressions.mjs
|
|
11430
11444
|
function applyI18nExpressions(job) {
|
|
11431
11445
|
const i18nContexts = /* @__PURE__ */ new Map();
|
|
11432
11446
|
for (const unit of job.units) {
|
|
@@ -11469,7 +11483,7 @@ function needsApplication(i18nContexts, op) {
|
|
|
11469
11483
|
return false;
|
|
11470
11484
|
}
|
|
11471
11485
|
|
|
11472
|
-
// bazel-out/
|
|
11486
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/assign_i18n_slot_dependencies.mjs
|
|
11473
11487
|
function assignI18nSlotDependencies(job) {
|
|
11474
11488
|
for (const unit of job.units) {
|
|
11475
11489
|
let updateOp = unit.update.head;
|
|
@@ -11514,7 +11528,7 @@ function assignI18nSlotDependencies(job) {
|
|
|
11514
11528
|
}
|
|
11515
11529
|
}
|
|
11516
11530
|
|
|
11517
|
-
// bazel-out/
|
|
11531
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/util/elements.mjs
|
|
11518
11532
|
function createOpXrefMap(unit) {
|
|
11519
11533
|
const map = /* @__PURE__ */ new Map();
|
|
11520
11534
|
for (const op of unit.create) {
|
|
@@ -11529,7 +11543,7 @@ function createOpXrefMap(unit) {
|
|
|
11529
11543
|
return map;
|
|
11530
11544
|
}
|
|
11531
11545
|
|
|
11532
|
-
// bazel-out/
|
|
11546
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/attribute_extraction.mjs
|
|
11533
11547
|
function extractAttributes(job) {
|
|
11534
11548
|
for (const unit of job.units) {
|
|
11535
11549
|
const elements = createOpXrefMap(unit);
|
|
@@ -11658,7 +11672,7 @@ function extractAttributeOp(unit, op, elements) {
|
|
|
11658
11672
|
}
|
|
11659
11673
|
}
|
|
11660
11674
|
|
|
11661
|
-
// bazel-out/
|
|
11675
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/binding_specialization.mjs
|
|
11662
11676
|
function lookupElement2(elements, xref) {
|
|
11663
11677
|
const el = elements.get(xref);
|
|
11664
11678
|
if (el === void 0) {
|
|
@@ -11715,7 +11729,7 @@ function specializeBindings(job) {
|
|
|
11715
11729
|
}
|
|
11716
11730
|
}
|
|
11717
11731
|
|
|
11718
|
-
// bazel-out/
|
|
11732
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/chaining.mjs
|
|
11719
11733
|
var CHAINABLE = /* @__PURE__ */ new Set([
|
|
11720
11734
|
Identifiers.attribute,
|
|
11721
11735
|
Identifiers.classProp,
|
|
@@ -11783,7 +11797,7 @@ function chainOperationsInList(opList) {
|
|
|
11783
11797
|
}
|
|
11784
11798
|
}
|
|
11785
11799
|
|
|
11786
|
-
// bazel-out/
|
|
11800
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/collapse_singleton_interpolations.mjs
|
|
11787
11801
|
function collapseSingletonInterpolations(job) {
|
|
11788
11802
|
for (const unit of job.units) {
|
|
11789
11803
|
for (const op of unit.update) {
|
|
@@ -11795,7 +11809,7 @@ function collapseSingletonInterpolations(job) {
|
|
|
11795
11809
|
}
|
|
11796
11810
|
}
|
|
11797
11811
|
|
|
11798
|
-
// bazel-out/
|
|
11812
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/conditionals.mjs
|
|
11799
11813
|
function generateConditionalExpressions(job) {
|
|
11800
11814
|
for (const unit of job.units) {
|
|
11801
11815
|
for (const op of unit.ops()) {
|
|
@@ -11832,7 +11846,7 @@ function generateConditionalExpressions(job) {
|
|
|
11832
11846
|
}
|
|
11833
11847
|
}
|
|
11834
11848
|
|
|
11835
|
-
// bazel-out/
|
|
11849
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/conversion.mjs
|
|
11836
11850
|
var BINARY_OPERATORS = /* @__PURE__ */ new Map([
|
|
11837
11851
|
["&&", BinaryOperator.And],
|
|
11838
11852
|
[">", BinaryOperator.Bigger],
|
|
@@ -11889,7 +11903,7 @@ function literalOrArrayLiteral(value) {
|
|
|
11889
11903
|
return literal(value);
|
|
11890
11904
|
}
|
|
11891
11905
|
|
|
11892
|
-
// bazel-out/
|
|
11906
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/const_collection.mjs
|
|
11893
11907
|
function collectElementConsts(job) {
|
|
11894
11908
|
const allElementAttributes = /* @__PURE__ */ new Map();
|
|
11895
11909
|
for (const unit of job.units) {
|
|
@@ -12058,7 +12072,7 @@ function serializeAttributes({ attributes, bindings, classes, i18n: i18n2, proje
|
|
|
12058
12072
|
return literalArr(attrArray);
|
|
12059
12073
|
}
|
|
12060
12074
|
|
|
12061
|
-
// bazel-out/
|
|
12075
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/convert_i18n_bindings.mjs
|
|
12062
12076
|
function convertI18nBindings(job) {
|
|
12063
12077
|
const i18nAttributesByElem = /* @__PURE__ */ new Map();
|
|
12064
12078
|
for (const unit of job.units) {
|
|
@@ -12099,7 +12113,7 @@ function convertI18nBindings(job) {
|
|
|
12099
12113
|
}
|
|
12100
12114
|
}
|
|
12101
12115
|
|
|
12102
|
-
// bazel-out/
|
|
12116
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_defer_deps_fns.mjs
|
|
12103
12117
|
function resolveDeferDepsFns(job) {
|
|
12104
12118
|
var _a2;
|
|
12105
12119
|
for (const unit of job.units) {
|
|
@@ -12124,7 +12138,7 @@ function resolveDeferDepsFns(job) {
|
|
|
12124
12138
|
}
|
|
12125
12139
|
}
|
|
12126
12140
|
|
|
12127
|
-
// bazel-out/
|
|
12141
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/create_i18n_contexts.mjs
|
|
12128
12142
|
function createI18nContexts(job) {
|
|
12129
12143
|
const attrContextByMessage = /* @__PURE__ */ new Map();
|
|
12130
12144
|
for (const unit of job.units) {
|
|
@@ -12202,7 +12216,7 @@ function createI18nContexts(job) {
|
|
|
12202
12216
|
}
|
|
12203
12217
|
}
|
|
12204
12218
|
|
|
12205
|
-
// bazel-out/
|
|
12219
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/deduplicate_text_bindings.mjs
|
|
12206
12220
|
function deduplicateTextBindings(job) {
|
|
12207
12221
|
const seen = /* @__PURE__ */ new Map();
|
|
12208
12222
|
for (const unit of job.units) {
|
|
@@ -12224,7 +12238,7 @@ function deduplicateTextBindings(job) {
|
|
|
12224
12238
|
}
|
|
12225
12239
|
}
|
|
12226
12240
|
|
|
12227
|
-
// bazel-out/
|
|
12241
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/defer_configs.mjs
|
|
12228
12242
|
function configureDeferInstructions(job) {
|
|
12229
12243
|
for (const unit of job.units) {
|
|
12230
12244
|
for (const op of unit.create) {
|
|
@@ -12241,7 +12255,7 @@ function configureDeferInstructions(job) {
|
|
|
12241
12255
|
}
|
|
12242
12256
|
}
|
|
12243
12257
|
|
|
12244
|
-
// bazel-out/
|
|
12258
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/defer_resolve_targets.mjs
|
|
12245
12259
|
function resolveDeferTargetNames(job) {
|
|
12246
12260
|
const scopes = /* @__PURE__ */ new Map();
|
|
12247
12261
|
function getScopeForView2(view) {
|
|
@@ -12335,7 +12349,7 @@ var Scope = class {
|
|
|
12335
12349
|
}
|
|
12336
12350
|
};
|
|
12337
12351
|
|
|
12338
|
-
// bazel-out/
|
|
12352
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/empty_elements.mjs
|
|
12339
12353
|
var REPLACEMENTS = /* @__PURE__ */ new Map([
|
|
12340
12354
|
[OpKind.ElementEnd, [OpKind.ElementStart, OpKind.Element]],
|
|
12341
12355
|
[OpKind.ContainerEnd, [OpKind.ContainerStart, OpKind.Container]],
|
|
@@ -12362,7 +12376,7 @@ function collapseEmptyInstructions(job) {
|
|
|
12362
12376
|
}
|
|
12363
12377
|
}
|
|
12364
12378
|
|
|
12365
|
-
// bazel-out/
|
|
12379
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/expand_safe_reads.mjs
|
|
12366
12380
|
function expandSafeReads(job) {
|
|
12367
12381
|
for (const unit of job.units) {
|
|
12368
12382
|
for (const op of unit.ops()) {
|
|
@@ -12498,7 +12512,7 @@ function ternaryTransform(e) {
|
|
|
12498
12512
|
return new ConditionalExpr(new BinaryOperatorExpr(BinaryOperator.Equals, e.guard, NULL_EXPR), NULL_EXPR, e.expr);
|
|
12499
12513
|
}
|
|
12500
12514
|
|
|
12501
|
-
// bazel-out/
|
|
12515
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/extract_i18n_messages.mjs
|
|
12502
12516
|
var ESCAPE = "\uFFFD";
|
|
12503
12517
|
var ELEMENT_MARKER = "#";
|
|
12504
12518
|
var TEMPLATE_MARKER = "*";
|
|
@@ -12634,7 +12648,7 @@ function formatValue(value) {
|
|
|
12634
12648
|
return `${ESCAPE}${closeMarker}${tagMarker}${value.value}${context}${ESCAPE}`;
|
|
12635
12649
|
}
|
|
12636
12650
|
|
|
12637
|
-
// bazel-out/
|
|
12651
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_advance.mjs
|
|
12638
12652
|
function generateAdvance(job) {
|
|
12639
12653
|
for (const unit of job.units) {
|
|
12640
12654
|
const slotMap = /* @__PURE__ */ new Map();
|
|
@@ -12666,7 +12680,7 @@ function generateAdvance(job) {
|
|
|
12666
12680
|
}
|
|
12667
12681
|
}
|
|
12668
12682
|
|
|
12669
|
-
// bazel-out/
|
|
12683
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_projection_def.mjs
|
|
12670
12684
|
function generateProjectionDefs(job) {
|
|
12671
12685
|
const share = job.compatibility === CompatibilityMode.TemplateDefinitionBuilder;
|
|
12672
12686
|
const selectors = [];
|
|
@@ -12690,7 +12704,7 @@ function generateProjectionDefs(job) {
|
|
|
12690
12704
|
}
|
|
12691
12705
|
}
|
|
12692
12706
|
|
|
12693
|
-
// bazel-out/
|
|
12707
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_variables.mjs
|
|
12694
12708
|
function generateVariables(job) {
|
|
12695
12709
|
recursivelyProcessView(job.root, null);
|
|
12696
12710
|
}
|
|
@@ -12789,7 +12803,7 @@ function generateVariablesInScopeForView(view, scope) {
|
|
|
12789
12803
|
return newOps;
|
|
12790
12804
|
}
|
|
12791
12805
|
|
|
12792
|
-
// bazel-out/
|
|
12806
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/has_const_expression_collection.mjs
|
|
12793
12807
|
function collectConstExpressions(job) {
|
|
12794
12808
|
for (const unit of job.units) {
|
|
12795
12809
|
for (const op of unit.ops()) {
|
|
@@ -12803,7 +12817,7 @@ function collectConstExpressions(job) {
|
|
|
12803
12817
|
}
|
|
12804
12818
|
}
|
|
12805
12819
|
|
|
12806
|
-
// bazel-out/
|
|
12820
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/host_style_property_parsing.mjs
|
|
12807
12821
|
var STYLE_DOT = "style.";
|
|
12808
12822
|
var CLASS_DOT = "class.";
|
|
12809
12823
|
var STYLE_BANG = "style!";
|
|
@@ -12861,7 +12875,7 @@ function parseProperty(name) {
|
|
|
12861
12875
|
return { property: property2, suffix };
|
|
12862
12876
|
}
|
|
12863
12877
|
|
|
12864
|
-
// bazel-out/
|
|
12878
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/output/map_util.mjs
|
|
12865
12879
|
function mapLiteral(obj, quoted = false) {
|
|
12866
12880
|
return literalMap(Object.keys(obj).map((key) => ({
|
|
12867
12881
|
key,
|
|
@@ -12870,7 +12884,7 @@ function mapLiteral(obj, quoted = false) {
|
|
|
12870
12884
|
})));
|
|
12871
12885
|
}
|
|
12872
12886
|
|
|
12873
|
-
// bazel-out/
|
|
12887
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/icu_serializer.mjs
|
|
12874
12888
|
var IcuSerializerVisitor = class {
|
|
12875
12889
|
visitText(text2) {
|
|
12876
12890
|
return text2.value;
|
|
@@ -12904,7 +12918,7 @@ function serializeIcuNode(icu) {
|
|
|
12904
12918
|
return icu.visit(serializer);
|
|
12905
12919
|
}
|
|
12906
12920
|
|
|
12907
|
-
// bazel-out/
|
|
12921
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/expression_parser/lexer.mjs
|
|
12908
12922
|
var TokenType;
|
|
12909
12923
|
(function(TokenType2) {
|
|
12910
12924
|
TokenType2[TokenType2["Character"] = 0] = "Character";
|
|
@@ -13265,7 +13279,7 @@ function parseIntAutoRadix(text2) {
|
|
|
13265
13279
|
return result;
|
|
13266
13280
|
}
|
|
13267
13281
|
|
|
13268
|
-
// bazel-out/
|
|
13282
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/expression_parser/parser.mjs
|
|
13269
13283
|
var SplitInterpolation = class {
|
|
13270
13284
|
constructor(strings, expressions, offsets) {
|
|
13271
13285
|
this.strings = strings;
|
|
@@ -14147,7 +14161,7 @@ function getIndexMapForOriginalTemplate(interpolatedTokens) {
|
|
|
14147
14161
|
return offsetMap;
|
|
14148
14162
|
}
|
|
14149
14163
|
|
|
14150
|
-
// bazel-out/
|
|
14164
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/ast.mjs
|
|
14151
14165
|
var NodeWithI18n = class {
|
|
14152
14166
|
constructor(sourceSpan, i18n2) {
|
|
14153
14167
|
this.sourceSpan = sourceSpan;
|
|
@@ -14246,6 +14260,18 @@ var BlockParameter = class {
|
|
|
14246
14260
|
return visitor.visitBlockParameter(this, context);
|
|
14247
14261
|
}
|
|
14248
14262
|
};
|
|
14263
|
+
var LetDeclaration2 = class {
|
|
14264
|
+
constructor(name, value, sourceSpan, nameSpan, valueSpan) {
|
|
14265
|
+
this.name = name;
|
|
14266
|
+
this.value = value;
|
|
14267
|
+
this.sourceSpan = sourceSpan;
|
|
14268
|
+
this.nameSpan = nameSpan;
|
|
14269
|
+
this.valueSpan = valueSpan;
|
|
14270
|
+
}
|
|
14271
|
+
visit(visitor, context) {
|
|
14272
|
+
return visitor.visitLetDeclaration(this, context);
|
|
14273
|
+
}
|
|
14274
|
+
};
|
|
14249
14275
|
function visitAll2(visitor, nodes, context = null) {
|
|
14250
14276
|
const result = [];
|
|
14251
14277
|
const visit2 = visitor.visit ? (ast) => visitor.visit(ast, context) || ast.visit(visitor, context) : (ast) => ast.visit(visitor, context);
|
|
@@ -14258,7 +14284,7 @@ function visitAll2(visitor, nodes, context = null) {
|
|
|
14258
14284
|
return result;
|
|
14259
14285
|
}
|
|
14260
14286
|
|
|
14261
|
-
// bazel-out/
|
|
14287
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/schema/dom_security_schema.mjs
|
|
14262
14288
|
var _SECURITY_SCHEMA;
|
|
14263
14289
|
function SECURITY_SCHEMA() {
|
|
14264
14290
|
if (!_SECURITY_SCHEMA) {
|
|
@@ -14319,11 +14345,11 @@ function isIframeSecuritySensitiveAttr(attrName) {
|
|
|
14319
14345
|
return IFRAME_SECURITY_SENSITIVE_ATTRS.has(attrName.toLowerCase());
|
|
14320
14346
|
}
|
|
14321
14347
|
|
|
14322
|
-
// bazel-out/
|
|
14348
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/schema/element_schema_registry.mjs
|
|
14323
14349
|
var ElementSchemaRegistry = class {
|
|
14324
14350
|
};
|
|
14325
14351
|
|
|
14326
|
-
// bazel-out/
|
|
14352
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/schema/dom_element_schema_registry.mjs
|
|
14327
14353
|
var BOOLEAN = "boolean";
|
|
14328
14354
|
var NUMBER = "number";
|
|
14329
14355
|
var STRING = "string";
|
|
@@ -14706,7 +14732,7 @@ function _isPixelDimensionStyle(prop) {
|
|
|
14706
14732
|
}
|
|
14707
14733
|
}
|
|
14708
14734
|
|
|
14709
|
-
// bazel-out/
|
|
14735
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/html_tags.mjs
|
|
14710
14736
|
var HtmlTagDefinition = class {
|
|
14711
14737
|
constructor({ closedByChildren, implicitNamespacePrefix, contentType = TagContentType.PARSABLE_DATA, closedByParent = false, isVoid = false, ignoreFirstLf = false, preventNamespaceInheritance = false, canSelfClose = false } = {}) {
|
|
14712
14738
|
this.closedByChildren = {};
|
|
@@ -14842,7 +14868,7 @@ function getHtmlTagDefinition(tagName) {
|
|
|
14842
14868
|
return (_b2 = (_a2 = TAG_DEFINITIONS[tagName]) != null ? _a2 : TAG_DEFINITIONS[tagName.toLowerCase()]) != null ? _b2 : DEFAULT_TAG_DEFINITION;
|
|
14843
14869
|
}
|
|
14844
14870
|
|
|
14845
|
-
// bazel-out/
|
|
14871
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/placeholder.mjs
|
|
14846
14872
|
var TAG_TO_PLACEHOLDER_NAMES = {
|
|
14847
14873
|
"A": "LINK",
|
|
14848
14874
|
"B": "BOLD_TEXT",
|
|
@@ -14964,7 +14990,7 @@ var PlaceholderRegistry = class {
|
|
|
14964
14990
|
}
|
|
14965
14991
|
};
|
|
14966
14992
|
|
|
14967
|
-
// bazel-out/
|
|
14993
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/i18n_parser.mjs
|
|
14968
14994
|
var _expParser = new Parser(new Lexer());
|
|
14969
14995
|
function createI18nMessageFactory(interpolationConfig, containerBlocks) {
|
|
14970
14996
|
const visitor = new _I18nVisitor(_expParser, interpolationConfig, containerBlocks);
|
|
@@ -15074,6 +15100,9 @@ var _I18nVisitor = class {
|
|
|
15074
15100
|
visitBlockParameter(_parameter, _context) {
|
|
15075
15101
|
throw new Error("Unreachable code");
|
|
15076
15102
|
}
|
|
15103
|
+
visitLetDeclaration(decl, context) {
|
|
15104
|
+
return null;
|
|
15105
|
+
}
|
|
15077
15106
|
_visitTextWithInterpolation(tokens, sourceSpan, context, previousI18n) {
|
|
15078
15107
|
const nodes = [];
|
|
15079
15108
|
let hasInterpolation = false;
|
|
@@ -15143,14 +15172,14 @@ function extractPlaceholderName(input) {
|
|
|
15143
15172
|
return input.split(_CUSTOM_PH_EXP)[2];
|
|
15144
15173
|
}
|
|
15145
15174
|
|
|
15146
|
-
// bazel-out/
|
|
15175
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/parse_util.mjs
|
|
15147
15176
|
var I18nError = class extends ParseError {
|
|
15148
15177
|
constructor(span, msg) {
|
|
15149
15178
|
super(span, msg);
|
|
15150
15179
|
}
|
|
15151
15180
|
};
|
|
15152
15181
|
|
|
15153
|
-
// bazel-out/
|
|
15182
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/entities.mjs
|
|
15154
15183
|
var NAMED_ENTITIES = {
|
|
15155
15184
|
"AElig": "\xC6",
|
|
15156
15185
|
"AMP": "&",
|
|
@@ -17281,7 +17310,7 @@ var NAMED_ENTITIES = {
|
|
|
17281
17310
|
var NGSP_UNICODE = "\uE500";
|
|
17282
17311
|
NAMED_ENTITIES["ngsp"] = NGSP_UNICODE;
|
|
17283
17312
|
|
|
17284
|
-
// bazel-out/
|
|
17313
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/lexer.mjs
|
|
17285
17314
|
var TokenError = class extends ParseError {
|
|
17286
17315
|
constructor(errorMsg, tokenType, span) {
|
|
17287
17316
|
super(span, errorMsg);
|
|
@@ -17345,6 +17374,7 @@ var _Tokenizer = class {
|
|
|
17345
17374
|
this._preserveLineEndings = options.preserveLineEndings || false;
|
|
17346
17375
|
this._i18nNormalizeLineEndingsInICUs = options.i18nNormalizeLineEndingsInICUs || false;
|
|
17347
17376
|
this._tokenizeBlocks = (_a2 = options.tokenizeBlocks) != null ? _a2 : true;
|
|
17377
|
+
this._tokenizeLet = options.tokenizeLet || false;
|
|
17348
17378
|
try {
|
|
17349
17379
|
this._cursor.init();
|
|
17350
17380
|
} catch (e) {
|
|
@@ -17375,6 +17405,8 @@ var _Tokenizer = class {
|
|
|
17375
17405
|
} else {
|
|
17376
17406
|
this._consumeTagOpen(start);
|
|
17377
17407
|
}
|
|
17408
|
+
} else if (this._tokenizeLet && this._cursor.peek() === $AT && !this._inInterpolation && this._attemptStr("@let")) {
|
|
17409
|
+
this._consumeLetDeclaration(start);
|
|
17378
17410
|
} else if (this._tokenizeBlocks && this._attemptCharCode($AT)) {
|
|
17379
17411
|
this._consumeBlockStart(start);
|
|
17380
17412
|
} else if (this._tokenizeBlocks && !this._inInterpolation && !this._isInExpansionCase() && !this._isInExpansionForm() && this._attemptCharCode($RBRACE)) {
|
|
@@ -17386,7 +17418,7 @@ var _Tokenizer = class {
|
|
|
17386
17418
|
this.handleError(e);
|
|
17387
17419
|
}
|
|
17388
17420
|
}
|
|
17389
|
-
this._beginToken(
|
|
17421
|
+
this._beginToken(33);
|
|
17390
17422
|
this._endToken([]);
|
|
17391
17423
|
}
|
|
17392
17424
|
_getBlockName() {
|
|
@@ -17459,6 +17491,67 @@ var _Tokenizer = class {
|
|
|
17459
17491
|
this._attemptCharCodeUntilFn(isBlockParameterChar);
|
|
17460
17492
|
}
|
|
17461
17493
|
}
|
|
17494
|
+
_consumeLetDeclaration(start) {
|
|
17495
|
+
this._beginToken(29, start);
|
|
17496
|
+
if (isWhitespace(this._cursor.peek())) {
|
|
17497
|
+
this._attemptCharCodeUntilFn(isNotWhitespace);
|
|
17498
|
+
} else {
|
|
17499
|
+
const token = this._endToken([this._cursor.getChars(start)]);
|
|
17500
|
+
token.type = 32;
|
|
17501
|
+
return;
|
|
17502
|
+
}
|
|
17503
|
+
const startToken = this._endToken([this._getLetDeclarationName()]);
|
|
17504
|
+
this._attemptCharCodeUntilFn(isNotWhitespace);
|
|
17505
|
+
if (!this._attemptCharCode($EQ)) {
|
|
17506
|
+
startToken.type = 32;
|
|
17507
|
+
return;
|
|
17508
|
+
}
|
|
17509
|
+
this._attemptCharCodeUntilFn((code) => isNotWhitespace(code) && !isNewLine(code));
|
|
17510
|
+
this._consumeLetDeclarationValue();
|
|
17511
|
+
const endChar = this._cursor.peek();
|
|
17512
|
+
if (endChar === $SEMICOLON) {
|
|
17513
|
+
this._beginToken(31);
|
|
17514
|
+
this._endToken([]);
|
|
17515
|
+
this._cursor.advance();
|
|
17516
|
+
} else {
|
|
17517
|
+
startToken.type = 32;
|
|
17518
|
+
startToken.sourceSpan = this._cursor.getSpan(start);
|
|
17519
|
+
}
|
|
17520
|
+
}
|
|
17521
|
+
_getLetDeclarationName() {
|
|
17522
|
+
const nameCursor = this._cursor.clone();
|
|
17523
|
+
let allowDigit = false;
|
|
17524
|
+
this._attemptCharCodeUntilFn((code) => {
|
|
17525
|
+
if (isAsciiLetter(code) || code === $_ || allowDigit && isDigit(code)) {
|
|
17526
|
+
allowDigit = true;
|
|
17527
|
+
return false;
|
|
17528
|
+
}
|
|
17529
|
+
return true;
|
|
17530
|
+
});
|
|
17531
|
+
return this._cursor.getChars(nameCursor).trim();
|
|
17532
|
+
}
|
|
17533
|
+
_consumeLetDeclarationValue() {
|
|
17534
|
+
const start = this._cursor.clone();
|
|
17535
|
+
this._beginToken(30, start);
|
|
17536
|
+
while (this._cursor.peek() !== $EOF) {
|
|
17537
|
+
const char = this._cursor.peek();
|
|
17538
|
+
if (char === $SEMICOLON) {
|
|
17539
|
+
break;
|
|
17540
|
+
}
|
|
17541
|
+
if (isQuote(char)) {
|
|
17542
|
+
this._cursor.advance();
|
|
17543
|
+
this._attemptCharCodeUntilFn((inner) => {
|
|
17544
|
+
if (inner === $BACKSLASH) {
|
|
17545
|
+
this._cursor.advance();
|
|
17546
|
+
return false;
|
|
17547
|
+
}
|
|
17548
|
+
return inner === char;
|
|
17549
|
+
});
|
|
17550
|
+
}
|
|
17551
|
+
this._cursor.advance();
|
|
17552
|
+
}
|
|
17553
|
+
this._endToken([this._cursor.getChars(start)]);
|
|
17554
|
+
}
|
|
17462
17555
|
_tokenizeExpansionForm() {
|
|
17463
17556
|
if (this.isExpansionFormStart()) {
|
|
17464
17557
|
this._consumeExpansionFormStart();
|
|
@@ -18207,7 +18300,7 @@ var CursorError = class {
|
|
|
18207
18300
|
}
|
|
18208
18301
|
};
|
|
18209
18302
|
|
|
18210
|
-
// bazel-out/
|
|
18303
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/parser.mjs
|
|
18211
18304
|
var TreeError = class extends ParseError {
|
|
18212
18305
|
static create(elementName, span, msg) {
|
|
18213
18306
|
return new TreeError(elementName, span, msg);
|
|
@@ -18245,7 +18338,7 @@ var _TreeBuilder = class {
|
|
|
18245
18338
|
this._advance();
|
|
18246
18339
|
}
|
|
18247
18340
|
build() {
|
|
18248
|
-
while (this._peek.type !==
|
|
18341
|
+
while (this._peek.type !== 33) {
|
|
18249
18342
|
if (this._peek.type === 0 || this._peek.type === 4) {
|
|
18250
18343
|
this._consumeStartTag(this._advance());
|
|
18251
18344
|
} else if (this._peek.type === 3) {
|
|
@@ -18270,6 +18363,12 @@ var _TreeBuilder = class {
|
|
|
18270
18363
|
} else if (this._peek.type === 28) {
|
|
18271
18364
|
this._closeVoidElement();
|
|
18272
18365
|
this._consumeIncompleteBlock(this._advance());
|
|
18366
|
+
} else if (this._peek.type === 29) {
|
|
18367
|
+
this._closeVoidElement();
|
|
18368
|
+
this._consumeLet(this._advance());
|
|
18369
|
+
} else if (this._peek.type === 32) {
|
|
18370
|
+
this._closeVoidElement();
|
|
18371
|
+
this._consumeIncompleteLet(this._advance());
|
|
18273
18372
|
} else {
|
|
18274
18373
|
this._advance();
|
|
18275
18374
|
}
|
|
@@ -18334,7 +18433,7 @@ var _TreeBuilder = class {
|
|
|
18334
18433
|
if (!exp)
|
|
18335
18434
|
return null;
|
|
18336
18435
|
const end = this._advance();
|
|
18337
|
-
exp.push({ type:
|
|
18436
|
+
exp.push({ type: 33, parts: [], sourceSpan: end.sourceSpan });
|
|
18338
18437
|
const expansionCaseParser = new _TreeBuilder(exp, this.getTagDefinition);
|
|
18339
18438
|
expansionCaseParser.build();
|
|
18340
18439
|
if (expansionCaseParser.errors.length > 0) {
|
|
@@ -18370,7 +18469,7 @@ var _TreeBuilder = class {
|
|
|
18370
18469
|
return null;
|
|
18371
18470
|
}
|
|
18372
18471
|
}
|
|
18373
|
-
if (this._peek.type ===
|
|
18472
|
+
if (this._peek.type === 33) {
|
|
18374
18473
|
this.errors.push(TreeError.create(null, start.sourceSpan, `Invalid ICU message. Missing '}'.`));
|
|
18375
18474
|
return null;
|
|
18376
18475
|
}
|
|
@@ -18542,6 +18641,44 @@ var _TreeBuilder = class {
|
|
|
18542
18641
|
this._popContainer(null, Block, null);
|
|
18543
18642
|
this.errors.push(TreeError.create(token.parts[0], span, `Incomplete block "${token.parts[0]}". If you meant to write the @ character, you should use the "@" HTML entity instead.`));
|
|
18544
18643
|
}
|
|
18644
|
+
_consumeLet(startToken) {
|
|
18645
|
+
const name = startToken.parts[0];
|
|
18646
|
+
let valueToken;
|
|
18647
|
+
let endToken;
|
|
18648
|
+
if (this._peek.type !== 30) {
|
|
18649
|
+
this.errors.push(TreeError.create(startToken.parts[0], startToken.sourceSpan, `Invalid @let declaration "${name}". Declaration must have a value.`));
|
|
18650
|
+
return;
|
|
18651
|
+
} else {
|
|
18652
|
+
valueToken = this._advance();
|
|
18653
|
+
}
|
|
18654
|
+
if (this._peek.type !== 31) {
|
|
18655
|
+
this.errors.push(TreeError.create(startToken.parts[0], startToken.sourceSpan, `Unterminated @let declaration "${name}". Declaration must be terminated with a semicolon.`));
|
|
18656
|
+
return;
|
|
18657
|
+
} else {
|
|
18658
|
+
endToken = this._advance();
|
|
18659
|
+
}
|
|
18660
|
+
const end = endToken.sourceSpan.fullStart;
|
|
18661
|
+
const span = new ParseSourceSpan(startToken.sourceSpan.start, end, startToken.sourceSpan.fullStart);
|
|
18662
|
+
const startOffset = startToken.sourceSpan.toString().lastIndexOf(name);
|
|
18663
|
+
const nameStart = startToken.sourceSpan.start.moveBy(startOffset);
|
|
18664
|
+
const nameSpan = new ParseSourceSpan(nameStart, startToken.sourceSpan.end);
|
|
18665
|
+
const node = new LetDeclaration2(name, valueToken.parts[0], span, nameSpan, valueToken.sourceSpan);
|
|
18666
|
+
this._addToParent(node);
|
|
18667
|
+
}
|
|
18668
|
+
_consumeIncompleteLet(token) {
|
|
18669
|
+
var _a2;
|
|
18670
|
+
const name = (_a2 = token.parts[0]) != null ? _a2 : "";
|
|
18671
|
+
const nameString = name ? ` "${name}"` : "";
|
|
18672
|
+
if (name.length > 0) {
|
|
18673
|
+
const startOffset = token.sourceSpan.toString().lastIndexOf(name);
|
|
18674
|
+
const nameStart = token.sourceSpan.start.moveBy(startOffset);
|
|
18675
|
+
const nameSpan = new ParseSourceSpan(nameStart, token.sourceSpan.end);
|
|
18676
|
+
const valueSpan = new ParseSourceSpan(token.sourceSpan.start, token.sourceSpan.start.moveBy(0));
|
|
18677
|
+
const node = new LetDeclaration2(name, "", token.sourceSpan, nameSpan, valueSpan);
|
|
18678
|
+
this._addToParent(node);
|
|
18679
|
+
}
|
|
18680
|
+
this.errors.push(TreeError.create(token.parts[0], token.sourceSpan, `Incomplete @let declaration${nameString}. @let declarations must be written as \`@let <name> = <value>;\``));
|
|
18681
|
+
}
|
|
18545
18682
|
_getContainer() {
|
|
18546
18683
|
return this._containerStack.length > 0 ? this._containerStack[this._containerStack.length - 1] : null;
|
|
18547
18684
|
}
|
|
@@ -18591,7 +18728,7 @@ function decodeEntity(match, entity) {
|
|
|
18591
18728
|
return match;
|
|
18592
18729
|
}
|
|
18593
18730
|
|
|
18594
|
-
// bazel-out/
|
|
18731
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/schema/trusted_types_sinks.mjs
|
|
18595
18732
|
var TRUSTED_TYPES_SINKS = /* @__PURE__ */ new Set([
|
|
18596
18733
|
"iframe|srcdoc",
|
|
18597
18734
|
"*|innerhtml",
|
|
@@ -18606,7 +18743,7 @@ function isTrustedTypesSink(tagName, propName) {
|
|
|
18606
18743
|
return TRUSTED_TYPES_SINKS.has(tagName + "|" + propName) || TRUSTED_TYPES_SINKS.has("*|" + propName);
|
|
18607
18744
|
}
|
|
18608
18745
|
|
|
18609
|
-
// bazel-out/
|
|
18746
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/meta.mjs
|
|
18610
18747
|
var setI18nRefs = (htmlNode, i18nNode) => {
|
|
18611
18748
|
if (htmlNode instanceof NodeWithI18n) {
|
|
18612
18749
|
if (i18nNode instanceof IcuPlaceholder && htmlNode.i18n instanceof Message) {
|
|
@@ -18714,6 +18851,9 @@ var I18nMetaVisitor = class {
|
|
|
18714
18851
|
visitBlockParameter(parameter, context) {
|
|
18715
18852
|
return parameter;
|
|
18716
18853
|
}
|
|
18854
|
+
visitLetDeclaration(decl, context) {
|
|
18855
|
+
return decl;
|
|
18856
|
+
}
|
|
18717
18857
|
_parseMetadata(meta) {
|
|
18718
18858
|
return typeof meta === "string" ? parseI18nMeta(meta) : meta instanceof Message ? meta : {};
|
|
18719
18859
|
}
|
|
@@ -18763,7 +18903,7 @@ function i18nMetaToJSDoc(meta) {
|
|
|
18763
18903
|
return jsDocComment(tags);
|
|
18764
18904
|
}
|
|
18765
18905
|
|
|
18766
|
-
// bazel-out/
|
|
18906
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/get_msg_utils.mjs
|
|
18767
18907
|
var GOOG_GET_MSG = "goog.getMsg";
|
|
18768
18908
|
function createGoogleGetMsgStatements(variable2, message, closureVar, placeholderValues) {
|
|
18769
18909
|
const messageString = serializeI18nMessageForGetMsg(message);
|
|
@@ -18814,7 +18954,7 @@ function serializeI18nMessageForGetMsg(message) {
|
|
|
18814
18954
|
return message.nodes.map((node) => node.visit(serializerVisitor2, null)).join("");
|
|
18815
18955
|
}
|
|
18816
18956
|
|
|
18817
|
-
// bazel-out/
|
|
18957
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/i18n/localize_utils.mjs
|
|
18818
18958
|
function createLocalizeStatements(variable2, message, params) {
|
|
18819
18959
|
const { messageParts, placeHolders } = serializeI18nMessageForLocalize(message);
|
|
18820
18960
|
const sourceSpan = getSourceSpan(message);
|
|
@@ -18903,7 +19043,7 @@ function createEmptyMessagePart(location) {
|
|
|
18903
19043
|
return new LiteralPiece("", new ParseSourceSpan(location, location));
|
|
18904
19044
|
}
|
|
18905
19045
|
|
|
18906
|
-
// bazel-out/
|
|
19046
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/i18n_const_collection.mjs
|
|
18907
19047
|
var NG_I18N_CLOSURE_MODE = "ngI18nClosureMode";
|
|
18908
19048
|
var TRANSLATION_VAR_PREFIX = "i18n_";
|
|
18909
19049
|
var I18N_ICU_MAPPING_PREFIX = "I18N_EXP_";
|
|
@@ -19074,7 +19214,7 @@ function i18nGenerateClosureVar(pool, messageId, fileBasedI18nSuffix, useExterna
|
|
|
19074
19214
|
return variable(name);
|
|
19075
19215
|
}
|
|
19076
19216
|
|
|
19077
|
-
// bazel-out/
|
|
19217
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/i18n_text_extraction.mjs
|
|
19078
19218
|
function convertI18nText(job) {
|
|
19079
19219
|
var _a2, _b2, _c2;
|
|
19080
19220
|
for (const unit of job.units) {
|
|
@@ -19144,7 +19284,7 @@ function convertI18nText(job) {
|
|
|
19144
19284
|
}
|
|
19145
19285
|
}
|
|
19146
19286
|
|
|
19147
|
-
// bazel-out/
|
|
19287
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/local_refs.mjs
|
|
19148
19288
|
function liftLocalRefs(job) {
|
|
19149
19289
|
for (const unit of job.units) {
|
|
19150
19290
|
for (const op of unit.create) {
|
|
@@ -19174,7 +19314,7 @@ function serializeLocalRefs(refs) {
|
|
|
19174
19314
|
return literalArr(constRefs);
|
|
19175
19315
|
}
|
|
19176
19316
|
|
|
19177
|
-
// bazel-out/
|
|
19317
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/namespace.mjs
|
|
19178
19318
|
function emitNamespaceChanges(job) {
|
|
19179
19319
|
for (const unit of job.units) {
|
|
19180
19320
|
let activeNamespace = Namespace.HTML;
|
|
@@ -19190,7 +19330,7 @@ function emitNamespaceChanges(job) {
|
|
|
19190
19330
|
}
|
|
19191
19331
|
}
|
|
19192
19332
|
|
|
19193
|
-
// bazel-out/
|
|
19333
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/parse_extracted_styles.mjs
|
|
19194
19334
|
function parse(value) {
|
|
19195
19335
|
const styles = [];
|
|
19196
19336
|
let i = 0;
|
|
@@ -19284,7 +19424,7 @@ function parseExtractedStyles(job) {
|
|
|
19284
19424
|
}
|
|
19285
19425
|
}
|
|
19286
19426
|
|
|
19287
|
-
// bazel-out/
|
|
19427
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/naming.mjs
|
|
19288
19428
|
function nameFunctionsAndVariables(job) {
|
|
19289
19429
|
addNamesToView(job.root, job.componentName, { index: 0 }, job.compatibility === CompatibilityMode.TemplateDefinitionBuilder);
|
|
19290
19430
|
}
|
|
@@ -19428,7 +19568,7 @@ function stripImportant(name) {
|
|
|
19428
19568
|
return name;
|
|
19429
19569
|
}
|
|
19430
19570
|
|
|
19431
|
-
// bazel-out/
|
|
19571
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/next_context_merging.mjs
|
|
19432
19572
|
function mergeNextContextExpressions(job) {
|
|
19433
19573
|
for (const unit of job.units) {
|
|
19434
19574
|
for (const op of unit.create) {
|
|
@@ -19474,7 +19614,7 @@ function mergeNextContextsInOps(ops) {
|
|
|
19474
19614
|
}
|
|
19475
19615
|
}
|
|
19476
19616
|
|
|
19477
|
-
// bazel-out/
|
|
19617
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/ng_container.mjs
|
|
19478
19618
|
var CONTAINER_TAG = "ng-container";
|
|
19479
19619
|
function generateNgContainerOps(job) {
|
|
19480
19620
|
for (const unit of job.units) {
|
|
@@ -19491,7 +19631,7 @@ function generateNgContainerOps(job) {
|
|
|
19491
19631
|
}
|
|
19492
19632
|
}
|
|
19493
19633
|
|
|
19494
|
-
// bazel-out/
|
|
19634
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/nonbindable.mjs
|
|
19495
19635
|
function lookupElement3(elements, xref) {
|
|
19496
19636
|
const el = elements.get(xref);
|
|
19497
19637
|
if (el === void 0) {
|
|
@@ -19521,7 +19661,7 @@ function disableBindings(job) {
|
|
|
19521
19661
|
}
|
|
19522
19662
|
}
|
|
19523
19663
|
|
|
19524
|
-
// bazel-out/
|
|
19664
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/nullish_coalescing.mjs
|
|
19525
19665
|
function generateNullishCoalesceExpressions(job) {
|
|
19526
19666
|
for (const unit of job.units) {
|
|
19527
19667
|
for (const op of unit.ops()) {
|
|
@@ -19537,7 +19677,7 @@ function generateNullishCoalesceExpressions(job) {
|
|
|
19537
19677
|
}
|
|
19538
19678
|
}
|
|
19539
19679
|
|
|
19540
|
-
// bazel-out/
|
|
19680
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/ordering.mjs
|
|
19541
19681
|
function kindTest(kind) {
|
|
19542
19682
|
return (op) => op.kind === kind;
|
|
19543
19683
|
}
|
|
@@ -19627,7 +19767,7 @@ function keepLast(ops) {
|
|
|
19627
19767
|
return ops.slice(ops.length - 1);
|
|
19628
19768
|
}
|
|
19629
19769
|
|
|
19630
|
-
// bazel-out/
|
|
19770
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/phase_remove_content_selectors.mjs
|
|
19631
19771
|
function removeContentSelectors(job) {
|
|
19632
19772
|
for (const unit of job.units) {
|
|
19633
19773
|
const elements = createOpXrefMap(unit);
|
|
@@ -19654,7 +19794,7 @@ function lookupInXrefMap(map, xref) {
|
|
|
19654
19794
|
return el;
|
|
19655
19795
|
}
|
|
19656
19796
|
|
|
19657
|
-
// bazel-out/
|
|
19797
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pipe_creation.mjs
|
|
19658
19798
|
function createPipes(job) {
|
|
19659
19799
|
for (const unit of job.units) {
|
|
19660
19800
|
processPipeBindingsInView(unit);
|
|
@@ -19702,7 +19842,7 @@ function addPipeToCreationBlock(unit, afterTargetXref, binding) {
|
|
|
19702
19842
|
throw new Error(`AssertionError: unable to find insertion point for pipe ${binding.name}`);
|
|
19703
19843
|
}
|
|
19704
19844
|
|
|
19705
|
-
// bazel-out/
|
|
19845
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pipe_variadic.mjs
|
|
19706
19846
|
function createVariadicPipes(job) {
|
|
19707
19847
|
for (const unit of job.units) {
|
|
19708
19848
|
for (const op of unit.update) {
|
|
@@ -19719,7 +19859,7 @@ function createVariadicPipes(job) {
|
|
|
19719
19859
|
}
|
|
19720
19860
|
}
|
|
19721
19861
|
|
|
19722
|
-
// bazel-out/
|
|
19862
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/propagate_i18n_blocks.mjs
|
|
19723
19863
|
function propagateI18nBlocks(job) {
|
|
19724
19864
|
propagateI18nBlocksToTemplates(job.root, 0);
|
|
19725
19865
|
}
|
|
@@ -19773,7 +19913,7 @@ function wrapTemplateWithI18n(unit, parentI18n) {
|
|
|
19773
19913
|
}
|
|
19774
19914
|
}
|
|
19775
19915
|
|
|
19776
|
-
// bazel-out/
|
|
19916
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pure_function_extraction.mjs
|
|
19777
19917
|
function extractPureFunctions(job) {
|
|
19778
19918
|
for (const view of job.units) {
|
|
19779
19919
|
for (const op of view.ops()) {
|
|
@@ -19815,7 +19955,7 @@ var PureFunctionConstant = class extends GenericKeyFn {
|
|
|
19815
19955
|
}
|
|
19816
19956
|
};
|
|
19817
19957
|
|
|
19818
|
-
// bazel-out/
|
|
19958
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pure_literal_structures.mjs
|
|
19819
19959
|
function generatePureLiteralStructures(job) {
|
|
19820
19960
|
for (const unit of job.units) {
|
|
19821
19961
|
for (const op of unit.update) {
|
|
@@ -19862,7 +20002,7 @@ function transformLiteralMap(expr) {
|
|
|
19862
20002
|
return new PureFunctionExpr(literalMap(derivedEntries), nonConstantArgs);
|
|
19863
20003
|
}
|
|
19864
20004
|
|
|
19865
|
-
// bazel-out/
|
|
20005
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/instruction.mjs
|
|
19866
20006
|
function element(slot, tag, constIndex, localRefIndex, sourceSpan) {
|
|
19867
20007
|
return elementOrContainerBase(Identifiers.element, slot, tag, constIndex, localRefIndex, sourceSpan);
|
|
19868
20008
|
}
|
|
@@ -20385,7 +20525,7 @@ function callVariadicInstruction(config, baseArgs, interpolationArgs, extraArgs,
|
|
|
20385
20525
|
return createStatementOp(callVariadicInstructionExpr(config, baseArgs, interpolationArgs, extraArgs, sourceSpan).toStmt());
|
|
20386
20526
|
}
|
|
20387
20527
|
|
|
20388
|
-
// bazel-out/
|
|
20528
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/reify.mjs
|
|
20389
20529
|
var GLOBAL_TARGET_RESOLVERS = /* @__PURE__ */ new Map([
|
|
20390
20530
|
["window", Identifiers.resolveWindow],
|
|
20391
20531
|
["document", Identifiers.resolveDocument],
|
|
@@ -20741,7 +20881,7 @@ function reifyListenerHandler(unit, name, handlerOps, consumesDollarEvent) {
|
|
|
20741
20881
|
return fn(params, handlerStmts, void 0, void 0, name);
|
|
20742
20882
|
}
|
|
20743
20883
|
|
|
20744
|
-
// bazel-out/
|
|
20884
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/remove_empty_bindings.mjs
|
|
20745
20885
|
function removeEmptyBindings(job) {
|
|
20746
20886
|
for (const unit of job.units) {
|
|
20747
20887
|
for (const op of unit.update) {
|
|
@@ -20762,7 +20902,7 @@ function removeEmptyBindings(job) {
|
|
|
20762
20902
|
}
|
|
20763
20903
|
}
|
|
20764
20904
|
|
|
20765
|
-
// bazel-out/
|
|
20905
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/remove_i18n_contexts.mjs
|
|
20766
20906
|
function removeI18nContexts(job) {
|
|
20767
20907
|
for (const unit of job.units) {
|
|
20768
20908
|
for (const op of unit.create) {
|
|
@@ -20778,7 +20918,7 @@ function removeI18nContexts(job) {
|
|
|
20778
20918
|
}
|
|
20779
20919
|
}
|
|
20780
20920
|
|
|
20781
|
-
// bazel-out/
|
|
20921
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/remove_unused_i18n_attrs.mjs
|
|
20782
20922
|
function removeUnusedI18nAttributesOps(job) {
|
|
20783
20923
|
for (const unit of job.units) {
|
|
20784
20924
|
const ownersWithI18nExpressions = /* @__PURE__ */ new Set();
|
|
@@ -20800,7 +20940,7 @@ function removeUnusedI18nAttributesOps(job) {
|
|
|
20800
20940
|
}
|
|
20801
20941
|
}
|
|
20802
20942
|
|
|
20803
|
-
// bazel-out/
|
|
20943
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_contexts.mjs
|
|
20804
20944
|
function resolveContexts(job) {
|
|
20805
20945
|
for (const unit of job.units) {
|
|
20806
20946
|
processLexicalScope(unit, unit.create);
|
|
@@ -20842,7 +20982,7 @@ function processLexicalScope(view, ops) {
|
|
|
20842
20982
|
}
|
|
20843
20983
|
}
|
|
20844
20984
|
|
|
20845
|
-
// bazel-out/
|
|
20985
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_dollar_event.mjs
|
|
20846
20986
|
function resolveDollarEvent(job) {
|
|
20847
20987
|
for (const unit of job.units) {
|
|
20848
20988
|
transformDollarEvent(unit.create);
|
|
@@ -20865,7 +21005,7 @@ function transformDollarEvent(ops) {
|
|
|
20865
21005
|
}
|
|
20866
21006
|
}
|
|
20867
21007
|
|
|
20868
|
-
// bazel-out/
|
|
21008
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_i18n_element_placeholders.mjs
|
|
20869
21009
|
function resolveI18nElementPlaceholders(job) {
|
|
20870
21010
|
const i18nContexts = /* @__PURE__ */ new Map();
|
|
20871
21011
|
const elements = /* @__PURE__ */ new Map();
|
|
@@ -21044,7 +21184,7 @@ function addParam(params, placeholder, value, subTemplateIndex, flags) {
|
|
|
21044
21184
|
params.set(placeholder, values);
|
|
21045
21185
|
}
|
|
21046
21186
|
|
|
21047
|
-
// bazel-out/
|
|
21187
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_i18n_expression_placeholders.mjs
|
|
21048
21188
|
function resolveI18nExpressionPlaceholders(job) {
|
|
21049
21189
|
var _a2;
|
|
21050
21190
|
const subTemplateIndices = /* @__PURE__ */ new Map();
|
|
@@ -21097,7 +21237,7 @@ function updatePlaceholder(op, value, i18nContexts, icuPlaceholders) {
|
|
|
21097
21237
|
}
|
|
21098
21238
|
}
|
|
21099
21239
|
|
|
21100
|
-
// bazel-out/
|
|
21240
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_names.mjs
|
|
21101
21241
|
function resolveNames(job) {
|
|
21102
21242
|
for (const unit of job.units) {
|
|
21103
21243
|
processLexicalScope2(unit, unit.create, null);
|
|
@@ -21162,7 +21302,7 @@ function processLexicalScope2(unit, ops, savedView) {
|
|
|
21162
21302
|
}
|
|
21163
21303
|
}
|
|
21164
21304
|
|
|
21165
|
-
// bazel-out/
|
|
21305
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_sanitizers.mjs
|
|
21166
21306
|
var sanitizerFns = /* @__PURE__ */ new Map([
|
|
21167
21307
|
[SecurityContext.HTML, Identifiers.sanitizeHtml],
|
|
21168
21308
|
[SecurityContext.RESOURCE_URL, Identifiers.sanitizeResourceUrl],
|
|
@@ -21232,7 +21372,7 @@ function getOnlySecurityContext(securityContext) {
|
|
|
21232
21372
|
return securityContext;
|
|
21233
21373
|
}
|
|
21234
21374
|
|
|
21235
|
-
// bazel-out/
|
|
21375
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/transform_two_way_binding_set.mjs
|
|
21236
21376
|
function transformTwoWayBindingSet(job) {
|
|
21237
21377
|
for (const unit of job.units) {
|
|
21238
21378
|
for (const op of unit.create) {
|
|
@@ -21255,7 +21395,7 @@ function transformTwoWayBindingSet(job) {
|
|
|
21255
21395
|
}
|
|
21256
21396
|
}
|
|
21257
21397
|
|
|
21258
|
-
// bazel-out/
|
|
21398
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/save_restore_view.mjs
|
|
21259
21399
|
function saveAndRestoreView(job) {
|
|
21260
21400
|
for (const unit of job.units) {
|
|
21261
21401
|
unit.create.prepend([
|
|
@@ -21300,7 +21440,7 @@ function addSaveRestoreViewOperationToListener(unit, op) {
|
|
|
21300
21440
|
}
|
|
21301
21441
|
}
|
|
21302
21442
|
|
|
21303
|
-
// bazel-out/
|
|
21443
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/slot_allocation.mjs
|
|
21304
21444
|
function allocateSlots(job) {
|
|
21305
21445
|
const slotMap = /* @__PURE__ */ new Map();
|
|
21306
21446
|
for (const unit of job.units) {
|
|
@@ -21325,7 +21465,7 @@ function allocateSlots(job) {
|
|
|
21325
21465
|
}
|
|
21326
21466
|
}
|
|
21327
21467
|
|
|
21328
|
-
// bazel-out/
|
|
21468
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/style_binding_specialization.mjs
|
|
21329
21469
|
function specializeStyleBindings(job) {
|
|
21330
21470
|
for (const unit of job.units) {
|
|
21331
21471
|
for (const op of unit.update) {
|
|
@@ -21355,7 +21495,7 @@ function specializeStyleBindings(job) {
|
|
|
21355
21495
|
}
|
|
21356
21496
|
}
|
|
21357
21497
|
|
|
21358
|
-
// bazel-out/
|
|
21498
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/temporary_variables.mjs
|
|
21359
21499
|
function generateTemporaryVariables(job) {
|
|
21360
21500
|
for (const unit of job.units) {
|
|
21361
21501
|
unit.create.prepend(generateTemporaries(unit.create));
|
|
@@ -21413,7 +21553,7 @@ function assignName(names, expr) {
|
|
|
21413
21553
|
expr.name = name;
|
|
21414
21554
|
}
|
|
21415
21555
|
|
|
21416
|
-
// bazel-out/
|
|
21556
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_fn_generation.mjs
|
|
21417
21557
|
function generateTrackFns(job) {
|
|
21418
21558
|
for (const unit of job.units) {
|
|
21419
21559
|
for (const op of unit.create) {
|
|
@@ -21446,7 +21586,7 @@ function generateTrackFns(job) {
|
|
|
21446
21586
|
}
|
|
21447
21587
|
}
|
|
21448
21588
|
|
|
21449
|
-
// bazel-out/
|
|
21589
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_fn_optimization.mjs
|
|
21450
21590
|
function optimizeTrackFns(job) {
|
|
21451
21591
|
for (const unit of job.units) {
|
|
21452
21592
|
for (const op of unit.create) {
|
|
@@ -21478,7 +21618,7 @@ function optimizeTrackFns(job) {
|
|
|
21478
21618
|
}
|
|
21479
21619
|
}
|
|
21480
21620
|
function isTrackByFunctionCall(rootView, expr) {
|
|
21481
|
-
if (!(expr instanceof InvokeFunctionExpr) || expr.args.length
|
|
21621
|
+
if (!(expr instanceof InvokeFunctionExpr) || expr.args.length === 0 || expr.args.length > 2) {
|
|
21482
21622
|
return false;
|
|
21483
21623
|
}
|
|
21484
21624
|
if (!(expr.receiver instanceof ReadPropExpr && expr.receiver.receiver instanceof ContextExpr) || expr.receiver.receiver.view !== rootView) {
|
|
@@ -21487,6 +21627,8 @@ function isTrackByFunctionCall(rootView, expr) {
|
|
|
21487
21627
|
const [arg0, arg1] = expr.args;
|
|
21488
21628
|
if (!(arg0 instanceof ReadVarExpr) || arg0.name !== "$index") {
|
|
21489
21629
|
return false;
|
|
21630
|
+
} else if (expr.args.length === 1) {
|
|
21631
|
+
return true;
|
|
21490
21632
|
}
|
|
21491
21633
|
if (!(arg1 instanceof ReadVarExpr) || arg1.name !== "$item") {
|
|
21492
21634
|
return false;
|
|
@@ -21494,7 +21636,7 @@ function isTrackByFunctionCall(rootView, expr) {
|
|
|
21494
21636
|
return true;
|
|
21495
21637
|
}
|
|
21496
21638
|
|
|
21497
|
-
// bazel-out/
|
|
21639
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_variables.mjs
|
|
21498
21640
|
function generateTrackVariables(job) {
|
|
21499
21641
|
for (const unit of job.units) {
|
|
21500
21642
|
for (const op of unit.create) {
|
|
@@ -21515,7 +21657,7 @@ function generateTrackVariables(job) {
|
|
|
21515
21657
|
}
|
|
21516
21658
|
}
|
|
21517
21659
|
|
|
21518
|
-
// bazel-out/
|
|
21660
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/var_counting.mjs
|
|
21519
21661
|
function countVariables(job) {
|
|
21520
21662
|
for (const unit of job.units) {
|
|
21521
21663
|
let varCount = 0;
|
|
@@ -21625,7 +21767,7 @@ function isSingletonInterpolation(expr) {
|
|
|
21625
21767
|
return true;
|
|
21626
21768
|
}
|
|
21627
21769
|
|
|
21628
|
-
// bazel-out/
|
|
21770
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/variable_optimization.mjs
|
|
21629
21771
|
function optimizeVariables(job) {
|
|
21630
21772
|
for (const unit of job.units) {
|
|
21631
21773
|
inlineAlwaysInlineVariables(unit.create);
|
|
@@ -21874,7 +22016,7 @@ function allowConservativeInlining(decl, target) {
|
|
|
21874
22016
|
}
|
|
21875
22017
|
}
|
|
21876
22018
|
|
|
21877
|
-
// bazel-out/
|
|
22019
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/wrap_icus.mjs
|
|
21878
22020
|
function wrapI18nIcus(job) {
|
|
21879
22021
|
for (const unit of job.units) {
|
|
21880
22022
|
let currentI18nOp = null;
|
|
@@ -21904,7 +22046,7 @@ function wrapI18nIcus(job) {
|
|
|
21904
22046
|
}
|
|
21905
22047
|
}
|
|
21906
22048
|
|
|
21907
|
-
// bazel-out/
|
|
22049
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/emit.mjs
|
|
21908
22050
|
var phases = [
|
|
21909
22051
|
{ kind: CompilationJobKind.Tmpl, fn: removeContentSelectors },
|
|
21910
22052
|
{ kind: CompilationJobKind.Host, fn: parseHostStyleProperties },
|
|
@@ -22058,7 +22200,7 @@ function emitHostBindingFunction(job) {
|
|
|
22058
22200
|
);
|
|
22059
22201
|
}
|
|
22060
22202
|
|
|
22061
|
-
// bazel-out/
|
|
22203
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template/pipeline/src/ingest.mjs
|
|
22062
22204
|
var compatibilityMode = CompatibilityMode.TemplateDefinitionBuilder;
|
|
22063
22205
|
var domSchema = new DomElementSchemaRegistry();
|
|
22064
22206
|
var NG_TEMPLATE_TAG_NAME = "ng-template";
|
|
@@ -22162,6 +22304,7 @@ function ingestNodes(unit, template2) {
|
|
|
22162
22304
|
ingestIcu(unit, node);
|
|
22163
22305
|
} else if (node instanceof ForLoopBlock) {
|
|
22164
22306
|
ingestForBlock(unit, node);
|
|
22307
|
+
} else if (node instanceof LetDeclaration) {
|
|
22165
22308
|
} else {
|
|
22166
22309
|
throw new Error(`Unsupported template node: ${node.constructor.name}`);
|
|
22167
22310
|
}
|
|
@@ -22809,7 +22952,7 @@ function ingestControlFlowInsertionPoint(unit, xref, node) {
|
|
|
22809
22952
|
return null;
|
|
22810
22953
|
}
|
|
22811
22954
|
|
|
22812
|
-
// bazel-out/
|
|
22955
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/query_generation.mjs
|
|
22813
22956
|
function renderFlagCheckIfStmt(flags, statements) {
|
|
22814
22957
|
return ifStmt(variable(RENDER_FLAGS).bitwiseAnd(literal(flags), null, false), statements);
|
|
22815
22958
|
}
|
|
@@ -22929,7 +23072,7 @@ function createContentQueriesFunction(queries, constantPool, name) {
|
|
|
22929
23072
|
], INFERRED_TYPE, null, contentQueriesFnName);
|
|
22930
23073
|
}
|
|
22931
23074
|
|
|
22932
|
-
// bazel-out/
|
|
23075
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/html_parser.mjs
|
|
22933
23076
|
var HtmlParser = class extends Parser2 {
|
|
22934
23077
|
constructor() {
|
|
22935
23078
|
super(getHtmlTagDefinition);
|
|
@@ -22939,7 +23082,7 @@ var HtmlParser = class extends Parser2 {
|
|
|
22939
23082
|
}
|
|
22940
23083
|
};
|
|
22941
23084
|
|
|
22942
|
-
// bazel-out/
|
|
23085
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/html_whitespaces.mjs
|
|
22943
23086
|
var PRESERVE_WS_ATTR_NAME = "ngPreserveWhitespaces";
|
|
22944
23087
|
var SKIP_WS_TRIM_TAGS = /* @__PURE__ */ new Set(["pre", "template", "textarea", "script", "style"]);
|
|
22945
23088
|
var WS_CHARS = " \f\n\r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF";
|
|
@@ -22986,6 +23129,9 @@ var WhitespaceVisitor = class {
|
|
|
22986
23129
|
visitBlockParameter(parameter, context) {
|
|
22987
23130
|
return parameter;
|
|
22988
23131
|
}
|
|
23132
|
+
visitLetDeclaration(decl, context) {
|
|
23133
|
+
return decl;
|
|
23134
|
+
}
|
|
22989
23135
|
};
|
|
22990
23136
|
function createWhitespaceProcessedTextToken({ type, parts, sourceSpan }) {
|
|
22991
23137
|
return { type, parts: [processWhitespace(parts[0])], sourceSpan };
|
|
@@ -23005,7 +23151,7 @@ function visitAllWithSiblings(visitor, nodes) {
|
|
|
23005
23151
|
return result;
|
|
23006
23152
|
}
|
|
23007
23153
|
|
|
23008
|
-
// bazel-out/
|
|
23154
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template_parser/binding_parser.mjs
|
|
23009
23155
|
var PROPERTY_PARTS_SEPARATOR = ".";
|
|
23010
23156
|
var ATTRIBUTE_PREFIX = "attr";
|
|
23011
23157
|
var CLASS_PREFIX = "class";
|
|
@@ -23359,7 +23505,7 @@ function moveParseSourceSpan(sourceSpan, absoluteSpan) {
|
|
|
23359
23505
|
return new ParseSourceSpan(sourceSpan.start.moveBy(startDiff), sourceSpan.end.moveBy(endDiff), sourceSpan.fullStart.moveBy(startDiff), sourceSpan.details);
|
|
23360
23506
|
}
|
|
23361
23507
|
|
|
23362
|
-
// bazel-out/
|
|
23508
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/style_url_resolver.mjs
|
|
23363
23509
|
function isStyleUrlResolvable(url) {
|
|
23364
23510
|
if (url == null || url.length === 0 || url[0] == "/")
|
|
23365
23511
|
return false;
|
|
@@ -23368,7 +23514,7 @@ function isStyleUrlResolvable(url) {
|
|
|
23368
23514
|
}
|
|
23369
23515
|
var URL_WITH_SCHEMA_REGEXP = /^([^:/?#]+):/;
|
|
23370
23516
|
|
|
23371
|
-
// bazel-out/
|
|
23517
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/template_parser/template_preparser.mjs
|
|
23372
23518
|
var NG_CONTENT_SELECT_ATTR = "select";
|
|
23373
23519
|
var LINK_ELEMENT = "link";
|
|
23374
23520
|
var LINK_STYLE_REL_ATTR = "rel";
|
|
@@ -23438,7 +23584,7 @@ function normalizeNgContentSelect(selectAttr) {
|
|
|
23438
23584
|
return selectAttr;
|
|
23439
23585
|
}
|
|
23440
23586
|
|
|
23441
|
-
// bazel-out/
|
|
23587
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_control_flow.mjs
|
|
23442
23588
|
var FOR_LOOP_EXPRESSION_PATTERN = /^\s*([0-9A-Za-z_$]*)\s+of\s+([\S\s]*)/;
|
|
23443
23589
|
var FOR_LOOP_TRACK_PATTERN = /^track\s+([\S\s]*)/;
|
|
23444
23590
|
var CONDITIONAL_ALIAS_PATTERN = /^(as\s)+(.*)/;
|
|
@@ -23761,7 +23907,7 @@ function stripOptionalParentheses(param, errors) {
|
|
|
23761
23907
|
return expression.slice(start, end);
|
|
23762
23908
|
}
|
|
23763
23909
|
|
|
23764
|
-
// bazel-out/
|
|
23910
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_deferred_triggers.mjs
|
|
23765
23911
|
var TIME_PATTERN = /^\d+\.?\d*(ms|s)?$/;
|
|
23766
23912
|
var SEPARATOR_PATTERN = /^\s$/;
|
|
23767
23913
|
var COMMA_DELIMITED_SYNTAX = /* @__PURE__ */ new Map([
|
|
@@ -24025,7 +24171,7 @@ function parseDeferredTime(value) {
|
|
|
24025
24171
|
return parseFloat(time) * (units === "s" ? 1e3 : 1);
|
|
24026
24172
|
}
|
|
24027
24173
|
|
|
24028
|
-
// bazel-out/
|
|
24174
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_deferred_blocks.mjs
|
|
24029
24175
|
var PREFETCH_WHEN_PATTERN = /^prefetch\s+when\s/;
|
|
24030
24176
|
var PREFETCH_ON_PATTERN = /^prefetch\s+on\s/;
|
|
24031
24177
|
var MINIMUM_PARAMETER_PATTERN = /^minimum\s/;
|
|
@@ -24160,7 +24306,7 @@ function parsePrimaryTriggers(params, bindingParser, errors, placeholder) {
|
|
|
24160
24306
|
return { triggers, prefetchTriggers };
|
|
24161
24307
|
}
|
|
24162
24308
|
|
|
24163
|
-
// bazel-out/
|
|
24309
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_template_transform.mjs
|
|
24164
24310
|
var BIND_NAME_REGEXP = /^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/;
|
|
24165
24311
|
var KW_BIND_IDX = 1;
|
|
24166
24312
|
var KW_LET_IDX = 2;
|
|
@@ -24335,6 +24481,13 @@ var HtmlAstToIvyAst = class {
|
|
|
24335
24481
|
}
|
|
24336
24482
|
return null;
|
|
24337
24483
|
}
|
|
24484
|
+
visitLetDeclaration(decl, context) {
|
|
24485
|
+
const value = this.bindingParser.parseBinding(decl.value, false, decl.valueSpan, decl.valueSpan.start.offset);
|
|
24486
|
+
if (value.errors.length === 0 && value.ast instanceof EmptyExpr) {
|
|
24487
|
+
this.reportError("@let declaration value cannot be empty", decl.valueSpan);
|
|
24488
|
+
}
|
|
24489
|
+
return new LetDeclaration(decl.name, value, decl.sourceSpan, decl.nameSpan, decl.valueSpan);
|
|
24490
|
+
}
|
|
24338
24491
|
visitBlockParameter() {
|
|
24339
24492
|
return null;
|
|
24340
24493
|
}
|
|
@@ -24601,6 +24754,9 @@ var NonBindableVisitor = class {
|
|
|
24601
24754
|
visitBlockParameter(parameter, context) {
|
|
24602
24755
|
return null;
|
|
24603
24756
|
}
|
|
24757
|
+
visitLetDeclaration(decl, context) {
|
|
24758
|
+
return new Text(`@let ${decl.name} = ${decl.value};`, decl.sourceSpan);
|
|
24759
|
+
}
|
|
24604
24760
|
};
|
|
24605
24761
|
var NON_BINDABLE_VISITOR = new NonBindableVisitor();
|
|
24606
24762
|
function normalizeAttributeName(attrName) {
|
|
@@ -24617,10 +24773,10 @@ function textContents(node) {
|
|
|
24617
24773
|
}
|
|
24618
24774
|
}
|
|
24619
24775
|
|
|
24620
|
-
// bazel-out/
|
|
24776
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/template.mjs
|
|
24621
24777
|
var LEADING_TRIVIA_CHARS = [" ", "\n", "\r", " "];
|
|
24622
24778
|
function parseTemplate(template2, templateUrl, options = {}) {
|
|
24623
|
-
var _a2;
|
|
24779
|
+
var _a2, _b2;
|
|
24624
24780
|
const { interpolationConfig, preserveWhitespaces, enableI18nLegacyMessageIdFormat, allowInvalidAssignmentEvents } = options;
|
|
24625
24781
|
const bindingParser = makeBindingParser(interpolationConfig, allowInvalidAssignmentEvents);
|
|
24626
24782
|
const htmlParser = new HtmlParser();
|
|
@@ -24628,7 +24784,8 @@ function parseTemplate(template2, templateUrl, options = {}) {
|
|
|
24628
24784
|
leadingTriviaChars: LEADING_TRIVIA_CHARS
|
|
24629
24785
|
}, options), {
|
|
24630
24786
|
tokenizeExpansionForms: true,
|
|
24631
|
-
tokenizeBlocks: (_a2 = options.enableBlockSyntax) != null ? _a2 : true
|
|
24787
|
+
tokenizeBlocks: (_a2 = options.enableBlockSyntax) != null ? _a2 : true,
|
|
24788
|
+
tokenizeLet: (_b2 = options.enableLetSyntax) != null ? _b2 : false
|
|
24632
24789
|
}));
|
|
24633
24790
|
if (!options.alwaysAttemptHtmlToR3AstConversion && parseResult.errors && parseResult.errors.length > 0) {
|
|
24634
24791
|
const parsedTemplate2 = {
|
|
@@ -24695,7 +24852,7 @@ function makeBindingParser(interpolationConfig = DEFAULT_INTERPOLATION_CONFIG, a
|
|
|
24695
24852
|
return new BindingParser(new Parser(new Lexer()), interpolationConfig, elementRegistry, [], allowInvalidAssignmentEvents);
|
|
24696
24853
|
}
|
|
24697
24854
|
|
|
24698
|
-
// bazel-out/
|
|
24855
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/compiler.mjs
|
|
24699
24856
|
var COMPONENT_VARIABLE = "%COMP%";
|
|
24700
24857
|
var HOST_ATTR = `_nghost-${COMPONENT_VARIABLE}`;
|
|
24701
24858
|
var CONTENT_ATTR = `_ngcontent-${COMPONENT_VARIABLE}`;
|
|
@@ -25086,7 +25243,7 @@ function compileDeferResolverFunction(meta) {
|
|
|
25086
25243
|
return arrowFn([], literalArr(depExpressions));
|
|
25087
25244
|
}
|
|
25088
25245
|
|
|
25089
|
-
// bazel-out/
|
|
25246
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/view/t2_binder.mjs
|
|
25090
25247
|
var R3TargetBinder = class {
|
|
25091
25248
|
constructor(directiveMatcher) {
|
|
25092
25249
|
this.directiveMatcher = directiveMatcher;
|
|
@@ -25192,6 +25349,9 @@ var Scope2 = class {
|
|
|
25192
25349
|
visitContent(content) {
|
|
25193
25350
|
this.ingestScopedNode(content);
|
|
25194
25351
|
}
|
|
25352
|
+
visitLetDeclaration(decl) {
|
|
25353
|
+
this.maybeDeclare(decl);
|
|
25354
|
+
}
|
|
25195
25355
|
visitBoundAttribute(attr) {
|
|
25196
25356
|
}
|
|
25197
25357
|
visitBoundEvent(event) {
|
|
@@ -25369,6 +25529,8 @@ var DirectiveBinder = class {
|
|
|
25369
25529
|
}
|
|
25370
25530
|
visitUnknownBlock(block) {
|
|
25371
25531
|
}
|
|
25532
|
+
visitLetDeclaration(decl) {
|
|
25533
|
+
}
|
|
25372
25534
|
};
|
|
25373
25535
|
var TemplateBinder = class extends RecursiveAstVisitor2 {
|
|
25374
25536
|
constructor(bindings, symbols, usedPipes, eagerPipes, deferBlocks, nestingLevel, scope, rootNode, level) {
|
|
@@ -25525,6 +25687,12 @@ var TemplateBinder = class extends RecursiveAstVisitor2 {
|
|
|
25525
25687
|
visitBoundText(text2) {
|
|
25526
25688
|
text2.value.visit(this);
|
|
25527
25689
|
}
|
|
25690
|
+
visitLetDeclaration(decl) {
|
|
25691
|
+
decl.value.visit(this);
|
|
25692
|
+
if (this.rootNode !== null) {
|
|
25693
|
+
this.symbols.set(decl, this.rootNode);
|
|
25694
|
+
}
|
|
25695
|
+
}
|
|
25528
25696
|
visitPipe(ast, context) {
|
|
25529
25697
|
this.usedPipes.add(ast.name);
|
|
25530
25698
|
if (!this.scope.isDeferred) {
|
|
@@ -25553,7 +25721,10 @@ var TemplateBinder = class extends RecursiveAstVisitor2 {
|
|
|
25553
25721
|
if (!(ast.receiver instanceof ImplicitReceiver)) {
|
|
25554
25722
|
return;
|
|
25555
25723
|
}
|
|
25556
|
-
|
|
25724
|
+
const target = this.scope.lookup(name);
|
|
25725
|
+
if (target instanceof LetDeclaration && ast.receiver instanceof ThisReceiver) {
|
|
25726
|
+
return;
|
|
25727
|
+
}
|
|
25557
25728
|
if (target !== null) {
|
|
25558
25729
|
this.bindings.set(ast, target);
|
|
25559
25730
|
}
|
|
@@ -25719,11 +25890,11 @@ function extractScopedNodeEntities(rootScope) {
|
|
|
25719
25890
|
return templateEntities;
|
|
25720
25891
|
}
|
|
25721
25892
|
|
|
25722
|
-
// bazel-out/
|
|
25893
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/resource_loader.mjs
|
|
25723
25894
|
var ResourceLoader = class {
|
|
25724
25895
|
};
|
|
25725
25896
|
|
|
25726
|
-
// bazel-out/
|
|
25897
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/jit_compiler_facade.mjs
|
|
25727
25898
|
var CompilerFacadeImpl = class {
|
|
25728
25899
|
constructor(jitEvaluator = new JitEvaluator()) {
|
|
25729
25900
|
this.jitEvaluator = jitEvaluator;
|
|
@@ -26289,10 +26460,10 @@ function publishFacade(global) {
|
|
|
26289
26460
|
ng.\u0275compilerFacade = new CompilerFacadeImpl();
|
|
26290
26461
|
}
|
|
26291
26462
|
|
|
26292
|
-
// bazel-out/
|
|
26293
|
-
var VERSION2 = new Version("18.0.
|
|
26463
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/version.mjs
|
|
26464
|
+
var VERSION2 = new Version("18.0.2");
|
|
26294
26465
|
|
|
26295
|
-
// bazel-out/
|
|
26466
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
|
|
26296
26467
|
var _I18N_ATTR = "i18n";
|
|
26297
26468
|
var _I18N_ATTR_PREFIX = "i18n-";
|
|
26298
26469
|
var _I18N_COMMENT_PREFIX_REGEXP = /^i18n:?/;
|
|
@@ -26467,6 +26638,8 @@ var _Visitor3 = class {
|
|
|
26467
26638
|
}
|
|
26468
26639
|
visitBlockParameter(parameter, context) {
|
|
26469
26640
|
}
|
|
26641
|
+
visitLetDeclaration(decl, context) {
|
|
26642
|
+
}
|
|
26470
26643
|
_init(mode, interpolationConfig) {
|
|
26471
26644
|
this._mode = mode;
|
|
26472
26645
|
this._inI18nBlock = false;
|
|
@@ -26601,7 +26774,7 @@ function _parseMessageMeta(i18n2) {
|
|
|
26601
26774
|
return { meaning, description, id: id.trim() };
|
|
26602
26775
|
}
|
|
26603
26776
|
|
|
26604
|
-
// bazel-out/
|
|
26777
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/xml_tags.mjs
|
|
26605
26778
|
var XmlTagDefinition = class {
|
|
26606
26779
|
constructor() {
|
|
26607
26780
|
this.closedByParent = false;
|
|
@@ -26626,17 +26799,17 @@ function getXmlTagDefinition(tagName) {
|
|
|
26626
26799
|
return _TAG_DEFINITION;
|
|
26627
26800
|
}
|
|
26628
26801
|
|
|
26629
|
-
// bazel-out/
|
|
26802
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/ml_parser/xml_parser.mjs
|
|
26630
26803
|
var XmlParser = class extends Parser2 {
|
|
26631
26804
|
constructor() {
|
|
26632
26805
|
super(getXmlTagDefinition);
|
|
26633
26806
|
}
|
|
26634
26807
|
parse(source, url, options = {}) {
|
|
26635
|
-
return super.parse(source, url, __spreadProps(__spreadValues({}, options), { tokenizeBlocks: false }));
|
|
26808
|
+
return super.parse(source, url, __spreadProps(__spreadValues({}, options), { tokenizeBlocks: false, tokenizeLet: false }));
|
|
26636
26809
|
}
|
|
26637
26810
|
};
|
|
26638
26811
|
|
|
26639
|
-
// bazel-out/
|
|
26812
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/xliff.mjs
|
|
26640
26813
|
var _VERSION = "1.2";
|
|
26641
26814
|
var _XMLNS = "urn:oasis:names:tc:xliff:document:1.2";
|
|
26642
26815
|
var _DEFAULT_SOURCE_LANG = "en";
|
|
@@ -26846,6 +27019,8 @@ var XliffParser = class {
|
|
|
26846
27019
|
}
|
|
26847
27020
|
visitBlockParameter(parameter, context) {
|
|
26848
27021
|
}
|
|
27022
|
+
visitLetDeclaration(decl, context) {
|
|
27023
|
+
}
|
|
26849
27024
|
_addError(node, message) {
|
|
26850
27025
|
this._errors.push(new I18nError(node.sourceSpan, message));
|
|
26851
27026
|
}
|
|
@@ -26899,6 +27074,8 @@ var XmlToI18n = class {
|
|
|
26899
27074
|
}
|
|
26900
27075
|
visitBlockParameter(parameter, context) {
|
|
26901
27076
|
}
|
|
27077
|
+
visitLetDeclaration(decl, context) {
|
|
27078
|
+
}
|
|
26902
27079
|
_addError(node, message) {
|
|
26903
27080
|
this._errors.push(new I18nError(node.sourceSpan, message));
|
|
26904
27081
|
}
|
|
@@ -26914,7 +27091,7 @@ function getCtypeForTag(tag) {
|
|
|
26914
27091
|
}
|
|
26915
27092
|
}
|
|
26916
27093
|
|
|
26917
|
-
// bazel-out/
|
|
27094
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/serializers/xliff2.mjs
|
|
26918
27095
|
var _VERSION2 = "2.0";
|
|
26919
27096
|
var _XMLNS2 = "urn:oasis:names:tc:xliff:document:2.0";
|
|
26920
27097
|
var _DEFAULT_SOURCE_LANG2 = "en";
|
|
@@ -27153,6 +27330,8 @@ var Xliff2Parser = class {
|
|
|
27153
27330
|
}
|
|
27154
27331
|
visitBlockParameter(parameter, context) {
|
|
27155
27332
|
}
|
|
27333
|
+
visitLetDeclaration(decl, context) {
|
|
27334
|
+
}
|
|
27156
27335
|
_addError(node, message) {
|
|
27157
27336
|
this._errors.push(new I18nError(node.sourceSpan, message));
|
|
27158
27337
|
}
|
|
@@ -27221,6 +27400,8 @@ var XmlToI18n2 = class {
|
|
|
27221
27400
|
}
|
|
27222
27401
|
visitBlockParameter(parameter, context) {
|
|
27223
27402
|
}
|
|
27403
|
+
visitLetDeclaration(decl, context) {
|
|
27404
|
+
}
|
|
27224
27405
|
_addError(node, message) {
|
|
27225
27406
|
this._errors.push(new I18nError(node.sourceSpan, message));
|
|
27226
27407
|
}
|
|
@@ -27241,7 +27422,7 @@ function getTypeForTag(tag) {
|
|
|
27241
27422
|
}
|
|
27242
27423
|
}
|
|
27243
27424
|
|
|
27244
|
-
// bazel-out/
|
|
27425
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/message_bundle.mjs
|
|
27245
27426
|
var MessageBundle = class {
|
|
27246
27427
|
constructor(_htmlParser, _implicitTags, _implicitAttrs, _locale = null) {
|
|
27247
27428
|
this._htmlParser = _htmlParser;
|
|
@@ -27317,7 +27498,7 @@ var MapPlaceholderNames = class extends CloneVisitor {
|
|
|
27317
27498
|
}
|
|
27318
27499
|
};
|
|
27319
27500
|
|
|
27320
|
-
// bazel-out/
|
|
27501
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/api.mjs
|
|
27321
27502
|
var FactoryTarget2;
|
|
27322
27503
|
(function(FactoryTarget3) {
|
|
27323
27504
|
FactoryTarget3[FactoryTarget3["Directive"] = 0] = "Directive";
|
|
@@ -27327,7 +27508,7 @@ var FactoryTarget2;
|
|
|
27327
27508
|
FactoryTarget3[FactoryTarget3["NgModule"] = 4] = "NgModule";
|
|
27328
27509
|
})(FactoryTarget2 || (FactoryTarget2 = {}));
|
|
27329
27510
|
|
|
27330
|
-
// bazel-out/
|
|
27511
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_class_metadata_compiler.mjs
|
|
27331
27512
|
function compileClassMetadata(metadata) {
|
|
27332
27513
|
const fnCall = internalCompileClassMetadata(metadata);
|
|
27333
27514
|
return arrowFn([], [devOnlyGuardedExpression(fnCall).toStmt()]).callFn([]);
|
|
@@ -27361,7 +27542,7 @@ function compileComponentMetadataAsyncResolver(dependencies) {
|
|
|
27361
27542
|
return arrowFn([], literalArr(dynamicImports));
|
|
27362
27543
|
}
|
|
27363
27544
|
|
|
27364
|
-
// bazel-out/
|
|
27545
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/r3_class_debug_info_compiler.mjs
|
|
27365
27546
|
function compileClassDebugInfo(debugInfo) {
|
|
27366
27547
|
const debugInfoObject = {
|
|
27367
27548
|
className: debugInfo.className
|
|
@@ -27378,13 +27559,13 @@ function compileClassDebugInfo(debugInfo) {
|
|
|
27378
27559
|
return iife.callFn([]);
|
|
27379
27560
|
}
|
|
27380
27561
|
|
|
27381
|
-
// bazel-out/
|
|
27562
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/class_metadata.mjs
|
|
27382
27563
|
var MINIMUM_PARTIAL_LINKER_VERSION = "12.0.0";
|
|
27383
27564
|
var MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = "18.0.0";
|
|
27384
27565
|
function compileDeclareClassMetadata(metadata) {
|
|
27385
27566
|
const definitionMap = new DefinitionMap();
|
|
27386
27567
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
27387
|
-
definitionMap.set("version", literal("18.0.
|
|
27568
|
+
definitionMap.set("version", literal("18.0.2"));
|
|
27388
27569
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
27389
27570
|
definitionMap.set("type", metadata.type);
|
|
27390
27571
|
definitionMap.set("decorators", metadata.decorators);
|
|
@@ -27403,7 +27584,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
|
|
|
27403
27584
|
callbackReturnDefinitionMap.set("ctorParameters", (_a2 = metadata.ctorParameters) != null ? _a2 : literal(null));
|
|
27404
27585
|
callbackReturnDefinitionMap.set("propDecorators", (_b2 = metadata.propDecorators) != null ? _b2 : literal(null));
|
|
27405
27586
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
|
|
27406
|
-
definitionMap.set("version", literal("18.0.
|
|
27587
|
+
definitionMap.set("version", literal("18.0.2"));
|
|
27407
27588
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
27408
27589
|
definitionMap.set("type", metadata.type);
|
|
27409
27590
|
definitionMap.set("resolveDeferredDeps", compileComponentMetadataAsyncResolver(dependencies));
|
|
@@ -27411,7 +27592,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
|
|
|
27411
27592
|
return importExpr(Identifiers.declareClassMetadataAsync).callFn([definitionMap.toLiteralMap()]);
|
|
27412
27593
|
}
|
|
27413
27594
|
|
|
27414
|
-
// bazel-out/
|
|
27595
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/util.mjs
|
|
27415
27596
|
function toOptionalLiteralArray(values, mapper) {
|
|
27416
27597
|
if (values === null || values.length === 0) {
|
|
27417
27598
|
return null;
|
|
@@ -27459,7 +27640,7 @@ function compileDependency(dep) {
|
|
|
27459
27640
|
return depMeta.toLiteralMap();
|
|
27460
27641
|
}
|
|
27461
27642
|
|
|
27462
|
-
// bazel-out/
|
|
27643
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/directive.mjs
|
|
27463
27644
|
function compileDeclareDirectiveFromMetadata(meta) {
|
|
27464
27645
|
const definitionMap = createDirectiveDefinitionMap(meta);
|
|
27465
27646
|
const expression = importExpr(Identifiers.declareDirective).callFn([definitionMap.toLiteralMap()]);
|
|
@@ -27471,7 +27652,7 @@ function createDirectiveDefinitionMap(meta) {
|
|
|
27471
27652
|
const definitionMap = new DefinitionMap();
|
|
27472
27653
|
const minVersion = getMinimumVersionForPartialOutput(meta);
|
|
27473
27654
|
definitionMap.set("minVersion", literal(minVersion));
|
|
27474
|
-
definitionMap.set("version", literal("18.0.
|
|
27655
|
+
definitionMap.set("version", literal("18.0.2"));
|
|
27475
27656
|
definitionMap.set("type", meta.type.value);
|
|
27476
27657
|
if (meta.isStandalone) {
|
|
27477
27658
|
definitionMap.set("isStandalone", literal(meta.isStandalone));
|
|
@@ -27633,7 +27814,7 @@ function legacyInputsPartialMetadata(inputs) {
|
|
|
27633
27814
|
}));
|
|
27634
27815
|
}
|
|
27635
27816
|
|
|
27636
|
-
// bazel-out/
|
|
27817
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/component.mjs
|
|
27637
27818
|
function compileDeclareComponentFromMetadata(meta, template2, additionalTemplateInfo) {
|
|
27638
27819
|
const definitionMap = createComponentDefinitionMap(meta, template2, additionalTemplateInfo);
|
|
27639
27820
|
const expression = importExpr(Identifiers.declareComponent).callFn([definitionMap.toLiteralMap()]);
|
|
@@ -27784,12 +27965,12 @@ var BlockPresenceVisitor = class extends RecursiveVisitor {
|
|
|
27784
27965
|
}
|
|
27785
27966
|
};
|
|
27786
27967
|
|
|
27787
|
-
// bazel-out/
|
|
27968
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/factory.mjs
|
|
27788
27969
|
var MINIMUM_PARTIAL_LINKER_VERSION2 = "12.0.0";
|
|
27789
27970
|
function compileDeclareFactoryFunction(meta) {
|
|
27790
27971
|
const definitionMap = new DefinitionMap();
|
|
27791
27972
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION2));
|
|
27792
|
-
definitionMap.set("version", literal("18.0.
|
|
27973
|
+
definitionMap.set("version", literal("18.0.2"));
|
|
27793
27974
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
27794
27975
|
definitionMap.set("type", meta.type.value);
|
|
27795
27976
|
definitionMap.set("deps", compileDependencies(meta.deps));
|
|
@@ -27801,7 +27982,7 @@ function compileDeclareFactoryFunction(meta) {
|
|
|
27801
27982
|
};
|
|
27802
27983
|
}
|
|
27803
27984
|
|
|
27804
|
-
// bazel-out/
|
|
27985
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/injectable.mjs
|
|
27805
27986
|
var MINIMUM_PARTIAL_LINKER_VERSION3 = "12.0.0";
|
|
27806
27987
|
function compileDeclareInjectableFromMetadata(meta) {
|
|
27807
27988
|
const definitionMap = createInjectableDefinitionMap(meta);
|
|
@@ -27812,7 +27993,7 @@ function compileDeclareInjectableFromMetadata(meta) {
|
|
|
27812
27993
|
function createInjectableDefinitionMap(meta) {
|
|
27813
27994
|
const definitionMap = new DefinitionMap();
|
|
27814
27995
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION3));
|
|
27815
|
-
definitionMap.set("version", literal("18.0.
|
|
27996
|
+
definitionMap.set("version", literal("18.0.2"));
|
|
27816
27997
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
27817
27998
|
definitionMap.set("type", meta.type.value);
|
|
27818
27999
|
if (meta.providedIn !== void 0) {
|
|
@@ -27839,7 +28020,7 @@ function createInjectableDefinitionMap(meta) {
|
|
|
27839
28020
|
return definitionMap;
|
|
27840
28021
|
}
|
|
27841
28022
|
|
|
27842
|
-
// bazel-out/
|
|
28023
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/injector.mjs
|
|
27843
28024
|
var MINIMUM_PARTIAL_LINKER_VERSION4 = "12.0.0";
|
|
27844
28025
|
function compileDeclareInjectorFromMetadata(meta) {
|
|
27845
28026
|
const definitionMap = createInjectorDefinitionMap(meta);
|
|
@@ -27850,7 +28031,7 @@ function compileDeclareInjectorFromMetadata(meta) {
|
|
|
27850
28031
|
function createInjectorDefinitionMap(meta) {
|
|
27851
28032
|
const definitionMap = new DefinitionMap();
|
|
27852
28033
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION4));
|
|
27853
|
-
definitionMap.set("version", literal("18.0.
|
|
28034
|
+
definitionMap.set("version", literal("18.0.2"));
|
|
27854
28035
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
27855
28036
|
definitionMap.set("type", meta.type.value);
|
|
27856
28037
|
definitionMap.set("providers", meta.providers);
|
|
@@ -27860,7 +28041,7 @@ function createInjectorDefinitionMap(meta) {
|
|
|
27860
28041
|
return definitionMap;
|
|
27861
28042
|
}
|
|
27862
28043
|
|
|
27863
|
-
// bazel-out/
|
|
28044
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/ng_module.mjs
|
|
27864
28045
|
var MINIMUM_PARTIAL_LINKER_VERSION5 = "14.0.0";
|
|
27865
28046
|
function compileDeclareNgModuleFromMetadata(meta) {
|
|
27866
28047
|
const definitionMap = createNgModuleDefinitionMap(meta);
|
|
@@ -27874,7 +28055,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
27874
28055
|
throw new Error("Invalid path! Local compilation mode should not get into the partial compilation path");
|
|
27875
28056
|
}
|
|
27876
28057
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION5));
|
|
27877
|
-
definitionMap.set("version", literal("18.0.
|
|
28058
|
+
definitionMap.set("version", literal("18.0.2"));
|
|
27878
28059
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
27879
28060
|
definitionMap.set("type", meta.type.value);
|
|
27880
28061
|
if (meta.bootstrap.length > 0) {
|
|
@@ -27898,7 +28079,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
27898
28079
|
return definitionMap;
|
|
27899
28080
|
}
|
|
27900
28081
|
|
|
27901
|
-
// bazel-out/
|
|
28082
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/render3/partial/pipe.mjs
|
|
27902
28083
|
var MINIMUM_PARTIAL_LINKER_VERSION6 = "14.0.0";
|
|
27903
28084
|
function compileDeclarePipeFromMetadata(meta) {
|
|
27904
28085
|
const definitionMap = createPipeDefinitionMap(meta);
|
|
@@ -27909,7 +28090,7 @@ function compileDeclarePipeFromMetadata(meta) {
|
|
|
27909
28090
|
function createPipeDefinitionMap(meta) {
|
|
27910
28091
|
const definitionMap = new DefinitionMap();
|
|
27911
28092
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION6));
|
|
27912
|
-
definitionMap.set("version", literal("18.0.
|
|
28093
|
+
definitionMap.set("version", literal("18.0.2"));
|
|
27913
28094
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
27914
28095
|
definitionMap.set("type", meta.type.value);
|
|
27915
28096
|
if (meta.isStandalone) {
|
|
@@ -27922,16 +28103,16 @@ function createPipeDefinitionMap(meta) {
|
|
|
27922
28103
|
return definitionMap;
|
|
27923
28104
|
}
|
|
27924
28105
|
|
|
27925
|
-
// bazel-out/
|
|
28106
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler/src/compiler.mjs
|
|
27926
28107
|
publishFacade(_global);
|
|
27927
28108
|
|
|
27928
|
-
// bazel-out/
|
|
27929
|
-
var VERSION3 = new Version("18.0.
|
|
28109
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/version.mjs
|
|
28110
|
+
var VERSION3 = new Version("18.0.2");
|
|
27930
28111
|
|
|
27931
|
-
// bazel-out/
|
|
28112
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
|
|
27932
28113
|
var import_typescript5 = __toESM(require("typescript"), 1);
|
|
27933
28114
|
|
|
27934
|
-
// bazel-out/
|
|
28115
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_code.mjs
|
|
27935
28116
|
var ErrorCode;
|
|
27936
28117
|
(function(ErrorCode2) {
|
|
27937
28118
|
ErrorCode2[ErrorCode2["DECORATOR_ARG_NOT_LITERAL"] = 1001] = "DECORATOR_ARG_NOT_LITERAL";
|
|
@@ -28002,6 +28183,9 @@ var ErrorCode;
|
|
|
28002
28183
|
ErrorCode2[ErrorCode2["DEFERRED_PIPE_USED_EAGERLY"] = 8012] = "DEFERRED_PIPE_USED_EAGERLY";
|
|
28003
28184
|
ErrorCode2[ErrorCode2["DEFERRED_DIRECTIVE_USED_EAGERLY"] = 8013] = "DEFERRED_DIRECTIVE_USED_EAGERLY";
|
|
28004
28185
|
ErrorCode2[ErrorCode2["DEFERRED_DEPENDENCY_IMPORTED_EAGERLY"] = 8014] = "DEFERRED_DEPENDENCY_IMPORTED_EAGERLY";
|
|
28186
|
+
ErrorCode2[ErrorCode2["ILLEGAL_LET_WRITE"] = 8015] = "ILLEGAL_LET_WRITE";
|
|
28187
|
+
ErrorCode2[ErrorCode2["LET_USED_BEFORE_DEFINITION"] = 8016] = "LET_USED_BEFORE_DEFINITION";
|
|
28188
|
+
ErrorCode2[ErrorCode2["DUPLICATE_LET_DECLARATION"] = 8017] = "DUPLICATE_LET_DECLARATION";
|
|
28005
28189
|
ErrorCode2[ErrorCode2["INVALID_BANANA_IN_BOX"] = 8101] = "INVALID_BANANA_IN_BOX";
|
|
28006
28190
|
ErrorCode2[ErrorCode2["NULLISH_COALESCING_NOT_NULLABLE"] = 8102] = "NULLISH_COALESCING_NOT_NULLABLE";
|
|
28007
28191
|
ErrorCode2[ErrorCode2["MISSING_CONTROL_FLOW_DIRECTIVE"] = 8103] = "MISSING_CONTROL_FLOW_DIRECTIVE";
|
|
@@ -28021,7 +28205,7 @@ var ErrorCode;
|
|
|
28021
28205
|
ErrorCode2[ErrorCode2["LOCAL_COMPILATION_UNSUPPORTED_EXPRESSION"] = 11003] = "LOCAL_COMPILATION_UNSUPPORTED_EXPRESSION";
|
|
28022
28206
|
})(ErrorCode || (ErrorCode = {}));
|
|
28023
28207
|
|
|
28024
|
-
// bazel-out/
|
|
28208
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/docs.mjs
|
|
28025
28209
|
var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
|
|
28026
28210
|
ErrorCode.DECORATOR_ARG_NOT_LITERAL,
|
|
28027
28211
|
ErrorCode.IMPORT_CYCLE_DETECTED,
|
|
@@ -28033,15 +28217,15 @@ var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
|
|
|
28033
28217
|
ErrorCode.WARN_NGMODULE_ID_UNNECESSARY
|
|
28034
28218
|
]);
|
|
28035
28219
|
|
|
28036
|
-
// bazel-out/
|
|
28220
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
|
|
28037
28221
|
var import_typescript2 = __toESM(require("typescript"), 1);
|
|
28038
28222
|
|
|
28039
|
-
// bazel-out/
|
|
28223
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/util.mjs
|
|
28040
28224
|
function ngErrorCode(code) {
|
|
28041
28225
|
return parseInt("-99" + code);
|
|
28042
28226
|
}
|
|
28043
28227
|
|
|
28044
|
-
// bazel-out/
|
|
28228
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
|
|
28045
28229
|
var FatalDiagnosticError = class extends Error {
|
|
28046
28230
|
constructor(code, node, diagnosticMessage, relatedInformation) {
|
|
28047
28231
|
super(`FatalDiagnosticError: Code: ${code}, Message: ${import_typescript2.default.flattenDiagnosticMessageText(diagnosticMessage, "\n")}`);
|
|
@@ -28102,10 +28286,10 @@ function isFatalDiagnosticError(err) {
|
|
|
28102
28286
|
return err._isFatalDiagnosticError === true;
|
|
28103
28287
|
}
|
|
28104
28288
|
|
|
28105
|
-
// bazel-out/
|
|
28106
|
-
var ERROR_DETAILS_PAGE_BASE_URL = "https://angular.
|
|
28289
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.mjs
|
|
28290
|
+
var ERROR_DETAILS_PAGE_BASE_URL = "https://angular.dev/errors";
|
|
28107
28291
|
|
|
28108
|
-
// bazel-out/
|
|
28292
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.mjs
|
|
28109
28293
|
var ExtendedTemplateDiagnosticName;
|
|
28110
28294
|
(function(ExtendedTemplateDiagnosticName2) {
|
|
28111
28295
|
ExtendedTemplateDiagnosticName2["INVALID_BANANA_IN_BOX"] = "invalidBananaInBox";
|
|
@@ -28120,7 +28304,7 @@ var ExtendedTemplateDiagnosticName;
|
|
|
28120
28304
|
ExtendedTemplateDiagnosticName2["CONTROL_FLOW_PREVENTING_CONTENT_PROJECTION"] = "controlFlowPreventingContentProjection";
|
|
28121
28305
|
})(ExtendedTemplateDiagnosticName || (ExtendedTemplateDiagnosticName = {}));
|
|
28122
28306
|
|
|
28123
|
-
// bazel-out/
|
|
28307
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/typescript.mjs
|
|
28124
28308
|
var import_typescript3 = __toESM(require("typescript"), 1);
|
|
28125
28309
|
var TS = /\.tsx?$/i;
|
|
28126
28310
|
var D_TS = /\.d\.ts$/i;
|
|
@@ -28221,7 +28405,7 @@ function toUnredirectedSourceFile(sf) {
|
|
|
28221
28405
|
return redirectInfo.unredirected;
|
|
28222
28406
|
}
|
|
28223
28407
|
|
|
28224
|
-
// bazel-out/
|
|
28408
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/find_export.mjs
|
|
28225
28409
|
function findExportedNameOfNode(target, file, reflector) {
|
|
28226
28410
|
const exports = reflector.getExportsOfModule(file);
|
|
28227
28411
|
if (exports === null) {
|
|
@@ -28241,7 +28425,7 @@ function findExportedNameOfNode(target, file, reflector) {
|
|
|
28241
28425
|
return foundExportName;
|
|
28242
28426
|
}
|
|
28243
28427
|
|
|
28244
|
-
// bazel-out/
|
|
28428
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
|
|
28245
28429
|
var ImportFlags;
|
|
28246
28430
|
(function(ImportFlags2) {
|
|
28247
28431
|
ImportFlags2[ImportFlags2["None"] = 0] = "None";
|
|
@@ -28472,7 +28656,7 @@ var UnifiedModulesStrategy = class {
|
|
|
28472
28656
|
}
|
|
28473
28657
|
};
|
|
28474
28658
|
|
|
28475
|
-
// bazel-out/
|
|
28659
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
|
|
28476
28660
|
var CHARS_TO_ESCAPE = /[^a-zA-Z0-9/_]/g;
|
|
28477
28661
|
var UnifiedModulesAliasingHost = class {
|
|
28478
28662
|
constructor(unifiedModulesHost) {
|
|
@@ -28539,7 +28723,7 @@ var AliasStrategy = class {
|
|
|
28539
28723
|
}
|
|
28540
28724
|
};
|
|
28541
28725
|
|
|
28542
|
-
// bazel-out/
|
|
28726
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/path.mjs
|
|
28543
28727
|
function relativePathBetween(from, to) {
|
|
28544
28728
|
const relativePath = stripExtension(relative(dirname(resolve(from)), resolve(to)));
|
|
28545
28729
|
return relativePath !== "" ? toRelativeImport(relativePath) : null;
|
|
@@ -28548,7 +28732,7 @@ function normalizeSeparators2(path4) {
|
|
|
28548
28732
|
return path4.replace(/\\/g, "/");
|
|
28549
28733
|
}
|
|
28550
28734
|
|
|
28551
|
-
// bazel-out/
|
|
28735
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/core.mjs
|
|
28552
28736
|
var NoopImportRewriter = class {
|
|
28553
28737
|
rewriteSymbol(symbol, specifier) {
|
|
28554
28738
|
return symbol;
|
|
@@ -28601,7 +28785,7 @@ function validateAndRewriteCoreSymbol(name) {
|
|
|
28601
28785
|
return CORE_SUPPORTED_SYMBOLS.get(name);
|
|
28602
28786
|
}
|
|
28603
28787
|
|
|
28604
|
-
// bazel-out/
|
|
28788
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/patch_alias_reference_resolution.mjs
|
|
28605
28789
|
var import_typescript7 = __toESM(require("typescript"), 1);
|
|
28606
28790
|
var patchedReferencedAliasesSymbol = Symbol("patchedReferencedAliases");
|
|
28607
28791
|
function loadIsReferencedAliasDeclarationPatch(context) {
|
|
@@ -28636,7 +28820,7 @@ function throwIncompatibleTransformationContextError() {
|
|
|
28636
28820
|
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.");
|
|
28637
28821
|
}
|
|
28638
28822
|
|
|
28639
|
-
// bazel-out/
|
|
28823
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/default.mjs
|
|
28640
28824
|
var DefaultImportDeclaration = Symbol("DefaultImportDeclaration");
|
|
28641
28825
|
function attachDefaultImportDeclaration(expr, importDecl) {
|
|
28642
28826
|
expr[DefaultImportDeclaration] = importDecl;
|
|
@@ -28677,13 +28861,13 @@ var DefaultImportTracker = class {
|
|
|
28677
28861
|
}
|
|
28678
28862
|
};
|
|
28679
28863
|
|
|
28680
|
-
// bazel-out/
|
|
28864
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/deferred_symbol_tracker.mjs
|
|
28681
28865
|
var import_typescript13 = __toESM(require("typescript"), 1);
|
|
28682
28866
|
|
|
28683
|
-
// bazel-out/
|
|
28867
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
|
|
28684
28868
|
var import_typescript12 = __toESM(require("typescript"), 1);
|
|
28685
28869
|
|
|
28686
|
-
// bazel-out/
|
|
28870
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/host.mjs
|
|
28687
28871
|
var import_typescript9 = __toESM(require("typescript"), 1);
|
|
28688
28872
|
function isDecoratorIdentifier(exp) {
|
|
28689
28873
|
return import_typescript9.default.isIdentifier(exp) || import_typescript9.default.isPropertyAccessExpression(exp) && import_typescript9.default.isIdentifier(exp.expression) && import_typescript9.default.isIdentifier(exp.name);
|
|
@@ -28706,7 +28890,7 @@ var ClassMemberAccessLevel;
|
|
|
28706
28890
|
})(ClassMemberAccessLevel || (ClassMemberAccessLevel = {}));
|
|
28707
28891
|
var AmbientImport = {};
|
|
28708
28892
|
|
|
28709
|
-
// bazel-out/
|
|
28893
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/type_to_value.mjs
|
|
28710
28894
|
var import_typescript10 = __toESM(require("typescript"), 1);
|
|
28711
28895
|
function typeToValue(typeNode, checker, isLocalCompilation) {
|
|
28712
28896
|
var _a2, _b2;
|
|
@@ -28879,7 +29063,7 @@ function extractModuleName(node) {
|
|
|
28879
29063
|
return node.moduleSpecifier.text;
|
|
28880
29064
|
}
|
|
28881
29065
|
|
|
28882
|
-
// bazel-out/
|
|
29066
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/util.mjs
|
|
28883
29067
|
var import_typescript11 = __toESM(require("typescript"), 1);
|
|
28884
29068
|
function isNamedClassDeclaration(node) {
|
|
28885
29069
|
return import_typescript11.default.isClassDeclaration(node) && isIdentifier(node.name);
|
|
@@ -28903,7 +29087,7 @@ function classMemberAccessLevelToString(level) {
|
|
|
28903
29087
|
}
|
|
28904
29088
|
}
|
|
28905
29089
|
|
|
28906
|
-
// bazel-out/
|
|
29090
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
|
|
28907
29091
|
var TypeScriptReflectionHost = class {
|
|
28908
29092
|
constructor(checker, isLocalCompilation = false) {
|
|
28909
29093
|
this.checker = checker;
|
|
@@ -29390,7 +29574,7 @@ function getExportedName(decl, originalId) {
|
|
|
29390
29574
|
}
|
|
29391
29575
|
var LocalExportedDeclarations = Symbol("LocalExportedDeclarations");
|
|
29392
29576
|
|
|
29393
|
-
// bazel-out/
|
|
29577
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/deferred_symbol_tracker.mjs
|
|
29394
29578
|
var AssumeEager = "AssumeEager";
|
|
29395
29579
|
var DeferredSymbolTracker = class {
|
|
29396
29580
|
constructor(typeChecker, onlyExplicitDeferDependencyImports) {
|
|
@@ -29510,7 +29694,7 @@ var DeferredSymbolTracker = class {
|
|
|
29510
29694
|
}
|
|
29511
29695
|
};
|
|
29512
29696
|
|
|
29513
|
-
// bazel-out/
|
|
29697
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/imported_symbols_tracker.mjs
|
|
29514
29698
|
var import_typescript15 = __toESM(require("typescript"), 1);
|
|
29515
29699
|
var ImportedSymbolsTracker = class {
|
|
29516
29700
|
constructor() {
|
|
@@ -29580,7 +29764,7 @@ var ImportedSymbolsTracker = class {
|
|
|
29580
29764
|
}
|
|
29581
29765
|
};
|
|
29582
29766
|
|
|
29583
|
-
// bazel-out/
|
|
29767
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/local_compilation_extra_imports_tracker.mjs
|
|
29584
29768
|
var import_typescript16 = __toESM(require("typescript"), 1);
|
|
29585
29769
|
var LocalCompilationExtraImportsTracker = class {
|
|
29586
29770
|
constructor(typeChecker) {
|
|
@@ -29624,7 +29808,7 @@ function removeQuotations(s) {
|
|
|
29624
29808
|
return s.substring(1, s.length - 1).trim();
|
|
29625
29809
|
}
|
|
29626
29810
|
|
|
29627
|
-
// bazel-out/
|
|
29811
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/references.mjs
|
|
29628
29812
|
var Reference2 = class {
|
|
29629
29813
|
constructor(node, bestGuessOwningModule = null) {
|
|
29630
29814
|
this.node = node;
|
|
@@ -29693,7 +29877,7 @@ var Reference2 = class {
|
|
|
29693
29877
|
}
|
|
29694
29878
|
};
|
|
29695
29879
|
|
|
29696
|
-
// bazel-out/
|
|
29880
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/resolver.mjs
|
|
29697
29881
|
var ModuleResolver = class {
|
|
29698
29882
|
constructor(program, compilerOptions, host, moduleResolutionCache) {
|
|
29699
29883
|
this.program = program;
|
|
@@ -29710,16 +29894,16 @@ var ModuleResolver = class {
|
|
|
29710
29894
|
}
|
|
29711
29895
|
};
|
|
29712
29896
|
|
|
29713
|
-
// bazel-out/
|
|
29897
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/jit_transforms/downlevel_decorators_transform.mjs
|
|
29714
29898
|
var import_typescript21 = __toESM(require("typescript"), 1);
|
|
29715
29899
|
|
|
29716
|
-
// bazel-out/
|
|
29900
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/jit_transforms/initializer_api_transforms/transform.mjs
|
|
29717
29901
|
var import_typescript70 = __toESM(require("typescript"), 1);
|
|
29718
29902
|
|
|
29719
|
-
// bazel-out/
|
|
29903
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
|
|
29720
29904
|
var import_typescript23 = __toESM(require("typescript"), 1);
|
|
29721
29905
|
|
|
29722
|
-
// bazel-out/
|
|
29906
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
|
|
29723
29907
|
var import_typescript22 = __toESM(require("typescript"), 1);
|
|
29724
29908
|
var CORE_MODULE2 = "@angular/core";
|
|
29725
29909
|
function valueReferenceToExpression(valueRef) {
|
|
@@ -29977,7 +30161,7 @@ function isAbstractClassDeclaration(clazz) {
|
|
|
29977
30161
|
return import_typescript22.default.canHaveModifiers(clazz) && clazz.modifiers !== void 0 ? clazz.modifiers.some((mod) => mod.kind === import_typescript22.default.SyntaxKind.AbstractKeyword) : false;
|
|
29978
30162
|
}
|
|
29979
30163
|
|
|
29980
|
-
// bazel-out/
|
|
30164
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
|
|
29981
30165
|
function getConstructorDependencies(clazz, reflector, isCore) {
|
|
29982
30166
|
const deps = [];
|
|
29983
30167
|
const errors = [];
|
|
@@ -30121,10 +30305,10 @@ function createUnsuitableInjectionTokenError(clazz, error) {
|
|
|
30121
30305
|
return new FatalDiagnosticError(ErrorCode.PARAM_MISSING_TOKEN, param.nameNode, chain2, hints);
|
|
30122
30306
|
}
|
|
30123
30307
|
|
|
30124
|
-
// bazel-out/
|
|
30308
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
|
|
30125
30309
|
var import_typescript46 = __toESM(require("typescript"), 1);
|
|
30126
30310
|
|
|
30127
|
-
// bazel-out/
|
|
30311
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/api.mjs
|
|
30128
30312
|
var MetaKind;
|
|
30129
30313
|
(function(MetaKind2) {
|
|
30130
30314
|
MetaKind2[MetaKind2["Directive"] = 0] = "Directive";
|
|
@@ -30137,10 +30321,10 @@ var MatchSource;
|
|
|
30137
30321
|
MatchSource2[MatchSource2["HostDirective"] = 1] = "HostDirective";
|
|
30138
30322
|
})(MatchSource || (MatchSource = {}));
|
|
30139
30323
|
|
|
30140
|
-
// bazel-out/
|
|
30324
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
30141
30325
|
var import_typescript26 = __toESM(require("typescript"), 1);
|
|
30142
30326
|
|
|
30143
|
-
// bazel-out/
|
|
30327
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/property_mapping.mjs
|
|
30144
30328
|
var ClassPropertyMapping = class {
|
|
30145
30329
|
constructor(forwardMap) {
|
|
30146
30330
|
this.forwardMap = forwardMap;
|
|
@@ -30220,7 +30404,7 @@ function reverseMapFromForwardMap(forwardMap) {
|
|
|
30220
30404
|
return reverseMap;
|
|
30221
30405
|
}
|
|
30222
30406
|
|
|
30223
|
-
// bazel-out/
|
|
30407
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/util.mjs
|
|
30224
30408
|
var import_typescript24 = __toESM(require("typescript"), 1);
|
|
30225
30409
|
function extractReferencesFromType(checker, def, bestGuessOwningModule) {
|
|
30226
30410
|
if (!import_typescript24.default.isTupleTypeNode(def)) {
|
|
@@ -30416,7 +30600,7 @@ function isHostDirectiveMetaForGlobalMode(hostDirectiveMeta) {
|
|
|
30416
30600
|
return hostDirectiveMeta.directive instanceof Reference2;
|
|
30417
30601
|
}
|
|
30418
30602
|
|
|
30419
|
-
// bazel-out/
|
|
30603
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
30420
30604
|
var DtsMetadataReader = class {
|
|
30421
30605
|
constructor(checker, reflector) {
|
|
30422
30606
|
this.checker = checker;
|
|
@@ -30599,7 +30783,7 @@ function readHostDirectivesType(checker, type, bestGuessOwningModule) {
|
|
|
30599
30783
|
return result.length > 0 ? result : null;
|
|
30600
30784
|
}
|
|
30601
30785
|
|
|
30602
|
-
// bazel-out/
|
|
30786
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/inheritance.mjs
|
|
30603
30787
|
function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
30604
30788
|
const topMeta = reader.getDirectiveMetadata(dir);
|
|
30605
30789
|
if (topMeta === null) {
|
|
@@ -30662,7 +30846,7 @@ function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
|
30662
30846
|
});
|
|
30663
30847
|
}
|
|
30664
30848
|
|
|
30665
|
-
// bazel-out/
|
|
30849
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/registry.mjs
|
|
30666
30850
|
var LocalMetadataRegistry = class {
|
|
30667
30851
|
constructor() {
|
|
30668
30852
|
this.directives = /* @__PURE__ */ new Map();
|
|
@@ -30719,7 +30903,7 @@ var CompoundMetadataRegistry = class {
|
|
|
30719
30903
|
}
|
|
30720
30904
|
};
|
|
30721
30905
|
|
|
30722
|
-
// bazel-out/
|
|
30906
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/resource_registry.mjs
|
|
30723
30907
|
var ResourceRegistry = class {
|
|
30724
30908
|
constructor() {
|
|
30725
30909
|
this.externalTemplateToComponentsMap = /* @__PURE__ */ new Map();
|
|
@@ -30784,7 +30968,7 @@ var ResourceRegistry = class {
|
|
|
30784
30968
|
}
|
|
30785
30969
|
};
|
|
30786
30970
|
|
|
30787
|
-
// bazel-out/
|
|
30971
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/providers.mjs
|
|
30788
30972
|
var ExportedProviderStatusResolver = class {
|
|
30789
30973
|
constructor(metaReader) {
|
|
30790
30974
|
this.metaReader = metaReader;
|
|
@@ -30828,7 +31012,7 @@ var ExportedProviderStatusResolver = class {
|
|
|
30828
31012
|
}
|
|
30829
31013
|
};
|
|
30830
31014
|
|
|
30831
|
-
// bazel-out/
|
|
31015
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/host_directives_resolver.mjs
|
|
30832
31016
|
var EMPTY_ARRAY = [];
|
|
30833
31017
|
var HostDirectivesResolver = class {
|
|
30834
31018
|
constructor(metaReader) {
|
|
@@ -30893,10 +31077,10 @@ function resolveOutput(bindingName) {
|
|
|
30893
31077
|
return bindingName;
|
|
30894
31078
|
}
|
|
30895
31079
|
|
|
30896
|
-
// bazel-out/
|
|
31080
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
|
|
30897
31081
|
var import_typescript28 = __toESM(require("typescript"), 1);
|
|
30898
31082
|
|
|
30899
|
-
// bazel-out/
|
|
31083
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/dynamic.mjs
|
|
30900
31084
|
var DynamicValue = class {
|
|
30901
31085
|
constructor(node, reason, code) {
|
|
30902
31086
|
this.node = node;
|
|
@@ -30986,7 +31170,7 @@ var DynamicValue = class {
|
|
|
30986
31170
|
}
|
|
30987
31171
|
};
|
|
30988
31172
|
|
|
30989
|
-
// bazel-out/
|
|
31173
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/result.mjs
|
|
30990
31174
|
var ResolvedModule = class {
|
|
30991
31175
|
constructor(exports, evaluate) {
|
|
30992
31176
|
this.exports = exports;
|
|
@@ -31016,7 +31200,7 @@ var EnumValue = class {
|
|
|
31016
31200
|
var KnownFn = class {
|
|
31017
31201
|
};
|
|
31018
31202
|
|
|
31019
|
-
// bazel-out/
|
|
31203
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
|
|
31020
31204
|
function describeResolvedType(value, maxDepth = 1) {
|
|
31021
31205
|
var _a2, _b2;
|
|
31022
31206
|
if (value === null) {
|
|
@@ -31149,10 +31333,10 @@ function getContainerNode(node) {
|
|
|
31149
31333
|
return node.getSourceFile();
|
|
31150
31334
|
}
|
|
31151
31335
|
|
|
31152
|
-
// bazel-out/
|
|
31336
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
31153
31337
|
var import_typescript29 = __toESM(require("typescript"), 1);
|
|
31154
31338
|
|
|
31155
|
-
// bazel-out/
|
|
31339
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/builtin.mjs
|
|
31156
31340
|
var ArraySliceBuiltinFn = class extends KnownFn {
|
|
31157
31341
|
constructor(lhs) {
|
|
31158
31342
|
super();
|
|
@@ -31204,14 +31388,14 @@ var StringConcatBuiltinFn = class extends KnownFn {
|
|
|
31204
31388
|
}
|
|
31205
31389
|
};
|
|
31206
31390
|
|
|
31207
|
-
// bazel-out/
|
|
31391
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/synthetic.mjs
|
|
31208
31392
|
var SyntheticValue = class {
|
|
31209
31393
|
constructor(value) {
|
|
31210
31394
|
this.value = value;
|
|
31211
31395
|
}
|
|
31212
31396
|
};
|
|
31213
31397
|
|
|
31214
|
-
// bazel-out/
|
|
31398
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
31215
31399
|
function literalBinaryOp(op) {
|
|
31216
31400
|
return { op, literal: true };
|
|
31217
31401
|
}
|
|
@@ -31786,7 +31970,7 @@ function owningModule(context, override = null) {
|
|
|
31786
31970
|
}
|
|
31787
31971
|
}
|
|
31788
31972
|
|
|
31789
|
-
// bazel-out/
|
|
31973
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interface.mjs
|
|
31790
31974
|
var PartialEvaluator = class {
|
|
31791
31975
|
constructor(host, checker, dependencyTracker) {
|
|
31792
31976
|
this.host = host;
|
|
@@ -31806,7 +31990,7 @@ var PartialEvaluator = class {
|
|
|
31806
31990
|
}
|
|
31807
31991
|
};
|
|
31808
31992
|
|
|
31809
|
-
// bazel-out/
|
|
31993
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/api.mjs
|
|
31810
31994
|
var CompilationMode;
|
|
31811
31995
|
(function(CompilationMode2) {
|
|
31812
31996
|
CompilationMode2[CompilationMode2["FULL"] = 0] = "FULL";
|
|
@@ -31820,7 +32004,7 @@ var HandlerPrecedence;
|
|
|
31820
32004
|
HandlerPrecedence2[HandlerPrecedence2["WEAK"] = 2] = "WEAK";
|
|
31821
32005
|
})(HandlerPrecedence || (HandlerPrecedence = {}));
|
|
31822
32006
|
|
|
31823
|
-
// bazel-out/
|
|
32007
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/alias.mjs
|
|
31824
32008
|
var import_typescript31 = __toESM(require("typescript"), 1);
|
|
31825
32009
|
function aliasTransformFactory(exportStatements) {
|
|
31826
32010
|
return () => {
|
|
@@ -31845,10 +32029,10 @@ function aliasTransformFactory(exportStatements) {
|
|
|
31845
32029
|
};
|
|
31846
32030
|
}
|
|
31847
32031
|
|
|
31848
|
-
// bazel-out/
|
|
32032
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
31849
32033
|
var import_typescript32 = __toESM(require("typescript"), 1);
|
|
31850
32034
|
|
|
31851
|
-
// bazel-out/
|
|
32035
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/api.mjs
|
|
31852
32036
|
var PerfPhase;
|
|
31853
32037
|
(function(PerfPhase2) {
|
|
31854
32038
|
PerfPhase2[PerfPhase2["Unaccounted"] = 0] = "Unaccounted";
|
|
@@ -31916,7 +32100,7 @@ var PerfCheckpoint;
|
|
|
31916
32100
|
PerfCheckpoint2[PerfCheckpoint2["LAST"] = 9] = "LAST";
|
|
31917
32101
|
})(PerfCheckpoint || (PerfCheckpoint = {}));
|
|
31918
32102
|
|
|
31919
|
-
// bazel-out/
|
|
32103
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/noop.mjs
|
|
31920
32104
|
var NoopPerfRecorder = class {
|
|
31921
32105
|
eventCount() {
|
|
31922
32106
|
}
|
|
@@ -31933,7 +32117,7 @@ var NoopPerfRecorder = class {
|
|
|
31933
32117
|
};
|
|
31934
32118
|
var NOOP_PERF_RECORDER = new NoopPerfRecorder();
|
|
31935
32119
|
|
|
31936
|
-
// bazel-out/
|
|
32120
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/clock.mjs
|
|
31937
32121
|
function mark() {
|
|
31938
32122
|
return process.hrtime();
|
|
31939
32123
|
}
|
|
@@ -31942,7 +32126,7 @@ function timeSinceInMicros(mark2) {
|
|
|
31942
32126
|
return delta[0] * 1e6 + Math.floor(delta[1] / 1e3);
|
|
31943
32127
|
}
|
|
31944
32128
|
|
|
31945
|
-
// bazel-out/
|
|
32129
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/perf/src/recorder.mjs
|
|
31946
32130
|
var ActivePerfRecorder = class {
|
|
31947
32131
|
static zeroedToNow() {
|
|
31948
32132
|
return new ActivePerfRecorder(mark());
|
|
@@ -32036,7 +32220,7 @@ var DelegatingPerfRecorder = class {
|
|
|
32036
32220
|
}
|
|
32037
32221
|
};
|
|
32038
32222
|
|
|
32039
|
-
// bazel-out/
|
|
32223
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/trait.mjs
|
|
32040
32224
|
var TraitState;
|
|
32041
32225
|
(function(TraitState2) {
|
|
32042
32226
|
TraitState2[TraitState2["Pending"] = 0] = "Pending";
|
|
@@ -32093,7 +32277,7 @@ var TraitImpl = class {
|
|
|
32093
32277
|
}
|
|
32094
32278
|
};
|
|
32095
32279
|
|
|
32096
|
-
// bazel-out/
|
|
32280
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
32097
32281
|
var TraitCompiler = class {
|
|
32098
32282
|
constructor(handlers, reflector, perf, incrementalBuild, compileNonExportedClasses, compilationMode, dtsTransforms, semanticDepGraphUpdater, sourceFileTypeIdentifier) {
|
|
32099
32283
|
this.handlers = handlers;
|
|
@@ -32552,10 +32736,10 @@ function containsErrors(diagnostics) {
|
|
|
32552
32736
|
return diagnostics !== null && diagnostics.some((diag) => diag.category === import_typescript32.default.DiagnosticCategory.Error);
|
|
32553
32737
|
}
|
|
32554
32738
|
|
|
32555
|
-
// bazel-out/
|
|
32739
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
|
|
32556
32740
|
var import_typescript43 = __toESM(require("typescript"), 1);
|
|
32557
32741
|
|
|
32558
|
-
// bazel-out/
|
|
32742
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/context.mjs
|
|
32559
32743
|
var Context = class {
|
|
32560
32744
|
constructor(isStatement) {
|
|
32561
32745
|
this.isStatement = isStatement;
|
|
@@ -32568,10 +32752,10 @@ var Context = class {
|
|
|
32568
32752
|
}
|
|
32569
32753
|
};
|
|
32570
32754
|
|
|
32571
|
-
// bazel-out/
|
|
32755
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_manager.mjs
|
|
32572
32756
|
var import_typescript38 = __toESM(require("typescript"), 1);
|
|
32573
32757
|
|
|
32574
|
-
// bazel-out/
|
|
32758
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/check_unique_identifier_name.mjs
|
|
32575
32759
|
var import_typescript34 = __toESM(require("typescript"), 1);
|
|
32576
32760
|
function createGenerateUniqueIdentifierHelper() {
|
|
32577
32761
|
const generatedIdentifiers = /* @__PURE__ */ new Set();
|
|
@@ -32595,7 +32779,7 @@ function createGenerateUniqueIdentifierHelper() {
|
|
|
32595
32779
|
};
|
|
32596
32780
|
}
|
|
32597
32781
|
|
|
32598
|
-
// bazel-out/
|
|
32782
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_typescript_transform.mjs
|
|
32599
32783
|
var import_typescript35 = __toESM(require("typescript"), 1);
|
|
32600
32784
|
function createTsTransformForImportManager(manager, extraStatementsForFiles) {
|
|
32601
32785
|
return (ctx) => {
|
|
@@ -32656,7 +32840,7 @@ function isImportStatement(stmt) {
|
|
|
32656
32840
|
return import_typescript35.default.isImportDeclaration(stmt) || import_typescript35.default.isImportEqualsDeclaration(stmt) || import_typescript35.default.isNamespaceImport(stmt);
|
|
32657
32841
|
}
|
|
32658
32842
|
|
|
32659
|
-
// bazel-out/
|
|
32843
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/reuse_generated_imports.mjs
|
|
32660
32844
|
var import_typescript36 = __toESM(require("typescript"), 1);
|
|
32661
32845
|
function attemptToReuseGeneratedImports(tracker, request) {
|
|
32662
32846
|
const requestHash = hashImportRequest(request);
|
|
@@ -32683,7 +32867,7 @@ function hashImportRequest(req) {
|
|
|
32683
32867
|
return `${req.requestedFile.fileName}:${req.exportModuleSpecifier}:${req.exportSymbolName}`;
|
|
32684
32868
|
}
|
|
32685
32869
|
|
|
32686
|
-
// bazel-out/
|
|
32870
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/reuse_source_file_imports.mjs
|
|
32687
32871
|
var import_typescript37 = __toESM(require("typescript"), 1);
|
|
32688
32872
|
function attemptToReuseExistingSourceFileImports(tracker, sourceFile, request) {
|
|
32689
32873
|
let candidateImportToBeUpdated = null;
|
|
@@ -32736,7 +32920,7 @@ function attemptToReuseExistingSourceFileImports(tracker, sourceFile, request) {
|
|
|
32736
32920
|
return fileUniqueAlias != null ? fileUniqueAlias : propertyName;
|
|
32737
32921
|
}
|
|
32738
32922
|
|
|
32739
|
-
// bazel-out/
|
|
32923
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_manager.mjs
|
|
32740
32924
|
var presetImportManagerForceNamespaceImports = {
|
|
32741
32925
|
disableOriginalSourceFileReuse: true,
|
|
32742
32926
|
forceGenerateNamespacesForNewImports: true
|
|
@@ -32885,7 +33069,7 @@ function createImportReference(asTypeReference, ref) {
|
|
|
32885
33069
|
}
|
|
32886
33070
|
}
|
|
32887
33071
|
|
|
32888
|
-
// bazel-out/
|
|
33072
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/translator.mjs
|
|
32889
33073
|
var UNARY_OPERATORS2 = /* @__PURE__ */ new Map([
|
|
32890
33074
|
[UnaryOperator.Minus, "-"],
|
|
32891
33075
|
[UnaryOperator.Plus, "+"]
|
|
@@ -33130,7 +33314,7 @@ function createRange(span) {
|
|
|
33130
33314
|
};
|
|
33131
33315
|
}
|
|
33132
33316
|
|
|
33133
|
-
// bazel-out/
|
|
33317
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_emitter.mjs
|
|
33134
33318
|
var import_typescript39 = __toESM(require("typescript"), 1);
|
|
33135
33319
|
var INELIGIBLE = {};
|
|
33136
33320
|
function canEmitType(type, canEmit) {
|
|
@@ -33205,10 +33389,10 @@ var TypeEmitter = class {
|
|
|
33205
33389
|
}
|
|
33206
33390
|
};
|
|
33207
33391
|
|
|
33208
|
-
// bazel-out/
|
|
33392
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
|
|
33209
33393
|
var import_typescript41 = __toESM(require("typescript"), 1);
|
|
33210
33394
|
|
|
33211
|
-
// bazel-out/
|
|
33395
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/ts_util.mjs
|
|
33212
33396
|
var import_typescript40 = __toESM(require("typescript"), 1);
|
|
33213
33397
|
function tsNumericExpression(value) {
|
|
33214
33398
|
if (value < 0) {
|
|
@@ -33218,7 +33402,7 @@ function tsNumericExpression(value) {
|
|
|
33218
33402
|
return import_typescript40.default.factory.createNumericLiteral(value);
|
|
33219
33403
|
}
|
|
33220
33404
|
|
|
33221
|
-
// bazel-out/
|
|
33405
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
|
|
33222
33406
|
function translateType(type, contextFile, reflector, refEmitter, imports) {
|
|
33223
33407
|
return type.visitType(new TypeTranslatorVisitor(imports, contextFile, reflector, refEmitter), new Context(false));
|
|
33224
33408
|
}
|
|
@@ -33435,7 +33619,7 @@ var TypeTranslatorVisitor = class {
|
|
|
33435
33619
|
}
|
|
33436
33620
|
};
|
|
33437
33621
|
|
|
33438
|
-
// bazel-out/
|
|
33622
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_ast_factory.mjs
|
|
33439
33623
|
var import_typescript42 = __toESM(require("typescript"), 1);
|
|
33440
33624
|
var PureAnnotation;
|
|
33441
33625
|
(function(PureAnnotation2) {
|
|
@@ -33638,7 +33822,7 @@ function attachComments(statement, leadingComments) {
|
|
|
33638
33822
|
}
|
|
33639
33823
|
}
|
|
33640
33824
|
|
|
33641
|
-
// bazel-out/
|
|
33825
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_translator.mjs
|
|
33642
33826
|
function translateExpression(contextFile, expression, imports, options = {}) {
|
|
33643
33827
|
return expression.visitExpression(new ExpressionTranslatorVisitor(new TypeScriptAstFactory(options.annotateForClosureCompiler === true), imports, contextFile, options), new Context(false));
|
|
33644
33828
|
}
|
|
@@ -33646,7 +33830,7 @@ function translateStatement(contextFile, statement, imports, options = {}) {
|
|
|
33646
33830
|
return statement.visitStatement(new ExpressionTranslatorVisitor(new TypeScriptAstFactory(options.annotateForClosureCompiler === true), imports, contextFile, options), new Context(true));
|
|
33647
33831
|
}
|
|
33648
33832
|
|
|
33649
|
-
// bazel-out/
|
|
33833
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
|
|
33650
33834
|
var DtsTransformRegistry = class {
|
|
33651
33835
|
constructor() {
|
|
33652
33836
|
this.ivyDeclarationTransforms = /* @__PURE__ */ new Map();
|
|
@@ -33794,10 +33978,10 @@ function markForEmitAsSingleLine(node) {
|
|
|
33794
33978
|
import_typescript43.default.forEachChild(node, markForEmitAsSingleLine);
|
|
33795
33979
|
}
|
|
33796
33980
|
|
|
33797
|
-
// bazel-out/
|
|
33981
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
33798
33982
|
var import_typescript45 = __toESM(require("typescript"), 1);
|
|
33799
33983
|
|
|
33800
|
-
// bazel-out/
|
|
33984
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/visitor.mjs
|
|
33801
33985
|
var import_typescript44 = __toESM(require("typescript"), 1);
|
|
33802
33986
|
function visit(node, visitor, context) {
|
|
33803
33987
|
return visitor._visit(node, context);
|
|
@@ -33858,7 +34042,7 @@ var Visitor = class {
|
|
|
33858
34042
|
}
|
|
33859
34043
|
};
|
|
33860
34044
|
|
|
33861
|
-
// bazel-out/
|
|
34045
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
33862
34046
|
var NO_DECORATORS = /* @__PURE__ */ new Set();
|
|
33863
34047
|
var CLOSURE_FILE_OVERVIEW_REGEXP = /\s+@fileoverview\s+/i;
|
|
33864
34048
|
function ivyTransformFactory(compilation, reflector, importRewriter, defaultImportTracker, localCompilationExtraImportsTracker, perf, isCore, isClosureCompilerEnabled) {
|
|
@@ -34093,7 +34277,7 @@ function nodeArrayFromDecoratorsArray(decorators) {
|
|
|
34093
34277
|
return array;
|
|
34094
34278
|
}
|
|
34095
34279
|
|
|
34096
|
-
// bazel-out/
|
|
34280
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
|
|
34097
34281
|
function makeDuplicateDeclarationError(node, data, kind) {
|
|
34098
34282
|
const context = [];
|
|
34099
34283
|
for (const decl of data) {
|
|
@@ -34302,7 +34486,7 @@ function assertLocalCompilationUnresolvedConst(compilationMode, value, nodeToHig
|
|
|
34302
34486
|
}
|
|
34303
34487
|
}
|
|
34304
34488
|
|
|
34305
|
-
// bazel-out/
|
|
34489
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/evaluation.mjs
|
|
34306
34490
|
var import_typescript48 = __toESM(require("typescript"), 1);
|
|
34307
34491
|
function resolveEnumValue(evaluator, metadata, field, enumSymbolName) {
|
|
34308
34492
|
let resolved = null;
|
|
@@ -34352,7 +34536,7 @@ function resolveLiteral(decorator, literalCache) {
|
|
|
34352
34536
|
return meta;
|
|
34353
34537
|
}
|
|
34354
34538
|
|
|
34355
|
-
// bazel-out/
|
|
34539
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/factory.mjs
|
|
34356
34540
|
function compileNgFactoryDefField(metadata) {
|
|
34357
34541
|
const res = compileFactoryFunction(metadata);
|
|
34358
34542
|
return {
|
|
@@ -34374,7 +34558,7 @@ function compileDeclareFactory(metadata) {
|
|
|
34374
34558
|
};
|
|
34375
34559
|
}
|
|
34376
34560
|
|
|
34377
|
-
// bazel-out/
|
|
34561
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/injectable_registry.mjs
|
|
34378
34562
|
var InjectableClassRegistry = class {
|
|
34379
34563
|
constructor(host, isCore) {
|
|
34380
34564
|
this.host = host;
|
|
@@ -34400,7 +34584,7 @@ var InjectableClassRegistry = class {
|
|
|
34400
34584
|
}
|
|
34401
34585
|
};
|
|
34402
34586
|
|
|
34403
|
-
// bazel-out/
|
|
34587
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/metadata.mjs
|
|
34404
34588
|
var import_typescript49 = __toESM(require("typescript"), 1);
|
|
34405
34589
|
function extractClassMetadata(clazz, reflection, isCore, annotateForClosureCompiler, angularDecoratorTransform = (dec) => dec) {
|
|
34406
34590
|
if (!reflection.isClass(clazz)) {
|
|
@@ -34486,7 +34670,7 @@ function removeIdentifierReferences(node, names) {
|
|
|
34486
34670
|
return result.transformed[0];
|
|
34487
34671
|
}
|
|
34488
34672
|
|
|
34489
|
-
// bazel-out/
|
|
34673
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/debug_info.mjs
|
|
34490
34674
|
var path = __toESM(require("path"), 1);
|
|
34491
34675
|
function extractClassDebugInfo(clazz, reflection, rootDirs, forbidOrphanRendering) {
|
|
34492
34676
|
if (!reflection.isClass(clazz)) {
|
|
@@ -34512,13 +34696,13 @@ function computeRelativePathIfPossible(filePath, rootDirs) {
|
|
|
34512
34696
|
return null;
|
|
34513
34697
|
}
|
|
34514
34698
|
|
|
34515
|
-
// bazel-out/
|
|
34699
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/references_registry.mjs
|
|
34516
34700
|
var NoopReferencesRegistry = class {
|
|
34517
34701
|
add(source, ...references) {
|
|
34518
34702
|
}
|
|
34519
34703
|
};
|
|
34520
34704
|
|
|
34521
|
-
// bazel-out/
|
|
34705
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/schema.mjs
|
|
34522
34706
|
function extractSchemas(rawExpr, evaluator, context) {
|
|
34523
34707
|
const schemas = [];
|
|
34524
34708
|
const result = evaluator.evaluate(rawExpr);
|
|
@@ -34547,7 +34731,7 @@ function extractSchemas(rawExpr, evaluator, context) {
|
|
|
34547
34731
|
return schemas;
|
|
34548
34732
|
}
|
|
34549
34733
|
|
|
34550
|
-
// bazel-out/
|
|
34734
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/input_transforms.mjs
|
|
34551
34735
|
function compileInputTransformFields(inputs) {
|
|
34552
34736
|
const extraFields = [];
|
|
34553
34737
|
for (const input of inputs) {
|
|
@@ -34564,10 +34748,10 @@ function compileInputTransformFields(inputs) {
|
|
|
34564
34748
|
return extraFields;
|
|
34565
34749
|
}
|
|
34566
34750
|
|
|
34567
|
-
// bazel-out/
|
|
34751
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
34568
34752
|
var import_typescript63 = __toESM(require("typescript"), 1);
|
|
34569
34753
|
|
|
34570
|
-
// bazel-out/
|
|
34754
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.mjs
|
|
34571
34755
|
var import_typescript50 = __toESM(require("typescript"), 1);
|
|
34572
34756
|
var SemanticSymbol = class {
|
|
34573
34757
|
constructor(decl) {
|
|
@@ -34583,7 +34767,7 @@ function getSymbolIdentifier(decl) {
|
|
|
34583
34767
|
return decl.name.text;
|
|
34584
34768
|
}
|
|
34585
34769
|
|
|
34586
|
-
// bazel-out/
|
|
34770
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.mjs
|
|
34587
34771
|
var OpaqueSymbol = class extends SemanticSymbol {
|
|
34588
34772
|
isPublicApiAffected() {
|
|
34589
34773
|
return false;
|
|
@@ -34725,10 +34909,10 @@ function getImportPath(expr) {
|
|
|
34725
34909
|
}
|
|
34726
34910
|
}
|
|
34727
34911
|
|
|
34728
|
-
// bazel-out/
|
|
34912
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
34729
34913
|
var import_typescript51 = __toESM(require("typescript"), 1);
|
|
34730
34914
|
|
|
34731
|
-
// bazel-out/
|
|
34915
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/util.mjs
|
|
34732
34916
|
function isSymbolEqual(a, b) {
|
|
34733
34917
|
if (a.decl === b.decl) {
|
|
34734
34918
|
return true;
|
|
@@ -34778,7 +34962,7 @@ function isSetEqual(a, b, equalityTester = referenceEquality) {
|
|
|
34778
34962
|
return true;
|
|
34779
34963
|
}
|
|
34780
34964
|
|
|
34781
|
-
// bazel-out/
|
|
34965
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
34782
34966
|
function extractSemanticTypeParameters(node) {
|
|
34783
34967
|
if (!import_typescript51.default.isClassDeclaration(node) || node.typeParameters === void 0) {
|
|
34784
34968
|
return null;
|
|
@@ -34800,14 +34984,14 @@ function isTypeParameterEqual(a, b) {
|
|
|
34800
34984
|
return a.hasGenericTypeBound === b.hasGenericTypeBound;
|
|
34801
34985
|
}
|
|
34802
34986
|
|
|
34803
|
-
// bazel-out/
|
|
34987
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/api.mjs
|
|
34804
34988
|
var ComponentScopeKind;
|
|
34805
34989
|
(function(ComponentScopeKind2) {
|
|
34806
34990
|
ComponentScopeKind2[ComponentScopeKind2["NgModule"] = 0] = "NgModule";
|
|
34807
34991
|
ComponentScopeKind2[ComponentScopeKind2["Standalone"] = 1] = "Standalone";
|
|
34808
34992
|
})(ComponentScopeKind || (ComponentScopeKind = {}));
|
|
34809
34993
|
|
|
34810
|
-
// bazel-out/
|
|
34994
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/component_scope.mjs
|
|
34811
34995
|
var CompoundComponentScopeReader = class {
|
|
34812
34996
|
constructor(readers) {
|
|
34813
34997
|
this.readers = readers;
|
|
@@ -34832,7 +35016,7 @@ var CompoundComponentScopeReader = class {
|
|
|
34832
35016
|
}
|
|
34833
35017
|
};
|
|
34834
35018
|
|
|
34835
|
-
// bazel-out/
|
|
35019
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/dependency.mjs
|
|
34836
35020
|
var MetadataDtsModuleScopeResolver = class {
|
|
34837
35021
|
constructor(dtsMetaReader, aliasingHost) {
|
|
34838
35022
|
this.dtsMetaReader = dtsMetaReader;
|
|
@@ -34907,10 +35091,10 @@ var MetadataDtsModuleScopeResolver = class {
|
|
|
34907
35091
|
}
|
|
34908
35092
|
};
|
|
34909
35093
|
|
|
34910
|
-
// bazel-out/
|
|
35094
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
|
|
34911
35095
|
var import_typescript52 = __toESM(require("typescript"), 1);
|
|
34912
35096
|
|
|
34913
|
-
// bazel-out/
|
|
35097
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/util.mjs
|
|
34914
35098
|
function getDiagnosticNode(ref, rawExpr) {
|
|
34915
35099
|
return rawExpr !== null ? ref.getOriginForDiagnostics(rawExpr) : ref.node.name;
|
|
34916
35100
|
}
|
|
@@ -34936,7 +35120,7 @@ function makeUnknownComponentDeferredImportDiagnostic(ref, rawExpr) {
|
|
|
34936
35120
|
return makeDiagnostic(ErrorCode.COMPONENT_UNKNOWN_DEFERRED_IMPORT, getDiagnosticNode(ref, rawExpr), `Component deferred imports must be standalone components, directives or pipes.`);
|
|
34937
35121
|
}
|
|
34938
35122
|
|
|
34939
|
-
// bazel-out/
|
|
35123
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
|
|
34940
35124
|
var LocalModuleScopeRegistry = class {
|
|
34941
35125
|
constructor(localReader, fullReader, dependencyScopeReader, refEmitter, aliasingHost) {
|
|
34942
35126
|
this.localReader = localReader;
|
|
@@ -35277,7 +35461,7 @@ function reexportCollision(module2, refA, refB) {
|
|
|
35277
35461
|
]);
|
|
35278
35462
|
}
|
|
35279
35463
|
|
|
35280
|
-
// bazel-out/
|
|
35464
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/typecheck.mjs
|
|
35281
35465
|
var import_typescript54 = __toESM(require("typescript"), 1);
|
|
35282
35466
|
var TypeCheckScopeRegistry = class {
|
|
35283
35467
|
constructor(scopeReader, metaReader, hostDirectivesResolver) {
|
|
@@ -35357,10 +35541,10 @@ var TypeCheckScopeRegistry = class {
|
|
|
35357
35541
|
}
|
|
35358
35542
|
};
|
|
35359
35543
|
|
|
35360
|
-
// bazel-out/
|
|
35544
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
|
|
35361
35545
|
var import_typescript58 = __toESM(require("typescript"), 1);
|
|
35362
35546
|
|
|
35363
|
-
// bazel-out/
|
|
35547
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/initializer_function_access.mjs
|
|
35364
35548
|
function validateAccessOfInitializerApiMember({ api, call: call2 }, member) {
|
|
35365
35549
|
if (!api.allowedAccessLevels.includes(member.accessLevel)) {
|
|
35366
35550
|
throw new FatalDiagnosticError(ErrorCode.INITIALIZER_API_DISALLOWED_MEMBER_VISIBILITY, call2, makeDiagnosticChain(`Cannot use "${api.functionName}" on a class member that is declared as ${classMemberAccessLevelToString(member.accessLevel)}.`, [
|
|
@@ -35369,7 +35553,7 @@ function validateAccessOfInitializerApiMember({ api, call: call2 }, member) {
|
|
|
35369
35553
|
}
|
|
35370
35554
|
}
|
|
35371
35555
|
|
|
35372
|
-
// bazel-out/
|
|
35556
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/initializer_functions.mjs
|
|
35373
35557
|
var import_typescript55 = __toESM(require("typescript"), 1);
|
|
35374
35558
|
function tryParseInitializerApi(functions, expression, reflector, importTracker) {
|
|
35375
35559
|
if (!import_typescript55.default.isCallExpression(expression)) {
|
|
@@ -35438,7 +35622,7 @@ function parseTopLevelCallFromNamespace(call2, functions, importTracker) {
|
|
|
35438
35622
|
return { api: matchingApi, apiReference, isRequired };
|
|
35439
35623
|
}
|
|
35440
35624
|
|
|
35441
|
-
// bazel-out/
|
|
35625
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/input_output_parse_options.mjs
|
|
35442
35626
|
var import_typescript56 = __toESM(require("typescript"), 1);
|
|
35443
35627
|
function parseAndValidateInputAndOutputOptions(optionsNode) {
|
|
35444
35628
|
if (!import_typescript56.default.isObjectLiteralExpression(optionsNode)) {
|
|
@@ -35456,7 +35640,7 @@ function parseAndValidateInputAndOutputOptions(optionsNode) {
|
|
|
35456
35640
|
return { alias };
|
|
35457
35641
|
}
|
|
35458
35642
|
|
|
35459
|
-
// bazel-out/
|
|
35643
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/input_function.mjs
|
|
35460
35644
|
var INPUT_INITIALIZER_FN = {
|
|
35461
35645
|
functionName: "input",
|
|
35462
35646
|
owningModule: "@angular/core",
|
|
@@ -35488,7 +35672,7 @@ function tryParseSignalInputMapping(member, reflector, importTracker) {
|
|
|
35488
35672
|
};
|
|
35489
35673
|
}
|
|
35490
35674
|
|
|
35491
|
-
// bazel-out/
|
|
35675
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/model_function.mjs
|
|
35492
35676
|
var MODEL_INITIALIZER_FN = {
|
|
35493
35677
|
functionName: "model",
|
|
35494
35678
|
owningModule: "@angular/core",
|
|
@@ -35529,7 +35713,7 @@ function tryParseSignalModelMapping(member, reflector, importTracker) {
|
|
|
35529
35713
|
};
|
|
35530
35714
|
}
|
|
35531
35715
|
|
|
35532
|
-
// bazel-out/
|
|
35716
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/output_function.mjs
|
|
35533
35717
|
var allowedAccessLevels = [
|
|
35534
35718
|
ClassMemberAccessLevel.PublicWritable,
|
|
35535
35719
|
ClassMemberAccessLevel.PublicReadonly,
|
|
@@ -35573,7 +35757,7 @@ function tryParseInitializerBasedOutput(member, reflector, importTracker) {
|
|
|
35573
35757
|
};
|
|
35574
35758
|
}
|
|
35575
35759
|
|
|
35576
|
-
// bazel-out/
|
|
35760
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/query_functions.mjs
|
|
35577
35761
|
var import_typescript57 = __toESM(require("typescript"), 1);
|
|
35578
35762
|
var queryFunctionNames = [
|
|
35579
35763
|
"viewChild",
|
|
@@ -35657,7 +35841,7 @@ function parseDescendantsOption(value) {
|
|
|
35657
35841
|
throw new FatalDiagnosticError(ErrorCode.VALUE_HAS_WRONG_TYPE, value, `Expected "descendants" option to be a boolean literal.`);
|
|
35658
35842
|
}
|
|
35659
35843
|
|
|
35660
|
-
// bazel-out/
|
|
35844
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
|
|
35661
35845
|
var EMPTY_OBJECT = {};
|
|
35662
35846
|
var queryDecoratorNames = [
|
|
35663
35847
|
"ViewChild",
|
|
@@ -36455,7 +36639,7 @@ function toR3InputMetadata(mapping) {
|
|
|
36455
36639
|
};
|
|
36456
36640
|
}
|
|
36457
36641
|
|
|
36458
|
-
// bazel-out/
|
|
36642
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/symbol.mjs
|
|
36459
36643
|
var DirectiveSymbol = class extends SemanticSymbol {
|
|
36460
36644
|
constructor(decl, selector, inputs, outputs, exportAs, typeCheckMeta, typeParameters) {
|
|
36461
36645
|
super(decl);
|
|
@@ -36535,7 +36719,7 @@ function isBaseClassEqual(current, previous) {
|
|
|
36535
36719
|
return isSymbolEqual(current, previous);
|
|
36536
36720
|
}
|
|
36537
36721
|
|
|
36538
|
-
// bazel-out/
|
|
36722
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
|
|
36539
36723
|
var FIELD_DECORATORS = [
|
|
36540
36724
|
"Input",
|
|
36541
36725
|
"Output",
|
|
@@ -36728,10 +36912,10 @@ var DirectiveDecoratorHandler = class {
|
|
|
36728
36912
|
}
|
|
36729
36913
|
};
|
|
36730
36914
|
|
|
36731
|
-
// bazel-out/
|
|
36915
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
36732
36916
|
var import_typescript60 = __toESM(require("typescript"), 1);
|
|
36733
36917
|
|
|
36734
|
-
// bazel-out/
|
|
36918
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/module_with_providers.mjs
|
|
36735
36919
|
var import_typescript59 = __toESM(require("typescript"), 1);
|
|
36736
36920
|
function createModuleWithProvidersResolver(reflector, isCore) {
|
|
36737
36921
|
function _reflectModuleFromTypeParam(type, node) {
|
|
@@ -36803,7 +36987,7 @@ function isResolvedModuleWithProviders(sv) {
|
|
|
36803
36987
|
return typeof sv.value === "object" && sv.value != null && sv.value.hasOwnProperty("ngModule") && sv.value.hasOwnProperty("mwpCall");
|
|
36804
36988
|
}
|
|
36805
36989
|
|
|
36806
|
-
// bazel-out/
|
|
36990
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
36807
36991
|
var NgModuleSymbol = class extends SemanticSymbol {
|
|
36808
36992
|
constructor(decl, hasProviders) {
|
|
36809
36993
|
super(decl);
|
|
@@ -37416,7 +37600,7 @@ function isSyntheticReference(ref) {
|
|
|
37416
37600
|
return ref.synthetic;
|
|
37417
37601
|
}
|
|
37418
37602
|
|
|
37419
|
-
// bazel-out/
|
|
37603
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/diagnostics.mjs
|
|
37420
37604
|
function makeCyclicImportInfo(ref, type, cycle) {
|
|
37421
37605
|
const name = ref.debugName || "(unknown)";
|
|
37422
37606
|
const path4 = cycle.getPath().map((sf) => sf.fileName).join(" -> ");
|
|
@@ -37439,7 +37623,7 @@ function checkCustomElementSelectorForErrors(selector) {
|
|
|
37439
37623
|
return null;
|
|
37440
37624
|
}
|
|
37441
37625
|
|
|
37442
|
-
// bazel-out/
|
|
37626
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/resources.mjs
|
|
37443
37627
|
var import_typescript62 = __toESM(require("typescript"), 1);
|
|
37444
37628
|
function getTemplateDeclarationNodeForError(declaration) {
|
|
37445
37629
|
return declaration.isInline ? declaration.expression : declaration.templateUrlExpression;
|
|
@@ -37510,28 +37694,24 @@ function extractTemplate(node, template2, evaluator, depTracker, resourceLoader,
|
|
|
37510
37694
|
}
|
|
37511
37695
|
function parseExtractedTemplate(template2, sourceStr, sourceParseRange, escapedString, sourceMapUrl, options) {
|
|
37512
37696
|
const i18nNormalizeLineEndingsInICUs = escapedString || options.i18nNormalizeLineEndingsInICUs;
|
|
37513
|
-
const
|
|
37514
|
-
preserveWhitespaces: template2.preserveWhitespaces,
|
|
37697
|
+
const commonParseOptions = {
|
|
37515
37698
|
interpolationConfig: template2.interpolationConfig,
|
|
37516
37699
|
range: sourceParseRange != null ? sourceParseRange : void 0,
|
|
37517
|
-
escapedString,
|
|
37518
37700
|
enableI18nLegacyMessageIdFormat: options.enableI18nLegacyMessageIdFormat,
|
|
37519
37701
|
i18nNormalizeLineEndingsInICUs,
|
|
37520
37702
|
alwaysAttemptHtmlToR3AstConversion: options.usePoisonedData,
|
|
37521
|
-
|
|
37522
|
-
|
|
37523
|
-
|
|
37703
|
+
escapedString,
|
|
37704
|
+
enableBlockSyntax: options.enableBlockSyntax,
|
|
37705
|
+
enableLetSyntax: options.enableLetSyntax
|
|
37706
|
+
};
|
|
37707
|
+
const parsedTemplate = parseTemplate(sourceStr, sourceMapUrl != null ? sourceMapUrl : "", __spreadProps(__spreadValues({}, commonParseOptions), {
|
|
37708
|
+
preserveWhitespaces: template2.preserveWhitespaces
|
|
37709
|
+
}));
|
|
37710
|
+
const { nodes: diagNodes } = parseTemplate(sourceStr, sourceMapUrl != null ? sourceMapUrl : "", __spreadProps(__spreadValues({}, commonParseOptions), {
|
|
37524
37711
|
preserveWhitespaces: true,
|
|
37525
37712
|
preserveLineEndings: true,
|
|
37526
|
-
|
|
37527
|
-
|
|
37528
|
-
escapedString,
|
|
37529
|
-
enableI18nLegacyMessageIdFormat: options.enableI18nLegacyMessageIdFormat,
|
|
37530
|
-
i18nNormalizeLineEndingsInICUs,
|
|
37531
|
-
leadingTriviaChars: [],
|
|
37532
|
-
alwaysAttemptHtmlToR3AstConversion: options.usePoisonedData,
|
|
37533
|
-
enableBlockSyntax: options.enableBlockSyntax
|
|
37534
|
-
});
|
|
37713
|
+
leadingTriviaChars: []
|
|
37714
|
+
}));
|
|
37535
37715
|
return __spreadProps(__spreadValues({}, parsedTemplate), {
|
|
37536
37716
|
diagNodes,
|
|
37537
37717
|
file: new ParseSourceFile(sourceStr, sourceMapUrl != null ? sourceMapUrl : "")
|
|
@@ -37795,7 +37975,7 @@ function _extractTemplateStyleUrls(template2) {
|
|
|
37795
37975
|
}));
|
|
37796
37976
|
}
|
|
37797
37977
|
|
|
37798
|
-
// bazel-out/
|
|
37978
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/symbol.mjs
|
|
37799
37979
|
var ComponentSymbol = class extends DirectiveSymbol {
|
|
37800
37980
|
constructor() {
|
|
37801
37981
|
super(...arguments);
|
|
@@ -37830,7 +38010,7 @@ var ComponentSymbol = class extends DirectiveSymbol {
|
|
|
37830
38010
|
}
|
|
37831
38011
|
};
|
|
37832
38012
|
|
|
37833
|
-
// bazel-out/
|
|
38013
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/util.mjs
|
|
37834
38014
|
function collectAnimationNames(value, animationTriggerNames) {
|
|
37835
38015
|
if (value instanceof Map) {
|
|
37836
38016
|
const name = value.get("name");
|
|
@@ -37907,12 +38087,12 @@ function isLikelyModuleWithProviders(value) {
|
|
|
37907
38087
|
return false;
|
|
37908
38088
|
}
|
|
37909
38089
|
|
|
37910
|
-
// bazel-out/
|
|
38090
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
37911
38091
|
var EMPTY_ARRAY2 = [];
|
|
37912
38092
|
var isUsedDirective = (decl) => decl.kind === R3TemplateDependencyKind.Directive;
|
|
37913
38093
|
var isUsedPipe = (decl) => decl.kind === R3TemplateDependencyKind.Pipe;
|
|
37914
38094
|
var ComponentDecoratorHandler = class {
|
|
37915
|
-
constructor(reflector, evaluator, metaRegistry, metaReader, scopeReader, dtsScopeReader, scopeRegistry, typeCheckScopeRegistry, resourceRegistry, isCore, strictCtorDeps, resourceLoader, rootDirs, defaultPreserveWhitespaces, i18nUseExternalIds, enableI18nLegacyMessageIdFormat, usePoisonedData, i18nNormalizeLineEndingsInICUs, moduleResolver, cycleAnalyzer, cycleHandlingStrategy, refEmitter, referencesRegistry, depTracker, injectableRegistry, semanticDepGraphUpdater, annotateForClosureCompiler, perf, hostDirectivesResolver, importTracker, includeClassMetadata, compilationMode, deferredSymbolTracker, forbidOrphanRendering, enableBlockSyntax, localCompilationExtraImportsTracker) {
|
|
38095
|
+
constructor(reflector, evaluator, metaRegistry, metaReader, scopeReader, dtsScopeReader, scopeRegistry, typeCheckScopeRegistry, resourceRegistry, isCore, strictCtorDeps, resourceLoader, rootDirs, defaultPreserveWhitespaces, i18nUseExternalIds, enableI18nLegacyMessageIdFormat, usePoisonedData, i18nNormalizeLineEndingsInICUs, moduleResolver, cycleAnalyzer, cycleHandlingStrategy, refEmitter, referencesRegistry, depTracker, injectableRegistry, semanticDepGraphUpdater, annotateForClosureCompiler, perf, hostDirectivesResolver, importTracker, includeClassMetadata, compilationMode, deferredSymbolTracker, forbidOrphanRendering, enableBlockSyntax, enableLetSyntax, localCompilationExtraImportsTracker) {
|
|
37916
38096
|
this.reflector = reflector;
|
|
37917
38097
|
this.evaluator = evaluator;
|
|
37918
38098
|
this.metaRegistry = metaRegistry;
|
|
@@ -37948,6 +38128,7 @@ var ComponentDecoratorHandler = class {
|
|
|
37948
38128
|
this.deferredSymbolTracker = deferredSymbolTracker;
|
|
37949
38129
|
this.forbidOrphanRendering = forbidOrphanRendering;
|
|
37950
38130
|
this.enableBlockSyntax = enableBlockSyntax;
|
|
38131
|
+
this.enableLetSyntax = enableLetSyntax;
|
|
37951
38132
|
this.localCompilationExtraImportsTracker = localCompilationExtraImportsTracker;
|
|
37952
38133
|
this.literalCache = /* @__PURE__ */ new Map();
|
|
37953
38134
|
this.elementSchemaRegistry = new DomElementSchemaRegistry();
|
|
@@ -37959,7 +38140,8 @@ var ComponentDecoratorHandler = class {
|
|
|
37959
38140
|
enableI18nLegacyMessageIdFormat: this.enableI18nLegacyMessageIdFormat,
|
|
37960
38141
|
i18nNormalizeLineEndingsInICUs: this.i18nNormalizeLineEndingsInICUs,
|
|
37961
38142
|
usePoisonedData: this.usePoisonedData,
|
|
37962
|
-
enableBlockSyntax: this.enableBlockSyntax
|
|
38143
|
+
enableBlockSyntax: this.enableBlockSyntax,
|
|
38144
|
+
enableLetSyntax: this.enableLetSyntax
|
|
37963
38145
|
};
|
|
37964
38146
|
}
|
|
37965
38147
|
detect(node, decorators) {
|
|
@@ -38130,7 +38312,8 @@ var ComponentDecoratorHandler = class {
|
|
|
38130
38312
|
enableI18nLegacyMessageIdFormat: this.enableI18nLegacyMessageIdFormat,
|
|
38131
38313
|
i18nNormalizeLineEndingsInICUs: this.i18nNormalizeLineEndingsInICUs,
|
|
38132
38314
|
usePoisonedData: this.usePoisonedData,
|
|
38133
|
-
enableBlockSyntax: this.enableBlockSyntax
|
|
38315
|
+
enableBlockSyntax: this.enableBlockSyntax,
|
|
38316
|
+
enableLetSyntax: this.enableLetSyntax
|
|
38134
38317
|
}, this.compilationMode);
|
|
38135
38318
|
}
|
|
38136
38319
|
const templateResource = template2.declaration.isInline ? { path: null, expression: component.get("template") } : {
|
|
@@ -38913,7 +39096,7 @@ function isDefaultImport(node) {
|
|
|
38913
39096
|
return node.importClause !== void 0 && node.importClause.namedBindings === void 0;
|
|
38914
39097
|
}
|
|
38915
39098
|
|
|
38916
|
-
// bazel-out/
|
|
39099
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
|
|
38917
39100
|
var import_typescript65 = __toESM(require("typescript"), 1);
|
|
38918
39101
|
var InjectableDecoratorHandler = class {
|
|
38919
39102
|
constructor(reflector, evaluator, isCore, strictCtorDeps, injectableRegistry, perf, includeClassMetadata, compilationMode, errorOnDuplicateProv = true) {
|
|
@@ -39144,7 +39327,7 @@ function getDep(dep, reflector) {
|
|
|
39144
39327
|
return meta;
|
|
39145
39328
|
}
|
|
39146
39329
|
|
|
39147
|
-
// bazel-out/
|
|
39330
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
|
|
39148
39331
|
var import_typescript66 = __toESM(require("typescript"), 1);
|
|
39149
39332
|
var PipeSymbol = class extends SemanticSymbol {
|
|
39150
39333
|
constructor(decl, name) {
|
|
@@ -39300,13 +39483,13 @@ var PipeDecoratorHandler = class {
|
|
|
39300
39483
|
}
|
|
39301
39484
|
};
|
|
39302
39485
|
|
|
39303
|
-
// bazel-out/
|
|
39486
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/jit_transforms/initializer_api_transforms/transform_api.mjs
|
|
39304
39487
|
var import_typescript67 = __toESM(require("typescript"), 1);
|
|
39305
39488
|
|
|
39306
|
-
// bazel-out/
|
|
39489
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/jit_transforms/initializer_api_transforms/model_function.mjs
|
|
39307
39490
|
var import_typescript68 = __toESM(require("typescript"), 1);
|
|
39308
39491
|
|
|
39309
|
-
// bazel-out/
|
|
39492
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
|
|
39310
39493
|
var EmitFlags;
|
|
39311
39494
|
(function(EmitFlags2) {
|
|
39312
39495
|
EmitFlags2[EmitFlags2["DTS"] = 1] = "DTS";
|
|
@@ -39318,13 +39501,13 @@ var EmitFlags;
|
|
|
39318
39501
|
EmitFlags2[EmitFlags2["All"] = 31] = "All";
|
|
39319
39502
|
})(EmitFlags || (EmitFlags = {}));
|
|
39320
39503
|
|
|
39321
|
-
// bazel-out/
|
|
39504
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/compiler_host.mjs
|
|
39322
39505
|
var import_typescript71 = __toESM(require("typescript"), 1);
|
|
39323
39506
|
|
|
39324
|
-
// bazel-out/
|
|
39507
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
39325
39508
|
var import_typescript123 = __toESM(require("typescript"), 1);
|
|
39326
39509
|
|
|
39327
|
-
// bazel-out/
|
|
39510
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/i18n.mjs
|
|
39328
39511
|
var path2 = __toESM(require("path"), 1);
|
|
39329
39512
|
function i18nGetExtension(formatName) {
|
|
39330
39513
|
const format = formatName.toLowerCase();
|
|
@@ -39374,10 +39557,10 @@ function getPathNormalizer(basePath) {
|
|
|
39374
39557
|
};
|
|
39375
39558
|
}
|
|
39376
39559
|
|
|
39377
|
-
// bazel-out/
|
|
39560
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
39378
39561
|
var import_typescript72 = __toESM(require("typescript"), 1);
|
|
39379
39562
|
|
|
39380
|
-
// bazel-out/
|
|
39563
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/version_helpers.mjs
|
|
39381
39564
|
function toNumbers(value) {
|
|
39382
39565
|
const suffixIndex = value.lastIndexOf("-");
|
|
39383
39566
|
return value.slice(0, suffixIndex === -1 ? value.length : suffixIndex).split(".").map((segment) => {
|
|
@@ -39412,7 +39595,7 @@ function compareVersions(v1, v2) {
|
|
|
39412
39595
|
return compareNumbers(toNumbers(v1), toNumbers(v2));
|
|
39413
39596
|
}
|
|
39414
39597
|
|
|
39415
|
-
// bazel-out/
|
|
39598
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
39416
39599
|
var MIN_TS_VERSION = "5.4.0";
|
|
39417
39600
|
var MAX_TS_VERSION = "5.5.0";
|
|
39418
39601
|
var tsVersion = import_typescript72.default.version;
|
|
@@ -39425,10 +39608,10 @@ function verifySupportedTypeScriptVersion() {
|
|
|
39425
39608
|
checkVersion(tsVersion, MIN_TS_VERSION, MAX_TS_VERSION);
|
|
39426
39609
|
}
|
|
39427
39610
|
|
|
39428
|
-
// bazel-out/
|
|
39611
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
39429
39612
|
var import_typescript119 = __toESM(require("typescript"), 1);
|
|
39430
39613
|
|
|
39431
|
-
// bazel-out/
|
|
39614
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
|
|
39432
39615
|
var CycleAnalyzer = class {
|
|
39433
39616
|
constructor(importGraph) {
|
|
39434
39617
|
this.importGraph = importGraph;
|
|
@@ -39499,7 +39682,7 @@ var Cycle = class {
|
|
|
39499
39682
|
}
|
|
39500
39683
|
};
|
|
39501
39684
|
|
|
39502
|
-
// bazel-out/
|
|
39685
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/imports.mjs
|
|
39503
39686
|
var import_typescript73 = __toESM(require("typescript"), 1);
|
|
39504
39687
|
var ImportGraph = class {
|
|
39505
39688
|
constructor(checker, perf) {
|
|
@@ -39591,13 +39774,13 @@ var Found = class {
|
|
|
39591
39774
|
}
|
|
39592
39775
|
};
|
|
39593
39776
|
|
|
39594
|
-
// bazel-out/
|
|
39777
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/extractor.mjs
|
|
39595
39778
|
var import_typescript82 = __toESM(require("typescript"), 1);
|
|
39596
39779
|
|
|
39597
|
-
// bazel-out/
|
|
39780
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/class_extractor.mjs
|
|
39598
39781
|
var import_typescript77 = __toESM(require("typescript"), 1);
|
|
39599
39782
|
|
|
39600
|
-
// bazel-out/
|
|
39783
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/entities.mjs
|
|
39601
39784
|
var EntryType;
|
|
39602
39785
|
(function(EntryType2) {
|
|
39603
39786
|
EntryType2["Block"] = "block";
|
|
@@ -39641,17 +39824,17 @@ var MemberTags;
|
|
|
39641
39824
|
MemberTags2["Inherited"] = "override";
|
|
39642
39825
|
})(MemberTags || (MemberTags = {}));
|
|
39643
39826
|
|
|
39644
|
-
// bazel-out/
|
|
39827
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/filters.mjs
|
|
39645
39828
|
function isAngularPrivateName(name) {
|
|
39646
39829
|
var _a2;
|
|
39647
39830
|
const firstChar = (_a2 = name[0]) != null ? _a2 : "";
|
|
39648
39831
|
return firstChar === "\u0275" || firstChar === "_";
|
|
39649
39832
|
}
|
|
39650
39833
|
|
|
39651
|
-
// bazel-out/
|
|
39834
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/function_extractor.mjs
|
|
39652
39835
|
var import_typescript75 = __toESM(require("typescript"), 1);
|
|
39653
39836
|
|
|
39654
|
-
// bazel-out/
|
|
39837
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/generics_extractor.mjs
|
|
39655
39838
|
function extractGenerics(declaration) {
|
|
39656
39839
|
var _a2, _b2;
|
|
39657
39840
|
return (_b2 = (_a2 = declaration.typeParameters) == null ? void 0 : _a2.map((typeParam) => {
|
|
@@ -39664,7 +39847,7 @@ function extractGenerics(declaration) {
|
|
|
39664
39847
|
})) != null ? _b2 : [];
|
|
39665
39848
|
}
|
|
39666
39849
|
|
|
39667
|
-
// bazel-out/
|
|
39850
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/jsdoc_extractor.mjs
|
|
39668
39851
|
var import_typescript74 = __toESM(require("typescript"), 1);
|
|
39669
39852
|
var decoratorExpression = /@(?=(Injectable|Component|Directive|Pipe|NgModule|Input|Output|HostBinding|HostListener|Inject|Optional|Self|Host|SkipSelf))/g;
|
|
39670
39853
|
function extractJsDocTags(node) {
|
|
@@ -39708,12 +39891,12 @@ function unescapeAngularDecorators(comment) {
|
|
|
39708
39891
|
return comment.replace(/_NG_AT_/g, "@");
|
|
39709
39892
|
}
|
|
39710
39893
|
|
|
39711
|
-
// bazel-out/
|
|
39894
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/type_extractor.mjs
|
|
39712
39895
|
function extractResolvedTypeString(node, checker) {
|
|
39713
39896
|
return checker.typeToString(checker.getTypeAtLocation(node));
|
|
39714
39897
|
}
|
|
39715
39898
|
|
|
39716
|
-
// bazel-out/
|
|
39899
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/function_extractor.mjs
|
|
39717
39900
|
var FunctionExtractor = class {
|
|
39718
39901
|
constructor(name, declaration, typeChecker) {
|
|
39719
39902
|
this.name = name;
|
|
@@ -39769,7 +39952,7 @@ function extractAllParams(params, typeChecker) {
|
|
|
39769
39952
|
}));
|
|
39770
39953
|
}
|
|
39771
39954
|
|
|
39772
|
-
// bazel-out/
|
|
39955
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/internal.mjs
|
|
39773
39956
|
var import_typescript76 = __toESM(require("typescript"), 1);
|
|
39774
39957
|
function isInternal(member) {
|
|
39775
39958
|
return extractJsDocTags(member).some((tag) => tag.name === "internal") || hasLeadingInternalComment(member);
|
|
@@ -39788,7 +39971,7 @@ function hasLeadingInternalComment(member) {
|
|
|
39788
39971
|
)) != null ? _a2 : false;
|
|
39789
39972
|
}
|
|
39790
39973
|
|
|
39791
|
-
// bazel-out/
|
|
39974
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/class_extractor.mjs
|
|
39792
39975
|
var ClassExtractor = class {
|
|
39793
39976
|
constructor(declaration, typeChecker) {
|
|
39794
39977
|
this.declaration = declaration;
|
|
@@ -40040,7 +40223,7 @@ function extractInterface(declaration, typeChecker) {
|
|
|
40040
40223
|
return extractor.extract();
|
|
40041
40224
|
}
|
|
40042
40225
|
|
|
40043
|
-
// bazel-out/
|
|
40226
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/constant_extractor.mjs
|
|
40044
40227
|
var import_typescript78 = __toESM(require("typescript"), 1);
|
|
40045
40228
|
var LITERAL_AS_ENUM_TAG = "object-literal-as-enum";
|
|
40046
40229
|
function extractConstant(declaration, typeChecker) {
|
|
@@ -40098,7 +40281,7 @@ function extractLiteralPropertiesAsEnumMembers(declaration) {
|
|
|
40098
40281
|
});
|
|
40099
40282
|
}
|
|
40100
40283
|
|
|
40101
|
-
// bazel-out/
|
|
40284
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/decorator_extractor.mjs
|
|
40102
40285
|
var import_typescript79 = __toESM(require("typescript"), 1);
|
|
40103
40286
|
function extractorDecorator(declaration, typeChecker) {
|
|
40104
40287
|
const documentedNode = getDecoratorJsDocNode(declaration);
|
|
@@ -40171,7 +40354,7 @@ function getDecoratorJsDocNode(declaration) {
|
|
|
40171
40354
|
return callSignature;
|
|
40172
40355
|
}
|
|
40173
40356
|
|
|
40174
|
-
// bazel-out/
|
|
40357
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/enum_extractor.mjs
|
|
40175
40358
|
var import_typescript80 = __toESM(require("typescript"), 1);
|
|
40176
40359
|
function extractEnum(declaration, typeChecker) {
|
|
40177
40360
|
return {
|
|
@@ -40202,7 +40385,7 @@ function getEnumMemberValue(memberNode) {
|
|
|
40202
40385
|
return (_a2 = literal3 == null ? void 0 : literal3.getText()) != null ? _a2 : "";
|
|
40203
40386
|
}
|
|
40204
40387
|
|
|
40205
|
-
// bazel-out/
|
|
40388
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/initializer_api_function_extractor.mjs
|
|
40206
40389
|
var import_typescript81 = __toESM(require("typescript"), 1);
|
|
40207
40390
|
var initializerApiTag = "initializerApiFunction";
|
|
40208
40391
|
function isInitializerApiFunction(node, typeChecker) {
|
|
@@ -40339,7 +40522,7 @@ function findImplementationOfFunction(node, typeChecker) {
|
|
|
40339
40522
|
return (_a2 = symbol == null ? void 0 : symbol.declarations) == null ? void 0 : _a2.find((s) => import_typescript81.default.isFunctionDeclaration(s) && s.body !== void 0);
|
|
40340
40523
|
}
|
|
40341
40524
|
|
|
40342
|
-
// bazel-out/
|
|
40525
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/type_alias_extractor.mjs
|
|
40343
40526
|
function extractTypeAlias(declaration) {
|
|
40344
40527
|
return {
|
|
40345
40528
|
name: declaration.name.getText(),
|
|
@@ -40351,7 +40534,7 @@ function extractTypeAlias(declaration) {
|
|
|
40351
40534
|
};
|
|
40352
40535
|
}
|
|
40353
40536
|
|
|
40354
|
-
// bazel-out/
|
|
40537
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/extractor.mjs
|
|
40355
40538
|
var DocsExtractor = class {
|
|
40356
40539
|
constructor(typeChecker, metadataReader) {
|
|
40357
40540
|
this.typeChecker = typeChecker;
|
|
@@ -40435,7 +40618,7 @@ function getRelativeFilePath(sourceFile, rootDir) {
|
|
|
40435
40618
|
return relativePath;
|
|
40436
40619
|
}
|
|
40437
40620
|
|
|
40438
|
-
// bazel-out/
|
|
40621
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/generator.mjs
|
|
40439
40622
|
var import_typescript83 = __toESM(require("typescript"), 1);
|
|
40440
40623
|
var FlatIndexGenerator = class {
|
|
40441
40624
|
constructor(entryPoint, relativeFlatIndexPath, moduleName) {
|
|
@@ -40460,7 +40643,7 @@ export * from '${relativeEntryPoint}';
|
|
|
40460
40643
|
}
|
|
40461
40644
|
};
|
|
40462
40645
|
|
|
40463
|
-
// bazel-out/
|
|
40646
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/logic.mjs
|
|
40464
40647
|
function findFlatIndexEntryPoint(rootFiles) {
|
|
40465
40648
|
const tsFiles = rootFiles.filter((file) => isNonDeclarationTsPath(file));
|
|
40466
40649
|
let resolvedEntryPoint = null;
|
|
@@ -40476,7 +40659,7 @@ function findFlatIndexEntryPoint(rootFiles) {
|
|
|
40476
40659
|
return resolvedEntryPoint;
|
|
40477
40660
|
}
|
|
40478
40661
|
|
|
40479
|
-
// bazel-out/
|
|
40662
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/private_export_checker.mjs
|
|
40480
40663
|
var import_typescript85 = __toESM(require("typescript"), 1);
|
|
40481
40664
|
function checkForPrivateExports(entryPoint, checker, refGraph) {
|
|
40482
40665
|
const diagnostics = [];
|
|
@@ -40556,7 +40739,7 @@ function getDescriptorOfDeclaration(decl) {
|
|
|
40556
40739
|
}
|
|
40557
40740
|
}
|
|
40558
40741
|
|
|
40559
|
-
// bazel-out/
|
|
40742
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/entry_point/src/reference_graph.mjs
|
|
40560
40743
|
var ReferenceGraph = class {
|
|
40561
40744
|
constructor() {
|
|
40562
40745
|
this.references = /* @__PURE__ */ new Map();
|
|
@@ -40610,7 +40793,7 @@ var ReferenceGraph = class {
|
|
|
40610
40793
|
}
|
|
40611
40794
|
};
|
|
40612
40795
|
|
|
40613
|
-
// bazel-out/
|
|
40796
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/api.mjs
|
|
40614
40797
|
var NgOriginalFile = Symbol("NgOriginalFile");
|
|
40615
40798
|
var UpdateMode;
|
|
40616
40799
|
(function(UpdateMode2) {
|
|
@@ -40618,13 +40801,13 @@ var UpdateMode;
|
|
|
40618
40801
|
UpdateMode2[UpdateMode2["Incremental"] = 1] = "Incremental";
|
|
40619
40802
|
})(UpdateMode || (UpdateMode = {}));
|
|
40620
40803
|
|
|
40621
|
-
// bazel-out/
|
|
40804
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
|
|
40622
40805
|
var import_typescript89 = __toESM(require("typescript"), 1);
|
|
40623
40806
|
|
|
40624
|
-
// bazel-out/
|
|
40807
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
40625
40808
|
var import_typescript86 = __toESM(require("typescript"), 1);
|
|
40626
40809
|
|
|
40627
|
-
// bazel-out/
|
|
40810
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/expando.mjs
|
|
40628
40811
|
var NgExtension = Symbol("NgExtension");
|
|
40629
40812
|
function isExtended(sf) {
|
|
40630
40813
|
return sf[NgExtension] !== void 0;
|
|
@@ -40684,13 +40867,13 @@ function retagTsFile(sf) {
|
|
|
40684
40867
|
}
|
|
40685
40868
|
}
|
|
40686
40869
|
|
|
40687
|
-
// bazel-out/
|
|
40870
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/util.mjs
|
|
40688
40871
|
var TS_EXTENSIONS = /\.tsx?$/i;
|
|
40689
40872
|
function makeShimFileName(fileName, suffix) {
|
|
40690
40873
|
return absoluteFrom(fileName.replace(TS_EXTENSIONS, suffix));
|
|
40691
40874
|
}
|
|
40692
40875
|
|
|
40693
|
-
// bazel-out/
|
|
40876
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
40694
40877
|
var ShimAdapter = class {
|
|
40695
40878
|
constructor(delegate, tsRootFiles, topLevelGenerators, perFileGenerators, oldProgram) {
|
|
40696
40879
|
this.delegate = delegate;
|
|
@@ -40785,7 +40968,7 @@ var ShimAdapter = class {
|
|
|
40785
40968
|
}
|
|
40786
40969
|
};
|
|
40787
40970
|
|
|
40788
|
-
// bazel-out/
|
|
40971
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
|
|
40789
40972
|
var ShimReferenceTagger = class {
|
|
40790
40973
|
constructor(shimExtensions) {
|
|
40791
40974
|
this.tagged = /* @__PURE__ */ new Set();
|
|
@@ -40819,7 +41002,7 @@ var ShimReferenceTagger = class {
|
|
|
40819
41002
|
}
|
|
40820
41003
|
};
|
|
40821
41004
|
|
|
40822
|
-
// bazel-out/
|
|
41005
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
|
|
40823
41006
|
var DelegatingCompilerHost = class {
|
|
40824
41007
|
get jsDocParsingMode() {
|
|
40825
41008
|
return this.delegate.jsDocParsingMode;
|
|
@@ -40938,7 +41121,7 @@ var TsCreateProgramDriver = class {
|
|
|
40938
41121
|
}
|
|
40939
41122
|
};
|
|
40940
41123
|
|
|
40941
|
-
// bazel-out/
|
|
41124
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/dependency_tracking.mjs
|
|
40942
41125
|
var FileDependencyGraph = class {
|
|
40943
41126
|
constructor() {
|
|
40944
41127
|
this.nodes = /* @__PURE__ */ new Map();
|
|
@@ -41005,7 +41188,7 @@ function isLogicallyChanged(sf, node, changedTsPaths, deletedTsPaths, changedRes
|
|
|
41005
41188
|
return false;
|
|
41006
41189
|
}
|
|
41007
41190
|
|
|
41008
|
-
// bazel-out/
|
|
41191
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/state.mjs
|
|
41009
41192
|
var IncrementalStateKind;
|
|
41010
41193
|
(function(IncrementalStateKind2) {
|
|
41011
41194
|
IncrementalStateKind2[IncrementalStateKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -41013,7 +41196,7 @@ var IncrementalStateKind;
|
|
|
41013
41196
|
IncrementalStateKind2[IncrementalStateKind2["Analyzed"] = 2] = "Analyzed";
|
|
41014
41197
|
})(IncrementalStateKind || (IncrementalStateKind = {}));
|
|
41015
41198
|
|
|
41016
|
-
// bazel-out/
|
|
41199
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/incremental.mjs
|
|
41017
41200
|
var PhaseKind;
|
|
41018
41201
|
(function(PhaseKind2) {
|
|
41019
41202
|
PhaseKind2[PhaseKind2["Analysis"] = 0] = "Analysis";
|
|
@@ -41214,7 +41397,7 @@ function toOriginalSourceFile(sf) {
|
|
|
41214
41397
|
}
|
|
41215
41398
|
}
|
|
41216
41399
|
|
|
41217
|
-
// bazel-out/
|
|
41400
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/src/strategy.mjs
|
|
41218
41401
|
var TrackedIncrementalBuildStrategy = class {
|
|
41219
41402
|
constructor() {
|
|
41220
41403
|
this.state = null;
|
|
@@ -41235,7 +41418,7 @@ var TrackedIncrementalBuildStrategy = class {
|
|
|
41235
41418
|
};
|
|
41236
41419
|
var SYM_INCREMENTAL_STATE = Symbol("NgIncrementalState");
|
|
41237
41420
|
|
|
41238
|
-
// bazel-out/
|
|
41421
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/api.mjs
|
|
41239
41422
|
var IdentifierKind;
|
|
41240
41423
|
(function(IdentifierKind2) {
|
|
41241
41424
|
IdentifierKind2[IdentifierKind2["Property"] = 0] = "Property";
|
|
@@ -41245,6 +41428,7 @@ var IdentifierKind;
|
|
|
41245
41428
|
IdentifierKind2[IdentifierKind2["Attribute"] = 4] = "Attribute";
|
|
41246
41429
|
IdentifierKind2[IdentifierKind2["Reference"] = 5] = "Reference";
|
|
41247
41430
|
IdentifierKind2[IdentifierKind2["Variable"] = 6] = "Variable";
|
|
41431
|
+
IdentifierKind2[IdentifierKind2["LetDeclaration"] = 7] = "LetDeclaration";
|
|
41248
41432
|
})(IdentifierKind || (IdentifierKind = {}));
|
|
41249
41433
|
var AbsoluteSourceSpan2 = class {
|
|
41250
41434
|
constructor(start, end) {
|
|
@@ -41253,7 +41437,7 @@ var AbsoluteSourceSpan2 = class {
|
|
|
41253
41437
|
}
|
|
41254
41438
|
};
|
|
41255
41439
|
|
|
41256
|
-
// bazel-out/
|
|
41440
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/context.mjs
|
|
41257
41441
|
var IndexingContext = class {
|
|
41258
41442
|
constructor() {
|
|
41259
41443
|
this.components = /* @__PURE__ */ new Set();
|
|
@@ -41263,7 +41447,7 @@ var IndexingContext = class {
|
|
|
41263
41447
|
}
|
|
41264
41448
|
};
|
|
41265
41449
|
|
|
41266
|
-
// bazel-out/
|
|
41450
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/template.mjs
|
|
41267
41451
|
var ExpressionVisitor = class extends RecursiveAstVisitor2 {
|
|
41268
41452
|
constructor(expressionStr, absoluteOffset, boundTemplate, targetToIdentifier) {
|
|
41269
41453
|
super();
|
|
@@ -41425,6 +41609,13 @@ var TemplateVisitor = class extends RecursiveVisitor {
|
|
|
41425
41609
|
(_a2 = block.expressionAlias) == null ? void 0 : _a2.visit(this);
|
|
41426
41610
|
this.visitAll(block.children);
|
|
41427
41611
|
}
|
|
41612
|
+
visitLetDeclaration(decl) {
|
|
41613
|
+
const identifier = this.targetToIdentifier(decl);
|
|
41614
|
+
if (identifier !== null) {
|
|
41615
|
+
this.identifiers.add(identifier);
|
|
41616
|
+
}
|
|
41617
|
+
this.visitExpression(decl.value);
|
|
41618
|
+
}
|
|
41428
41619
|
elementOrTemplateToIdentifier(node) {
|
|
41429
41620
|
var _a2;
|
|
41430
41621
|
if (this.elementAndTemplateIdentifierCache.has(node)) {
|
|
@@ -41508,12 +41699,18 @@ var TemplateVisitor = class extends RecursiveVisitor {
|
|
|
41508
41699
|
kind: IdentifierKind.Reference,
|
|
41509
41700
|
target
|
|
41510
41701
|
};
|
|
41511
|
-
} else {
|
|
41702
|
+
} else if (node instanceof Variable) {
|
|
41512
41703
|
identifier = {
|
|
41513
41704
|
name,
|
|
41514
41705
|
span,
|
|
41515
41706
|
kind: IdentifierKind.Variable
|
|
41516
41707
|
};
|
|
41708
|
+
} else {
|
|
41709
|
+
identifier = {
|
|
41710
|
+
name,
|
|
41711
|
+
span,
|
|
41712
|
+
kind: IdentifierKind.LetDeclaration
|
|
41713
|
+
};
|
|
41517
41714
|
}
|
|
41518
41715
|
this.targetIdentifierCache.set(node, identifier);
|
|
41519
41716
|
return identifier;
|
|
@@ -41544,7 +41741,7 @@ function getTemplateIdentifiers(boundTemplate) {
|
|
|
41544
41741
|
return { identifiers: visitor.identifiers, errors: visitor.errors };
|
|
41545
41742
|
}
|
|
41546
41743
|
|
|
41547
|
-
// bazel-out/
|
|
41744
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/indexer/src/transform.mjs
|
|
41548
41745
|
function generateAnalysis(context) {
|
|
41549
41746
|
const analysis = /* @__PURE__ */ new Map();
|
|
41550
41747
|
context.components.forEach(({ declaration, selector, boundTemplate, templateMeta }) => {
|
|
@@ -41580,7 +41777,7 @@ function generateAnalysis(context) {
|
|
|
41580
41777
|
return analysis;
|
|
41581
41778
|
}
|
|
41582
41779
|
|
|
41583
|
-
// bazel-out/
|
|
41780
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/ng_module_index.mjs
|
|
41584
41781
|
var NgModuleIndexImpl = class {
|
|
41585
41782
|
constructor(metaReader, localReader) {
|
|
41586
41783
|
this.metaReader = metaReader;
|
|
@@ -41669,7 +41866,7 @@ var NgModuleIndexImpl = class {
|
|
|
41669
41866
|
}
|
|
41670
41867
|
};
|
|
41671
41868
|
|
|
41672
|
-
// bazel-out/
|
|
41869
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/resource/src/loader.mjs
|
|
41673
41870
|
var import_typescript92 = __toESM(require("typescript"), 1);
|
|
41674
41871
|
var CSS_PREPROCESSOR_EXT = /(\.scss|\.sass|\.less|\.styl)$/;
|
|
41675
41872
|
var RESOURCE_MARKER = ".$ngresource$";
|
|
@@ -41821,7 +42018,7 @@ function createLookupResolutionHost(adapter) {
|
|
|
41821
42018
|
};
|
|
41822
42019
|
}
|
|
41823
42020
|
|
|
41824
|
-
// bazel-out/
|
|
42021
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/standalone.mjs
|
|
41825
42022
|
var StandaloneComponentScopeReader = class {
|
|
41826
42023
|
constructor(metaReader, localModuleReader, dtsModuleReader) {
|
|
41827
42024
|
this.metaReader = metaReader;
|
|
@@ -41917,21 +42114,22 @@ var StandaloneComponentScopeReader = class {
|
|
|
41917
42114
|
}
|
|
41918
42115
|
};
|
|
41919
42116
|
|
|
41920
|
-
// bazel-out/
|
|
42117
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/checker.mjs
|
|
41921
42118
|
var OptimizeFor;
|
|
41922
42119
|
(function(OptimizeFor2) {
|
|
41923
42120
|
OptimizeFor2[OptimizeFor2["SingleFile"] = 0] = "SingleFile";
|
|
41924
42121
|
OptimizeFor2[OptimizeFor2["WholeProgram"] = 1] = "WholeProgram";
|
|
41925
42122
|
})(OptimizeFor || (OptimizeFor = {}));
|
|
41926
42123
|
|
|
41927
|
-
// bazel-out/
|
|
42124
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/completion.mjs
|
|
41928
42125
|
var CompletionKind;
|
|
41929
42126
|
(function(CompletionKind2) {
|
|
41930
42127
|
CompletionKind2[CompletionKind2["Reference"] = 0] = "Reference";
|
|
41931
42128
|
CompletionKind2[CompletionKind2["Variable"] = 1] = "Variable";
|
|
42129
|
+
CompletionKind2[CompletionKind2["LetDeclaration"] = 2] = "LetDeclaration";
|
|
41932
42130
|
})(CompletionKind || (CompletionKind = {}));
|
|
41933
42131
|
|
|
41934
|
-
// bazel-out/
|
|
42132
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/scope.mjs
|
|
41935
42133
|
var PotentialImportKind;
|
|
41936
42134
|
(function(PotentialImportKind2) {
|
|
41937
42135
|
PotentialImportKind2[PotentialImportKind2["NgModule"] = 0] = "NgModule";
|
|
@@ -41943,7 +42141,7 @@ var PotentialImportMode;
|
|
|
41943
42141
|
PotentialImportMode2[PotentialImportMode2["ForceDirect"] = 1] = "ForceDirect";
|
|
41944
42142
|
})(PotentialImportMode || (PotentialImportMode = {}));
|
|
41945
42143
|
|
|
41946
|
-
// bazel-out/
|
|
42144
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.mjs
|
|
41947
42145
|
var SymbolKind;
|
|
41948
42146
|
(function(SymbolKind2) {
|
|
41949
42147
|
SymbolKind2[SymbolKind2["Input"] = 0] = "Input";
|
|
@@ -41957,9 +42155,10 @@ var SymbolKind;
|
|
|
41957
42155
|
SymbolKind2[SymbolKind2["Expression"] = 8] = "Expression";
|
|
41958
42156
|
SymbolKind2[SymbolKind2["DomBinding"] = 9] = "DomBinding";
|
|
41959
42157
|
SymbolKind2[SymbolKind2["Pipe"] = 10] = "Pipe";
|
|
42158
|
+
SymbolKind2[SymbolKind2["LetDeclaration"] = 11] = "LetDeclaration";
|
|
41960
42159
|
})(SymbolKind || (SymbolKind = {}));
|
|
41961
42160
|
|
|
41962
|
-
// bazel-out/
|
|
42161
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
|
|
41963
42162
|
var import_typescript93 = __toESM(require("typescript"), 1);
|
|
41964
42163
|
function makeTemplateDiagnostic(templateId, mapping, span, category, code, messageText, relatedMessages) {
|
|
41965
42164
|
var _a2;
|
|
@@ -42070,7 +42269,7 @@ function parseTemplateAsSourceFile(fileName, template2) {
|
|
|
42070
42269
|
);
|
|
42071
42270
|
}
|
|
42072
42271
|
|
|
42073
|
-
// bazel-out/
|
|
42272
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
|
|
42074
42273
|
var TEMPLATE_ID = Symbol("ngTemplateId");
|
|
42075
42274
|
var NEXT_TEMPLATE_ID = Symbol("ngNextTemplateId");
|
|
42076
42275
|
function getTemplateId(clazz) {
|
|
@@ -42087,10 +42286,10 @@ function allocateTemplateId(sf) {
|
|
|
42087
42286
|
return `tcb${sf[NEXT_TEMPLATE_ID]++}`;
|
|
42088
42287
|
}
|
|
42089
42288
|
|
|
42090
|
-
// bazel-out/
|
|
42289
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
42091
42290
|
var import_typescript95 = __toESM(require("typescript"), 1);
|
|
42092
42291
|
|
|
42093
|
-
// bazel-out/
|
|
42292
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
|
|
42094
42293
|
var import_typescript94 = __toESM(require("typescript"), 1);
|
|
42095
42294
|
var parseSpanComment = /^(\d+),(\d+)$/;
|
|
42096
42295
|
function readSpanComment(node, sourceFile = node.getSourceFile()) {
|
|
@@ -42220,7 +42419,7 @@ function hasExpressionIdentifier(sourceFile, node, identifier) {
|
|
|
42220
42419
|
}) || false;
|
|
42221
42420
|
}
|
|
42222
42421
|
|
|
42223
|
-
// bazel-out/
|
|
42422
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
42224
42423
|
var CompletionEngine = class {
|
|
42225
42424
|
constructor(tcb, data, tcbPath, tcbIsShim) {
|
|
42226
42425
|
this.tcb = tcb;
|
|
@@ -42365,6 +42564,11 @@ var CompletionEngine = class {
|
|
|
42365
42564
|
kind: CompletionKind.Reference,
|
|
42366
42565
|
node
|
|
42367
42566
|
});
|
|
42567
|
+
} else if (node instanceof LetDeclaration) {
|
|
42568
|
+
templateContext.set(node.name, {
|
|
42569
|
+
kind: CompletionKind.LetDeclaration,
|
|
42570
|
+
node
|
|
42571
|
+
});
|
|
42368
42572
|
} else {
|
|
42369
42573
|
templateContext.set(node.name, {
|
|
42370
42574
|
kind: CompletionKind.Variable,
|
|
@@ -43478,10 +43682,10 @@ var MagicString = class {
|
|
|
43478
43682
|
}
|
|
43479
43683
|
};
|
|
43480
43684
|
|
|
43481
|
-
// bazel-out/
|
|
43685
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
43482
43686
|
var import_typescript109 = __toESM(require("typescript"), 1);
|
|
43483
43687
|
|
|
43484
|
-
// bazel-out/
|
|
43688
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
|
|
43485
43689
|
var import_typescript96 = __toESM(require("typescript"), 1);
|
|
43486
43690
|
var REGISTRY = new DomElementSchemaRegistry();
|
|
43487
43691
|
var REMOVE_XHTML_REGEX = /^:xhtml:/;
|
|
@@ -43533,10 +43737,10 @@ var RegistryDomSchemaChecker = class {
|
|
|
43533
43737
|
}
|
|
43534
43738
|
};
|
|
43535
43739
|
|
|
43536
|
-
// bazel-out/
|
|
43740
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
43537
43741
|
var import_typescript102 = __toESM(require("typescript"), 1);
|
|
43538
43742
|
|
|
43539
|
-
// bazel-out/
|
|
43743
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/reference_emit_environment.mjs
|
|
43540
43744
|
var ReferenceEmitEnvironment = class {
|
|
43541
43745
|
constructor(importManager, refEmitter, reflector, contextFile) {
|
|
43542
43746
|
this.importManager = importManager;
|
|
@@ -43566,7 +43770,7 @@ var ReferenceEmitEnvironment = class {
|
|
|
43566
43770
|
}
|
|
43567
43771
|
};
|
|
43568
43772
|
|
|
43569
|
-
// bazel-out/
|
|
43773
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
|
|
43570
43774
|
var import_typescript97 = __toESM(require("typescript"), 1);
|
|
43571
43775
|
var SAFE_TO_CAST_WITHOUT_PARENS = /* @__PURE__ */ new Set([
|
|
43572
43776
|
import_typescript97.default.SyntaxKind.ParenthesizedExpression,
|
|
@@ -43618,7 +43822,7 @@ function tsDeclareVariable(id, type) {
|
|
|
43618
43822
|
function tsCreateTypeQueryForCoercedInput(typeName, coercedInputName) {
|
|
43619
43823
|
return import_typescript97.default.factory.createTypeQueryNode(import_typescript97.default.factory.createQualifiedName(typeName, `ngAcceptInputType_${coercedInputName}`));
|
|
43620
43824
|
}
|
|
43621
|
-
function tsCreateVariable(id, initializer) {
|
|
43825
|
+
function tsCreateVariable(id, initializer, flags = null) {
|
|
43622
43826
|
const decl = import_typescript97.default.factory.createVariableDeclaration(
|
|
43623
43827
|
id,
|
|
43624
43828
|
void 0,
|
|
@@ -43627,7 +43831,7 @@ function tsCreateVariable(id, initializer) {
|
|
|
43627
43831
|
);
|
|
43628
43832
|
return import_typescript97.default.factory.createVariableStatement(
|
|
43629
43833
|
void 0,
|
|
43630
|
-
[decl]
|
|
43834
|
+
flags === null ? [decl] : import_typescript97.default.factory.createVariableDeclarationList([decl], flags)
|
|
43631
43835
|
);
|
|
43632
43836
|
}
|
|
43633
43837
|
function tsCallMethod(receiver, methodName, args = []) {
|
|
@@ -43649,13 +43853,13 @@ function tsNumericExpression2(value) {
|
|
|
43649
43853
|
return import_typescript97.default.factory.createNumericLiteral(value);
|
|
43650
43854
|
}
|
|
43651
43855
|
|
|
43652
|
-
// bazel-out/
|
|
43856
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
43653
43857
|
var import_typescript101 = __toESM(require("typescript"), 1);
|
|
43654
43858
|
|
|
43655
|
-
// bazel-out/
|
|
43859
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
43656
43860
|
var import_typescript99 = __toESM(require("typescript"), 1);
|
|
43657
43861
|
|
|
43658
|
-
// bazel-out/
|
|
43862
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
|
|
43659
43863
|
var import_typescript98 = __toESM(require("typescript"), 1);
|
|
43660
43864
|
var TypeParameterEmitter = class {
|
|
43661
43865
|
constructor(typeParameters, reflector) {
|
|
@@ -43733,7 +43937,7 @@ var TypeParameterEmitter = class {
|
|
|
43733
43937
|
}
|
|
43734
43938
|
};
|
|
43735
43939
|
|
|
43736
|
-
// bazel-out/
|
|
43940
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
43737
43941
|
var TCB_FILE_IMPORT_GRAPH_PREPARE_IDENTIFIERS = [
|
|
43738
43942
|
Identifiers.InputSignalBrandWriteType
|
|
43739
43943
|
];
|
|
@@ -43825,7 +44029,7 @@ function checkIfGenericTypeBoundsCanBeEmitted(node, reflector, env) {
|
|
|
43825
44029
|
return emitter.canEmit((ref) => env.canReferenceType(ref));
|
|
43826
44030
|
}
|
|
43827
44031
|
|
|
43828
|
-
// bazel-out/
|
|
44032
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
43829
44033
|
function generateTypeCtorDeclarationFn(env, meta, nodeTypeRef, typeParams) {
|
|
43830
44034
|
const rawTypeArgs = typeParams !== void 0 ? generateGenericArgs(typeParams) : void 0;
|
|
43831
44035
|
const rawType = import_typescript101.default.factory.createTypeReferenceNode(nodeTypeRef, rawTypeArgs);
|
|
@@ -43948,7 +44152,7 @@ function typeParametersWithDefaultTypes(params) {
|
|
|
43948
44152
|
});
|
|
43949
44153
|
}
|
|
43950
44154
|
|
|
43951
|
-
// bazel-out/
|
|
44155
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
43952
44156
|
var Environment = class extends ReferenceEmitEnvironment {
|
|
43953
44157
|
constructor(config, importManager, refEmitter, reflector, contextFile) {
|
|
43954
44158
|
super(importManager, refEmitter, reflector, contextFile);
|
|
@@ -44020,7 +44224,7 @@ var Environment = class extends ReferenceEmitEnvironment {
|
|
|
44020
44224
|
}
|
|
44021
44225
|
};
|
|
44022
44226
|
|
|
44023
|
-
// bazel-out/
|
|
44227
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
|
|
44024
44228
|
var import_typescript103 = __toESM(require("typescript"), 1);
|
|
44025
44229
|
var OutOfBandDiagnosticRecorderImpl = class {
|
|
44026
44230
|
constructor(resolver) {
|
|
@@ -44193,6 +44397,25 @@ Deferred blocks can only access triggers in same view, a parent embedded view or
|
|
|
44193
44397
|
lines.push("", 'This check can be disabled using the `extendedDiagnostics.checks.controlFlowPreventingContentProjection = "suppress" compiler option.`');
|
|
44194
44398
|
this._diagnostics.push(makeTemplateDiagnostic(templateId, this.resolver.getSourceMapping(templateId), projectionNode.startSourceSpan, category, ngErrorCode(ErrorCode.CONTROL_FLOW_PREVENTING_CONTENT_PROJECTION), lines.join("\n")));
|
|
44195
44399
|
}
|
|
44400
|
+
illegalWriteToLetDeclaration(templateId, node, target) {
|
|
44401
|
+
const sourceSpan = this.resolver.toParseSourceSpan(templateId, node.sourceSpan);
|
|
44402
|
+
if (sourceSpan === null) {
|
|
44403
|
+
throw new Error(`Assertion failure: no SourceLocation found for property write.`);
|
|
44404
|
+
}
|
|
44405
|
+
this._diagnostics.push(makeTemplateDiagnostic(templateId, this.resolver.getSourceMapping(templateId), sourceSpan, import_typescript103.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.ILLEGAL_LET_WRITE), `Cannot assign to @let declaration '${target.name}'.`));
|
|
44406
|
+
}
|
|
44407
|
+
letUsedBeforeDefinition(templateId, node, target) {
|
|
44408
|
+
const sourceSpan = this.resolver.toParseSourceSpan(templateId, node.sourceSpan);
|
|
44409
|
+
if (sourceSpan === null) {
|
|
44410
|
+
throw new Error(`Assertion failure: no SourceLocation found for property read.`);
|
|
44411
|
+
}
|
|
44412
|
+
this._diagnostics.push(makeTemplateDiagnostic(templateId, this.resolver.getSourceMapping(templateId), sourceSpan, import_typescript103.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.LET_USED_BEFORE_DEFINITION), `Cannot read @let declaration '${target.name}' before it has been defined.`));
|
|
44413
|
+
}
|
|
44414
|
+
duplicateLetDeclaration(templateId, current) {
|
|
44415
|
+
const mapping = this.resolver.getSourceMapping(templateId);
|
|
44416
|
+
const errorMsg = `Cannot declare @let called '${current.name}' as there is another @let declaration with the same name.`;
|
|
44417
|
+
this._diagnostics.push(makeTemplateDiagnostic(templateId, mapping, current.sourceSpan, import_typescript103.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.DUPLICATE_LET_DECLARATION), errorMsg));
|
|
44418
|
+
}
|
|
44196
44419
|
};
|
|
44197
44420
|
function makeInlineDiagnostic(templateId, code, node, messageText, relatedInformation) {
|
|
44198
44421
|
return __spreadProps(__spreadValues({}, makeDiagnostic(code, node, messageText, relatedInformation)), {
|
|
@@ -44201,7 +44424,7 @@ function makeInlineDiagnostic(templateId, code, node, messageText, relatedInform
|
|
|
44201
44424
|
});
|
|
44202
44425
|
}
|
|
44203
44426
|
|
|
44204
|
-
// bazel-out/
|
|
44427
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
|
|
44205
44428
|
var import_typescript104 = __toESM(require("typescript"), 1);
|
|
44206
44429
|
var TypeCheckShimGenerator = class {
|
|
44207
44430
|
constructor() {
|
|
@@ -44219,10 +44442,10 @@ var TypeCheckShimGenerator = class {
|
|
|
44219
44442
|
}
|
|
44220
44443
|
};
|
|
44221
44444
|
|
|
44222
|
-
// bazel-out/
|
|
44445
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
44223
44446
|
var import_typescript107 = __toESM(require("typescript"), 1);
|
|
44224
44447
|
|
|
44225
|
-
// bazel-out/
|
|
44448
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
|
|
44226
44449
|
var import_typescript105 = __toESM(require("typescript"), 1);
|
|
44227
44450
|
function wrapForDiagnostics(expr) {
|
|
44228
44451
|
return import_typescript105.default.factory.createParenthesizedExpression(expr);
|
|
@@ -44277,7 +44500,7 @@ function translateDiagnostic(diagnostic, resolver) {
|
|
|
44277
44500
|
return makeTemplateDiagnostic(sourceLocation.id, templateSourceMapping, span, diagnostic.category, diagnostic.code, diagnostic.messageText);
|
|
44278
44501
|
}
|
|
44279
44502
|
|
|
44280
|
-
// bazel-out/
|
|
44503
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
|
|
44281
44504
|
var import_typescript106 = __toESM(require("typescript"), 1);
|
|
44282
44505
|
var NULL_AS_ANY = import_typescript106.default.factory.createAsExpression(import_typescript106.default.factory.createNull(), import_typescript106.default.factory.createKeywordTypeNode(import_typescript106.default.SyntaxKind.AnyKeyword));
|
|
44283
44506
|
var UNDEFINED = import_typescript106.default.factory.createIdentifier("undefined");
|
|
@@ -44609,7 +44832,7 @@ var VeSafeLhsInferenceBugDetector = _VeSafeLhsInferenceBugDetector;
|
|
|
44609
44832
|
_VeSafeLhsInferenceBugDetector.SINGLETON = new _VeSafeLhsInferenceBugDetector();
|
|
44610
44833
|
})();
|
|
44611
44834
|
|
|
44612
|
-
// bazel-out/
|
|
44835
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
44613
44836
|
var TcbGenericContextBehavior;
|
|
44614
44837
|
(function(TcbGenericContextBehavior2) {
|
|
44615
44838
|
TcbGenericContextBehavior2[TcbGenericContextBehavior2["UseEmitter"] = 0] = "UseEmitter";
|
|
@@ -44729,6 +44952,24 @@ var TcbTemplateContextOp = class extends TcbOp {
|
|
|
44729
44952
|
return ctx;
|
|
44730
44953
|
}
|
|
44731
44954
|
};
|
|
44955
|
+
var TcbLetDeclarationOp = class extends TcbOp {
|
|
44956
|
+
constructor(tcb, scope, node) {
|
|
44957
|
+
super();
|
|
44958
|
+
this.tcb = tcb;
|
|
44959
|
+
this.scope = scope;
|
|
44960
|
+
this.node = node;
|
|
44961
|
+
this.optional = false;
|
|
44962
|
+
}
|
|
44963
|
+
execute() {
|
|
44964
|
+
const id = this.tcb.allocateId();
|
|
44965
|
+
addParseSpanInfo(id, this.node.nameSpan);
|
|
44966
|
+
const value = tcbExpression(this.node.value, this.tcb, this.scope);
|
|
44967
|
+
const varStatement = tsCreateVariable(id, wrapForTypeChecker(value), import_typescript107.default.NodeFlags.Const);
|
|
44968
|
+
addParseSpanInfo(varStatement.declarationList.declarations[0], this.node.sourceSpan);
|
|
44969
|
+
this.scope.addStatement(varStatement);
|
|
44970
|
+
return id;
|
|
44971
|
+
}
|
|
44972
|
+
};
|
|
44732
44973
|
var TcbTemplateBodyOp = class extends TcbOp {
|
|
44733
44974
|
constructor(tcb, scope, template2) {
|
|
44734
44975
|
super();
|
|
@@ -45532,6 +45773,7 @@ var _Scope = class {
|
|
|
45532
45773
|
this.referenceOpMap = /* @__PURE__ */ new Map();
|
|
45533
45774
|
this.templateCtxOpMap = /* @__PURE__ */ new Map();
|
|
45534
45775
|
this.varMap = /* @__PURE__ */ new Map();
|
|
45776
|
+
this.letDeclOpMap = /* @__PURE__ */ new Map();
|
|
45535
45777
|
this.statements = [];
|
|
45536
45778
|
}
|
|
45537
45779
|
static forNodes(tcb, parentScope, scopedNode, children, guard) {
|
|
@@ -45569,6 +45811,14 @@ var _Scope = class {
|
|
|
45569
45811
|
}
|
|
45570
45812
|
for (const node of children) {
|
|
45571
45813
|
scope.appendNode(node);
|
|
45814
|
+
if (node instanceof LetDeclaration) {
|
|
45815
|
+
const opIndex = scope.opQueue.push(new TcbLetDeclarationOp(tcb, scope, node)) - 1;
|
|
45816
|
+
if (scope.letDeclOpMap.has(node.name)) {
|
|
45817
|
+
tcb.oobRecorder.duplicateLetDeclaration(tcb.id, node);
|
|
45818
|
+
} else {
|
|
45819
|
+
scope.letDeclOpMap.set(node.name, opIndex);
|
|
45820
|
+
}
|
|
45821
|
+
}
|
|
45572
45822
|
}
|
|
45573
45823
|
return scope;
|
|
45574
45824
|
}
|
|
@@ -45619,9 +45869,20 @@ var _Scope = class {
|
|
|
45619
45869
|
return import_typescript107.default.factory.createBinaryExpression(parentGuards, import_typescript107.default.SyntaxKind.AmpersandAmpersandToken, this.guard);
|
|
45620
45870
|
}
|
|
45621
45871
|
}
|
|
45872
|
+
isLocal(node) {
|
|
45873
|
+
if (node instanceof Variable) {
|
|
45874
|
+
return this.varMap.has(node);
|
|
45875
|
+
}
|
|
45876
|
+
if (node instanceof LetDeclaration) {
|
|
45877
|
+
return this.letDeclOpMap.has(node.name);
|
|
45878
|
+
}
|
|
45879
|
+
return this.referenceOpMap.has(node);
|
|
45880
|
+
}
|
|
45622
45881
|
resolveLocal(ref, directive) {
|
|
45623
45882
|
if (ref instanceof Reference && this.referenceOpMap.has(ref)) {
|
|
45624
45883
|
return this.resolveOp(this.referenceOpMap.get(ref));
|
|
45884
|
+
} else if (ref instanceof LetDeclaration && this.letDeclOpMap.has(ref.name)) {
|
|
45885
|
+
return this.resolveOp(this.letDeclOpMap.get(ref.name));
|
|
45625
45886
|
} else if (ref instanceof Variable && this.varMap.has(ref)) {
|
|
45626
45887
|
const opIndexOrNode = this.varMap.get(ref);
|
|
45627
45888
|
return typeof opIndexOrNode === "number" ? this.resolveOp(opIndexOrNode) : opIndexOrNode;
|
|
@@ -45898,15 +46159,24 @@ var TcbExpressionTranslator = class {
|
|
|
45898
46159
|
}
|
|
45899
46160
|
resolve(ast) {
|
|
45900
46161
|
if (ast instanceof PropertyRead && ast.receiver instanceof ImplicitReceiver) {
|
|
45901
|
-
|
|
46162
|
+
const target = this.tcb.boundTarget.getExpressionTarget(ast);
|
|
46163
|
+
if (target instanceof LetDeclaration) {
|
|
46164
|
+
this.validateLetDeclarationAccess(target, ast);
|
|
46165
|
+
}
|
|
46166
|
+
return target === null ? null : this.getTargetNodeExpression(target, ast);
|
|
45902
46167
|
} else if (ast instanceof PropertyWrite && ast.receiver instanceof ImplicitReceiver) {
|
|
45903
|
-
const target = this.
|
|
46168
|
+
const target = this.tcb.boundTarget.getExpressionTarget(ast);
|
|
45904
46169
|
if (target === null) {
|
|
45905
46170
|
return null;
|
|
45906
46171
|
}
|
|
46172
|
+
const targetExpression = this.getTargetNodeExpression(target, ast);
|
|
45907
46173
|
const expr = this.translate(ast.value);
|
|
45908
|
-
const result = import_typescript107.default.factory.createParenthesizedExpression(import_typescript107.default.factory.createBinaryExpression(
|
|
46174
|
+
const result = import_typescript107.default.factory.createParenthesizedExpression(import_typescript107.default.factory.createBinaryExpression(targetExpression, import_typescript107.default.SyntaxKind.EqualsToken, expr));
|
|
45909
46175
|
addParseSpanInfo(result, ast.sourceSpan);
|
|
46176
|
+
if (target instanceof LetDeclaration) {
|
|
46177
|
+
markIgnoreDiagnostics(result);
|
|
46178
|
+
this.tcb.oobRecorder.illegalWriteToLetDeclaration(this.tcb.id, ast, target);
|
|
46179
|
+
}
|
|
45910
46180
|
return result;
|
|
45911
46181
|
} else if (ast instanceof ImplicitReceiver) {
|
|
45912
46182
|
return import_typescript107.default.factory.createThis();
|
|
@@ -45944,10 +46214,11 @@ var TcbExpressionTranslator = class {
|
|
|
45944
46214
|
addParseSpanInfo(result, ast.sourceSpan);
|
|
45945
46215
|
return result;
|
|
45946
46216
|
}
|
|
45947
|
-
const
|
|
45948
|
-
if (
|
|
46217
|
+
const target = this.tcb.boundTarget.getExpressionTarget(ast);
|
|
46218
|
+
if (target === null) {
|
|
45949
46219
|
return null;
|
|
45950
46220
|
}
|
|
46221
|
+
const receiver = this.getTargetNodeExpression(target, ast);
|
|
45951
46222
|
const method = wrapForDiagnostics(receiver);
|
|
45952
46223
|
addParseSpanInfo(method, ast.receiver.nameSpan);
|
|
45953
46224
|
const args = ast.args.map((arg) => this.translate(arg));
|
|
@@ -45958,15 +46229,19 @@ var TcbExpressionTranslator = class {
|
|
|
45958
46229
|
return null;
|
|
45959
46230
|
}
|
|
45960
46231
|
}
|
|
45961
|
-
|
|
45962
|
-
const
|
|
45963
|
-
|
|
45964
|
-
return null;
|
|
45965
|
-
}
|
|
45966
|
-
const expr = this.scope.resolve(binding);
|
|
45967
|
-
addParseSpanInfo(expr, ast.sourceSpan);
|
|
46232
|
+
getTargetNodeExpression(targetNode, expressionNode) {
|
|
46233
|
+
const expr = this.scope.resolve(targetNode);
|
|
46234
|
+
addParseSpanInfo(expr, expressionNode.sourceSpan);
|
|
45968
46235
|
return expr;
|
|
45969
46236
|
}
|
|
46237
|
+
validateLetDeclarationAccess(target, ast) {
|
|
46238
|
+
const targetStart = target.sourceSpan.start.offset;
|
|
46239
|
+
const targetEnd = target.sourceSpan.end.offset;
|
|
46240
|
+
const astStart = ast.sourceSpan.start;
|
|
46241
|
+
if ((targetStart > astStart || astStart >= targetStart && astStart <= targetEnd) && this.scope.isLocal(target)) {
|
|
46242
|
+
this.tcb.oobRecorder.letUsedBeforeDefinition(this.tcb.id, ast, target);
|
|
46243
|
+
}
|
|
46244
|
+
}
|
|
45970
46245
|
};
|
|
45971
46246
|
function tcbCallTypeCtor(dir, tcb, inputs) {
|
|
45972
46247
|
const typeCtor = tcb.env.typeCtorFor(dir);
|
|
@@ -46109,6 +46384,8 @@ var TcbEventHandlerTranslator = class extends TcbExpressionTranslator {
|
|
|
46109
46384
|
}
|
|
46110
46385
|
return super.resolve(ast);
|
|
46111
46386
|
}
|
|
46387
|
+
validateLetDeclarationAccess() {
|
|
46388
|
+
}
|
|
46112
46389
|
};
|
|
46113
46390
|
var TcbForLoopTrackTranslator = class extends TcbExpressionTranslator {
|
|
46114
46391
|
constructor(tcb, scope, block) {
|
|
@@ -46124,7 +46401,7 @@ var TcbForLoopTrackTranslator = class extends TcbExpressionTranslator {
|
|
|
46124
46401
|
resolve(ast) {
|
|
46125
46402
|
if (ast instanceof PropertyRead && ast.receiver instanceof ImplicitReceiver) {
|
|
46126
46403
|
const target = this.tcb.boundTarget.getExpressionTarget(ast);
|
|
46127
|
-
if (target !== null && !this.allowedVariables.has(target)) {
|
|
46404
|
+
if (target !== null && (!(target instanceof Variable) || !this.allowedVariables.has(target))) {
|
|
46128
46405
|
this.tcb.oobRecorder.illegalForLoopTrackAccess(this.tcb.id, this.block, ast);
|
|
46129
46406
|
}
|
|
46130
46407
|
}
|
|
@@ -46132,7 +46409,7 @@ var TcbForLoopTrackTranslator = class extends TcbExpressionTranslator {
|
|
|
46132
46409
|
}
|
|
46133
46410
|
};
|
|
46134
46411
|
|
|
46135
|
-
// bazel-out/
|
|
46412
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
|
|
46136
46413
|
var import_typescript108 = __toESM(require("typescript"), 1);
|
|
46137
46414
|
var TypeCheckFile = class extends Environment {
|
|
46138
46415
|
constructor(fileName, config, refEmitter, reflector, compilerHost) {
|
|
@@ -46180,7 +46457,7 @@ var TypeCheckFile = class extends Environment {
|
|
|
46180
46457
|
}
|
|
46181
46458
|
};
|
|
46182
46459
|
|
|
46183
|
-
// bazel-out/
|
|
46460
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
46184
46461
|
var InliningMode;
|
|
46185
46462
|
(function(InliningMode2) {
|
|
46186
46463
|
InliningMode2[InliningMode2["InlineOps"] = 0] = "InlineOps";
|
|
@@ -46432,7 +46709,7 @@ var TypeCtorOp = class {
|
|
|
46432
46709
|
}
|
|
46433
46710
|
};
|
|
46434
46711
|
|
|
46435
|
-
// bazel-out/
|
|
46712
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/line_mappings.mjs
|
|
46436
46713
|
var LF_CHAR = 10;
|
|
46437
46714
|
var CR_CHAR = 13;
|
|
46438
46715
|
var LINE_SEP_CHAR = 8232;
|
|
@@ -46473,7 +46750,7 @@ function findClosestLineStartPosition(linesMap, position, low = 0, high = linesM
|
|
|
46473
46750
|
return low - 1;
|
|
46474
46751
|
}
|
|
46475
46752
|
|
|
46476
|
-
// bazel-out/
|
|
46753
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
|
|
46477
46754
|
var TemplateSource = class {
|
|
46478
46755
|
constructor(mapping, file) {
|
|
46479
46756
|
this.mapping = mapping;
|
|
@@ -46524,7 +46801,7 @@ var TemplateSourceManager = class {
|
|
|
46524
46801
|
}
|
|
46525
46802
|
};
|
|
46526
46803
|
|
|
46527
|
-
// bazel-out/
|
|
46804
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
|
|
46528
46805
|
var import_typescript110 = __toESM(require("typescript"), 1);
|
|
46529
46806
|
var SymbolBuilder = class {
|
|
46530
46807
|
constructor(tcbPath, tcbIsShim, typeCheckBlock, templateData, componentScopeReader, getTypeChecker) {
|
|
@@ -46551,6 +46828,8 @@ var SymbolBuilder = class {
|
|
|
46551
46828
|
symbol = this.getSymbolOfAstTemplate(node);
|
|
46552
46829
|
} else if (node instanceof Variable) {
|
|
46553
46830
|
symbol = this.getSymbolOfVariable(node);
|
|
46831
|
+
} else if (node instanceof LetDeclaration) {
|
|
46832
|
+
symbol = this.getSymbolOfLetDeclaration(node);
|
|
46554
46833
|
} else if (node instanceof Reference) {
|
|
46555
46834
|
symbol = this.getSymbolOfReference(node);
|
|
46556
46835
|
} else if (node instanceof BindingPipe) {
|
|
@@ -46934,6 +47213,31 @@ var SymbolBuilder = class {
|
|
|
46934
47213
|
};
|
|
46935
47214
|
}
|
|
46936
47215
|
}
|
|
47216
|
+
getSymbolOfLetDeclaration(decl) {
|
|
47217
|
+
const node = findFirstMatchingNode(this.typeCheckBlock, {
|
|
47218
|
+
withSpan: decl.sourceSpan,
|
|
47219
|
+
filter: import_typescript110.default.isVariableDeclaration
|
|
47220
|
+
});
|
|
47221
|
+
if (node === null) {
|
|
47222
|
+
return null;
|
|
47223
|
+
}
|
|
47224
|
+
const nodeValueSymbol = this.getSymbolOfTsNode(node.initializer);
|
|
47225
|
+
if (nodeValueSymbol === null) {
|
|
47226
|
+
return null;
|
|
47227
|
+
}
|
|
47228
|
+
return {
|
|
47229
|
+
tsType: nodeValueSymbol.tsType,
|
|
47230
|
+
tsSymbol: nodeValueSymbol.tsSymbol,
|
|
47231
|
+
initializerLocation: nodeValueSymbol.tcbLocation,
|
|
47232
|
+
kind: SymbolKind.LetDeclaration,
|
|
47233
|
+
declaration: decl,
|
|
47234
|
+
localVarLocation: {
|
|
47235
|
+
tcbPath: this.tcbPath,
|
|
47236
|
+
isShimFile: this.tcbIsShim,
|
|
47237
|
+
positionInFile: this.getTcbPositionForNode(node.name)
|
|
47238
|
+
}
|
|
47239
|
+
};
|
|
47240
|
+
}
|
|
46937
47241
|
getSymbolOfPipe(expression) {
|
|
46938
47242
|
const methodAccess = findFirstMatchingNode(this.typeCheckBlock, {
|
|
46939
47243
|
withSpan: expression.nameSpan,
|
|
@@ -47064,7 +47368,7 @@ function unwrapSignalInputWriteTAccessor(expr) {
|
|
|
47064
47368
|
};
|
|
47065
47369
|
}
|
|
47066
47370
|
|
|
47067
|
-
// bazel-out/
|
|
47371
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
|
|
47068
47372
|
var REGISTRY2 = new DomElementSchemaRegistry();
|
|
47069
47373
|
var TemplateTypeCheckerImpl = class {
|
|
47070
47374
|
constructor(originalProgram, programDriver, typeCheckAdapter, config, refEmitter, reflector, compilerHost, priorBuild, metaReader, localMetaReader, ngModuleIndex, componentScopeReader, typeCheckScopeRegistry, perf) {
|
|
@@ -47764,7 +48068,7 @@ var SingleShimTypeCheckingHost = class extends SingleFileTypeCheckingHost {
|
|
|
47764
48068
|
}
|
|
47765
48069
|
};
|
|
47766
48070
|
|
|
47767
|
-
// bazel-out/
|
|
48071
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/symbol_util.mjs
|
|
47768
48072
|
var import_typescript113 = __toESM(require("typescript"), 1);
|
|
47769
48073
|
var SIGNAL_FNS = /* @__PURE__ */ new Set([
|
|
47770
48074
|
"WritableSignal",
|
|
@@ -47774,7 +48078,7 @@ var SIGNAL_FNS = /* @__PURE__ */ new Set([
|
|
|
47774
48078
|
"ModelSignal"
|
|
47775
48079
|
]);
|
|
47776
48080
|
function isSignalReference(symbol) {
|
|
47777
|
-
return (symbol.kind === SymbolKind.Expression || symbol.kind === SymbolKind.Variable) && (symbol.tsType.symbol !== void 0 && isSignalSymbol(symbol.tsType.symbol) || symbol.tsType.aliasSymbol !== void 0 && isSignalSymbol(symbol.tsType.aliasSymbol));
|
|
48081
|
+
return (symbol.kind === SymbolKind.Expression || symbol.kind === SymbolKind.Variable || symbol.kind === SymbolKind.LetDeclaration) && (symbol.tsType.symbol !== void 0 && isSignalSymbol(symbol.tsType.symbol) || symbol.tsType.aliasSymbol !== void 0 && isSignalSymbol(symbol.tsType.aliasSymbol));
|
|
47778
48082
|
}
|
|
47779
48083
|
function isSignalSymbol(symbol) {
|
|
47780
48084
|
const declarations = symbol.getDeclarations();
|
|
@@ -47784,7 +48088,7 @@ function isSignalSymbol(symbol) {
|
|
|
47784
48088
|
});
|
|
47785
48089
|
}
|
|
47786
48090
|
|
|
47787
|
-
// bazel-out/
|
|
48091
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/api/api.mjs
|
|
47788
48092
|
var TemplateCheckWithVisitor = class {
|
|
47789
48093
|
run(ctx, component, template2) {
|
|
47790
48094
|
const visitor = new TemplateVisitor2(ctx, component, this);
|
|
@@ -47901,6 +48205,9 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor2 {
|
|
|
47901
48205
|
(_a2 = block.expressionAlias) == null ? void 0 : _a2.visit(this);
|
|
47902
48206
|
this.visitAllNodes(block.children);
|
|
47903
48207
|
}
|
|
48208
|
+
visitLetDeclaration(decl) {
|
|
48209
|
+
this.visitAst(decl.value);
|
|
48210
|
+
}
|
|
47904
48211
|
getDiagnostics(template2) {
|
|
47905
48212
|
this.diagnostics = [];
|
|
47906
48213
|
this.visitAllNodes(template2);
|
|
@@ -47908,7 +48215,7 @@ var TemplateVisitor2 = class extends RecursiveAstVisitor2 {
|
|
|
47908
48215
|
}
|
|
47909
48216
|
};
|
|
47910
48217
|
|
|
47911
|
-
// bazel-out/
|
|
48218
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.mjs
|
|
47912
48219
|
var SIGNAL_INSTANCE_PROPERTIES = /* @__PURE__ */ new Set(["set", "update", "asReadonly"]);
|
|
47913
48220
|
var FUNCTION_INSTANCE_PROPERTIES = /* @__PURE__ */ new Set(["name", "length", "prototype"]);
|
|
47914
48221
|
var InterpolatedSignalCheck = class extends TemplateCheckWithVisitor {
|
|
@@ -47924,7 +48231,7 @@ var InterpolatedSignalCheck = class extends TemplateCheckWithVisitor {
|
|
|
47924
48231
|
if (symbol !== null && symbol.kind === SymbolKind.Input) {
|
|
47925
48232
|
return [];
|
|
47926
48233
|
}
|
|
47927
|
-
if (node.type === BindingType.Property && node.value instanceof ASTWithSource && node.value.ast instanceof PropertyRead) {
|
|
48234
|
+
if ((node.type === BindingType.Property || node.type === BindingType.Class || node.type === BindingType.Style || node.type === BindingType.Attribute || node.type === BindingType.Animation) && node.value instanceof ASTWithSource && node.value.ast instanceof PropertyRead) {
|
|
47928
48235
|
return buildDiagnosticForSignal(ctx, node.value.ast, component);
|
|
47929
48236
|
}
|
|
47930
48237
|
}
|
|
@@ -47960,7 +48267,7 @@ var factory = {
|
|
|
47960
48267
|
create: () => new InterpolatedSignalCheck()
|
|
47961
48268
|
};
|
|
47962
48269
|
|
|
47963
|
-
// bazel-out/
|
|
48270
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.mjs
|
|
47964
48271
|
var InvalidBananaInBoxCheck = class extends TemplateCheckWithVisitor {
|
|
47965
48272
|
constructor() {
|
|
47966
48273
|
super(...arguments);
|
|
@@ -47985,7 +48292,7 @@ var factory2 = {
|
|
|
47985
48292
|
create: () => new InvalidBananaInBoxCheck()
|
|
47986
48293
|
};
|
|
47987
48294
|
|
|
47988
|
-
// bazel-out/
|
|
48295
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.mjs
|
|
47989
48296
|
var KNOWN_CONTROL_FLOW_DIRECTIVES = /* @__PURE__ */ new Map([
|
|
47990
48297
|
["ngIf", { directive: "NgIf", builtIn: "@if" }],
|
|
47991
48298
|
["ngFor", { directive: "NgFor", builtIn: "@for" }],
|
|
@@ -48029,7 +48336,7 @@ var factory3 = {
|
|
|
48029
48336
|
}
|
|
48030
48337
|
};
|
|
48031
48338
|
|
|
48032
|
-
// bazel-out/
|
|
48339
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.mjs
|
|
48033
48340
|
var MissingNgForOfLetCheck = class extends TemplateCheckWithVisitor {
|
|
48034
48341
|
constructor() {
|
|
48035
48342
|
super(...arguments);
|
|
@@ -48061,7 +48368,7 @@ var factory4 = {
|
|
|
48061
48368
|
create: () => new MissingNgForOfLetCheck()
|
|
48062
48369
|
};
|
|
48063
48370
|
|
|
48064
|
-
// bazel-out/
|
|
48371
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.mjs
|
|
48065
48372
|
var import_typescript114 = __toESM(require("typescript"), 1);
|
|
48066
48373
|
var NullishCoalescingNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
48067
48374
|
constructor() {
|
|
@@ -48105,7 +48412,7 @@ var factory5 = {
|
|
|
48105
48412
|
}
|
|
48106
48413
|
};
|
|
48107
48414
|
|
|
48108
|
-
// bazel-out/
|
|
48415
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.mjs
|
|
48109
48416
|
var import_typescript115 = __toESM(require("typescript"), 1);
|
|
48110
48417
|
var OptionalChainNotNullableCheck = class extends TemplateCheckWithVisitor {
|
|
48111
48418
|
constructor() {
|
|
@@ -48150,7 +48457,7 @@ var factory6 = {
|
|
|
48150
48457
|
}
|
|
48151
48458
|
};
|
|
48152
48459
|
|
|
48153
|
-
// bazel-out/
|
|
48460
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.mjs
|
|
48154
48461
|
var STYLE_SUFFIXES = ["px", "%", "em"];
|
|
48155
48462
|
var SuffixNotSupportedCheck = class extends TemplateCheckWithVisitor {
|
|
48156
48463
|
constructor() {
|
|
@@ -48173,7 +48480,7 @@ var factory7 = {
|
|
|
48173
48480
|
create: () => new SuffixNotSupportedCheck()
|
|
48174
48481
|
};
|
|
48175
48482
|
|
|
48176
|
-
// bazel-out/
|
|
48483
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.mjs
|
|
48177
48484
|
var TextAttributeNotBindingSpec = class extends TemplateCheckWithVisitor {
|
|
48178
48485
|
constructor() {
|
|
48179
48486
|
super(...arguments);
|
|
@@ -48211,10 +48518,10 @@ var factory8 = {
|
|
|
48211
48518
|
create: () => new TextAttributeNotBindingSpec()
|
|
48212
48519
|
};
|
|
48213
48520
|
|
|
48214
|
-
// bazel-out/
|
|
48521
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
48215
48522
|
var import_typescript116 = __toESM(require("typescript"), 1);
|
|
48216
48523
|
|
|
48217
|
-
// bazel-out/
|
|
48524
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/api/src/public_options.mjs
|
|
48218
48525
|
var DiagnosticCategoryLabel;
|
|
48219
48526
|
(function(DiagnosticCategoryLabel2) {
|
|
48220
48527
|
DiagnosticCategoryLabel2["Warning"] = "warning";
|
|
@@ -48222,7 +48529,7 @@ var DiagnosticCategoryLabel;
|
|
|
48222
48529
|
DiagnosticCategoryLabel2["Suppress"] = "suppress";
|
|
48223
48530
|
})(DiagnosticCategoryLabel || (DiagnosticCategoryLabel = {}));
|
|
48224
48531
|
|
|
48225
|
-
// bazel-out/
|
|
48532
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/src/extended_template_checker.mjs
|
|
48226
48533
|
var ExtendedTemplateCheckerImpl = class {
|
|
48227
48534
|
constructor(templateTypeChecker, typeChecker, templateCheckFactories, options) {
|
|
48228
48535
|
var _a2, _b2, _c2, _d2, _e2;
|
|
@@ -48274,7 +48581,7 @@ function assertNever(value) {
|
|
|
48274
48581
|
${value}`);
|
|
48275
48582
|
}
|
|
48276
48583
|
|
|
48277
|
-
// bazel-out/
|
|
48584
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/index.mjs
|
|
48278
48585
|
var ALL_DIAGNOSTIC_FACTORIES = [
|
|
48279
48586
|
factory2,
|
|
48280
48587
|
factory5,
|
|
@@ -48290,7 +48597,7 @@ var SUPPORTED_DIAGNOSTIC_NAMES = /* @__PURE__ */ new Set([
|
|
|
48290
48597
|
...ALL_DIAGNOSTIC_FACTORIES.map((factory9) => factory9.name)
|
|
48291
48598
|
]);
|
|
48292
48599
|
|
|
48293
|
-
// bazel-out/
|
|
48600
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/template_semantics/src/template_semantics_checker.mjs
|
|
48294
48601
|
var import_typescript117 = __toESM(require("typescript"), 1);
|
|
48295
48602
|
var TemplateSemanticsCheckerImpl = class {
|
|
48296
48603
|
constructor(templateTypeChecker) {
|
|
@@ -48348,22 +48655,29 @@ var ExpressionsSemanticsVisitor = class extends RecursiveAstVisitor2 {
|
|
|
48348
48655
|
return;
|
|
48349
48656
|
}
|
|
48350
48657
|
const target = this.templateTypeChecker.getExpressionTarget(ast, this.component);
|
|
48351
|
-
|
|
48658
|
+
const isVariable2 = target instanceof Variable;
|
|
48659
|
+
const isLet = target instanceof LetDeclaration;
|
|
48660
|
+
if (!isVariable2 && !isLet) {
|
|
48352
48661
|
return;
|
|
48353
48662
|
}
|
|
48354
48663
|
const symbol = this.templateTypeChecker.getSymbolOfNode(target, this.component);
|
|
48355
48664
|
if (symbol !== null && !isSignalReference(symbol)) {
|
|
48356
|
-
|
|
48665
|
+
let errorMessage;
|
|
48666
|
+
if (isVariable2) {
|
|
48667
|
+
errorMessage = `Cannot use a non-signal variable '${target.name}' in a two-way binding expression. Template variables are read-only.`;
|
|
48668
|
+
} else {
|
|
48669
|
+
errorMessage = `Cannot use non-signal @let declaration '${target.name}' in a two-way binding expression. @let declarations are read-only.`;
|
|
48670
|
+
}
|
|
48357
48671
|
this.diagnostics.push(this.makeIllegalTemplateVarDiagnostic(target, context, errorMessage));
|
|
48358
48672
|
}
|
|
48359
48673
|
}
|
|
48360
48674
|
makeIllegalTemplateVarDiagnostic(target, expressionNode, errorMessage) {
|
|
48361
|
-
|
|
48675
|
+
const span = target instanceof Variable ? target.valueSpan || target.sourceSpan : target.sourceSpan;
|
|
48362
48676
|
return this.templateTypeChecker.makeTemplateDiagnostic(this.component, expressionNode.handlerSpan, import_typescript117.default.DiagnosticCategory.Error, ngErrorCode(ErrorCode.WRITE_TO_READ_ONLY_VARIABLE), errorMessage, [
|
|
48363
48677
|
{
|
|
48364
|
-
text: `
|
|
48365
|
-
start:
|
|
48366
|
-
end:
|
|
48678
|
+
text: `'${target.name}' is declared here.`,
|
|
48679
|
+
start: span.start.offset,
|
|
48680
|
+
end: span.end.offset,
|
|
48367
48681
|
sourceFile: this.component.getSourceFile()
|
|
48368
48682
|
}
|
|
48369
48683
|
]);
|
|
@@ -48373,7 +48687,7 @@ function unwrapAstWithSource(ast) {
|
|
|
48373
48687
|
return ast instanceof ASTWithSource ? ast.ast : ast;
|
|
48374
48688
|
}
|
|
48375
48689
|
|
|
48376
|
-
// bazel-out/
|
|
48690
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/validation/src/rules/initializer_api_usage_rule.mjs
|
|
48377
48691
|
var import_typescript118 = __toESM(require("typescript"), 1);
|
|
48378
48692
|
var APIS_TO_CHECK = [
|
|
48379
48693
|
INPUT_INITIALIZER_FN,
|
|
@@ -48424,7 +48738,7 @@ var InitializerApiUsageRule = class {
|
|
|
48424
48738
|
}
|
|
48425
48739
|
};
|
|
48426
48740
|
|
|
48427
|
-
// bazel-out/
|
|
48741
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/validation/src/source_file_validator.mjs
|
|
48428
48742
|
var SourceFileValidator = class {
|
|
48429
48743
|
constructor(reflector, importedSymbolsTracker) {
|
|
48430
48744
|
this.rules = [new InitializerApiUsageRule(reflector, importedSymbolsTracker)];
|
|
@@ -48462,7 +48776,7 @@ var SourceFileValidator = class {
|
|
|
48462
48776
|
}
|
|
48463
48777
|
};
|
|
48464
48778
|
|
|
48465
|
-
// bazel-out/
|
|
48779
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/core_version.mjs
|
|
48466
48780
|
function coreHasSymbol(program, symbol) {
|
|
48467
48781
|
const checker = program.getTypeChecker();
|
|
48468
48782
|
for (const sf of program.getSourceFiles().filter(isMaybeCore)) {
|
|
@@ -48481,7 +48795,7 @@ function isMaybeCore(sf) {
|
|
|
48481
48795
|
return sf.isDeclarationFile && sf.fileName.includes("@angular/core") && sf.fileName.endsWith("index.d.ts");
|
|
48482
48796
|
}
|
|
48483
48797
|
|
|
48484
|
-
// bazel-out/
|
|
48798
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/feature_detection.mjs
|
|
48485
48799
|
var import_semver = __toESM(require_semver2(), 1);
|
|
48486
48800
|
function coreVersionSupportsFeature(coreVersion, minVersion) {
|
|
48487
48801
|
if (coreVersion === `0.0.0-${"PLACEHOLDER"}`) {
|
|
@@ -48490,7 +48804,7 @@ function coreVersionSupportsFeature(coreVersion, minVersion) {
|
|
|
48490
48804
|
return import_semver.default.satisfies(coreVersion, minVersion);
|
|
48491
48805
|
}
|
|
48492
48806
|
|
|
48493
|
-
// bazel-out/
|
|
48807
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
48494
48808
|
var CompilationTicketKind;
|
|
48495
48809
|
(function(CompilationTicketKind2) {
|
|
48496
48810
|
CompilationTicketKind2[CompilationTicketKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -48545,7 +48859,7 @@ var NgCompiler = class {
|
|
|
48545
48859
|
}
|
|
48546
48860
|
}
|
|
48547
48861
|
constructor(adapter, options, inputProgram, programDriver, incrementalStrategy, incrementalCompilation, enableTemplateTypeChecker, usePoisonedData, livePerfRecorder) {
|
|
48548
|
-
var _a2, _b2, _c2;
|
|
48862
|
+
var _a2, _b2, _c2, _d2;
|
|
48549
48863
|
this.adapter = adapter;
|
|
48550
48864
|
this.options = options;
|
|
48551
48865
|
this.inputProgram = inputProgram;
|
|
@@ -48560,7 +48874,8 @@ var NgCompiler = class {
|
|
|
48560
48874
|
this.delegatingPerfRecorder = new DelegatingPerfRecorder(this.perfRecorder);
|
|
48561
48875
|
this.enableTemplateTypeChecker = enableTemplateTypeChecker || ((_a2 = options["_enableTemplateTypeChecker"]) != null ? _a2 : false);
|
|
48562
48876
|
this.enableBlockSyntax = (_b2 = options["_enableBlockSyntax"]) != null ? _b2 : true;
|
|
48563
|
-
this.
|
|
48877
|
+
this.enableLetSyntax = (_c2 = options["_enableLetSyntax"]) != null ? _c2 : false;
|
|
48878
|
+
this.angularCoreVersion = (_d2 = options["_angularCoreVersion"]) != null ? _d2 : null;
|
|
48564
48879
|
this.constructionDiagnostics.push(...this.adapter.constructionDiagnostics, ...verifyCompatibleTypeCheckOptions(this.options));
|
|
48565
48880
|
this.currentProgram = inputProgram;
|
|
48566
48881
|
this.closureCompilerEnabled = !!this.options.annotateForClosureCompiler;
|
|
@@ -49077,7 +49392,7 @@ var NgCompiler = class {
|
|
|
49077
49392
|
throw new Error('JIT mode support ("supportJitMode" option) cannot be disabled when forbidOrphanComponents is set to true');
|
|
49078
49393
|
}
|
|
49079
49394
|
const handlers = [
|
|
49080
|
-
new ComponentDecoratorHandler(reflector, evaluator, metaRegistry, metaReader, scopeReader, depScopeReader, ngModuleScopeRegistry, typeCheckScopeRegistry, resourceRegistry, isCore, strictCtorDeps, this.resourceManager, this.adapter.rootDirs, this.options.preserveWhitespaces || false, this.options.i18nUseExternalIds !== false, this.options.enableI18nLegacyMessageIdFormat !== false, this.usePoisonedData, this.options.i18nNormalizeLineEndingsInICUs === true, this.moduleResolver, this.cycleAnalyzer, cycleHandlingStrategy, refEmitter, referencesRegistry, this.incrementalCompilation.depGraph, injectableRegistry, semanticDepGraphUpdater, this.closureCompilerEnabled, this.delegatingPerfRecorder, hostDirectivesResolver, importTracker, supportTestBed, compilationMode, deferredSymbolsTracker, !!this.options.forbidOrphanComponents, this.enableBlockSyntax, localCompilationExtraImportsTracker),
|
|
49395
|
+
new ComponentDecoratorHandler(reflector, evaluator, metaRegistry, metaReader, scopeReader, depScopeReader, ngModuleScopeRegistry, typeCheckScopeRegistry, resourceRegistry, isCore, strictCtorDeps, this.resourceManager, this.adapter.rootDirs, this.options.preserveWhitespaces || false, this.options.i18nUseExternalIds !== false, this.options.enableI18nLegacyMessageIdFormat !== false, this.usePoisonedData, this.options.i18nNormalizeLineEndingsInICUs === true, this.moduleResolver, this.cycleAnalyzer, cycleHandlingStrategy, refEmitter, referencesRegistry, this.incrementalCompilation.depGraph, injectableRegistry, semanticDepGraphUpdater, this.closureCompilerEnabled, this.delegatingPerfRecorder, hostDirectivesResolver, importTracker, supportTestBed, compilationMode, deferredSymbolsTracker, !!this.options.forbidOrphanComponents, this.enableBlockSyntax, this.enableLetSyntax, localCompilationExtraImportsTracker),
|
|
49081
49396
|
new DirectiveDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, metaReader, injectableRegistry, refEmitter, referencesRegistry, isCore, strictCtorDeps, semanticDepGraphUpdater, this.closureCompilerEnabled, this.delegatingPerfRecorder, importTracker, supportTestBed, compilationMode, !!this.options.generateExtraImportsInLocalMode),
|
|
49082
49397
|
new PipeDecoratorHandler(reflector, evaluator, metaRegistry, ngModuleScopeRegistry, injectableRegistry, isCore, this.delegatingPerfRecorder, supportTestBed, compilationMode, !!this.options.generateExtraImportsInLocalMode),
|
|
49083
49398
|
new InjectableDecoratorHandler(reflector, evaluator, isCore, strictCtorDeps, injectableRegistry, this.delegatingPerfRecorder, supportTestBed, compilationMode),
|
|
@@ -49272,7 +49587,7 @@ function versionMapFromProgram(program, driver) {
|
|
|
49272
49587
|
return versions;
|
|
49273
49588
|
}
|
|
49274
49589
|
|
|
49275
|
-
// bazel-out/
|
|
49590
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
|
|
49276
49591
|
var import_typescript121 = __toESM(require("typescript"), 1);
|
|
49277
49592
|
var DelegatingCompilerHost2 = class {
|
|
49278
49593
|
get jsDocParsingMode() {
|
|
@@ -49411,7 +49726,7 @@ var NgCompilerHost = class extends DelegatingCompilerHost2 {
|
|
|
49411
49726
|
}
|
|
49412
49727
|
};
|
|
49413
49728
|
|
|
49414
|
-
// bazel-out/
|
|
49729
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/program.mjs
|
|
49415
49730
|
var NgtscProgram = class {
|
|
49416
49731
|
constructor(rootNames, options, delegateHost, oldProgram) {
|
|
49417
49732
|
this.options = options;
|
|
@@ -49638,18 +49953,18 @@ function mergeEmitResults(emitResults) {
|
|
|
49638
49953
|
return { diagnostics, emitSkipped, emittedFiles };
|
|
49639
49954
|
}
|
|
49640
49955
|
|
|
49641
|
-
// bazel-out/
|
|
49956
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
|
|
49642
49957
|
function createProgram({ rootNames, options, host, oldProgram }) {
|
|
49643
49958
|
return new NgtscProgram(rootNames, options, host, oldProgram);
|
|
49644
49959
|
}
|
|
49645
49960
|
|
|
49646
|
-
// bazel-out/
|
|
49961
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
|
|
49647
49962
|
var import_typescript125 = __toESM(require("typescript"), 1);
|
|
49648
49963
|
|
|
49649
|
-
// bazel-out/
|
|
49964
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/util.mjs
|
|
49650
49965
|
var import_typescript124 = __toESM(require("typescript"), 1);
|
|
49651
49966
|
|
|
49652
|
-
// bazel-out/
|
|
49967
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/private/tooling.mjs
|
|
49653
49968
|
var GLOBAL_DEFS_FOR_TERSER = {
|
|
49654
49969
|
ngDevMode: false,
|
|
49655
49970
|
ngI18nClosureMode: false
|
|
@@ -49658,7 +49973,7 @@ var GLOBAL_DEFS_FOR_TERSER_WITH_AOT = __spreadProps(__spreadValues({}, GLOBAL_DE
|
|
|
49658
49973
|
ngJitMode: false
|
|
49659
49974
|
});
|
|
49660
49975
|
|
|
49661
|
-
// bazel-out/
|
|
49976
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/logging/src/logger.mjs
|
|
49662
49977
|
var LogLevel;
|
|
49663
49978
|
(function(LogLevel2) {
|
|
49664
49979
|
LogLevel2[LogLevel2["debug"] = 0] = "debug";
|
|
@@ -49667,7 +49982,7 @@ var LogLevel;
|
|
|
49667
49982
|
LogLevel2[LogLevel2["error"] = 3] = "error";
|
|
49668
49983
|
})(LogLevel || (LogLevel = {}));
|
|
49669
49984
|
|
|
49670
|
-
// bazel-out/
|
|
49985
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/logging/src/console_logger.mjs
|
|
49671
49986
|
var RESET = "\x1B[0m";
|
|
49672
49987
|
var RED = "\x1B[31m";
|
|
49673
49988
|
var YELLOW = "\x1B[33m";
|
|
@@ -49676,18 +49991,18 @@ var DEBUG = `${BLUE}Debug:${RESET}`;
|
|
|
49676
49991
|
var WARN = `${YELLOW}Warning:${RESET}`;
|
|
49677
49992
|
var ERROR = `${RED}Error:${RESET}`;
|
|
49678
49993
|
|
|
49679
|
-
// bazel-out/
|
|
49994
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/index.mjs
|
|
49680
49995
|
setFileSystem(new NodeJSFileSystem());
|
|
49681
49996
|
|
|
49682
|
-
// bazel-out/
|
|
49997
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/index.mjs
|
|
49683
49998
|
var import_fs2 = require("fs");
|
|
49684
49999
|
var import_path8 = require("path");
|
|
49685
50000
|
var import_typescript138 = __toESM(require("typescript"), 1);
|
|
49686
50001
|
|
|
49687
|
-
// bazel-out/
|
|
50002
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
|
|
49688
50003
|
var import_typescript127 = __toESM(require("typescript"), 1);
|
|
49689
50004
|
|
|
49690
|
-
// bazel-out/
|
|
50005
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/import_manager.mjs
|
|
49691
50006
|
var import_path4 = require("path");
|
|
49692
50007
|
var import_typescript126 = __toESM(require("typescript"), 1);
|
|
49693
50008
|
var ImportManager2 = class {
|
|
@@ -49871,7 +50186,7 @@ ${text2}`;
|
|
|
49871
50186
|
}
|
|
49872
50187
|
};
|
|
49873
50188
|
|
|
49874
|
-
// bazel-out/
|
|
50189
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
|
|
49875
50190
|
var ChangeTracker = class {
|
|
49876
50191
|
constructor(_printer, _importRemapper) {
|
|
49877
50192
|
__publicField(this, "_printer");
|
|
@@ -49934,7 +50249,7 @@ function normalizePath(path4) {
|
|
|
49934
50249
|
return path4.replace(/\\/g, "/");
|
|
49935
50250
|
}
|
|
49936
50251
|
|
|
49937
|
-
// bazel-out/
|
|
50252
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
|
|
49938
50253
|
var import_core19 = require("@angular-devkit/core");
|
|
49939
50254
|
function getProjectTsConfigPaths(tree) {
|
|
49940
50255
|
return __async(this, null, function* () {
|
|
@@ -50014,11 +50329,11 @@ function getWorkspace(tree) {
|
|
|
50014
50329
|
});
|
|
50015
50330
|
}
|
|
50016
50331
|
|
|
50017
|
-
// bazel-out/
|
|
50332
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
50018
50333
|
var import_path5 = require("path");
|
|
50019
50334
|
var import_typescript129 = __toESM(require("typescript"), 1);
|
|
50020
50335
|
|
|
50021
|
-
// bazel-out/
|
|
50336
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
|
|
50022
50337
|
var path3 = __toESM(require("path"), 1);
|
|
50023
50338
|
var import_typescript128 = __toESM(require("typescript"), 1);
|
|
50024
50339
|
function parseTsconfigFile(tsconfigPath, basePath) {
|
|
@@ -50035,7 +50350,7 @@ function parseTsconfigFile(tsconfigPath, basePath) {
|
|
|
50035
50350
|
return import_typescript128.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
|
|
50036
50351
|
}
|
|
50037
50352
|
|
|
50038
|
-
// bazel-out/
|
|
50353
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
50039
50354
|
function createProgramOptions(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles, optionOverrides) {
|
|
50040
50355
|
tsconfigPath = (0, import_path5.resolve)(basePath, tsconfigPath);
|
|
50041
50356
|
const parsed = parseTsconfigFile(tsconfigPath, (0, import_path5.dirname)(tsconfigPath));
|
|
@@ -50064,13 +50379,13 @@ function canMigrateFile(basePath, sourceFile, program) {
|
|
|
50064
50379
|
return !(0, import_path5.relative)(basePath, sourceFile.fileName).startsWith("..");
|
|
50065
50380
|
}
|
|
50066
50381
|
|
|
50067
|
-
// bazel-out/
|
|
50382
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/prune-modules.mjs
|
|
50068
50383
|
var import_typescript134 = __toESM(require("typescript"), 1);
|
|
50069
50384
|
|
|
50070
|
-
// bazel-out/
|
|
50385
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
|
|
50071
50386
|
var import_typescript131 = __toESM(require("typescript"), 1);
|
|
50072
50387
|
|
|
50073
|
-
// bazel-out/
|
|
50388
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
|
|
50074
50389
|
var import_typescript130 = __toESM(require("typescript"), 1);
|
|
50075
50390
|
function getImportOfIdentifier(typeChecker, node) {
|
|
50076
50391
|
const symbol = typeChecker.getSymbolAtLocation(node);
|
|
@@ -50121,7 +50436,7 @@ function findImportSpecifier(nodes, specifierName) {
|
|
|
50121
50436
|
});
|
|
50122
50437
|
}
|
|
50123
50438
|
|
|
50124
|
-
// bazel-out/
|
|
50439
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
|
|
50125
50440
|
function getCallDecoratorImport(typeChecker, decorator) {
|
|
50126
50441
|
if (!import_typescript131.default.isCallExpression(decorator.expression) || !import_typescript131.default.isIdentifier(decorator.expression.expression)) {
|
|
50127
50442
|
return null;
|
|
@@ -50130,7 +50445,7 @@ function getCallDecoratorImport(typeChecker, decorator) {
|
|
|
50130
50445
|
return getImportOfIdentifier(typeChecker, identifier);
|
|
50131
50446
|
}
|
|
50132
50447
|
|
|
50133
|
-
// bazel-out/
|
|
50448
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/ng_decorators.mjs
|
|
50134
50449
|
function getAngularDecorators2(typeChecker, decorators) {
|
|
50135
50450
|
return decorators.map((node) => ({ node, importData: getCallDecoratorImport(typeChecker, node) })).filter(({ importData }) => importData && importData.importModule.startsWith("@angular/")).map(({ node, importData }) => ({
|
|
50136
50451
|
node,
|
|
@@ -50140,7 +50455,7 @@ function getAngularDecorators2(typeChecker, decorators) {
|
|
|
50140
50455
|
}));
|
|
50141
50456
|
}
|
|
50142
50457
|
|
|
50143
|
-
// bazel-out/
|
|
50458
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/nodes.mjs
|
|
50144
50459
|
var import_typescript132 = __toESM(require("typescript"), 1);
|
|
50145
50460
|
function closestNode(node, predicate) {
|
|
50146
50461
|
let current = node.parent;
|
|
@@ -50153,7 +50468,7 @@ function closestNode(node, predicate) {
|
|
|
50153
50468
|
return null;
|
|
50154
50469
|
}
|
|
50155
50470
|
|
|
50156
|
-
// bazel-out/
|
|
50471
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/util.mjs
|
|
50157
50472
|
var import_path6 = require("path");
|
|
50158
50473
|
var import_typescript133 = __toESM(require("typescript"), 1);
|
|
50159
50474
|
var UniqueItemTracker = class {
|
|
@@ -50331,7 +50646,7 @@ function isClassReferenceInAngularModule(node, className, moduleName, typeChecke
|
|
|
50331
50646
|
}));
|
|
50332
50647
|
}
|
|
50333
50648
|
|
|
50334
|
-
// bazel-out/
|
|
50649
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/prune-modules.mjs
|
|
50335
50650
|
function pruneNgModules(program, host, basePath, rootFileNames, sourceFiles, printer, importRemapper, referenceLookupExcludedFiles) {
|
|
50336
50651
|
const filesToRemove = /* @__PURE__ */ new Set();
|
|
50337
50652
|
const tracker = new ChangeTracker(printer, importRemapper);
|
|
@@ -50530,14 +50845,14 @@ function findNgModuleDecorator(node, typeChecker) {
|
|
|
50530
50845
|
return decorators.find((decorator) => decorator.name === "NgModule") || null;
|
|
50531
50846
|
}
|
|
50532
50847
|
|
|
50533
|
-
// bazel-out/
|
|
50848
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/standalone-bootstrap.mjs
|
|
50534
50849
|
var import_path7 = require("path");
|
|
50535
50850
|
var import_typescript137 = __toESM(require("typescript"), 1);
|
|
50536
50851
|
|
|
50537
|
-
// bazel-out/
|
|
50852
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/to-standalone.mjs
|
|
50538
50853
|
var import_typescript136 = __toESM(require("typescript"), 1);
|
|
50539
50854
|
|
|
50540
|
-
// bazel-out/
|
|
50855
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/symbol.mjs
|
|
50541
50856
|
var import_typescript135 = __toESM(require("typescript"), 1);
|
|
50542
50857
|
function isReferenceToImport(typeChecker, node, importSpecifier) {
|
|
50543
50858
|
var _a2, _b2;
|
|
@@ -50546,7 +50861,7 @@ function isReferenceToImport(typeChecker, node, importSpecifier) {
|
|
|
50546
50861
|
return !!(((_a2 = nodeSymbol == null ? void 0 : nodeSymbol.declarations) == null ? void 0 : _a2[0]) && ((_b2 = importSymbol == null ? void 0 : importSymbol.declarations) == null ? void 0 : _b2[0])) && nodeSymbol.declarations[0] === importSymbol.declarations[0];
|
|
50547
50862
|
}
|
|
50548
50863
|
|
|
50549
|
-
// bazel-out/
|
|
50864
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/to-standalone.mjs
|
|
50550
50865
|
function toStandalone(sourceFiles, program, printer, fileImportRemapper, componentImportRemapper) {
|
|
50551
50866
|
const templateTypeChecker = program.compiler.getTemplateTypeChecker();
|
|
50552
50867
|
const typeChecker = program.getTsProgram().getTypeChecker();
|
|
@@ -50916,7 +51231,7 @@ function isStandaloneDeclaration(node, declarationsInMigration, templateTypeChec
|
|
|
50916
51231
|
return metadata != null && metadata.isStandalone;
|
|
50917
51232
|
}
|
|
50918
51233
|
|
|
50919
|
-
// bazel-out/
|
|
51234
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/standalone-bootstrap.mjs
|
|
50920
51235
|
function toStandaloneBootstrap(program, host, basePath, rootFileNames, sourceFiles, printer, importRemapper, referenceLookupExcludedFiles, componentImportRemapper) {
|
|
50921
51236
|
const tracker = new ChangeTracker(printer, importRemapper);
|
|
50922
51237
|
const typeChecker = program.getTsProgram().getTypeChecker();
|
|
@@ -51293,7 +51608,7 @@ function hasImport(program, rootFileNames, moduleName) {
|
|
|
51293
51608
|
return false;
|
|
51294
51609
|
}
|
|
51295
51610
|
|
|
51296
|
-
// bazel-out/
|
|
51611
|
+
// bazel-out/k8-fastbuild/bin/packages/core/schematics/ng-generate/standalone-migration/index.mjs
|
|
51297
51612
|
var MigrationMode;
|
|
51298
51613
|
(function(MigrationMode2) {
|
|
51299
51614
|
MigrationMode2["toStandalone"] = "convert-to-standalone";
|