@artel/artc 0.6.25212 → 0.6.25214
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/build/Cli.js +3 -3
- package/build/api/Api.js +4 -2
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +16 -2
- package/build/{chunk-XGS3PSIF.js → chunk-SKJMYOQR.js} +3 -3
- package/build/{chunk-MRSDFDBD.js → chunk-YCHDDDYS.js} +3 -3
- package/build/{chunk-DYVLHEXS.js → chunk-ZFBZFTRR.js} +1182 -1185
- package/build/types/analysis/Analyzer.d.ts +7 -8
- package/build/types/analysis/IdentifierExpressionMeaning.d.ts +1 -1
- package/build/types/analysis/PropertyAccessExpressionMeaning.d.ts +1 -2
- package/build/types/analysis/TypeMemberLookup.d.ts +14 -0
- package/build/types/analysis/WellKnownDeclarations.d.ts +3 -2
- package/build/types/diagnostic/DiagnosticCode.d.ts +112 -152
- package/build/types/emitter/Entities.d.ts +1 -0
- package/build/types/entities/MethodEntity.d.ts +6 -1
- package/build/types/entities/OperatorEntity.d.ts +3 -0
- package/build/types/entities/OperatorKind.d.ts +19 -20
- package/build/types/entities/VariableEntity.d.ts +8 -1
- package/build/types/tree/OperatorKind.d.ts +16 -17
- package/build/types/tree/green/Nodes.d.ts +1 -1
- package/build/types/tree/red/Nodes.d.ts +1 -1
- package/build/types/ts-interop/Entities.d.ts +8 -0
- package/build/types/types/StandardTypes.d.ts +2 -2
- package/package.json +1 -1
@@ -577,7 +577,7 @@ var UniqueWithComparatorQuery = class extends Query {
|
|
577
577
|
};
|
578
578
|
|
579
579
|
// source/common/Constants.ts
|
580
|
-
var ArtelVersion = true ? "0.6.
|
580
|
+
var ArtelVersion = true ? "0.6.25214" : "";
|
581
581
|
var ArtelSourceFileExtensions = [".\u0430\u0440\u0442", ".\u0430\u0440\u0442\u0435\u043B\u044C", ".art", ".artel"];
|
582
582
|
var ArtelSourceFileExtensionSet = new Set(ArtelSourceFileExtensions);
|
583
583
|
var ArtelSourceAndConfigurationFileExtensionSet = new Set(ArtelSourceFileExtensionSet).add(".json");
|
@@ -1152,67 +1152,67 @@ __export(green_exports, {
|
|
1152
1152
|
});
|
1153
1153
|
|
1154
1154
|
// source/tree/KeywordKind.ts
|
1155
|
-
var KeywordKind = /* @__PURE__ */ ((
|
1156
|
-
|
1157
|
-
|
1158
|
-
|
1159
|
-
|
1160
|
-
|
1161
|
-
|
1162
|
-
|
1163
|
-
|
1164
|
-
|
1165
|
-
|
1166
|
-
|
1167
|
-
|
1168
|
-
|
1169
|
-
|
1170
|
-
|
1171
|
-
|
1172
|
-
|
1173
|
-
|
1174
|
-
|
1175
|
-
|
1176
|
-
|
1177
|
-
|
1178
|
-
|
1179
|
-
|
1180
|
-
|
1181
|
-
|
1182
|
-
|
1183
|
-
|
1184
|
-
|
1185
|
-
|
1186
|
-
|
1187
|
-
|
1188
|
-
|
1189
|
-
|
1190
|
-
|
1191
|
-
|
1192
|
-
|
1193
|
-
|
1194
|
-
|
1195
|
-
|
1196
|
-
|
1197
|
-
|
1198
|
-
|
1199
|
-
|
1200
|
-
|
1201
|
-
|
1202
|
-
|
1203
|
-
|
1204
|
-
|
1205
|
-
|
1206
|
-
|
1207
|
-
|
1208
|
-
|
1209
|
-
|
1210
|
-
|
1211
|
-
|
1212
|
-
|
1213
|
-
|
1214
|
-
|
1215
|
-
return
|
1155
|
+
var KeywordKind = /* @__PURE__ */ ((KeywordKind6) => {
|
1156
|
+
KeywordKind6[KeywordKind6["Unknown"] = 0] = "Unknown";
|
1157
|
+
KeywordKind6[KeywordKind6["Let"] = 1] = "Let";
|
1158
|
+
KeywordKind6[KeywordKind6["Autotype"] = 2] = "Autotype";
|
1159
|
+
KeywordKind6[KeywordKind6["Aspect"] = 3] = "Aspect";
|
1160
|
+
KeywordKind6[KeywordKind6["Object"] = 4] = "Object";
|
1161
|
+
KeywordKind6[KeywordKind6["PlainObject"] = 5] = "PlainObject";
|
1162
|
+
KeywordKind6[KeywordKind6["Variant"] = 6] = "Variant";
|
1163
|
+
KeywordKind6[KeywordKind6["Run"] = 7] = "Run";
|
1164
|
+
KeywordKind6[KeywordKind6["From"] = 8] = "From";
|
1165
|
+
KeywordKind6[KeywordKind6["Else"] = 9] = "Else";
|
1166
|
+
KeywordKind6[KeywordKind6["ElseIf"] = 10] = "ElseIf";
|
1167
|
+
KeywordKind6[KeywordKind6["Function"] = 11] = "Function";
|
1168
|
+
KeywordKind6[KeywordKind6["If"] = 12] = "If";
|
1169
|
+
KeywordKind6[KeywordKind6["Is"] = 13] = "Is";
|
1170
|
+
KeywordKind6[KeywordKind6["Return"] = 14] = "Return";
|
1171
|
+
KeywordKind6[KeywordKind6["Type"] = 15] = "Type";
|
1172
|
+
KeywordKind6[KeywordKind6["Basic"] = 16] = "Basic";
|
1173
|
+
KeywordKind6[KeywordKind6["Import"] = 17] = "Import";
|
1174
|
+
KeywordKind6[KeywordKind6["Error"] = 18] = "Error";
|
1175
|
+
KeywordKind6[KeywordKind6["Finally"] = 19] = "Finally";
|
1176
|
+
KeywordKind6[KeywordKind6["And"] = 20] = "And";
|
1177
|
+
KeywordKind6[KeywordKind6["Or"] = 21] = "Or";
|
1178
|
+
KeywordKind6[KeywordKind6["Xor"] = 22] = "Xor";
|
1179
|
+
KeywordKind6[KeywordKind6["While"] = 23] = "While";
|
1180
|
+
KeywordKind6[KeywordKind6["Loop"] = 24] = "Loop";
|
1181
|
+
KeywordKind6[KeywordKind6["RepeatWhile"] = 25] = "RepeatWhile";
|
1182
|
+
KeywordKind6[KeywordKind6["Yield"] = 26] = "Yield";
|
1183
|
+
KeywordKind6[KeywordKind6["When"] = 27] = "When";
|
1184
|
+
KeywordKind6[KeywordKind6["Creation"] = 28] = "Creation";
|
1185
|
+
KeywordKind6[KeywordKind6["OnError"] = 29] = "OnError";
|
1186
|
+
KeywordKind6[KeywordKind6["BreakLoop"] = 30] = "BreakLoop";
|
1187
|
+
KeywordKind6[KeywordKind6["ContinueLoop"] = 31] = "ContinueLoop";
|
1188
|
+
KeywordKind6[KeywordKind6["For"] = 32] = "For";
|
1189
|
+
KeywordKind6[KeywordKind6["Const"] = 33] = "Const";
|
1190
|
+
KeywordKind6[KeywordKind6["Hidden"] = 34] = "Hidden";
|
1191
|
+
KeywordKind6[KeywordKind6["Abstract"] = 35] = "Abstract";
|
1192
|
+
KeywordKind6[KeywordKind6["Redefinable"] = 36] = "Redefinable";
|
1193
|
+
KeywordKind6[KeywordKind6["Redefined"] = 37] = "Redefined";
|
1194
|
+
KeywordKind6[KeywordKind6["Async"] = 38] = "Async";
|
1195
|
+
KeywordKind6[KeywordKind6["Static"] = 39] = "Static";
|
1196
|
+
KeywordKind6[KeywordKind6["As"] = 40] = "As";
|
1197
|
+
KeywordKind6[KeywordKind6["Not"] = 41] = "Not";
|
1198
|
+
KeywordKind6[KeywordKind6["Switch"] = 42] = "Switch";
|
1199
|
+
KeywordKind6[KeywordKind6["Case"] = 43] = "Case";
|
1200
|
+
KeywordKind6[KeywordKind6["Await"] = 44] = "Await";
|
1201
|
+
KeywordKind6[KeywordKind6["Dispose"] = 45] = "Dispose";
|
1202
|
+
KeywordKind6[KeywordKind6["Destruction"] = 46] = "Destruction";
|
1203
|
+
KeywordKind6[KeywordKind6["InHierarchy"] = 47] = "InHierarchy";
|
1204
|
+
KeywordKind6[KeywordKind6["InFile"] = 48] = "InFile";
|
1205
|
+
KeywordKind6[KeywordKind6["InPackage"] = 49] = "InPackage";
|
1206
|
+
KeywordKind6[KeywordKind6["InType"] = 50] = "InType";
|
1207
|
+
KeywordKind6[KeywordKind6["Yes"] = 51] = "Yes";
|
1208
|
+
KeywordKind6[KeywordKind6["No"] = 52] = "No";
|
1209
|
+
KeywordKind6[KeywordKind6["Reference"] = 53] = "Reference";
|
1210
|
+
KeywordKind6[KeywordKind6["Translations"] = 54] = "Translations";
|
1211
|
+
KeywordKind6[KeywordKind6["Base"] = 55] = "Base";
|
1212
|
+
KeywordKind6[KeywordKind6["None"] = 56] = "None";
|
1213
|
+
KeywordKind6[KeywordKind6["Get"] = 57] = "Get";
|
1214
|
+
KeywordKind6[KeywordKind6["Set"] = 58] = "Set";
|
1215
|
+
return KeywordKind6;
|
1216
1216
|
})(KeywordKind || {});
|
1217
1217
|
|
1218
1218
|
// source/tree/NodeKind.ts
|
@@ -1383,59 +1383,56 @@ var OperatorKind = /* @__PURE__ */ ((OperatorKind11) => {
|
|
1383
1383
|
OperatorKind11[OperatorKind11["Plus"] = 0] = "Plus";
|
1384
1384
|
OperatorKind11[OperatorKind11["Minus"] = 1] = "Minus";
|
1385
1385
|
OperatorKind11[OperatorKind11["Not"] = 2] = "Not";
|
1386
|
-
OperatorKind11[OperatorKind11["
|
1387
|
-
OperatorKind11[OperatorKind11["
|
1388
|
-
OperatorKind11[OperatorKind11["
|
1389
|
-
OperatorKind11[OperatorKind11["
|
1390
|
-
OperatorKind11[OperatorKind11["
|
1391
|
-
OperatorKind11[OperatorKind11["
|
1392
|
-
OperatorKind11[OperatorKind11["
|
1393
|
-
OperatorKind11[OperatorKind11["
|
1394
|
-
OperatorKind11[OperatorKind11["
|
1395
|
-
OperatorKind11[OperatorKind11["
|
1396
|
-
OperatorKind11[OperatorKind11["
|
1397
|
-
OperatorKind11[OperatorKind11["
|
1398
|
-
OperatorKind11[OperatorKind11["
|
1399
|
-
OperatorKind11[OperatorKind11["
|
1400
|
-
OperatorKind11[OperatorKind11["BitwiseXor"] = 17] = "BitwiseXor";
|
1386
|
+
OperatorKind11[OperatorKind11["Multiply"] = 3] = "Multiply";
|
1387
|
+
OperatorKind11[OperatorKind11["Divide"] = 4] = "Divide";
|
1388
|
+
OperatorKind11[OperatorKind11["IntegerDivide"] = 5] = "IntegerDivide";
|
1389
|
+
OperatorKind11[OperatorKind11["Modulo"] = 6] = "Modulo";
|
1390
|
+
OperatorKind11[OperatorKind11["LessThan"] = 7] = "LessThan";
|
1391
|
+
OperatorKind11[OperatorKind11["GreaterThan"] = 8] = "GreaterThan";
|
1392
|
+
OperatorKind11[OperatorKind11["LessThanOrEqual"] = 9] = "LessThanOrEqual";
|
1393
|
+
OperatorKind11[OperatorKind11["GreaterThanOrEqual"] = 10] = "GreaterThanOrEqual";
|
1394
|
+
OperatorKind11[OperatorKind11["Or"] = 11] = "Or";
|
1395
|
+
OperatorKind11[OperatorKind11["And"] = 12] = "And";
|
1396
|
+
OperatorKind11[OperatorKind11["Xor"] = 13] = "Xor";
|
1397
|
+
OperatorKind11[OperatorKind11["BitwiseAnd"] = 14] = "BitwiseAnd";
|
1398
|
+
OperatorKind11[OperatorKind11["BitwiseOr"] = 15] = "BitwiseOr";
|
1399
|
+
OperatorKind11[OperatorKind11["BitwiseXor"] = 16] = "BitwiseXor";
|
1401
1400
|
return OperatorKind11;
|
1402
1401
|
})(OperatorKind || {});
|
1403
1402
|
var operatorKinds = [
|
1404
1403
|
0 /* Plus */,
|
1405
1404
|
1 /* Minus */,
|
1406
1405
|
2 /* Not */,
|
1407
|
-
3 /*
|
1408
|
-
4 /*
|
1409
|
-
5 /*
|
1410
|
-
6 /*
|
1411
|
-
7 /*
|
1412
|
-
8 /*
|
1413
|
-
9 /*
|
1414
|
-
10 /*
|
1415
|
-
11 /*
|
1416
|
-
12 /*
|
1417
|
-
13 /*
|
1418
|
-
14 /*
|
1419
|
-
15 /*
|
1420
|
-
16 /*
|
1421
|
-
17 /* BitwiseXor */
|
1406
|
+
3 /* Multiply */,
|
1407
|
+
4 /* Divide */,
|
1408
|
+
5 /* IntegerDivide */,
|
1409
|
+
6 /* Modulo */,
|
1410
|
+
7 /* LessThan */,
|
1411
|
+
8 /* GreaterThan */,
|
1412
|
+
9 /* LessThanOrEqual */,
|
1413
|
+
10 /* GreaterThanOrEqual */,
|
1414
|
+
11 /* Or */,
|
1415
|
+
12 /* And */,
|
1416
|
+
13 /* Xor */,
|
1417
|
+
14 /* BitwiseAnd */,
|
1418
|
+
15 /* BitwiseOr */,
|
1419
|
+
16 /* BitwiseXor */
|
1422
1420
|
];
|
1423
1421
|
function isOperatorDefinedByToken(kind) {
|
1424
1422
|
switch (kind) {
|
1425
|
-
case 3 /* BitwiseNot */:
|
1426
1423
|
case 0 /* Plus */:
|
1427
1424
|
case 1 /* Minus */:
|
1428
|
-
case
|
1429
|
-
case
|
1430
|
-
case
|
1431
|
-
case
|
1432
|
-
case
|
1433
|
-
case
|
1434
|
-
case
|
1435
|
-
case
|
1436
|
-
case
|
1437
|
-
case
|
1438
|
-
case
|
1425
|
+
case 3 /* Multiply */:
|
1426
|
+
case 4 /* Divide */:
|
1427
|
+
case 5 /* IntegerDivide */:
|
1428
|
+
case 6 /* Modulo */:
|
1429
|
+
case 7 /* LessThan */:
|
1430
|
+
case 8 /* GreaterThan */:
|
1431
|
+
case 9 /* LessThanOrEqual */:
|
1432
|
+
case 10 /* GreaterThanOrEqual */:
|
1433
|
+
case 14 /* BitwiseAnd */:
|
1434
|
+
case 15 /* BitwiseOr */:
|
1435
|
+
case 16 /* BitwiseXor */:
|
1439
1436
|
return true;
|
1440
1437
|
default:
|
1441
1438
|
Debug.typeIsAssignableTo();
|
@@ -1446,9 +1443,9 @@ function isOperatorDefinedByToken(kind) {
|
|
1446
1443
|
function isOperatorDefinedByKeyword(kind) {
|
1447
1444
|
switch (kind) {
|
1448
1445
|
case 2 /* Not */:
|
1449
|
-
case
|
1450
|
-
case
|
1451
|
-
case
|
1446
|
+
case 11 /* Or */:
|
1447
|
+
case 12 /* And */:
|
1448
|
+
case 13 /* Xor */:
|
1452
1449
|
return true;
|
1453
1450
|
default:
|
1454
1451
|
Debug.typeIsAssignableTo();
|
@@ -1457,29 +1454,28 @@ function isOperatorDefinedByKeyword(kind) {
|
|
1457
1454
|
}
|
1458
1455
|
}
|
1459
1456
|
var tokenTextByOperatorKind = {
|
1460
|
-
[3 /* BitwiseNot */]: "!",
|
1461
1457
|
[0 /* Plus */]: "+",
|
1462
1458
|
[1 /* Minus */]: "-",
|
1463
|
-
[
|
1464
|
-
[
|
1465
|
-
[
|
1466
|
-
[
|
1467
|
-
[
|
1468
|
-
[
|
1469
|
-
[
|
1470
|
-
[
|
1471
|
-
[
|
1472
|
-
[
|
1473
|
-
[
|
1459
|
+
[3 /* Multiply */]: "*",
|
1460
|
+
[4 /* Divide */]: "/",
|
1461
|
+
[5 /* IntegerDivide */]: "\\",
|
1462
|
+
[6 /* Modulo */]: "\\\\",
|
1463
|
+
[7 /* LessThan */]: "<",
|
1464
|
+
[8 /* GreaterThan */]: ">",
|
1465
|
+
[9 /* LessThanOrEqual */]: "<=",
|
1466
|
+
[10 /* GreaterThanOrEqual */]: ">=",
|
1467
|
+
[14 /* BitwiseAnd */]: "&",
|
1468
|
+
[15 /* BitwiseOr */]: "|",
|
1469
|
+
[16 /* BitwiseXor */]: "||"
|
1474
1470
|
};
|
1475
1471
|
var operatorKindByTokenText = Object.fromEntries(
|
1476
1472
|
Object.entries(tokenTextByOperatorKind).map((e) => [e[1], parseInt(e[0])])
|
1477
1473
|
);
|
1478
1474
|
var keywordKindByOperatorKind = {
|
1479
1475
|
[2 /* Not */]: 41 /* Not */,
|
1480
|
-
[
|
1481
|
-
[
|
1482
|
-
[
|
1476
|
+
[11 /* Or */]: 21 /* Or */,
|
1477
|
+
[12 /* And */]: 20 /* And */,
|
1478
|
+
[13 /* Xor */]: 22 /* Xor */
|
1483
1479
|
};
|
1484
1480
|
var operatorKindByKeywordKind = Object.fromEntries(
|
1485
1481
|
Object.entries(keywordKindByOperatorKind).map((e) => [e[1], parseInt(e[0])])
|
@@ -1818,43 +1814,41 @@ var OperatorKind2 = /* @__PURE__ */ ((OperatorKind11) => {
|
|
1818
1814
|
OperatorKind11[OperatorKind11["UnaryPlus"] = 0] = "UnaryPlus";
|
1819
1815
|
OperatorKind11[OperatorKind11["UnaryMinus"] = 1] = "UnaryMinus";
|
1820
1816
|
OperatorKind11[OperatorKind11["Not"] = 2] = "Not";
|
1821
|
-
OperatorKind11[OperatorKind11["
|
1822
|
-
OperatorKind11[OperatorKind11["
|
1823
|
-
OperatorKind11[OperatorKind11["
|
1824
|
-
OperatorKind11[OperatorKind11["
|
1825
|
-
OperatorKind11[OperatorKind11["
|
1826
|
-
OperatorKind11[OperatorKind11["
|
1827
|
-
OperatorKind11[OperatorKind11["
|
1828
|
-
OperatorKind11[OperatorKind11["
|
1829
|
-
OperatorKind11[OperatorKind11["
|
1830
|
-
OperatorKind11[OperatorKind11["
|
1831
|
-
OperatorKind11[OperatorKind11["
|
1832
|
-
OperatorKind11[OperatorKind11["
|
1833
|
-
OperatorKind11[OperatorKind11["
|
1834
|
-
OperatorKind11[OperatorKind11["
|
1835
|
-
OperatorKind11[OperatorKind11["
|
1836
|
-
OperatorKind11[OperatorKind11["
|
1837
|
-
OperatorKind11[OperatorKind11["BitwiseXor"] = 19] = "BitwiseXor";
|
1817
|
+
OperatorKind11[OperatorKind11["Add"] = 3] = "Add";
|
1818
|
+
OperatorKind11[OperatorKind11["Subtract"] = 4] = "Subtract";
|
1819
|
+
OperatorKind11[OperatorKind11["Multiply"] = 5] = "Multiply";
|
1820
|
+
OperatorKind11[OperatorKind11["Divide"] = 6] = "Divide";
|
1821
|
+
OperatorKind11[OperatorKind11["IntegerDivide"] = 7] = "IntegerDivide";
|
1822
|
+
OperatorKind11[OperatorKind11["Modulo"] = 8] = "Modulo";
|
1823
|
+
OperatorKind11[OperatorKind11["LessThan"] = 9] = "LessThan";
|
1824
|
+
OperatorKind11[OperatorKind11["GreaterThan"] = 10] = "GreaterThan";
|
1825
|
+
OperatorKind11[OperatorKind11["LessThanOrEqual"] = 11] = "LessThanOrEqual";
|
1826
|
+
OperatorKind11[OperatorKind11["GreaterThanOrEqual"] = 12] = "GreaterThanOrEqual";
|
1827
|
+
OperatorKind11[OperatorKind11["Or"] = 13] = "Or";
|
1828
|
+
OperatorKind11[OperatorKind11["And"] = 14] = "And";
|
1829
|
+
OperatorKind11[OperatorKind11["Xor"] = 15] = "Xor";
|
1830
|
+
OperatorKind11[OperatorKind11["BitwiseAnd"] = 16] = "BitwiseAnd";
|
1831
|
+
OperatorKind11[OperatorKind11["BitwiseOr"] = 17] = "BitwiseOr";
|
1832
|
+
OperatorKind11[OperatorKind11["BitwiseXor"] = 18] = "BitwiseXor";
|
1838
1833
|
return OperatorKind11;
|
1839
1834
|
})(OperatorKind2 || {});
|
1840
1835
|
function isOperatorDefinedByToken2(kind) {
|
1841
1836
|
switch (kind) {
|
1842
|
-
case 3 /* BitwiseNot */:
|
1843
1837
|
case 0 /* UnaryPlus */:
|
1844
1838
|
case 1 /* UnaryMinus */:
|
1845
|
-
case
|
1846
|
-
case
|
1847
|
-
case
|
1848
|
-
case
|
1849
|
-
case
|
1850
|
-
case
|
1851
|
-
case
|
1852
|
-
case
|
1853
|
-
case
|
1854
|
-
case
|
1855
|
-
case
|
1856
|
-
case
|
1857
|
-
case
|
1839
|
+
case 3 /* Add */:
|
1840
|
+
case 4 /* Subtract */:
|
1841
|
+
case 5 /* Multiply */:
|
1842
|
+
case 6 /* Divide */:
|
1843
|
+
case 7 /* IntegerDivide */:
|
1844
|
+
case 8 /* Modulo */:
|
1845
|
+
case 9 /* LessThan */:
|
1846
|
+
case 10 /* GreaterThan */:
|
1847
|
+
case 11 /* LessThanOrEqual */:
|
1848
|
+
case 12 /* GreaterThanOrEqual */:
|
1849
|
+
case 16 /* BitwiseAnd */:
|
1850
|
+
case 17 /* BitwiseOr */:
|
1851
|
+
case 18 /* BitwiseXor */:
|
1858
1852
|
return true;
|
1859
1853
|
default:
|
1860
1854
|
Debug.typeIsAssignableTo();
|
@@ -1865,9 +1859,9 @@ function isOperatorDefinedByToken2(kind) {
|
|
1865
1859
|
function isOperatorDefinedByKeyword2(kind) {
|
1866
1860
|
switch (kind) {
|
1867
1861
|
case 2 /* Not */:
|
1868
|
-
case
|
1869
|
-
case
|
1870
|
-
case
|
1862
|
+
case 13 /* Or */:
|
1863
|
+
case 14 /* And */:
|
1864
|
+
case 15 /* Xor */:
|
1871
1865
|
return true;
|
1872
1866
|
default:
|
1873
1867
|
Debug.typeIsAssignableTo();
|
@@ -1880,7 +1874,6 @@ function isUnaryOperator(kind) {
|
|
1880
1874
|
case 0 /* UnaryPlus */:
|
1881
1875
|
case 1 /* UnaryMinus */:
|
1882
1876
|
case 2 /* Not */:
|
1883
|
-
case 3 /* BitwiseNot */:
|
1884
1877
|
return true;
|
1885
1878
|
default:
|
1886
1879
|
Debug.typeIsAssignableTo();
|
@@ -1890,22 +1883,22 @@ function isUnaryOperator(kind) {
|
|
1890
1883
|
}
|
1891
1884
|
function isBinaryOperator(kind) {
|
1892
1885
|
switch (kind) {
|
1893
|
-
case
|
1894
|
-
case
|
1895
|
-
case
|
1896
|
-
case
|
1897
|
-
case
|
1898
|
-
case
|
1899
|
-
case
|
1900
|
-
case
|
1901
|
-
case
|
1902
|
-
case
|
1903
|
-
case
|
1904
|
-
case
|
1905
|
-
case
|
1906
|
-
case
|
1907
|
-
case
|
1908
|
-
case
|
1886
|
+
case 3 /* Add */:
|
1887
|
+
case 4 /* Subtract */:
|
1888
|
+
case 5 /* Multiply */:
|
1889
|
+
case 6 /* Divide */:
|
1890
|
+
case 7 /* IntegerDivide */:
|
1891
|
+
case 8 /* Modulo */:
|
1892
|
+
case 9 /* LessThan */:
|
1893
|
+
case 10 /* GreaterThan */:
|
1894
|
+
case 11 /* LessThanOrEqual */:
|
1895
|
+
case 12 /* GreaterThanOrEqual */:
|
1896
|
+
case 13 /* Or */:
|
1897
|
+
case 14 /* And */:
|
1898
|
+
case 15 /* Xor */:
|
1899
|
+
case 16 /* BitwiseAnd */:
|
1900
|
+
case 17 /* BitwiseOr */:
|
1901
|
+
case 18 /* BitwiseXor */:
|
1909
1902
|
return true;
|
1910
1903
|
default:
|
1911
1904
|
Debug.typeIsAssignableTo();
|
@@ -1914,48 +1907,46 @@ function isBinaryOperator(kind) {
|
|
1914
1907
|
}
|
1915
1908
|
}
|
1916
1909
|
var tokenTextByOperatorKind2 = {
|
1917
|
-
[3 /* BitwiseNot */]: "!",
|
1918
1910
|
[0 /* UnaryPlus */]: "+",
|
1919
1911
|
[1 /* UnaryMinus */]: "-",
|
1920
|
-
[
|
1921
|
-
[
|
1922
|
-
[
|
1923
|
-
[
|
1924
|
-
[
|
1925
|
-
[
|
1926
|
-
[
|
1927
|
-
[
|
1928
|
-
[
|
1929
|
-
[
|
1930
|
-
[
|
1931
|
-
[
|
1932
|
-
[
|
1912
|
+
[3 /* Add */]: "+",
|
1913
|
+
[4 /* Subtract */]: "-",
|
1914
|
+
[5 /* Multiply */]: "*",
|
1915
|
+
[6 /* Divide */]: "/",
|
1916
|
+
[7 /* IntegerDivide */]: "\\",
|
1917
|
+
[8 /* Modulo */]: "\\\\",
|
1918
|
+
[9 /* LessThan */]: "<",
|
1919
|
+
[10 /* GreaterThan */]: ">",
|
1920
|
+
[11 /* LessThanOrEqual */]: "<=",
|
1921
|
+
[12 /* GreaterThanOrEqual */]: ">=",
|
1922
|
+
[16 /* BitwiseAnd */]: "&",
|
1923
|
+
[17 /* BitwiseOr */]: "|",
|
1924
|
+
[18 /* BitwiseXor */]: "||"
|
1933
1925
|
};
|
1934
1926
|
var keywordKindByOperatorKind2 = {
|
1935
1927
|
[2 /* Not */]: 41 /* Not */,
|
1936
|
-
[
|
1937
|
-
[
|
1938
|
-
[
|
1928
|
+
[13 /* Or */]: 21 /* Or */,
|
1929
|
+
[14 /* And */]: 20 /* And */,
|
1930
|
+
[15 /* Xor */]: 22 /* Xor */
|
1939
1931
|
};
|
1940
1932
|
var operatorKindsBySyntacticalOperatorKind = {
|
1941
|
-
[
|
1942
|
-
[
|
1943
|
-
[1 /* Minus */]: [1 /* UnaryMinus */, 5 /* Subtract */],
|
1933
|
+
[0 /* Plus */]: [0 /* UnaryPlus */, 3 /* Add */],
|
1934
|
+
[1 /* Minus */]: [1 /* UnaryMinus */, 4 /* Subtract */],
|
1944
1935
|
[2 /* Not */]: [2 /* Not */],
|
1945
|
-
[
|
1946
|
-
[
|
1947
|
-
[
|
1948
|
-
[
|
1949
|
-
[
|
1950
|
-
[
|
1951
|
-
[
|
1952
|
-
[
|
1953
|
-
[
|
1954
|
-
[
|
1955
|
-
[
|
1956
|
-
[
|
1957
|
-
[
|
1958
|
-
[
|
1936
|
+
[3 /* Multiply */]: [5 /* Multiply */],
|
1937
|
+
[4 /* Divide */]: [6 /* Divide */],
|
1938
|
+
[5 /* IntegerDivide */]: [7 /* IntegerDivide */],
|
1939
|
+
[6 /* Modulo */]: [8 /* Modulo */],
|
1940
|
+
[7 /* LessThan */]: [9 /* LessThan */],
|
1941
|
+
[8 /* GreaterThan */]: [10 /* GreaterThan */],
|
1942
|
+
[9 /* LessThanOrEqual */]: [11 /* LessThanOrEqual */],
|
1943
|
+
[10 /* GreaterThanOrEqual */]: [12 /* GreaterThanOrEqual */],
|
1944
|
+
[11 /* Or */]: [13 /* Or */],
|
1945
|
+
[12 /* And */]: [14 /* And */],
|
1946
|
+
[13 /* Xor */]: [15 /* Xor */],
|
1947
|
+
[14 /* BitwiseAnd */]: [16 /* BitwiseAnd */],
|
1948
|
+
[15 /* BitwiseOr */]: [17 /* BitwiseOr */],
|
1949
|
+
[16 /* BitwiseXor */]: [18 /* BitwiseXor */]
|
1959
1950
|
};
|
1960
1951
|
|
1961
1952
|
// source/parser/KeywordDictionary.ts
|
@@ -3497,17 +3488,17 @@ function kebabCaseToCamelCase(s) {
|
|
3497
3488
|
return s;
|
3498
3489
|
}
|
3499
3490
|
let result = "";
|
3500
|
-
let
|
3491
|
+
let wasHyphen = false;
|
3501
3492
|
for (let i = 0; i < s.length; i++) {
|
3502
3493
|
let char = s.charAt(i);
|
3503
3494
|
if (char === "-") {
|
3504
|
-
|
3495
|
+
wasHyphen = true;
|
3505
3496
|
} else {
|
3506
|
-
if (
|
3497
|
+
if (wasHyphen) {
|
3507
3498
|
char = char.toUpperCase();
|
3508
3499
|
}
|
3509
3500
|
result += char;
|
3510
|
-
|
3501
|
+
wasHyphen = false;
|
3511
3502
|
}
|
3512
3503
|
}
|
3513
3504
|
return result;
|
@@ -12551,158 +12542,118 @@ var DiagnosticCode = /* @__PURE__ */ ((DiagnosticCode2) => {
|
|
12551
12542
|
DiagnosticCode2[DiagnosticCode2["IdentifierExpected"] = 0] = "IdentifierExpected";
|
12552
12543
|
DiagnosticCode2[DiagnosticCode2["TypeNameExpected"] = 1] = "TypeNameExpected";
|
12553
12544
|
DiagnosticCode2[DiagnosticCode2["PackageNameExpected"] = 2] = "PackageNameExpected";
|
12554
|
-
DiagnosticCode2[DiagnosticCode2["
|
12555
|
-
DiagnosticCode2[DiagnosticCode2["
|
12556
|
-
DiagnosticCode2[DiagnosticCode2["
|
12557
|
-
DiagnosticCode2[DiagnosticCode2["
|
12558
|
-
DiagnosticCode2[DiagnosticCode2["
|
12559
|
-
DiagnosticCode2[DiagnosticCode2["
|
12560
|
-
DiagnosticCode2[DiagnosticCode2["
|
12561
|
-
DiagnosticCode2[DiagnosticCode2["
|
12562
|
-
DiagnosticCode2[DiagnosticCode2["
|
12563
|
-
DiagnosticCode2[DiagnosticCode2["
|
12564
|
-
DiagnosticCode2[DiagnosticCode2["
|
12565
|
-
DiagnosticCode2[DiagnosticCode2["
|
12566
|
-
DiagnosticCode2[DiagnosticCode2["
|
12567
|
-
DiagnosticCode2[DiagnosticCode2["
|
12568
|
-
DiagnosticCode2[DiagnosticCode2["
|
12569
|
-
DiagnosticCode2[DiagnosticCode2["
|
12570
|
-
DiagnosticCode2[DiagnosticCode2["
|
12571
|
-
DiagnosticCode2[DiagnosticCode2["
|
12572
|
-
DiagnosticCode2[DiagnosticCode2["
|
12573
|
-
DiagnosticCode2[DiagnosticCode2["
|
12574
|
-
DiagnosticCode2[DiagnosticCode2["
|
12575
|
-
DiagnosticCode2[DiagnosticCode2["
|
12576
|
-
DiagnosticCode2[DiagnosticCode2["
|
12577
|
-
DiagnosticCode2[DiagnosticCode2["
|
12578
|
-
DiagnosticCode2[DiagnosticCode2["
|
12579
|
-
DiagnosticCode2[DiagnosticCode2["
|
12580
|
-
DiagnosticCode2[DiagnosticCode2["
|
12581
|
-
DiagnosticCode2[DiagnosticCode2["
|
12582
|
-
DiagnosticCode2[DiagnosticCode2["
|
12583
|
-
DiagnosticCode2[DiagnosticCode2["
|
12584
|
-
DiagnosticCode2[DiagnosticCode2["
|
12585
|
-
DiagnosticCode2[DiagnosticCode2["
|
12586
|
-
DiagnosticCode2[DiagnosticCode2["
|
12587
|
-
DiagnosticCode2[DiagnosticCode2["
|
12588
|
-
DiagnosticCode2[DiagnosticCode2["
|
12589
|
-
DiagnosticCode2[DiagnosticCode2["
|
12590
|
-
DiagnosticCode2[DiagnosticCode2["
|
12591
|
-
DiagnosticCode2[DiagnosticCode2["
|
12592
|
-
DiagnosticCode2[DiagnosticCode2["
|
12593
|
-
DiagnosticCode2[DiagnosticCode2["
|
12594
|
-
DiagnosticCode2[DiagnosticCode2["
|
12595
|
-
DiagnosticCode2[DiagnosticCode2["
|
12596
|
-
DiagnosticCode2[DiagnosticCode2["
|
12597
|
-
DiagnosticCode2[DiagnosticCode2["
|
12598
|
-
DiagnosticCode2[DiagnosticCode2["
|
12599
|
-
DiagnosticCode2[DiagnosticCode2["
|
12600
|
-
DiagnosticCode2[DiagnosticCode2["
|
12601
|
-
DiagnosticCode2[DiagnosticCode2["
|
12602
|
-
DiagnosticCode2[DiagnosticCode2["
|
12603
|
-
DiagnosticCode2[DiagnosticCode2["
|
12604
|
-
DiagnosticCode2[DiagnosticCode2["
|
12605
|
-
DiagnosticCode2[DiagnosticCode2["
|
12606
|
-
DiagnosticCode2[DiagnosticCode2["
|
12607
|
-
DiagnosticCode2[DiagnosticCode2["
|
12608
|
-
DiagnosticCode2[DiagnosticCode2["
|
12609
|
-
DiagnosticCode2[DiagnosticCode2["
|
12610
|
-
DiagnosticCode2[DiagnosticCode2["
|
12611
|
-
DiagnosticCode2[DiagnosticCode2["
|
12612
|
-
DiagnosticCode2[DiagnosticCode2["
|
12613
|
-
DiagnosticCode2[DiagnosticCode2["
|
12614
|
-
DiagnosticCode2[DiagnosticCode2["
|
12615
|
-
DiagnosticCode2[DiagnosticCode2["
|
12616
|
-
DiagnosticCode2[DiagnosticCode2["
|
12617
|
-
DiagnosticCode2[DiagnosticCode2["
|
12618
|
-
DiagnosticCode2[DiagnosticCode2["
|
12619
|
-
DiagnosticCode2[DiagnosticCode2["
|
12620
|
-
DiagnosticCode2[DiagnosticCode2["
|
12621
|
-
DiagnosticCode2[DiagnosticCode2["
|
12622
|
-
DiagnosticCode2[DiagnosticCode2["
|
12623
|
-
DiagnosticCode2[DiagnosticCode2["
|
12624
|
-
DiagnosticCode2[DiagnosticCode2["
|
12625
|
-
DiagnosticCode2[DiagnosticCode2["
|
12626
|
-
DiagnosticCode2[DiagnosticCode2["
|
12627
|
-
DiagnosticCode2[DiagnosticCode2["
|
12628
|
-
DiagnosticCode2[DiagnosticCode2["
|
12629
|
-
DiagnosticCode2[DiagnosticCode2["
|
12630
|
-
DiagnosticCode2[DiagnosticCode2["
|
12631
|
-
DiagnosticCode2[DiagnosticCode2["
|
12632
|
-
DiagnosticCode2[DiagnosticCode2["
|
12633
|
-
DiagnosticCode2[DiagnosticCode2["
|
12634
|
-
DiagnosticCode2[DiagnosticCode2["
|
12635
|
-
DiagnosticCode2[DiagnosticCode2["
|
12636
|
-
DiagnosticCode2[DiagnosticCode2["
|
12637
|
-
DiagnosticCode2[DiagnosticCode2["
|
12638
|
-
DiagnosticCode2[DiagnosticCode2["
|
12639
|
-
DiagnosticCode2[DiagnosticCode2["
|
12640
|
-
DiagnosticCode2[DiagnosticCode2["
|
12641
|
-
DiagnosticCode2[DiagnosticCode2["
|
12642
|
-
DiagnosticCode2[DiagnosticCode2["
|
12643
|
-
DiagnosticCode2[DiagnosticCode2["
|
12644
|
-
DiagnosticCode2[DiagnosticCode2["
|
12645
|
-
DiagnosticCode2[DiagnosticCode2["
|
12646
|
-
DiagnosticCode2[DiagnosticCode2["
|
12647
|
-
DiagnosticCode2[DiagnosticCode2["
|
12648
|
-
DiagnosticCode2[DiagnosticCode2["
|
12649
|
-
DiagnosticCode2[DiagnosticCode2["
|
12650
|
-
DiagnosticCode2[DiagnosticCode2["
|
12651
|
-
DiagnosticCode2[DiagnosticCode2["
|
12652
|
-
DiagnosticCode2[DiagnosticCode2["
|
12653
|
-
DiagnosticCode2[DiagnosticCode2["
|
12654
|
-
DiagnosticCode2[DiagnosticCode2["
|
12655
|
-
DiagnosticCode2[DiagnosticCode2["
|
12656
|
-
DiagnosticCode2[DiagnosticCode2["
|
12657
|
-
DiagnosticCode2[DiagnosticCode2["
|
12658
|
-
DiagnosticCode2[DiagnosticCode2["
|
12659
|
-
DiagnosticCode2[DiagnosticCode2["
|
12660
|
-
DiagnosticCode2[DiagnosticCode2["
|
12661
|
-
DiagnosticCode2[DiagnosticCode2["
|
12662
|
-
DiagnosticCode2[DiagnosticCode2["
|
12663
|
-
DiagnosticCode2[DiagnosticCode2["
|
12664
|
-
DiagnosticCode2[DiagnosticCode2["
|
12665
|
-
DiagnosticCode2[DiagnosticCode2["
|
12666
|
-
DiagnosticCode2[DiagnosticCode2["InterfacePackageIndexersMustNotHaveAccessors"] = 115] = "InterfacePackageIndexersMustNotHaveAccessors";
|
12667
|
-
DiagnosticCode2[DiagnosticCode2["BodyIsMissing"] = 116] = "BodyIsMissing";
|
12668
|
-
DiagnosticCode2[DiagnosticCode2["AbstractTypeMembersMustNotHaveBody"] = 117] = "AbstractTypeMembersMustNotHaveBody";
|
12669
|
-
DiagnosticCode2[DiagnosticCode2["AbstractIndexersMustNotHaveAccessors"] = 118] = "AbstractIndexersMustNotHaveAccessors";
|
12670
|
-
DiagnosticCode2[DiagnosticCode2["AbstractVariablesMustNotHaveInitializers"] = 119] = "AbstractVariablesMustNotHaveInitializers";
|
12671
|
-
DiagnosticCode2[DiagnosticCode2["AbstractVariablesMustNotHaveAccessors"] = 120] = "AbstractVariablesMustNotHaveAccessors";
|
12672
|
-
DiagnosticCode2[DiagnosticCode2["AccessorsAreMissing"] = 121] = "AccessorsAreMissing";
|
12673
|
-
DiagnosticCode2[DiagnosticCode2["PackageIsAlreadyImportedInAnotherLanguage"] = 122] = "PackageIsAlreadyImportedInAnotherLanguage";
|
12674
|
-
DiagnosticCode2[DiagnosticCode2["OnlySubprogramsWithReturnTypeCanReturnValue"] = 123] = "OnlySubprogramsWithReturnTypeCanReturnValue";
|
12675
|
-
DiagnosticCode2[DiagnosticCode2["MethodsUsingYieldStatementCanNotReturnValue"] = 124] = "MethodsUsingYieldStatementCanNotReturnValue";
|
12676
|
-
DiagnosticCode2[DiagnosticCode2["YieldStatementCanNotBeUsedInAnonymousMethods"] = 125] = "YieldStatementCanNotBeUsedInAnonymousMethods";
|
12677
|
-
DiagnosticCode2[DiagnosticCode2["YieldStatementCanNotBeUsedHere"] = 126] = "YieldStatementCanNotBeUsedHere";
|
12678
|
-
DiagnosticCode2[DiagnosticCode2["MethodsUsingYieldStatementMustHaveEnumerableAsReturnType"] = 127] = "MethodsUsingYieldStatementMustHaveEnumerableAsReturnType";
|
12679
|
-
DiagnosticCode2[DiagnosticCode2["YieldStatementCanNotBeUsedInRunStatementThatHasOnErrorClause"] = 128] = "YieldStatementCanNotBeUsedInRunStatementThatHasOnErrorClause";
|
12680
|
-
DiagnosticCode2[DiagnosticCode2["YieldStatementCanNotBeUsedInFinallyClause"] = 129] = "YieldStatementCanNotBeUsedInFinallyClause";
|
12681
|
-
DiagnosticCode2[DiagnosticCode2["SubprogramMustReturnValue"] = 130] = "SubprogramMustReturnValue";
|
12682
|
-
DiagnosticCode2[DiagnosticCode2["ResultVariableCanNotBeUsedInMethodsUsingYieldStatement"] = 131] = "ResultVariableCanNotBeUsedInMethodsUsingYieldStatement";
|
12683
|
-
DiagnosticCode2[DiagnosticCode2["TypeAliasReferencesItself"] = 132] = "TypeAliasReferencesItself";
|
12684
|
-
DiagnosticCode2[DiagnosticCode2["TypeParameterHasCircularConstraint"] = 133] = "TypeParameterHasCircularConstraint";
|
12685
|
-
DiagnosticCode2[DiagnosticCode2["BaseTypeCausesInheritanceCycle"] = 134] = "BaseTypeCausesInheritanceCycle";
|
12686
|
-
DiagnosticCode2[DiagnosticCode2["OnlyGenericTypesAndFunctionsCanBeSpecialized"] = 135] = "OnlyGenericTypesAndFunctionsCanBeSpecialized";
|
12687
|
-
DiagnosticCode2[DiagnosticCode2["Expected0TypeArguments"] = 136] = "Expected0TypeArguments";
|
12688
|
-
DiagnosticCode2[DiagnosticCode2["ExpectedFrom0To1TypeArguments"] = 137] = "ExpectedFrom0To1TypeArguments";
|
12689
|
-
DiagnosticCode2[DiagnosticCode2["Type0IsNotAssignableToConstraint1"] = 138] = "Type0IsNotAssignableToConstraint1";
|
12690
|
-
DiagnosticCode2[DiagnosticCode2["VariableIsDeclaredButNotUsed"] = 139] = "VariableIsDeclaredButNotUsed";
|
12691
|
-
DiagnosticCode2[DiagnosticCode2["DefaultConstructorArgumentsMustBeNamed"] = 140] = "DefaultConstructorArgumentsMustBeNamed";
|
12692
|
-
DiagnosticCode2[DiagnosticCode2["IncorrectBodyOfRedefinableAliasTypeMethod"] = 141] = "IncorrectBodyOfRedefinableAliasTypeMethod";
|
12693
|
-
DiagnosticCode2[DiagnosticCode2["TheFollowingDeclarationsAreNotTranslated0"] = 142] = "TheFollowingDeclarationsAreNotTranslated0";
|
12694
|
-
DiagnosticCode2[DiagnosticCode2["TheFollowingDeclarationAreNotTranslated0And1More"] = 143] = "TheFollowingDeclarationAreNotTranslated0And1More";
|
12695
|
-
DiagnosticCode2[DiagnosticCode2["OperatorMustNotBeStatic"] = 144] = "OperatorMustNotBeStatic";
|
12696
|
-
DiagnosticCode2[DiagnosticCode2["Operator0MustNotHaveParameters"] = 145] = "Operator0MustNotHaveParameters";
|
12697
|
-
DiagnosticCode2[DiagnosticCode2["Operator0MustHaveOneParameter"] = 146] = "Operator0MustHaveOneParameter";
|
12698
|
-
DiagnosticCode2[DiagnosticCode2["Operator0MustHaveNoMoreThanOneParameter"] = 147] = "Operator0MustHaveNoMoreThanOneParameter";
|
12699
|
-
DiagnosticCode2[DiagnosticCode2["CanNotFindTsLibDirectoryBaseSearchPaths0"] = 148] = "CanNotFindTsLibDirectoryBaseSearchPaths0";
|
12700
|
-
DiagnosticCode2[DiagnosticCode2["SourceFile0IsNotPartOfThePackageAndWontBeLoaded"] = 149] = "SourceFile0IsNotPartOfThePackageAndWontBeLoaded";
|
12701
|
-
DiagnosticCode2[DiagnosticCode2["MainPackageConfigurationIsMissingProjectWontBeLoaded"] = 150] = "MainPackageConfigurationIsMissingProjectWontBeLoaded";
|
12702
|
-
DiagnosticCode2[DiagnosticCode2["ProgramWithoutMainPackageCanNotBeCompiled"] = 151] = "ProgramWithoutMainPackageCanNotBeCompiled";
|
12703
|
-
DiagnosticCode2[DiagnosticCode2["JsonConfigurationValidationError"] = 152] = "JsonConfigurationValidationError";
|
12704
|
-
DiagnosticCode2[DiagnosticCode2["StandardPackage0NotFound"] = 153] = "StandardPackage0NotFound";
|
12705
|
-
DiagnosticCode2[DiagnosticCode2["Declaration0NotFoundInStandardPackage1"] = 154] = "Declaration0NotFoundInStandardPackage1";
|
12545
|
+
DiagnosticCode2[DiagnosticCode2["TypeMemberDeclarationExpected"] = 3] = "TypeMemberDeclarationExpected";
|
12546
|
+
DiagnosticCode2[DiagnosticCode2["SourceFileMemberExpected"] = 4] = "SourceFileMemberExpected";
|
12547
|
+
DiagnosticCode2[DiagnosticCode2["EnumerationVariableDeclarationExpected"] = 5] = "EnumerationVariableDeclarationExpected";
|
12548
|
+
DiagnosticCode2[DiagnosticCode2["StatementExpected"] = 6] = "StatementExpected";
|
12549
|
+
DiagnosticCode2[DiagnosticCode2["ExpressionExpected"] = 7] = "ExpressionExpected";
|
12550
|
+
DiagnosticCode2[DiagnosticCode2["BaseTypeNameExpected"] = 8] = "BaseTypeNameExpected";
|
12551
|
+
DiagnosticCode2[DiagnosticCode2["TypeSpecifierExpected"] = 9] = "TypeSpecifierExpected";
|
12552
|
+
DiagnosticCode2[DiagnosticCode2["TypeBodyExpected"] = 10] = "TypeBodyExpected";
|
12553
|
+
DiagnosticCode2[DiagnosticCode2["MethodCallArgumentExpected"] = 11] = "MethodCallArgumentExpected";
|
12554
|
+
DiagnosticCode2[DiagnosticCode2["TagArgumentExpected"] = 12] = "TagArgumentExpected";
|
12555
|
+
DiagnosticCode2[DiagnosticCode2["TypeParameterExpected"] = 13] = "TypeParameterExpected";
|
12556
|
+
DiagnosticCode2[DiagnosticCode2["ParameterExpected"] = 14] = "ParameterExpected";
|
12557
|
+
DiagnosticCode2[DiagnosticCode2["RunStatementClauseExpected"] = 15] = "RunStatementClauseExpected";
|
12558
|
+
DiagnosticCode2[DiagnosticCode2["PackageImportExpected"] = 16] = "PackageImportExpected";
|
12559
|
+
DiagnosticCode2[DiagnosticCode2["UsingDirectiveOrSourceFileMemberExpected"] = 17] = "UsingDirectiveOrSourceFileMemberExpected";
|
12560
|
+
DiagnosticCode2[DiagnosticCode2["WordFormExpected"] = 18] = "WordFormExpected";
|
12561
|
+
DiagnosticCode2[DiagnosticCode2["TypeMemberTranslationExpected"] = 19] = "TypeMemberTranslationExpected";
|
12562
|
+
DiagnosticCode2[DiagnosticCode2["TranslationExpected"] = 20] = "TranslationExpected";
|
12563
|
+
DiagnosticCode2[DiagnosticCode2["Expected0But1Found"] = 21] = "Expected0But1Found";
|
12564
|
+
DiagnosticCode2[DiagnosticCode2["InvalidTextTemplateLiteral"] = 22] = "InvalidTextTemplateLiteral";
|
12565
|
+
DiagnosticCode2[DiagnosticCode2["RunKeywordOnCreateKeywordOrModifierListExpected"] = 23] = "RunKeywordOnCreateKeywordOrModifierListExpected";
|
12566
|
+
DiagnosticCode2[DiagnosticCode2["ModifierListExpected"] = 24] = "ModifierListExpected";
|
12567
|
+
DiagnosticCode2[DiagnosticCode2["HidingLevelExpected"] = 25] = "HidingLevelExpected";
|
12568
|
+
DiagnosticCode2[DiagnosticCode2["ParameterNameCanContainOnlyOneBackQuote"] = 26] = "ParameterNameCanContainOnlyOneBackQuote";
|
12569
|
+
DiagnosticCode2[DiagnosticCode2["FieldNameCanContainOnlyTwoBackQuote"] = 27] = "FieldNameCanContainOnlyTwoBackQuote";
|
12570
|
+
DiagnosticCode2[DiagnosticCode2["BackQuotesCanOnlyBeUsedInParameterAndFieldNames"] = 28] = "BackQuotesCanOnlyBeUsedInParameterAndFieldNames";
|
12571
|
+
DiagnosticCode2[DiagnosticCode2["NameThatMatchesKeywordMustBeEnclosedInSingleQuotes"] = 29] = "NameThatMatchesKeywordMustBeEnclosedInSingleQuotes";
|
12572
|
+
DiagnosticCode2[DiagnosticCode2["VariantNotFound"] = 30] = "VariantNotFound";
|
12573
|
+
DiagnosticCode2[DiagnosticCode2["TypeCannotBeUsedAsValue"] = 31] = "TypeCannotBeUsedAsValue";
|
12574
|
+
DiagnosticCode2[DiagnosticCode2["PackageMemberNotFound"] = 32] = "PackageMemberNotFound";
|
12575
|
+
DiagnosticCode2[DiagnosticCode2["TypeMemberNotFound"] = 33] = "TypeMemberNotFound";
|
12576
|
+
DiagnosticCode2[DiagnosticCode2["CannotAccessStaticMembersOnTypeParameter"] = 34] = "CannotAccessStaticMembersOnTypeParameter";
|
12577
|
+
DiagnosticCode2[DiagnosticCode2["IndexerOfTheSpecifiedTypeNotFound"] = 35] = "IndexerOfTheSpecifiedTypeNotFound";
|
12578
|
+
DiagnosticCode2[DiagnosticCode2["DereferenceOperatorOfTheSpecifiedTypeNotFound"] = 36] = "DereferenceOperatorOfTheSpecifiedTypeNotFound";
|
12579
|
+
DiagnosticCode2[DiagnosticCode2["IndexerNotFound"] = 37] = "IndexerNotFound";
|
12580
|
+
DiagnosticCode2[DiagnosticCode2["CannotCreateInstanceOfAspect"] = 38] = "CannotCreateInstanceOfAspect";
|
12581
|
+
DiagnosticCode2[DiagnosticCode2["CannotCreateInstanceOfTypeParameter"] = 39] = "CannotCreateInstanceOfTypeParameter";
|
12582
|
+
DiagnosticCode2[DiagnosticCode2["CannotCreateInstanceOfUnresolvedType"] = 40] = "CannotCreateInstanceOfUnresolvedType";
|
12583
|
+
DiagnosticCode2[DiagnosticCode2["TypeConstructorNotFound"] = 41] = "TypeConstructorNotFound";
|
12584
|
+
DiagnosticCode2[DiagnosticCode2["CannotInvokeExpression"] = 42] = "CannotInvokeExpression";
|
12585
|
+
DiagnosticCode2[DiagnosticCode2["NamedArgumentExpectedButPositionalArgumentFound"] = 43] = "NamedArgumentExpectedButPositionalArgumentFound";
|
12586
|
+
DiagnosticCode2[DiagnosticCode2["ParameterWithGivenNameNotFound"] = 44] = "ParameterWithGivenNameNotFound";
|
12587
|
+
DiagnosticCode2[DiagnosticCode2["ArgumentForParameterAlreadyPassed"] = 45] = "ArgumentForParameterAlreadyPassed";
|
12588
|
+
DiagnosticCode2[DiagnosticCode2["PackageAliasCannotBeUsedAsValue"] = 46] = "PackageAliasCannotBeUsedAsValue";
|
12589
|
+
DiagnosticCode2[DiagnosticCode2["PackageNameCannotBeUsedAsValue"] = 47] = "PackageNameCannotBeUsedAsValue";
|
12590
|
+
DiagnosticCode2[DiagnosticCode2["UnknownVariable"] = 48] = "UnknownVariable";
|
12591
|
+
DiagnosticCode2[DiagnosticCode2["UnknownType"] = 49] = "UnknownType";
|
12592
|
+
DiagnosticCode2[DiagnosticCode2["TypeWithArity0NotFound"] = 50] = "TypeWithArity0NotFound";
|
12593
|
+
DiagnosticCode2[DiagnosticCode2["VariableUsedBeforeBeingDeclared"] = 51] = "VariableUsedBeforeBeingDeclared";
|
12594
|
+
DiagnosticCode2[DiagnosticCode2["Type0IsNotAssignableToType1"] = 52] = "Type0IsNotAssignableToType1";
|
12595
|
+
DiagnosticCode2[DiagnosticCode2["VariableNotFound"] = 53] = "VariableNotFound";
|
12596
|
+
DiagnosticCode2[DiagnosticCode2["MethodNotFound"] = 54] = "MethodNotFound";
|
12597
|
+
DiagnosticCode2[DiagnosticCode2["UnknownPackage"] = 55] = "UnknownPackage";
|
12598
|
+
DiagnosticCode2[DiagnosticCode2["CannotAssignValueToExpression"] = 56] = "CannotAssignValueToExpression";
|
12599
|
+
DiagnosticCode2[DiagnosticCode2["NotEveryRequiredParameterIsProvidedWithCallArgument"] = 57] = "NotEveryRequiredParameterIsProvidedWithCallArgument";
|
12600
|
+
DiagnosticCode2[DiagnosticCode2["ParameterForPositionalCallArgumentNotFound"] = 58] = "ParameterForPositionalCallArgumentNotFound";
|
12601
|
+
DiagnosticCode2[DiagnosticCode2["CannotDetermineTargetTypeToCallTheConstructor"] = 59] = "CannotDetermineTargetTypeToCallTheConstructor";
|
12602
|
+
DiagnosticCode2[DiagnosticCode2["AmbiguousAccess"] = 60] = "AmbiguousAccess";
|
12603
|
+
DiagnosticCode2[DiagnosticCode2["PackageNameConflictsWithDeclarationName"] = 61] = "PackageNameConflictsWithDeclarationName";
|
12604
|
+
DiagnosticCode2[DiagnosticCode2["CanNotAssignValueToContextVariable"] = 62] = "CanNotAssignValueToContextVariable";
|
12605
|
+
DiagnosticCode2[DiagnosticCode2["ExpectedPackageNameOrAliasButFoundType"] = 63] = "ExpectedPackageNameOrAliasButFoundType";
|
12606
|
+
DiagnosticCode2[DiagnosticCode2["TypeExpected"] = 64] = "TypeExpected";
|
12607
|
+
DiagnosticCode2[DiagnosticCode2["TypeOrPackageNotFound"] = 65] = "TypeOrPackageNotFound";
|
12608
|
+
DiagnosticCode2[DiagnosticCode2["TypeIsNotATag"] = 66] = "TypeIsNotATag";
|
12609
|
+
DiagnosticCode2[DiagnosticCode2["ExpressionOfType0CanNotBeUsedForEnumeration"] = 67] = "ExpressionOfType0CanNotBeUsedForEnumeration";
|
12610
|
+
DiagnosticCode2[DiagnosticCode2["Operator0IsNotDefinedForTypes1And2"] = 68] = "Operator0IsNotDefinedForTypes1And2";
|
12611
|
+
DiagnosticCode2[DiagnosticCode2["Operator0IsNotDefinedForType1"] = 69] = "Operator0IsNotDefinedForType1";
|
12612
|
+
DiagnosticCode2[DiagnosticCode2["VariantMustHaveAssociatedValue"] = 70] = "VariantMustHaveAssociatedValue";
|
12613
|
+
DiagnosticCode2[DiagnosticCode2["PackageMemberOrPackageNotFound"] = 71] = "PackageMemberOrPackageNotFound";
|
12614
|
+
DiagnosticCode2[DiagnosticCode2["TranslationsCanOnlyBeDeclaredInTranslationPackage"] = 72] = "TranslationsCanOnlyBeDeclaredInTranslationPackage";
|
12615
|
+
DiagnosticCode2[DiagnosticCode2["UnknownTranslatedPackage0"] = 73] = "UnknownTranslatedPackage0";
|
12616
|
+
DiagnosticCode2[DiagnosticCode2["BaseCannotBeUsedInThisContext"] = 74] = "BaseCannotBeUsedInThisContext";
|
12617
|
+
DiagnosticCode2[DiagnosticCode2["OverriddenMethodNotFound"] = 75] = "OverriddenMethodNotFound";
|
12618
|
+
DiagnosticCode2[DiagnosticCode2["ObjectCannotBeUsedInThisContext"] = 76] = "ObjectCannotBeUsedInThisContext";
|
12619
|
+
DiagnosticCode2[DiagnosticCode2["BaseCannotBeUsedAsAnExpressionInItself"] = 77] = "BaseCannotBeUsedAsAnExpressionInItself";
|
12620
|
+
DiagnosticCode2[DiagnosticCode2["InterfacePackageMustNotContainImplementation"] = 78] = "InterfacePackageMustNotContainImplementation";
|
12621
|
+
DiagnosticCode2[DiagnosticCode2["InterfacePackageVariablesMustNotHaveInitializers"] = 79] = "InterfacePackageVariablesMustNotHaveInitializers";
|
12622
|
+
DiagnosticCode2[DiagnosticCode2["BodyIsMissing"] = 80] = "BodyIsMissing";
|
12623
|
+
DiagnosticCode2[DiagnosticCode2["AbstractTypeMembersMustNotHaveBody"] = 81] = "AbstractTypeMembersMustNotHaveBody";
|
12624
|
+
DiagnosticCode2[DiagnosticCode2["AbstractVariablesMustNotHaveInitializers"] = 82] = "AbstractVariablesMustNotHaveInitializers";
|
12625
|
+
DiagnosticCode2[DiagnosticCode2["PackageIsAlreadyImportedInAnotherLanguage"] = 83] = "PackageIsAlreadyImportedInAnotherLanguage";
|
12626
|
+
DiagnosticCode2[DiagnosticCode2["OnlySubprogramsWithReturnTypeCanReturnValue"] = 84] = "OnlySubprogramsWithReturnTypeCanReturnValue";
|
12627
|
+
DiagnosticCode2[DiagnosticCode2["MethodsUsingYieldStatementCanNotReturnValue"] = 85] = "MethodsUsingYieldStatementCanNotReturnValue";
|
12628
|
+
DiagnosticCode2[DiagnosticCode2["YieldStatementCanNotBeUsedInAnonymousMethods"] = 86] = "YieldStatementCanNotBeUsedInAnonymousMethods";
|
12629
|
+
DiagnosticCode2[DiagnosticCode2["YieldStatementCanNotBeUsedHere"] = 87] = "YieldStatementCanNotBeUsedHere";
|
12630
|
+
DiagnosticCode2[DiagnosticCode2["MethodsUsingYieldStatementMustHaveEnumerableAsReturnType"] = 88] = "MethodsUsingYieldStatementMustHaveEnumerableAsReturnType";
|
12631
|
+
DiagnosticCode2[DiagnosticCode2["YieldStatementCanNotBeUsedInRunStatementThatHasOnErrorClause"] = 89] = "YieldStatementCanNotBeUsedInRunStatementThatHasOnErrorClause";
|
12632
|
+
DiagnosticCode2[DiagnosticCode2["YieldStatementCanNotBeUsedInFinallyClause"] = 90] = "YieldStatementCanNotBeUsedInFinallyClause";
|
12633
|
+
DiagnosticCode2[DiagnosticCode2["SubprogramMustReturnValue"] = 91] = "SubprogramMustReturnValue";
|
12634
|
+
DiagnosticCode2[DiagnosticCode2["ResultVariableCanNotBeUsedInMethodsUsingYieldStatement"] = 92] = "ResultVariableCanNotBeUsedInMethodsUsingYieldStatement";
|
12635
|
+
DiagnosticCode2[DiagnosticCode2["TypeAliasReferencesItself"] = 93] = "TypeAliasReferencesItself";
|
12636
|
+
DiagnosticCode2[DiagnosticCode2["TypeParameterHasCircularConstraint"] = 94] = "TypeParameterHasCircularConstraint";
|
12637
|
+
DiagnosticCode2[DiagnosticCode2["BaseTypeCausesInheritanceCycle"] = 95] = "BaseTypeCausesInheritanceCycle";
|
12638
|
+
DiagnosticCode2[DiagnosticCode2["OnlyGenericTypesAndFunctionsCanBeSpecialized"] = 96] = "OnlyGenericTypesAndFunctionsCanBeSpecialized";
|
12639
|
+
DiagnosticCode2[DiagnosticCode2["Expected0TypeArguments"] = 97] = "Expected0TypeArguments";
|
12640
|
+
DiagnosticCode2[DiagnosticCode2["ExpectedFrom0To1TypeArguments"] = 98] = "ExpectedFrom0To1TypeArguments";
|
12641
|
+
DiagnosticCode2[DiagnosticCode2["Type0IsNotAssignableToConstraint1"] = 99] = "Type0IsNotAssignableToConstraint1";
|
12642
|
+
DiagnosticCode2[DiagnosticCode2["VariableIsDeclaredButNotUsed"] = 100] = "VariableIsDeclaredButNotUsed";
|
12643
|
+
DiagnosticCode2[DiagnosticCode2["DefaultConstructorArgumentsMustBeNamed"] = 101] = "DefaultConstructorArgumentsMustBeNamed";
|
12644
|
+
DiagnosticCode2[DiagnosticCode2["IncorrectBodyOfRedefinableAliasTypeMethod"] = 102] = "IncorrectBodyOfRedefinableAliasTypeMethod";
|
12645
|
+
DiagnosticCode2[DiagnosticCode2["TheFollowingDeclarationsAreNotTranslated0"] = 103] = "TheFollowingDeclarationsAreNotTranslated0";
|
12646
|
+
DiagnosticCode2[DiagnosticCode2["TheFollowingDeclarationAreNotTranslated0And1More"] = 104] = "TheFollowingDeclarationAreNotTranslated0And1More";
|
12647
|
+
DiagnosticCode2[DiagnosticCode2["OperatorMustNotBeStatic"] = 105] = "OperatorMustNotBeStatic";
|
12648
|
+
DiagnosticCode2[DiagnosticCode2["Operator0MustNotHaveParameters"] = 106] = "Operator0MustNotHaveParameters";
|
12649
|
+
DiagnosticCode2[DiagnosticCode2["Operator0MustHaveOneParameter"] = 107] = "Operator0MustHaveOneParameter";
|
12650
|
+
DiagnosticCode2[DiagnosticCode2["Operator0MustHaveNoMoreThanOneParameter"] = 108] = "Operator0MustHaveNoMoreThanOneParameter";
|
12651
|
+
DiagnosticCode2[DiagnosticCode2["CanNotFindTsLibDirectoryBaseSearchPaths0"] = 109] = "CanNotFindTsLibDirectoryBaseSearchPaths0";
|
12652
|
+
DiagnosticCode2[DiagnosticCode2["SourceFile0IsNotPartOfThePackageAndWontBeLoaded"] = 110] = "SourceFile0IsNotPartOfThePackageAndWontBeLoaded";
|
12653
|
+
DiagnosticCode2[DiagnosticCode2["ProgramWithoutMainPackageCanNotBeCompiled"] = 111] = "ProgramWithoutMainPackageCanNotBeCompiled";
|
12654
|
+
DiagnosticCode2[DiagnosticCode2["JsonConfigurationValidationError"] = 112] = "JsonConfigurationValidationError";
|
12655
|
+
DiagnosticCode2[DiagnosticCode2["StandardPackage0NotFound"] = 113] = "StandardPackage0NotFound";
|
12656
|
+
DiagnosticCode2[DiagnosticCode2["Declaration0NotFoundInStandardPackage1"] = 114] = "Declaration0NotFoundInStandardPackage1";
|
12706
12657
|
return DiagnosticCode2;
|
12707
12658
|
})(DiagnosticCode || {});
|
12708
12659
|
|
@@ -12745,315 +12696,235 @@ var englishErrorMessages = {
|
|
12745
12696
|
[0 /* IdentifierExpected */]: "Identifier expected.",
|
12746
12697
|
[1 /* TypeNameExpected */]: "Type name expected.",
|
12747
12698
|
[2 /* PackageNameExpected */]: "Package name expected.",
|
12748
|
-
[3 /*
|
12749
|
-
[4 /*
|
12750
|
-
[5 /*
|
12751
|
-
[6 /*
|
12752
|
-
[7 /*
|
12753
|
-
[8 /*
|
12754
|
-
[9 /*
|
12755
|
-
[10 /*
|
12756
|
-
[11 /*
|
12757
|
-
[12 /*
|
12758
|
-
[13 /*
|
12759
|
-
[14 /*
|
12760
|
-
[15 /*
|
12761
|
-
[16 /*
|
12762
|
-
[17 /*
|
12763
|
-
[18 /*
|
12764
|
-
[19 /*
|
12765
|
-
[20 /*
|
12766
|
-
[21 /*
|
12767
|
-
[22 /*
|
12768
|
-
[23 /*
|
12769
|
-
[24 /*
|
12770
|
-
[25 /*
|
12771
|
-
[26 /*
|
12772
|
-
[27 /*
|
12773
|
-
[28 /*
|
12774
|
-
[29 /*
|
12775
|
-
[30 /*
|
12776
|
-
[31 /*
|
12777
|
-
[
|
12778
|
-
[
|
12779
|
-
[
|
12780
|
-
[
|
12781
|
-
[
|
12782
|
-
[
|
12783
|
-
[
|
12784
|
-
[
|
12785
|
-
[
|
12786
|
-
[
|
12787
|
-
[
|
12788
|
-
[
|
12789
|
-
[
|
12790
|
-
[
|
12791
|
-
[
|
12792
|
-
[
|
12793
|
-
[
|
12794
|
-
[
|
12795
|
-
[
|
12796
|
-
[
|
12797
|
-
[
|
12798
|
-
[
|
12799
|
-
[
|
12800
|
-
[
|
12801
|
-
[
|
12802
|
-
[
|
12803
|
-
[
|
12804
|
-
[
|
12805
|
-
[
|
12806
|
-
[
|
12807
|
-
[
|
12808
|
-
[
|
12809
|
-
[
|
12810
|
-
[
|
12811
|
-
[
|
12812
|
-
[
|
12813
|
-
[
|
12814
|
-
[
|
12815
|
-
[
|
12816
|
-
[
|
12817
|
-
[
|
12818
|
-
[
|
12819
|
-
[
|
12820
|
-
[
|
12821
|
-
[
|
12822
|
-
[
|
12823
|
-
[
|
12824
|
-
[
|
12825
|
-
[
|
12826
|
-
[
|
12827
|
-
[
|
12828
|
-
[
|
12829
|
-
[
|
12830
|
-
[
|
12831
|
-
[
|
12832
|
-
[
|
12833
|
-
[
|
12834
|
-
[
|
12835
|
-
[
|
12836
|
-
[
|
12837
|
-
[
|
12838
|
-
[
|
12839
|
-
[
|
12840
|
-
[
|
12841
|
-
[
|
12842
|
-
[
|
12843
|
-
[
|
12844
|
-
[
|
12845
|
-
[
|
12846
|
-
[
|
12847
|
-
[
|
12848
|
-
[
|
12849
|
-
[
|
12850
|
-
[
|
12851
|
-
[
|
12852
|
-
[
|
12853
|
-
[108 /*
|
12854
|
-
[
|
12855
|
-
[
|
12856
|
-
[
|
12857
|
-
[112 /*
|
12858
|
-
[113 /*
|
12859
|
-
[114 /*
|
12860
|
-
[115 /* InterfacePackageIndexersMustNotHaveAccessors */]: "Interface package indexers must not have accessors.",
|
12861
|
-
[116 /* BodyIsMissing */]: "Body is missing.",
|
12862
|
-
[117 /* AbstractTypeMembersMustNotHaveBody */]: "Abstract type members must not have body.",
|
12863
|
-
[118 /* AbstractIndexersMustNotHaveAccessors */]: "Abstract indexers must not have accessors.",
|
12864
|
-
[119 /* AbstractVariablesMustNotHaveInitializers */]: "Abstract variables must not have initializers.",
|
12865
|
-
[120 /* AbstractVariablesMustNotHaveAccessors */]: "Abstract variables must not have accessors.",
|
12866
|
-
[121 /* AccessorsAreMissing */]: "Accessors are missing.",
|
12867
|
-
[122 /* PackageIsAlreadyImportedInAnotherLanguage */]: "Package is already imported in another language.",
|
12868
|
-
[123 /* OnlySubprogramsWithReturnTypeCanReturnValue */]: "Only subprograms with a return type can return a value.",
|
12869
|
-
[124 /* MethodsUsingYieldStatementCanNotReturnValue */]: "Methods using yield statement can not return a value.",
|
12870
|
-
[125 /* YieldStatementCanNotBeUsedInAnonymousMethods */]: "Yield statement can not be used in anonymous methods.",
|
12871
|
-
[126 /* YieldStatementCanNotBeUsedHere */]: "Yield statement can not be used here.",
|
12872
|
-
[127 /* MethodsUsingYieldStatementMustHaveEnumerableAsReturnType */]: "Methods using yield statement must have 'Enumerable' as a return type.",
|
12873
|
-
[128 /* YieldStatementCanNotBeUsedInRunStatementThatHasOnErrorClause */]: "Yield statement can not be used in run statement that has on error clause.",
|
12874
|
-
[129 /* YieldStatementCanNotBeUsedInFinallyClause */]: "Yield statement can not be used in finally clause.",
|
12875
|
-
[130 /* SubprogramMustReturnValue */]: "Subprogram must return a value.",
|
12876
|
-
[131 /* ResultVariableCanNotBeUsedInMethodsUsingYieldStatement */]: "'result' variable can not be used in methods using yield statement.",
|
12877
|
-
[132 /* TypeAliasReferencesItself */]: "Type alias references itself.",
|
12878
|
-
[133 /* TypeParameterHasCircularConstraint */]: "Type parameter has circular constraint.",
|
12879
|
-
[134 /* BaseTypeCausesInheritanceCycle */]: "Base type causes inheritance cycle.",
|
12880
|
-
[135 /* OnlyGenericTypesAndFunctionsCanBeSpecialized */]: "Only generic types and functions can be specialized.",
|
12881
|
-
[136 /* Expected0TypeArguments */]: "Expected '{0}' type argument(s).",
|
12882
|
-
[137 /* ExpectedFrom0To1TypeArguments */]: "Expected from '{0}' to '{1}' type arguments.",
|
12883
|
-
[138 /* Type0IsNotAssignableToConstraint1 */]: "Type '{0}' is not assignable to constraint '{1}'.",
|
12884
|
-
[139 /* VariableIsDeclaredButNotUsed */]: "Variable is declared but not used.",
|
12885
|
-
[140 /* DefaultConstructorArgumentsMustBeNamed */]: "Default constructor arguments must be named.",
|
12886
|
-
[141 /* IncorrectBodyOfRedefinableAliasTypeMethod */]: "Body of redefinable method declared in alias type must consist of a call to redefinable method of original type with same parameters and return type.",
|
12887
|
-
[142 /* TheFollowingDeclarationsAreNotTranslated0 */]: "The following declarations are not translated: {0}.",
|
12888
|
-
[143 /* TheFollowingDeclarationAreNotTranslated0And1More */]: "The following declarations are not translated: {0}and {1} more.",
|
12889
|
-
[144 /* OperatorMustNotBeStatic */]: "Operator must not be static.",
|
12890
|
-
[145 /* Operator0MustNotHaveParameters */]: "Operator '{0}' must not have parameters.",
|
12891
|
-
[146 /* Operator0MustHaveOneParameter */]: "Operator '{0}' must have one parameter.",
|
12892
|
-
[147 /* Operator0MustHaveNoMoreThanOneParameter */]: "Operator '{0}' must have no more than one parameter.",
|
12893
|
-
[148 /* CanNotFindTsLibDirectoryBaseSearchPaths0 */]: "Can not find directory with TypeScript library. Base search paths: {0}.",
|
12894
|
-
[149 /* SourceFile0IsNotPartOfThePackageAndWontBeLoaded */]: "Source file '{0}' is not part of the package and won't be loaded.",
|
12895
|
-
[150 /* MainPackageConfigurationIsMissingProjectWontBeLoaded */]: "Main package configuration is missing. Package wont't be loaded.",
|
12896
|
-
[151 /* ProgramWithoutMainPackageCanNotBeCompiled */]: "Program without main package can not be compiled.",
|
12897
|
-
[152 /* JsonConfigurationValidationError */]: "JSON configuration validation error.",
|
12898
|
-
[153 /* StandardPackage0NotFound */]: "Standard package '{0}' not found.",
|
12899
|
-
[154 /* Declaration0NotFoundInStandardPackage1 */]: "Declaration '{0}' not found in standard package '{1}'."
|
12699
|
+
[3 /* TypeMemberDeclarationExpected */]: "Type member declaration expected.",
|
12700
|
+
[4 /* SourceFileMemberExpected */]: "Declaration expected.",
|
12701
|
+
[5 /* EnumerationVariableDeclarationExpected */]: "Enumeration variable declaration expected.",
|
12702
|
+
[6 /* StatementExpected */]: "Statement expected.",
|
12703
|
+
[7 /* ExpressionExpected */]: "Expression expected.",
|
12704
|
+
[8 /* BaseTypeNameExpected */]: "Base type name expected.",
|
12705
|
+
[9 /* TypeSpecifierExpected */]: "Type specifier expected.",
|
12706
|
+
[10 /* TypeBodyExpected */]: "Type body expected.",
|
12707
|
+
[11 /* MethodCallArgumentExpected */]: "Method call argument expected.",
|
12708
|
+
[12 /* TagArgumentExpected */]: "Tag argument expected.",
|
12709
|
+
[13 /* TypeParameterExpected */]: "Type parameter expected.",
|
12710
|
+
[14 /* ParameterExpected */]: "Parameter expected.",
|
12711
|
+
[15 /* RunStatementClauseExpected */]: "Run statement clause expected.",
|
12712
|
+
[16 /* PackageImportExpected */]: "Package import expected.",
|
12713
|
+
[17 /* UsingDirectiveOrSourceFileMemberExpected */]: "Using directive or source file member expected.",
|
12714
|
+
[18 /* WordFormExpected */]: "Word form expected.",
|
12715
|
+
[19 /* TypeMemberTranslationExpected */]: "Type member translation expected.",
|
12716
|
+
[20 /* TranslationExpected */]: "Translation expected.",
|
12717
|
+
[21 /* Expected0But1Found */]: "Expected '{0}', but '{1}' found.",
|
12718
|
+
[22 /* InvalidTextTemplateLiteral */]: "Invalid text template literal.",
|
12719
|
+
[23 /* RunKeywordOnCreateKeywordOrModifierListExpected */]: "'Run' keyword, 'creation' keyword or modifier list expected.",
|
12720
|
+
[24 /* ModifierListExpected */]: "Modifier list expected.",
|
12721
|
+
[25 /* HidingLevelExpected */]: "Hiding level expected.",
|
12722
|
+
[26 /* ParameterNameCanContainOnlyOneBackQuote */]: "Parameter name can contain only one back quote.",
|
12723
|
+
[27 /* FieldNameCanContainOnlyTwoBackQuote */]: "Field name can contain only two back quote.",
|
12724
|
+
[28 /* BackQuotesCanOnlyBeUsedInParameterAndFieldNames */]: "Back quotes can only be used in parameter and field names.",
|
12725
|
+
[29 /* NameThatMatchesKeywordMustBeEnclosedInSingleQuotes */]: "Name that matches keyword must be enclosed in single quotes.",
|
12726
|
+
[30 /* VariantNotFound */]: "Variant not found.",
|
12727
|
+
[31 /* TypeCannotBeUsedAsValue */]: "Type cannot be used as value.",
|
12728
|
+
[47 /* PackageNameCannotBeUsedAsValue */]: "Package name cannot be used as value.",
|
12729
|
+
[32 /* PackageMemberNotFound */]: "Package member not found.",
|
12730
|
+
[33 /* TypeMemberNotFound */]: "Type member not found.",
|
12731
|
+
[34 /* CannotAccessStaticMembersOnTypeParameter */]: "Cannot access static members on type parameter.",
|
12732
|
+
[35 /* IndexerOfTheSpecifiedTypeNotFound */]: "Indexer of the specified type not found.",
|
12733
|
+
[36 /* DereferenceOperatorOfTheSpecifiedTypeNotFound */]: "Dereference operator of the specified type not found.",
|
12734
|
+
[38 /* CannotCreateInstanceOfAspect */]: "Cannot create instance of aspect.",
|
12735
|
+
[39 /* CannotCreateInstanceOfTypeParameter */]: "Cannot create instance of type parameter.",
|
12736
|
+
[40 /* CannotCreateInstanceOfUnresolvedType */]: "Cannot create instance of unresolved type.",
|
12737
|
+
[41 /* TypeConstructorNotFound */]: "Constructor not found.",
|
12738
|
+
[42 /* CannotInvokeExpression */]: "Cannot invoke expression.",
|
12739
|
+
[43 /* NamedArgumentExpectedButPositionalArgumentFound */]: "Named argument expected but positional argument found.",
|
12740
|
+
[44 /* ParameterWithGivenNameNotFound */]: "Parameter with given name not found.",
|
12741
|
+
[45 /* ArgumentForParameterAlreadyPassed */]: "Argument for parameter already passed.",
|
12742
|
+
[46 /* PackageAliasCannotBeUsedAsValue */]: "Package alias cannot be used as value.",
|
12743
|
+
[48 /* UnknownVariable */]: "Unknown variable.",
|
12744
|
+
[49 /* UnknownType */]: "Unknown type.",
|
12745
|
+
[50 /* TypeWithArity0NotFound */]: "Type with arity '{0}' not found.",
|
12746
|
+
[51 /* VariableUsedBeforeBeingDeclared */]: "Variable used before being declared.",
|
12747
|
+
[52 /* Type0IsNotAssignableToType1 */]: "Type '{0}' is not assignable to type '{1}'.",
|
12748
|
+
[53 /* VariableNotFound */]: "Variable not found.",
|
12749
|
+
[54 /* MethodNotFound */]: "Method not found.",
|
12750
|
+
[55 /* UnknownPackage */]: "Unknown package.",
|
12751
|
+
[56 /* CannotAssignValueToExpression */]: "Cannot assign value to expression.",
|
12752
|
+
[57 /* NotEveryRequiredParameterIsProvidedWithCallArgument */]: "Not every required parameter is provided with call argument.",
|
12753
|
+
[58 /* ParameterForPositionalCallArgumentNotFound */]: "Parameter for positional call argument not found.",
|
12754
|
+
[59 /* CannotDetermineTargetTypeToCallTheConstructor */]: "Cannot determine target type to call the constructor.",
|
12755
|
+
[60 /* AmbiguousAccess */]: "Ambiguous access.",
|
12756
|
+
[61 /* PackageNameConflictsWithDeclarationName */]: "Package name conflicts with declaration name.",
|
12757
|
+
[62 /* CanNotAssignValueToContextVariable */]: "Can not assign value to context variable.",
|
12758
|
+
[63 /* ExpectedPackageNameOrAliasButFoundType */]: "Expected package name or alias but foundType.",
|
12759
|
+
[64 /* TypeExpected */]: "Type expected.",
|
12760
|
+
[65 /* TypeOrPackageNotFound */]: "Type or package not found.",
|
12761
|
+
[66 /* TypeIsNotATag */]: "Type is not a tag.",
|
12762
|
+
[67 /* ExpressionOfType0CanNotBeUsedForEnumeration */]: "Expression of type '{0}' can not be used for enumeration.",
|
12763
|
+
[68 /* Operator0IsNotDefinedForTypes1And2 */]: "Operator '{0}' is not defined for types '{1}' and '{2}'.",
|
12764
|
+
[69 /* Operator0IsNotDefinedForType1 */]: "Operator '{0}' is not defined for type '{1}'.",
|
12765
|
+
[70 /* VariantMustHaveAssociatedValue */]: "Variant must have associated value.",
|
12766
|
+
[71 /* PackageMemberOrPackageNotFound */]: "Package member or package not found.",
|
12767
|
+
[72 /* TranslationsCanOnlyBeDeclaredInTranslationPackage */]: "Name dictionary can only be declared in translation package.",
|
12768
|
+
[73 /* UnknownTranslatedPackage0 */]: "Unknown translated package '{0}'.",
|
12769
|
+
[37 /* IndexerNotFound */]: "Indexer not found.",
|
12770
|
+
[74 /* BaseCannotBeUsedInThisContext */]: "'base' cannot be used in this context.",
|
12771
|
+
[77 /* BaseCannotBeUsedAsAnExpressionInItself */]: "'base' cannot be used as an expression in itself.",
|
12772
|
+
[75 /* OverriddenMethodNotFound */]: "Overridden method not found.",
|
12773
|
+
[76 /* ObjectCannotBeUsedInThisContext */]: "'object' cannot be used in this context.",
|
12774
|
+
[78 /* InterfacePackageMustNotContainImplementation */]: "Interface package must not contain implementation.",
|
12775
|
+
[79 /* InterfacePackageVariablesMustNotHaveInitializers */]: "Interface package variables must not have initializers.",
|
12776
|
+
[80 /* BodyIsMissing */]: "Body is missing.",
|
12777
|
+
[81 /* AbstractTypeMembersMustNotHaveBody */]: "Abstract type members must not have body.",
|
12778
|
+
[82 /* AbstractVariablesMustNotHaveInitializers */]: "Abstract variables must not have initializers.",
|
12779
|
+
[83 /* PackageIsAlreadyImportedInAnotherLanguage */]: "Package is already imported in another language.",
|
12780
|
+
[84 /* OnlySubprogramsWithReturnTypeCanReturnValue */]: "Only subprograms with a return type can return a value.",
|
12781
|
+
[85 /* MethodsUsingYieldStatementCanNotReturnValue */]: "Methods using yield statement can not return a value.",
|
12782
|
+
[86 /* YieldStatementCanNotBeUsedInAnonymousMethods */]: "Yield statement can not be used in anonymous methods.",
|
12783
|
+
[87 /* YieldStatementCanNotBeUsedHere */]: "Yield statement can not be used here.",
|
12784
|
+
[88 /* MethodsUsingYieldStatementMustHaveEnumerableAsReturnType */]: "Methods using yield statement must have 'Enumerable' as a return type.",
|
12785
|
+
[89 /* YieldStatementCanNotBeUsedInRunStatementThatHasOnErrorClause */]: "Yield statement can not be used in run statement that has on error clause.",
|
12786
|
+
[90 /* YieldStatementCanNotBeUsedInFinallyClause */]: "Yield statement can not be used in finally clause.",
|
12787
|
+
[91 /* SubprogramMustReturnValue */]: "Subprogram must return a value.",
|
12788
|
+
[92 /* ResultVariableCanNotBeUsedInMethodsUsingYieldStatement */]: "'result' variable can not be used in methods using yield statement.",
|
12789
|
+
[93 /* TypeAliasReferencesItself */]: "Type alias references itself.",
|
12790
|
+
[94 /* TypeParameterHasCircularConstraint */]: "Type parameter has circular constraint.",
|
12791
|
+
[95 /* BaseTypeCausesInheritanceCycle */]: "Base type causes inheritance cycle.",
|
12792
|
+
[96 /* OnlyGenericTypesAndFunctionsCanBeSpecialized */]: "Only generic types and functions can be specialized.",
|
12793
|
+
[97 /* Expected0TypeArguments */]: "Expected '{0}' type argument(s).",
|
12794
|
+
[98 /* ExpectedFrom0To1TypeArguments */]: "Expected from '{0}' to '{1}' type arguments.",
|
12795
|
+
[99 /* Type0IsNotAssignableToConstraint1 */]: "Type '{0}' is not assignable to constraint '{1}'.",
|
12796
|
+
[100 /* VariableIsDeclaredButNotUsed */]: "Variable is declared but not used.",
|
12797
|
+
[101 /* DefaultConstructorArgumentsMustBeNamed */]: "Default constructor arguments must be named.",
|
12798
|
+
[102 /* IncorrectBodyOfRedefinableAliasTypeMethod */]: "Body of redefinable method declared in alias type must consist of a call to redefinable method of original type with same parameters and return type.",
|
12799
|
+
[103 /* TheFollowingDeclarationsAreNotTranslated0 */]: "The following declarations are not translated: {0}.",
|
12800
|
+
[104 /* TheFollowingDeclarationAreNotTranslated0And1More */]: "The following declarations are not translated: {0}and {1} more.",
|
12801
|
+
[105 /* OperatorMustNotBeStatic */]: "Operator must not be static.",
|
12802
|
+
[106 /* Operator0MustNotHaveParameters */]: "Operator '{0}' must not have parameters.",
|
12803
|
+
[107 /* Operator0MustHaveOneParameter */]: "Operator '{0}' must have one parameter.",
|
12804
|
+
[108 /* Operator0MustHaveNoMoreThanOneParameter */]: "Operator '{0}' must have no more than one parameter.",
|
12805
|
+
[109 /* CanNotFindTsLibDirectoryBaseSearchPaths0 */]: "Can not find directory with TypeScript library. Base search paths: {0}.",
|
12806
|
+
[110 /* SourceFile0IsNotPartOfThePackageAndWontBeLoaded */]: "Source file '{0}' is not part of the package and won't be loaded.",
|
12807
|
+
[111 /* ProgramWithoutMainPackageCanNotBeCompiled */]: "Program without main package can not be compiled.",
|
12808
|
+
[112 /* JsonConfigurationValidationError */]: "JSON configuration validation error.",
|
12809
|
+
[113 /* StandardPackage0NotFound */]: "Standard package '{0}' not found.",
|
12810
|
+
[114 /* Declaration0NotFoundInStandardPackage1 */]: "Declaration '{0}' not found in standard package '{1}'."
|
12900
12811
|
};
|
12901
12812
|
var russianErrorMessages = {
|
12902
12813
|
[0 /* IdentifierExpected */]: "\u041E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u0438\u043C\u044F.",
|
12903
12814
|
[1 /* TypeNameExpected */]: "\u041E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u0438\u043C\u044F \u0442\u0438\u043F\u0430.",
|
12904
12815
|
[2 /* PackageNameExpected */]: "\u041E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u0438\u043C\u044F \u043F\u0430\u043A\u0435\u0442\u0430.",
|
12905
|
-
[3 /*
|
12906
|
-
[4 /*
|
12907
|
-
[5 /*
|
12908
|
-
[6 /*
|
12909
|
-
[7 /*
|
12910
|
-
[8 /*
|
12911
|
-
[9 /*
|
12912
|
-
[10 /*
|
12913
|
-
[11 /*
|
12914
|
-
[12 /*
|
12915
|
-
[13 /*
|
12916
|
-
[14 /*
|
12917
|
-
[15 /*
|
12918
|
-
[16 /*
|
12919
|
-
[17 /*
|
12920
|
-
[18 /*
|
12921
|
-
[19 /*
|
12922
|
-
[20 /*
|
12923
|
-
[21 /*
|
12924
|
-
[22 /*
|
12925
|
-
[23 /*
|
12926
|
-
[24 /*
|
12927
|
-
[
|
12928
|
-
[
|
12929
|
-
[28 /*
|
12930
|
-
[29 /*
|
12931
|
-
[30 /*
|
12932
|
-
[31 /*
|
12933
|
-
[
|
12934
|
-
[
|
12935
|
-
[
|
12936
|
-
[
|
12937
|
-
[
|
12938
|
-
[
|
12939
|
-
[
|
12940
|
-
[
|
12941
|
-
[
|
12942
|
-
[
|
12943
|
-
[
|
12944
|
-
[
|
12945
|
-
[
|
12946
|
-
[
|
12947
|
-
[
|
12948
|
-
[
|
12949
|
-
[
|
12950
|
-
[
|
12951
|
-
[
|
12952
|
-
[
|
12953
|
-
[
|
12954
|
-
[
|
12955
|
-
[
|
12956
|
-
[
|
12957
|
-
[
|
12958
|
-
[
|
12959
|
-
[
|
12960
|
-
[
|
12961
|
-
[
|
12962
|
-
[
|
12963
|
-
[
|
12964
|
-
[
|
12965
|
-
[
|
12966
|
-
[
|
12967
|
-
[
|
12968
|
-
[
|
12969
|
-
[
|
12970
|
-
[
|
12971
|
-
[
|
12972
|
-
[
|
12973
|
-
[
|
12974
|
-
[
|
12975
|
-
[
|
12976
|
-
[
|
12977
|
-
[77 /*
|
12978
|
-
[
|
12979
|
-
[
|
12980
|
-
[
|
12981
|
-
[
|
12982
|
-
[
|
12983
|
-
[
|
12984
|
-
[
|
12985
|
-
[
|
12986
|
-
[
|
12987
|
-
[
|
12988
|
-
[
|
12989
|
-
[
|
12990
|
-
[
|
12991
|
-
[
|
12992
|
-
[
|
12993
|
-
[
|
12994
|
-
[
|
12995
|
-
[
|
12996
|
-
[
|
12997
|
-
[
|
12998
|
-
[
|
12999
|
-
[
|
13000
|
-
[
|
13001
|
-
[
|
13002
|
-
[
|
13003
|
-
[
|
13004
|
-
[
|
13005
|
-
[
|
13006
|
-
[
|
13007
|
-
[
|
13008
|
-
[
|
13009
|
-
[
|
13010
|
-
[108 /*
|
13011
|
-
[
|
13012
|
-
[
|
13013
|
-
[
|
13014
|
-
[112 /*
|
13015
|
-
[113 /*
|
13016
|
-
[114 /*
|
13017
|
-
[115 /* InterfacePackageIndexersMustNotHaveAccessors */]: "\u0418\u043D\u0434\u0435\u043A\u0441\u0430\u0442\u043E\u0440\u044B \u0432 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043D\u043E\u043C \u043F\u0430\u043A\u0435\u0442\u0435 \u043D\u0435 \u0434\u043E\u043B\u0436\u043D\u044B \u0438\u043C\u0435\u0442\u044C \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0439 '\u043F\u0440\u0438 \u0447\u0442\u0435\u043D\u0438\u0438' \u0438 '\u043F\u0440\u0438 \u0437\u0430\u043F\u0438\u0441\u0438'.",
|
13018
|
-
[116 /* BodyIsMissing */]: "\u041E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0442\u0435\u043B\u043E.",
|
13019
|
-
[117 /* AbstractTypeMembersMustNotHaveBody */]: "\u0410\u0431\u0441\u0442\u0440\u0430\u043A\u0442\u043D\u044B\u0435 \u0447\u043B\u0435\u043D\u044B \u0442\u0438\u043F\u043E\u0432 \u043D\u0435 \u0434\u043E\u043B\u0436\u043D\u044B \u0438\u043C\u0435\u0442\u044C \u0442\u0435\u043B\u0430.",
|
13020
|
-
[118 /* AbstractIndexersMustNotHaveAccessors */]: "\u0410\u0431\u0441\u0442\u0440\u0430\u043A\u0442\u043D\u044B\u0435 \u0438\u043D\u0434\u0435\u043A\u0441\u0430\u0442\u043E\u0440\u044B \u043D\u0435 \u0434\u043E\u043B\u0436\u043D\u044B \u0438\u043C\u0435\u0442\u044C \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0439 '\u043F\u0440\u0438 \u0447\u0442\u0435\u043D\u0438\u0438' \u0438 '\u043F\u0440\u0438 \u0437\u0430\u043F\u0438\u0441\u0438'.",
|
13021
|
-
[119 /* AbstractVariablesMustNotHaveInitializers */]: "\u0410\u0431\u0441\u0442\u0440\u0430\u043A\u0442\u043D\u044B\u0435 \u043F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u044B\u0435 \u043D\u0435 \u0434\u043E\u043B\u0436\u043D\u044B \u0438\u043C\u0435\u0442\u044C \u043D\u0430\u0447\u0430\u043B\u044C\u043D\u044B\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F.",
|
13022
|
-
[120 /* AbstractVariablesMustNotHaveAccessors */]: "\u0410\u0431\u0441\u0442\u0440\u0430\u043A\u0442\u043D\u044B\u0435 \u043F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u044B\u0435 \u043D\u0435 \u0434\u043E\u043B\u0436\u043D\u044B \u0438\u043C\u0435\u0442\u044C \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0439 '\u043F\u0440\u0438 \u0447\u0442\u0435\u043D\u0438\u0438' \u0438 '\u043F\u0440\u0438 \u0437\u0430\u043F\u0438\u0441\u0438'.",
|
13023
|
-
[121 /* AccessorsAreMissing */]: "\u041E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044E\u0442 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 '\u043F\u0440\u0438 \u0447\u0442\u0435\u043D\u0438\u0438' \u0438 '\u043F\u0440\u0438 \u0437\u0430\u043F\u0438\u0441\u0438'.",
|
13024
|
-
[122 /* PackageIsAlreadyImportedInAnotherLanguage */]: "\u041F\u0430\u043A\u0435\u0442 \u0443\u0436\u0435 \u0438\u043C\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u043D \u043D\u0430 \u0434\u0440\u0443\u0433\u043E\u043C \u044F\u0437\u044B\u043A\u0435.",
|
13025
|
-
[123 /* OnlySubprogramsWithReturnTypeCanReturnValue */]: "\u0412\u043E\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044C \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u043C\u043E\u0433\u0443\u0442 \u0442\u043E\u043B\u044C\u043A\u043E \u043F\u043E\u0434\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u044B, \u0438\u043C\u0435\u044E\u0449\u0438\u0435 \u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043C\u044B\u0439 \u0442\u0438\u043F.",
|
13026
|
-
[124 /* MethodsUsingYieldStatementCanNotReturnValue */]: "\u041C\u0435\u0442\u043E\u0434\u044B, \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u044E\u0449\u0438\u0435 \u043A\u043E\u043C\u0430\u043D\u0434\u0443 '\u0432\u044B\u0434\u0430\u0442\u044C', \u043D\u0435 \u043C\u043E\u0433\u0443\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044C \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435.",
|
13027
|
-
[125 /* YieldStatementCanNotBeUsedInAnonymousMethods */]: "\u041A\u043E\u043C\u0430\u043D\u0434\u0430 '\u0432\u044B\u0434\u0430\u0442\u044C' \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0432 \u0431\u0435\u0437\u044B\u043C\u044F\u043D\u043D\u044B\u0445 \u043C\u0435\u0442\u043E\u0434\u0430\u0445.",
|
13028
|
-
[126 /* YieldStatementCanNotBeUsedHere */]: "\u041A\u043E\u043C\u0430\u043D\u0434\u0430 '\u0432\u044B\u0434\u0430\u0442\u044C' \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0437\u0434\u0435\u0441\u044C \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C\u0441\u044F.",
|
13029
|
-
[127 /* MethodsUsingYieldStatementMustHaveEnumerableAsReturnType */]: "\u041C\u0435\u0442\u043E\u0434\u044B, \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u044E\u0449\u0438\u0435 \u043A\u043E\u043C\u0430\u043D\u0434\u0443 '\u0432\u044B\u0434\u0430\u0442\u044C', \u0434\u043E\u043B\u0436\u043D\u044B \u0438\u043C\u0435\u0442\u044C \u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043C\u044B\u0439 \u0442\u0438\u043F '\u041F\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0435\u043C\u044B\u0439'.",
|
13030
|
-
[128 /* YieldStatementCanNotBeUsedInRunStatementThatHasOnErrorClause */]: "\u041A\u043E\u043C\u0430\u043D\u0434\u0430 '\u0432\u044B\u0434\u0430\u0442\u044C' \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0432 \u0431\u043B\u043E\u043A\u0435 '\u0432\u044B\u043F\u043E\u043B\u043D\u0438\u0442\u044C', \u0438\u043C\u0435\u044E\u0449\u0435\u043C \u0431\u043B\u043E\u043A '\u043F\u0440\u0438 \u043E\u0448\u0438\u0431\u043A\u0435'.",
|
13031
|
-
[129 /* YieldStatementCanNotBeUsedInFinallyClause */]: "\u041A\u043E\u043C\u0430\u043D\u0434\u0430 '\u0432\u044B\u0434\u0430\u0442\u044C' \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0432 \u0431\u043B\u043E\u043A\u0435 '\u043D\u0430\u043F\u043E\u0441\u043B\u0435\u0434\u043E\u043A'.",
|
13032
|
-
[130 /* SubprogramMustReturnValue */]: "\u041F\u043E\u0434\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430 \u0434\u043E\u043B\u0436\u043D\u0430 \u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044C \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435.",
|
13033
|
-
[131 /* ResultVariableCanNotBeUsedInMethodsUsingYieldStatement */]: "\u041F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u0430\u044F '\u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442' \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u0442\u043E\u0434\u0430, \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u044E\u0449\u0438\u0445 \u043A\u043E\u043C\u0430\u043D\u0434\u0443 '\u0432\u044B\u0434\u0430\u0442\u044C'.",
|
13034
|
-
[132 /* TypeAliasReferencesItself */]: "\u0422\u043E\u0436\u0434\u0435\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0439 \u0442\u0438\u043F \u0441\u0441\u044B\u043B\u0430\u0435\u0442\u0441\u044F \u0441\u0430\u043C \u043D\u0430 \u0441\u0435\u0431\u044F.",
|
13035
|
-
[133 /* TypeParameterHasCircularConstraint */]: "\u041E\u0433\u0440\u0430\u043D\u0438\u0447\u0435\u043D\u0438\u0435 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0430 \u043E\u0431\u043E\u0431\u0449\u0435\u043D\u0438\u044F \u043E\u0431\u0440\u0430\u0437\u0443\u0435\u0442 \u0446\u0438\u043A\u043B.",
|
13036
|
-
[134 /* BaseTypeCausesInheritanceCycle */]: "\u0411\u0430\u0437\u043E\u0432\u044B\u0439 \u0442\u0438\u043F \u043F\u0440\u0438\u0432\u043E\u0434\u0438\u0442 \u043A \u0446\u0438\u043A\u043B\u0443 \u043D\u0430\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u043D\u0438\u044F.",
|
13037
|
-
[135 /* OnlyGenericTypesAndFunctionsCanBeSpecialized */]: "\u0422\u043E\u043B\u044C\u043A\u043E \u043E\u0431\u043E\u0431\u0449\u0451\u043D\u043D\u044B\u0435 \u0442\u0438\u043F\u044B \u0438 \u0444\u0443\u043D\u043A\u0446\u0438\u0438 \u043C\u043E\u0433\u0443\u0442 \u0443\u0442\u043E\u0447\u043D\u044F\u0442\u044C\u0441\u044F.",
|
13038
|
-
[136 /* Expected0TypeArguments */]: "\u041E\u0436\u0438\u0434\u0430\u043B\u0438\u0441\u044C \u0430\u0440\u0433\u0443\u043C\u0435\u043D\u0442\u044B \u043E\u0431\u043E\u0431\u0449\u0435\u043D\u0438\u044F \u0432 \u043A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u0435 {0}.",
|
13039
|
-
[137 /* ExpectedFrom0To1TypeArguments */]: "\u041E\u0436\u0438\u0434\u0430\u043B\u0438\u0441\u044C \u0430\u0440\u0433\u0443\u043C\u0435\u043D\u0442\u044B \u043E\u0431\u043E\u0431\u0449\u0435\u043D\u0438\u044F \u0432 \u043A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u0435 \u043E\u0442 {0} \u0434\u043E {1}.",
|
13040
|
-
[138 /* Type0IsNotAssignableToConstraint1 */]: "\u0422\u0438\u043F '{0}' \u043D\u0435 \u0441\u043E\u0432\u043C\u0435\u0441\u0442\u0438\u043C \u0441 \u043E\u0433\u0440\u0430\u043D\u0438\u0447\u0435\u043D\u0438\u0435\u043C '{1}'.",
|
13041
|
-
[139 /* VariableIsDeclaredButNotUsed */]: "\u041F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u0430\u044F \u043E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u0430, \u043D\u043E \u043D\u0435 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442\u0441\u044F.",
|
13042
|
-
[140 /* DefaultConstructorArgumentsMustBeNamed */]: "\u0410\u0440\u0433\u0443\u043C\u0435\u043D\u0442\u044B \u043A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440\u0430 \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E \u0434\u043E\u043B\u0436\u043D\u044B \u043F\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044C\u0441\u044F \u0441 \u0443\u043A\u0430\u0437\u0430\u043D\u0438\u0435\u043C \u0438\u043C\u0435\u043D\u0438 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044E\u0449\u0435\u0433\u043E \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0430.",
|
13043
|
-
[141 /* IncorrectBodyOfRedefinableAliasTypeMethod */]: "\u0422\u0435\u043B\u043E \u0437\u0430\u043C\u0435\u043D\u044F\u0435\u043C\u043E\u0433\u043E \u043C\u0435\u0442\u043E\u0434\u0430, \u043E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u043D\u043E\u0433\u043E \u0432 \u0442\u043E\u0436\u0434\u0435\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u043C \u0442\u0438\u043F\u0435, \u0434\u043E\u043B\u0436\u043D\u043E \u0441\u043E\u0441\u0442\u043E\u044F\u0442\u044C \u0438\u0437 \u0432\u044B\u0437\u043E\u0432\u0430 \u0437\u0430\u043C\u0435\u043D\u044F\u0435\u043C\u043E\u0433\u043E \u043C\u0435\u0442\u043E\u0434\u0430 \u043E\u0440\u0438\u0433\u0438\u043D\u0430\u043B\u044C\u043D\u043E \u0442\u0438\u043F\u0430 \u0441 \u0442\u0430\u043A\u0438\u043C\u0438 \u0436\u0435 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0430\u043C\u0438 \u0438 \u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043C\u044B\u043C \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435\u043C.",
|
13044
|
-
[142 /* TheFollowingDeclarationsAreNotTranslated0 */]: "\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0435 \u043E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u0438\u044F \u043D\u0435 \u043F\u0435\u0440\u0435\u0432\u0435\u0434\u0435\u043D\u044B: {0}.",
|
13045
|
-
[143 /* TheFollowingDeclarationAreNotTranslated0And1More */]: "\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0435 \u043E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u0438\u044F \u043D\u0435 \u043F\u0435\u0440\u0435\u0432\u0435\u0434\u0435\u043D\u044B: {0}\u0438 \u0435\u0449\u0451 {1}.",
|
13046
|
-
[144 /* OperatorMustNotBeStatic */]: "\u041E\u043F\u0435\u0440\u0430\u0442\u043E\u0440 \u043D\u0435 \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u0432\u0441\u0435\u043E\u0431\u0449\u0438\u043C.",
|
13047
|
-
[145 /* Operator0MustNotHaveParameters */]: "\u041E\u043F\u0435\u0440\u0430\u0442\u043E\u0440 '{0}' \u043D\u0435 \u0434\u043E\u043B\u0436\u0435\u043D \u0438\u043C\u0435\u0442\u044C \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u043E\u0432.",
|
13048
|
-
[146 /* Operator0MustHaveOneParameter */]: "\u041E\u043F\u0435\u0440\u0430\u0442\u043E\u0440 '{0}' \u0434\u043E\u043B\u0436\u0435\u043D \u0438\u043C\u0435\u0442\u044C \u043E\u0434\u0438\u043D \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440.",
|
13049
|
-
[147 /* Operator0MustHaveNoMoreThanOneParameter */]: "\u041E\u043F\u0435\u0440\u0430\u0442\u043E\u0440 '{0}' \u0434\u043E\u043B\u0436\u0435\u043D \u0438\u043C\u0435\u0442\u044C \u043D\u0435 \u0431\u043E\u043B\u0435\u0435 \u043E\u0434\u043D\u043E\u0433\u043E \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0430.",
|
13050
|
-
[148 /* CanNotFindTsLibDirectoryBaseSearchPaths0 */]: "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043D\u0430\u0439\u0442\u0438 \u043F\u0430\u043F\u043A\u0443 \u0441\u043E \u0441\u0442\u0430\u043D\u0434\u0430\u0440\u0442\u043D\u043E\u0439 \u0431\u0438\u0431\u043B\u0438\u043E\u0442\u0435\u043A\u043E\u0439 TypeScript. \u041F\u0443\u0442\u0438, \u043E\u0442\u043D\u043E\u0441\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u043A\u043E\u0442\u043E\u0440\u044B\u0445 \u043E\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043B\u044F\u043B\u0441\u044F \u043F\u043E\u0438\u0441\u043A: {0}.",
|
13051
|
-
[149 /* SourceFile0IsNotPartOfThePackageAndWontBeLoaded */]: "\u0418\u0441\u0445\u043E\u0434\u043D\u044B\u0439 \u0444\u0430\u0439\u043B '{0}' \u043D\u0435 \u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u0447\u0430\u0441\u0442\u044C\u044E \u043F\u0430\u043A\u0435\u0442\u0430 \u0438 \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043D.",
|
13052
|
-
[150 /* MainPackageConfigurationIsMissingProjectWontBeLoaded */]: "\u041E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044F \u0433\u043B\u0430\u0432\u043D\u043E\u0433\u043E \u043F\u0430\u043A\u0435\u0442\u0430. \u041F\u0440\u043E\u0435\u043A\u0442 \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043D.",
|
13053
|
-
[151 /* ProgramWithoutMainPackageCanNotBeCompiled */]: "\u041F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430 \u0431\u0435\u0437 \u0433\u043B\u0430\u0432\u043D\u043E\u0433\u043E \u043F\u0430\u043A\u0435\u0442\u0430 \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u0441\u043A\u043E\u043C\u043F\u0438\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0430.",
|
13054
|
-
[152 /* JsonConfigurationValidationError */]: "\u041E\u0448\u0438\u0431\u043A\u0430 \u0432\u0430\u043B\u0438\u0434\u0430\u0446\u0438\u0438 \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 JSON.",
|
13055
|
-
[153 /* StandardPackage0NotFound */]: "\u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442\u043D\u044B\u0439 \u043F\u0430\u043A\u0435\u0442 '{0}' \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D.",
|
13056
|
-
[154 /* Declaration0NotFoundInStandardPackage1 */]: "\u041E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u0438\u0435 '{0}' \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E \u0432 \u0441\u0442\u0430\u043D\u0434\u0430\u0440\u0442\u043D\u043E\u043C \u043F\u0430\u043A\u0435\u0442\u0435 '{1}'."
|
12816
|
+
[3 /* TypeMemberDeclarationExpected */]: "\u041E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u0438\u0435 \u0447\u043B\u0435\u043D\u0430 \u0442\u0438\u043F\u0430.",
|
12817
|
+
[4 /* SourceFileMemberExpected */]: "\u041E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u0438\u0435.",
|
12818
|
+
[5 /* EnumerationVariableDeclarationExpected */]: "\u041E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u0438\u0435 \u043F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0446\u0438\u043A\u043B\u0430.",
|
12819
|
+
[6 /* StatementExpected */]: "\u041E\u0436\u0438\u0434\u0430\u043B\u0441\u044F \u043E\u043F\u0435\u0440\u0430\u0442\u043E\u0440.",
|
12820
|
+
[7 /* ExpressionExpected */]: "\u041E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u0432\u044B\u0440\u0430\u0436\u0435\u043D\u0438\u0435.",
|
12821
|
+
[8 /* BaseTypeNameExpected */]: "\u041E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u0438\u043C\u044F \u0431\u0430\u0437\u043E\u0432\u043E\u0433\u043E \u0442\u0438\u043F\u0430.",
|
12822
|
+
[9 /* TypeSpecifierExpected */]: "\u041E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u0443\u043A\u0430\u0437\u0430\u043D\u0438\u0435 \u0442\u0438\u043F\u0430.",
|
12823
|
+
[10 /* TypeBodyExpected */]: "\u041E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u0442\u0435\u043B\u043E \u0442\u0438\u043F\u0430.",
|
12824
|
+
[11 /* MethodCallArgumentExpected */]: "\u041E\u0436\u0438\u0434\u0430\u043B\u0441\u044F \u0430\u0440\u0433\u0443\u043C\u0435\u043D\u0442 \u0432\u044B\u0437\u043E\u0432\u0430 \u043C\u0435\u0442\u043E\u0434\u0430.",
|
12825
|
+
[12 /* TagArgumentExpected */]: "\u041E\u0436\u0438\u0434\u0430\u043B\u0441\u044F \u0430\u0440\u0433\u0443\u043C\u0435\u043D\u0442 \u0442\u0435\u0433\u0430.",
|
12826
|
+
[13 /* TypeParameterExpected */]: "\u041E\u0436\u0438\u0434\u0430\u043B\u0441\u044F \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440 \u0442\u0438\u043F\u0430.",
|
12827
|
+
[14 /* ParameterExpected */]: "\u041E\u0436\u0438\u0434\u0430\u043B\u0441\u044F \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440.",
|
12828
|
+
[15 /* RunStatementClauseExpected */]: "\u041E\u0436\u0438\u0434\u0430\u043B\u0430\u0441\u044C \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u0430\u044F \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u044F \u0431\u043B\u043E\u043A\u0430 \u0432\u044B\u043F\u043E\u043B\u043D\u0438\u0442\u044C.",
|
12829
|
+
[16 /* PackageImportExpected */]: "\u041E\u0436\u0438\u0434\u0430\u043B\u0430\u0441\u044C \u0434\u0438\u0440\u0435\u043A\u0442\u0438\u0432\u0430 \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u044F \u043C\u043E\u0434\u0443\u043B\u044F.",
|
12830
|
+
[17 /* UsingDirectiveOrSourceFileMemberExpected */]: "\u041E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u0438\u0435 \u0438\u043B\u0438 \u0434\u0438\u0440\u0435\u043A\u0442\u0438\u0432\u0430 \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u044F \u043C\u043E\u0434\u0443\u043B\u044F.",
|
12831
|
+
[18 /* WordFormExpected */]: "\u041E\u0436\u0438\u0434\u0430\u043B\u0430\u0441\u044C \u0441\u043B\u043E\u0432\u043E\u0444\u043E\u0440\u043C\u0430.",
|
12832
|
+
[19 /* TypeMemberTranslationExpected */]: "\u041E\u0436\u0438\u0434\u0430\u043B\u0441\u044F \u043F\u0435\u0440\u0435\u0432\u043E\u0434 \u0447\u043B\u0435\u043D\u0430 \u0442\u0438\u043F\u0430.",
|
12833
|
+
[20 /* TranslationExpected */]: "\u041E\u0436\u0438\u0434\u0430\u043B\u0441\u044F \u043F\u0435\u0440\u0435\u0432\u043E\u0434.",
|
12834
|
+
[21 /* Expected0But1Found */]: "\u041E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C '{0}', \u043D\u043E \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u043B\u043E\u0441\u044C '{1}'.",
|
12835
|
+
[22 /* InvalidTextTemplateLiteral */]: "\u041D\u0435\u043A\u043E\u0440\u0440\u0435\u043A\u0442\u043D\u044B\u0439 \u0442\u0435\u043A\u0441\u0442\u043E\u0432\u044B\u0439 \u0448\u0430\u0431\u043B\u043E\u043D.",
|
12836
|
+
[23 /* RunKeywordOnCreateKeywordOrModifierListExpected */]: "\u041E\u0436\u0438\u0434\u0430\u043B\u0438\u0441\u044C \u0441\u043B\u0443\u0436\u0435\u0431\u043D\u044B\u0435 \u0441\u043B\u043E\u0432\u0430 '\u0432\u044B\u043F\u043E\u043B\u043D\u0438\u0442\u044C', '\u0441\u043E\u0437\u0434\u0430\u043D\u0438\u0435' \u0438\u043B\u0438 \u0441\u043F\u0438\u0441\u043E\u043A \u043C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u043E\u0432.",
|
12837
|
+
[24 /* ModifierListExpected */]: "\u041E\u0436\u0438\u0434\u0430\u043B\u0441\u044F \u0441\u043F\u0438\u0441\u043E\u043A \u043C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u043E\u0432.",
|
12838
|
+
[26 /* ParameterNameCanContainOnlyOneBackQuote */]: "\u0418\u043C\u044F \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0430 \u043C\u043E\u0436\u0435\u0442 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C \u0442\u043E\u043B\u044C\u043A\u043E \u043E\u0434\u0438\u043D \u0430\u043F\u043E\u0441\u0442\u0440\u043E\u0444.",
|
12839
|
+
[27 /* FieldNameCanContainOnlyTwoBackQuote */]: "\u0418\u043C\u044F \u043F\u043E\u043B\u044F \u043C\u043E\u0436\u0435\u0442 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C \u0442\u043E\u043B\u044C\u043A\u043E \u0434\u0432\u0430 \u0430\u043F\u043E\u0441\u0442\u0440\u043E\u0444\u0430.",
|
12840
|
+
[28 /* BackQuotesCanOnlyBeUsedInParameterAndFieldNames */]: "\u0410\u043F\u043E\u0441\u0442\u0440\u043E\u0444\u044B \u043C\u043E\u0433\u0443\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0442\u043E\u043B\u044C\u043A\u043E \u0432 \u0438\u043C\u0435\u043D\u0430\u0445 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u043E\u0432 \u0438 \u043F\u043E\u043B\u0435\u0439.",
|
12841
|
+
[29 /* NameThatMatchesKeywordMustBeEnclosedInSingleQuotes */]: "\u0418\u043C\u044F, \u0441\u043E\u0432\u043F\u0430\u0434\u0430\u044E\u0449\u0435\u0435 \u0441 \u043A\u043B\u044E\u0447\u0435\u0432\u044B\u043C \u0441\u043B\u043E\u0432\u043E\u043C, \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u0432\u0437\u044F\u0442\u043E \u0432 \u043E\u0434\u0438\u043D\u0430\u0440\u043D\u044B\u0435 \u043A\u0430\u0432\u044B\u0447\u043A\u0438.",
|
12842
|
+
[30 /* VariantNotFound */]: "\u0412\u0430\u0440\u0438\u0430\u043D\u0442 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D.",
|
12843
|
+
[31 /* TypeCannotBeUsedAsValue */]: "\u0422\u0438\u043F \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D \u043A\u0430\u043A \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435.",
|
12844
|
+
[47 /* PackageNameCannotBeUsedAsValue */]: "\u0418\u043C\u044F \u043F\u0430\u043A\u0435\u0442\u0430 \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D \u043A\u0430\u043A \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435.",
|
12845
|
+
[32 /* PackageMemberNotFound */]: "\u0427\u043B\u0435\u043D \u043C\u043E\u0434\u0443\u043B\u044F \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D.",
|
12846
|
+
[33 /* TypeMemberNotFound */]: "\u0427\u043B\u0435\u043D \u0442\u0438\u043F\u0430 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D.",
|
12847
|
+
[34 /* CannotAccessStaticMembersOnTypeParameter */]: "\u041D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u044C\u0441\u044F \u043A \u0433\u043B\u043E\u0431\u0430\u043B\u044C\u043D\u044B\u043C \u0447\u043B\u0435\u043D\u0430\u043C \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0430 \u0442\u0438\u043F\u0430.",
|
12848
|
+
[35 /* IndexerOfTheSpecifiedTypeNotFound */]: "\u041D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D \u0438\u043D\u0434\u0435\u043A\u0441\u0430\u0442\u043E\u0440 \u0443\u043A\u0430\u0437\u0430\u043D\u043D\u043E\u0433\u043E \u0442\u0438\u043F\u0430.",
|
12849
|
+
[36 /* DereferenceOperatorOfTheSpecifiedTypeNotFound */]: "\u041D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D \u0440\u0430\u0437\u044B\u043C\u0435\u043D\u043E\u0432\u0430\u0442\u0435\u043B\u044C \u0443\u043A\u0430\u0437\u0430\u043D\u043D\u043E\u0433\u043E \u0442\u0438\u043F\u0430.",
|
12850
|
+
[38 /* CannotCreateInstanceOfAspect */]: "\u041D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E \u0441\u043E\u0437\u0434\u0430\u0442\u044C \u044D\u043A\u0437\u0435\u043C\u043F\u043B\u044F\u0440 \u0430\u0441\u043F\u0435\u043A\u0442\u0430.",
|
12851
|
+
[39 /* CannotCreateInstanceOfTypeParameter */]: "\u041D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E \u0441\u043E\u0437\u0434\u0430\u0442\u044C \u044D\u043A\u0437\u0435\u043C\u043F\u043B\u044F\u0440 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0430 \u0442\u0438\u043F\u0430.",
|
12852
|
+
[40 /* CannotCreateInstanceOfUnresolvedType */]: "\u041D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E \u0441\u043E\u0437\u0434\u0430\u0442\u044C \u044D\u043A\u0437\u0435\u043C\u043F\u043B\u044F\u0440 \u043D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E\u0433\u043E \u0442\u0438\u043F\u0430.",
|
12853
|
+
[41 /* TypeConstructorNotFound */]: "\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D.",
|
12854
|
+
[42 /* CannotInvokeExpression */]: "\u041D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E \u0432\u044B\u0437\u0432\u0430\u0442\u044C \u0432\u044B\u0440\u0430\u0436\u0435\u043D\u0438\u0435.",
|
12855
|
+
[43 /* NamedArgumentExpectedButPositionalArgumentFound */]: "\u041E\u0436\u0438\u0434\u0430\u043B\u0441\u044F \u0438\u043C\u0435\u043D\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0430\u0440\u0433\u0443\u043C\u0435\u043D\u0442, \u043D\u043E \u043F\u0435\u0440\u0435\u0434\u0430\u043D \u043F\u043E\u0437\u0438\u0446\u0438\u043E\u043D\u043D\u044B\u0439.",
|
12856
|
+
[44 /* ParameterWithGivenNameNotFound */]: "\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440 \u0441 \u0443\u043A\u0430\u0437\u0430\u043D\u043D\u044B\u043C \u0438\u043C\u0435\u043D\u0435\u043C \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D.",
|
12857
|
+
[45 /* ArgumentForParameterAlreadyPassed */]: "\u0410\u0440\u0433\u0443\u043C\u0435\u043D\u0442 \u0434\u043B\u044F \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0430 \u0443\u0436\u0435 \u043F\u0435\u0440\u0435\u0434\u0430\u043D.",
|
12858
|
+
[46 /* PackageAliasCannotBeUsedAsValue */]: "\u041F\u0441\u0435\u0432\u0434\u043E\u043D\u0438\u043C \u043C\u043E\u0434\u0443\u043B\u044F \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D \u043A\u0430\u043A \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435.",
|
12859
|
+
[48 /* UnknownVariable */]: "\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u0430\u044F.",
|
12860
|
+
[49 /* UnknownType */]: "\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u044B\u0439 \u0442\u0438\u043F.",
|
12861
|
+
[50 /* TypeWithArity0NotFound */]: "\u0422\u0438\u043F \u0441 \u043A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E\u043C \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u043E\u0432 '{0}' \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D.",
|
12862
|
+
[51 /* VariableUsedBeforeBeingDeclared */]: "\u041F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u0430\u044F \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442\u0441\u044F \u0434\u043E \u043E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u0438\u044F.",
|
12863
|
+
[52 /* Type0IsNotAssignableToType1 */]: "\u0422\u0438\u043F '{0}' \u043D\u0435 \u0441\u043E\u0432\u043C\u0435\u0441\u0442\u0438\u043C \u0441 \u0442\u0438\u043F\u043E\u043C '{1}'.",
|
12864
|
+
[53 /* VariableNotFound */]: "\u041F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u0430\u044F \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u0430.",
|
12865
|
+
[54 /* MethodNotFound */]: "\u041C\u0435\u0442\u043E\u0434 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D.",
|
12866
|
+
[55 /* UnknownPackage */]: "\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u044B\u0439 \u043F\u0430\u043A\u0435\u0442.",
|
12867
|
+
[56 /* CannotAssignValueToExpression */]: "\u041D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E \u043F\u0440\u0438\u0441\u0432\u043E\u0438\u0442\u044C \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 \u0432\u044B\u0440\u0430\u0436\u0435\u043D\u0438\u0435.",
|
12868
|
+
[57 /* NotEveryRequiredParameterIsProvidedWithCallArgument */]: "\u041D\u0435 \u0434\u043B\u044F \u043A\u0430\u0436\u0434\u043E\u0433\u043E \u043E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E\u0433\u043E \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0430 \u043F\u0440\u0435\u0434\u043E\u0441\u0442\u0430\u0432\u043B\u0435\u043D \u0430\u0440\u0433\u0443\u043C\u0435\u043D\u0442 \u0432\u044B\u0437\u043E\u0432\u0430.",
|
12869
|
+
[58 /* ParameterForPositionalCallArgumentNotFound */]: "\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440 \u0434\u043B\u044F \u043F\u043E\u0437\u0438\u0446\u0438\u043E\u043D\u043D\u043E\u0433\u043E \u0430\u0440\u0433\u0443\u043C\u0435\u043D\u0442\u0430 \u0432\u044B\u0437\u043E\u0432\u0430 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D.",
|
12870
|
+
[59 /* CannotDetermineTargetTypeToCallTheConstructor */]: "\u041D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0438\u0442\u044C \u0446\u0435\u043B\u0435\u0432\u043E\u0439 \u0442\u0438\u043F \u0434\u043B\u044F \u0432\u044B\u0437\u043E\u0432\u0430 \u043A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440\u0430.",
|
12871
|
+
[60 /* AmbiguousAccess */]: "\u041D\u0435\u043E\u0434\u043D\u043E\u0437\u043D\u0430\u0447\u043D\u044B\u0439 \u0434\u043E\u0441\u0442\u0443\u043F.",
|
12872
|
+
[61 /* PackageNameConflictsWithDeclarationName */]: "\u0418\u043C\u044F \u043F\u0430\u043A\u0435\u0442\u0430 \u043A\u043E\u043D\u0444\u043B\u0438\u043A\u0442\u0443\u0435\u0442 \u0441 \u0438\u043C\u0435\u043D\u0435\u043C \u043E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u0438\u044F.",
|
12873
|
+
[62 /* CanNotAssignValueToContextVariable */]: "\u041D\u0435\u043B\u044C\u0437\u044F \u043F\u0440\u0438\u0441\u0432\u043E\u0438\u0442\u044C \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u0443\u044E \u043F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u0443\u044E.",
|
12874
|
+
[63 /* ExpectedPackageNameOrAliasButFoundType */]: "\u041E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u0438\u043C\u044F \u0438\u043B\u0438 \u043F\u0441\u0435\u0432\u0434\u043E\u043D\u0438\u043C \u043F\u0430\u043A\u0435\u0442\u0430, \u043D\u043E \u043D\u0430\u0439\u0434\u0435\u043D \u0442\u0438\u043F.",
|
12875
|
+
[64 /* TypeExpected */]: "\u041E\u0436\u0438\u0434\u0430\u043B\u0441\u044F \u0442\u0438\u043F.",
|
12876
|
+
[65 /* TypeOrPackageNotFound */]: "\u0422\u0438\u043F \u0438\u043B\u0438 \u043F\u0430\u043A\u0435\u0442 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D.",
|
12877
|
+
[66 /* TypeIsNotATag */]: "\u0422\u0438\u043F \u043D\u0435 \u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u0442\u0435\u0433\u043E\u043C.",
|
12878
|
+
[67 /* ExpressionOfType0CanNotBeUsedForEnumeration */]: "\u0412\u044B\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0438\u043F\u0430 '{0}' \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0434\u043B\u044F \u043F\u0435\u0440\u0435\u0431\u043E\u0440\u0430.",
|
12879
|
+
[68 /* Operator0IsNotDefinedForTypes1And2 */]: "\u041E\u043F\u0435\u0440\u0430\u0442\u043E\u0440 '{0}' \u043D\u0435 \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D \u0434\u043B\u044F \u0442\u0438\u043F\u043E\u0432 '{1}' \u0438 '{2}'.",
|
12880
|
+
[69 /* Operator0IsNotDefinedForType1 */]: "\u041E\u043F\u0435\u0440\u0430\u0442\u043E\u0440 '{0}' \u043D\u0435 \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D \u0434\u043B\u044F \u0442\u0438\u043F\u0430 '{1}'.",
|
12881
|
+
[70 /* VariantMustHaveAssociatedValue */]: "\u0412\u0430\u0440\u0438\u0430\u043D\u0442 \u0434\u043E\u043B\u0436\u0435\u043D \u0438\u043C\u0435\u0442\u044C \u0430\u0441\u0441\u043E\u0446\u0438\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435.",
|
12882
|
+
[25 /* HidingLevelExpected */]: "\u041E\u0436\u0438\u0434\u0430\u043B\u0441\u044F \u0443\u0440\u043E\u0432\u0435\u043D\u044C \u0441\u043A\u0440\u044B\u0442\u043D\u043E\u0441\u0442\u0438.",
|
12883
|
+
[71 /* PackageMemberOrPackageNotFound */]: "\u041E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u0438\u0435 \u0438\u043B\u0438 \u043F\u0430\u043A\u0435\u0442 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u044B.",
|
12884
|
+
[72 /* TranslationsCanOnlyBeDeclaredInTranslationPackage */]: "\u041F\u0435\u0440\u0435\u0432\u043E\u0434\u044B \u043C\u043E\u0433\u0443\u0442 \u0431\u044B\u0442\u044C \u043E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u044B \u0442\u043E\u043B\u044C\u043A\u043E \u0432 \u043F\u0430\u043A\u0435\u0442\u0435 \u043F\u0435\u0440\u0435\u0432\u043E\u0434\u043E\u0432.",
|
12885
|
+
[73 /* UnknownTranslatedPackage0 */]: "\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u044B\u0439 \u043F\u0435\u0440\u0435\u0432\u043E\u0434\u0438\u043C\u044B\u0439 \u043F\u0430\u043A\u0435\u0442 '{0}'.",
|
12886
|
+
[37 /* IndexerNotFound */]: "\u0418\u043D\u0434\u0435\u043A\u0441\u0430\u0442\u043E\u0440 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D.",
|
12887
|
+
[74 /* BaseCannotBeUsedInThisContext */]: "'\u043E\u0441\u043D\u043E\u0432\u0430' \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0432 \u044D\u0442\u043E\u043C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u0435.",
|
12888
|
+
[77 /* BaseCannotBeUsedAsAnExpressionInItself */]: "'\u043E\u0441\u043D\u043E\u0432\u0430' \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0432 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0441\u0430\u043C\u043E\u0441\u0442\u043E\u044F\u0442\u0435\u043B\u044C\u043D\u043E\u0433\u043E \u0432\u044B\u0440\u0430\u0436\u0435\u043D\u0438\u044F.",
|
12889
|
+
[75 /* OverriddenMethodNotFound */]: "\u0417\u0430\u043C\u0435\u043D\u0451\u043D\u043D\u044B\u0439 \u043C\u0435\u0442\u043E\u0434 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D.",
|
12890
|
+
[76 /* ObjectCannotBeUsedInThisContext */]: "'\u043E\u0431\u044A\u0435\u043A\u0442' \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0432 \u044D\u0442\u043E\u043C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u0435.",
|
12891
|
+
[78 /* InterfacePackageMustNotContainImplementation */]: "\u0418\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043D\u044B\u0439 \u043F\u0430\u043A\u0435\u0442 \u043D\u0435 \u0434\u043E\u043B\u0436\u0435\u043D \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C \u0440\u0435\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044E.",
|
12892
|
+
[79 /* InterfacePackageVariablesMustNotHaveInitializers */]: "\u041F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u044B\u0435 \u0432 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043D\u043E\u043C \u043F\u0430\u043A\u0435\u0442\u0435 \u043D\u0435 \u0434\u043E\u043B\u0436\u043D\u044B \u0438\u043C\u0435\u0442\u044C \u043D\u0430\u0447\u0430\u043B\u044C\u043D\u044B\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F.",
|
12893
|
+
[80 /* BodyIsMissing */]: "\u041E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0442\u0435\u043B\u043E.",
|
12894
|
+
[81 /* AbstractTypeMembersMustNotHaveBody */]: "\u0410\u0431\u0441\u0442\u0440\u0430\u043A\u0442\u043D\u044B\u0435 \u0447\u043B\u0435\u043D\u044B \u0442\u0438\u043F\u043E\u0432 \u043D\u0435 \u0434\u043E\u043B\u0436\u043D\u044B \u0438\u043C\u0435\u0442\u044C \u0442\u0435\u043B\u0430.",
|
12895
|
+
[82 /* AbstractVariablesMustNotHaveInitializers */]: "\u0410\u0431\u0441\u0442\u0440\u0430\u043A\u0442\u043D\u044B\u0435 \u043F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u044B\u0435 \u043D\u0435 \u0434\u043E\u043B\u0436\u043D\u044B \u0438\u043C\u0435\u0442\u044C \u043D\u0430\u0447\u0430\u043B\u044C\u043D\u044B\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F.",
|
12896
|
+
[83 /* PackageIsAlreadyImportedInAnotherLanguage */]: "\u041F\u0430\u043A\u0435\u0442 \u0443\u0436\u0435 \u0438\u043C\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u043D \u043D\u0430 \u0434\u0440\u0443\u0433\u043E\u043C \u044F\u0437\u044B\u043A\u0435.",
|
12897
|
+
[84 /* OnlySubprogramsWithReturnTypeCanReturnValue */]: "\u0412\u043E\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044C \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u043C\u043E\u0433\u0443\u0442 \u0442\u043E\u043B\u044C\u043A\u043E \u043F\u043E\u0434\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u044B, \u0438\u043C\u0435\u044E\u0449\u0438\u0435 \u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043C\u044B\u0439 \u0442\u0438\u043F.",
|
12898
|
+
[85 /* MethodsUsingYieldStatementCanNotReturnValue */]: "\u041C\u0435\u0442\u043E\u0434\u044B, \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u044E\u0449\u0438\u0435 \u043A\u043E\u043C\u0430\u043D\u0434\u0443 '\u0432\u044B\u0434\u0430\u0442\u044C', \u043D\u0435 \u043C\u043E\u0433\u0443\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044C \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435.",
|
12899
|
+
[86 /* YieldStatementCanNotBeUsedInAnonymousMethods */]: "\u041A\u043E\u043C\u0430\u043D\u0434\u0430 '\u0432\u044B\u0434\u0430\u0442\u044C' \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0432 \u0431\u0435\u0437\u044B\u043C\u044F\u043D\u043D\u044B\u0445 \u043C\u0435\u0442\u043E\u0434\u0430\u0445.",
|
12900
|
+
[87 /* YieldStatementCanNotBeUsedHere */]: "\u041A\u043E\u043C\u0430\u043D\u0434\u0430 '\u0432\u044B\u0434\u0430\u0442\u044C' \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0437\u0434\u0435\u0441\u044C \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C\u0441\u044F.",
|
12901
|
+
[88 /* MethodsUsingYieldStatementMustHaveEnumerableAsReturnType */]: "\u041C\u0435\u0442\u043E\u0434\u044B, \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u044E\u0449\u0438\u0435 \u043A\u043E\u043C\u0430\u043D\u0434\u0443 '\u0432\u044B\u0434\u0430\u0442\u044C', \u0434\u043E\u043B\u0436\u043D\u044B \u0438\u043C\u0435\u0442\u044C \u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043C\u044B\u0439 \u0442\u0438\u043F '\u041F\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0435\u043C\u044B\u0439'.",
|
12902
|
+
[89 /* YieldStatementCanNotBeUsedInRunStatementThatHasOnErrorClause */]: "\u041A\u043E\u043C\u0430\u043D\u0434\u0430 '\u0432\u044B\u0434\u0430\u0442\u044C' \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0432 \u0431\u043B\u043E\u043A\u0435 '\u0432\u044B\u043F\u043E\u043B\u043D\u0438\u0442\u044C', \u0438\u043C\u0435\u044E\u0449\u0435\u043C \u0431\u043B\u043E\u043A '\u043F\u0440\u0438 \u043E\u0448\u0438\u0431\u043A\u0435'.",
|
12903
|
+
[90 /* YieldStatementCanNotBeUsedInFinallyClause */]: "\u041A\u043E\u043C\u0430\u043D\u0434\u0430 '\u0432\u044B\u0434\u0430\u0442\u044C' \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0432 \u0431\u043B\u043E\u043A\u0435 '\u043D\u0430\u043F\u043E\u0441\u043B\u0435\u0434\u043E\u043A'.",
|
12904
|
+
[91 /* SubprogramMustReturnValue */]: "\u041F\u043E\u0434\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430 \u0434\u043E\u043B\u0436\u043D\u0430 \u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044C \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435.",
|
12905
|
+
[92 /* ResultVariableCanNotBeUsedInMethodsUsingYieldStatement */]: "\u041F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u0430\u044F '\u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442' \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u0442\u043E\u0434\u0430, \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u044E\u0449\u0438\u0445 \u043A\u043E\u043C\u0430\u043D\u0434\u0443 '\u0432\u044B\u0434\u0430\u0442\u044C'.",
|
12906
|
+
[93 /* TypeAliasReferencesItself */]: "\u0422\u043E\u0436\u0434\u0435\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0439 \u0442\u0438\u043F \u0441\u0441\u044B\u043B\u0430\u0435\u0442\u0441\u044F \u0441\u0430\u043C \u043D\u0430 \u0441\u0435\u0431\u044F.",
|
12907
|
+
[94 /* TypeParameterHasCircularConstraint */]: "\u041E\u0433\u0440\u0430\u043D\u0438\u0447\u0435\u043D\u0438\u0435 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0430 \u043E\u0431\u043E\u0431\u0449\u0435\u043D\u0438\u044F \u043E\u0431\u0440\u0430\u0437\u0443\u0435\u0442 \u0446\u0438\u043A\u043B.",
|
12908
|
+
[95 /* BaseTypeCausesInheritanceCycle */]: "\u0411\u0430\u0437\u043E\u0432\u044B\u0439 \u0442\u0438\u043F \u043F\u0440\u0438\u0432\u043E\u0434\u0438\u0442 \u043A \u0446\u0438\u043A\u043B\u0443 \u043D\u0430\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u043D\u0438\u044F.",
|
12909
|
+
[96 /* OnlyGenericTypesAndFunctionsCanBeSpecialized */]: "\u0422\u043E\u043B\u044C\u043A\u043E \u043E\u0431\u043E\u0431\u0449\u0451\u043D\u043D\u044B\u0435 \u0442\u0438\u043F\u044B \u0438 \u0444\u0443\u043D\u043A\u0446\u0438\u0438 \u043C\u043E\u0433\u0443\u0442 \u0443\u0442\u043E\u0447\u043D\u044F\u0442\u044C\u0441\u044F.",
|
12910
|
+
[97 /* Expected0TypeArguments */]: "\u041E\u0436\u0438\u0434\u0430\u043B\u0438\u0441\u044C \u0430\u0440\u0433\u0443\u043C\u0435\u043D\u0442\u044B \u043E\u0431\u043E\u0431\u0449\u0435\u043D\u0438\u044F \u0432 \u043A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u0435 {0}.",
|
12911
|
+
[98 /* ExpectedFrom0To1TypeArguments */]: "\u041E\u0436\u0438\u0434\u0430\u043B\u0438\u0441\u044C \u0430\u0440\u0433\u0443\u043C\u0435\u043D\u0442\u044B \u043E\u0431\u043E\u0431\u0449\u0435\u043D\u0438\u044F \u0432 \u043A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u0435 \u043E\u0442 {0} \u0434\u043E {1}.",
|
12912
|
+
[99 /* Type0IsNotAssignableToConstraint1 */]: "\u0422\u0438\u043F '{0}' \u043D\u0435 \u0441\u043E\u0432\u043C\u0435\u0441\u0442\u0438\u043C \u0441 \u043E\u0433\u0440\u0430\u043D\u0438\u0447\u0435\u043D\u0438\u0435\u043C '{1}'.",
|
12913
|
+
[100 /* VariableIsDeclaredButNotUsed */]: "\u041F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u0430\u044F \u043E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u0430, \u043D\u043E \u043D\u0435 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442\u0441\u044F.",
|
12914
|
+
[101 /* DefaultConstructorArgumentsMustBeNamed */]: "\u0410\u0440\u0433\u0443\u043C\u0435\u043D\u0442\u044B \u043A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440\u0430 \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E \u0434\u043E\u043B\u0436\u043D\u044B \u043F\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044C\u0441\u044F \u0441 \u0443\u043A\u0430\u0437\u0430\u043D\u0438\u0435\u043C \u0438\u043C\u0435\u043D\u0438 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044E\u0449\u0435\u0433\u043E \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0430.",
|
12915
|
+
[102 /* IncorrectBodyOfRedefinableAliasTypeMethod */]: "\u0422\u0435\u043B\u043E \u0437\u0430\u043C\u0435\u043D\u044F\u0435\u043C\u043E\u0433\u043E \u043C\u0435\u0442\u043E\u0434\u0430, \u043E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u043D\u043E\u0433\u043E \u0432 \u0442\u043E\u0436\u0434\u0435\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u043C \u0442\u0438\u043F\u0435, \u0434\u043E\u043B\u0436\u043D\u043E \u0441\u043E\u0441\u0442\u043E\u044F\u0442\u044C \u0438\u0437 \u0432\u044B\u0437\u043E\u0432\u0430 \u0437\u0430\u043C\u0435\u043D\u044F\u0435\u043C\u043E\u0433\u043E \u043C\u0435\u0442\u043E\u0434\u0430 \u043E\u0440\u0438\u0433\u0438\u043D\u0430\u043B\u044C\u043D\u043E \u0442\u0438\u043F\u0430 \u0441 \u0442\u0430\u043A\u0438\u043C\u0438 \u0436\u0435 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0430\u043C\u0438 \u0438 \u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043C\u044B\u043C \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435\u043C.",
|
12916
|
+
[103 /* TheFollowingDeclarationsAreNotTranslated0 */]: "\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0435 \u043E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u0438\u044F \u043D\u0435 \u043F\u0435\u0440\u0435\u0432\u0435\u0434\u0435\u043D\u044B: {0}.",
|
12917
|
+
[104 /* TheFollowingDeclarationAreNotTranslated0And1More */]: "\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0435 \u043E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u0438\u044F \u043D\u0435 \u043F\u0435\u0440\u0435\u0432\u0435\u0434\u0435\u043D\u044B: {0}\u0438 \u0435\u0449\u0451 {1}.",
|
12918
|
+
[105 /* OperatorMustNotBeStatic */]: "\u041E\u043F\u0435\u0440\u0430\u0442\u043E\u0440 \u043D\u0435 \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u0432\u0441\u0435\u043E\u0431\u0449\u0438\u043C.",
|
12919
|
+
[106 /* Operator0MustNotHaveParameters */]: "\u041E\u043F\u0435\u0440\u0430\u0442\u043E\u0440 '{0}' \u043D\u0435 \u0434\u043E\u043B\u0436\u0435\u043D \u0438\u043C\u0435\u0442\u044C \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u043E\u0432.",
|
12920
|
+
[107 /* Operator0MustHaveOneParameter */]: "\u041E\u043F\u0435\u0440\u0430\u0442\u043E\u0440 '{0}' \u0434\u043E\u043B\u0436\u0435\u043D \u0438\u043C\u0435\u0442\u044C \u043E\u0434\u0438\u043D \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440.",
|
12921
|
+
[108 /* Operator0MustHaveNoMoreThanOneParameter */]: "\u041E\u043F\u0435\u0440\u0430\u0442\u043E\u0440 '{0}' \u0434\u043E\u043B\u0436\u0435\u043D \u0438\u043C\u0435\u0442\u044C \u043D\u0435 \u0431\u043E\u043B\u0435\u0435 \u043E\u0434\u043D\u043E\u0433\u043E \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0430.",
|
12922
|
+
[109 /* CanNotFindTsLibDirectoryBaseSearchPaths0 */]: "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043D\u0430\u0439\u0442\u0438 \u043F\u0430\u043F\u043A\u0443 \u0441\u043E \u0441\u0442\u0430\u043D\u0434\u0430\u0440\u0442\u043D\u043E\u0439 \u0431\u0438\u0431\u043B\u0438\u043E\u0442\u0435\u043A\u043E\u0439 TypeScript. \u041F\u0443\u0442\u0438, \u043E\u0442\u043D\u043E\u0441\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u043A\u043E\u0442\u043E\u0440\u044B\u0445 \u043E\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043B\u044F\u043B\u0441\u044F \u043F\u043E\u0438\u0441\u043A: {0}.",
|
12923
|
+
[110 /* SourceFile0IsNotPartOfThePackageAndWontBeLoaded */]: "\u0418\u0441\u0445\u043E\u0434\u043D\u044B\u0439 \u0444\u0430\u0439\u043B '{0}' \u043D\u0435 \u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u0447\u0430\u0441\u0442\u044C\u044E \u043F\u0430\u043A\u0435\u0442\u0430 \u0438 \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043D.",
|
12924
|
+
[111 /* ProgramWithoutMainPackageCanNotBeCompiled */]: "\u041F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430 \u0431\u0435\u0437 \u0433\u043B\u0430\u0432\u043D\u043E\u0433\u043E \u043F\u0430\u043A\u0435\u0442\u0430 \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u0441\u043A\u043E\u043C\u043F\u0438\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0430.",
|
12925
|
+
[112 /* JsonConfigurationValidationError */]: "\u041E\u0448\u0438\u0431\u043A\u0430 \u0432\u0430\u043B\u0438\u0434\u0430\u0446\u0438\u0438 \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 JSON.",
|
12926
|
+
[113 /* StandardPackage0NotFound */]: "\u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442\u043D\u044B\u0439 \u043F\u0430\u043A\u0435\u0442 '{0}' \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D.",
|
12927
|
+
[114 /* Declaration0NotFoundInStandardPackage1 */]: "\u041E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u0438\u0435 '{0}' \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E \u0432 \u0441\u0442\u0430\u043D\u0434\u0430\u0440\u0442\u043D\u043E\u043C \u043F\u0430\u043A\u0435\u0442\u0435 '{1}'."
|
13057
12928
|
};
|
13058
12929
|
|
13059
12930
|
// source/types/index.ts
|
@@ -13344,7 +13215,7 @@ var StandardTypes = class {
|
|
13344
13215
|
get yesNo() {
|
13345
13216
|
if (this._yesNo === void 0) {
|
13346
13217
|
const entity = this._analyzer.wellKnownDeclarations.yesNo;
|
13347
|
-
this._yesNo = this._analyzer.typeFactory.
|
13218
|
+
this._yesNo = this._analyzer.typeFactory.getStructuredType(entity, Substitutions2.empty(this._analyzer));
|
13348
13219
|
}
|
13349
13220
|
return this._yesNo;
|
13350
13221
|
}
|
@@ -14331,7 +14202,7 @@ var AnalyzedTranslationPackage = class {
|
|
14331
14202
|
result = GetSingleTranslationTargetResult.valid(member.value);
|
14332
14203
|
} else {
|
14333
14204
|
result = GetSingleTranslationTargetResult.invalid([
|
14334
|
-
this._analyzer.createNodeDiagnostic(
|
14205
|
+
this._analyzer.createNodeDiagnostic(53 /* VariableNotFound */, node.sourceName)
|
14335
14206
|
]);
|
14336
14207
|
}
|
14337
14208
|
return result;
|
@@ -14358,14 +14229,14 @@ var AnalyzedTranslationPackage = class {
|
|
14358
14229
|
result = GetMultipleTranslationTargetsResult.valid(suitableMembers);
|
14359
14230
|
} else {
|
14360
14231
|
result = GetMultipleTranslationTargetsResult.invalid(
|
14361
|
-
[this._analyzer.createNodeDiagnostic(
|
14232
|
+
[this._analyzer.createNodeDiagnostic(60 /* AmbiguousAccess */, node.sourceName)],
|
14362
14233
|
members,
|
14363
14234
|
true
|
14364
14235
|
);
|
14365
14236
|
}
|
14366
14237
|
} else {
|
14367
14238
|
result = GetMultipleTranslationTargetsResult.invalid([
|
14368
|
-
this._analyzer.createNodeDiagnostic(
|
14239
|
+
this._analyzer.createNodeDiagnostic(54 /* MethodNotFound */, node.sourceName)
|
14369
14240
|
]);
|
14370
14241
|
}
|
14371
14242
|
return result;
|
@@ -14382,14 +14253,14 @@ var AnalyzedTranslationPackage = class {
|
|
14382
14253
|
result = GetSingleTranslationTargetResult.valid(suitableMember);
|
14383
14254
|
} else {
|
14384
14255
|
result = GetSingleTranslationTargetResult.invalid([this._analyzer.createNodeDiagnostic(
|
14385
|
-
|
14256
|
+
50 /* TypeWithArity0NotFound */,
|
14386
14257
|
node.sourceName,
|
14387
14258
|
[arity.toString()]
|
14388
14259
|
)]);
|
14389
14260
|
}
|
14390
14261
|
} else {
|
14391
14262
|
result = GetSingleTranslationTargetResult.invalid([this._analyzer.createNodeDiagnostic(
|
14392
|
-
|
14263
|
+
49 /* UnknownType */,
|
14393
14264
|
node.sourceName
|
14394
14265
|
)]);
|
14395
14266
|
}
|
@@ -14408,7 +14279,7 @@ var AnalyzedTranslationPackage = class {
|
|
14408
14279
|
} else {
|
14409
14280
|
result = GetSingleTranslationTargetResult.invalid([
|
14410
14281
|
this._analyzer.createNodeDiagnostic(
|
14411
|
-
|
14282
|
+
50 /* TypeWithArity0NotFound */,
|
14412
14283
|
node.sourceName,
|
14413
14284
|
[arity.toString()]
|
14414
14285
|
)
|
@@ -14416,7 +14287,7 @@ var AnalyzedTranslationPackage = class {
|
|
14416
14287
|
}
|
14417
14288
|
} else {
|
14418
14289
|
result = GetSingleTranslationTargetResult.invalid([
|
14419
|
-
this._analyzer.createNodeDiagnostic(
|
14290
|
+
this._analyzer.createNodeDiagnostic(49 /* UnknownType */, node.sourceName)
|
14420
14291
|
]);
|
14421
14292
|
}
|
14422
14293
|
return result;
|
@@ -14437,7 +14308,7 @@ var AnalyzedTranslationPackage = class {
|
|
14437
14308
|
result = GetMultipleTranslationTargetsResult.valid([variant]);
|
14438
14309
|
} else {
|
14439
14310
|
result = GetMultipleTranslationTargetsResult.invalid([
|
14440
|
-
this._analyzer.createNodeDiagnostic(
|
14311
|
+
this._analyzer.createNodeDiagnostic(30 /* VariantNotFound */, node.sourceName)
|
14441
14312
|
]);
|
14442
14313
|
}
|
14443
14314
|
} else {
|
@@ -14446,7 +14317,7 @@ var AnalyzedTranslationPackage = class {
|
|
14446
14317
|
result = GetMultipleTranslationTargetsResult.valid(members);
|
14447
14318
|
} else {
|
14448
14319
|
result = GetMultipleTranslationTargetsResult.invalid([
|
14449
|
-
this._analyzer.createNodeDiagnostic(
|
14320
|
+
this._analyzer.createNodeDiagnostic(53 /* VariableNotFound */, node.sourceName)
|
14450
14321
|
]);
|
14451
14322
|
}
|
14452
14323
|
}
|
@@ -14479,12 +14350,12 @@ var AnalyzedTranslationPackage = class {
|
|
14479
14350
|
result = GetMultipleTranslationTargetsResult.valid(suitableMembers);
|
14480
14351
|
} else {
|
14481
14352
|
result = GetMultipleTranslationTargetsResult.invalid([
|
14482
|
-
this._analyzer.createNodeDiagnostic(
|
14353
|
+
this._analyzer.createNodeDiagnostic(60 /* AmbiguousAccess */, node.sourceName)
|
14483
14354
|
], members, true);
|
14484
14355
|
}
|
14485
14356
|
} else {
|
14486
14357
|
result = GetMultipleTranslationTargetsResult.invalid([
|
14487
|
-
this._analyzer.createNodeDiagnostic(
|
14358
|
+
this._analyzer.createNodeDiagnostic(54 /* MethodNotFound */, node.sourceName)
|
14488
14359
|
]);
|
14489
14360
|
}
|
14490
14361
|
return result;
|
@@ -14511,12 +14382,12 @@ var AnalyzedTranslationPackage = class {
|
|
14511
14382
|
result = GetMultipleTranslationTargetsResult.valid(suitableMembers);
|
14512
14383
|
} else {
|
14513
14384
|
result = GetMultipleTranslationTargetsResult.invalid([
|
14514
|
-
this._analyzer.createNodeDiagnostic(
|
14385
|
+
this._analyzer.createNodeDiagnostic(60 /* AmbiguousAccess */, node.creationKeyword)
|
14515
14386
|
], members, true);
|
14516
14387
|
}
|
14517
14388
|
} else {
|
14518
14389
|
result = GetMultipleTranslationTargetsResult.invalid([
|
14519
|
-
this._analyzer.createNodeDiagnostic(
|
14390
|
+
this._analyzer.createNodeDiagnostic(41 /* TypeConstructorNotFound */, node.creationKeyword)
|
14520
14391
|
]);
|
14521
14392
|
}
|
14522
14393
|
return result;
|
@@ -14543,12 +14414,12 @@ var AnalyzedTranslationPackage = class {
|
|
14543
14414
|
result = GetMultipleTranslationTargetsResult.valid(suitableMembers);
|
14544
14415
|
} else {
|
14545
14416
|
result = GetMultipleTranslationTargetsResult.invalid([
|
14546
|
-
this._analyzer.createNodeDiagnostic(
|
14417
|
+
this._analyzer.createNodeDiagnostic(60 /* AmbiguousAccess */, node.sourceParameterClause)
|
14547
14418
|
], members, true);
|
14548
14419
|
}
|
14549
14420
|
} else {
|
14550
14421
|
result = GetMultipleTranslationTargetsResult.invalid([
|
14551
|
-
this._analyzer.createNodeDiagnostic(
|
14422
|
+
this._analyzer.createNodeDiagnostic(37 /* IndexerNotFound */, node.sourceParameterClause)
|
14552
14423
|
]);
|
14553
14424
|
}
|
14554
14425
|
return result;
|
@@ -19400,7 +19271,7 @@ var JsonConfigurationValidator = class _JsonConfigurationValidator {
|
|
19400
19271
|
addDiagnostics(acceptor, serviceDiagnostics, document) {
|
19401
19272
|
for (const serviceDiagnostic of serviceDiagnostics) {
|
19402
19273
|
const data = new DiagnosticData(
|
19403
|
-
|
19274
|
+
112 /* JsonConfigurationValidationError */,
|
19404
19275
|
serviceDiagnostic.message,
|
19405
19276
|
translateSeverity(serviceDiagnostic.severity),
|
19406
19277
|
0 /* None */
|
@@ -19969,7 +19840,7 @@ var TextParser = class {
|
|
19969
19840
|
return token;
|
19970
19841
|
}
|
19971
19842
|
this.tryReportDiagnosticAtCurrentRange(
|
19972
|
-
|
19843
|
+
21 /* Expected0But1Found */,
|
19973
19844
|
0 /* Error */,
|
19974
19845
|
tokenKindValues[kind],
|
19975
19846
|
this._currentTokenOrKeyword.toString()
|
@@ -19997,7 +19868,7 @@ var TextParser = class {
|
|
19997
19868
|
return keyword;
|
19998
19869
|
}
|
19999
19870
|
this.tryReportDiagnosticAtCurrentRange(
|
20000
|
-
|
19871
|
+
21 /* Expected0But1Found */,
|
20001
19872
|
0 /* Error */,
|
20002
19873
|
LocalizationHelper.localizeKeywordAndTakeFirst(kind, this.locale, this.dialect),
|
20003
19874
|
this._currentTokenOrKeyword.toString()
|
@@ -20390,7 +20261,7 @@ var TextParser = class {
|
|
20390
20261
|
if ((identifier2.flags & 16 /* EscapedKeyword */) !== 0 && (identifier2.flags & 4 /* QuotedName */) === 0) {
|
20391
20262
|
this.tryReportDiagnosticAtRange(
|
20392
20263
|
range,
|
20393
|
-
|
20264
|
+
29 /* NameThatMatchesKeywordMustBeEnclosedInSingleQuotes */,
|
20394
20265
|
1 /* Warning */
|
20395
20266
|
);
|
20396
20267
|
return false;
|
@@ -20398,14 +20269,12 @@ var TextParser = class {
|
|
20398
20269
|
return true;
|
20399
20270
|
}
|
20400
20271
|
validateDeclarationOrTranslationName(identifier2, range, kind) {
|
20401
|
-
if ((identifier2.flags &
|
20402
|
-
this.tryReportDiagnosticAtRange(range, 29 /* NameMustNotStartWithTilde */, 1 /* Warning */);
|
20403
|
-
} else if ((identifier2.flags & 32 /* HasBackQuotes */) !== 0) {
|
20272
|
+
if ((identifier2.flags & 32 /* HasBackQuotes */) !== 0) {
|
20404
20273
|
if (kind === 1 /* ParameterDeclaration */) {
|
20405
20274
|
if ((identifier2.flags & 64 /* ConflictResolvingParameterName */) === 0) {
|
20406
20275
|
this.tryReportDiagnosticAtRange(
|
20407
20276
|
range,
|
20408
|
-
|
20277
|
+
26 /* ParameterNameCanContainOnlyOneBackQuote */,
|
20409
20278
|
1 /* Warning */
|
20410
20279
|
);
|
20411
20280
|
}
|
@@ -20413,14 +20282,14 @@ var TextParser = class {
|
|
20413
20282
|
if ((identifier2.flags & 128 /* BackingVariableName */) === 0) {
|
20414
20283
|
this.tryReportDiagnosticAtRange(
|
20415
20284
|
range,
|
20416
|
-
|
20285
|
+
27 /* FieldNameCanContainOnlyTwoBackQuote */,
|
20417
20286
|
1 /* Warning */
|
20418
20287
|
);
|
20419
20288
|
}
|
20420
20289
|
} else {
|
20421
20290
|
this.tryReportDiagnosticAtRange(
|
20422
20291
|
range,
|
20423
|
-
|
20292
|
+
28 /* BackQuotesCanOnlyBeUsedInParameterAndFieldNames */,
|
20424
20293
|
1 /* Warning */
|
20425
20294
|
);
|
20426
20295
|
}
|
@@ -20437,7 +20306,7 @@ var PackageImportDirectiveParser = class {
|
|
20437
20306
|
() => true,
|
20438
20307
|
() => this.parsePackageImportDirective(),
|
20439
20308
|
() => this.parser.parseSemicolonOrLineBreak(),
|
20440
|
-
() => this.parser.tryReportDiagnosticAtCurrentRange(
|
20309
|
+
() => this.parser.tryReportDiagnosticAtCurrentRange(17 /* UsingDirectiveOrSourceFileMemberExpected */)
|
20441
20310
|
);
|
20442
20311
|
this._packageImportSequenceParser = new SequenceParser(
|
20443
20312
|
this.parser,
|
@@ -20446,7 +20315,7 @@ var PackageImportDirectiveParser = class {
|
|
20446
20315
|
() => true,
|
20447
20316
|
() => this.parsePackageImport(),
|
20448
20317
|
() => this.parser.parseSemicolonOrLineBreak(),
|
20449
|
-
() => this.parser.tryReportDiagnosticAtCurrentRange(
|
20318
|
+
() => this.parser.tryReportDiagnosticAtCurrentRange(16 /* PackageImportExpected */)
|
20450
20319
|
);
|
20451
20320
|
}
|
20452
20321
|
parsePackageImportDirectiveList() {
|
@@ -20511,7 +20380,7 @@ var StatementBlockParser = class {
|
|
20511
20380
|
() => true,
|
20512
20381
|
() => this.parseStatement(),
|
20513
20382
|
() => this.parser.parseSemicolonOrLineBreak(),
|
20514
|
-
() => this.parser.tryReportDiagnosticAtCurrentRange(
|
20383
|
+
() => this.parser.tryReportDiagnosticAtCurrentRange(6 /* StatementExpected */)
|
20515
20384
|
);
|
20516
20385
|
this._nestedMethodDeclarationStatementParser = new NestedMethodDeclarationStatementParser(this.parser);
|
20517
20386
|
this._runStatementParser = new RunStatementParser(this.parser);
|
@@ -20523,7 +20392,7 @@ var StatementBlockParser = class {
|
|
20523
20392
|
() => true,
|
20524
20393
|
() => this.parseEnumerationVariableDeclaration(),
|
20525
20394
|
() => this.parser.parseComma(),
|
20526
|
-
() => this.parser.tryReportDiagnosticAtCurrentRange(
|
20395
|
+
() => this.parser.tryReportDiagnosticAtCurrentRange(5 /* EnumerationVariableDeclarationExpected */)
|
20527
20396
|
);
|
20528
20397
|
this._elseIfClauseSequenceParser = new SequenceParser(
|
20529
20398
|
this.parser,
|
@@ -20572,7 +20441,7 @@ var StatementBlockParser = class {
|
|
20572
20441
|
parseStatement() {
|
20573
20442
|
const parsingFunction = this.getParsingFunction();
|
20574
20443
|
if (parsingFunction === void 0) {
|
20575
|
-
this.parser.tryReportDiagnosticAtCurrentRange(
|
20444
|
+
this.parser.tryReportDiagnosticAtCurrentRange(6 /* StatementExpected */);
|
20576
20445
|
return new InvalidStatement2();
|
20577
20446
|
}
|
20578
20447
|
return parsingFunction();
|
@@ -20700,7 +20569,7 @@ var StatementBlockParser = class {
|
|
20700
20569
|
} else {
|
20701
20570
|
letOrConstKeyword = this.parser.parseExpectedKeyword(1 /* Let */);
|
20702
20571
|
}
|
20703
|
-
const name = this.parser.parseIdentifier(
|
20572
|
+
const name = this.parser.parseIdentifier(4 /* Other */);
|
20704
20573
|
let typeAnnotation;
|
20705
20574
|
if (this.parser.typeAnnotationParser.isStartOfTypeAnnotation()) {
|
20706
20575
|
typeAnnotation = this.parser.typeAnnotationParser.parseTypeAnnotation();
|
@@ -20745,7 +20614,7 @@ var StatementBlockParser = class {
|
|
20745
20614
|
}
|
20746
20615
|
parseEnumerationVariableDeclaration() {
|
20747
20616
|
const declarationStart = this.parser.tokenOrKeywordStartPosition();
|
20748
|
-
const name = this.parser.parseIdentifier(
|
20617
|
+
const name = this.parser.parseIdentifier(4 /* Other */);
|
20749
20618
|
const result = new EnumerationVariableDeclaration2(name);
|
20750
20619
|
return this.parser.intern(result, declarationStart);
|
20751
20620
|
}
|
@@ -20848,7 +20717,7 @@ var NestedMethodDeclarationStatementParser = class {
|
|
20848
20717
|
const declarationStart = this.parser.tokenOrKeywordStartPosition();
|
20849
20718
|
const asyncKeyword = this.parser.parseOptionalKeyword(38 /* Async */);
|
20850
20719
|
const functionKeyword = this.parser.parseExpectedKeyword(11 /* Function */);
|
20851
|
-
const name = this.parser.parseIdentifier(
|
20720
|
+
const name = this.parser.parseIdentifier(4 /* Other */);
|
20852
20721
|
let typeParameterClause;
|
20853
20722
|
if (this.parser.typeParameterParser.isStartOfTypeParameterClause()) {
|
20854
20723
|
typeParameterClause = this.parser.typeParameterParser.parseTypeParameterClause();
|
@@ -20882,7 +20751,7 @@ var ExpressionParser = class {
|
|
20882
20751
|
this._indexedAccessArgumentListParser = new IndexedAccessArgumentListParser(this.parser);
|
20883
20752
|
this._callArgumentListParser = new CallArgumentListParser(
|
20884
20753
|
this.parser,
|
20885
|
-
() => this.parser.tryReportDiagnosticAtCurrentRange(
|
20754
|
+
() => this.parser.tryReportDiagnosticAtCurrentRange(11 /* MethodCallArgumentExpected */)
|
20886
20755
|
);
|
20887
20756
|
}
|
20888
20757
|
// isFollowedByStatementBlock = true если по синтаксису сразу после выражения следует блок.
|
@@ -21260,7 +21129,7 @@ var ExpressionParser = class {
|
|
21260
21129
|
}
|
21261
21130
|
}
|
21262
21131
|
if (result === void 0) {
|
21263
|
-
this.parser.tryReportDiagnosticAtCurrentRange(
|
21132
|
+
this.parser.tryReportDiagnosticAtCurrentRange(7 /* ExpressionExpected */);
|
21264
21133
|
const expression = new InvalidExpression2();
|
21265
21134
|
result = this.parser.intern(expression, this.parser.tokenOrKeywordStartPosition());
|
21266
21135
|
}
|
@@ -21355,7 +21224,7 @@ var ExpressionParser = class {
|
|
21355
21224
|
if (this.parser.currentTokenOrKeyword.isToken(8 /* TextTemplatePart */) || this.parser.currentTokenOrKeyword.isToken(9 /* TextTemplateTail */)) {
|
21356
21225
|
result = this.parser.parseTokenOrKeyword().asToken();
|
21357
21226
|
} else {
|
21358
|
-
this.parser.tryReportDiagnosticAtCurrentRange(
|
21227
|
+
this.parser.tryReportDiagnosticAtCurrentRange(22 /* InvalidTextTemplateLiteral */);
|
21359
21228
|
result = this.parser.createMissingToken(9 /* TextTemplateTail */);
|
21360
21229
|
}
|
21361
21230
|
return result;
|
@@ -21384,7 +21253,7 @@ var PackageMemberDeclarationParser = class {
|
|
21384
21253
|
() => true,
|
21385
21254
|
() => this.parsePackageMemberDeclaration(),
|
21386
21255
|
() => this.parser.parseSemicolonOrLineBreak(),
|
21387
|
-
() => this.parser.tryReportDiagnosticAtCurrentRange(
|
21256
|
+
() => this.parser.tryReportDiagnosticAtCurrentRange(4 /* SourceFileMemberExpected */)
|
21388
21257
|
);
|
21389
21258
|
const elements = declarationsParser.parse();
|
21390
21259
|
const result = new PackageMemberDeclarationList2(elements);
|
@@ -21397,7 +21266,7 @@ var PackageMemberDeclarationParser = class {
|
|
21397
21266
|
const allowGroupDeclaration = modifierList.modifiers.length > 0;
|
21398
21267
|
const parsingFunction = this.getPackageMemberDeclarationParsingFunction(allowGroupDeclaration);
|
21399
21268
|
if (parsingFunction === void 0) {
|
21400
|
-
this.parser.tryReportDiagnosticAtCurrentRange(
|
21269
|
+
this.parser.tryReportDiagnosticAtCurrentRange(4 /* SourceFileMemberExpected */);
|
21401
21270
|
const result = new InvalidPackageMemberDeclaration2(tagList, modifierList);
|
21402
21271
|
return this.parser.intern(result, declarationStart);
|
21403
21272
|
}
|
@@ -21410,7 +21279,7 @@ var PackageMemberDeclarationParser = class {
|
|
21410
21279
|
return this.parser.intern(result, declarationStart);
|
21411
21280
|
}
|
21412
21281
|
parsePackageVariableDeclaration(declarationStart, tagList, modifierList) {
|
21413
|
-
const name = this.parser.parseIdentifier(
|
21282
|
+
const name = this.parser.parseIdentifier(4 /* Other */);
|
21414
21283
|
let typeAnnotation;
|
21415
21284
|
if (this.parser.typeAnnotationParser.isStartOfTypeAnnotation()) {
|
21416
21285
|
typeAnnotation = this.parser.typeAnnotationParser.parseTypeAnnotation();
|
@@ -21432,7 +21301,7 @@ var PackageMemberDeclarationParser = class {
|
|
21432
21301
|
}
|
21433
21302
|
parsePackageVariableGetterDeclaration(declarationStart, tagList, modifierList) {
|
21434
21303
|
const getKeyword = this.parser.parseExpectedKeyword(57 /* Get */);
|
21435
|
-
const name = this.parser.parseIdentifier(
|
21304
|
+
const name = this.parser.parseIdentifier(4 /* Other */);
|
21436
21305
|
const typeAnnotation = this.parser.typeAnnotationParser.parseTypeAnnotation();
|
21437
21306
|
const body = this.parser.parseOptionalExecutableBody();
|
21438
21307
|
const result = new PackageVariableGetterDeclaration2(
|
@@ -21447,7 +21316,7 @@ var PackageMemberDeclarationParser = class {
|
|
21447
21316
|
}
|
21448
21317
|
parsePackageVariableSetterDeclaration(declarationStart, tagList, modifierList) {
|
21449
21318
|
const setKeyword = this.parser.parseExpectedKeyword(58 /* Set */);
|
21450
|
-
const name = this.parser.parseIdentifier(
|
21319
|
+
const name = this.parser.parseIdentifier(4 /* Other */);
|
21451
21320
|
const body = this.parser.parseOptionalExecutableBody();
|
21452
21321
|
const result = new PackageVariableSetterDeclaration2(
|
21453
21322
|
tagList,
|
@@ -21462,7 +21331,7 @@ var PackageMemberDeclarationParser = class {
|
|
21462
21331
|
}
|
21463
21332
|
parsePackageMethodDeclaration(declarationStart, tagList, modifierList) {
|
21464
21333
|
const functionKeyword = this.parser.parseExpectedKeyword(11 /* Function */);
|
21465
|
-
const name = this.parser.parseIdentifier(
|
21334
|
+
const name = this.parser.parseIdentifier(4 /* Other */);
|
21466
21335
|
let typeParameterClause;
|
21467
21336
|
if (this.parser.typeParameterParser.isStartOfTypeParameterClause()) {
|
21468
21337
|
typeParameterClause = this.parser.typeParameterParser.parseTypeParameterClause();
|
@@ -21499,7 +21368,7 @@ var PackageMemberDeclarationParser = class {
|
|
21499
21368
|
() => true,
|
21500
21369
|
() => this.parsePackageMemberDeclaration(),
|
21501
21370
|
() => this.parser.parseSemicolonOrLineBreak(),
|
21502
|
-
() => this.parser.tryReportDiagnosticAtCurrentRange(
|
21371
|
+
() => this.parser.tryReportDiagnosticAtCurrentRange(4 /* SourceFileMemberExpected */)
|
21503
21372
|
);
|
21504
21373
|
const openBraceToken = this.parser.parseExpectedToken(43 /* OpenBrace */);
|
21505
21374
|
const listStart = this.parser.tokenOrKeywordStartPosition();
|
@@ -21531,7 +21400,7 @@ var PackageMemberDeclarationParser = class {
|
|
21531
21400
|
}
|
21532
21401
|
parseTypeDeclaration(declarationStart, tagList, modifierList) {
|
21533
21402
|
const typeKeyword = this.parser.parseExpectedKeyword(15 /* Type */);
|
21534
|
-
const name = this.parser.parseIdentifier(
|
21403
|
+
const name = this.parser.parseIdentifier(4 /* Other */);
|
21535
21404
|
let typeParameterClause;
|
21536
21405
|
if (this.parser.typeParameterParser.isStartOfTypeParameterClause()) {
|
21537
21406
|
typeParameterClause = this.parser.typeParameterParser.parseTypeParameterClause();
|
@@ -21631,7 +21500,7 @@ var PackageMemberDeclarationParser = class {
|
|
21631
21500
|
return (declarationStart, tagList, modifierList) => {
|
21632
21501
|
if (!allowGroupDeclaration) {
|
21633
21502
|
this.parser.tryReportDiagnosticAtCurrentRange(
|
21634
|
-
|
21503
|
+
23 /* RunKeywordOnCreateKeywordOrModifierListExpected */
|
21635
21504
|
);
|
21636
21505
|
}
|
21637
21506
|
return this.parsePackageGroupDeclaration(declarationStart, tagList, modifierList);
|
@@ -21671,7 +21540,7 @@ var TypeMemberDeclarationParser = class {
|
|
21671
21540
|
() => true,
|
21672
21541
|
() => this.parseTypeMemberDeclaration(parseVariantInsteadOfVariable),
|
21673
21542
|
() => this.parser.parseSemicolonOrLineBreak(),
|
21674
|
-
() => this.parser.tryReportDiagnosticAtCurrentRange(
|
21543
|
+
() => this.parser.tryReportDiagnosticAtCurrentRange(3 /* TypeMemberDeclarationExpected */)
|
21675
21544
|
);
|
21676
21545
|
const elements = declarationsParser.parse();
|
21677
21546
|
const result = new TypeMemberDeclarationList2(elements);
|
@@ -21703,14 +21572,14 @@ var TypeMemberDeclarationParser = class {
|
|
21703
21572
|
parseVariantInsteadOfVariable
|
21704
21573
|
);
|
21705
21574
|
if (parsingFunction === void 0) {
|
21706
|
-
this.parser.tryReportDiagnosticAtCurrentRange(
|
21575
|
+
this.parser.tryReportDiagnosticAtCurrentRange(3 /* TypeMemberDeclarationExpected */);
|
21707
21576
|
const result = new InvalidTypeMemberDeclaration2(tagList, modifierList);
|
21708
21577
|
return this.parser.intern(result, declarationStart);
|
21709
21578
|
}
|
21710
21579
|
return parsingFunction(declarationStart, tagList, modifierList);
|
21711
21580
|
}
|
21712
21581
|
parseVariantDeclaration(declarationStart, tagList, modifierList) {
|
21713
|
-
const identifier2 = this.parser.parseIdentifier(
|
21582
|
+
const identifier2 = this.parser.parseIdentifier(4 /* Other */);
|
21714
21583
|
let value;
|
21715
21584
|
const equalsToken = this.parser.parseOptionalToken(57 /* Equals */);
|
21716
21585
|
if (equalsToken !== void 0) {
|
@@ -21721,7 +21590,7 @@ var TypeMemberDeclarationParser = class {
|
|
21721
21590
|
}
|
21722
21591
|
parseTypeMethodOrOperatorDeclaration(declarationStart, tagList, modifierList) {
|
21723
21592
|
const functionKeyword = this.parser.parseExpectedKeyword(11 /* Function */);
|
21724
|
-
const name = this.parser.parseIdentifier(4 /*
|
21593
|
+
const name = this.parser.parseIdentifier(4 /* Other */);
|
21725
21594
|
if (name.ifOperatorNameThenKind !== void 0) {
|
21726
21595
|
return this.parseOperatorDeclaration(
|
21727
21596
|
declarationStart,
|
@@ -21851,7 +21720,7 @@ var TypeMemberDeclarationParser = class {
|
|
21851
21720
|
return this.parser.intern(result, declarationStart);
|
21852
21721
|
}
|
21853
21722
|
parseTypeVariableGetterDeclaration(declarationStart, tagList, modifierList, getKeyword) {
|
21854
|
-
const name = this.parser.parseIdentifier(
|
21723
|
+
const name = this.parser.parseIdentifier(4 /* Other */);
|
21855
21724
|
const typeAnnotation = this.parser.typeAnnotationParser.parseTypeAnnotation();
|
21856
21725
|
const body = this.parser.parseOptionalExecutableBody();
|
21857
21726
|
const result = new TypeVariableGetterDeclaration2(tagList, modifierList, getKeyword, name, typeAnnotation, body);
|
@@ -21896,7 +21765,7 @@ var TypeMemberDeclarationParser = class {
|
|
21896
21765
|
return this.parser.intern(result, declarationStart);
|
21897
21766
|
}
|
21898
21767
|
parseTypeVariableSetterDeclaration(declarationStart, tagList, modifierList, setKeyword) {
|
21899
|
-
const name = this.parser.parseIdentifier(
|
21768
|
+
const name = this.parser.parseIdentifier(4 /* Other */);
|
21900
21769
|
const body = this.parser.parseOptionalExecutableBody();
|
21901
21770
|
const result = new TypeVariableSetterDeclaration2(
|
21902
21771
|
tagList,
|
@@ -21926,7 +21795,7 @@ var TypeMemberDeclarationParser = class {
|
|
21926
21795
|
case 43 /* OpenBrace */:
|
21927
21796
|
return (declarationStart, tags, modifiers) => {
|
21928
21797
|
if (!allowGroupDeclaration) {
|
21929
|
-
this.parser.tryReportDiagnosticAtCurrentRange(
|
21798
|
+
this.parser.tryReportDiagnosticAtCurrentRange(24 /* ModifierListExpected */);
|
21930
21799
|
}
|
21931
21800
|
return this.parseTypeMemberGroupDeclaration(
|
21932
21801
|
declarationStart,
|
@@ -21958,7 +21827,7 @@ var TagParser = class {
|
|
21958
21827
|
this.parser = parser2;
|
21959
21828
|
this._callArgumentListParser = new CallArgumentListParser(
|
21960
21829
|
this.parser,
|
21961
|
-
() => this.parser.tryReportDiagnosticAtCurrentRange(
|
21830
|
+
() => this.parser.tryReportDiagnosticAtCurrentRange(12 /* TagArgumentExpected */)
|
21962
21831
|
);
|
21963
21832
|
}
|
21964
21833
|
isStartOfTag() {
|
@@ -22047,7 +21916,7 @@ var ModifierParser = class {
|
|
22047
21916
|
}
|
22048
21917
|
}
|
22049
21918
|
if (constraint === void 0) {
|
22050
|
-
this.parser.tryReportDiagnosticAtCurrentRange(
|
21919
|
+
this.parser.tryReportDiagnosticAtCurrentRange(25 /* HidingLevelExpected */);
|
22051
21920
|
}
|
22052
21921
|
closeParenthesisToken = this.parser.parseExpectedToken(21 /* CloseParenthesis */);
|
22053
21922
|
}
|
@@ -22100,7 +21969,7 @@ var TypeArgumentParser = class {
|
|
22100
21969
|
() => false,
|
22101
21970
|
() => this.parser.typeSpecifierParser.parseTypeSpecifier(),
|
22102
21971
|
() => this.parser.parseComma(),
|
22103
|
-
() => this.parser.tryReportDiagnosticAtCurrentRange(
|
21972
|
+
() => this.parser.tryReportDiagnosticAtCurrentRange(9 /* TypeSpecifierExpected */)
|
22104
21973
|
);
|
22105
21974
|
}
|
22106
21975
|
parseTypeArgumentClause() {
|
@@ -22134,7 +22003,7 @@ var TypeParameterParser = class {
|
|
22134
22003
|
() => this.parser.currentTokenOrKeyword.isToken(33 /* GreaterThan */),
|
22135
22004
|
() => this.parseTypeParameterDeclaration(),
|
22136
22005
|
() => this.parser.parseComma(),
|
22137
|
-
() => this.parser.tryReportDiagnosticAtCurrentRange(
|
22006
|
+
() => this.parser.tryReportDiagnosticAtCurrentRange(13 /* TypeParameterExpected */)
|
22138
22007
|
);
|
22139
22008
|
}
|
22140
22009
|
isStartOfTypeParameterClause() {
|
@@ -22170,7 +22039,7 @@ var TypeParameterParser = class {
|
|
22170
22039
|
}
|
22171
22040
|
parseTypeParameterDeclaration() {
|
22172
22041
|
const declarationStart = this.parser.tokenOrKeywordStartPosition();
|
22173
|
-
const name = this.parser.parseIdentifier(
|
22042
|
+
const name = this.parser.parseIdentifier(4 /* Other */);
|
22174
22043
|
let typeConstraint;
|
22175
22044
|
const colonToken = this.parser.parseOptionalToken(23 /* Colon */);
|
22176
22045
|
if (colonToken !== void 0) {
|
@@ -22196,7 +22065,7 @@ var ParameterParser = class {
|
|
22196
22065
|
() => true,
|
22197
22066
|
() => this.parseParameterDeclaration(),
|
22198
22067
|
() => this.parser.parseComma(),
|
22199
|
-
() => this.parser.tryReportDiagnosticAtCurrentRange(
|
22068
|
+
() => this.parser.tryReportDiagnosticAtCurrentRange(14 /* ParameterExpected */)
|
22200
22069
|
);
|
22201
22070
|
this._indexerParameterSequenceParser = new SequenceParser(
|
22202
22071
|
this.parser,
|
@@ -22205,7 +22074,7 @@ var ParameterParser = class {
|
|
22205
22074
|
() => true,
|
22206
22075
|
() => this.parser.parameterParser.parseParameterDeclaration(),
|
22207
22076
|
() => this.parser.parseComma(),
|
22208
|
-
() => this.parser.tryReportDiagnosticAtCurrentRange(
|
22077
|
+
() => this.parser.tryReportDiagnosticAtCurrentRange(14 /* ParameterExpected */)
|
22209
22078
|
);
|
22210
22079
|
}
|
22211
22080
|
parseParameterClause() {
|
@@ -22263,7 +22132,7 @@ var RunStatementParser = class {
|
|
22263
22132
|
() => false,
|
22264
22133
|
() => this.parseClauseExpected(),
|
22265
22134
|
void 0,
|
22266
|
-
() => this.parser.tryReportDiagnosticAtCurrentRange(
|
22135
|
+
() => this.parser.tryReportDiagnosticAtCurrentRange(15 /* RunStatementClauseExpected */)
|
22267
22136
|
);
|
22268
22137
|
}
|
22269
22138
|
parseRunStatement() {
|
@@ -22321,7 +22190,7 @@ var RunStatementParser = class {
|
|
22321
22190
|
}
|
22322
22191
|
parseErrorVariableDeclaration() {
|
22323
22192
|
const declarationStart = this.parser.tokenOrKeywordStartPosition();
|
22324
|
-
const name = this.parser.parseIdentifier(
|
22193
|
+
const name = this.parser.parseIdentifier(4 /* Other */);
|
22325
22194
|
let typeAnnotation;
|
22326
22195
|
if (this.parser.typeAnnotationParser.isStartOfTypeAnnotation()) {
|
22327
22196
|
typeAnnotation = this.parser.typeAnnotationParser.parseTypeAnnotation();
|
@@ -22347,7 +22216,7 @@ var ArrayLiteralParser = class {
|
|
22347
22216
|
() => true,
|
22348
22217
|
() => this.parser.expressionParser.parseExpression(false),
|
22349
22218
|
() => this.parser.parseComma(),
|
22350
|
-
() => this.parser.tryReportDiagnosticAtCurrentRange(
|
22219
|
+
() => this.parser.tryReportDiagnosticAtCurrentRange(7 /* ExpressionExpected */)
|
22351
22220
|
);
|
22352
22221
|
}
|
22353
22222
|
parseArrayLiteral() {
|
@@ -22385,7 +22254,7 @@ var SwitchStatementParser = class {
|
|
22385
22254
|
return this.parser.expressionParser.parseExpression(true);
|
22386
22255
|
},
|
22387
22256
|
() => this.parser.parseComma(),
|
22388
|
-
() => this.parser.tryReportDiagnosticAtCurrentRange(
|
22257
|
+
() => this.parser.tryReportDiagnosticAtCurrentRange(7 /* ExpressionExpected */)
|
22389
22258
|
);
|
22390
22259
|
}
|
22391
22260
|
parseSwitchStatement() {
|
@@ -22428,7 +22297,7 @@ var IndexedAccessArgumentListParser = class {
|
|
22428
22297
|
() => true,
|
22429
22298
|
() => this.parser.expressionParser.parseExpression(false),
|
22430
22299
|
() => this.parser.parseComma(),
|
22431
|
-
() => this.parser.tryReportDiagnosticAtCurrentRange(
|
22300
|
+
() => this.parser.tryReportDiagnosticAtCurrentRange(7 /* ExpressionExpected */)
|
22432
22301
|
);
|
22433
22302
|
}
|
22434
22303
|
parseIndexedAccessArgumentList() {
|
@@ -22446,7 +22315,7 @@ var TranslationsDeclarationParser = class {
|
|
22446
22315
|
() => this.parser.currentTokenOrKeyword.isToken(63 /* Identifier */),
|
22447
22316
|
() => this.parser.currentTokenOrKeyword.isToken(21 /* CloseParenthesis */),
|
22448
22317
|
() => true,
|
22449
|
-
() => this.parser.parseIdentifier(
|
22318
|
+
() => this.parser.parseIdentifier(4 /* Other */),
|
22450
22319
|
() => this.parser.parseComma(),
|
22451
22320
|
() => this.parser.tryReportDiagnosticAtCurrentRange(0 /* IdentifierExpected */)
|
22452
22321
|
);
|
@@ -22456,7 +22325,7 @@ var TranslationsDeclarationParser = class {
|
|
22456
22325
|
() => this.parser.currentTokenOrKeyword.isToken(33 /* GreaterThan */) || this.parser.currentTokenOrKeyword.isToken(57 /* Equals */),
|
22457
22326
|
/* for better error recovery */
|
22458
22327
|
() => true,
|
22459
|
-
() => this.parser.parseIdentifier(
|
22328
|
+
() => this.parser.parseIdentifier(4 /* Other */),
|
22460
22329
|
() => this.parser.parseComma(),
|
22461
22330
|
() => this.parser.tryReportDiagnosticAtCurrentRange(0 /* IdentifierExpected */)
|
22462
22331
|
);
|
@@ -22467,7 +22336,7 @@ var TranslationsDeclarationParser = class {
|
|
22467
22336
|
() => true,
|
22468
22337
|
() => this.parseTypeMemberTranslation(),
|
22469
22338
|
() => this.parser.parseSemicolonOrLineBreak(),
|
22470
|
-
() => this.parser.tryReportDiagnosticAtCurrentRange(
|
22339
|
+
() => this.parser.tryReportDiagnosticAtCurrentRange(19 /* TypeMemberTranslationExpected */)
|
22471
22340
|
);
|
22472
22341
|
this._topLevelTranslationSequenceParser = new SequenceParser(
|
22473
22342
|
this.parser,
|
@@ -22476,14 +22345,14 @@ var TranslationsDeclarationParser = class {
|
|
22476
22345
|
() => true,
|
22477
22346
|
() => this.parseTopLevelTranslation(),
|
22478
22347
|
() => this.parser.parseSemicolonOrLineBreak(),
|
22479
|
-
() => this.parser.tryReportDiagnosticAtCurrentRange(
|
22348
|
+
() => this.parser.tryReportDiagnosticAtCurrentRange(20 /* TranslationExpected */)
|
22480
22349
|
);
|
22481
22350
|
this._indexerParameterSequenceParser = new SequenceParser(
|
22482
22351
|
this.parser,
|
22483
22352
|
() => this.parser.currentTokenOrKeyword.isToken(63 /* Identifier */),
|
22484
22353
|
() => this.parser.currentTokenOrKeyword.isToken(22 /* CloseSquareBracket */),
|
22485
22354
|
() => true,
|
22486
|
-
() => this.parser.parseIdentifier(
|
22355
|
+
() => this.parser.parseIdentifier(4 /* Other */),
|
22487
22356
|
() => this.parser.parseComma(),
|
22488
22357
|
() => this.parser.tryReportDiagnosticAtCurrentRange(0 /* IdentifierExpected */)
|
22489
22358
|
);
|
@@ -22579,20 +22448,20 @@ var TranslationsDeclarationParser = class {
|
|
22579
22448
|
}
|
22580
22449
|
parsePackageVariableTranslation() {
|
22581
22450
|
const translationStart = this.parser.tokenOrKeywordStartPosition();
|
22582
|
-
const sourceName = this.parser.parseIdentifier(
|
22451
|
+
const sourceName = this.parser.parseIdentifier(4 /* Other */);
|
22583
22452
|
const minusGreaterThanToken = this.parser.parseExpectedToken(42 /* MinusGreaterThan */);
|
22584
|
-
const translatedName = this.parser.parseIdentifier(
|
22453
|
+
const translatedName = this.parser.parseIdentifier(4 /* Other */);
|
22585
22454
|
const result = new PackageVariableTranslation2(sourceName, minusGreaterThanToken, translatedName);
|
22586
22455
|
return this.parser.intern(result, translationStart);
|
22587
22456
|
}
|
22588
22457
|
parsePackageMethodTranslation() {
|
22589
22458
|
const translationStart = this.parser.tokenOrKeywordStartPosition();
|
22590
22459
|
const functionKeyword = this.parser.parseExpectedKeyword(11 /* Function */);
|
22591
|
-
const sourceName = this.parser.parseIdentifier(
|
22460
|
+
const sourceName = this.parser.parseIdentifier(4 /* Other */);
|
22592
22461
|
const sourceTypeParameterClause = this.parseOptionalTypeParameterClause();
|
22593
22462
|
const sourceParameterClause = this.parseParameterClause();
|
22594
22463
|
const minusGreaterThanToken = this.parser.parseExpectedToken(42 /* MinusGreaterThan */);
|
22595
|
-
const translatedName = this.parser.parseIdentifier(
|
22464
|
+
const translatedName = this.parser.parseIdentifier(4 /* Other */);
|
22596
22465
|
const translatedTypeParameterClause = this.parseOptionalTypeParameterClause();
|
22597
22466
|
const translatedParameterClause = this.parseParameterClause();
|
22598
22467
|
const result = new PackageMethodTranslation2(
|
@@ -22610,11 +22479,11 @@ var TranslationsDeclarationParser = class {
|
|
22610
22479
|
parseTypeMethodTranslation() {
|
22611
22480
|
const translationStart = this.parser.tokenOrKeywordStartPosition();
|
22612
22481
|
const functionKeyword = this.parser.parseExpectedKeyword(11 /* Function */);
|
22613
|
-
const sourceName = this.parser.parseIdentifier(
|
22482
|
+
const sourceName = this.parser.parseIdentifier(4 /* Other */);
|
22614
22483
|
const sourceTypeParameterClause = this.parseOptionalTypeParameterClause();
|
22615
22484
|
const sourceParameterClause = this.parseParameterClause();
|
22616
22485
|
const minusGreaterThanToken = this.parser.parseExpectedToken(42 /* MinusGreaterThan */);
|
22617
|
-
const translatedName = this.parser.parseIdentifier(
|
22486
|
+
const translatedName = this.parser.parseIdentifier(4 /* Other */);
|
22618
22487
|
const translatedTypeParameterClause = this.parseOptionalTypeParameterClause();
|
22619
22488
|
const translatedParameterClause = this.parseParameterClause();
|
22620
22489
|
const result = new TypeMethodTranslation2(
|
@@ -22704,7 +22573,7 @@ var TranslationsDeclarationParser = class {
|
|
22704
22573
|
parseTypeOrMethodTypeTranslation() {
|
22705
22574
|
const translationStart = this.parser.tokenOrKeywordStartPosition();
|
22706
22575
|
const typeKeyword = this.parser.parseExpectedKeyword(15 /* Type */);
|
22707
|
-
const sourceName = this.parser.parseIdentifier(
|
22576
|
+
const sourceName = this.parser.parseIdentifier(4 /* Other */);
|
22708
22577
|
const sourceTypeParameterClause = this.parseOptionalTypeParameterClause();
|
22709
22578
|
if (this.parser.currentTokenOrKeyword.isToken(44 /* OpenParenthesis */)) {
|
22710
22579
|
return this.parseMethodTypeTranslation(translationStart, typeKeyword, sourceName, sourceTypeParameterClause);
|
@@ -22714,7 +22583,7 @@ var TranslationsDeclarationParser = class {
|
|
22714
22583
|
}
|
22715
22584
|
parseTypeTranslation(translationStart, typeKeyword, sourceName, sourceTypeParameterClause) {
|
22716
22585
|
const minusGreaterThanToken = this.parser.parseExpectedToken(42 /* MinusGreaterThan */);
|
22717
|
-
const translatedName = this.parser.parseIdentifier(
|
22586
|
+
const translatedName = this.parser.parseIdentifier(4 /* Other */);
|
22718
22587
|
const translatedTypeParameterClause = this.parseOptionalTypeParameterClause();
|
22719
22588
|
let memberList;
|
22720
22589
|
let closeBraceToken;
|
@@ -22741,7 +22610,7 @@ var TranslationsDeclarationParser = class {
|
|
22741
22610
|
parseMethodTypeTranslation(translationStart, typeKeyword, sourceName, sourceTypeParameterClause) {
|
22742
22611
|
const sourceParameterClause = this.parseParameterClause();
|
22743
22612
|
const minusGreaterThanToken = this.parser.parseExpectedToken(42 /* MinusGreaterThan */);
|
22744
|
-
const translatedName = this.parser.parseIdentifier(
|
22613
|
+
const translatedName = this.parser.parseIdentifier(4 /* Other */);
|
22745
22614
|
const translatedTypeParameterClause = this.parseOptionalTypeParameterClause();
|
22746
22615
|
const translatedParameterClause = this.parseParameterClause();
|
22747
22616
|
const result = new MethodTypeTranslation2(
|
@@ -22818,7 +22687,7 @@ var TypeSpecifierParser = class {
|
|
22818
22687
|
parsePrimaryTypeSpecifier() {
|
22819
22688
|
const parsingFunction = this.getPrimaryTypeSpecifierParsingFunction();
|
22820
22689
|
if (parsingFunction === void 0) {
|
22821
|
-
this.parser.tryReportDiagnosticAtCurrentRange(
|
22690
|
+
this.parser.tryReportDiagnosticAtCurrentRange(9 /* TypeSpecifierExpected */);
|
22822
22691
|
const result = new InvalidTypeSpecifier2();
|
22823
22692
|
return this.parser.intern(result, this.parser.tokenOrKeywordStartPosition());
|
22824
22693
|
}
|
@@ -22928,13 +22797,13 @@ var TypeDeclarationBodyParser = class {
|
|
22928
22797
|
() => true,
|
22929
22798
|
() => this.parser.typeSpecifierParser.parseNamedTypeSpecifier(),
|
22930
22799
|
() => this.parser.parseComma(),
|
22931
|
-
() => this.parser.tryReportDiagnosticAtCurrentRange(
|
22800
|
+
() => this.parser.tryReportDiagnosticAtCurrentRange(8 /* BaseTypeNameExpected */)
|
22932
22801
|
);
|
22933
22802
|
}
|
22934
22803
|
parseTypeDeclarationBody() {
|
22935
22804
|
const parsingFunction = this.getTypeDeclarationBodyParsingFunction();
|
22936
22805
|
if (parsingFunction === void 0) {
|
22937
|
-
this.parser.tryReportDiagnosticAtCurrentRange(
|
22806
|
+
this.parser.tryReportDiagnosticAtCurrentRange(10 /* TypeBodyExpected */);
|
22938
22807
|
const invalidTypeSpecifier = this.parser.intern(
|
22939
22808
|
new InvalidTypeSpecifier2(),
|
22940
22809
|
this.parser.tokenOrKeywordStartPosition()
|
@@ -23647,7 +23516,7 @@ var FSTreeCompilationLoader = class {
|
|
23647
23516
|
}
|
23648
23517
|
case "file": {
|
23649
23518
|
this._diagnostics?.addDiagnostic(new Diagnostic(DiagnosticData.withCode(
|
23650
|
-
|
23519
|
+
110 /* SourceFile0IsNotPartOfThePackageAndWontBeLoaded */,
|
23651
23520
|
[fileOrDirectory.uri.toString()],
|
23652
23521
|
1 /* Warning */
|
23653
23522
|
), void 0));
|
@@ -24207,6 +24076,38 @@ var TypeMemberLookup = class _TypeMemberLookup {
|
|
24207
24076
|
return containingPackage.getLocale();
|
24208
24077
|
}
|
24209
24078
|
};
|
24079
|
+
var BoundTypeMemberLookup = class _BoundTypeMemberLookup {
|
24080
|
+
constructor(analyzer, type, localizationContext, hidingMatcher, typeExtensionLookup) {
|
24081
|
+
this._lookup = new TypeMemberLookup(analyzer, type, localizationContext);
|
24082
|
+
this._hidingMatcher = hidingMatcher;
|
24083
|
+
this._typeExtensionLookup = typeExtensionLookup;
|
24084
|
+
}
|
24085
|
+
static ofTypeEntity(analyzer, entity, localizationContext, hidingMatcher, typeExtensionLookup) {
|
24086
|
+
const type = analyzer.instantiateTypeByIdentitySubstitution(entity);
|
24087
|
+
return new _BoundTypeMemberLookup(analyzer, type, localizationContext, hidingMatcher, typeExtensionLookup);
|
24088
|
+
}
|
24089
|
+
getNamedMembers() {
|
24090
|
+
return this._lookup.getNamedMembers(this._hidingMatcher, this._typeExtensionLookup);
|
24091
|
+
}
|
24092
|
+
getNamedMembersByName(name) {
|
24093
|
+
return this._lookup.getNamedMembersByName(name, this._hidingMatcher, this._typeExtensionLookup);
|
24094
|
+
}
|
24095
|
+
getOperators() {
|
24096
|
+
return this._lookup.getOperators(this._hidingMatcher, this._typeExtensionLookup);
|
24097
|
+
}
|
24098
|
+
getOperatorsByKind(kind) {
|
24099
|
+
return this._lookup.getOperatorsByKind(kind, this._hidingMatcher, this._typeExtensionLookup);
|
24100
|
+
}
|
24101
|
+
getConstructors() {
|
24102
|
+
return this._lookup.getConstructors(this._hidingMatcher, this._typeExtensionLookup);
|
24103
|
+
}
|
24104
|
+
getIndexers() {
|
24105
|
+
return this._lookup.getIndexers(this._hidingMatcher, this._typeExtensionLookup);
|
24106
|
+
}
|
24107
|
+
getDereferenceOperators() {
|
24108
|
+
return this._lookup.getDereferenceOperators(this._hidingMatcher, this._typeExtensionLookup);
|
24109
|
+
}
|
24110
|
+
};
|
24210
24111
|
var TypeMemberLookupBase = class {
|
24211
24112
|
constructor(analyzer) {
|
24212
24113
|
this._analyzer = analyzer;
|
@@ -25852,6 +25753,7 @@ var TsPropertyEntity = class {
|
|
25852
25753
|
this.kind = 0 /* Variable */;
|
25853
25754
|
this.subkind = "type";
|
25854
25755
|
this._type = new Cached();
|
25756
|
+
this._overriddenMember = new Cached();
|
25855
25757
|
}
|
25856
25758
|
get declaration() {
|
25857
25759
|
return this._symbol.declarations?.find(
|
@@ -25920,6 +25822,18 @@ var TsPropertyEntity = class {
|
|
25920
25822
|
isAbstract() {
|
25921
25823
|
return false;
|
25922
25824
|
}
|
25825
|
+
getOverriddenMember() {
|
25826
|
+
return this._overriddenMember.getOrInsertWith(() => {
|
25827
|
+
let result;
|
25828
|
+
if (!this.isStatic() && this._containingType.kind === 12 /* StructuredType */) {
|
25829
|
+
const baseType = this._containingType.getBaseObjectType().cycleFree;
|
25830
|
+
if (baseType !== void 0) {
|
25831
|
+
result = new TypeMemberLookup(this._tsctx.analyzer, baseType, void 0).getNamedMembersByName(new SearchName(this.getName(), true)).first((m) => m.value.kind === "variable")?.value;
|
25832
|
+
}
|
25833
|
+
}
|
25834
|
+
return result;
|
25835
|
+
});
|
25836
|
+
}
|
25923
25837
|
};
|
25924
25838
|
TsPropertyEntity = __decorateClass([
|
25925
25839
|
entityToStringDecorator
|
@@ -25935,6 +25849,7 @@ var TsAccessorEntity = class {
|
|
25935
25849
|
this._type = new Cached();
|
25936
25850
|
this._getter = new Cached();
|
25937
25851
|
this._setter = new Cached();
|
25852
|
+
this._overriddenMember = new Cached();
|
25938
25853
|
}
|
25939
25854
|
get getAccessorDeclaration() {
|
25940
25855
|
return this._symbol.declarations?.find(ts2.isGetAccessorDeclaration);
|
@@ -26016,6 +25931,18 @@ var TsAccessorEntity = class {
|
|
26016
25931
|
isAbstract() {
|
26017
25932
|
return false;
|
26018
25933
|
}
|
25934
|
+
getOverriddenMember() {
|
25935
|
+
return this._overriddenMember.getOrInsertWith(() => {
|
25936
|
+
let result;
|
25937
|
+
if (!this.isStatic() && this._containingType.kind === 12 /* StructuredType */) {
|
25938
|
+
const baseType = this._containingType.getBaseObjectType().cycleFree;
|
25939
|
+
if (baseType !== void 0) {
|
25940
|
+
result = new TypeMemberLookup(this._tsctx.analyzer, baseType, void 0).getNamedMembersByName(new SearchName(this.getName(), true)).first((m) => m.value.kind === "variable")?.value;
|
25941
|
+
}
|
25942
|
+
}
|
25943
|
+
return result;
|
25944
|
+
});
|
25945
|
+
}
|
26019
25946
|
};
|
26020
25947
|
TsAccessorEntity = __decorateClass([
|
26021
25948
|
entityToStringDecorator
|
@@ -26090,6 +26017,7 @@ var TsMethodEntity = class {
|
|
26090
26017
|
this._typeParameters = new Cached();
|
26091
26018
|
this._valueParameters = new Cached();
|
26092
26019
|
this._returnType = new Cached();
|
26020
|
+
this._overriddenMember = new Cached();
|
26093
26021
|
}
|
26094
26022
|
getName() {
|
26095
26023
|
return this._tsctx.getName(this._symbol.name, "method");
|
@@ -26169,6 +26097,18 @@ var TsMethodEntity = class {
|
|
26169
26097
|
getSubstitutionApplicationMode() {
|
26170
26098
|
return 0 /* SubstituteOwnSubstitutions */;
|
26171
26099
|
}
|
26100
|
+
getOverriddenMember() {
|
26101
|
+
return this._overriddenMember.getOrInsertWith(() => {
|
26102
|
+
let result;
|
26103
|
+
if (!this.isStatic() && this._containingType.kind === 12 /* StructuredType */) {
|
26104
|
+
const baseType = this._containingType.getBaseObjectType().cycleFree;
|
26105
|
+
if (baseType !== void 0) {
|
26106
|
+
result = new TypeMemberLookup(this._tsctx.analyzer, baseType, void 0).getNamedMembersByName(new SearchName(this.getName(), true)).first((m) => m.value.kind === "method")?.value;
|
26107
|
+
}
|
26108
|
+
}
|
26109
|
+
return result;
|
26110
|
+
});
|
26111
|
+
}
|
26172
26112
|
};
|
26173
26113
|
TsMethodEntity = __decorateClass([
|
26174
26114
|
entityToStringDecorator
|
@@ -26181,6 +26121,7 @@ var TsIteratorMethodEntity = class {
|
|
26181
26121
|
this.kind = 5 /* Method */;
|
26182
26122
|
this.subkind = "type";
|
26183
26123
|
this._returnType = new Cached();
|
26124
|
+
this._overriddenMethod = new Cached();
|
26184
26125
|
}
|
26185
26126
|
get firstDeclaration() {
|
26186
26127
|
return this._symbol.declarations?.find(
|
@@ -26256,6 +26197,21 @@ var TsIteratorMethodEntity = class {
|
|
26256
26197
|
getSubstitutionApplicationMode() {
|
26257
26198
|
return 0 /* SubstituteOwnSubstitutions */;
|
26258
26199
|
}
|
26200
|
+
getOverriddenMember() {
|
26201
|
+
return this._overriddenMethod.getOrInsertWith(() => {
|
26202
|
+
const elementType = Query.from(this.getReturnType().getSubstitutions().getTypes()).first() ?? this._tsctx.analyzer.standardTypes.unresolved;
|
26203
|
+
const substitutions = new Substitutions2(
|
26204
|
+
this._tsctx.analyzer,
|
26205
|
+
this._tsctx.analyzer.wellKnownDeclarations.enumerable.getTypeParameters(),
|
26206
|
+
[elementType]
|
26207
|
+
);
|
26208
|
+
return new Method(
|
26209
|
+
this._tsctx.analyzer,
|
26210
|
+
this._tsctx.analyzer.wellKnownDeclarations.enumeratorMethod,
|
26211
|
+
substitutions
|
26212
|
+
);
|
26213
|
+
});
|
26214
|
+
}
|
26259
26215
|
};
|
26260
26216
|
TsIteratorMethodEntity = __decorateClass([
|
26261
26217
|
entityToStringDecorator
|
@@ -27018,6 +26974,7 @@ var TypeVariableDeclarationEntity = class {
|
|
27018
26974
|
this.kind = 0 /* Variable */;
|
27019
26975
|
this.subkind = "type";
|
27020
26976
|
this._typeInferrer = new Cached();
|
26977
|
+
this._overriddenMember = new Cached();
|
27021
26978
|
this._analyzer = analyzer;
|
27022
26979
|
this._node = node;
|
27023
26980
|
}
|
@@ -27073,6 +27030,9 @@ var TypeVariableDeclarationEntity = class {
|
|
27073
27030
|
isAbstract() {
|
27074
27031
|
return findModifier(this._node, 35 /* Abstract */) !== void 0;
|
27075
27032
|
}
|
27033
|
+
getOverriddenMember() {
|
27034
|
+
return this._overriddenMember.getOrInsertWith(() => this._analyzer.overriddenMember.getOverriddenVariable(this._node));
|
27035
|
+
}
|
27076
27036
|
};
|
27077
27037
|
TypeVariableDeclarationEntity = __decorateClass([
|
27078
27038
|
entityToStringDecorator
|
@@ -27081,6 +27041,7 @@ var ComputedTypeVariableDeclarationEntity = class {
|
|
27081
27041
|
constructor(analyzer, getterDeclaration, setterDeclaration) {
|
27082
27042
|
this.kind = 0 /* Variable */;
|
27083
27043
|
this.subkind = "type";
|
27044
|
+
this._overriddenMember = new Cached();
|
27084
27045
|
this._analyzer = analyzer;
|
27085
27046
|
this._getterDeclaration = getterDeclaration;
|
27086
27047
|
this._setterDeclaration = setterDeclaration;
|
@@ -27145,6 +27106,9 @@ var ComputedTypeVariableDeclarationEntity = class {
|
|
27145
27106
|
getTags() {
|
27146
27107
|
return this.getGetter()?.getTags() ?? [];
|
27147
27108
|
}
|
27109
|
+
getOverriddenMember() {
|
27110
|
+
return this._overriddenMember.getOrInsertWith(() => this._analyzer.overriddenMember.getOverriddenVariable(this._getterOrSetterDeclaration));
|
27111
|
+
}
|
27148
27112
|
};
|
27149
27113
|
ComputedTypeVariableDeclarationEntity = __decorateClass([
|
27150
27114
|
entityToStringDecorator
|
@@ -27628,7 +27592,7 @@ IntrinsicPackageVariableEntity = __decorateClass([
|
|
27628
27592
|
entityToStringDecorator
|
27629
27593
|
], IntrinsicPackageVariableEntity);
|
27630
27594
|
var IntrinsicTypeVariableEntity = class {
|
27631
|
-
constructor(_name, _type, _container, _isStatic, _isRedefinable, _isRedefined, _isAbstract, _isSpecial, _isHidden, _getter, _setter) {
|
27595
|
+
constructor(_name, _type, _container, _isStatic, _isRedefinable, _isRedefined, _isAbstract, _isSpecial, _isHidden, _getter, _setter, _overriddenMember) {
|
27632
27596
|
this._name = _name;
|
27633
27597
|
this._type = _type;
|
27634
27598
|
this._container = _container;
|
@@ -27640,6 +27604,7 @@ var IntrinsicTypeVariableEntity = class {
|
|
27640
27604
|
this._isHidden = _isHidden;
|
27641
27605
|
this._getter = _getter;
|
27642
27606
|
this._setter = _setter;
|
27607
|
+
this._overriddenMember = _overriddenMember;
|
27643
27608
|
this.kind = 0 /* Variable */;
|
27644
27609
|
this.subkind = "type";
|
27645
27610
|
}
|
@@ -27685,6 +27650,9 @@ var IntrinsicTypeVariableEntity = class {
|
|
27685
27650
|
isAbstract() {
|
27686
27651
|
return this._isAbstract;
|
27687
27652
|
}
|
27653
|
+
getOverriddenMember() {
|
27654
|
+
return this._overriddenMember;
|
27655
|
+
}
|
27688
27656
|
};
|
27689
27657
|
IntrinsicTypeVariableEntity = __decorateClass([
|
27690
27658
|
entityToStringDecorator
|
@@ -29499,7 +29467,7 @@ var CallArgumentToParameterMatcher = class {
|
|
29499
29467
|
} else {
|
29500
29468
|
this.addCallArgumentDiagnostic(
|
29501
29469
|
callArgument,
|
29502
|
-
|
29470
|
+
58 /* ParameterForPositionalCallArgumentNotFound */,
|
29503
29471
|
argumentArrangementDiagnostics
|
29504
29472
|
);
|
29505
29473
|
}
|
@@ -29520,7 +29488,7 @@ var CallArgumentToParameterMatcher = class {
|
|
29520
29488
|
if (argumentName === void 0) {
|
29521
29489
|
this.addCallArgumentDiagnostic(
|
29522
29490
|
callArgument,
|
29523
|
-
|
29491
|
+
43 /* NamedArgumentExpectedButPositionalArgumentFound */,
|
29524
29492
|
argumentArrangementDiagnostics
|
29525
29493
|
);
|
29526
29494
|
} else {
|
@@ -29529,7 +29497,7 @@ var CallArgumentToParameterMatcher = class {
|
|
29529
29497
|
if (matchedParameters.has(parameter)) {
|
29530
29498
|
this.addCallArgumentDiagnostic(
|
29531
29499
|
callArgument,
|
29532
|
-
|
29500
|
+
45 /* ArgumentForParameterAlreadyPassed */,
|
29533
29501
|
argumentArrangementDiagnostics
|
29534
29502
|
);
|
29535
29503
|
} else {
|
@@ -29539,7 +29507,7 @@ var CallArgumentToParameterMatcher = class {
|
|
29539
29507
|
} else {
|
29540
29508
|
this.addCallArgumentDiagnostic(
|
29541
29509
|
callArgument,
|
29542
|
-
|
29510
|
+
44 /* ParameterWithGivenNameNotFound */,
|
29543
29511
|
argumentArrangementDiagnostics
|
29544
29512
|
);
|
29545
29513
|
}
|
@@ -29817,23 +29785,23 @@ var Resolver2 = class {
|
|
29817
29785
|
let targetType = this._analyzer.getTargetTypeOfExpression(this._node, this._targetTypeHint);
|
29818
29786
|
if (targetType === void 0) {
|
29819
29787
|
return new Meaning_unresolved([
|
29820
|
-
this._analyzer.createNodeDiagnostic(
|
29788
|
+
this._analyzer.createNodeDiagnostic(59 /* CannotDetermineTargetTypeToCallTheConstructor */, this._node)
|
29821
29789
|
]);
|
29822
29790
|
}
|
29823
29791
|
targetType = this._analyzer.excludeNoneFromType(targetType);
|
29824
29792
|
if (targetType.kind === "unresolved") {
|
29825
29793
|
return new Meaning_unresolved([
|
29826
|
-
this._analyzer.createNodeDiagnostic(
|
29794
|
+
this._analyzer.createNodeDiagnostic(40 /* CannotCreateInstanceOfUnresolvedType */, this._node)
|
29827
29795
|
]);
|
29828
29796
|
}
|
29829
29797
|
if (targetType.kind === "parameter") {
|
29830
29798
|
return new Meaning_unresolved([
|
29831
|
-
this._analyzer.createNodeDiagnostic(
|
29799
|
+
this._analyzer.createNodeDiagnostic(39 /* CannotCreateInstanceOfTypeParameter */, this._node)
|
29832
29800
|
]);
|
29833
29801
|
}
|
29834
29802
|
if (targetType.kind === "structured" && targetType.isAspect()) {
|
29835
29803
|
return new Meaning_unresolved([
|
29836
|
-
this._analyzer.createNodeDiagnostic(
|
29804
|
+
this._analyzer.createNodeDiagnostic(38 /* CannotCreateInstanceOfAspect */, this._node)
|
29837
29805
|
]);
|
29838
29806
|
}
|
29839
29807
|
const semanticContext = this._analyzer.semanticContext.containing(this._node);
|
@@ -29841,7 +29809,7 @@ var Resolver2 = class {
|
|
29841
29809
|
const constructors = typeMemberLookup.getConstructors(semanticContext.getHidingMatcher(), semanticContext.getScopeLookup()).toArray();
|
29842
29810
|
if (constructors.length === 0) {
|
29843
29811
|
return new Meaning_unresolved([this._analyzer.createNodeDiagnostic(
|
29844
|
-
|
29812
|
+
41 /* TypeConstructorNotFound */,
|
29845
29813
|
this._node
|
29846
29814
|
)]);
|
29847
29815
|
}
|
@@ -30124,7 +30092,7 @@ var Resolver3 = class {
|
|
30124
30092
|
const constructors = typeMemberLookup.getConstructors(hidingMatcher).toArray();
|
30125
30093
|
if (constructors.length === 0) {
|
30126
30094
|
return new Meaning_unresolved2(
|
30127
|
-
this._analyzer.createNodeDiagnostic(
|
30095
|
+
this._analyzer.createNodeDiagnostic(41 /* TypeConstructorNotFound */, this._node)
|
30128
30096
|
);
|
30129
30097
|
}
|
30130
30098
|
if (constructors.length === 1) {
|
@@ -30135,19 +30103,19 @@ var Resolver3 = class {
|
|
30135
30103
|
return new Meaning_baseConstructorAccess(baseType, constructors, result);
|
30136
30104
|
}
|
30137
30105
|
resolveBaseMethodAccess(containingDeclaration) {
|
30138
|
-
const overriddenMethod = this._analyzer.
|
30106
|
+
const overriddenMethod = this._analyzer.entity.ofTypeMethodDeclaration(containingDeclaration).getOverriddenMember();
|
30139
30107
|
if (overriddenMethod === void 0) {
|
30140
30108
|
return new Meaning_unresolved2(
|
30141
|
-
this._analyzer.createNodeDiagnostic(
|
30109
|
+
this._analyzer.createNodeDiagnostic(75 /* OverriddenMethodNotFound */, this._node)
|
30142
30110
|
);
|
30143
30111
|
}
|
30144
30112
|
return new Meaning_overriddenMethodAccess(overriddenMethod);
|
30145
30113
|
}
|
30146
30114
|
resolveBaseOperatorAccess(containingDeclaration) {
|
30147
|
-
const overriddenOperator = this._analyzer.
|
30115
|
+
const overriddenOperator = this._analyzer.entity.ofOperatorDeclaration(containingDeclaration).getOverriddenMember();
|
30148
30116
|
if (overriddenOperator === void 0) {
|
30149
30117
|
return new Meaning_unresolved2(
|
30150
|
-
this._analyzer.createNodeDiagnostic(
|
30118
|
+
this._analyzer.createNodeDiagnostic(75 /* OverriddenMethodNotFound */, this._node)
|
30151
30119
|
);
|
30152
30120
|
}
|
30153
30121
|
return new Meaning_overriddenOperatorAccess(overriddenOperator);
|
@@ -30166,7 +30134,7 @@ var Resolver3 = class {
|
|
30166
30134
|
}
|
30167
30135
|
invalidContextMeaning() {
|
30168
30136
|
return new Meaning_unresolved2(
|
30169
|
-
this._analyzer.createNodeDiagnostic(
|
30137
|
+
this._analyzer.createNodeDiagnostic(74 /* BaseCannotBeUsedInThisContext */, this._node)
|
30170
30138
|
);
|
30171
30139
|
}
|
30172
30140
|
getBaseOrAliasedType(typeEntity) {
|
@@ -30528,24 +30496,24 @@ var Resolver4 = class {
|
|
30528
30496
|
const type = this._analyzer.type.ofExpression(this.callee);
|
30529
30497
|
if (type.kind !== "unresolved") {
|
30530
30498
|
const node = this.getNodeForDiagnostics();
|
30531
|
-
return new Meaning_unresolved3([this._analyzer.createNodeDiagnostic(
|
30499
|
+
return new Meaning_unresolved3([this._analyzer.createNodeDiagnostic(42 /* CannotInvokeExpression */, node)]);
|
30532
30500
|
}
|
30533
30501
|
return new Meaning_unresolved3([]);
|
30534
30502
|
}
|
30535
30503
|
resolveConstructorCallExpressionMeaning(type) {
|
30536
30504
|
if (type.kind === "unresolved") {
|
30537
30505
|
return new Meaning_unresolved3([
|
30538
|
-
this._analyzer.createNodeDiagnostic(
|
30506
|
+
this._analyzer.createNodeDiagnostic(40 /* CannotCreateInstanceOfUnresolvedType */, this._node)
|
30539
30507
|
]);
|
30540
30508
|
}
|
30541
30509
|
if (type.kind === "parameter") {
|
30542
30510
|
return new Meaning_unresolved3([
|
30543
|
-
this._analyzer.createNodeDiagnostic(
|
30511
|
+
this._analyzer.createNodeDiagnostic(39 /* CannotCreateInstanceOfTypeParameter */, this.callee)
|
30544
30512
|
]);
|
30545
30513
|
}
|
30546
30514
|
if (type.kind === "structured" && type.isAspect()) {
|
30547
30515
|
return new Meaning_unresolved3([
|
30548
|
-
this._analyzer.createNodeDiagnostic(
|
30516
|
+
this._analyzer.createNodeDiagnostic(38 /* CannotCreateInstanceOfAspect */, this.callee)
|
30549
30517
|
]);
|
30550
30518
|
}
|
30551
30519
|
const semanticContext = this._analyzer.semanticContext.containing(this._node);
|
@@ -30553,7 +30521,7 @@ var Resolver4 = class {
|
|
30553
30521
|
const constructors = typeMemberLookup.getConstructors(semanticContext.getHidingMatcher(), semanticContext.getScopeLookup()).toArray();
|
30554
30522
|
if (constructors.length === 0) {
|
30555
30523
|
return new Meaning_unresolved3([this._analyzer.createNodeDiagnostic(
|
30556
|
-
|
30524
|
+
41 /* TypeConstructorNotFound */,
|
30557
30525
|
this._node
|
30558
30526
|
)]);
|
30559
30527
|
}
|
@@ -30760,7 +30728,7 @@ var Resolver5 = class {
|
|
30760
30728
|
return new Meaning_resolved(operator, create(operator.value.getEntity(), accessKind));
|
30761
30729
|
}
|
30762
30730
|
return new Meaning_unresolved4(this._analyzer.createNodeDiagnostic(
|
30763
|
-
|
30731
|
+
36 /* DereferenceOperatorOfTheSpecifiedTypeNotFound */,
|
30764
30732
|
this._node.caretToken
|
30765
30733
|
));
|
30766
30734
|
}
|
@@ -30966,7 +30934,10 @@ var Resolver6 = class {
|
|
30966
30934
|
}
|
30967
30935
|
resolve() {
|
30968
30936
|
if (this._node.identifier.ifOperatorNameThenKind !== void 0) {
|
30969
|
-
|
30937
|
+
const resolved = this.tryResolveOperatorAccessMeaning(this._node.identifier.ifOperatorNameThenKind);
|
30938
|
+
if (resolved !== void 0) {
|
30939
|
+
return resolved;
|
30940
|
+
}
|
30970
30941
|
}
|
30971
30942
|
const searchName = this._analyzer.createSearchNameFromIdentifier(this._node.identifier);
|
30972
30943
|
const targetType = this._analyzer.getTargetTypeOfExpression(this._node, this._targetTypeHint);
|
@@ -30983,7 +30954,7 @@ var Resolver6 = class {
|
|
30983
30954
|
}
|
30984
30955
|
return new ResolutionResult(
|
30985
30956
|
new Meaning_unresolved5(),
|
30986
|
-
this._analyzer.createNodeDiagnostic(
|
30957
|
+
this._analyzer.createNodeDiagnostic(60 /* AmbiguousAccess */, this._node)
|
30987
30958
|
);
|
30988
30959
|
}
|
30989
30960
|
}
|
@@ -31054,7 +31025,7 @@ var Resolver6 = class {
|
|
31054
31025
|
const result = Query.from(this._analyzer.resolveTypeOverloadByArgumentCount(candidates, typeArguments.length)).map((c) => c.type.withValue(c.type.value.instantiate(this._analyzer, typeArguments))).toArray();
|
31055
31026
|
let diagnostic;
|
31056
31027
|
if (result.length !== 1) {
|
31057
|
-
diagnostic = this._analyzer.createNodeDiagnostic(
|
31028
|
+
diagnostic = this._analyzer.createNodeDiagnostic(60 /* AmbiguousAccess */, this._node);
|
31058
31029
|
}
|
31059
31030
|
return new ResolutionResult(
|
31060
31031
|
new Meaning_typeAccess(types_.map((t) => t.withValue(t.value.getEntity())), result),
|
@@ -31072,31 +31043,28 @@ var Resolver6 = class {
|
|
31072
31043
|
const result = Query.from(this.resolveMethodOverload(candidates)).map((c) => c.method).toArray();
|
31073
31044
|
let diagnostic;
|
31074
31045
|
if (result.length !== 1) {
|
31075
|
-
diagnostic = this._analyzer.createNodeDiagnostic(
|
31046
|
+
diagnostic = this._analyzer.createNodeDiagnostic(60 /* AmbiguousAccess */, this._node);
|
31076
31047
|
}
|
31077
31048
|
return new ResolutionResult(new Meaning_methodAccess(methods, result), diagnostic);
|
31078
31049
|
}
|
31079
31050
|
const packageNameSegment = namedDeclarations.find((d) => d.value.kind === "package-name-segment");
|
31080
|
-
const errorCode = packageNameSegment !== void 0 ?
|
31051
|
+
const errorCode = packageNameSegment !== void 0 ? 61 /* PackageNameConflictsWithDeclarationName */ : 60 /* AmbiguousAccess */;
|
31081
31052
|
return new ResolutionResult(
|
31082
31053
|
new Meaning_mixedAmbiguousAccess(namedDeclarations),
|
31083
31054
|
this._analyzer.createNodeDiagnostic(errorCode, this._node)
|
31084
31055
|
);
|
31085
31056
|
}
|
31086
31057
|
return new ResolutionResult(new Meaning_unresolved5(), this._analyzer.createNodeDiagnostic(
|
31087
|
-
|
31058
|
+
48 /* UnknownVariable */,
|
31088
31059
|
this._node
|
31089
31060
|
));
|
31090
31061
|
}
|
31091
|
-
|
31062
|
+
tryResolveOperatorAccessMeaning(syntacticOperatorKind) {
|
31092
31063
|
const operatorKinds2 = operatorKindsBySyntacticalOperatorKind[syntacticOperatorKind];
|
31093
31064
|
const scopeLookup = this.semanticContext.getScopeLookup();
|
31094
31065
|
const operators = operatorKinds2.map((k) => scopeLookup.getOperatorsByKind(k)).flat();
|
31095
31066
|
if (operators.length === 0) {
|
31096
|
-
return
|
31097
|
-
new Meaning_unresolved5(),
|
31098
|
-
this._analyzer.createNodeDiagnostic(40 /* OperatorNotFound */, this._node)
|
31099
|
-
);
|
31067
|
+
return void 0;
|
31100
31068
|
}
|
31101
31069
|
if (operators.length === 1) {
|
31102
31070
|
return new ResolutionResult(new Meaning_operatorAccess(operators, operators));
|
@@ -31105,7 +31073,7 @@ var Resolver6 = class {
|
|
31105
31073
|
const result = Query.from(this.resolveMethodOverload(candidates)).map((c) => c.method).toArray();
|
31106
31074
|
let diagnostic;
|
31107
31075
|
if (result.length !== 1) {
|
31108
|
-
diagnostic = this._analyzer.createNodeDiagnostic(
|
31076
|
+
diagnostic = this._analyzer.createNodeDiagnostic(60 /* AmbiguousAccess */, this._node);
|
31109
31077
|
}
|
31110
31078
|
return new ResolutionResult(new Meaning_operatorAccess(operators, result), diagnostic);
|
31111
31079
|
}
|
@@ -31473,7 +31441,7 @@ var Resolver7 = class {
|
|
31473
31441
|
return new Meaning_resolved2(indexer, create3(indexer.value.getEntity(), accessKind));
|
31474
31442
|
}
|
31475
31443
|
return new Meaning_unresolved6(this._analyzer.createSourceFileRangeDiagnostic(
|
31476
|
-
|
31444
|
+
35 /* IndexerOfTheSpecifiedTypeNotFound */,
|
31477
31445
|
this.getArgumentsRangeWithBrackets(),
|
31478
31446
|
this._node
|
31479
31447
|
));
|
@@ -31618,7 +31586,7 @@ var NamedTypeResolver = class {
|
|
31618
31586
|
);
|
31619
31587
|
}
|
31620
31588
|
if (typesOrContainersWithTypes.length === 0) {
|
31621
|
-
diagnostics.push(this._analyzer.createNodeDiagnostic(
|
31589
|
+
diagnostics.push(this._analyzer.createNodeDiagnostic(65 /* TypeOrPackageNotFound */, qualifier));
|
31622
31590
|
break;
|
31623
31591
|
}
|
31624
31592
|
if (typesOrContainersWithTypes.length === 1) {
|
@@ -31642,18 +31610,18 @@ var NamedTypeResolver = class {
|
|
31642
31610
|
resolvedQualifiers.push(resolvedQualifier);
|
31643
31611
|
} else {
|
31644
31612
|
diagnostics.push(this._analyzer.createNodeDiagnostic(
|
31645
|
-
|
31613
|
+
63 /* ExpectedPackageNameOrAliasButFoundType */,
|
31646
31614
|
qualifier
|
31647
31615
|
));
|
31648
31616
|
}
|
31649
31617
|
break;
|
31650
31618
|
}
|
31651
|
-
diagnostics.push(this._analyzer.createNodeDiagnostic(
|
31619
|
+
diagnostics.push(this._analyzer.createNodeDiagnostic(60 /* AmbiguousAccess */, qualifier));
|
31652
31620
|
break;
|
31653
31621
|
}
|
31654
31622
|
if (diagnostics.length === 0 && types.length === 0) {
|
31655
31623
|
const node = qualifiers.length > 0 ? qualifiers[qualifiers.length - 1] : this._node;
|
31656
|
-
diagnostics.push(this._analyzer.createNodeDiagnostic(
|
31624
|
+
diagnostics.push(this._analyzer.createNodeDiagnostic(64 /* TypeExpected */, node));
|
31657
31625
|
}
|
31658
31626
|
return new NamedTypeResolutionResult(types, resolvedQualifiers, diagnostics);
|
31659
31627
|
}
|
@@ -31800,7 +31768,7 @@ var NamedTypeSpecifierResolver = class {
|
|
31800
31768
|
type = typeDeclaration.withValue(instantiatedType);
|
31801
31769
|
} else {
|
31802
31770
|
const node = this._node.qualifiedName.qualifiers.last() ?? this._node;
|
31803
|
-
diagnostics.push(this._analyzer.createNodeDiagnostic(
|
31771
|
+
diagnostics.push(this._analyzer.createNodeDiagnostic(60 /* AmbiguousAccess */, node));
|
31804
31772
|
type = void 0;
|
31805
31773
|
}
|
31806
31774
|
result = new NamedTypeSpecifierResolutionResult(type, resolvedQualifiers, diagnostics);
|
@@ -31989,7 +31957,7 @@ var Resolver8 = class {
|
|
31989
31957
|
const constructors = typeMemberLookup.getConstructors(hidingMatcher).toArray();
|
31990
31958
|
if (constructors.length === 0) {
|
31991
31959
|
return new Meaning_unresolved7(this._analyzer.createNodeDiagnostic(
|
31992
|
-
|
31960
|
+
41 /* TypeConstructorNotFound */,
|
31993
31961
|
this._node
|
31994
31962
|
));
|
31995
31963
|
}
|
@@ -32015,7 +31983,7 @@ var Resolver8 = class {
|
|
32015
31983
|
}
|
32016
31984
|
invalidContextMeaning() {
|
32017
31985
|
return new Meaning_unresolved7(this._analyzer.createNodeDiagnostic(
|
32018
|
-
|
31986
|
+
76 /* ObjectCannotBeUsedInThisContext */,
|
32019
31987
|
this._node
|
32020
31988
|
));
|
32021
31989
|
}
|
@@ -32129,11 +32097,16 @@ var PrefixUnaryOperatorResolver = class {
|
|
32129
32097
|
return 2 /* Not */;
|
32130
32098
|
}
|
32131
32099
|
if (this._node.kind === 79 /* PrefixUnaryExpression */) {
|
32132
|
-
|
32133
|
-
|
32134
|
-
|
32135
|
-
|
32136
|
-
|
32100
|
+
const operator = this._node.operator;
|
32101
|
+
if (operator.kind === 0 /* Token */) {
|
32102
|
+
switch (operator.tokenKind) {
|
32103
|
+
case 46 /* Plus */:
|
32104
|
+
return 0 /* UnaryPlus */;
|
32105
|
+
case 39 /* Minus */:
|
32106
|
+
return 1 /* UnaryMinus */;
|
32107
|
+
}
|
32108
|
+
} else {
|
32109
|
+
return 2 /* Not */;
|
32137
32110
|
}
|
32138
32111
|
}
|
32139
32112
|
Debug.never(this._node);
|
@@ -32152,13 +32125,13 @@ var PrefixUnaryOperatorResolver = class {
|
|
32152
32125
|
}
|
32153
32126
|
if (operators.length > 1) {
|
32154
32127
|
return new WithDiagnostics_error([this._analyzer.createNodeDiagnostic(
|
32155
|
-
|
32128
|
+
60 /* AmbiguousAccess */,
|
32156
32129
|
this.operatorNode
|
32157
32130
|
)]);
|
32158
32131
|
}
|
32159
32132
|
const displayService = new DisplayService(this._analyzer, lctx);
|
32160
32133
|
const diagnostic = this._analyzer.createNodeDiagnostic(
|
32161
|
-
|
32134
|
+
69 /* Operator0IsNotDefinedForType1 */,
|
32162
32135
|
this.operatorNode,
|
32163
32136
|
[
|
32164
32137
|
displayService.displayOperatorKind(this.operatorKind, lctx.originalLocale),
|
@@ -32180,9 +32153,6 @@ var Resolver10 = class {
|
|
32180
32153
|
get propertySearchName() {
|
32181
32154
|
return this._analyzer.createSearchNameFromIdentifier(this._node.propertyName);
|
32182
32155
|
}
|
32183
|
-
get isOperatorName() {
|
32184
|
-
return this._node.propertyName.ifOperatorNameThenKind !== void 0;
|
32185
|
-
}
|
32186
32156
|
get semanticContext() {
|
32187
32157
|
return this._semanticContext.getOrInsertWith(() => this._analyzer.semanticContext.containing(this._node));
|
32188
32158
|
}
|
@@ -32266,7 +32236,7 @@ var Resolver10 = class {
|
|
32266
32236
|
const result = Query.from(this.resolveMethodOverload(candidates)).map((c) => c.method).toArray();
|
32267
32237
|
let diagnostic;
|
32268
32238
|
if (result.length !== 1) {
|
32269
|
-
diagnostic = this._analyzer.createNodeDiagnostic(
|
32239
|
+
diagnostic = this._analyzer.createNodeDiagnostic(60 /* AmbiguousAccess */, this._node.propertyName);
|
32270
32240
|
}
|
32271
32241
|
return new ResolutionResult2(new Meaning_packageMethodAccess(methods, result), diagnostic);
|
32272
32242
|
}
|
@@ -32282,7 +32252,7 @@ var Resolver10 = class {
|
|
32282
32252
|
const result = Query.from(this._analyzer.resolveTypeOverloadByArgumentCount(candidates, typeArguments.length)).map((c) => c.value.withValue(c.value.value.instantiate(this._analyzer, typeArguments))).toArray();
|
32283
32253
|
let diagnostic;
|
32284
32254
|
if (result.length !== 1) {
|
32285
|
-
diagnostic = this._analyzer.createNodeDiagnostic(
|
32255
|
+
diagnostic = this._analyzer.createNodeDiagnostic(60 /* AmbiguousAccess */, this._node.propertyName);
|
32286
32256
|
}
|
32287
32257
|
return new ResolutionResult2(
|
32288
32258
|
new Meaning_packageTypeAccess(types_.map((t) => t.withValue(t.value.getEntity())), result),
|
@@ -32291,15 +32261,12 @@ var Resolver10 = class {
|
|
32291
32261
|
}
|
32292
32262
|
return new ResolutionResult2(
|
32293
32263
|
new Meaning_unresolved8(),
|
32294
|
-
this._analyzer.createNodeDiagnostic(
|
32264
|
+
this._analyzer.createNodeDiagnostic(60 /* AmbiguousAccess */, this._node.propertyName)
|
32295
32265
|
);
|
32296
32266
|
}
|
32297
32267
|
return new ResolutionResult2(
|
32298
32268
|
new Meaning_unresolved8(),
|
32299
|
-
this._analyzer.createNodeDiagnostic(
|
32300
|
-
this.isOperatorName ? 40 /* OperatorNotFound */ : 40 /* OperatorNotFound */,
|
32301
|
-
this._node.propertyName
|
32302
|
-
)
|
32269
|
+
this._analyzer.createNodeDiagnostic(32 /* PackageMemberNotFound */, this._node.propertyName)
|
32303
32270
|
);
|
32304
32271
|
}
|
32305
32272
|
resolvePackageNameSegmentAccessMeaning(packageTreeNode) {
|
@@ -32312,10 +32279,7 @@ var Resolver10 = class {
|
|
32312
32279
|
}
|
32313
32280
|
return new ResolutionResult2(
|
32314
32281
|
new Meaning_unresolved8(),
|
32315
|
-
this._analyzer.createNodeDiagnostic(
|
32316
|
-
this.isOperatorName ? 40 /* OperatorNotFound */ : 105 /* PackageMemberOrPackageNotFound */,
|
32317
|
-
this._node.propertyName
|
32318
|
-
)
|
32282
|
+
this._analyzer.createNodeDiagnostic(71 /* PackageMemberOrPackageNotFound */, this._node.propertyName)
|
32319
32283
|
);
|
32320
32284
|
}
|
32321
32285
|
createAccessedMethodFromPackageMember(entity) {
|
@@ -32342,7 +32306,7 @@ var Resolver10 = class {
|
|
32342
32306
|
return new ResolutionResult2(
|
32343
32307
|
new Meaning_unresolved8(),
|
32344
32308
|
this._analyzer.createNodeDiagnostic(
|
32345
|
-
|
32309
|
+
34 /* CannotAccessStaticMembersOnTypeParameter */,
|
32346
32310
|
this._node.propertyName
|
32347
32311
|
)
|
32348
32312
|
);
|
@@ -32353,10 +32317,7 @@ var Resolver10 = class {
|
|
32353
32317
|
if (variants.length === 0) {
|
32354
32318
|
return new ResolutionResult2(
|
32355
32319
|
new Meaning_unresolved8(),
|
32356
|
-
this._analyzer.createNodeDiagnostic(
|
32357
|
-
this.isOperatorName ? 40 /* OperatorNotFound */ : 35 /* VariantNotFound */,
|
32358
|
-
this._node.propertyName
|
32359
|
-
)
|
32320
|
+
this._analyzer.createNodeDiagnostic(30 /* VariantNotFound */, this._node.propertyName)
|
32360
32321
|
);
|
32361
32322
|
}
|
32362
32323
|
if (variants.length === 1) {
|
@@ -32364,7 +32325,7 @@ var Resolver10 = class {
|
|
32364
32325
|
}
|
32365
32326
|
return new ResolutionResult2(
|
32366
32327
|
new Meaning_unresolved8(),
|
32367
|
-
this._analyzer.createNodeDiagnostic(
|
32328
|
+
this._analyzer.createNodeDiagnostic(60 /* AmbiguousAccess */, this._node.propertyName)
|
32368
32329
|
);
|
32369
32330
|
}
|
32370
32331
|
const typeMemberLookup = new TypeMemberLookup(this._analyzer, type, this.semanticContext.getLocalizationContext());
|
@@ -32372,10 +32333,7 @@ var Resolver10 = class {
|
|
32372
32333
|
if (namedMembers.length === 0) {
|
32373
32334
|
return new ResolutionResult2(
|
32374
32335
|
new Meaning_unresolved8(),
|
32375
|
-
this._analyzer.createNodeDiagnostic(
|
32376
|
-
this.isOperatorName ? 40 /* OperatorNotFound */ : 39 /* TypeMemberNotFound */,
|
32377
|
-
this._node.propertyName
|
32378
|
-
)
|
32336
|
+
this._analyzer.createNodeDiagnostic(33 /* TypeMemberNotFound */, this._node.propertyName)
|
32379
32337
|
);
|
32380
32338
|
}
|
32381
32339
|
if (namedMembers.length === 1) {
|
@@ -32407,14 +32365,14 @@ var Resolver10 = class {
|
|
32407
32365
|
const result = Query.from(this.resolveMethodOverload(candidates)).map((c) => c.method).toArray();
|
32408
32366
|
let diagnostic;
|
32409
32367
|
if (result.length !== 1) {
|
32410
|
-
diagnostic = this._analyzer.createNodeDiagnostic(
|
32368
|
+
diagnostic = this._analyzer.createNodeDiagnostic(60 /* AmbiguousAccess */, this._node.propertyName);
|
32411
32369
|
}
|
32412
32370
|
return new ResolutionResult2(new Meaning_staticMethodAccess(type, methods, result), diagnostic);
|
32413
32371
|
}
|
32414
32372
|
}
|
32415
32373
|
return new ResolutionResult2(
|
32416
32374
|
new Meaning_unresolved8(),
|
32417
|
-
this._analyzer.createNodeDiagnostic(
|
32375
|
+
this._analyzer.createNodeDiagnostic(60 /* AmbiguousAccess */, this._node.propertyName)
|
32418
32376
|
);
|
32419
32377
|
}
|
32420
32378
|
createAccessedMethodFromTypeMember(method) {
|
@@ -32438,7 +32396,10 @@ var Resolver10 = class {
|
|
32438
32396
|
return new ResolutionResult2(new Meaning_unresolved8());
|
32439
32397
|
}
|
32440
32398
|
if (this._node.propertyName.ifOperatorNameThenKind !== void 0) {
|
32441
|
-
|
32399
|
+
const resolved = this.tryResolveOperatorAccessMeaning(type, this._node.propertyName.ifOperatorNameThenKind);
|
32400
|
+
if (resolved !== void 0) {
|
32401
|
+
return resolved;
|
32402
|
+
}
|
32442
32403
|
}
|
32443
32404
|
const typeMemberLookup = new TypeMemberLookup(this._analyzer, type, this.semanticContext.getLocalizationContext());
|
32444
32405
|
const namedMembers = typeMemberLookup.getNamedMembersByName(
|
@@ -32449,10 +32410,7 @@ var Resolver10 = class {
|
|
32449
32410
|
if (namedMembers.length === 0) {
|
32450
32411
|
return new ResolutionResult2(
|
32451
32412
|
new Meaning_unresolved8(),
|
32452
|
-
this._analyzer.createNodeDiagnostic(
|
32453
|
-
this.isOperatorName ? 40 /* OperatorNotFound */ : 39 /* TypeMemberNotFound */,
|
32454
|
-
this._node.propertyName
|
32455
|
-
)
|
32413
|
+
this._analyzer.createNodeDiagnostic(33 /* TypeMemberNotFound */, this._node.propertyName)
|
32456
32414
|
);
|
32457
32415
|
}
|
32458
32416
|
if (namedMembers.length === 1) {
|
@@ -32483,17 +32441,17 @@ var Resolver10 = class {
|
|
32483
32441
|
const result = Query.from(this.resolveMethodOverload(candidates)).map((c) => c.method).toArray();
|
32484
32442
|
let diagnostic;
|
32485
32443
|
if (result.length !== 1) {
|
32486
|
-
diagnostic = this._analyzer.createNodeDiagnostic(
|
32444
|
+
diagnostic = this._analyzer.createNodeDiagnostic(60 /* AmbiguousAccess */, this._node.propertyName);
|
32487
32445
|
}
|
32488
32446
|
return new ResolutionResult2(new Meaning_instanceMethodAccess(methods, result), diagnostic);
|
32489
32447
|
}
|
32490
32448
|
}
|
32491
32449
|
return new ResolutionResult2(
|
32492
32450
|
new Meaning_unresolved8(),
|
32493
|
-
this._analyzer.createNodeDiagnostic(
|
32451
|
+
this._analyzer.createNodeDiagnostic(60 /* AmbiguousAccess */, this._node.propertyName)
|
32494
32452
|
);
|
32495
32453
|
}
|
32496
|
-
|
32454
|
+
tryResolveOperatorAccessMeaning(type, syntacticOperatorKind) {
|
32497
32455
|
const operatorKinds2 = operatorKindsBySyntacticalOperatorKind[syntacticOperatorKind];
|
32498
32456
|
const typeMemberLookup = new TypeMemberLookup(this._analyzer, type, this.semanticContext.getLocalizationContext());
|
32499
32457
|
const operators = operatorKinds2.map((k) => typeMemberLookup.getOperatorsByKind(
|
@@ -32502,13 +32460,7 @@ var Resolver10 = class {
|
|
32502
32460
|
this.semanticContext.getScopeLookup()
|
32503
32461
|
).toArray()).flat();
|
32504
32462
|
if (operators.length === 0) {
|
32505
|
-
return
|
32506
|
-
new Meaning_unresolved8(),
|
32507
|
-
this._analyzer.createNodeDiagnostic(
|
32508
|
-
this.isOperatorName ? 40 /* OperatorNotFound */ : 40 /* OperatorNotFound */,
|
32509
|
-
this._node.propertyName
|
32510
|
-
)
|
32511
|
-
);
|
32463
|
+
return void 0;
|
32512
32464
|
}
|
32513
32465
|
if (operators.length === 1) {
|
32514
32466
|
return new ResolutionResult2(new Meaning_operatorAccess2(operators, operators));
|
@@ -32517,7 +32469,7 @@ var Resolver10 = class {
|
|
32517
32469
|
const result = Query.from(this.resolveMethodOverload(candidates)).map((c) => c.method).toArray();
|
32518
32470
|
let diagnostic;
|
32519
32471
|
if (result.length !== 1) {
|
32520
|
-
diagnostic = this._analyzer.createNodeDiagnostic(
|
32472
|
+
diagnostic = this._analyzer.createNodeDiagnostic(60 /* AmbiguousAccess */, this._node.propertyName);
|
32521
32473
|
}
|
32522
32474
|
return new ResolutionResult2(new Meaning_operatorAccess2(operators, result), diagnostic);
|
32523
32475
|
}
|
@@ -35296,14 +35248,14 @@ var Resolver11 = class {
|
|
35296
35248
|
return new Meaning_unresolved9([]);
|
35297
35249
|
}
|
35298
35250
|
if (type.kind !== "structured") {
|
35299
|
-
return new Meaning_unresolved9([this._analyzer.createNodeDiagnostic(
|
35251
|
+
return new Meaning_unresolved9([this._analyzer.createNodeDiagnostic(66 /* TypeIsNotATag */, this._node)]);
|
35300
35252
|
}
|
35301
35253
|
const semanticContext = this._analyzer.semanticContext.containing(this._node);
|
35302
35254
|
const typeMemberLookup = new TypeMemberLookup(this._analyzer, type, semanticContext.getLocalizationContext());
|
35303
35255
|
const constructors = typeMemberLookup.getConstructors(semanticContext.getHidingMatcher(), semanticContext.getScopeLookup()).toArray();
|
35304
35256
|
if (constructors.length === 0) {
|
35305
35257
|
return new Meaning_unresolved9([this._analyzer.createNodeDiagnostic(
|
35306
|
-
|
35258
|
+
41 /* TypeConstructorNotFound */,
|
35307
35259
|
this._node
|
35308
35260
|
)]);
|
35309
35261
|
}
|
@@ -35386,13 +35338,13 @@ var UserDefinableBinaryOperatorResolver = class {
|
|
35386
35338
|
}
|
35387
35339
|
if (suitableOperators.length > 1) {
|
35388
35340
|
return new WithDiagnostics_error([
|
35389
|
-
this._analyzer.createNodeDiagnostic(
|
35341
|
+
this._analyzer.createNodeDiagnostic(60 /* AmbiguousAccess */, this._operatorNodeForDiagnostic)
|
35390
35342
|
]);
|
35391
35343
|
}
|
35392
35344
|
}
|
35393
35345
|
const displayService = new DisplayService(this._analyzer, lctx);
|
35394
35346
|
const diagnostic = this._analyzer.createNodeDiagnostic(
|
35395
|
-
|
35347
|
+
68 /* Operator0IsNotDefinedForTypes1And2 */,
|
35396
35348
|
this._operatorNodeForDiagnostic,
|
35397
35349
|
[
|
35398
35350
|
displayService.displayOperatorKind(this._operatorKind, lctx.originalLocale),
|
@@ -35534,7 +35486,7 @@ var Analyzer = class _Analyzer {
|
|
35534
35486
|
const systemPackage = this.getPackageEntity(systemPackageName);
|
35535
35487
|
if (systemPackage === void 0) {
|
35536
35488
|
throw new WellKnownDeclarationsLoadError(new Diagnostic(DiagnosticData.withCode(
|
35537
|
-
|
35489
|
+
113 /* StandardPackage0NotFound */,
|
35538
35490
|
[systemPackageName.toString()]
|
35539
35491
|
), void 0));
|
35540
35492
|
}
|
@@ -36205,48 +36157,48 @@ var Analyzer = class _Analyzer {
|
|
36205
36157
|
if (operator.kind === 0 /* Token */) {
|
36206
36158
|
switch (operator.tokenKind) {
|
36207
36159
|
case 13 /* Asterisk */:
|
36208
|
-
return { kind: "user-definable", operatorKind:
|
36160
|
+
return { kind: "user-definable", operatorKind: 5 /* Multiply */ };
|
36209
36161
|
case 29 /* EqualsEquals */:
|
36210
36162
|
return { kind: "equals" };
|
36211
36163
|
case 32 /* ExclamationEquals */:
|
36212
36164
|
return { kind: "not-equals" };
|
36213
36165
|
case 33 /* GreaterThan */:
|
36214
|
-
return { kind: "user-definable", operatorKind:
|
36166
|
+
return { kind: "user-definable", operatorKind: 10 /* GreaterThan */ };
|
36215
36167
|
case 34 /* GreaterThanEquals */:
|
36216
|
-
return { kind: "user-definable", operatorKind:
|
36168
|
+
return { kind: "user-definable", operatorKind: 12 /* GreaterThanOrEqual */ };
|
36217
36169
|
case 36 /* LessThan */:
|
36218
|
-
return { kind: "user-definable", operatorKind:
|
36170
|
+
return { kind: "user-definable", operatorKind: 9 /* LessThan */ };
|
36219
36171
|
case 37 /* LessThanEquals */:
|
36220
|
-
return { kind: "user-definable", operatorKind:
|
36172
|
+
return { kind: "user-definable", operatorKind: 11 /* LessThanOrEqual */ };
|
36221
36173
|
case 39 /* Minus */:
|
36222
|
-
return { kind: "user-definable", operatorKind:
|
36174
|
+
return { kind: "user-definable", operatorKind: 4 /* Subtract */ };
|
36223
36175
|
case 46 /* Plus */:
|
36224
|
-
return { kind: "user-definable", operatorKind:
|
36176
|
+
return { kind: "user-definable", operatorKind: 3 /* Add */ };
|
36225
36177
|
case 50 /* QuestionQuestion */:
|
36226
36178
|
return { kind: "question-question" };
|
36227
36179
|
case 52 /* Slash */:
|
36228
|
-
return { kind: "user-definable", operatorKind:
|
36180
|
+
return { kind: "user-definable", operatorKind: 6 /* Divide */ };
|
36229
36181
|
case 60 /* Backslash */:
|
36230
|
-
return { kind: "user-definable", operatorKind:
|
36182
|
+
return { kind: "user-definable", operatorKind: 7 /* IntegerDivide */ };
|
36231
36183
|
case 62 /* BackslashBackslash */:
|
36232
|
-
return { kind: "user-definable", operatorKind:
|
36184
|
+
return { kind: "user-definable", operatorKind: 8 /* Modulo */ };
|
36233
36185
|
case 10 /* Ampersand */:
|
36234
|
-
return { kind: "user-definable", operatorKind:
|
36186
|
+
return { kind: "user-definable", operatorKind: 16 /* BitwiseAnd */ };
|
36235
36187
|
case 17 /* Bar */:
|
36236
|
-
return { kind: "user-definable", operatorKind:
|
36188
|
+
return { kind: "user-definable", operatorKind: 17 /* BitwiseOr */ };
|
36237
36189
|
case 18 /* BarBar */:
|
36238
|
-
return { kind: "user-definable", operatorKind:
|
36190
|
+
return { kind: "user-definable", operatorKind: 18 /* BitwiseXor */ };
|
36239
36191
|
default:
|
36240
36192
|
Debug.never(operator);
|
36241
36193
|
}
|
36242
36194
|
} else {
|
36243
36195
|
switch (operator.keywordKind) {
|
36244
36196
|
case 20 /* And */:
|
36245
|
-
return { kind: "user-definable", operatorKind:
|
36197
|
+
return { kind: "user-definable", operatorKind: 14 /* And */ };
|
36246
36198
|
case 21 /* Or */:
|
36247
|
-
return { kind: "user-definable", operatorKind:
|
36199
|
+
return { kind: "user-definable", operatorKind: 13 /* Or */ };
|
36248
36200
|
case 22 /* Xor */:
|
36249
|
-
return { kind: "user-definable", operatorKind:
|
36201
|
+
return { kind: "user-definable", operatorKind: 15 /* Xor */ };
|
36250
36202
|
default:
|
36251
36203
|
Debug.never(operator);
|
36252
36204
|
}
|
@@ -36257,15 +36209,15 @@ var Analyzer = class _Analyzer {
|
|
36257
36209
|
case 57 /* Equals */:
|
36258
36210
|
return void 0;
|
36259
36211
|
case 48 /* PlusEquals */:
|
36260
|
-
return
|
36212
|
+
return 3 /* Add */;
|
36261
36213
|
case 41 /* MinusEquals */:
|
36262
|
-
return
|
36214
|
+
return 4 /* Subtract */;
|
36263
36215
|
case 15 /* AsteriskEquals */:
|
36264
|
-
return
|
36216
|
+
return 5 /* Multiply */;
|
36265
36217
|
case 53 /* SlashEquals */:
|
36266
|
-
return
|
36218
|
+
return 6 /* Divide */;
|
36267
36219
|
case 61 /* BackslashEquals */:
|
36268
|
-
return
|
36220
|
+
return 7 /* IntegerDivide */;
|
36269
36221
|
default:
|
36270
36222
|
Debug.never(operator);
|
36271
36223
|
}
|
@@ -36304,7 +36256,8 @@ var Analyzer = class _Analyzer {
|
|
36304
36256
|
false,
|
36305
36257
|
false,
|
36306
36258
|
false,
|
36307
|
-
false
|
36259
|
+
false,
|
36260
|
+
void 0
|
36308
36261
|
);
|
36309
36262
|
return method;
|
36310
36263
|
}
|
@@ -36475,7 +36428,7 @@ var Analyzer = class _Analyzer {
|
|
36475
36428
|
const type = resolutionResult.types.find((t) => t.value.getArity() === arity);
|
36476
36429
|
if (type === void 0) {
|
36477
36430
|
result = new WithDiagnostics_error([this.createNodeDiagnostic(
|
36478
|
-
|
36431
|
+
50 /* TypeWithArity0NotFound */,
|
36479
36432
|
node.extendedTypeClause,
|
36480
36433
|
[arity.toString()]
|
36481
36434
|
)]);
|
@@ -36760,6 +36713,7 @@ var Analyzer = class _Analyzer {
|
|
36760
36713
|
new BackingSpecialVariableEntityInfo(declaredVariable),
|
36761
36714
|
new EntityHidingLevel_type(type),
|
36762
36715
|
void 0,
|
36716
|
+
void 0,
|
36763
36717
|
void 0
|
36764
36718
|
);
|
36765
36719
|
result.push(backingVariable);
|
@@ -36882,7 +36836,7 @@ var Analyzer = class _Analyzer {
|
|
36882
36836
|
const firstStatement = node.body.statementList.statements.first();
|
36883
36837
|
if (node.body.statementList.statements.count() !== 1 || firstStatement?.kind !== 106 /* ExpressionStatement */ || firstStatement.expression.kind !== 69 /* CallExpression */) {
|
36884
36838
|
diagnostics?.addDiagnostic(this.createNodeDiagnostic(
|
36885
|
-
|
36839
|
+
102 /* IncorrectBodyOfRedefinableAliasTypeMethod */,
|
36886
36840
|
node.body.openBraceToken
|
36887
36841
|
));
|
36888
36842
|
return void 0;
|
@@ -36897,7 +36851,7 @@ var Analyzer = class _Analyzer {
|
|
36897
36851
|
case "constructor-call":
|
36898
36852
|
case "operator-call":
|
36899
36853
|
diagnostics?.addDiagnostic(this.createNodeDiagnostic(
|
36900
|
-
|
36854
|
+
102 /* IncorrectBodyOfRedefinableAliasTypeMethod */,
|
36901
36855
|
firstStatement
|
36902
36856
|
));
|
36903
36857
|
return void 0;
|
@@ -36909,7 +36863,7 @@ var Analyzer = class _Analyzer {
|
|
36909
36863
|
const calledMethodEntity = calledMethod.getEntity();
|
36910
36864
|
if (calledMethodEntity.subkind !== "type" || !calledMethodEntity.isRedefinable()) {
|
36911
36865
|
diagnostics?.addDiagnostic(this.createNodeDiagnostic(
|
36912
|
-
|
36866
|
+
102 /* IncorrectBodyOfRedefinableAliasTypeMethod */,
|
36913
36867
|
firstStatement
|
36914
36868
|
));
|
36915
36869
|
return void 0;
|
@@ -37033,7 +36987,7 @@ var WellKnownDeclarationsLoader = class {
|
|
37033
36987
|
const interopPackage = this._analyzer.getPackageEntity(interopPackageName);
|
37034
36988
|
if (interopPackage === void 0) {
|
37035
36989
|
throw new WellKnownDeclarationsLoadError(new Diagnostic(DiagnosticData.withCode(
|
37036
|
-
|
36990
|
+
113 /* StandardPackage0NotFound */,
|
37037
36991
|
[interopPackageName.toString()]
|
37038
36992
|
), void 0));
|
37039
36993
|
}
|
@@ -37045,10 +36999,11 @@ var WellKnownDeclarationsLoader = class {
|
|
37045
36999
|
declarations.text = this.findPackageStructuredType(systemPackage, new Name("\u0422\u0435\u043A\u0441\u0442"), 0);
|
37046
37000
|
declarations.textTemplate = this.findPackageStructuredType(systemPackage, new Name("\u0428\u0430\u0431\u043B\u043E\u043D\u0422\u0435\u043A\u0441\u0442\u0430"), 0);
|
37047
37001
|
declarations.char = this.findPackageStructuredType(systemPackage, new Name("\u0421\u0438\u043C\u0432\u043E\u043B"), 0);
|
37048
|
-
declarations.yesNo = this.
|
37002
|
+
declarations.yesNo = this.findPackageStructuredType(systemPackage, new Name("\u0414\u0430\u041D\u0435\u0442"), 0);
|
37049
37003
|
declarations.none = this.findPackageStructuredType(systemPackage, new Name("\u041F\u0443\u0441\u0442\u043E"), 0);
|
37050
37004
|
declarations.enumerable = this.findPackageStructuredType(systemPackage, new Name("\u041F\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0435\u043C\u044B\u0439"), 1);
|
37051
37005
|
declarations.enumerator = this.findPackageStructuredType(systemPackage, new Name("\u041F\u0435\u0440\u0435\u0431\u043E\u0440"), 1);
|
37006
|
+
declarations.enumeratorMethod = this.findTypeMethodDeclaration(declarations.enumerable, new Name("\u043F\u0435\u0440\u0435\u0431\u043E\u0440"));
|
37052
37007
|
declarations.array = this.findPackageStructuredType(systemPackage, new Name("\u041C\u0430\u0441\u0441\u0438\u0432"), 1);
|
37053
37008
|
declarations.readonlyArray = this.findPackageStructuredType(systemPackage, new Name("\u041C\u0430\u0441\u0441\u0438\u0432\u0427\u0438\u0442\u0430\u0435\u043C\u044B\u0439"), 1);
|
37054
37009
|
declarations.map = this.findPackageStructuredType(systemPackage, new Name("\u0421\u043B\u043E\u0432\u0430\u0440\u044C"), 2);
|
@@ -37076,7 +37031,7 @@ var WellKnownDeclarationsLoader = class {
|
|
37076
37031
|
if (type?.kind !== "structured") {
|
37077
37032
|
throw new WellKnownDeclarationsLoadError(new Diagnostic(
|
37078
37033
|
DiagnosticData.withCode(
|
37079
|
-
|
37034
|
+
114 /* Declaration0NotFoundInStandardPackage1 */,
|
37080
37035
|
[name.unescapedOriginal, packageEntity.getName().toString()]
|
37081
37036
|
),
|
37082
37037
|
void 0
|
@@ -37089,7 +37044,7 @@ var WellKnownDeclarationsLoader = class {
|
|
37089
37044
|
if (type?.kind !== "alias") {
|
37090
37045
|
throw new WellKnownDeclarationsLoadError(new Diagnostic(
|
37091
37046
|
DiagnosticData.withCode(
|
37092
|
-
|
37047
|
+
114 /* Declaration0NotFoundInStandardPackage1 */,
|
37093
37048
|
[name.unescapedOriginal, packageEntity.getName().toString()]
|
37094
37049
|
),
|
37095
37050
|
void 0
|
@@ -37102,7 +37057,7 @@ var WellKnownDeclarationsLoader = class {
|
|
37102
37057
|
if (type?.kind !== "variant") {
|
37103
37058
|
throw new WellKnownDeclarationsLoadError(new Diagnostic(
|
37104
37059
|
DiagnosticData.withCode(
|
37105
|
-
|
37060
|
+
114 /* Declaration0NotFoundInStandardPackage1 */,
|
37106
37061
|
[name.unescapedOriginal, packageEntity.getName().toString()]
|
37107
37062
|
),
|
37108
37063
|
void 0
|
@@ -37110,6 +37065,22 @@ var WellKnownDeclarationsLoader = class {
|
|
37110
37065
|
}
|
37111
37066
|
return type.value;
|
37112
37067
|
}
|
37068
|
+
findTypeMethodDeclaration(typeEntity, name) {
|
37069
|
+
const method = typeEntity.getMembers().getNamedMembersByName(name).find((m) => m.kind === 5 /* Method */);
|
37070
|
+
if (method === void 0) {
|
37071
|
+
throw new WellKnownDeclarationsLoadError(new Diagnostic(
|
37072
|
+
DiagnosticData.withCode(
|
37073
|
+
114 /* Declaration0NotFoundInStandardPackage1 */,
|
37074
|
+
[
|
37075
|
+
`${typeEntity.getNaming().toString()}.${name.unescapedOriginal}`,
|
37076
|
+
getPackageContainingEntity(typeEntity).getName().toString()
|
37077
|
+
]
|
37078
|
+
),
|
37079
|
+
void 0
|
37080
|
+
));
|
37081
|
+
}
|
37082
|
+
return method;
|
37083
|
+
}
|
37113
37084
|
};
|
37114
37085
|
var Type4 = class {
|
37115
37086
|
constructor(_analyzer) {
|
@@ -38977,6 +38948,7 @@ var ParamLocalVariableEntity = class {
|
|
38977
38948
|
new ParamObjectMemberSpecialVariableEntityInfo(p),
|
38978
38949
|
void 0,
|
38979
38950
|
void 0,
|
38951
|
+
void 0,
|
38980
38952
|
void 0
|
38981
38953
|
);
|
38982
38954
|
return entity;
|
@@ -39019,6 +38991,7 @@ var ParamLocalVariableEntity = class {
|
|
39019
38991
|
new ParamObjectMemberSpecialVariableEntityInfo(p),
|
39020
38992
|
void 0,
|
39021
38993
|
void 0,
|
38994
|
+
void 0,
|
39022
38995
|
void 0
|
39023
38996
|
);
|
39024
38997
|
return entity;
|
@@ -39778,131 +39751,178 @@ var OverriddenMember = class {
|
|
39778
39751
|
constructor(_analyzer) {
|
39779
39752
|
this._analyzer = _analyzer;
|
39780
39753
|
}
|
39781
|
-
|
39782
|
-
const
|
39783
|
-
|
39784
|
-
|
39785
|
-
|
39786
|
-
|
39787
|
-
|
39788
|
-
|
39789
|
-
|
39790
|
-
|
39754
|
+
getOverriddenVariable(node) {
|
39755
|
+
const entity = node.kind === 54 /* TypeVariableDeclaration */ ? this._analyzer.entity.ofTypeVariableDeclaration(node) : this._analyzer.entity.ofComputedTypeVariableDeclaration(node);
|
39756
|
+
const container = entity.getContainer();
|
39757
|
+
let result = void 0;
|
39758
|
+
if (!entity.isStatic() && container.kind === "type" && container.typeEntity.kind === 12 /* StructuredType */) {
|
39759
|
+
const semanticContext = this._analyzer.semanticContext.containing(node);
|
39760
|
+
const localizationContext = semanticContext.getLocalizationContext();
|
39761
|
+
const hidingMatcher = semanticContext.getHidingMatcher();
|
39762
|
+
const typeExtensionLookup = semanticContext.getScopeLookup();
|
39763
|
+
const baseType = container.typeEntity.getBaseObjectType().cycleFree;
|
39764
|
+
if (baseType !== void 0) {
|
39765
|
+
const typeMemberLookup = new BoundTypeMemberLookup(
|
39766
|
+
this._analyzer,
|
39767
|
+
baseType,
|
39768
|
+
localizationContext,
|
39769
|
+
hidingMatcher,
|
39770
|
+
typeExtensionLookup
|
39771
|
+
);
|
39772
|
+
result = this.findOverriddenVariableInType(entity, typeMemberLookup);
|
39791
39773
|
}
|
39792
39774
|
if (result === void 0) {
|
39793
39775
|
const aspects = container.typeEntity.getBaseAspectTypes().cycleFree;
|
39794
39776
|
for (const aspect of aspects) {
|
39795
|
-
|
39777
|
+
const typeMemberLookup = new BoundTypeMemberLookup(
|
39778
|
+
this._analyzer,
|
39779
|
+
aspect,
|
39780
|
+
localizationContext,
|
39781
|
+
hidingMatcher,
|
39782
|
+
typeExtensionLookup
|
39783
|
+
);
|
39784
|
+
result = this.findOverriddenVariableInType(entity, typeMemberLookup);
|
39796
39785
|
if (result !== void 0) {
|
39797
39786
|
break;
|
39798
39787
|
}
|
39799
39788
|
}
|
39800
39789
|
}
|
39801
|
-
return result;
|
39802
39790
|
}
|
39803
|
-
return
|
39791
|
+
return result;
|
39804
39792
|
}
|
39805
|
-
|
39806
|
-
let result =
|
39793
|
+
getTheMostBaseOverriddenVariable(variable) {
|
39794
|
+
let result = variable.getOverriddenMember();
|
39807
39795
|
if (result !== void 0) {
|
39808
|
-
let
|
39809
|
-
while (
|
39810
|
-
result =
|
39811
|
-
|
39796
|
+
let nextOverriddenVariable = result.getEntity().getOverriddenMember();
|
39797
|
+
while (nextOverriddenVariable !== void 0) {
|
39798
|
+
result = nextOverriddenVariable;
|
39799
|
+
nextOverriddenVariable = result.getEntity().getOverriddenMember();
|
39812
39800
|
}
|
39813
39801
|
}
|
39814
39802
|
return result;
|
39815
39803
|
}
|
39816
|
-
|
39817
|
-
const
|
39818
|
-
|
39819
|
-
|
39820
|
-
|
39821
|
-
|
39822
|
-
|
39823
|
-
|
39824
|
-
|
39825
|
-
|
39804
|
+
getOverriddenMethod(node) {
|
39805
|
+
const entity = this._analyzer.entity.ofTypeMethodDeclaration(node);
|
39806
|
+
const container = entity.getContainer();
|
39807
|
+
let result = void 0;
|
39808
|
+
if (!entity.isStatic() && container.kind === "type" && container.typeEntity.kind === 12 /* StructuredType */) {
|
39809
|
+
const semanticContext = this._analyzer.semanticContext.containing(node);
|
39810
|
+
const localizationContext = semanticContext.getLocalizationContext();
|
39811
|
+
const hidingMatcher = semanticContext.getHidingMatcher();
|
39812
|
+
const typeExtensionLookup = semanticContext.getScopeLookup();
|
39813
|
+
const baseType = container.typeEntity.getBaseObjectType().cycleFree;
|
39814
|
+
if (baseType !== void 0) {
|
39815
|
+
const typeMemberLookup = new BoundTypeMemberLookup(
|
39816
|
+
this._analyzer,
|
39817
|
+
baseType,
|
39818
|
+
localizationContext,
|
39819
|
+
hidingMatcher,
|
39820
|
+
typeExtensionLookup
|
39821
|
+
);
|
39822
|
+
result = this.findOverriddenMethodInType(entity, typeMemberLookup);
|
39826
39823
|
}
|
39827
39824
|
if (result === void 0) {
|
39828
39825
|
const aspects = container.typeEntity.getBaseAspectTypes().cycleFree;
|
39829
39826
|
for (const aspect of aspects) {
|
39830
|
-
|
39827
|
+
const typeMemberLookup = new BoundTypeMemberLookup(
|
39828
|
+
this._analyzer,
|
39829
|
+
aspect,
|
39830
|
+
localizationContext,
|
39831
|
+
hidingMatcher,
|
39832
|
+
typeExtensionLookup
|
39833
|
+
);
|
39834
|
+
result = this.findOverriddenMethodInType(entity, typeMemberLookup);
|
39831
39835
|
if (result !== void 0) {
|
39832
39836
|
break;
|
39833
39837
|
}
|
39834
39838
|
}
|
39835
39839
|
}
|
39836
|
-
return result;
|
39837
39840
|
}
|
39838
|
-
return
|
39841
|
+
return result;
|
39839
39842
|
}
|
39840
|
-
|
39841
|
-
|
39842
|
-
if (
|
39843
|
-
let
|
39844
|
-
|
39845
|
-
|
39846
|
-
|
39847
|
-
|
39848
|
-
|
39849
|
-
|
39843
|
+
getTheMostBaseOverriddenMethod(method) {
|
39844
|
+
let result = method.getOverriddenMember();
|
39845
|
+
if (result !== void 0) {
|
39846
|
+
let nextOverriddenMethod = result.getEntity().getOverriddenMember();
|
39847
|
+
while (nextOverriddenMethod !== void 0) {
|
39848
|
+
result = nextOverriddenMethod;
|
39849
|
+
nextOverriddenMethod = result.getEntity().getOverriddenMember();
|
39850
|
+
}
|
39851
|
+
}
|
39852
|
+
return result;
|
39853
|
+
}
|
39854
|
+
getOverriddenOperator(node) {
|
39855
|
+
const entity = this._analyzer.entity.ofOperatorDeclaration(node);
|
39856
|
+
const container = entity.getContainer();
|
39857
|
+
let result = void 0;
|
39858
|
+
if (!entity.isStatic() && container.kind === "type" && container.typeEntity.kind === 12 /* StructuredType */) {
|
39859
|
+
const semanticContext = this._analyzer.semanticContext.containing(node);
|
39860
|
+
const localizationContext = semanticContext.getLocalizationContext();
|
39861
|
+
const hidingMatcher = semanticContext.getHidingMatcher();
|
39862
|
+
const typeExtensionLookup = semanticContext.getScopeLookup();
|
39863
|
+
const baseType = container.typeEntity.getBaseObjectType().cycleFree;
|
39864
|
+
if (baseType !== void 0) {
|
39865
|
+
const typeMemberLookup = new BoundTypeMemberLookup(
|
39866
|
+
this._analyzer,
|
39867
|
+
baseType,
|
39868
|
+
localizationContext,
|
39869
|
+
hidingMatcher,
|
39870
|
+
typeExtensionLookup
|
39871
|
+
);
|
39872
|
+
result = this.findOverriddenOperatorInType(entity, typeMemberLookup);
|
39850
39873
|
}
|
39851
39874
|
if (result === void 0) {
|
39852
39875
|
const aspects = container.typeEntity.getBaseAspectTypes().cycleFree;
|
39853
39876
|
for (const aspect of aspects) {
|
39854
|
-
|
39877
|
+
const typeMemberLookup = new BoundTypeMemberLookup(
|
39878
|
+
this._analyzer,
|
39879
|
+
aspect,
|
39880
|
+
localizationContext,
|
39881
|
+
hidingMatcher,
|
39882
|
+
typeExtensionLookup
|
39883
|
+
);
|
39884
|
+
result = this.findOverriddenOperatorInType(entity, typeMemberLookup);
|
39855
39885
|
if (result !== void 0) {
|
39856
39886
|
break;
|
39857
39887
|
}
|
39858
39888
|
}
|
39859
39889
|
}
|
39860
|
-
return result;
|
39861
|
-
}
|
39862
|
-
return void 0;
|
39863
|
-
}
|
39864
|
-
getTheMostBaseOverriddenVariable(variable) {
|
39865
|
-
let result = this.getOverriddenVariable(variable);
|
39866
|
-
if (result !== void 0) {
|
39867
|
-
let nextOverriddenVariable = this.getOverriddenVariable(result.getEntity());
|
39868
|
-
while (nextOverriddenVariable !== void 0) {
|
39869
|
-
result = nextOverriddenVariable;
|
39870
|
-
nextOverriddenVariable = this.getOverriddenVariable(result.getEntity());
|
39871
|
-
}
|
39872
39890
|
}
|
39873
39891
|
return result;
|
39874
39892
|
}
|
39875
|
-
|
39876
|
-
|
39877
|
-
|
39878
|
-
|
39879
|
-
|
39880
|
-
|
39881
|
-
|
39882
|
-
|
39883
|
-
|
39884
|
-
|
39885
|
-
|
39886
|
-
} else {
|
39887
|
-
return false;
|
39888
|
-
}
|
39893
|
+
findOverriddenVariableInType(variable, typeMemberLookup) {
|
39894
|
+
return typeMemberLookup.getNamedMembersByName(new SearchName(
|
39895
|
+
variable.getName(),
|
39896
|
+
(variable.getName().flags & 2 /* OriginalName */) !== 0
|
39897
|
+
)).first((m) => m.value.kind === "variable" && this.checkVariableOverridesVariable(variable, m.value))?.value;
|
39898
|
+
}
|
39899
|
+
findOverriddenMethodInType(method, typeMemberLookup) {
|
39900
|
+
return typeMemberLookup.getNamedMembersByName(new SearchName(method.getName(), (method.getName().flags & 2 /* OriginalName */) !== 0)).first((m) => m.value.kind === "method" && this.checkMethodOverridesMethod(method, m.value))?.value;
|
39901
|
+
}
|
39902
|
+
findOverriddenOperatorInType(operator, typeMemberLookup) {
|
39903
|
+
return typeMemberLookup.getOperatorsByKind(operator.getOperatorKind()).first((o) => this.checkOperatorOverridesOperator(operator, o.value))?.value;
|
39889
39904
|
}
|
39890
39905
|
checkVariableOverridesVariable(variableInDerivedType, variableInBaseType) {
|
39891
|
-
if (!variableInDerivedType.getName().considerEqual(variableInBaseType.getName())) {
|
39892
|
-
return false;
|
39893
|
-
}
|
39894
39906
|
const entityOfVariableInBaseType = variableInBaseType.getEntity();
|
39895
39907
|
const baseVariableContainer = entityOfVariableInBaseType.getContainer();
|
39896
|
-
if (variableInDerivedType.isRedefined()
|
39908
|
+
if (variableInDerivedType.isRedefined() && entityOfVariableInBaseType.isRedefinable() || baseVariableContainer.kind === "type" && baseVariableContainer.typeEntity.kind === 12 /* StructuredType */ && baseVariableContainer.typeEntity.isAspect()) {
|
39897
39909
|
return variableInDerivedType.getType().equals(variableInBaseType.getType());
|
39898
39910
|
} else {
|
39899
39911
|
return false;
|
39900
39912
|
}
|
39901
39913
|
}
|
39902
|
-
|
39903
|
-
|
39914
|
+
checkMethodOverridesMethod(methodInDerivedType, methodInBaseType) {
|
39915
|
+
const entityOfMethodInBaseType = methodInBaseType.getEntity();
|
39916
|
+
const baseMethodContainer = entityOfMethodInBaseType.getContainer();
|
39917
|
+
if (methodInDerivedType.isRedefined() && entityOfMethodInBaseType.isRedefinable() || baseMethodContainer.kind === "type" && baseMethodContainer.typeEntity.kind === 12 /* StructuredType */ && baseMethodContainer.typeEntity.isAspect()) {
|
39918
|
+
const derivedMethodParameters = methodInDerivedType.getValueParameters();
|
39919
|
+
const baseMethodParameters = methodInBaseType.getValueParameters();
|
39920
|
+
return derivedMethodParameters.length === baseMethodParameters.length && Query.from(derivedMethodParameters).zip(baseMethodParameters, (p1, p2) => p1.getType().equals(p2.getType())).all((v) => v);
|
39921
|
+
} else {
|
39904
39922
|
return false;
|
39905
39923
|
}
|
39924
|
+
}
|
39925
|
+
checkOperatorOverridesOperator(operatorInDerivedType, operatorInBaseType) {
|
39906
39926
|
const entityOfOperatorInBaseType = operatorInBaseType.getEntity();
|
39907
39927
|
const baseOperatorContainer = entityOfOperatorInBaseType.getContainer();
|
39908
39928
|
if (operatorInDerivedType.isRedefined() && entityOfOperatorInBaseType.isRedefinable() || baseOperatorContainer.kind === "type" && baseOperatorContainer.typeEntity.kind === 12 /* StructuredType */ && baseOperatorContainer.typeEntity.isAspect()) {
|
@@ -39913,56 +39933,6 @@ var OverriddenMember = class {
|
|
39913
39933
|
return false;
|
39914
39934
|
}
|
39915
39935
|
}
|
39916
|
-
findOverriddenVariableInType(variable, type) {
|
39917
|
-
const lookup = new TypeMemberLookup(this._analyzer, type, void 0);
|
39918
|
-
const members = lookup.getNamedMembersByName(new SearchName(variable.getName(), false)).map((m) => m.value);
|
39919
|
-
let result;
|
39920
|
-
for (const member of members) {
|
39921
|
-
if (member.kind === "variable" && this.checkVariableOverridesVariable(variable, member)) {
|
39922
|
-
result = member;
|
39923
|
-
break;
|
39924
|
-
}
|
39925
|
-
}
|
39926
|
-
return result;
|
39927
|
-
}
|
39928
|
-
findOverriddenMethodInType(method, type) {
|
39929
|
-
const lookup = new TypeMemberLookup(this._analyzer, type, void 0);
|
39930
|
-
const members = lookup.getNamedMembersByName(new SearchName(method.getName(), false)).map((m) => m.value);
|
39931
|
-
let result;
|
39932
|
-
for (const member of members) {
|
39933
|
-
if (member.kind === "method" && this.checkMethodOverridesMethod(method, member)) {
|
39934
|
-
result = member;
|
39935
|
-
break;
|
39936
|
-
}
|
39937
|
-
}
|
39938
|
-
return result;
|
39939
|
-
}
|
39940
|
-
methodSignatureTypesAreEqual(type1, type2) {
|
39941
|
-
const method1Parameters = type1.getValueParameters();
|
39942
|
-
const method2Parameters = type2.getValueParameters();
|
39943
|
-
if (method1Parameters.length !== method2Parameters.length) {
|
39944
|
-
return false;
|
39945
|
-
}
|
39946
|
-
for (let i = 0; i < method1Parameters.length; i++) {
|
39947
|
-
const method1Parameter = method1Parameters[i];
|
39948
|
-
const method2Parameter = method2Parameters[i];
|
39949
|
-
if (!method1Parameter.getType().equals(method2Parameter.getType())) {
|
39950
|
-
return false;
|
39951
|
-
}
|
39952
|
-
if (method1Parameter.isOptional() !== method2Parameter.isOptional()) {
|
39953
|
-
return false;
|
39954
|
-
}
|
39955
|
-
}
|
39956
|
-
if (!type1.getReturnType().equals(type2.getReturnType())) {
|
39957
|
-
return false;
|
39958
|
-
}
|
39959
|
-
return true;
|
39960
|
-
}
|
39961
|
-
findOverriddenOperatorInType(operator, type) {
|
39962
|
-
const lookup = new TypeMemberLookup(this._analyzer, type, void 0);
|
39963
|
-
const result = lookup.getOperatorsByKind(operator.getOperatorKind()).first((o) => this.checkOperatorOverridesOperator(operator, o.value))?.value;
|
39964
|
-
return result;
|
39965
|
-
}
|
39966
39936
|
};
|
39967
39937
|
var Tags = class {
|
39968
39938
|
constructor(_analyzer) {
|
@@ -40733,20 +40703,20 @@ var PackageImports = class {
|
|
40733
40703
|
} else {
|
40734
40704
|
if (previouslyImportedPackage.getTranslationPackage() !== importedPackage.getTranslationPackage()) {
|
40735
40705
|
diagnostics.push(this._analyzer.createNodeDiagnostic(
|
40736
|
-
|
40706
|
+
83 /* PackageIsAlreadyImportedInAnotherLanguage */,
|
40737
40707
|
packageImport.packagePath
|
40738
40708
|
));
|
40739
40709
|
}
|
40740
40710
|
}
|
40741
40711
|
} else if (suitablePackages.length === 0) {
|
40742
40712
|
diagnostics.push(this._analyzer.createNodeDiagnostic(
|
40743
|
-
|
40713
|
+
55 /* UnknownPackage */,
|
40744
40714
|
packageImport.packagePath
|
40745
40715
|
));
|
40746
40716
|
importInfo = new AnalyzedPackageImport(void 0, void 0, isAliasedImport);
|
40747
40717
|
} else {
|
40748
40718
|
diagnostics.push(this._analyzer.createNodeDiagnostic(
|
40749
|
-
|
40719
|
+
60 /* AmbiguousAccess */,
|
40750
40720
|
packageImport.packagePath
|
40751
40721
|
));
|
40752
40722
|
importInfo = new AnalyzedPackageImport(void 0, void 0, isAliasedImport);
|
@@ -41016,7 +40986,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
41016
40986
|
break;
|
41017
40987
|
case "constructor-call": {
|
41018
40988
|
if (meaning.suitableConstructors.length !== 1) {
|
41019
|
-
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
40989
|
+
this.addDiagnostic(this._analyzer.createNodeDiagnostic(60 /* AmbiguousAccess */, node));
|
41020
40990
|
} else if (meaning.suitableConstructors.length === 1 && meaning.suitableConstructors[0].value.getEntity().isDefault()?.hasParametersForFieldInitialization === true) {
|
41021
40991
|
this.checkAllDefaultConstructorArgumentsAreNamed(node);
|
41022
40992
|
}
|
@@ -41162,7 +41132,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
41162
41132
|
const entity = this._analyzer.entity.ofPackageStructuredTypeDeclaration(node);
|
41163
41133
|
if (entity.getBaseObjectType().causesCycle || entity.getBaseAspectTypes().causesCycle) {
|
41164
41134
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
41165
|
-
|
41135
|
+
95 /* BaseTypeCausesInheritanceCycle */,
|
41166
41136
|
node.name
|
41167
41137
|
));
|
41168
41138
|
}
|
@@ -41175,7 +41145,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
41175
41145
|
if (this.isInterfacePackageFile) {
|
41176
41146
|
if (node.initializer !== void 0) {
|
41177
41147
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
41178
|
-
|
41148
|
+
79 /* InterfacePackageVariablesMustNotHaveInitializers */,
|
41179
41149
|
node.name
|
41180
41150
|
));
|
41181
41151
|
}
|
@@ -41197,7 +41167,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
41197
41167
|
case 25 /* PackageConstructorDeclaration */: {
|
41198
41168
|
if (this.isInterfacePackageFile) {
|
41199
41169
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
41200
|
-
|
41170
|
+
78 /* InterfacePackageMustNotContainImplementation */,
|
41201
41171
|
node
|
41202
41172
|
));
|
41203
41173
|
}
|
@@ -41206,7 +41176,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
41206
41176
|
case 26 /* PackageEntryPointDeclaration */: {
|
41207
41177
|
if (this.isInterfacePackageFile) {
|
41208
41178
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
41209
|
-
|
41179
|
+
78 /* InterfacePackageMustNotContainImplementation */,
|
41210
41180
|
node.runKeyword
|
41211
41181
|
));
|
41212
41182
|
}
|
@@ -41216,7 +41186,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
41216
41186
|
if (this.isInterfacePackageFile) {
|
41217
41187
|
if (node.body !== void 0) {
|
41218
41188
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
41219
|
-
|
41189
|
+
78 /* InterfacePackageMustNotContainImplementation */,
|
41220
41190
|
node.creationKeyword
|
41221
41191
|
));
|
41222
41192
|
}
|
@@ -41229,7 +41199,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
41229
41199
|
if (this.isInterfacePackageFile) {
|
41230
41200
|
if (node.body !== void 0) {
|
41231
41201
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
41232
|
-
|
41202
|
+
78 /* InterfacePackageMustNotContainImplementation */,
|
41233
41203
|
node.destructionKeyword
|
41234
41204
|
));
|
41235
41205
|
}
|
@@ -41242,14 +41212,14 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
41242
41212
|
if (this.isInterfacePackageFile) {
|
41243
41213
|
if (node.initializer !== void 0) {
|
41244
41214
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
41245
|
-
|
41215
|
+
79 /* InterfacePackageVariablesMustNotHaveInitializers */,
|
41246
41216
|
node.name
|
41247
41217
|
));
|
41248
41218
|
}
|
41249
41219
|
} else if (findModifier(node, 35 /* Abstract */) !== void 0) {
|
41250
41220
|
if (node.initializer !== void 0) {
|
41251
41221
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
41252
|
-
|
41222
|
+
82 /* AbstractVariablesMustNotHaveInitializers */,
|
41253
41223
|
node.name
|
41254
41224
|
));
|
41255
41225
|
}
|
@@ -41295,14 +41265,14 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
41295
41265
|
case 21 /* TranslationsDeclaration */: {
|
41296
41266
|
if (this._sourceFile.package.kind !== "translation") {
|
41297
41267
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
41298
|
-
|
41268
|
+
72 /* TranslationsCanOnlyBeDeclaredInTranslationPackage */,
|
41299
41269
|
node.translationsKeyword
|
41300
41270
|
));
|
41301
41271
|
traversalController.stopChildrenTraverse();
|
41302
41272
|
} else {
|
41303
41273
|
if (this.translationPackage === void 0) {
|
41304
41274
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
41305
|
-
|
41275
|
+
73 /* UnknownTranslatedPackage0 */,
|
41306
41276
|
node.translationsKeyword,
|
41307
41277
|
[this._sourceFile.package.configuration.targetPackageName.toString()]
|
41308
41278
|
));
|
@@ -41323,7 +41293,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
41323
41293
|
const enumeratedExpressionType = this._analyzer.type.ofExpression(node.enumeratedExpression);
|
41324
41294
|
if (this._analyzer.ifTypeEnumerableThenItemType(enumeratedExpressionType) === void 0) {
|
41325
41295
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
41326
|
-
|
41296
|
+
67 /* ExpressionOfType0CanNotBeUsedForEnumeration */,
|
41327
41297
|
node.enumeratedExpression,
|
41328
41298
|
[this._displayService.displayType(enumeratedExpressionType)]
|
41329
41299
|
));
|
@@ -41372,7 +41342,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
41372
41342
|
returnType,
|
41373
41343
|
leftType,
|
41374
41344
|
node.right,
|
41375
|
-
|
41345
|
+
52 /* Type0IsNotAssignableToType1 */
|
41376
41346
|
);
|
41377
41347
|
}
|
41378
41348
|
}
|
@@ -41386,7 +41356,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
41386
41356
|
if (member.kind === 141 /* VariantDeclaration */) {
|
41387
41357
|
if (member.value === void 0 && !isIntegerVariant) {
|
41388
41358
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
41389
|
-
|
41359
|
+
70 /* VariantMustHaveAssociatedValue */,
|
41390
41360
|
member
|
41391
41361
|
));
|
41392
41362
|
} else if (member.value !== void 0) {
|
@@ -41416,7 +41386,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
41416
41386
|
} else if (meaning.kind === "base-object-access") {
|
41417
41387
|
if (node.parent.kind !== 80 /* PropertyAccessExpression */ && node.parent.kind !== 72 /* IndexedAccessExpression */) {
|
41418
41388
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
41419
|
-
|
41389
|
+
77 /* BaseCannotBeUsedAsAnExpressionInItself */,
|
41420
41390
|
node
|
41421
41391
|
));
|
41422
41392
|
}
|
@@ -41434,7 +41404,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
41434
41404
|
case 22 /* PackageAliasTypeDeclaration */: {
|
41435
41405
|
const entity = this._analyzer.entity.ofPackageAliasTypeDeclaration(node);
|
41436
41406
|
if (entity.getAliasedType().causesCycle) {
|
41437
|
-
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
41407
|
+
this.addDiagnostic(this._analyzer.createNodeDiagnostic(93 /* TypeAliasReferencesItself */, node.name));
|
41438
41408
|
}
|
41439
41409
|
break;
|
41440
41410
|
}
|
@@ -41442,7 +41412,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
41442
41412
|
const entity = this._analyzer.entity.ofTypeParameterDeclaration(node);
|
41443
41413
|
if (entity.getConstraint().causesCycle) {
|
41444
41414
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
41445
|
-
|
41415
|
+
94 /* TypeParameterHasCircularConstraint */,
|
41446
41416
|
node.name
|
41447
41417
|
));
|
41448
41418
|
}
|
@@ -41549,7 +41519,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
41549
41519
|
if (entities.length <= maxDisplayedEntitiesCount) {
|
41550
41520
|
const notTranslatedEntitiesText = "\n" + entities.map((e) => this._displayService.displayEntity(e)).join("\n");
|
41551
41521
|
result = this._analyzer.createNodeDiagnostic(
|
41552
|
-
|
41522
|
+
103 /* TheFollowingDeclarationsAreNotTranslated0 */,
|
41553
41523
|
node,
|
41554
41524
|
[notTranslatedEntitiesText],
|
41555
41525
|
1 /* Warning */
|
@@ -41557,7 +41527,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
41557
41527
|
} else {
|
41558
41528
|
const notTranslatedEntitiesText = "\n" + entities.slice(0, maxDisplayedEntitiesCount + 1).map((e) => this._displayService.displayEntity(e)).join("\n") + "\n";
|
41559
41529
|
result = this._analyzer.createNodeDiagnostic(
|
41560
|
-
|
41530
|
+
104 /* TheFollowingDeclarationAreNotTranslated0And1More */,
|
41561
41531
|
node,
|
41562
41532
|
[notTranslatedEntitiesText, (entities.length - maxDisplayedEntitiesCount).toString()],
|
41563
41533
|
1 /* Warning */
|
@@ -41569,7 +41539,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
41569
41539
|
for (const argument of node.callArgumentList.callArguments) {
|
41570
41540
|
if (argument.name === void 0) {
|
41571
41541
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
41572
|
-
|
41542
|
+
101 /* DefaultConstructorArgumentsMustBeNamed */,
|
41573
41543
|
argument
|
41574
41544
|
));
|
41575
41545
|
}
|
@@ -41579,12 +41549,12 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
41579
41549
|
if (this.isInterfacePackageFile) {
|
41580
41550
|
if (node.body !== void 0) {
|
41581
41551
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
41582
|
-
|
41552
|
+
78 /* InterfacePackageMustNotContainImplementation */,
|
41583
41553
|
node.name
|
41584
41554
|
));
|
41585
41555
|
}
|
41586
41556
|
} else if (node.body === void 0) {
|
41587
|
-
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
41557
|
+
this.addDiagnostic(this._analyzer.createNodeDiagnostic(80 /* BodyIsMissing */, node.name));
|
41588
41558
|
}
|
41589
41559
|
const entity = this._analyzer.entity.ofPackageMethodDeclaration(node);
|
41590
41560
|
if (node.body !== void 0) {
|
@@ -41595,31 +41565,31 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
41595
41565
|
if (this.isInterfacePackageFile) {
|
41596
41566
|
if (node.body !== void 0) {
|
41597
41567
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
41598
|
-
|
41568
|
+
78 /* InterfacePackageMustNotContainImplementation */,
|
41599
41569
|
node.name
|
41600
41570
|
));
|
41601
41571
|
}
|
41602
41572
|
} else if (node.body === void 0) {
|
41603
|
-
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
41573
|
+
this.addDiagnostic(this._analyzer.createNodeDiagnostic(80 /* BodyIsMissing */, node.name));
|
41604
41574
|
}
|
41605
41575
|
}
|
41606
41576
|
checkPackageVariableSetterDeclaration(node) {
|
41607
41577
|
if (this.isInterfacePackageFile) {
|
41608
41578
|
if (node.body !== void 0) {
|
41609
41579
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
41610
|
-
|
41580
|
+
78 /* InterfacePackageMustNotContainImplementation */,
|
41611
41581
|
node.name
|
41612
41582
|
));
|
41613
41583
|
}
|
41614
41584
|
} else if (node.body === void 0) {
|
41615
|
-
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
41585
|
+
this.addDiagnostic(this._analyzer.createNodeDiagnostic(80 /* BodyIsMissing */, node.name));
|
41616
41586
|
}
|
41617
41587
|
}
|
41618
41588
|
checkTypeMethodDeclaration(node) {
|
41619
41589
|
if (this.isInterfacePackageFile) {
|
41620
41590
|
if (node.body !== void 0) {
|
41621
41591
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
41622
|
-
|
41592
|
+
78 /* InterfacePackageMustNotContainImplementation */,
|
41623
41593
|
node.name
|
41624
41594
|
));
|
41625
41595
|
}
|
@@ -41639,7 +41609,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
41639
41609
|
if (this.isInterfacePackageFile) {
|
41640
41610
|
if (node.body !== void 0) {
|
41641
41611
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
41642
|
-
|
41612
|
+
78 /* InterfacePackageMustNotContainImplementation */,
|
41643
41613
|
node.name
|
41644
41614
|
));
|
41645
41615
|
}
|
@@ -41648,7 +41618,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
41648
41618
|
}
|
41649
41619
|
const staticModifier = findModifier(node, 39 /* Static */);
|
41650
41620
|
if (staticModifier !== void 0) {
|
41651
|
-
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
41621
|
+
this.addDiagnostic(this._analyzer.createNodeDiagnostic(105 /* OperatorMustNotBeStatic */, staticModifier));
|
41652
41622
|
}
|
41653
41623
|
const requiredParameterCount = requiredParameterCountBySyntacticalOperatorKind[node.operatorKind];
|
41654
41624
|
const actualParameterCount = node.parameterClause.parameterList.parameters.count();
|
@@ -41661,7 +41631,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
41661
41631
|
this._sourceFile.package.dialect
|
41662
41632
|
);
|
41663
41633
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
41664
|
-
|
41634
|
+
106 /* Operator0MustNotHaveParameters */,
|
41665
41635
|
node.name,
|
41666
41636
|
[operatorText]
|
41667
41637
|
));
|
@@ -41676,7 +41646,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
41676
41646
|
this._sourceFile.package.dialect
|
41677
41647
|
);
|
41678
41648
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
41679
|
-
|
41649
|
+
108 /* Operator0MustHaveNoMoreThanOneParameter */,
|
41680
41650
|
node.name,
|
41681
41651
|
[operatorText]
|
41682
41652
|
));
|
@@ -41691,7 +41661,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
41691
41661
|
this._sourceFile.package.dialect
|
41692
41662
|
);
|
41693
41663
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
41694
|
-
|
41664
|
+
107 /* Operator0MustHaveOneParameter */,
|
41695
41665
|
node.name,
|
41696
41666
|
[operatorText]
|
41697
41667
|
));
|
@@ -41706,7 +41676,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
41706
41676
|
if (this.isInterfacePackageFile) {
|
41707
41677
|
if (node.body !== void 0) {
|
41708
41678
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
41709
|
-
|
41679
|
+
78 /* InterfacePackageMustNotContainImplementation */,
|
41710
41680
|
node.name
|
41711
41681
|
));
|
41712
41682
|
}
|
@@ -41718,7 +41688,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
41718
41688
|
if (this.isInterfacePackageFile) {
|
41719
41689
|
if (node.body !== void 0) {
|
41720
41690
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
41721
|
-
|
41691
|
+
78 /* InterfacePackageMustNotContainImplementation */,
|
41722
41692
|
node.name
|
41723
41693
|
));
|
41724
41694
|
}
|
@@ -41730,7 +41700,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
41730
41700
|
if (this.isInterfacePackageFile) {
|
41731
41701
|
if (node.body !== void 0) {
|
41732
41702
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
41733
|
-
|
41703
|
+
78 /* InterfacePackageMustNotContainImplementation */,
|
41734
41704
|
node.parameterClause
|
41735
41705
|
));
|
41736
41706
|
}
|
@@ -41742,7 +41712,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
41742
41712
|
if (this.isInterfacePackageFile) {
|
41743
41713
|
if (node.body !== void 0) {
|
41744
41714
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
41745
|
-
|
41715
|
+
78 /* InterfacePackageMustNotContainImplementation */,
|
41746
41716
|
node.parameterClause
|
41747
41717
|
));
|
41748
41718
|
}
|
@@ -41754,7 +41724,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
41754
41724
|
if (this.isInterfacePackageFile) {
|
41755
41725
|
if (node.body !== void 0) {
|
41756
41726
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
41757
|
-
|
41727
|
+
78 /* InterfacePackageMustNotContainImplementation */,
|
41758
41728
|
node.caretToken
|
41759
41729
|
));
|
41760
41730
|
}
|
@@ -41766,7 +41736,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
41766
41736
|
if (this.isInterfacePackageFile) {
|
41767
41737
|
if (node.body !== void 0) {
|
41768
41738
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
41769
|
-
|
41739
|
+
78 /* InterfacePackageMustNotContainImplementation */,
|
41770
41740
|
node.caretToken
|
41771
41741
|
));
|
41772
41742
|
}
|
@@ -41789,7 +41759,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
41789
41759
|
}
|
41790
41760
|
if (!hasCorrectReturnType) {
|
41791
41761
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
41792
|
-
|
41762
|
+
88 /* MethodsUsingYieldStatementMustHaveEnumerableAsReturnType */,
|
41793
41763
|
nodeForDiagnostic
|
41794
41764
|
));
|
41795
41765
|
}
|
@@ -41801,17 +41771,17 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
41801
41771
|
const returnType = containingSubprogram?.getReturnType();
|
41802
41772
|
if (containingSubprogram?.isGenerator() === true && node.expression !== void 0) {
|
41803
41773
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
41804
|
-
|
41774
|
+
85 /* MethodsUsingYieldStatementCanNotReturnValue */,
|
41805
41775
|
node.returnKeyword
|
41806
41776
|
));
|
41807
41777
|
} else if (returnType === void 0 && node.expression !== void 0) {
|
41808
41778
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
41809
|
-
|
41779
|
+
84 /* OnlySubprogramsWithReturnTypeCanReturnValue */,
|
41810
41780
|
node.returnKeyword
|
41811
41781
|
));
|
41812
41782
|
} else if (returnType !== void 0 && node.expression === void 0 && !returnType.equals(this._analyzer.standardTypes.none)) {
|
41813
41783
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
41814
|
-
|
41784
|
+
91 /* SubprogramMustReturnValue */,
|
41815
41785
|
node.returnKeyword
|
41816
41786
|
));
|
41817
41787
|
}
|
@@ -41821,22 +41791,22 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
41821
41791
|
const containingSubprogram = semanticContext.getContainingSubprogram();
|
41822
41792
|
if (containingSubprogram?.kind === "method-literal") {
|
41823
41793
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
41824
|
-
|
41794
|
+
86 /* YieldStatementCanNotBeUsedInAnonymousMethods */,
|
41825
41795
|
node.yieldKeyword
|
41826
41796
|
));
|
41827
41797
|
} else if (containingSubprogram?.isGenerator() !== true) {
|
41828
41798
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
41829
|
-
|
41799
|
+
87 /* YieldStatementCanNotBeUsedHere */,
|
41830
41800
|
node.yieldKeyword
|
41831
41801
|
));
|
41832
41802
|
} else if (semanticContext.isInRunStatementWithClauses()?.hasOnErrorClause === true) {
|
41833
41803
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
41834
|
-
|
41804
|
+
89 /* YieldStatementCanNotBeUsedInRunStatementThatHasOnErrorClause */,
|
41835
41805
|
node.yieldKeyword
|
41836
41806
|
));
|
41837
41807
|
} else if (semanticContext.isInFinallyClause()) {
|
41838
41808
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
41839
|
-
|
41809
|
+
90 /* YieldStatementCanNotBeUsedInFinallyClause */,
|
41840
41810
|
node.yieldKeyword
|
41841
41811
|
));
|
41842
41812
|
}
|
@@ -41855,14 +41825,14 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
41855
41825
|
) !== void 0;
|
41856
41826
|
}
|
41857
41827
|
if (!bodyCanBeMissing) {
|
41858
|
-
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
41828
|
+
this.addDiagnostic(this._analyzer.createNodeDiagnostic(80 /* BodyIsMissing */, nodeForDiagnostics));
|
41859
41829
|
}
|
41860
41830
|
}
|
41861
41831
|
}
|
41862
41832
|
} else {
|
41863
41833
|
if (findModifier(typeMemberWithBody, 35 /* Abstract */) !== void 0) {
|
41864
41834
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
41865
|
-
|
41835
|
+
81 /* AbstractTypeMembersMustNotHaveBody */,
|
41866
41836
|
nodeForDiagnostics
|
41867
41837
|
));
|
41868
41838
|
}
|
@@ -41927,12 +41897,12 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
41927
41897
|
switch (meaning.kind) {
|
41928
41898
|
case "package-alias-access":
|
41929
41899
|
if (node.parent.kind !== 80 /* PropertyAccessExpression */) {
|
41930
|
-
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
41900
|
+
this.addDiagnostic(this._analyzer.createNodeDiagnostic(46 /* PackageAliasCannotBeUsedAsValue */, node));
|
41931
41901
|
}
|
41932
41902
|
break;
|
41933
41903
|
case "package-name-segment-access": {
|
41934
41904
|
if (node.parent.kind !== 80 /* PropertyAccessExpression */) {
|
41935
|
-
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
41905
|
+
this.addDiagnostic(this._analyzer.createNodeDiagnostic(47 /* PackageNameCannotBeUsedAsValue */, node));
|
41936
41906
|
}
|
41937
41907
|
break;
|
41938
41908
|
}
|
@@ -41959,7 +41929,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
41959
41929
|
if (node.parent.kind === 91 /* GenericSpecializationExpression */ && node.parent.parent.kind === 80 /* PropertyAccessExpression */) {
|
41960
41930
|
break;
|
41961
41931
|
}
|
41962
|
-
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
41932
|
+
this.addDiagnostic(this._analyzer.createNodeDiagnostic(31 /* TypeCannotBeUsedAsValue */, node));
|
41963
41933
|
break;
|
41964
41934
|
}
|
41965
41935
|
case "method-access": {
|
@@ -41977,7 +41947,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
41977
41947
|
const semanticContext = this._analyzer.semanticContext.containing(node);
|
41978
41948
|
if (semanticContext.getContainingSubprogram()?.isGenerator() === true) {
|
41979
41949
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
41980
|
-
|
41950
|
+
92 /* ResultVariableCanNotBeUsedInMethodsUsingYieldStatement */,
|
41981
41951
|
node
|
41982
41952
|
));
|
41983
41953
|
}
|
@@ -42024,7 +41994,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
42024
41994
|
}
|
42025
41995
|
case "package-name-segment-access": {
|
42026
41996
|
if (node.parent.kind !== 80 /* PropertyAccessExpression */) {
|
42027
|
-
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
41997
|
+
this.addDiagnostic(this._analyzer.createNodeDiagnostic(47 /* PackageNameCannotBeUsedAsValue */, node));
|
42028
41998
|
}
|
42029
41999
|
break;
|
42030
42000
|
}
|
@@ -42043,7 +42013,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
42043
42013
|
this.addDiagnostics(matchResult.diagnostics);
|
42044
42014
|
if (matchResult.unmatchedParameters.length !== 0) {
|
42045
42015
|
this.addDiagnostic(this._analyzer.createSourceFileRangeDiagnostic(
|
42046
|
-
|
42016
|
+
57 /* NotEveryRequiredParameterIsProvidedWithCallArgument */,
|
42047
42017
|
callArgumentsRange,
|
42048
42018
|
this._sourceFile
|
42049
42019
|
));
|
@@ -42074,7 +42044,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
42074
42044
|
}
|
42075
42045
|
if (declaration !== void 0 && locals.has(declaration) && locals.get(declaration) === false) {
|
42076
42046
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
42077
|
-
|
42047
|
+
51 /* VariableUsedBeforeBeingDeclared */,
|
42078
42048
|
node2
|
42079
42049
|
));
|
42080
42050
|
}
|
@@ -42104,7 +42074,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
42104
42074
|
expressionType,
|
42105
42075
|
targetType,
|
42106
42076
|
node,
|
42107
|
-
|
42077
|
+
52 /* Type0IsNotAssignableToType1 */
|
42108
42078
|
);
|
42109
42079
|
}
|
42110
42080
|
}
|
@@ -42134,7 +42104,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
42134
42104
|
this.checkAssignmentToDereferenceExpression(node.left);
|
42135
42105
|
break;
|
42136
42106
|
default:
|
42137
|
-
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
42107
|
+
this.addDiagnostic(this._analyzer.createNodeDiagnostic(56 /* CannotAssignValueToExpression */, node.left));
|
42138
42108
|
}
|
42139
42109
|
}
|
42140
42110
|
checkAssignmentToIdentifierExpression(node, statement) {
|
@@ -42146,7 +42116,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
42146
42116
|
case "variant-access":
|
42147
42117
|
case "method-access":
|
42148
42118
|
case "operator-access": {
|
42149
|
-
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
42119
|
+
this.addDiagnostic(this._analyzer.createNodeDiagnostic(56 /* CannotAssignValueToExpression */, node));
|
42150
42120
|
return;
|
42151
42121
|
}
|
42152
42122
|
case "variable-access": {
|
@@ -42182,7 +42152,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
42182
42152
|
case "instance-method-access":
|
42183
42153
|
case "operator-access": {
|
42184
42154
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
42185
|
-
|
42155
|
+
56 /* CannotAssignValueToExpression */,
|
42186
42156
|
node.propertyName
|
42187
42157
|
));
|
42188
42158
|
break;
|
@@ -42208,7 +42178,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
42208
42178
|
case "local": {
|
42209
42179
|
if (entity.isConstant()) {
|
42210
42180
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
42211
|
-
|
42181
|
+
56 /* CannotAssignValueToExpression */,
|
42212
42182
|
nodeForDiagnostic
|
42213
42183
|
));
|
42214
42184
|
}
|
@@ -42225,7 +42195,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
42225
42195
|
const isAssignedInConstructorOfContainingPackage = containingSubprogram?.kind === "package-constructor" && containingSubprogram.getPackageEntity() === getPackageContainingEntity(entity);
|
42226
42196
|
if (!isAssignedInConstructorOfContainingPackage) {
|
42227
42197
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
42228
|
-
|
42198
|
+
56 /* CannotAssignValueToExpression */,
|
42229
42199
|
nodeForDiagnostic
|
42230
42200
|
));
|
42231
42201
|
}
|
@@ -42235,7 +42205,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
42235
42205
|
const hidingMatcher = this._analyzer.semanticContext.containing(assignmentNode).getHidingMatcher();
|
42236
42206
|
if (!hidingMatcher.matches(setterHiding)) {
|
42237
42207
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
42238
|
-
|
42208
|
+
56 /* CannotAssignValueToExpression */,
|
42239
42209
|
nodeForDiagnostic
|
42240
42210
|
));
|
42241
42211
|
}
|
@@ -42250,7 +42220,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
42250
42220
|
const isAssignedInConstructorOfContainingPackage = containingSubprogram?.kind === "package-constructor" && containingSubprogram.getPackageEntity() === getPackageContainingEntity(entity);
|
42251
42221
|
if (!isAssignedInConstructorOfContainingPackage) {
|
42252
42222
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
42253
|
-
|
42223
|
+
56 /* CannotAssignValueToExpression */,
|
42254
42224
|
nodeForDiagnostic
|
42255
42225
|
));
|
42256
42226
|
}
|
@@ -42258,14 +42228,14 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
42258
42228
|
const isAssignedInConstructorOfContainingType = containingSubprogram?.kind === "constructor" && containingSubprogram.getEntity().getContainer().getEntity() === entity.getContainer().getEntity();
|
42259
42229
|
if (!isAssignedInConstructorOfContainingType) {
|
42260
42230
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
42261
|
-
|
42231
|
+
56 /* CannotAssignValueToExpression */,
|
42262
42232
|
nodeForDiagnostic
|
42263
42233
|
));
|
42264
42234
|
} else {
|
42265
42235
|
const isAssignedToAnotherInstance = ifPropertyAccessThenNode !== void 0 && unwrapParenthesizedExpressions(ifPropertyAccessThenNode.expression).kind !== 88 /* ObjectExpression */;
|
42266
42236
|
if (isAssignedToAnotherInstance) {
|
42267
42237
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
42268
|
-
|
42238
|
+
56 /* CannotAssignValueToExpression */,
|
42269
42239
|
nodeForDiagnostic
|
42270
42240
|
));
|
42271
42241
|
}
|
@@ -42277,7 +42247,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
42277
42247
|
const hidingMatcher = this._analyzer.semanticContext.containing(assignmentNode).getHidingMatcher();
|
42278
42248
|
if (!hidingMatcher.matches(setterHiding)) {
|
42279
42249
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
42280
|
-
|
42250
|
+
56 /* CannotAssignValueToExpression */,
|
42281
42251
|
nodeForDiagnostic
|
42282
42252
|
));
|
42283
42253
|
}
|
@@ -42293,7 +42263,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
42293
42263
|
canAssignToObject = containingEntity.kind === 9 /* Constructor */ && (typeOfExtension?.getEntity().kind === 14 /* AliasType */ || typeOfExtension?.kind === "type-extension");
|
42294
42264
|
}
|
42295
42265
|
if (!canAssignToObject) {
|
42296
|
-
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
42266
|
+
this.addDiagnostic(this._analyzer.createNodeDiagnostic(62 /* CanNotAssignValueToContextVariable */, node));
|
42297
42267
|
}
|
42298
42268
|
}
|
42299
42269
|
checkAssignmentToDereferenceExpression(_node) {
|
@@ -42306,7 +42276,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
42306
42276
|
if (setterHiding !== void 0) {
|
42307
42277
|
const hidingMatcher = this._analyzer.semanticContext.containing(node).getHidingMatcher();
|
42308
42278
|
if (!hidingMatcher.matches(setterHiding)) {
|
42309
|
-
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
42279
|
+
this.addDiagnostic(this._analyzer.createNodeDiagnostic(56 /* CannotAssignValueToExpression */, node));
|
42310
42280
|
}
|
42311
42281
|
}
|
42312
42282
|
break;
|
@@ -42333,7 +42303,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
42333
42303
|
return;
|
42334
42304
|
}
|
42335
42305
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
42336
|
-
|
42306
|
+
96 /* OnlyGenericTypesAndFunctionsCanBeSpecialized */,
|
42337
42307
|
node.typeArgumentClause
|
42338
42308
|
));
|
42339
42309
|
}
|
@@ -42353,7 +42323,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
42353
42323
|
checkSpecializationOfDeclarationWithParameters(typeParameters, substitutions, node) {
|
42354
42324
|
if (typeParameters.length === 0) {
|
42355
42325
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
42356
|
-
|
42326
|
+
96 /* OnlyGenericTypesAndFunctionsCanBeSpecialized */,
|
42357
42327
|
node
|
42358
42328
|
));
|
42359
42329
|
return;
|
@@ -42371,7 +42341,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
42371
42341
|
typeArgument,
|
42372
42342
|
substitutedConstraint,
|
42373
42343
|
typeArgumentNode,
|
42374
|
-
|
42344
|
+
99 /* Type0IsNotAssignableToConstraint1 */
|
42375
42345
|
);
|
42376
42346
|
}
|
42377
42347
|
}
|
@@ -42386,13 +42356,13 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
42386
42356
|
if (typeArgumentCount < requiredTypeParameterCount || typeArgumentCount > typeParameterCount) {
|
42387
42357
|
if (typeParameterCount === requiredTypeParameterCount) {
|
42388
42358
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
42389
|
-
|
42359
|
+
97 /* Expected0TypeArguments */,
|
42390
42360
|
nodeForDiagnostics,
|
42391
42361
|
[typeParameterCount.toString()]
|
42392
42362
|
));
|
42393
42363
|
} else {
|
42394
42364
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
42395
|
-
|
42365
|
+
98 /* ExpectedFrom0To1TypeArguments */,
|
42396
42366
|
nodeForDiagnostics,
|
42397
42367
|
[requiredTypeParameterCount.toString(), typeParameterCount.toString()]
|
42398
42368
|
));
|
@@ -42431,7 +42401,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
42431
42401
|
const usageCount = this._namedDeclarationsCountResult.getUsageCount(entity);
|
42432
42402
|
if (usageCount === 0) {
|
42433
42403
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
42434
|
-
|
42404
|
+
100 /* VariableIsDeclaredButNotUsed */,
|
42435
42405
|
nodeForDiagnostic,
|
42436
42406
|
void 0,
|
42437
42407
|
3 /* Hint */,
|
@@ -42456,21 +42426,20 @@ var requiredParameterCountBySyntacticalOperatorKind = {
|
|
42456
42426
|
[0 /* Plus */]: 1 /* ZeroOrOne */,
|
42457
42427
|
[1 /* Minus */]: 1 /* ZeroOrOne */,
|
42458
42428
|
[2 /* Not */]: 0 /* Zero */,
|
42459
|
-
[3 /*
|
42460
|
-
[4 /*
|
42461
|
-
[5 /*
|
42462
|
-
[6 /*
|
42463
|
-
[7 /*
|
42464
|
-
[8 /*
|
42465
|
-
[9 /*
|
42466
|
-
[10 /*
|
42467
|
-
[11 /*
|
42468
|
-
[12 /*
|
42469
|
-
[13 /*
|
42470
|
-
[14 /*
|
42471
|
-
[15 /*
|
42472
|
-
[16 /*
|
42473
|
-
[17 /* BitwiseXor */]: 2 /* One */
|
42429
|
+
[3 /* Multiply */]: 2 /* One */,
|
42430
|
+
[4 /* Divide */]: 2 /* One */,
|
42431
|
+
[5 /* IntegerDivide */]: 2 /* One */,
|
42432
|
+
[6 /* Modulo */]: 2 /* One */,
|
42433
|
+
[7 /* LessThan */]: 2 /* One */,
|
42434
|
+
[8 /* GreaterThan */]: 2 /* One */,
|
42435
|
+
[9 /* LessThanOrEqual */]: 2 /* One */,
|
42436
|
+
[10 /* GreaterThanOrEqual */]: 2 /* One */,
|
42437
|
+
[11 /* Or */]: 2 /* One */,
|
42438
|
+
[12 /* And */]: 2 /* One */,
|
42439
|
+
[13 /* Xor */]: 2 /* One */,
|
42440
|
+
[14 /* BitwiseAnd */]: 2 /* One */,
|
42441
|
+
[15 /* BitwiseOr */]: 2 /* One */,
|
42442
|
+
[16 /* BitwiseXor */]: 2 /* One */
|
42474
42443
|
};
|
42475
42444
|
|
42476
42445
|
// source/analysis/FindModifier.ts
|
@@ -43250,6 +43219,7 @@ var TypeMethodDeclarationEntity = class {
|
|
43250
43219
|
this.subkind = "type";
|
43251
43220
|
this._typeParameters = new Cached();
|
43252
43221
|
this._valueParameters = new Cached();
|
43222
|
+
this._overriddenMember = new Cached();
|
43253
43223
|
}
|
43254
43224
|
getName() {
|
43255
43225
|
return this._analyzer.createNameFromIdentifier(this._node.name);
|
@@ -43309,6 +43279,9 @@ var TypeMethodDeclarationEntity = class {
|
|
43309
43279
|
getSubstitutionApplicationMode() {
|
43310
43280
|
return 0 /* SubstituteOwnSubstitutions */;
|
43311
43281
|
}
|
43282
|
+
getOverriddenMember() {
|
43283
|
+
return this._overriddenMember.getOrInsertWith(() => this._analyzer.overriddenMember.getOverriddenMethod(this._node));
|
43284
|
+
}
|
43312
43285
|
};
|
43313
43286
|
TypeMethodDeclarationEntity = __decorateClass([
|
43314
43287
|
entityToStringDecorator
|
@@ -43417,7 +43390,7 @@ IntrinsicPackageMethodEntity = __decorateClass([
|
|
43417
43390
|
entityToStringDecorator
|
43418
43391
|
], IntrinsicPackageMethodEntity);
|
43419
43392
|
var IntrinsicTypeMethodEntity = class {
|
43420
|
-
constructor(_name, _typeParameters, _valueParameters, _returnType, _isAsync, _isHidden, _tags, _isMethodTypeInvokeMethod, _container, _isStatic, _isRedefinable, _isRedefined, _isAbstract, _isModifyingOwningPlainObject) {
|
43393
|
+
constructor(_name, _typeParameters, _valueParameters, _returnType, _isAsync, _isHidden, _tags, _isMethodTypeInvokeMethod, _container, _isStatic, _isRedefinable, _isRedefined, _isAbstract, _isModifyingOwningPlainObject, _overriddenMember) {
|
43421
43394
|
this._name = _name;
|
43422
43395
|
this._typeParameters = _typeParameters;
|
43423
43396
|
this._valueParameters = _valueParameters;
|
@@ -43432,6 +43405,7 @@ var IntrinsicTypeMethodEntity = class {
|
|
43432
43405
|
this._isRedefined = _isRedefined;
|
43433
43406
|
this._isAbstract = _isAbstract;
|
43434
43407
|
this._isModifyingOwningPlainObject = _isModifyingOwningPlainObject;
|
43408
|
+
this._overriddenMember = _overriddenMember;
|
43435
43409
|
this.kind = 5 /* Method */;
|
43436
43410
|
this.subkind = "type";
|
43437
43411
|
}
|
@@ -43486,6 +43460,9 @@ var IntrinsicTypeMethodEntity = class {
|
|
43486
43460
|
getSubstitutionApplicationMode() {
|
43487
43461
|
return 0 /* SubstituteOwnSubstitutions */;
|
43488
43462
|
}
|
43463
|
+
getOverriddenMember() {
|
43464
|
+
return this._overriddenMember;
|
43465
|
+
}
|
43489
43466
|
};
|
43490
43467
|
IntrinsicTypeMethodEntity = __decorateClass([
|
43491
43468
|
entityToStringDecorator
|
@@ -43805,6 +43782,7 @@ var OperatorDeclarationEntity = class {
|
|
43805
43782
|
this._node = _node;
|
43806
43783
|
this.kind = 15 /* Operator */;
|
43807
43784
|
this._valueParameters = new Cached();
|
43785
|
+
this._overriddenMember = new Cached();
|
43808
43786
|
Debug.assertNotNull(_node.name.ifOperatorNameThenKind, "\u0418\u043C\u044F \u043E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u0438\u044F \u043E\u043F\u0435\u0440\u0430\u0442\u043E\u0440\u0430 \u0434\u043E\u043B\u0436\u043D\u043E \u044F\u0432\u043B\u044F\u0442\u044C\u0441\u044F \u043E\u043F\u0435\u0440\u0430\u0442\u043E\u0440\u043E\u043C.");
|
43809
43787
|
this._operatorKind = this.convertSyntaxOperatorKind(
|
43810
43788
|
_node.name.ifOperatorNameThenKind,
|
@@ -43847,44 +43825,45 @@ var OperatorDeclarationEntity = class {
|
|
43847
43825
|
getTags() {
|
43848
43826
|
return this._analyzer.tags.ofTagList(this._node.tagList);
|
43849
43827
|
}
|
43828
|
+
getOverriddenMember() {
|
43829
|
+
return this._overriddenMember.getOrInsertWith(() => this._analyzer.overriddenMember.getOverriddenOperator(this._node));
|
43830
|
+
}
|
43850
43831
|
convertSyntaxOperatorKind(kind, parameterCount) {
|
43851
43832
|
switch (kind) {
|
43852
43833
|
case 0 /* Plus */:
|
43853
|
-
return parameterCount === 0 ? 0 /* UnaryPlus */ :
|
43834
|
+
return parameterCount === 0 ? 0 /* UnaryPlus */ : 3 /* Add */;
|
43854
43835
|
case 1 /* Minus */:
|
43855
|
-
return parameterCount === 0 ? 1 /* UnaryMinus */ :
|
43836
|
+
return parameterCount === 0 ? 1 /* UnaryMinus */ : 4 /* Subtract */;
|
43856
43837
|
case 2 /* Not */:
|
43857
43838
|
return 2 /* Not */;
|
43858
|
-
case 3 /*
|
43859
|
-
return
|
43860
|
-
case 4 /*
|
43861
|
-
return 6 /*
|
43862
|
-
case 5 /*
|
43863
|
-
return 7 /*
|
43864
|
-
case 6 /*
|
43865
|
-
return 8 /*
|
43866
|
-
case 7 /*
|
43867
|
-
return 9 /*
|
43868
|
-
case 8 /*
|
43869
|
-
return 10 /*
|
43870
|
-
case 9 /*
|
43871
|
-
return 11 /*
|
43872
|
-
case 10 /*
|
43873
|
-
return 12 /*
|
43874
|
-
case 11 /*
|
43875
|
-
return 13 /*
|
43876
|
-
case 12 /*
|
43877
|
-
return 14 /*
|
43878
|
-
case 13 /*
|
43879
|
-
return 15 /*
|
43880
|
-
case 14 /*
|
43881
|
-
return 16 /*
|
43882
|
-
case 15 /*
|
43883
|
-
return 17 /*
|
43884
|
-
case 16 /*
|
43885
|
-
return 18 /*
|
43886
|
-
case 17 /* BitwiseXor */:
|
43887
|
-
return 19 /* BitwiseXor */;
|
43839
|
+
case 3 /* Multiply */:
|
43840
|
+
return 5 /* Multiply */;
|
43841
|
+
case 4 /* Divide */:
|
43842
|
+
return 6 /* Divide */;
|
43843
|
+
case 5 /* IntegerDivide */:
|
43844
|
+
return 7 /* IntegerDivide */;
|
43845
|
+
case 6 /* Modulo */:
|
43846
|
+
return 8 /* Modulo */;
|
43847
|
+
case 7 /* LessThan */:
|
43848
|
+
return 9 /* LessThan */;
|
43849
|
+
case 8 /* GreaterThan */:
|
43850
|
+
return 10 /* GreaterThan */;
|
43851
|
+
case 9 /* LessThanOrEqual */:
|
43852
|
+
return 11 /* LessThanOrEqual */;
|
43853
|
+
case 10 /* GreaterThanOrEqual */:
|
43854
|
+
return 12 /* GreaterThanOrEqual */;
|
43855
|
+
case 11 /* Or */:
|
43856
|
+
return 13 /* Or */;
|
43857
|
+
case 12 /* And */:
|
43858
|
+
return 14 /* And */;
|
43859
|
+
case 13 /* Xor */:
|
43860
|
+
return 15 /* Xor */;
|
43861
|
+
case 14 /* BitwiseAnd */:
|
43862
|
+
return 16 /* BitwiseAnd */;
|
43863
|
+
case 15 /* BitwiseOr */:
|
43864
|
+
return 17 /* BitwiseOr */;
|
43865
|
+
case 16 /* BitwiseXor */:
|
43866
|
+
return 18 /* BitwiseXor */;
|
43888
43867
|
default:
|
43889
43868
|
Debug.never(kind);
|
43890
43869
|
}
|
@@ -47512,48 +47491,46 @@ var emitterGeneratedDeclarationNamesByLocale = {
|
|
47512
47491
|
[0 /* En */]: emitterGeneratedDeclarationNamesEn
|
47513
47492
|
};
|
47514
47493
|
var operatorNamesRu = {
|
47515
|
-
[0 /* UnaryPlus */]: "\
|
47516
|
-
[1 /* UnaryMinus */]: "\
|
47494
|
+
[0 /* UnaryPlus */]: "\u0443\u043D\u0430\u0440\u043D\u044B\u0439\u041F\u043B\u044E\u0441_",
|
47495
|
+
[1 /* UnaryMinus */]: "\u0443\u043D\u0430\u0440\u043D\u044B\u0439\u041C\u0438\u043D\u0443\u0441_",
|
47517
47496
|
[2 /* Not */]: "\u043D\u0435_",
|
47518
|
-
[3 /*
|
47519
|
-
[4 /*
|
47520
|
-
[5 /*
|
47521
|
-
[6 /*
|
47522
|
-
[7 /*
|
47523
|
-
[8 /*
|
47524
|
-
[9 /*
|
47525
|
-
[10 /*
|
47526
|
-
[11 /*
|
47527
|
-
[12 /*
|
47528
|
-
[13 /*
|
47529
|
-
[14 /*
|
47530
|
-
[15 /*
|
47531
|
-
[16 /*
|
47532
|
-
[17 /*
|
47533
|
-
[18 /*
|
47534
|
-
[19 /* BitwiseXor */]: "\u043F\u043E\u0431\u0438\u0442\u043E\u0432\u043E\u0439\u0418\u0441\u043A\u043B_"
|
47497
|
+
[3 /* Add */]: "\u0441\u043B\u043E\u0436\u0438\u0442\u044C_",
|
47498
|
+
[4 /* Subtract */]: "\u0432\u044B\u0447\u0435\u0441\u0442\u044C_",
|
47499
|
+
[5 /* Multiply */]: "\u0443\u043C\u043D\u043E\u0436\u0438\u0442\u044C_",
|
47500
|
+
[6 /* Divide */]: "\u0440\u0430\u0437\u0434\u0435\u043B\u0438\u0442\u044C_",
|
47501
|
+
[7 /* IntegerDivide */]: "\u0440\u0430\u0437\u0434\u0435\u043B\u0438\u0442\u044C\u041D\u0430\u0446\u0435\u043B\u043E_",
|
47502
|
+
[8 /* Modulo */]: "\u043E\u0441\u0442\u0430\u0442\u043E\u043A_",
|
47503
|
+
[9 /* LessThan */]: "\u043C\u0435\u043D\u044C\u0448\u0435_",
|
47504
|
+
[10 /* GreaterThan */]: "\u0431\u043E\u043B\u044C\u0448\u0435_",
|
47505
|
+
[11 /* LessThanOrEqual */]: "\u043C\u0435\u043D\u044C\u0448\u0435\u0418\u043B\u0438\u0420\u0430\u0432\u043D\u043E_",
|
47506
|
+
[12 /* GreaterThanOrEqual */]: "\u0431\u043E\u043B\u044C\u0448\u0435\u0418\u043B\u0438\u0420\u0430\u0432\u043D\u043E_",
|
47507
|
+
[13 /* Or */]: "\u0438\u043B\u0438_",
|
47508
|
+
[14 /* And */]: "\u0438_",
|
47509
|
+
[15 /* Xor */]: "\u0438\u0441\u043A\u043B\u0418\u043B\u0438_",
|
47510
|
+
[16 /* BitwiseAnd */]: "\u043F\u043E\u0431\u0438\u0442\u043E\u0432\u043E\u0435\u0418_",
|
47511
|
+
[17 /* BitwiseOr */]: "\u043F\u043E\u0431\u0438\u0442\u043E\u0432\u043E\u0435\u0418\u043B\u0438_",
|
47512
|
+
[18 /* BitwiseXor */]: "\u043F\u043E\u0431\u0438\u0442\u043E\u0432\u043E\u0435\u0418\u0441\u043A\u043B\u0418\u043B\u0438_"
|
47535
47513
|
};
|
47536
47514
|
var operatorNamesEn = {
|
47537
47515
|
[0 /* UnaryPlus */]: "unaryPlus_",
|
47538
47516
|
[1 /* UnaryMinus */]: "unaryMinus_",
|
47539
47517
|
[2 /* Not */]: "not_",
|
47540
|
-
[3 /*
|
47541
|
-
[4 /*
|
47542
|
-
[5 /*
|
47543
|
-
[6 /*
|
47544
|
-
[7 /*
|
47545
|
-
[8 /*
|
47546
|
-
[9 /*
|
47547
|
-
[10 /*
|
47548
|
-
[11 /*
|
47549
|
-
[12 /*
|
47550
|
-
[13 /*
|
47551
|
-
[14 /*
|
47552
|
-
[15 /*
|
47553
|
-
[16 /*
|
47554
|
-
[17 /*
|
47555
|
-
[18 /*
|
47556
|
-
[19 /* BitwiseXor */]: "bitwiseXor_"
|
47518
|
+
[3 /* Add */]: "add_",
|
47519
|
+
[4 /* Subtract */]: "subtract_",
|
47520
|
+
[5 /* Multiply */]: "multiply_",
|
47521
|
+
[6 /* Divide */]: "divide_",
|
47522
|
+
[7 /* IntegerDivide */]: "integerDivide_",
|
47523
|
+
[8 /* Modulo */]: "modulo_",
|
47524
|
+
[9 /* LessThan */]: "lessThan_",
|
47525
|
+
[10 /* GreaterThan */]: "greaterThan_",
|
47526
|
+
[11 /* LessThanOrEqual */]: "lessThanOrEqual_",
|
47527
|
+
[12 /* GreaterThanOrEqual */]: "greaterThanOrEqual_",
|
47528
|
+
[13 /* Or */]: "or_",
|
47529
|
+
[14 /* And */]: "and_",
|
47530
|
+
[15 /* Xor */]: "xor_",
|
47531
|
+
[16 /* BitwiseAnd */]: "bitwiseAnd_",
|
47532
|
+
[17 /* BitwiseOr */]: "bitwiseOr_",
|
47533
|
+
[18 /* BitwiseXor */]: "bitwiseXor_"
|
47557
47534
|
};
|
47558
47535
|
var operatorNamesByLocale = {
|
47559
47536
|
[1 /* Ru */]: operatorNamesRu,
|
@@ -47719,7 +47696,7 @@ var EntityMap = class {
|
|
47719
47696
|
containingType: this.getTypeOrExtensionEntity(entity.getContainer().getEntity()),
|
47720
47697
|
isStatic: entity.isStatic()
|
47721
47698
|
};
|
47722
|
-
const overriddenMember =
|
47699
|
+
const overriddenMember = entity.getOverriddenMember();
|
47723
47700
|
if (overriddenMember !== void 0) {
|
47724
47701
|
result.details.overriddenMember = this.getVariableEntity(overriddenMember.getEntity());
|
47725
47702
|
}
|
@@ -47796,7 +47773,7 @@ var EntityMap = class {
|
|
47796
47773
|
containingType: this.getTypeOrExtensionEntity(entity.getContainer().getEntity()),
|
47797
47774
|
isStatic: entity.isStatic()
|
47798
47775
|
};
|
47799
|
-
const overriddenMember =
|
47776
|
+
const overriddenMember = entity.getOverriddenMember();
|
47800
47777
|
if (overriddenMember !== void 0) {
|
47801
47778
|
result.details.overriddenMember = this.getMethodEntity(overriddenMember.getEntity());
|
47802
47779
|
}
|
@@ -47835,7 +47812,7 @@ var EntityMap = class {
|
|
47835
47812
|
this._analyzer.wellKnownDeclarations.builtIntoPlatform,
|
47836
47813
|
entity.getTags()
|
47837
47814
|
) !== void 0;
|
47838
|
-
const overriddenMember =
|
47815
|
+
const overriddenMember = entity.getOverriddenMember();
|
47839
47816
|
if (overriddenMember !== void 0) {
|
47840
47817
|
result.details.overriddenMember = this.getOperatorEntity(overriddenMember.getEntity());
|
47841
47818
|
}
|
@@ -47912,7 +47889,7 @@ var EntityMap = class {
|
|
47912
47889
|
result.containingPackage.locale,
|
47913
47890
|
this.getNameText(owningEntity.getName(), entity.getTags())
|
47914
47891
|
);
|
47915
|
-
const overriddenMember =
|
47892
|
+
const overriddenMember = owningEntity.getOverriddenMember();
|
47916
47893
|
if (overriddenMember !== void 0) {
|
47917
47894
|
const overriddenGetter = overriddenMember.getEntity().getGetter();
|
47918
47895
|
if (overriddenGetter !== void 0) {
|
@@ -47973,7 +47950,7 @@ var EntityMap = class {
|
|
47973
47950
|
result.containingPackage.locale,
|
47974
47951
|
this.getNameText(owningEntity.getName(), entity.getTags())
|
47975
47952
|
);
|
47976
|
-
const overriddenMember =
|
47953
|
+
const overriddenMember = owningEntity.getOverriddenMember();
|
47977
47954
|
if (overriddenMember !== void 0) {
|
47978
47955
|
const overriddenSetter = overriddenMember.getEntity().getSetter();
|
47979
47956
|
if (overriddenSetter !== void 0) {
|
@@ -48162,6 +48139,7 @@ var EntityMap = class {
|
|
48162
48139
|
);
|
48163
48140
|
result.typeOrExtensionKind = 5 /* TypeExtension */;
|
48164
48141
|
result.members = this.createTypeMembers(entity.getMembers());
|
48142
|
+
result.details.extendedType = this.getTypeOrExtensionEntity(extendedType);
|
48165
48143
|
}
|
48166
48144
|
return result;
|
48167
48145
|
}
|
@@ -50011,15 +49989,19 @@ var IrBuilder = class {
|
|
50011
49989
|
}
|
50012
49990
|
buildPrefixUnaryExpression(expression) {
|
50013
49991
|
let operatorKind;
|
50014
|
-
|
50015
|
-
|
50016
|
-
|
50017
|
-
|
50018
|
-
|
50019
|
-
|
50020
|
-
|
50021
|
-
|
50022
|
-
|
49992
|
+
if (expression.operator.kind === 0 /* Token */) {
|
49993
|
+
switch (expression.operator.tokenKind) {
|
49994
|
+
case 46 /* Plus */:
|
49995
|
+
operatorKind = 0 /* Plus */;
|
49996
|
+
break;
|
49997
|
+
case 39 /* Minus */:
|
49998
|
+
operatorKind = 1 /* Minus */;
|
49999
|
+
break;
|
50000
|
+
default:
|
50001
|
+
Debug.never(expression.operator);
|
50002
|
+
}
|
50003
|
+
} else {
|
50004
|
+
operatorKind = 2 /* BitwiseNot */;
|
50023
50005
|
}
|
50024
50006
|
const irExpression = this.buildExpression(expression.operand);
|
50025
50007
|
let operator;
|
@@ -52776,8 +52758,10 @@ var AliasTypeAndExtensionLowering = class {
|
|
52776
52758
|
lowerMethodDeclaration(node) {
|
52777
52759
|
const typeMemberInfo = node.entity.isTypeMember;
|
52778
52760
|
Debug.assertNotNull(typeMemberInfo);
|
52779
|
-
const
|
52780
|
-
|
52761
|
+
const targetParameterEntity = this.createTargetParameter(
|
52762
|
+
typeMemberInfo.containingType,
|
52763
|
+
node.entity.containingPackage
|
52764
|
+
);
|
52781
52765
|
node.entity.parameters = [targetParameterEntity, ...node.entity.parameters];
|
52782
52766
|
node.entity.methodEntityKind = 0 /* RegularMethod */;
|
52783
52767
|
typeMemberInfo.isStatic = true;
|
@@ -52797,8 +52781,10 @@ var AliasTypeAndExtensionLowering = class {
|
|
52797
52781
|
containingType: typeMemberInfo.containingType,
|
52798
52782
|
isStatic: typeMemberInfo.isStatic
|
52799
52783
|
};
|
52800
|
-
const
|
52801
|
-
|
52784
|
+
const targetParameterEntity = this.createTargetParameter(
|
52785
|
+
typeMemberInfo.containingType,
|
52786
|
+
node.entity.containingPackage
|
52787
|
+
);
|
52802
52788
|
node.entity.parameters = [targetParameterEntity];
|
52803
52789
|
node.entity.methodEntityKind = 0 /* RegularMethod */;
|
52804
52790
|
typeMemberInfo.isStatic = true;
|
@@ -52823,8 +52809,10 @@ var AliasTypeAndExtensionLowering = class {
|
|
52823
52809
|
containingType: typeMemberInfo.containingType,
|
52824
52810
|
isStatic: typeMemberInfo.isStatic
|
52825
52811
|
};
|
52826
|
-
const
|
52827
|
-
|
52812
|
+
const targetParameterEntity = this.createTargetParameter(
|
52813
|
+
typeMemberInfo.containingType,
|
52814
|
+
node.entity.containingPackage
|
52815
|
+
);
|
52828
52816
|
node.entity.parameters = [targetParameterEntity, node.valueLocalVariableEntity];
|
52829
52817
|
node.entity.methodEntityKind = 0 /* RegularMethod */;
|
52830
52818
|
typeMemberInfo.isStatic = true;
|
@@ -52876,7 +52864,9 @@ var AliasTypeAndExtensionLowering = class {
|
|
52876
52864
|
transformer.transformBlockStatementChildren(body);
|
52877
52865
|
}
|
52878
52866
|
lowerConstructorBody(body, entity) {
|
52879
|
-
const
|
52867
|
+
const typeMemberInfo = entity.isTypeMember;
|
52868
|
+
Debug.assertNotNull(typeMemberInfo);
|
52869
|
+
const targetVariableEntity = this.createTargetParameter(typeMemberInfo.containingType, entity.containingPackage);
|
52880
52870
|
this.lowerSubprogramBody(body, targetVariableEntity);
|
52881
52871
|
const bodyStatements = Array.from(body.statements);
|
52882
52872
|
const baseConstructorCall = this._ctx.findBaseConstructorCall(body);
|
@@ -52933,8 +52923,14 @@ var AliasTypeAndExtensionLowering = class {
|
|
52933
52923
|
const returnStatement2 = new ReturnStatement3(VariableAccessExpression.get(targetVariableEntity), void 0);
|
52934
52924
|
body.statements = Query.from([targetVariableDeclaration]).chain(bodyStatements).chain([returnStatement2]).toArray();
|
52935
52925
|
}
|
52936
|
-
createTargetParameter(
|
52926
|
+
createTargetParameter(typeEntity, containingPackage) {
|
52937
52927
|
const name = EmitPhaseName.ofExtensionMethodTargetParameter(containingPackage.locale);
|
52928
|
+
let type;
|
52929
|
+
if (typeEntity.typeOrExtensionKind === 5 /* TypeExtension */ && typeEntity.details.extendedType !== void 0) {
|
52930
|
+
type = this._ctx.ectx.createIdentitySubstitutedType(typeEntity.details.extendedType);
|
52931
|
+
} else {
|
52932
|
+
type = this._ctx.ectx.createIdentitySubstitutedType(typeEntity);
|
52933
|
+
}
|
52938
52934
|
return new IntrinsicVariableEntity(name, type, containingPackage);
|
52939
52935
|
}
|
52940
52936
|
};
|
@@ -57268,6 +57264,7 @@ export {
|
|
57268
57264
|
FoundNamedDeclaration,
|
57269
57265
|
FoundAnonymousDeclaration,
|
57270
57266
|
TypeMemberLookup,
|
57267
|
+
BoundTypeMemberLookup,
|
57271
57268
|
TsProgramState,
|
57272
57269
|
TsProgramLoader,
|
57273
57270
|
createTsInteropInputsForCompilation,
|