@artel/artc 0.6.25228 → 0.6.25229
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 +2 -2
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +55 -56
- package/build/{chunk-F5OW64UA.js → chunk-2FHW6RUS.js} +1 -1
- package/build/{chunk-FHJJX7JY.js → chunk-4UBNOTKC.js} +2 -2
- package/build/{chunk-5GSDYTF6.js → chunk-6YPLDA76.js} +578 -548
- package/build/types/analysis/Analyzer.d.ts +3 -3
- package/build/types/analysis/DiagnosticCollector.d.ts +1 -1
- package/build/types/analysis/ModifierFlags.d.ts +5 -6
- package/build/types/diagnostic/DiagnosticCode.d.ts +25 -26
- package/build/types/emitter/Entities.d.ts +4 -4
- package/build/types/entities/DereferenceOperatorEntity.d.ts +4 -4
- package/build/types/entities/FunctionEntity.d.ts +8 -8
- package/build/types/entities/IndexerEntity.d.ts +4 -4
- package/build/types/entities/OperatorEntity.d.ts +4 -4
- package/build/types/entities/VariableEntity.d.ts +12 -12
- package/build/types/project/SourcePackage.d.ts +3 -1
- package/build/types/project/configuration/ConfigurationConverter.d.ts +1 -1
- package/build/types/project/configuration/types/PackageConfigurationEn.d.ts +2 -0
- package/build/types/project/configuration/types/PackageConfigurationRu.d.ts +2 -0
- package/build/types/tree/KeywordKind.d.ts +21 -22
- package/build/types/tree/green/BaseNode.d.ts +3 -1
- package/build/types/tree/green/Nodes.d.ts +1 -1
- package/build/types/tree/red/BaseNode.d.ts +2 -1
- package/build/types/tree/red/Nodes.d.ts +1 -1
- package/build/types/ts-interop/Entities.d.ts +12 -12
- package/package.json +1 -1
@@ -70,11 +70,11 @@ var __yieldStar = (value) => {
|
|
70
70
|
};
|
71
71
|
|
72
72
|
// source/common/PackageDialect.ts
|
73
|
-
var PackageDialect = /* @__PURE__ */ ((
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
return
|
73
|
+
var PackageDialect = /* @__PURE__ */ ((PackageDialect6) => {
|
74
|
+
PackageDialect6[PackageDialect6["Mixed"] = 0] = "Mixed";
|
75
|
+
PackageDialect6[PackageDialect6["Usual"] = 1] = "Usual";
|
76
|
+
PackageDialect6[PackageDialect6["Special"] = 2] = "Special";
|
77
|
+
return PackageDialect6;
|
78
78
|
})(PackageDialect || {});
|
79
79
|
|
80
80
|
// source/common/PackageLocale.ts
|
@@ -617,7 +617,7 @@ var UniqueWithComparatorQuery = class extends Query {
|
|
617
617
|
};
|
618
618
|
|
619
619
|
// source/common/Constants.ts
|
620
|
-
var ArtelVersion = true ? "0.6.
|
620
|
+
var ArtelVersion = true ? "0.6.25229" : "";
|
621
621
|
var ArtelSourceFileExtensions = [".\u0430\u0440\u0442", ".\u0430\u0440\u0442\u0435\u043B\u044C", ".art", ".artel"];
|
622
622
|
var ArtelSourceFileExtensionSet = new Set(ArtelSourceFileExtensions);
|
623
623
|
var ArtelSourceAndConfigurationFileExtensionSet = new Set(ArtelSourceFileExtensionSet).add(".json");
|
@@ -1132,7 +1132,7 @@ __export(green_exports, {
|
|
1132
1132
|
TextTemplateLiteralTranslation: () => TextTemplateLiteralTranslation2,
|
1133
1133
|
TextTemplateSpan: () => TextTemplateSpan2,
|
1134
1134
|
TextTemplateSpanList: () => TextTemplateSpanList2,
|
1135
|
-
Token: () =>
|
1135
|
+
Token: () => Token6,
|
1136
1136
|
TokenExpression: () => TokenExpression2,
|
1137
1137
|
TokenFlags: () => TokenFlags2,
|
1138
1138
|
TokenKind: () => TokenKind,
|
@@ -1214,28 +1214,27 @@ var KeywordKind = /* @__PURE__ */ ((KeywordKind5) => {
|
|
1214
1214
|
KeywordKind5[KeywordKind5["Const"] = 36] = "Const";
|
1215
1215
|
KeywordKind5[KeywordKind5["Hidden"] = 37] = "Hidden";
|
1216
1216
|
KeywordKind5[KeywordKind5["Abstract"] = 38] = "Abstract";
|
1217
|
-
KeywordKind5[KeywordKind5["
|
1218
|
-
KeywordKind5[KeywordKind5["
|
1219
|
-
KeywordKind5[KeywordKind5["
|
1220
|
-
KeywordKind5[KeywordKind5["
|
1221
|
-
KeywordKind5[KeywordKind5["
|
1222
|
-
KeywordKind5[KeywordKind5["
|
1223
|
-
KeywordKind5[KeywordKind5["
|
1224
|
-
KeywordKind5[KeywordKind5["
|
1225
|
-
KeywordKind5[KeywordKind5["
|
1226
|
-
KeywordKind5[KeywordKind5["
|
1227
|
-
KeywordKind5[KeywordKind5["
|
1228
|
-
KeywordKind5[KeywordKind5["
|
1229
|
-
KeywordKind5[KeywordKind5["
|
1230
|
-
KeywordKind5[KeywordKind5["
|
1231
|
-
KeywordKind5[KeywordKind5["
|
1232
|
-
KeywordKind5[KeywordKind5["
|
1233
|
-
KeywordKind5[KeywordKind5["
|
1234
|
-
KeywordKind5[KeywordKind5["
|
1235
|
-
KeywordKind5[KeywordKind5["
|
1236
|
-
KeywordKind5[KeywordKind5["
|
1237
|
-
KeywordKind5[KeywordKind5["
|
1238
|
-
KeywordKind5[KeywordKind5["Set"] = 60] = "Set";
|
1217
|
+
KeywordKind5[KeywordKind5["Redefined"] = 39] = "Redefined";
|
1218
|
+
KeywordKind5[KeywordKind5["Async"] = 40] = "Async";
|
1219
|
+
KeywordKind5[KeywordKind5["Static"] = 41] = "Static";
|
1220
|
+
KeywordKind5[KeywordKind5["As"] = 42] = "As";
|
1221
|
+
KeywordKind5[KeywordKind5["Not"] = 43] = "Not";
|
1222
|
+
KeywordKind5[KeywordKind5["Switch"] = 44] = "Switch";
|
1223
|
+
KeywordKind5[KeywordKind5["Case"] = 45] = "Case";
|
1224
|
+
KeywordKind5[KeywordKind5["Dispose"] = 46] = "Dispose";
|
1225
|
+
KeywordKind5[KeywordKind5["Destruction"] = 47] = "Destruction";
|
1226
|
+
KeywordKind5[KeywordKind5["InHierarchy"] = 48] = "InHierarchy";
|
1227
|
+
KeywordKind5[KeywordKind5["InFile"] = 49] = "InFile";
|
1228
|
+
KeywordKind5[KeywordKind5["InPackage"] = 50] = "InPackage";
|
1229
|
+
KeywordKind5[KeywordKind5["InType"] = 51] = "InType";
|
1230
|
+
KeywordKind5[KeywordKind5["Yes"] = 52] = "Yes";
|
1231
|
+
KeywordKind5[KeywordKind5["No"] = 53] = "No";
|
1232
|
+
KeywordKind5[KeywordKind5["Reference"] = 54] = "Reference";
|
1233
|
+
KeywordKind5[KeywordKind5["Translations"] = 55] = "Translations";
|
1234
|
+
KeywordKind5[KeywordKind5["Base"] = 56] = "Base";
|
1235
|
+
KeywordKind5[KeywordKind5["None"] = 57] = "None";
|
1236
|
+
KeywordKind5[KeywordKind5["Get"] = 58] = "Get";
|
1237
|
+
KeywordKind5[KeywordKind5["Set"] = 59] = "Set";
|
1239
1238
|
return KeywordKind5;
|
1240
1239
|
})(KeywordKind || {});
|
1241
1240
|
|
@@ -1495,7 +1494,7 @@ var operatorKindByTokenText = Object.fromEntries(
|
|
1495
1494
|
Object.entries(tokenTextByOperatorKind).map((e) => [e[1], parseInt(e[0])])
|
1496
1495
|
);
|
1497
1496
|
var keywordKindByOperatorKind = {
|
1498
|
-
[2 /* Not */]:
|
1497
|
+
[2 /* Not */]: 43 /* Not */,
|
1499
1498
|
[11 /* Or */]: 23 /* Or */,
|
1500
1499
|
[12 /* And */]: 22 /* And */,
|
1501
1500
|
[13 /* Xor */]: 24 /* Xor */
|
@@ -1946,7 +1945,7 @@ var tokenTextByOperatorKind2 = {
|
|
1946
1945
|
[18 /* BitwiseXor */]: "||"
|
1947
1946
|
};
|
1948
1947
|
var keywordKindByOperatorKind2 = {
|
1949
|
-
[2 /* Not */]:
|
1948
|
+
[2 /* Not */]: 43 /* Not */,
|
1950
1949
|
[13 /* Or */]: 23 /* Or */,
|
1951
1950
|
[14 /* And */]: 22 /* And */,
|
1952
1951
|
[15 /* Xor */]: 24 /* Xor */
|
@@ -1999,19 +1998,19 @@ function getOrCreateKeywordKindDictionary(locale, dialect) {
|
|
1999
1998
|
}
|
2000
1999
|
var englishKeywords = new Lazy(() => [
|
2001
2000
|
{ keyword: "and", kind: 22 /* And */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2002
|
-
{ keyword: "as", kind:
|
2001
|
+
{ keyword: "as", kind: 42 /* As */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2003
2002
|
{ keyword: "aspect", kind: 3 /* Aspect */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2004
2003
|
{ keyword: "autotype", kind: 2 /* Autotype */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2005
|
-
{ keyword: "base", kind:
|
2004
|
+
{ keyword: "base", kind: 56 /* Base */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2006
2005
|
{ keyword: "break loop", kind: 33 /* BreakLoop */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2007
|
-
{ keyword: "case", kind:
|
2006
|
+
{ keyword: "case", kind: 45 /* Case */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2008
2007
|
{ keyword: "catch", kind: 32 /* Catch */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2009
2008
|
{ keyword: "cond", kind: 30 /* Cond */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2010
2009
|
{ keyword: "const", kind: 36 /* Const */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2011
2010
|
{ keyword: "continue loop", kind: 34 /* ContinueLoop */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2012
2011
|
{ keyword: "creation", kind: 31 /* Creation */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2013
|
-
{ keyword: "destroy", kind:
|
2014
|
-
{ keyword: "destruction", kind:
|
2012
|
+
{ keyword: "destroy", kind: 46 /* Dispose */, dialects: [1 /* Usual */] },
|
2013
|
+
{ keyword: "destruction", kind: 47 /* Destruction */, dialects: [1 /* Usual */] },
|
2015
2014
|
{ keyword: "else", kind: 10 /* Else */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2016
2015
|
{ keyword: "else if", kind: 11 /* ElseIf */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2017
2016
|
{ keyword: "error", kind: 20 /* Error */, dialects: [1 /* Usual */, 2 /* Special */] },
|
@@ -2019,28 +2018,28 @@ var englishKeywords = new Lazy(() => [
|
|
2019
2018
|
{ keyword: "for", kind: 35 /* For */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2020
2019
|
{ keyword: "from", kind: 9 /* From */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2021
2020
|
{ keyword: "function", kind: 12 /* Function */, dialects: [1 /* Usual */] },
|
2022
|
-
{ keyword: "get", kind:
|
2021
|
+
{ keyword: "get", kind: 58 /* Get */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2023
2022
|
{ keyword: "if", kind: 13 /* If */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2024
2023
|
{ keyword: "import", kind: 18 /* Import */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2025
2024
|
{ keyword: "important", kind: 19 /* Important */, dialects: [1 /* Usual */] },
|
2026
2025
|
{ keyword: "is", kind: 14 /* Is */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2027
2026
|
{ keyword: "let", kind: 1 /* Let */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2028
2027
|
{ keyword: "loop", kind: 26 /* Loop */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2029
|
-
{ keyword: "no", kind:
|
2030
|
-
{ keyword: "not", kind:
|
2031
|
-
{ keyword: "none", kind:
|
2028
|
+
{ keyword: "no", kind: 53 /* No */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2029
|
+
{ keyword: "not", kind: 43 /* Not */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2030
|
+
{ keyword: "none", kind: 57 /* None */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2032
2031
|
{ keyword: "object", kind: 4 /* Object */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2033
2032
|
{ keyword: "operation", kind: 12 /* Function */, dialects: [2 /* Special */] },
|
2034
2033
|
{ keyword: "or", kind: 23 /* Or */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2035
2034
|
{ keyword: "plain object", kind: 5 /* PlainObject */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2036
2035
|
{ keyword: "repeat while", kind: 27 /* RepeatWhile */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2037
|
-
{ keyword: "ref", kind:
|
2038
|
-
{ keyword: "reference", kind:
|
2036
|
+
{ keyword: "ref", kind: 54 /* Reference */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2037
|
+
{ keyword: "reference", kind: 54 /* Reference */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2039
2038
|
{ keyword: "return", kind: 15 /* Return */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2040
2039
|
{ keyword: "run", kind: 7 /* Run */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2041
|
-
{ keyword: "set", kind:
|
2042
|
-
{ keyword: "switch", kind:
|
2043
|
-
{ keyword: "translations", kind:
|
2040
|
+
{ keyword: "set", kind: 59 /* Set */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2041
|
+
{ keyword: "switch", kind: 44 /* Switch */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2042
|
+
{ keyword: "translations", kind: 55 /* Translations */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2044
2043
|
{ keyword: "try", kind: 8 /* Try */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2045
2044
|
{ keyword: "type", kind: 16 /* Type */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2046
2045
|
{ keyword: "var", kind: 1 /* Let */, dialects: [1 /* Usual */, 2 /* Special */] },
|
@@ -2048,21 +2047,20 @@ var englishKeywords = new Lazy(() => [
|
|
2048
2047
|
{ keyword: "when", kind: 29 /* When */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2049
2048
|
{ keyword: "while", kind: 25 /* While */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2050
2049
|
{ keyword: "xor", kind: 24 /* Xor */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2051
|
-
{ keyword: "yes", kind:
|
2050
|
+
{ keyword: "yes", kind: 52 /* Yes */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2052
2051
|
{ keyword: "yield", kind: 28 /* Yield */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2053
2052
|
{ keyword: "abstract", kind: 38 /* Abstract */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2054
|
-
{ keyword: "async", kind:
|
2053
|
+
{ keyword: "async", kind: 40 /* Async */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2055
2054
|
{ keyword: "basic", kind: 17 /* Basic */, dialects: [1 /* Usual */] },
|
2056
|
-
{ keyword: "global", kind:
|
2055
|
+
{ keyword: "global", kind: 41 /* Static */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2057
2056
|
{ keyword: "hidden", kind: 37 /* Hidden */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2058
|
-
{ keyword: "in type", kind:
|
2059
|
-
{ keyword: "in hierarchy", kind:
|
2060
|
-
{ keyword: "in file", kind:
|
2061
|
-
{ keyword: "in package", kind:
|
2062
|
-
{ keyword: "override", kind:
|
2063
|
-
{ keyword: "
|
2064
|
-
{ keyword: "
|
2065
|
-
{ keyword: "static", kind: 42 /* Static */, dialects: [1 /* Usual */, 2 /* Special */] }
|
2057
|
+
{ keyword: "in type", kind: 51 /* InType */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2058
|
+
{ keyword: "in hierarchy", kind: 48 /* InHierarchy */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2059
|
+
{ keyword: "in file", kind: 49 /* InFile */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2060
|
+
{ keyword: "in package", kind: 50 /* InPackage */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2061
|
+
{ keyword: "override", kind: 39 /* Redefined */, dialects: [1 /* Usual */] },
|
2062
|
+
{ keyword: "redefined", kind: 39 /* Redefined */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2063
|
+
{ keyword: "static", kind: 41 /* Static */, dialects: [1 /* Usual */, 2 /* Special */] }
|
2066
2064
|
]);
|
2067
2065
|
var russianKeywords = new Lazy(() => [
|
2068
2066
|
{ keyword: "\u0430\u0432\u0442\u043E\u0442\u0438\u043F", kind: 2 /* Autotype */, dialects: [1 /* Usual */, 2 /* Special */] },
|
@@ -2071,86 +2069,81 @@ var russianKeywords = new Lazy(() => [
|
|
2071
2069
|
{ keyword: "\u0432\u0430\u0440\u0438\u0430\u043D\u0442", kind: 6 /* Variant */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2072
2070
|
{ keyword: "\u0432\u0435\u0440\u043D\u0443\u0442\u044C", kind: 15 /* Return */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2073
2071
|
{ keyword: "\u0432\u043E\u0437\u0432\u0440\u0430\u0442", kind: 15 /* Return */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2074
|
-
{ keyword: "\u0432\u044B\u0431\u043E\u0440", kind:
|
2072
|
+
{ keyword: "\u0432\u044B\u0431\u043E\u0440", kind: 44 /* Switch */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2075
2073
|
{ keyword: "\u0432\u044B\u0434\u0430\u0442\u044C", kind: 28 /* Yield */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2076
2074
|
{ keyword: "\u0432\u044B\u043F\u043E\u043B\u043D\u0438\u0442\u044C", kind: 7 /* Run */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2077
|
-
{ keyword: "\u0434\u0430", kind:
|
2075
|
+
{ keyword: "\u0434\u0430", kind: 52 /* Yes */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2078
2076
|
{ keyword: "\u0434\u043B\u044F", kind: 35 /* For */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2079
2077
|
{ keyword: "\u0435\u0441\u043B\u0438", kind: 13 /* If */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2080
|
-
{ keyword: "\u0437\u0430\u043F\u0438\u0441\u044C", kind:
|
2078
|
+
{ keyword: "\u0437\u0430\u043F\u0438\u0441\u044C", kind: 59 /* Set */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2081
2079
|
{ keyword: "\u0438", kind: 22 /* And */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2082
2080
|
{ keyword: "\u0438\u0437", kind: 9 /* From */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2083
2081
|
{ keyword: "\u0438\u043B\u0438", kind: 23 /* Or */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2084
2082
|
{ keyword: "\u0438\u043D\u0430\u0447\u0435", kind: 10 /* Else */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2085
2083
|
{ keyword: "\u0438\u043D\u0430\u0447\u0435 \u0435\u0441\u043B\u0438", kind: 11 /* ElseIf */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2086
2084
|
{ keyword: "\u0438\u0441\u043A\u043B", kind: 24 /* Xor */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2087
|
-
{ keyword: "\u043A\u0430\u043A", kind:
|
2085
|
+
{ keyword: "\u043A\u0430\u043A", kind: 42 /* As */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2088
2086
|
{ keyword: "\u043A\u043E\u0433\u0434\u0430", kind: 29 /* When */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2089
2087
|
{ keyword: "\u043A\u043E\u043D\u0441\u0442", kind: 36 /* Const */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2090
|
-
{ keyword: "\u043B\u0438\u0431\u043E", kind:
|
2088
|
+
{ keyword: "\u043B\u0438\u0431\u043E", kind: 45 /* Case */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2091
2089
|
{ keyword: "\u043B\u043E\u0432\u0443\u0448\u043A\u0430", kind: 32 /* Catch */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2092
2090
|
{ keyword: "\u043D\u0430\u043F\u043E\u0441\u043B\u0435\u0434\u043E\u043A", kind: 21 /* Finally */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2093
|
-
{ keyword: "\u043D\u0435", kind:
|
2094
|
-
{ keyword: "\u043D\u0435\u0442", kind:
|
2091
|
+
{ keyword: "\u043D\u0435", kind: 43 /* Not */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2092
|
+
{ keyword: "\u043D\u0435\u0442", kind: 53 /* No */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2095
2093
|
{ keyword: "\u043E\u0431\u044A\u0435\u043A\u0442", kind: 4 /* Object */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2096
2094
|
{ keyword: "\u043E\u043F\u0435\u0440\u0430\u0446\u0438\u044F", kind: 12 /* Function */, dialects: [2 /* Special */] },
|
2097
|
-
{ keyword: "\u043E\u0441\u043D\u043E\u0432\u0430", kind:
|
2095
|
+
{ keyword: "\u043E\u0441\u043D\u043E\u0432\u0430", kind: 56 /* Base */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2098
2096
|
{ keyword: "\u043E\u0448\u0438\u0431\u043A\u0430", kind: 20 /* Error */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2099
|
-
{ keyword: "\u043F\u0435\u0440\u0435\u0432\u043E\u0434\u044B", kind:
|
2097
|
+
{ keyword: "\u043F\u0435\u0440\u0435\u0432\u043E\u0434\u044B", kind: 55 /* Translations */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2100
2098
|
{ keyword: "\u043F\u043E\u0432\u0442\u043E\u0440 \u043F\u043E\u043A\u0430", kind: 27 /* RepeatWhile */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2101
2099
|
{ keyword: "\u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0438\u0442\u044C", kind: 18 /* Import */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2102
2100
|
{ keyword: "\u043F\u043E\u043A\u0430", kind: 25 /* While */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2103
2101
|
{ keyword: "\u043F\u043E\u043F\u044B\u0442\u043A\u0430", kind: 8 /* Try */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2104
2102
|
{ keyword: "\u043F\u0440\u0435\u0440\u0432\u0430\u0442\u044C \u0446\u0438\u043A\u043B", kind: 33 /* BreakLoop */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2105
2103
|
{ keyword: "\u043F\u0440\u043E\u0441\u0442\u043E\u0439 \u043E\u0431\u044A\u0435\u043A\u0442", kind: 5 /* PlainObject */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2106
|
-
{ keyword: "\u043F\u0443\u0441\u0442\u043E", kind:
|
2104
|
+
{ keyword: "\u043F\u0443\u0441\u0442\u043E", kind: 57 /* None */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2107
2105
|
{ keyword: "\u043F\u0443\u0441\u0442\u044C", kind: 1 /* Let */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2108
2106
|
{ keyword: "\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439 \u0446\u0438\u043A\u043B", kind: 34 /* ContinueLoop */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2109
2107
|
{ keyword: "\u0441\u043E\u0437\u0434\u0430\u043D\u0438\u0435", kind: 31 /* Creation */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2110
|
-
{ keyword: "\u0441\u0441\u044B\u043B\u043A\u0430", kind:
|
2108
|
+
{ keyword: "\u0441\u0441\u044B\u043B\u043A\u0430", kind: 54 /* Reference */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2111
2109
|
{ keyword: "\u0442\u0438\u043F", kind: 16 /* Type */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2112
|
-
{ keyword: "\u0443\u043D\u0438\u0447\u0442\u043E\u0436\u0438\u0442\u044C", kind:
|
2113
|
-
{ keyword: "\u0443\u043D\u0438\u0447\u0442\u043E\u0436\u0435\u043D\u0438\u0435", kind:
|
2110
|
+
{ keyword: "\u0443\u043D\u0438\u0447\u0442\u043E\u0436\u0438\u0442\u044C", kind: 46 /* Dispose */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2111
|
+
{ keyword: "\u0443\u043D\u0438\u0447\u0442\u043E\u0436\u0435\u043D\u0438\u0435", kind: 47 /* Destruction */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2114
2112
|
{ keyword: "\u0443\u0441\u043B\u043E\u0432\u043D\u043E", kind: 30 /* Cond */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2115
2113
|
{ keyword: "\u0444\u0443\u043D\u043A\u0446\u0438\u044F", kind: 12 /* Function */, dialects: [1 /* Usual */] },
|
2116
2114
|
{ keyword: "\u0446\u0438\u043A\u043B", kind: 26 /* Loop */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2117
|
-
{ keyword: "\u0447\u0442\u0435\u043D\u0438\u0435", kind:
|
2115
|
+
{ keyword: "\u0447\u0442\u0435\u043D\u0438\u0435", kind: 58 /* Get */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2118
2116
|
{ keyword: "\u044D\u0442\u043E", kind: 14 /* Is */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2119
2117
|
{ keyword: "\u0430\u0431\u0441\u0442\u0440\u0430\u043A\u0442\u043D\u0430\u044F", kind: 38 /* Abstract */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2120
2118
|
{ keyword: "\u0430\u0431\u0441\u0442\u0440\u0430\u043A\u0442\u043D\u043E\u0435", kind: 38 /* Abstract */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2121
2119
|
{ keyword: "\u0430\u0431\u0441\u0442\u0440\u0430\u043A\u0442\u043D\u044B\u0439", kind: 38 /* Abstract */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2122
2120
|
{ keyword: "\u0430\u0431\u0441\u0442\u0440\u0430\u043A\u0442\u043D\u044B\u0435", kind: 38 /* Abstract */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2123
|
-
{ keyword: "\u0430\u0441\u0438\u043D\u0445\u0440\u043E\u043D\u043D\u0430\u044F", kind:
|
2124
|
-
{ keyword: "\u0430\u0441\u0438\u043D\u0445\u0440\u043E\u043D\u043D\u044B\u0439", kind:
|
2125
|
-
{ keyword: "\u0430\u0441\u0438\u043D\u0445\u0440\u043E\u043D\u043D\u043E\u0435", kind:
|
2126
|
-
{ keyword: "\u0430\u0441\u0438\u043D\u0445\u0440\u043E\u043D\u043D\u044B\u0435", kind:
|
2127
|
-
{ keyword: "\u0430\u0441\u0438\u043D\u0445\u0440\u043E\u043D\u043D\u043E", kind:
|
2128
|
-
{ keyword: "\u0431\u0430\u0437\u043E\u0432\u0430\u044F", kind: 17 /* Basic */, dialects: [1 /* Usual */] },
|
2129
|
-
{ keyword: "\u0431\u0430\u0437\u043E\u0432\u043E\u0435", kind: 17 /* Basic */, dialects: [1 /* Usual */] },
|
2130
|
-
{ keyword: "\u0431\u0430\u0437\u043E\u0432\u044B\u0439", kind: 17 /* Basic */, dialects: [1 /* Usual */] },
|
2131
|
-
{ keyword: "\u0431\u0430\u0437\u043E\u0432\u044B\u0435", kind: 17 /* Basic */, dialects: [1 /* Usual */] },
|
2132
|
-
{ keyword: "\u0432 \u0442\u0438\u043F\u0435", kind:
|
2133
|
-
{ keyword: "\u0432 \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u0438", kind:
|
2134
|
-
{ keyword: "\u0432 \u0444\u0430\u0439\u043B\u0435", kind:
|
2135
|
-
{ keyword: "\u0432 \u043F\u0430\u043A\u0435\u0442\u0435", kind:
|
2136
|
-
{ keyword: "\u0432\u0441\u0435\u043E\u0431\u0449\u0430\u044F", kind:
|
2137
|
-
{ keyword: "\u0432\u0441\u0435\u043E\u0431\u0449\u0435\u0435", kind:
|
2138
|
-
{ keyword: "\u0432\u0441\u0435\u043E\u0431\u0449\u0438\u0439", kind:
|
2139
|
-
{ keyword: "\u0432\u0441\u0435\u043E\u0431\u0449\u0438\u0435", kind:
|
2140
|
-
{ keyword: "\u0437\u0430\u043C\u0435\u043D\u0430", kind:
|
2141
|
-
{ keyword: "\u0437\u0430\u043C\u0435\u043D\u0435\u043D", kind:
|
2142
|
-
{ keyword: "\u0437\u0430\u043C\u0435\u043D\u0451\u043D", kind:
|
2143
|
-
{ keyword: "\u0437\u0430\u043C\u0435\u043D\u0435\u043D\u0430", kind:
|
2144
|
-
{ keyword: "\u0437\u0430\u043C\u0435\u043D\u0435\u043D\u043E", kind:
|
2145
|
-
{ keyword: "\
|
2146
|
-
{ keyword: "\
|
2147
|
-
{ keyword: "\
|
2148
|
-
{ keyword: "\
|
2149
|
-
{ keyword: "\u0437\u0430\u043C\u0435\u043D\u044F\u0435\u043C\u043E", kind: 39 /* Redefinable */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2150
|
-
{ keyword: "\u0438\u0441\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u043D\u0430\u044F", kind: 40 /* Redefined */, dialects: [1 /* Usual */] },
|
2151
|
-
{ keyword: "\u0438\u0441\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u043D\u043E\u0435", kind: 40 /* Redefined */, dialects: [1 /* Usual */] },
|
2152
|
-
{ keyword: "\u0438\u0441\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u043D\u044B\u0439", kind: 40 /* Redefined */, dialects: [1 /* Usual */] },
|
2153
|
-
{ keyword: "\u0438\u0441\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u043D\u044B\u0435", kind: 40 /* Redefined */, dialects: [1 /* Usual */] },
|
2121
|
+
{ keyword: "\u0430\u0441\u0438\u043D\u0445\u0440\u043E\u043D\u043D\u0430\u044F", kind: 40 /* Async */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2122
|
+
{ keyword: "\u0430\u0441\u0438\u043D\u0445\u0440\u043E\u043D\u043D\u044B\u0439", kind: 40 /* Async */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2123
|
+
{ keyword: "\u0430\u0441\u0438\u043D\u0445\u0440\u043E\u043D\u043D\u043E\u0435", kind: 40 /* Async */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2124
|
+
{ keyword: "\u0430\u0441\u0438\u043D\u0445\u0440\u043E\u043D\u043D\u044B\u0435", kind: 40 /* Async */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2125
|
+
{ keyword: "\u0430\u0441\u0438\u043D\u0445\u0440\u043E\u043D\u043D\u043E", kind: 40 /* Async */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2126
|
+
{ keyword: "\u0431\u0430\u0437\u043E\u0432\u0430\u044F", kind: 17 /* Basic */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2127
|
+
{ keyword: "\u0431\u0430\u0437\u043E\u0432\u043E\u0435", kind: 17 /* Basic */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2128
|
+
{ keyword: "\u0431\u0430\u0437\u043E\u0432\u044B\u0439", kind: 17 /* Basic */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2129
|
+
{ keyword: "\u0431\u0430\u0437\u043E\u0432\u044B\u0435", kind: 17 /* Basic */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2130
|
+
{ keyword: "\u0432 \u0442\u0438\u043F\u0435", kind: 51 /* InType */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2131
|
+
{ keyword: "\u0432 \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u0438", kind: 48 /* InHierarchy */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2132
|
+
{ keyword: "\u0432 \u0444\u0430\u0439\u043B\u0435", kind: 49 /* InFile */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2133
|
+
{ keyword: "\u0432 \u043F\u0430\u043A\u0435\u0442\u0435", kind: 50 /* InPackage */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2134
|
+
{ keyword: "\u0432\u0441\u0435\u043E\u0431\u0449\u0430\u044F", kind: 41 /* Static */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2135
|
+
{ keyword: "\u0432\u0441\u0435\u043E\u0431\u0449\u0435\u0435", kind: 41 /* Static */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2136
|
+
{ keyword: "\u0432\u0441\u0435\u043E\u0431\u0449\u0438\u0439", kind: 41 /* Static */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2137
|
+
{ keyword: "\u0432\u0441\u0435\u043E\u0431\u0449\u0438\u0435", kind: 41 /* Static */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2138
|
+
{ keyword: "\u0437\u0430\u043C\u0435\u043D\u0430", kind: 39 /* Redefined */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2139
|
+
{ keyword: "\u0437\u0430\u043C\u0435\u043D\u0435\u043D", kind: 39 /* Redefined */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2140
|
+
{ keyword: "\u0437\u0430\u043C\u0435\u043D\u0451\u043D", kind: 39 /* Redefined */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2141
|
+
{ keyword: "\u0437\u0430\u043C\u0435\u043D\u0435\u043D\u0430", kind: 39 /* Redefined */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2142
|
+
{ keyword: "\u0437\u0430\u043C\u0435\u043D\u0435\u043D\u043E", kind: 39 /* Redefined */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2143
|
+
{ keyword: "\u0438\u0441\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u043D\u0430\u044F", kind: 39 /* Redefined */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2144
|
+
{ keyword: "\u0438\u0441\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u043D\u043E\u0435", kind: 39 /* Redefined */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2145
|
+
{ keyword: "\u0438\u0441\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u043D\u044B\u0439", kind: 39 /* Redefined */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2146
|
+
{ keyword: "\u0438\u0441\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u043D\u044B\u0435", kind: 39 /* Redefined */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2154
2147
|
{ keyword: "\u0441\u043A\u0440\u044B\u0442\u043E", kind: 37 /* Hidden */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2155
2148
|
{ keyword: "\u0441\u043A\u0440\u044B\u0442\u044B\u0439", kind: 37 /* Hidden */, dialects: [1 /* Usual */, 2 /* Special */] },
|
2156
2149
|
{ keyword: "\u0441\u043A\u0440\u044B\u0442\u043E\u0435", kind: 37 /* Hidden */, dialects: [1 /* Usual */, 2 /* Special */] },
|
@@ -4494,7 +4487,7 @@ var BaseNode = class {
|
|
4494
4487
|
}
|
4495
4488
|
get rangeWithoutTrivia() {
|
4496
4489
|
const rangeWithTrivia = this.rangeWithTrivia;
|
4497
|
-
const leftmostToken = findLeftmostToken(
|
4490
|
+
const leftmostToken = this.findLeftmostToken();
|
4498
4491
|
const rangeStart = leftmostToken?.rangeWithoutTrivia.start ?? rangeWithTrivia.start;
|
4499
4492
|
const rangeEnd = rangeWithTrivia.end;
|
4500
4493
|
return new Range(rangeStart, rangeEnd);
|
@@ -4505,23 +4498,24 @@ var BaseNode = class {
|
|
4505
4498
|
get descendantCount() {
|
4506
4499
|
return this.green.descendantCount;
|
4507
4500
|
}
|
4508
|
-
|
4509
|
-
|
4510
|
-
|
4511
|
-
|
4512
|
-
|
4513
|
-
|
4514
|
-
|
4515
|
-
|
4516
|
-
|
4517
|
-
|
4518
|
-
|
4501
|
+
findLeftmostToken() {
|
4502
|
+
let result;
|
4503
|
+
const node = this.thisAsNode;
|
4504
|
+
if (node.kind === 0 /* Token */) {
|
4505
|
+
result = node;
|
4506
|
+
} else {
|
4507
|
+
for (const child of node.children) {
|
4508
|
+
if (child !== void 0) {
|
4509
|
+
result = child.findLeftmostToken();
|
4510
|
+
if (result !== void 0) {
|
4511
|
+
break;
|
4512
|
+
}
|
4519
4513
|
}
|
4520
4514
|
}
|
4521
4515
|
}
|
4516
|
+
return result;
|
4522
4517
|
}
|
4523
|
-
|
4524
|
-
}
|
4518
|
+
};
|
4525
4519
|
|
4526
4520
|
// source/tree/red/Internal.ts
|
4527
4521
|
function childRangeStart(parent, childIndex) {
|
@@ -8991,19 +8985,37 @@ var BaseNode2 = class {
|
|
8991
8985
|
* Информация для оценки размера дерева при отладке.
|
8992
8986
|
*/
|
8993
8987
|
get descendantCount() {
|
8994
|
-
return countDescendants(
|
8988
|
+
return this.countDescendants();
|
8995
8989
|
}
|
8996
|
-
|
8997
|
-
|
8998
|
-
|
8999
|
-
|
9000
|
-
|
9001
|
-
|
9002
|
-
|
8990
|
+
findLeftmostToken() {
|
8991
|
+
let result;
|
8992
|
+
const node = this.thisAsNode;
|
8993
|
+
if (node.kind === 0 /* Token */) {
|
8994
|
+
result = node;
|
8995
|
+
} else {
|
8996
|
+
for (const child of node.children) {
|
8997
|
+
if (child !== void 0) {
|
8998
|
+
result = child.findLeftmostToken();
|
8999
|
+
if (result !== void 0) {
|
9000
|
+
break;
|
9001
|
+
}
|
9002
|
+
}
|
9003
|
+
}
|
9003
9004
|
}
|
9005
|
+
return result;
|
9004
9006
|
}
|
9005
|
-
|
9006
|
-
|
9007
|
+
countDescendants() {
|
9008
|
+
let result = 0;
|
9009
|
+
const node = this.thisAsNode;
|
9010
|
+
for (const child of node.children) {
|
9011
|
+
if (child !== void 0) {
|
9012
|
+
result++;
|
9013
|
+
result += child.countDescendants();
|
9014
|
+
}
|
9015
|
+
}
|
9016
|
+
return result;
|
9017
|
+
}
|
9018
|
+
};
|
9007
9019
|
|
9008
9020
|
// source/tree/green/Nodes.ts
|
9009
9021
|
var SourceFile2 = class extends BaseNode2 {
|
@@ -12474,7 +12486,7 @@ var TokenFlags2 = /* @__PURE__ */ ((TokenFlags3) => {
|
|
12474
12486
|
TokenFlags3[TokenFlags3["BackingVariableName"] = 128] = "BackingVariableName";
|
12475
12487
|
return TokenFlags3;
|
12476
12488
|
})(TokenFlags2 || {});
|
12477
|
-
var
|
12489
|
+
var Token6 = class extends BaseNode2 {
|
12478
12490
|
constructor(tokenKind, value, leadingTrivia, flags, ifOperatorNameThenKind) {
|
12479
12491
|
super();
|
12480
12492
|
this.kind = 0 /* Token */;
|
@@ -12698,39 +12710,38 @@ var DiagnosticCode = /* @__PURE__ */ ((DiagnosticCode2) => {
|
|
12698
12710
|
DiagnosticCode2[DiagnosticCode2["FunctionIsDeclaredButNotUsed"] = 273] = "FunctionIsDeclaredButNotUsed";
|
12699
12711
|
DiagnosticCode2[DiagnosticCode2["TypeParameterIsDeclaredButNotUsed"] = 274] = "TypeParameterIsDeclaredButNotUsed";
|
12700
12712
|
DiagnosticCode2[DiagnosticCode2["DefaultConstructorArgumentsMustBeNamed"] = 275] = "DefaultConstructorArgumentsMustBeNamed";
|
12701
|
-
DiagnosticCode2[DiagnosticCode2["
|
12713
|
+
DiagnosticCode2[DiagnosticCode2["IncorrectBodyOfBasicAliasTypeMethod"] = 276] = "IncorrectBodyOfBasicAliasTypeMethod";
|
12702
12714
|
DiagnosticCode2[DiagnosticCode2["TheFollowingDeclarationsAreNotTranslated0"] = 277] = "TheFollowingDeclarationsAreNotTranslated0";
|
12703
12715
|
DiagnosticCode2[DiagnosticCode2["TheFollowingDeclarationAreNotTranslated0And1More"] = 278] = "TheFollowingDeclarationAreNotTranslated0And1More";
|
12704
12716
|
DiagnosticCode2[DiagnosticCode2["OperatorFunctionMustNotBeStatic"] = 279] = "OperatorFunctionMustNotBeStatic";
|
12705
12717
|
DiagnosticCode2[DiagnosticCode2["OperatorFunction0MustNotHaveParameters"] = 280] = "OperatorFunction0MustNotHaveParameters";
|
12706
12718
|
DiagnosticCode2[DiagnosticCode2["OperatorFunction0MustHaveOneParameter"] = 281] = "OperatorFunction0MustHaveOneParameter";
|
12707
12719
|
DiagnosticCode2[DiagnosticCode2["OperatorFunction0MustHaveNoMoreThanOneParameter"] = 282] = "OperatorFunction0MustHaveNoMoreThanOneParameter";
|
12708
|
-
DiagnosticCode2[DiagnosticCode2["
|
12720
|
+
DiagnosticCode2[DiagnosticCode2["CorrespondingBasicTypeMemberNotFound"] = 283] = "CorrespondingBasicTypeMemberNotFound";
|
12709
12721
|
DiagnosticCode2[DiagnosticCode2["ConstructorCannotBeDeclaredAsBasic"] = 284] = "ConstructorCannotBeDeclaredAsBasic";
|
12710
|
-
DiagnosticCode2[DiagnosticCode2["
|
12711
|
-
DiagnosticCode2[DiagnosticCode2["
|
12712
|
-
DiagnosticCode2[DiagnosticCode2["
|
12713
|
-
DiagnosticCode2[DiagnosticCode2["
|
12714
|
-
DiagnosticCode2[DiagnosticCode2["
|
12715
|
-
DiagnosticCode2[DiagnosticCode2["
|
12716
|
-
DiagnosticCode2[DiagnosticCode2["
|
12717
|
-
DiagnosticCode2[DiagnosticCode2["
|
12718
|
-
DiagnosticCode2[DiagnosticCode2["
|
12719
|
-
DiagnosticCode2[DiagnosticCode2["
|
12720
|
-
DiagnosticCode2[DiagnosticCode2["
|
12721
|
-
DiagnosticCode2[DiagnosticCode2["
|
12722
|
-
DiagnosticCode2[DiagnosticCode2["
|
12723
|
-
DiagnosticCode2[DiagnosticCode2["
|
12724
|
-
DiagnosticCode2[DiagnosticCode2["
|
12725
|
-
DiagnosticCode2[DiagnosticCode2["
|
12726
|
-
DiagnosticCode2[DiagnosticCode2["
|
12727
|
-
DiagnosticCode2[DiagnosticCode2["
|
12728
|
-
DiagnosticCode2[DiagnosticCode2["
|
12729
|
-
DiagnosticCode2[DiagnosticCode2["
|
12730
|
-
DiagnosticCode2[DiagnosticCode2["
|
12731
|
-
DiagnosticCode2[DiagnosticCode2["
|
12732
|
-
DiagnosticCode2[DiagnosticCode2["
|
12733
|
-
DiagnosticCode2[DiagnosticCode2["WriteFunctionHasNoCorrespondingReadFunction"] = 308] = "WriteFunctionHasNoCorrespondingReadFunction";
|
12722
|
+
DiagnosticCode2[DiagnosticCode2["ConstructorCannotBeDeclaredAsOverridden"] = 285] = "ConstructorCannotBeDeclaredAsOverridden";
|
12723
|
+
DiagnosticCode2[DiagnosticCode2["AsyncFunctionCanOnlyBeCalledFromFunctionMarkedWithAsyncModifier"] = 286] = "AsyncFunctionCanOnlyBeCalledFromFunctionMarkedWithAsyncModifier";
|
12724
|
+
DiagnosticCode2[DiagnosticCode2["TagNotFound"] = 287] = "TagNotFound";
|
12725
|
+
DiagnosticCode2[DiagnosticCode2["TypeOrFunctionNameExpected"] = 288] = "TypeOrFunctionNameExpected";
|
12726
|
+
DiagnosticCode2[DiagnosticCode2["PackageNameOrAliasExpected"] = 289] = "PackageNameOrAliasExpected";
|
12727
|
+
DiagnosticCode2[DiagnosticCode2["ExpressionCanBeNone"] = 290] = "ExpressionCanBeNone";
|
12728
|
+
DiagnosticCode2[DiagnosticCode2["TargetVariableExpressionInTheAssignmentStatementCannotContainQuestionOperator"] = 291] = "TargetVariableExpressionInTheAssignmentStatementCannotContainQuestionOperator";
|
12729
|
+
DiagnosticCode2[DiagnosticCode2["UnreachableCode"] = 292] = "UnreachableCode";
|
12730
|
+
DiagnosticCode2[DiagnosticCode2["RecursionOccurredWhileCalculatingTheTypeOfTheExpression"] = 293] = "RecursionOccurredWhileCalculatingTheTypeOfTheExpression";
|
12731
|
+
DiagnosticCode2[DiagnosticCode2["RecursionOccurredWhileInferringTheTypeOfTheVariable"] = 294] = "RecursionOccurredWhileInferringTheTypeOfTheVariable";
|
12732
|
+
DiagnosticCode2[DiagnosticCode2["ScopeAlreadyContainsDeclarationWithTheSameName"] = 295] = "ScopeAlreadyContainsDeclarationWithTheSameName";
|
12733
|
+
DiagnosticCode2[DiagnosticCode2["ScopeAlreadyContainsFunctionWithTheSameNameAndParameterTypes"] = 296] = "ScopeAlreadyContainsFunctionWithTheSameNameAndParameterTypes";
|
12734
|
+
DiagnosticCode2[DiagnosticCode2["ParameterName0ConflictsWithAutomaticallyGeneratedVariableName"] = 297] = "ParameterName0ConflictsWithAutomaticallyGeneratedVariableName";
|
12735
|
+
DiagnosticCode2[DiagnosticCode2["PackageAlreadyContainsDeclarationWithTheSameName"] = 298] = "PackageAlreadyContainsDeclarationWithTheSameName";
|
12736
|
+
DiagnosticCode2[DiagnosticCode2["PackageAlreadyContainsFunctionWithTheSameNameAndParameterTypes"] = 299] = "PackageAlreadyContainsFunctionWithTheSameNameAndParameterTypes";
|
12737
|
+
DiagnosticCode2[DiagnosticCode2["PackageAlreadyContainsTypeWithTheSameNameAndSameOrIntersectingTypeParameterCount"] = 300] = "PackageAlreadyContainsTypeWithTheSameNameAndSameOrIntersectingTypeParameterCount";
|
12738
|
+
DiagnosticCode2[DiagnosticCode2["PackageAliasWithTheSameNameAlreadyExits"] = 301] = "PackageAliasWithTheSameNameAlreadyExits";
|
12739
|
+
DiagnosticCode2[DiagnosticCode2["PackageCanHaveOnlyEntryPoint"] = 302] = "PackageCanHaveOnlyEntryPoint";
|
12740
|
+
DiagnosticCode2[DiagnosticCode2["PackageCanHaveOnlyOneConstructor"] = 303] = "PackageCanHaveOnlyOneConstructor";
|
12741
|
+
DiagnosticCode2[DiagnosticCode2["VariableIsUsedBeforeItsDeclaration"] = 304] = "VariableIsUsedBeforeItsDeclaration";
|
12742
|
+
DiagnosticCode2[DiagnosticCode2["VariableMayNotHasBeenAssignedBeforeUsage"] = 305] = "VariableMayNotHasBeenAssignedBeforeUsage";
|
12743
|
+
DiagnosticCode2[DiagnosticCode2["NotAllCodePathsReturnAValueAndResultLocalVariableMayNotHasBeenAssigned"] = 306] = "NotAllCodePathsReturnAValueAndResultLocalVariableMayNotHasBeenAssigned";
|
12744
|
+
DiagnosticCode2[DiagnosticCode2["WriteFunctionHasNoCorrespondingReadFunction"] = 307] = "WriteFunctionHasNoCorrespondingReadFunction";
|
12734
12745
|
DiagnosticCode2[DiagnosticCode2["CannotFindTsLibDirectoryBaseSearchPaths0"] = 401] = "CannotFindTsLibDirectoryBaseSearchPaths0";
|
12735
12746
|
DiagnosticCode2[DiagnosticCode2["SourceFile0IsNotPartOfThePackageAndWontBeLoaded"] = 402] = "SourceFile0IsNotPartOfThePackageAndWontBeLoaded";
|
12736
12747
|
DiagnosticCode2[DiagnosticCode2["ProgramWithoutMainPackageCannotBeCompiled"] = 403] = "ProgramWithoutMainPackageCannotBeCompiled";
|
@@ -12889,39 +12900,38 @@ var englishErrorMessages = {
|
|
12889
12900
|
[273 /* FunctionIsDeclaredButNotUsed */]: "Function is declared but not used.",
|
12890
12901
|
[274 /* TypeParameterIsDeclaredButNotUsed */]: "Type parameter is declared but not used.",
|
12891
12902
|
[275 /* DefaultConstructorArgumentsMustBeNamed */]: "Default constructor arguments must be named.",
|
12892
|
-
[276 /*
|
12903
|
+
[276 /* IncorrectBodyOfBasicAliasTypeMethod */]: "Body of overridden method declared in alias type must consist of a call to base method of original type with same parameters and return type.",
|
12893
12904
|
[277 /* TheFollowingDeclarationsAreNotTranslated0 */]: "The following declarations are not translated: {0}.",
|
12894
12905
|
[278 /* TheFollowingDeclarationAreNotTranslated0And1More */]: "The following declarations are not translated: {0} and {1} more.",
|
12895
12906
|
[279 /* OperatorFunctionMustNotBeStatic */]: "Operator function must not be static.",
|
12896
12907
|
[280 /* OperatorFunction0MustNotHaveParameters */]: "Operator function '{0}' must not have parameters.",
|
12897
12908
|
[281 /* OperatorFunction0MustHaveOneParameter */]: "Operator function '{0}' must have one parameter.",
|
12898
12909
|
[282 /* OperatorFunction0MustHaveNoMoreThanOneParameter */]: "Operator function '{0}' must have no more than one parameter.",
|
12899
|
-
[283 /*
|
12910
|
+
[283 /* CorrespondingBasicTypeMemberNotFound */]: "Corresponding basic type member not found.",
|
12900
12911
|
[284 /* ConstructorCannotBeDeclaredAsBasic */]: "Constructor cannot be declared as basic.",
|
12901
|
-
[285 /*
|
12902
|
-
[286 /*
|
12903
|
-
[287 /*
|
12904
|
-
[288 /*
|
12905
|
-
[289 /*
|
12906
|
-
[290 /*
|
12907
|
-
[291 /*
|
12908
|
-
[292 /*
|
12909
|
-
[293 /*
|
12910
|
-
[294 /*
|
12911
|
-
[295 /*
|
12912
|
-
[296 /*
|
12913
|
-
[297 /*
|
12914
|
-
[298 /*
|
12915
|
-
[299 /*
|
12916
|
-
[300 /*
|
12917
|
-
[301 /*
|
12918
|
-
[
|
12919
|
-
[
|
12920
|
-
[
|
12921
|
-
[305 /*
|
12922
|
-
[306 /*
|
12923
|
-
[307 /*
|
12924
|
-
[308 /* WriteFunctionHasNoCorrespondingReadFunction */]: "Write function has no corresponding read function.",
|
12912
|
+
[285 /* ConstructorCannotBeDeclaredAsOverridden */]: "Constructor cannot be declared as overridden.",
|
12913
|
+
[286 /* AsyncFunctionCanOnlyBeCalledFromFunctionMarkedWithAsyncModifier */]: "Async function can only be called from function marked with 'async' modifier.",
|
12914
|
+
[287 /* TagNotFound */]: "Tag not found.",
|
12915
|
+
[288 /* TypeOrFunctionNameExpected */]: "Type or function name expected.",
|
12916
|
+
[289 /* PackageNameOrAliasExpected */]: "Package name or alias expected.",
|
12917
|
+
[290 /* ExpressionCanBeNone */]: "Expression can be none.",
|
12918
|
+
[291 /* TargetVariableExpressionInTheAssignmentStatementCannotContainQuestionOperator */]: "Target variable expression in the assignment statement cannot contain '?' operator used to check for 'none' value.",
|
12919
|
+
[292 /* UnreachableCode */]: "Unreachable code.",
|
12920
|
+
[293 /* RecursionOccurredWhileCalculatingTheTypeOfTheExpression */]: "Recursion occurred while calculating the type of the expression. To fix this error, specify the type of the variable explicitly.",
|
12921
|
+
[294 /* RecursionOccurredWhileInferringTheTypeOfTheVariable */]: "Recursion occurred while inferring the type of the variable. To fix this error, specify the type of the variable explicitly.",
|
12922
|
+
[295 /* ScopeAlreadyContainsDeclarationWithTheSameName */]: "Scope already contains declaration with the same name.",
|
12923
|
+
[296 /* ScopeAlreadyContainsFunctionWithTheSameNameAndParameterTypes */]: "Scope already contains function with the same name and parameter types.",
|
12924
|
+
[297 /* ParameterName0ConflictsWithAutomaticallyGeneratedVariableName */]: "Parameter name '{0}' conflicts with automatically generated variable name.",
|
12925
|
+
[298 /* PackageAlreadyContainsDeclarationWithTheSameName */]: "Package already contains declaration with the same name.",
|
12926
|
+
[299 /* PackageAlreadyContainsFunctionWithTheSameNameAndParameterTypes */]: "Package already contains function with the same name and parameter types.",
|
12927
|
+
[300 /* PackageAlreadyContainsTypeWithTheSameNameAndSameOrIntersectingTypeParameterCount */]: "Package already contains type with the same name and same or intersecting type parameter count.",
|
12928
|
+
[301 /* PackageAliasWithTheSameNameAlreadyExits */]: "Package alias with the same name already exits.",
|
12929
|
+
[303 /* PackageCanHaveOnlyOneConstructor */]: "Package can have only one constructor.",
|
12930
|
+
[302 /* PackageCanHaveOnlyEntryPoint */]: "Package can have only entry point.",
|
12931
|
+
[304 /* VariableIsUsedBeforeItsDeclaration */]: "Variable is used before it's declaration.",
|
12932
|
+
[305 /* VariableMayNotHasBeenAssignedBeforeUsage */]: "Variable may not has been assigned before usage.",
|
12933
|
+
[306 /* NotAllCodePathsReturnAValueAndResultLocalVariableMayNotHasBeenAssigned */]: "Not all code paths return a value and 'result' local variable may not has been assigned.",
|
12934
|
+
[307 /* WriteFunctionHasNoCorrespondingReadFunction */]: "Write function has no corresponding read function.",
|
12925
12935
|
[401 /* CannotFindTsLibDirectoryBaseSearchPaths0 */]: "Can not find directory with TypeScript library. Base search paths: {0}.",
|
12926
12936
|
[402 /* SourceFile0IsNotPartOfThePackageAndWontBeLoaded */]: "Source file '{0}' is not part of the package and won't be loaded.",
|
12927
12937
|
[403 /* ProgramWithoutMainPackageCannotBeCompiled */]: "Program without main package can not be compiled.",
|
@@ -13041,40 +13051,39 @@ var russianErrorMessages = {
|
|
13041
13051
|
[273 /* FunctionIsDeclaredButNotUsed */]: "\u0424\u0443\u043D\u043A\u0446\u0438\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
13052
|
[274 /* TypeParameterIsDeclaredButNotUsed */]: "\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440 \u0442\u0438\u043F\u0430 \u043E\u0431\u044A\u044F\u0432\u043B\u0435\u043D, \u043D\u043E \u043D\u0435 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442\u0441\u044F.",
|
13043
13053
|
[275 /* 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.",
|
13044
|
-
[276 /*
|
13054
|
+
[276 /* IncorrectBodyOfBasicAliasTypeMethod */]: "\u0422\u0435\u043B\u043E \u0438\u0441\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u043D\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 \u0431\u0430\u0437\u043E\u0432\u043E\u0433\u043E \u043C\u0435\u0442\u043E\u0434\u0430 \u043E\u0440\u0438\u0433\u0438\u043D\u0430\u043B\u044C\u043D\u043E\u0433\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.",
|
13045
13055
|
[277 /* 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}.",
|
13046
13056
|
[278 /* 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}.",
|
13047
13057
|
[279 /* OperatorFunctionMustNotBeStatic */]: "\u0424\u0443\u043D\u043A\u0446\u0438\u044F \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 \u043D\u0435 \u0434\u043E\u043B\u0436\u043D\u0430 \u0431\u044B\u0442\u044C \u0432\u0441\u0435\u043E\u0431\u0449\u0435\u0439.",
|
13048
13058
|
[280 /* OperatorFunction0MustNotHaveParameters */]: "\u0424\u0443\u043D\u043A\u0446\u0438\u044F \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 '{0}' \u043D\u0435 \u0434\u043E\u043B\u0436\u043D\u0430 \u0438\u043C\u0435\u0442\u044C \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u043E\u0432.",
|
13049
13059
|
[281 /* OperatorFunction0MustHaveOneParameter */]: "\u0424\u0443\u043D\u043A\u0446\u0438\u044F \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 '{0}' \u0434\u043E\u043B\u0436\u043D\u0430 \u0438\u043C\u0435\u0442\u044C \u043E\u0434\u0438\u043D \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440.",
|
13050
13060
|
[282 /* OperatorFunction0MustHaveNoMoreThanOneParameter */]: "\u0424\u0443\u043D\u043A\u0446\u0438\u044F \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 '{0}' \u0434\u043E\u043B\u0436\u043D\u0430 \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.",
|
13051
|
-
[283 /*
|
13061
|
+
[283 /* CorrespondingBasicTypeMemberNotFound */]: "\u041D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044E\u0449\u0438\u0439 \u0431\u0430\u0437\u043E\u0432\u044B\u0439 \u0447\u043B\u0435\u043D \u0442\u0438\u043F\u0430.",
|
13052
13062
|
[284 /* ConstructorCannotBeDeclaredAsBasic */]: "\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440 \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u043E\u0431\u044A\u044F\u0432\u043B\u0435\u043D \u043A\u0430\u043A \u0431\u0430\u0437\u043E\u0432\u044B\u0439.",
|
13053
|
-
[285 /*
|
13054
|
-
[286 /*
|
13055
|
-
[287 /* AsyncFunctionCanOnlyBeCalledFromFunctionMarkedWithAsyncModifier */]: "\u0410\u0441\u0438\u043D\u0445\u0440\u043E\u043D\u043D\u0430\u044F \u0444\u0443\u043D\u043A\u0446\u0438\u044F \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u0432\u044B\u0437\u0432\u0430\u043D\u0430 \u0442\u043E\u043B\u044C\u043A\u043E \u0438\u0437 \u0444\u0443\u043D\u043A\u0446\u0438\u0438, \u043F\u043E\u043C\u0435\u0447\u0435\u043D\u043D\u043E\u0439 \u043C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u043E\u043C '\u0430\u0441\u0438\u043D\u0445\u0440\u043E\u043D\u043D\u043E'.",
|
13063
|
+
[285 /* ConstructorCannotBeDeclaredAsOverridden */]: "\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440 \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u043E\u0431\u044A\u044F\u0432\u043B\u0435\u043D \u043A\u0430\u043A \u0438\u0441\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u043D\u044B\u0439.",
|
13064
|
+
[286 /* AsyncFunctionCanOnlyBeCalledFromFunctionMarkedWithAsyncModifier */]: "\u0410\u0441\u0438\u043D\u0445\u0440\u043E\u043D\u043D\u0430\u044F \u0444\u0443\u043D\u043A\u0446\u0438\u044F \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u0432\u044B\u0437\u0432\u0430\u043D\u0430 \u0442\u043E\u043B\u044C\u043A\u043E \u0438\u0437 \u0444\u0443\u043D\u043A\u0446\u0438\u0438, \u043F\u043E\u043C\u0435\u0447\u0435\u043D\u043D\u043E\u0439 \u043C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u043E\u043C '\u0430\u0441\u0438\u043D\u0445\u0440\u043E\u043D\u043D\u043E'.",
|
13056
13065
|
[130 /* TagNameExpected */]: "\u041E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u0438\u043C\u044F \u0442\u0435\u0433\u0430",
|
13057
|
-
[
|
13058
|
-
[
|
13059
|
-
[
|
13060
|
-
[
|
13061
|
-
[
|
13062
|
-
[
|
13063
|
-
[
|
13064
|
-
[
|
13065
|
-
[
|
13066
|
-
[
|
13067
|
-
[
|
13068
|
-
[
|
13069
|
-
[
|
13070
|
-
[
|
13071
|
-
[
|
13072
|
-
[
|
13073
|
-
[
|
13074
|
-
[
|
13075
|
-
[
|
13076
|
-
[
|
13077
|
-
[
|
13066
|
+
[287 /* TagNotFound */]: "\u0422\u0435\u0433 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D.",
|
13067
|
+
[288 /* TypeOrFunctionNameExpected */]: "\u041E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u0438\u043C\u044F \u0442\u0438\u043F\u0430 \u0438\u043B\u0438 \u0444\u0443\u043D\u043A\u0446\u0438\u0438.",
|
13068
|
+
[289 /* PackageNameOrAliasExpected */]: "\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.",
|
13069
|
+
[290 /* ExpressionCanBeNone */]: "\u0412\u044B\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u043C\u043E\u0436\u0435\u0442 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 '\u043F\u0443\u0441\u0442\u043E'.",
|
13070
|
+
[291 /* TargetVariableExpressionInTheAssignmentStatementCannotContainQuestionOperator */]: "\u0412\u044B\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0446\u0435\u043B\u0435\u0432\u043E\u0439 \u043F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0432 \u043A\u043E\u043C\u0430\u043D\u0434\u0435 \u043F\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043D\u0438\u044F \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C \u0437\u043D\u0430\u043A \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 '?' \u0434\u043B\u044F \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0438 \u043D\u0430 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 '\u043F\u0443\u0441\u0442\u043E'.",
|
13071
|
+
[292 /* UnreachableCode */]: "\u041D\u0435\u0434\u043E\u0441\u0442\u0438\u0436\u0438\u043C\u044B\u0439 \u043A\u043E\u0434.",
|
13072
|
+
[293 /* RecursionOccurredWhileCalculatingTheTypeOfTheExpression */]: "\u041F\u0440\u0438 \u0432\u044B\u0447\u0438\u0441\u043B\u0435\u043D\u0438\u0438 \u0442\u0438\u043F\u0430 \u0432\u044B\u0440\u0430\u0436\u0435\u043D\u0438\u044F \u043F\u0440\u043E\u0438\u0437\u043E\u0448\u043B\u0430 \u0440\u0435\u043A\u0443\u0440\u0441\u0438\u044F. \u0427\u0442\u043E\u0431\u044B \u0438\u0441\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u044D\u0442\u0443 \u043E\u0448\u0438\u0431\u043A\u0443, \u0434\u043E\u0431\u0430\u0432\u044C\u0442\u0435 \u044F\u0432\u043D\u043E\u0435 \u0443\u043A\u0430\u0437\u0430\u043D\u0438\u0435 \u0442\u0438\u043F\u0430 \u043F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439.",
|
13073
|
+
[294 /* RecursionOccurredWhileInferringTheTypeOfTheVariable */]: "\u041F\u0440\u0438 \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u0438\u0438 \u0442\u0438\u043F\u0430 \u043F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043F\u0440\u043E\u0438\u0437\u043E\u0448\u043B\u0430 \u0440\u0435\u043A\u0443\u0440\u0441\u0438\u044F. \u0427\u0442\u043E\u0431\u044B \u0438\u0441\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u044D\u0442\u0443 \u043E\u0448\u0438\u0431\u043A\u0443, \u0434\u043E\u0431\u0430\u0432\u044C\u0442\u0435 \u044F\u0432\u043D\u043E\u0435 \u0443\u043A\u0430\u0437\u0430\u043D\u0438\u0435 \u0442\u0438\u043F\u0430 \u043F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439.",
|
13074
|
+
[295 /* ScopeAlreadyContainsDeclarationWithTheSameName */]: "\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0432\u0438\u0434\u0438\u043C\u043E\u0441\u0442\u0438 \u0443\u0436\u0435 \u0441\u043E\u0434\u0435\u0440\u0436\u0438\u0442 \u043E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u0438\u0435 \u0441 \u0442\u0430\u043A\u0438\u043C \u0436\u0435 \u0438\u043C\u0435\u043D\u0435\u043C.",
|
13075
|
+
[296 /* ScopeAlreadyContainsFunctionWithTheSameNameAndParameterTypes */]: "\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0432\u0438\u0434\u0438\u043C\u043E\u0441\u0442\u0438 \u0443\u0436\u0435 \u0441\u043E\u0434\u0435\u0440\u0436\u0438\u0442 \u0444\u0443\u043D\u043A\u0446\u0438\u044E \u0441 \u0442\u0430\u043A\u0438\u043C \u0436\u0435 \u0438\u043C\u0435\u043D\u0435\u043C \u0438 \u0442\u0438\u043F\u0430\u043C\u0438 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u043E\u0432.",
|
13076
|
+
[297 /* ParameterName0ConflictsWithAutomaticallyGeneratedVariableName */]: "\u0418\u043C\u044F \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0430 '{0}' \u043A\u043E\u043D\u0444\u043B\u0438\u043A\u0442\u0443\u0435\u0442 \u0441 \u0438\u043C\u0435\u043D\u0435\u043C \u043F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439, \u0441\u043E\u0437\u0434\u0430\u043D\u043D\u043E\u0439 \u043A\u043E\u043C\u043F\u0438\u043B\u044F\u0442\u043E\u0440\u043E\u043C \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438.",
|
13077
|
+
[298 /* PackageAlreadyContainsDeclarationWithTheSameName */]: "\u041F\u0430\u043A\u0435\u0442 \u0443\u0436\u0435 \u0441\u043E\u0434\u0435\u0440\u0436\u0438\u0442 \u043E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u0438\u0435 \u0441 \u0442\u0430\u043A\u0438\u043C \u0436\u0435 \u0438\u043C\u0435\u043D\u0435\u043C.",
|
13078
|
+
[299 /* PackageAlreadyContainsFunctionWithTheSameNameAndParameterTypes */]: "\u041F\u0430\u043A\u0435\u0442 \u0443\u0436\u0435 \u0441\u043E\u0434\u0435\u0440\u0436\u0438\u0442 \u0444\u0443\u043D\u043A\u0446\u0438\u044E \u0441 \u0442\u0430\u043A\u0438\u043C \u0436\u0435 \u0438\u043C\u0435\u043D\u0435\u043C \u0438 \u0442\u0438\u043F\u0430\u043C\u0438 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u043E\u0432.",
|
13079
|
+
[300 /* PackageAlreadyContainsTypeWithTheSameNameAndSameOrIntersectingTypeParameterCount */]: "\u041F\u0430\u043A\u0435\u0442 \u0443\u0436\u0435 \u0441\u043E\u0434\u0435\u0440\u0436\u0438\u0442 \u0442\u0438\u043F \u0441 \u0442\u0430\u043A\u0438\u043C \u0436\u0435 \u0438\u043C\u0435\u043D\u0435\u043C \u0438 \u0442\u0430\u043A\u0438\u043C \u0436\u0435 \u0438\u043B\u0438 \u043F\u0435\u0440\u0435\u0441\u0435\u043A\u0430\u044E\u0449\u0438\u043C\u0441\u044F \u043A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E\u043C \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u043E\u0432 \u0442\u0438\u043F\u0430.",
|
13080
|
+
[301 /* PackageAliasWithTheSameNameAlreadyExits */]: "\u041F\u0441\u0435\u0432\u0434\u043E\u043D\u0438\u043C \u043F\u0430\u043A\u0435\u0442\u0430 \u0441 \u0442\u0430\u043A\u0438\u043C \u0436\u0435 \u0438\u043C\u0435\u043D\u0435\u043C \u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442.",
|
13081
|
+
[303 /* PackageCanHaveOnlyOneConstructor */]: "\u041F\u0430\u043A\u0435\u0442 \u043C\u043E\u0436\u0435\u0442 \u0438\u043C\u0435\u0442\u044C \u0442\u043E\u043B\u044C\u043A\u043E \u043E\u0434\u0438\u043D \u043A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440.",
|
13082
|
+
[302 /* PackageCanHaveOnlyEntryPoint */]: "\u041F\u0430\u043A\u0435\u0442 \u043C\u043E\u0436\u0435\u0442 \u0438\u043C\u0435\u0442\u044C \u0442\u043E\u043B\u044C\u043A\u043E \u043E\u0434\u0438\u043D \u0431\u043B\u043E\u043A '\u0432\u044B\u043F\u043E\u043B\u043D\u0438\u0442\u044C'.",
|
13083
|
+
[304 /* VariableIsUsedBeforeItsDeclaration */]: "\u041F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u0430\u044F \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442\u0441\u044F \u0434\u043E \u0435\u0451 \u043E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u0438\u044F.",
|
13084
|
+
[305 /* VariableMayNotHasBeenAssignedBeforeUsage */]: "\u041F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043C\u043E\u0433\u043B\u043E \u0431\u044B\u0442\u044C \u043D\u0435 \u043F\u0440\u0438\u0441\u0432\u043E\u0435\u043D\u043E \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0434\u043E \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u044F.",
|
13085
|
+
[306 /* NotAllCodePathsReturnAValueAndResultLocalVariableMayNotHasBeenAssigned */]: "\u0424\u0443\u043D\u043A\u0446\u0438\u044F \u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u043D\u0435 \u0432\u043E \u0432\u0441\u0435\u0445 \u0441\u043B\u0443\u0447\u0430\u044F\u0445 \u0438 \u043F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 '\u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442' \u043C\u043E\u0433\u043B\u043E \u0431\u044B\u0442\u044C \u043D\u0435 \u043F\u0440\u0438\u0441\u0432\u043E\u0435\u043D\u043E \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435.",
|
13086
|
+
[307 /* WriteFunctionHasNoCorrespondingReadFunction */]: "\u0424\u0443\u043D\u043A\u0446\u0438\u044F \u0437\u0430\u043F\u0438\u0441\u0438 \u043D\u0435 \u0438\u043C\u0435\u0435\u0442 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044E\u0449\u0435\u0439 \u0444\u0443\u043D\u043A\u0446\u0438\u0438 \u0447\u0442\u0435\u043D\u0438\u044F.",
|
13078
13087
|
[401 /* 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}.",
|
13079
13088
|
[402 /* 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.",
|
13080
13089
|
[403 /* 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.",
|
@@ -14395,7 +14404,7 @@ var DisplayService = class {
|
|
14395
14404
|
return this.displayTypeInternal(type, maximumDetailsTypeDisplayOptions);
|
14396
14405
|
}
|
14397
14406
|
getFunctionTypeBodyDisplayParts(type) {
|
14398
|
-
const asyncKeyword = type.isAsync() ? `${this.displayKeyword(
|
14407
|
+
const asyncKeyword = type.isAsync() ? `${this.displayKeyword(40 /* Async */)} ` : "";
|
14399
14408
|
const functionKeyword = this.displayKeyword(12 /* Function */);
|
14400
14409
|
const valueParameters = type.getValueParameters().map(
|
14401
14410
|
(p) => this.getValueParameterDeclarationDisplayParts(
|
@@ -14467,7 +14476,7 @@ var DisplayService = class {
|
|
14467
14476
|
return this.getFunctionDeclarationDisplayParts(func).toString();
|
14468
14477
|
}
|
14469
14478
|
getFunctionDeclarationDisplayParts(func) {
|
14470
|
-
const asyncKeyword = func.isAsync() ? `${this.displayKeyword(
|
14479
|
+
const asyncKeyword = func.isAsync() ? `${this.displayKeyword(40 /* Async */)} ` : "";
|
14471
14480
|
const keyword = this.displayKeyword(12 /* Function */);
|
14472
14481
|
const whitespaceAfterKeyword = " ";
|
14473
14482
|
const name = this.displayEntityName(func.getEntity(), func.getLocalization());
|
@@ -14561,7 +14570,7 @@ var DisplayService = class {
|
|
14561
14570
|
);
|
14562
14571
|
}
|
14563
14572
|
displayDestructorDeclaration(constructor) {
|
14564
|
-
const destructionKeyword = this.displayKeyword(
|
14573
|
+
const destructionKeyword = this.displayKeyword(47 /* Destruction */);
|
14565
14574
|
const valueParametersText = constructor.getValueParameters().map((p) => this.getValueParameterDeclarationDisplayParts(p)).join(", ");
|
14566
14575
|
return `${destructionKeyword}(${valueParametersText})`;
|
14567
14576
|
}
|
@@ -14646,7 +14655,7 @@ var DisplayService = class {
|
|
14646
14655
|
break;
|
14647
14656
|
}
|
14648
14657
|
case "function": {
|
14649
|
-
const asyncKeyword = type.value.isAsync() ? `${this.displayKeyword(
|
14658
|
+
const asyncKeyword = type.value.isAsync() ? `${this.displayKeyword(40 /* Async */)} ` : "";
|
14650
14659
|
const functionKeyword = this.displayKeyword(12 /* Function */);
|
14651
14660
|
const valueParametersText = `(${type.value.getValueParameters().map((p) => this.displayValueParameterDeclaration(p)).join(", ")})`;
|
14652
14661
|
const returnType = type.value.getReturnType();
|
@@ -14754,7 +14763,7 @@ var DisplayService = class {
|
|
14754
14763
|
default:
|
14755
14764
|
Debug.never(owningEntity);
|
14756
14765
|
}
|
14757
|
-
const getKeyword = this.displayKeyword(
|
14766
|
+
const getKeyword = this.displayKeyword(58 /* Get */);
|
14758
14767
|
return `${getKeyword} ${declarationText}`;
|
14759
14768
|
}
|
14760
14769
|
displaySetterEntity(entity) {
|
@@ -14779,7 +14788,7 @@ var DisplayService = class {
|
|
14779
14788
|
default:
|
14780
14789
|
Debug.never(owningEntity);
|
14781
14790
|
}
|
14782
|
-
const setKeyword = this.displayKeyword(
|
14791
|
+
const setKeyword = this.displayKeyword(59 /* Set */);
|
14783
14792
|
return `${setKeyword} ${declarationText}`;
|
14784
14793
|
}
|
14785
14794
|
displayTypeExtensionEntity(entity) {
|
@@ -14944,7 +14953,7 @@ var DisplayService = class {
|
|
14944
14953
|
}
|
14945
14954
|
}
|
14946
14955
|
if (namedTypeEntity === void 0 || options.displayFullVersionOfNamedFunctionType) {
|
14947
|
-
const asyncKeyword = type.isAsync() ? `${this.displayKeyword(
|
14956
|
+
const asyncKeyword = type.isAsync() ? `${this.displayKeyword(40 /* Async */)} ` : "";
|
14948
14957
|
const functionKeyword = this.displayKeyword(12 /* Function */);
|
14949
14958
|
const valueParametersText = type.getValueParameters().map((p) => this.displayValueParameterDeclaration(p, lessDetailsTypeDisplayOptions)).join(", ");
|
14950
14959
|
let returnTypeText = "";
|
@@ -16673,17 +16682,19 @@ var TranslationPackage = class extends SourcePackageBase {
|
|
16673
16682
|
return this;
|
16674
16683
|
}
|
16675
16684
|
get locale() {
|
16676
|
-
return this.configuration.
|
16685
|
+
return this.configuration.locale;
|
16677
16686
|
}
|
16678
16687
|
get dialect() {
|
16679
|
-
return
|
16688
|
+
return this.configuration.dialect;
|
16680
16689
|
}
|
16681
16690
|
};
|
16682
16691
|
var TranslationPackageConfiguration = class {
|
16683
|
-
constructor(targetPackageName, translatedName, translationLocale) {
|
16692
|
+
constructor(targetPackageName, translatedName, translationLocale, locale, dialect) {
|
16684
16693
|
this.targetPackageName = targetPackageName;
|
16685
16694
|
this.translatedName = translatedName;
|
16686
16695
|
this.translationLocale = translationLocale;
|
16696
|
+
this.locale = locale;
|
16697
|
+
this.dialect = dialect;
|
16687
16698
|
}
|
16688
16699
|
get name() {
|
16689
16700
|
return new PackageName3([...this.targetPackageName.segments, new Name(localeToString(this.translationLocale))]);
|
@@ -16857,7 +16868,7 @@ var ConfigurationConverter = class {
|
|
16857
16868
|
packageGroupConfiguration = this.convertPackageGroupConfiguration(configuration);
|
16858
16869
|
break;
|
16859
16870
|
case "Translations":
|
16860
|
-
packageConfiguration = this.convertTranslationsConfiguration(configuration);
|
16871
|
+
packageConfiguration = this.convertTranslationsConfiguration(configuration, defaultLocale, defaultDialect);
|
16861
16872
|
break;
|
16862
16873
|
default:
|
16863
16874
|
Debug.never(configuration);
|
@@ -16963,11 +16974,13 @@ var ConfigurationConverter = class {
|
|
16963
16974
|
static convertPackageGroupConfiguration(configuration) {
|
16964
16975
|
return new PackageGroupConfiguration();
|
16965
16976
|
}
|
16966
|
-
static convertTranslationsConfiguration(configuration) {
|
16977
|
+
static convertTranslationsConfiguration(configuration, defaultLocale, defaultDialect) {
|
16967
16978
|
const targetPackageName = PackageName3.parse(configuration.originalPackageName);
|
16968
16979
|
const translatedName = PackageName3.parse(configuration.translatedPackageName);
|
16969
16980
|
const translationLocale = this.convertLanguage(configuration.translationLanguage);
|
16970
|
-
|
16981
|
+
const locale = configuration.language !== void 0 ? this.convertLanguage(configuration.language) : defaultLocale ?? DefaultLocale;
|
16982
|
+
const dialect = configuration.dialect !== void 0 ? this.convertDialect(configuration.dialect) : defaultDialect ?? DefaultDialect;
|
16983
|
+
return new TranslationPackageConfiguration(targetPackageName, translatedName, translationLocale, locale, dialect);
|
16971
16984
|
}
|
16972
16985
|
static convertJavaScriptImplementation(implementation) {
|
16973
16986
|
switch (implementation.type) {
|
@@ -17510,6 +17523,12 @@ var config_en_schema_default = {
|
|
17510
17523
|
},
|
17511
17524
|
translationLanguage: {
|
17512
17525
|
$ref: "#/definitions/Language"
|
17526
|
+
},
|
17527
|
+
language: {
|
17528
|
+
$ref: "#/definitions/Language"
|
17529
|
+
},
|
17530
|
+
dialect: {
|
17531
|
+
$ref: "#/definitions/Dialect"
|
17513
17532
|
}
|
17514
17533
|
},
|
17515
17534
|
required: [
|
@@ -17979,6 +17998,12 @@ var config_ru_schema_default = {
|
|
17979
17998
|
},
|
17980
17999
|
\u044F\u0437\u044B\u043A\u041F\u0435\u0440\u0435\u0432\u043E\u0434\u0430: {
|
17981
18000
|
$ref: "#/definitions/\u042F\u0437\u044B\u043A"
|
18001
|
+
},
|
18002
|
+
\u044F\u0437\u044B\u043A: {
|
18003
|
+
$ref: "#/definitions/\u042F\u0437\u044B\u043A"
|
18004
|
+
},
|
18005
|
+
\u0434\u0438\u0430\u043B\u0435\u043A\u0442: {
|
18006
|
+
$ref: "#/definitions/\u0414\u0438\u0430\u043B\u0435\u043A\u0442"
|
17982
18007
|
}
|
17983
18008
|
},
|
17984
18009
|
required: [
|
@@ -18078,7 +18103,9 @@ var RussianConfigurationTranslator = class {
|
|
18078
18103
|
type: "Translations",
|
18079
18104
|
originalPackageName: value.\u0438\u043C\u044F\u041F\u0430\u043A\u0435\u0442\u0430\u0418\u0441\u0445\u043E\u0434\u043D\u043E\u0435,
|
18080
18105
|
translatedPackageName: value.\u0438\u043C\u044F\u041F\u0430\u043A\u0435\u0442\u0430\u041F\u0435\u0440\u0435\u0432\u0435\u0434\u0451\u043D\u043D\u043E\u0435,
|
18081
|
-
translationLanguage: this.translateLanguage(value.\u044F\u0437\u044B\u043A\u041F\u0435\u0440\u0435\u0432\u043E\u0434\u0430)
|
18106
|
+
translationLanguage: this.translateLanguage(value.\u044F\u0437\u044B\u043A\u041F\u0435\u0440\u0435\u0432\u043E\u0434\u0430),
|
18107
|
+
language: value.\u044F\u0437\u044B\u043A !== void 0 ? this.translateLanguage(value.\u044F\u0437\u044B\u043A) : void 0,
|
18108
|
+
dialect: value.\u0434\u0438\u0430\u043B\u0435\u043A\u0442 !== void 0 ? this.translateDialect(value.\u0434\u0438\u0430\u043B\u0435\u043A\u0442) : void 0
|
18082
18109
|
};
|
18083
18110
|
}
|
18084
18111
|
static translateLanguage(value) {
|
@@ -19036,7 +19063,7 @@ var TextParser = class {
|
|
19036
19063
|
}
|
19037
19064
|
createMissingToken(kind) {
|
19038
19065
|
const flags = 1 /* Missing */;
|
19039
|
-
const result = new
|
19066
|
+
const result = new Token6(kind, "", [], flags, void 0);
|
19040
19067
|
return this.intern(result, this._currentTokenOrKeyword.startPosition);
|
19041
19068
|
}
|
19042
19069
|
createMissingKeyword(kind) {
|
@@ -19085,10 +19112,10 @@ var TextParser = class {
|
|
19085
19112
|
let result;
|
19086
19113
|
const keyword = this.tryParseKeyword();
|
19087
19114
|
if (keyword !== void 0) {
|
19088
|
-
result = new
|
19115
|
+
result = new KeywordDetails(keyword.value, keyword.startPosition);
|
19089
19116
|
} else {
|
19090
19117
|
const token = this._nextToken;
|
19091
|
-
result = new
|
19118
|
+
result = new TokenDetails(token, this._nextTokenStartPosition);
|
19092
19119
|
this.nextToken();
|
19093
19120
|
}
|
19094
19121
|
this._currentTokenOrKeyword = result;
|
@@ -19224,11 +19251,11 @@ var TextParser = class {
|
|
19224
19251
|
if (!Scanner.isPlainIdentifier(valueWithoutQuotes)) {
|
19225
19252
|
flags |= 8 /* RequiresQuotes */;
|
19226
19253
|
}
|
19227
|
-
return new
|
19254
|
+
return new Token6(63 /* Identifier */, value, trivia, flags, operatorKind);
|
19228
19255
|
}
|
19229
19256
|
createNonIdentifierToken(kind, value, trivia) {
|
19230
19257
|
const flags = 0 /* None */;
|
19231
|
-
return new
|
19258
|
+
return new Token6(kind, value, trivia, flags, void 0);
|
19232
19259
|
}
|
19233
19260
|
parseTrivia() {
|
19234
19261
|
const result = new Array();
|
@@ -19296,10 +19323,10 @@ var TextParser = class {
|
|
19296
19323
|
const startPosition = this._currentTokenOrKeyword.startPosition;
|
19297
19324
|
if (this._currentTokenOrKeyword.kind === "token") {
|
19298
19325
|
const token = this.tokenWithSkippedTokens(this._currentTokenOrKeyword.value, startPosition);
|
19299
|
-
result = new
|
19326
|
+
result = new TokenDetails(token, startPosition);
|
19300
19327
|
} else {
|
19301
19328
|
const keyword = this.keywordWithSkippedTokens(this._currentTokenOrKeyword.value, startPosition);
|
19302
|
-
result = new
|
19329
|
+
result = new KeywordDetails(keyword, startPosition);
|
19303
19330
|
}
|
19304
19331
|
}
|
19305
19332
|
return result;
|
@@ -19312,7 +19339,7 @@ var TextParser = class {
|
|
19312
19339
|
const startPositionWithSkippedTrivia = startPosition - triviaFromSkippedTokenOrKeywords.reduce((sum, trivia2) => sum + trivia2.rangeLength, 0);
|
19313
19340
|
const trivia = Query.from(triviaFromSkippedTokenOrKeywords).chain(token.leadingTrivia).toArray();
|
19314
19341
|
const newToken = this.intern(
|
19315
|
-
new
|
19342
|
+
new Token6(token.tokenKind, token.value, trivia, token.flags, token.operatorKind),
|
19316
19343
|
startPositionWithSkippedTrivia
|
19317
19344
|
);
|
19318
19345
|
return { token: newToken, startPositionWithSkippedTrivia };
|
@@ -19469,7 +19496,7 @@ var StatementParser = class {
|
|
19469
19496
|
const statementList = this.parser.intern(new StatementList2([]), blockStart);
|
19470
19497
|
const flags = 1 /* Missing */;
|
19471
19498
|
const closeBraceToken = this.parser.intern(
|
19472
|
-
new
|
19499
|
+
new Token6(20 /* CloseBrace */, "", [], flags, void 0),
|
19473
19500
|
blockStart
|
19474
19501
|
);
|
19475
19502
|
result = this.parser.intern(
|
@@ -19501,7 +19528,7 @@ var StatementParser = class {
|
|
19501
19528
|
const expressionOrStatementList = this.parser.intern(new StatementList2([]), blockStart);
|
19502
19529
|
const flags = 1 /* Missing */;
|
19503
19530
|
const closeBraceToken = this.parser.intern(
|
19504
|
-
new
|
19531
|
+
new Token6(20 /* CloseBrace */, "", [], flags, void 0),
|
19505
19532
|
blockStart
|
19506
19533
|
);
|
19507
19534
|
result = this.parser.intern(
|
@@ -19747,7 +19774,7 @@ var StatementParser = class {
|
|
19747
19774
|
}
|
19748
19775
|
parseDisposeStatement() {
|
19749
19776
|
const statementStart = this.parser.tokenOrKeywordStartPosition();
|
19750
|
-
const disposeKeyword = this.parser.parseExpectedKeyword(
|
19777
|
+
const disposeKeyword = this.parser.parseExpectedKeyword(46 /* Dispose */);
|
19751
19778
|
const expression = this.parser.expressionParser.parseExpression(false);
|
19752
19779
|
const result = new DisposeStatement2(disposeKeyword, expression);
|
19753
19780
|
return this.parser.intern(result, statementStart);
|
@@ -19777,6 +19804,7 @@ var StatementParser = class {
|
|
19777
19804
|
}
|
19778
19805
|
parseExpressionStatementOrAssignmentStatement() {
|
19779
19806
|
const statementStart = this.parser.tokenOrKeywordStartPosition();
|
19807
|
+
const startTokenOrKeyword = this.parser.currentTokenOrKeyword;
|
19780
19808
|
let result;
|
19781
19809
|
const expression = this.parser.expressionParser.parseExpression(false);
|
19782
19810
|
if (this.isAssignmentOperator()) {
|
@@ -19785,8 +19813,10 @@ var StatementParser = class {
|
|
19785
19813
|
result = new AssignmentStatement2(expression, operator, right);
|
19786
19814
|
} else {
|
19787
19815
|
result = new ExpressionStatement2(expression);
|
19788
|
-
if (this.parser.dialect === 1 /* Usual */) {
|
19789
|
-
const
|
19816
|
+
if (this.parser.dialect === 1 /* Usual */ && expression.kind !== 69 /* CallExpression */ && expression.kind !== 72 /* InvalidExpression */) {
|
19817
|
+
const expressionStart = startTokenOrKeyword.getRangeWithoutTrivia().start;
|
19818
|
+
const triviaLength = expressionStart - statementStart;
|
19819
|
+
const diagnosticRange = new Range(expressionStart, expressionStart + expression.rangeLength - triviaLength);
|
19790
19820
|
this.parser.tryReportDiagnosticAtRange(diagnosticRange, 109 /* ExpressionCannotBeUsedAsStatement */);
|
19791
19821
|
}
|
19792
19822
|
}
|
@@ -19838,14 +19868,14 @@ var StatementParser = class {
|
|
19838
19868
|
case 13 /* If */:
|
19839
19869
|
result = () => this.parseIfStatement();
|
19840
19870
|
break;
|
19841
|
-
case
|
19871
|
+
case 44 /* Switch */:
|
19842
19872
|
result = () => this._switchStatementParser.parseSwitchStatement();
|
19843
19873
|
break;
|
19844
19874
|
case 1 /* Let */:
|
19845
19875
|
case 36 /* Const */:
|
19846
19876
|
result = () => this.parseLocalVariableDeclarationStatement();
|
19847
19877
|
break;
|
19848
|
-
case
|
19878
|
+
case 46 /* Dispose */:
|
19849
19879
|
result = () => this.parseDisposeStatement();
|
19850
19880
|
break;
|
19851
19881
|
case 19 /* Important */:
|
@@ -19870,7 +19900,7 @@ var NestedFunctionDeclarationStatementParser = class {
|
|
19870
19900
|
isStartOfNestedFunctionDeclarationStatement() {
|
19871
19901
|
if (this.parser.currentTokenOrKeyword.isKeyword(12 /* Function */)) {
|
19872
19902
|
return true;
|
19873
|
-
} else if (this.parser.currentTokenOrKeyword.isKeyword(
|
19903
|
+
} else if (this.parser.currentTokenOrKeyword.isKeyword(40 /* Async */)) {
|
19874
19904
|
return this.parser.lookAhead(() => {
|
19875
19905
|
this.parser.parseTokenOrKeyword();
|
19876
19906
|
return this.parser.currentTokenOrKeyword.isKeyword(12 /* Function */);
|
@@ -19882,7 +19912,7 @@ var NestedFunctionDeclarationStatementParser = class {
|
|
19882
19912
|
parseNestedFunctionDeclarationStatement() {
|
19883
19913
|
const statementStart = this.parser.tokenOrKeywordStartPosition();
|
19884
19914
|
const declarationStart = this.parser.tokenOrKeywordStartPosition();
|
19885
|
-
const asyncKeyword = this.parser.parseOptionalKeyword(
|
19915
|
+
const asyncKeyword = this.parser.parseOptionalKeyword(40 /* Async */);
|
19886
19916
|
const functionKeyword = this.parser.parseExpectedKeyword(12 /* Function */);
|
19887
19917
|
const name = this.parser.parseIdentifier(4 /* Other */);
|
19888
19918
|
let typeParameterClause;
|
@@ -20066,8 +20096,8 @@ var ExpressionParser = class {
|
|
20066
20096
|
parseAsExpression(isFollowedByStatementBlock) {
|
20067
20097
|
const expressionStart = this.parser.tokenOrKeywordStartPosition();
|
20068
20098
|
let result = this.parsePrefixUnaryExpression(isFollowedByStatementBlock);
|
20069
|
-
while (this.parser.currentTokenOrKeyword.isKeyword(
|
20070
|
-
const operator = this.parser.parseExpectedKeyword(
|
20099
|
+
while (this.parser.currentTokenOrKeyword.isKeyword(42 /* As */)) {
|
20100
|
+
const operator = this.parser.parseExpectedKeyword(42 /* As */);
|
20071
20101
|
const typeSpecifier = this.parser.typeSpecifierParser.parseNamedTypeSpecifier();
|
20072
20102
|
result = new AsExpression2(result, operator, typeSpecifier);
|
20073
20103
|
result = this.parser.intern(result, expressionStart);
|
@@ -20080,7 +20110,7 @@ var ExpressionParser = class {
|
|
20080
20110
|
const expressionStart = this.parser.tokenOrKeywordStartPosition();
|
20081
20111
|
const operator = this.parser.parseTokenOrKeyword().value;
|
20082
20112
|
let expression;
|
20083
|
-
if (this.parser.dialect === 2 /* Special */ && this.parser.currentTokenOrKeyword.isKeyword(
|
20113
|
+
if (this.parser.dialect === 2 /* Special */ && this.parser.currentTokenOrKeyword.isKeyword(43 /* Not */)) {
|
20084
20114
|
expression = this.parseParenthesizedExpression();
|
20085
20115
|
} else {
|
20086
20116
|
expression = this.parsePostfixUnaryExpression(isFollowedByStatementBlock);
|
@@ -20093,7 +20123,7 @@ var ExpressionParser = class {
|
|
20093
20123
|
return result;
|
20094
20124
|
}
|
20095
20125
|
isPrefixUnaryOperator(tokenOrKeyword) {
|
20096
|
-
return tokenOrKeyword.isToken(46 /* Plus */) || tokenOrKeyword.isToken(39 /* Minus */) || tokenOrKeyword.isKeyword(
|
20126
|
+
return tokenOrKeyword.isToken(46 /* Plus */) || tokenOrKeyword.isToken(39 /* Minus */) || tokenOrKeyword.isKeyword(43 /* Not */);
|
20097
20127
|
}
|
20098
20128
|
parsePostfixUnaryExpression(isFollowedByStatementBlock) {
|
20099
20129
|
const expressionStart = this.parser.tokenOrKeywordStartPosition();
|
@@ -20218,20 +20248,20 @@ var ExpressionParser = class {
|
|
20218
20248
|
}
|
20219
20249
|
} else {
|
20220
20250
|
switch (this.parser.currentTokenOrKeyword.keywordKind) {
|
20221
|
-
case
|
20251
|
+
case 40 /* Async */:
|
20222
20252
|
case 12 /* Function */:
|
20223
20253
|
result = this.parser.lookAhead(() => {
|
20224
|
-
this.parser.parseOptionalKeyword(
|
20254
|
+
this.parser.parseOptionalKeyword(40 /* Async */);
|
20225
20255
|
const functionKeyword = this.parser.parseOptionalKeyword(12 /* Function */);
|
20226
20256
|
return functionKeyword !== void 0 && this.parser.currentTokenOrKeyword.isToken(44 /* OpenParenthesis */);
|
20227
20257
|
});
|
20228
20258
|
break;
|
20229
|
-
case
|
20230
|
-
case
|
20231
|
-
case
|
20259
|
+
case 52 /* Yes */:
|
20260
|
+
case 53 /* No */:
|
20261
|
+
case 57 /* None */:
|
20232
20262
|
case 4 /* Object */:
|
20233
|
-
case
|
20234
|
-
case
|
20263
|
+
case 56 /* Base */:
|
20264
|
+
case 54 /* Reference */:
|
20235
20265
|
case 2 /* Autotype */:
|
20236
20266
|
case 30 /* Cond */:
|
20237
20267
|
result = true;
|
@@ -20275,13 +20305,13 @@ var ExpressionParser = class {
|
|
20275
20305
|
}
|
20276
20306
|
} else {
|
20277
20307
|
switch (this.parser.currentTokenOrKeyword.keywordKind) {
|
20278
|
-
case
|
20308
|
+
case 40 /* Async */:
|
20279
20309
|
case 12 /* Function */:
|
20280
20310
|
result = this.parseFunctionLiteral();
|
20281
20311
|
break;
|
20282
|
-
case
|
20283
|
-
case
|
20284
|
-
case
|
20312
|
+
case 52 /* Yes */:
|
20313
|
+
case 53 /* No */:
|
20314
|
+
case 57 /* None */: {
|
20285
20315
|
const expressionStart = this.parser.tokenOrKeywordStartPosition();
|
20286
20316
|
const keyword = this.parser.parseTokenOrKeyword().asKeyword();
|
20287
20317
|
const expression = new KeywordExpression2(keyword);
|
@@ -20295,14 +20325,14 @@ var ExpressionParser = class {
|
|
20295
20325
|
result = this.parser.intern(expression, expressionStart);
|
20296
20326
|
break;
|
20297
20327
|
}
|
20298
|
-
case
|
20328
|
+
case 56 /* Base */: {
|
20299
20329
|
const expressionStart = this.parser.tokenOrKeywordStartPosition();
|
20300
20330
|
const keyword = this.parser.parseTokenOrKeyword().asKeyword();
|
20301
20331
|
const expression = new BaseExpression2(keyword);
|
20302
20332
|
result = this.parser.intern(expression, expressionStart);
|
20303
20333
|
break;
|
20304
20334
|
}
|
20305
|
-
case
|
20335
|
+
case 54 /* Reference */:
|
20306
20336
|
result = this.parseReferenceExpression();
|
20307
20337
|
break;
|
20308
20338
|
case 2 /* Autotype */:
|
@@ -20321,7 +20351,7 @@ var ExpressionParser = class {
|
|
20321
20351
|
}
|
20322
20352
|
parseReferenceExpression() {
|
20323
20353
|
const expressionStart = this.parser.tokenOrKeywordStartPosition();
|
20324
|
-
const referenceKeyword = this.parser.parseExpectedKeyword(
|
20354
|
+
const referenceKeyword = this.parser.parseExpectedKeyword(54 /* Reference */);
|
20325
20355
|
const openParenthesisToken = this.parser.parseExpectedToken(44 /* OpenParenthesis */);
|
20326
20356
|
const expression = this.parseExpression(false);
|
20327
20357
|
const closeParenthesisToken = this.parser.parseExpectedToken(21 /* CloseParenthesis */);
|
@@ -20388,7 +20418,7 @@ var ExpressionParser = class {
|
|
20388
20418
|
}
|
20389
20419
|
parseFunctionLiteral() {
|
20390
20420
|
const expressionStart = this.parser.tokenOrKeywordStartPosition();
|
20391
|
-
const asyncKeyword = this.parser.parseOptionalKeyword(
|
20421
|
+
const asyncKeyword = this.parser.parseOptionalKeyword(40 /* Async */);
|
20392
20422
|
const functionKeyword = this.parser.parseExpectedKeyword(12 /* Function */);
|
20393
20423
|
const parameterClause = this.parser.parameterParser.parseParameterClause();
|
20394
20424
|
let returnTypeAnnotation;
|
@@ -20500,7 +20530,7 @@ var PackageMemberDeclarationParser = class {
|
|
20500
20530
|
return this.parser.intern(result, declarationStart);
|
20501
20531
|
}
|
20502
20532
|
parsePackageVariableGetterDeclaration(declarationStart, tagList, modifierList) {
|
20503
|
-
const getKeyword = this.parser.parseExpectedKeyword(
|
20533
|
+
const getKeyword = this.parser.parseExpectedKeyword(58 /* Get */);
|
20504
20534
|
const name = this.parser.parseIdentifier(4 /* Other */);
|
20505
20535
|
const typeAnnotation = this.parser.typeAnnotationParser.parseTypeAnnotation();
|
20506
20536
|
const block = this.parser.parseOptionalFunctionBlock();
|
@@ -20515,7 +20545,7 @@ var PackageMemberDeclarationParser = class {
|
|
20515
20545
|
return this.parser.intern(result, declarationStart);
|
20516
20546
|
}
|
20517
20547
|
parsePackageVariableSetterDeclaration(declarationStart, tagList, modifierList) {
|
20518
|
-
const setKeyword = this.parser.parseExpectedKeyword(
|
20548
|
+
const setKeyword = this.parser.parseExpectedKeyword(59 /* Set */);
|
20519
20549
|
const name = this.parser.parseIdentifier(4 /* Other */);
|
20520
20550
|
const block = this.parser.parseOptionalFunctionBlock(false);
|
20521
20551
|
const result = new PackageVariableSetterDeclaration2(tagList, modifierList, setKeyword, name, block);
|
@@ -20700,9 +20730,9 @@ var PackageMemberDeclarationParser = class {
|
|
20700
20730
|
}
|
20701
20731
|
} else {
|
20702
20732
|
switch (this.parser.currentTokenOrKeyword.keywordKind) {
|
20703
|
-
case
|
20733
|
+
case 58 /* Get */:
|
20704
20734
|
return (declarationStart, tagList, modifierList) => this.parsePackageVariableGetterDeclaration(declarationStart, tagList, modifierList);
|
20705
|
-
case
|
20735
|
+
case 59 /* Set */:
|
20706
20736
|
return (declarationStart, tagList, modifierList) => this.parsePackageVariableSetterDeclaration(declarationStart, tagList, modifierList);
|
20707
20737
|
case 12 /* Function */:
|
20708
20738
|
return (declarationStart, tagList, modifierList) => this.parsePackageFunctionDeclaration(declarationStart, tagList, modifierList);
|
@@ -20712,7 +20742,7 @@ var PackageMemberDeclarationParser = class {
|
|
20712
20742
|
return (declarationStart, tagList, modifierList) => this.parseSourceFileConstructorDeclaration(declarationStart, tagList, modifierList);
|
20713
20743
|
case 7 /* Run */:
|
20714
20744
|
return (declarationStart, tagList, modifierList) => this.parsePackageEntryPointDeclaration(declarationStart, tagList, modifierList);
|
20715
|
-
case
|
20745
|
+
case 55 /* Translations */:
|
20716
20746
|
return (declarationStart, tagList, modifierList) => this.translationsParser.parseTranslationsDeclaration(declarationStart, tagList, modifierList);
|
20717
20747
|
}
|
20718
20748
|
}
|
@@ -20846,7 +20876,7 @@ var TypeMemberDeclarationParser = class {
|
|
20846
20876
|
return this.parser.intern(result, declarationStart);
|
20847
20877
|
}
|
20848
20878
|
parseDestructorDeclaration(declarationStart, tagList, modifierList) {
|
20849
|
-
const destructionKeyword = this.parser.parseExpectedKeyword(
|
20879
|
+
const destructionKeyword = this.parser.parseExpectedKeyword(47 /* Destruction */);
|
20850
20880
|
const parameterClause = this.parser.parameterParser.parseParameterClause();
|
20851
20881
|
const block = this.parser.parseOptionalFunctionBlock(false);
|
20852
20882
|
const result = new DestructorDeclaration2(tagList, modifierList, destructionKeyword, parameterClause, block);
|
@@ -20874,7 +20904,7 @@ var TypeMemberDeclarationParser = class {
|
|
20874
20904
|
return this.parser.intern(result, declarationStart);
|
20875
20905
|
}
|
20876
20906
|
parseTypeMemberGetterDeclaration(declarationStart, tagList, modifierList) {
|
20877
|
-
const getKeyword = this.parser.parseExpectedKeyword(
|
20907
|
+
const getKeyword = this.parser.parseExpectedKeyword(58 /* Get */);
|
20878
20908
|
if (this.parser.currentTokenOrKeyword.isToken(45 /* OpenSquareBracket */)) {
|
20879
20909
|
return this.parseIndexedElementGetterDeclaration(declarationStart, tagList, modifierList, getKeyword);
|
20880
20910
|
} else if (this.parser.currentTokenOrKeyword.isToken(19 /* Caret */)) {
|
@@ -20926,7 +20956,7 @@ var TypeMemberDeclarationParser = class {
|
|
20926
20956
|
return this.parser.intern(result, declarationStart);
|
20927
20957
|
}
|
20928
20958
|
parseTypeMemberSetterDeclaration(declarationStart, tagList, modifierList) {
|
20929
|
-
const setKeyword = this.parser.parseExpectedKeyword(
|
20959
|
+
const setKeyword = this.parser.parseExpectedKeyword(59 /* Set */);
|
20930
20960
|
if (this.parser.currentTokenOrKeyword.isToken(45 /* OpenSquareBracket */)) {
|
20931
20961
|
return this.parseIndexedElementSetterDeclaration(declarationStart, tagList, modifierList, setKeyword);
|
20932
20962
|
} else if (this.parser.currentTokenOrKeyword.isToken(19 /* Caret */)) {
|
@@ -20988,15 +21018,15 @@ var TypeMemberDeclarationParser = class {
|
|
20988
21018
|
}
|
20989
21019
|
} else {
|
20990
21020
|
switch (this.parser.currentTokenOrKeyword.keywordKind) {
|
20991
|
-
case
|
21021
|
+
case 58 /* Get */:
|
20992
21022
|
return (declarationStart, tags, modifiers) => this.parseTypeMemberGetterDeclaration(declarationStart, tags, modifiers);
|
20993
|
-
case
|
21023
|
+
case 59 /* Set */:
|
20994
21024
|
return (declarationStart, tags, modifiers) => this.parseTypeMemberSetterDeclaration(declarationStart, tags, modifiers);
|
20995
21025
|
case 12 /* Function */:
|
20996
21026
|
return (declarationStart, tags, modifiers) => this.parseMethodOrOperatorDeclaration(declarationStart, tags, modifiers);
|
20997
21027
|
case 31 /* Creation */:
|
20998
21028
|
return (declarationStart, tags, modifiers) => this.parseConstructorDeclaration(declarationStart, tags, modifiers);
|
20999
|
-
case
|
21029
|
+
case 47 /* Destruction */:
|
21000
21030
|
return (declarationStart, tags, modifiers) => this.parseDestructorDeclaration(declarationStart, tags, modifiers);
|
21001
21031
|
}
|
21002
21032
|
}
|
@@ -21062,10 +21092,9 @@ var ModifierParser = class {
|
|
21062
21092
|
case 37 /* Hidden */:
|
21063
21093
|
case 17 /* Basic */:
|
21064
21094
|
case 38 /* Abstract */:
|
21065
|
-
case
|
21066
|
-
case 39 /*
|
21067
|
-
case 40 /*
|
21068
|
-
case 41 /* Async */:
|
21095
|
+
case 41 /* Static */:
|
21096
|
+
case 39 /* Redefined */:
|
21097
|
+
case 40 /* Async */:
|
21069
21098
|
return true;
|
21070
21099
|
default:
|
21071
21100
|
return false;
|
@@ -21094,10 +21123,10 @@ var ModifierParser = class {
|
|
21094
21123
|
if (openParenthesisToken !== void 0) {
|
21095
21124
|
if (this.parser.currentTokenOrKeyword.kind === "keyword") {
|
21096
21125
|
switch (this.parser.currentTokenOrKeyword.keywordKind) {
|
21097
|
-
case
|
21098
|
-
case
|
21099
|
-
case
|
21100
|
-
case
|
21126
|
+
case 51 /* InType */:
|
21127
|
+
case 48 /* InHierarchy */:
|
21128
|
+
case 49 /* InFile */:
|
21129
|
+
case 50 /* InPackage */:
|
21101
21130
|
constraint = this.parser.parseTokenOrKeyword().asKeyword();
|
21102
21131
|
break;
|
21103
21132
|
}
|
@@ -21341,8 +21370,8 @@ var SwitchStatementParser = class {
|
|
21341
21370
|
this.parser = parser2;
|
21342
21371
|
this._caseClauseSequenceParser = new SequenceParser(
|
21343
21372
|
this.parser,
|
21344
|
-
() => this.parser.currentTokenOrKeyword.isKeyword(
|
21345
|
-
() => !this.parser.currentTokenOrKeyword.isKeyword(
|
21373
|
+
() => this.parser.currentTokenOrKeyword.isKeyword(45 /* Case */),
|
21374
|
+
() => !this.parser.currentTokenOrKeyword.isKeyword(45 /* Case */),
|
21346
21375
|
() => false,
|
21347
21376
|
() => this.parseCaseClause(),
|
21348
21377
|
void 0,
|
@@ -21365,7 +21394,7 @@ var SwitchStatementParser = class {
|
|
21365
21394
|
}
|
21366
21395
|
parseSwitchStatement() {
|
21367
21396
|
const statementStart = this.parser.tokenOrKeywordStartPosition();
|
21368
|
-
const switchKeyword = this.parser.parseExpectedKeyword(
|
21397
|
+
const switchKeyword = this.parser.parseExpectedKeyword(44 /* Switch */);
|
21369
21398
|
const expression = this.parser.expressionParser.parseExpression(false);
|
21370
21399
|
const listStart = this.parser.tokenOrKeywordStartPosition();
|
21371
21400
|
const caseClauses = this._caseClauseSequenceParser.parse();
|
@@ -21375,7 +21404,7 @@ var SwitchStatementParser = class {
|
|
21375
21404
|
}
|
21376
21405
|
parseCaseClause() {
|
21377
21406
|
const clauseStart = this.parser.tokenOrKeywordStartPosition();
|
21378
|
-
const caseKeyword = this.parser.parseExpectedKeyword(
|
21407
|
+
const caseKeyword = this.parser.parseExpectedKeyword(45 /* Case */);
|
21379
21408
|
const listStart = this.parser.tokenOrKeywordStartPosition();
|
21380
21409
|
const matchExpressions = this._matchExpressionSequenceParser.parse();
|
21381
21410
|
const matchExpressionList = this.parser.intern(new MatchExpressionList2(matchExpressions), listStart);
|
@@ -21447,7 +21476,7 @@ var TranslationsDeclarationParser = class {
|
|
21447
21476
|
return this.getTypeMemberTranslationParsingFunction() !== void 0;
|
21448
21477
|
}
|
21449
21478
|
parseTranslationsDeclaration(declarationStart, tags, modifiers) {
|
21450
|
-
const translationsKeyword = this.parser.parseExpectedKeyword(
|
21479
|
+
const translationsKeyword = this.parser.parseExpectedKeyword(55 /* Translations */);
|
21451
21480
|
const openBraceToken = this.parser.parseExpectedToken(43 /* OpenBrace */);
|
21452
21481
|
const listStart = this.parser.tokenOrKeywordStartPosition();
|
21453
21482
|
const translationListElements = this._topLevelTranslationSequenceParser.parse();
|
@@ -21874,7 +21903,7 @@ var TypeSpecifierParser = class {
|
|
21874
21903
|
case 3 /* Aspect */:
|
21875
21904
|
return () => this.parseAspectTypeSpecifier();
|
21876
21905
|
case 12 /* Function */:
|
21877
|
-
case
|
21906
|
+
case 40 /* Async */:
|
21878
21907
|
return () => this.parseFunctionTypeSpecifier();
|
21879
21908
|
}
|
21880
21909
|
}
|
@@ -21936,7 +21965,7 @@ var TypeDeclarationBodyParser = class {
|
|
21936
21965
|
}
|
21937
21966
|
parseFunctionTypeDeclarationBody() {
|
21938
21967
|
const bodyStart = this.parser.tokenOrKeywordStartPosition();
|
21939
|
-
const asyncKeyword = this.parser.parseOptionalKeyword(
|
21968
|
+
const asyncKeyword = this.parser.parseOptionalKeyword(40 /* Async */);
|
21940
21969
|
const functionKeyword = this.parser.parseExpectedKeyword(12 /* Function */);
|
21941
21970
|
const parameterClause = this.parser.parameterParser.parseParameterClause();
|
21942
21971
|
let returnTypeAnnotation;
|
@@ -21993,7 +22022,7 @@ var TypeDeclarationBodyParser = class {
|
|
21993
22022
|
case 3 /* Aspect */:
|
21994
22023
|
return () => this.parseAspectTypeDeclarationBody();
|
21995
22024
|
case 12 /* Function */:
|
21996
|
-
case
|
22025
|
+
case 40 /* Async */:
|
21997
22026
|
return () => this.parseFunctionTypeDeclarationBody();
|
21998
22027
|
}
|
21999
22028
|
}
|
@@ -22021,7 +22050,7 @@ function unreachable() {
|
|
22021
22050
|
function internalCompilerError() {
|
22022
22051
|
return new Error("Internal compiler error.");
|
22023
22052
|
}
|
22024
|
-
var
|
22053
|
+
var TokenDetails = class {
|
22025
22054
|
constructor(value, startPosition) {
|
22026
22055
|
this.value = value;
|
22027
22056
|
this.startPosition = startPosition;
|
@@ -22055,7 +22084,7 @@ var TokenOrKeywordDetails_token = class {
|
|
22055
22084
|
return new Range(rangeStart, rangeEnd);
|
22056
22085
|
}
|
22057
22086
|
};
|
22058
|
-
var
|
22087
|
+
var KeywordDetails = class {
|
22059
22088
|
constructor(value, startPosition) {
|
22060
22089
|
this.value = value;
|
22061
22090
|
this.startPosition = startPosition;
|
@@ -22266,7 +22295,11 @@ var SourceFile3 = class _SourceFile extends TextFile {
|
|
22266
22295
|
super(text, uri, version);
|
22267
22296
|
this.name = uri.lastSegment ?? "";
|
22268
22297
|
if (node === void 0) {
|
22269
|
-
this._node = new Lazy(() => new Parser(
|
22298
|
+
this._node = new Lazy(() => new Parser(
|
22299
|
+
this.text,
|
22300
|
+
this.package.locale,
|
22301
|
+
this.package.dialect
|
22302
|
+
).parse().toRed());
|
22270
22303
|
} else {
|
22271
22304
|
this._node = Lazy.immediate(node);
|
22272
22305
|
}
|
@@ -22788,7 +22821,8 @@ var FSTreeCompilationLoader = class {
|
|
22788
22821
|
2 /* SkipInCurrentDirectoryThenProcess */,
|
22789
22822
|
sourceFiles,
|
22790
22823
|
accumulatedPackages,
|
22791
|
-
isLoadedFromNodeModules
|
22824
|
+
isLoadedFromNodeModules,
|
22825
|
+
configuration
|
22792
22826
|
);
|
22793
22827
|
let pkg;
|
22794
22828
|
if (configuration instanceof ProgramPackageConfiguration) {
|
@@ -22802,7 +22836,7 @@ var FSTreeCompilationLoader = class {
|
|
22802
22836
|
return pkg;
|
22803
22837
|
});
|
22804
22838
|
}
|
22805
|
-
loadPackageDirectoryAndAccumulateFilesRecursively(directory, actionOnConfigurationDirectory, accumulatedSourceFiles, accumulatedPackages, isLoadedFromNodeModules) {
|
22839
|
+
loadPackageDirectoryAndAccumulateFilesRecursively(directory, actionOnConfigurationDirectory, accumulatedSourceFiles, accumulatedPackages, isLoadedFromNodeModules, packageConfiguration) {
|
22806
22840
|
return __async(this, null, function* () {
|
22807
22841
|
if (actionOnConfigurationDirectory === 0 /* Process */) {
|
22808
22842
|
const configurationDirectoryInfo = CompilationLoader.findConfigurationDirectory(directory);
|
@@ -22833,13 +22867,18 @@ var FSTreeCompilationLoader = class {
|
|
22833
22867
|
actionOnConfigurationDirectory,
|
22834
22868
|
accumulatedSourceFiles,
|
22835
22869
|
accumulatedPackages,
|
22836
|
-
isLoadedFromNodeModules
|
22870
|
+
isLoadedFromNodeModules,
|
22871
|
+
packageConfiguration
|
22837
22872
|
);
|
22838
22873
|
break;
|
22839
22874
|
}
|
22840
22875
|
case "file": {
|
22841
22876
|
if (ArtelSourceFileExtensionSet.has(fileOrDirectory.extension)) {
|
22842
|
-
const sourceFile = this.createOrReuseSourceFile(
|
22877
|
+
const sourceFile = this.createOrReuseSourceFile(
|
22878
|
+
fileOrDirectory,
|
22879
|
+
packageConfiguration.locale,
|
22880
|
+
packageConfiguration.dialect
|
22881
|
+
);
|
22843
22882
|
accumulatedSourceFiles.push(sourceFile);
|
22844
22883
|
}
|
22845
22884
|
break;
|
@@ -22850,10 +22889,10 @@ var FSTreeCompilationLoader = class {
|
|
22850
22889
|
}
|
22851
22890
|
});
|
22852
22891
|
}
|
22853
|
-
createOrReuseSourceFile(file2) {
|
22892
|
+
createOrReuseSourceFile(file2, locale, dialect) {
|
22854
22893
|
let result;
|
22855
22894
|
const sourceFile = this._config.previousLoadResult?.compilation?.getSourceFileByUri(file2.uri);
|
22856
|
-
if (sourceFile?.version === file2.version) {
|
22895
|
+
if (sourceFile?.version === file2.version && sourceFile.package.locale === locale && sourceFile.package.dialect === dialect) {
|
22857
22896
|
result = sourceFile.createCopy();
|
22858
22897
|
} else {
|
22859
22898
|
result = SourceFile3.create(file2.text, file2.uri, file2.version);
|
@@ -26455,7 +26494,7 @@ var TsPropertyEntity = class {
|
|
26455
26494
|
const decl = this.getDeclaration();
|
26456
26495
|
return this._forceStatic || decl !== void 0 && (ts2.getCombinedModifierFlags(decl) & ts2.ModifierFlags.Static) !== 0;
|
26457
26496
|
}
|
26458
|
-
|
26497
|
+
isBasic() {
|
26459
26498
|
let result = !this.isStatic();
|
26460
26499
|
if (result) {
|
26461
26500
|
const isHidden = this.isHidden();
|
@@ -26475,7 +26514,7 @@ var TsPropertyEntity = class {
|
|
26475
26514
|
}
|
26476
26515
|
return result;
|
26477
26516
|
}
|
26478
|
-
|
26517
|
+
isOverridden() {
|
26479
26518
|
return false;
|
26480
26519
|
}
|
26481
26520
|
isAbstract() {
|
@@ -26576,7 +26615,7 @@ var TsAccessorEntity = class {
|
|
26576
26615
|
const declaration = this.getGetAccessorDeclaration();
|
26577
26616
|
return this._forceStatic || declaration !== void 0 && (ts2.getCombinedModifierFlags(declaration) & ts2.ModifierFlags.Static) !== 0;
|
26578
26617
|
}
|
26579
|
-
|
26618
|
+
isBasic() {
|
26580
26619
|
let result = !this.isStatic();
|
26581
26620
|
if (result) {
|
26582
26621
|
const isHidden = this.isHidden();
|
@@ -26596,7 +26635,7 @@ var TsAccessorEntity = class {
|
|
26596
26635
|
}
|
26597
26636
|
return result;
|
26598
26637
|
}
|
26599
|
-
|
26638
|
+
isOverridden() {
|
26600
26639
|
return false;
|
26601
26640
|
}
|
26602
26641
|
isAbstract() {
|
@@ -26735,7 +26774,7 @@ var TsFunctionEntity = class {
|
|
26735
26774
|
isStatic() {
|
26736
26775
|
return this._forceStatic || (ts2.getCombinedModifierFlags(this._declaration) & ts2.ModifierFlags.Static) !== 0;
|
26737
26776
|
}
|
26738
|
-
|
26777
|
+
isBasic() {
|
26739
26778
|
let result = !this.isStatic();
|
26740
26779
|
if (result) {
|
26741
26780
|
const isHidden = this.isHidden();
|
@@ -26755,7 +26794,7 @@ var TsFunctionEntity = class {
|
|
26755
26794
|
}
|
26756
26795
|
return result;
|
26757
26796
|
}
|
26758
|
-
|
26797
|
+
isOverridden() {
|
26759
26798
|
return false;
|
26760
26799
|
}
|
26761
26800
|
isAbstract() {
|
@@ -26855,10 +26894,10 @@ var TsIteratorFunctionEntity = class {
|
|
26855
26894
|
isStatic() {
|
26856
26895
|
return false;
|
26857
26896
|
}
|
26858
|
-
|
26897
|
+
isBasic() {
|
26859
26898
|
return true;
|
26860
26899
|
}
|
26861
|
-
|
26900
|
+
isOverridden() {
|
26862
26901
|
return false;
|
26863
26902
|
}
|
26864
26903
|
isAbstract() {
|
@@ -27076,10 +27115,10 @@ var TsIndexSignatureEntity = class {
|
|
27076
27115
|
isHidden() {
|
27077
27116
|
return this._tsctx.getTypeMemberHiding(this._declaration, this._containingType);
|
27078
27117
|
}
|
27079
|
-
|
27118
|
+
isBasic() {
|
27080
27119
|
return false;
|
27081
27120
|
}
|
27082
|
-
|
27121
|
+
isOverridden() {
|
27083
27122
|
return false;
|
27084
27123
|
}
|
27085
27124
|
isAbstract() {
|
@@ -27258,10 +27297,10 @@ var TsEnumMemberEntity = class {
|
|
27258
27297
|
isStatic() {
|
27259
27298
|
return true;
|
27260
27299
|
}
|
27261
|
-
|
27300
|
+
isBasic() {
|
27262
27301
|
return false;
|
27263
27302
|
}
|
27264
|
-
|
27303
|
+
isOverridden() {
|
27265
27304
|
return false;
|
27266
27305
|
}
|
27267
27306
|
isAbstract() {
|
@@ -27752,7 +27791,7 @@ var NodeTypeUtils = class {
|
|
27752
27791
|
}
|
27753
27792
|
}
|
27754
27793
|
static isNoneLiteral(node) {
|
27755
|
-
return node.kind === 85 /* KeywordExpression */ && node.keyword.keywordKind ===
|
27794
|
+
return node.kind === 85 /* KeywordExpression */ && node.keyword.keywordKind === 57 /* None */;
|
27756
27795
|
}
|
27757
27796
|
static isSubprogramDeclarationOrLiteral(node) {
|
27758
27797
|
switch (node.kind) {
|
@@ -27873,11 +27912,11 @@ var PackageVariableDeclarationEntity = class {
|
|
27873
27912
|
this.kind = 0 /* Variable */;
|
27874
27913
|
this.subkind = "package";
|
27875
27914
|
this._typeInferrer = new Cached();
|
27876
|
-
this._modifierFlags =
|
27915
|
+
this._modifierFlags = 2048 /* NotComputed */;
|
27877
27916
|
this._hasReportedAllDiagnostics = false;
|
27878
27917
|
}
|
27879
27918
|
get modifierFlags() {
|
27880
|
-
return this._modifierFlags ===
|
27919
|
+
return this._modifierFlags === 2048 /* NotComputed */ ? createDeclaredModifierFlags(this._node) : this._modifierFlags;
|
27881
27920
|
}
|
27882
27921
|
getName() {
|
27883
27922
|
return this._analyzer.createNameFromIdentifier(this._node.name);
|
@@ -27907,7 +27946,7 @@ var PackageVariableDeclarationEntity = class {
|
|
27907
27946
|
return void 0;
|
27908
27947
|
}
|
27909
27948
|
isConstant() {
|
27910
|
-
return (this.modifierFlags &
|
27949
|
+
return (this.modifierFlags & 1024 /* Const */) !== 0;
|
27911
27950
|
}
|
27912
27951
|
isHidden() {
|
27913
27952
|
return this._analyzer.createPackageMemberHiding(this._node, this.modifierFlags);
|
@@ -27925,7 +27964,7 @@ var PackageVariableDeclarationEntity = class {
|
|
27925
27964
|
const inferrer = this._typeInferrer.getCachedValue();
|
27926
27965
|
if (inferrer?.hasDetectedInferenceCycle === true) {
|
27927
27966
|
diagnostics.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
27928
|
-
|
27967
|
+
294 /* RecursionOccurredWhileInferringTheTypeOfTheVariable */,
|
27929
27968
|
this._node.name
|
27930
27969
|
));
|
27931
27970
|
}
|
@@ -27940,7 +27979,7 @@ var ComputedPackageVariableDeclarationEntity = class {
|
|
27940
27979
|
constructor(analyzer, getterDeclaration, setterDeclaration) {
|
27941
27980
|
this.kind = 0 /* Variable */;
|
27942
27981
|
this.subkind = "package";
|
27943
|
-
this._modifierFlags =
|
27982
|
+
this._modifierFlags = 2048 /* NotComputed */;
|
27944
27983
|
this._analyzer = analyzer;
|
27945
27984
|
this._getterDeclaration = getterDeclaration;
|
27946
27985
|
this._setterDeclaration = setterDeclaration;
|
@@ -27953,7 +27992,7 @@ var ComputedPackageVariableDeclarationEntity = class {
|
|
27953
27992
|
}
|
27954
27993
|
}
|
27955
27994
|
get modifierFlags() {
|
27956
|
-
return this._modifierFlags ===
|
27995
|
+
return this._modifierFlags === 2048 /* NotComputed */ ? createDeclaredModifierFlags(this._getterOrSetterDeclaration) : this._modifierFlags;
|
27957
27996
|
}
|
27958
27997
|
getName() {
|
27959
27998
|
return this._analyzer.createNameFromIdentifier(this._getterOrSetterDeclaration.name);
|
@@ -27972,7 +28011,7 @@ var ComputedPackageVariableDeclarationEntity = class {
|
|
27972
28011
|
return getterEntity !== void 0 ? getterEntity.isHidden() : this.getSetter()?.isHidden();
|
27973
28012
|
}
|
27974
28013
|
isConstant() {
|
27975
|
-
return (this.modifierFlags &
|
28014
|
+
return (this.modifierFlags & 1024 /* Const */) !== 0;
|
27976
28015
|
}
|
27977
28016
|
getDefinition() {
|
27978
28017
|
const nodes = [];
|
@@ -28006,13 +28045,13 @@ var FieldDeclarationEntity = class {
|
|
28006
28045
|
this.subkind = "field";
|
28007
28046
|
this._typeInferrer = new Cached();
|
28008
28047
|
this._overriddenMembers = new Cached();
|
28009
|
-
this._modifierFlags =
|
28048
|
+
this._modifierFlags = 2048 /* NotComputed */;
|
28010
28049
|
this._hasReportedAllDiagnostics = false;
|
28011
28050
|
this._analyzer = analyzer;
|
28012
28051
|
this._node = node;
|
28013
28052
|
}
|
28014
28053
|
get modifierFlags() {
|
28015
|
-
return this._modifierFlags ===
|
28054
|
+
return this._modifierFlags === 2048 /* NotComputed */ ? createDeclaredModifierFlags(this._node) : this._modifierFlags;
|
28016
28055
|
}
|
28017
28056
|
getName() {
|
28018
28057
|
return this._analyzer.createNameFromIdentifier(this._node.name);
|
@@ -28040,7 +28079,7 @@ var FieldDeclarationEntity = class {
|
|
28040
28079
|
return void 0;
|
28041
28080
|
}
|
28042
28081
|
isConstant() {
|
28043
|
-
return (this.modifierFlags &
|
28082
|
+
return (this.modifierFlags & 1024 /* Const */) !== 0;
|
28044
28083
|
}
|
28045
28084
|
isHidden() {
|
28046
28085
|
return this._analyzer.createTypeMemberHiding(this._node, this.modifierFlags);
|
@@ -28057,14 +28096,14 @@ var FieldDeclarationEntity = class {
|
|
28057
28096
|
isStatic() {
|
28058
28097
|
return (this.modifierFlags & 64 /* Static */) !== 0;
|
28059
28098
|
}
|
28060
|
-
|
28061
|
-
return (this.modifierFlags &
|
28099
|
+
isBasic() {
|
28100
|
+
return (this.modifierFlags & 32 /* Basic */) !== 0;
|
28062
28101
|
}
|
28063
|
-
|
28064
|
-
return (this.modifierFlags &
|
28102
|
+
isOverridden() {
|
28103
|
+
return (this.modifierFlags & 256 /* Redefined */) !== 0;
|
28065
28104
|
}
|
28066
28105
|
isAbstract() {
|
28067
|
-
let result = (this.modifierFlags &
|
28106
|
+
let result = (this.modifierFlags & 128 /* Abstract */) !== 0;
|
28068
28107
|
if (!result && this._node.initializer === void 0) {
|
28069
28108
|
const container = this.getContainer();
|
28070
28109
|
result = container.kind === "type" && container.typeEntity.typeEntityKind === 1 /* Structured */ && container.typeEntity.isAspect();
|
@@ -28084,7 +28123,7 @@ var FieldDeclarationEntity = class {
|
|
28084
28123
|
const inferrer = this._typeInferrer.getCachedValue();
|
28085
28124
|
if (inferrer?.hasDetectedInferenceCycle === true) {
|
28086
28125
|
diagnostics.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
28087
|
-
|
28126
|
+
294 /* RecursionOccurredWhileInferringTheTypeOfTheVariable */,
|
28088
28127
|
this._node.name
|
28089
28128
|
));
|
28090
28129
|
}
|
@@ -28100,7 +28139,7 @@ var ComputedFieldDeclarationEntity = class {
|
|
28100
28139
|
this.kind = 0 /* Variable */;
|
28101
28140
|
this.subkind = "field";
|
28102
28141
|
this._overriddenMembers = new Cached();
|
28103
|
-
this._modifierFlags =
|
28142
|
+
this._modifierFlags = 2048 /* NotComputed */;
|
28104
28143
|
this._analyzer = analyzer;
|
28105
28144
|
this._getterDeclaration = getterDeclaration;
|
28106
28145
|
this._setterDeclaration = setterDeclaration;
|
@@ -28113,7 +28152,7 @@ var ComputedFieldDeclarationEntity = class {
|
|
28113
28152
|
}
|
28114
28153
|
}
|
28115
28154
|
get modifierFlags() {
|
28116
|
-
return this._modifierFlags ===
|
28155
|
+
return this._modifierFlags === 2048 /* NotComputed */ ? createDeclaredModifierFlags(this._getterOrSetterDeclaration) : this._modifierFlags;
|
28117
28156
|
}
|
28118
28157
|
getName() {
|
28119
28158
|
return this._analyzer.createNameFromIdentifier(this._getterOrSetterDeclaration.name);
|
@@ -28132,19 +28171,19 @@ var ComputedFieldDeclarationEntity = class {
|
|
28132
28171
|
return getterEntity !== void 0 ? getterEntity.isHidden() : this.getSetter()?.isHidden();
|
28133
28172
|
}
|
28134
28173
|
isConstant() {
|
28135
|
-
return (this.modifierFlags &
|
28174
|
+
return (this.modifierFlags & 1024 /* Const */) !== 0;
|
28136
28175
|
}
|
28137
28176
|
isStatic() {
|
28138
28177
|
return (this.modifierFlags & 64 /* Static */) !== 0;
|
28139
28178
|
}
|
28140
|
-
|
28141
|
-
return (this.modifierFlags &
|
28179
|
+
isBasic() {
|
28180
|
+
return (this.modifierFlags & 32 /* Basic */) !== 0;
|
28142
28181
|
}
|
28143
|
-
|
28144
|
-
return (this.modifierFlags &
|
28182
|
+
isOverridden() {
|
28183
|
+
return (this.modifierFlags & 256 /* Redefined */) !== 0;
|
28145
28184
|
}
|
28146
28185
|
isAbstract() {
|
28147
|
-
let result = (this.modifierFlags &
|
28186
|
+
let result = (this.modifierFlags & 128 /* Abstract */) !== 0;
|
28148
28187
|
if (!result && this._getterOrSetterDeclaration.block === void 0) {
|
28149
28188
|
const container = this.getContainer();
|
28150
28189
|
result = container.kind === "type" && container.typeEntity.typeEntityKind === 1 /* Structured */ && container.typeEntity.isAspect();
|
@@ -28230,10 +28269,10 @@ var VariantDeclarationEntity = class {
|
|
28230
28269
|
isStatic() {
|
28231
28270
|
return true;
|
28232
28271
|
}
|
28233
|
-
|
28272
|
+
isBasic() {
|
28234
28273
|
return false;
|
28235
28274
|
}
|
28236
|
-
|
28275
|
+
isOverridden() {
|
28237
28276
|
return false;
|
28238
28277
|
}
|
28239
28278
|
isAbstract() {
|
@@ -28308,7 +28347,7 @@ var LocalVariableDeclarationEntity = class {
|
|
28308
28347
|
const inferrer = this._typeInferrer.getCachedValue();
|
28309
28348
|
if (inferrer?.hasDetectedInferenceCycle === true) {
|
28310
28349
|
diagnostics.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
28311
|
-
|
28350
|
+
294 /* RecursionOccurredWhileInferringTheTypeOfTheVariable */,
|
28312
28351
|
this._node.name
|
28313
28352
|
));
|
28314
28353
|
}
|
@@ -28382,7 +28421,7 @@ var EnumerationVariableDeclarationEntity = class {
|
|
28382
28421
|
const inferrer = this._typeInferrer.getCachedValue();
|
28383
28422
|
if (inferrer?.hasDetectedInferenceCycle === true) {
|
28384
28423
|
diagnostics.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
28385
|
-
|
28424
|
+
294 /* RecursionOccurredWhileInferringTheTypeOfTheVariable */,
|
28386
28425
|
this._node.name
|
28387
28426
|
));
|
28388
28427
|
}
|
@@ -28546,7 +28585,7 @@ var ParameterDeclarationEntity = class {
|
|
28546
28585
|
const inferrer = this._typeInferrer.getCachedValue();
|
28547
28586
|
if (inferrer?.hasDetectedInferenceCycle === true) {
|
28548
28587
|
diagnostics.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
28549
|
-
|
28588
|
+
294 /* RecursionOccurredWhileInferringTheTypeOfTheVariable */,
|
28550
28589
|
this._node.name
|
28551
28590
|
));
|
28552
28591
|
}
|
@@ -28635,7 +28674,7 @@ var IndexParameterDeclarationEntity = class {
|
|
28635
28674
|
const inferrer = this._typeInferrer.getCachedValue();
|
28636
28675
|
if (inferrer?.hasDetectedInferenceCycle === true) {
|
28637
28676
|
diagnostics.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
28638
|
-
|
28677
|
+
294 /* RecursionOccurredWhileInferringTheTypeOfTheVariable */,
|
28639
28678
|
this._getterOrSetterParameterDeclaration.name
|
28640
28679
|
));
|
28641
28680
|
}
|
@@ -28748,12 +28787,12 @@ IntrinsicPackageVariableEntity = __decorateClass([
|
|
28748
28787
|
entityToStringDecorator
|
28749
28788
|
], IntrinsicPackageVariableEntity);
|
28750
28789
|
var IntrinsicFieldEntity = class {
|
28751
|
-
constructor(_name, _type, _container, _isStatic,
|
28790
|
+
constructor(_name, _type, _container, _isStatic, _isBasic, _isRedefined, _isAbstract, _isSpecial, _isHidden, _getter, _setter, _overriddenMembers) {
|
28752
28791
|
this._name = _name;
|
28753
28792
|
this._type = _type;
|
28754
28793
|
this._container = _container;
|
28755
28794
|
this._isStatic = _isStatic;
|
28756
|
-
this.
|
28795
|
+
this._isBasic = _isBasic;
|
28757
28796
|
this._isRedefined = _isRedefined;
|
28758
28797
|
this._isAbstract = _isAbstract;
|
28759
28798
|
this._isSpecial = _isSpecial;
|
@@ -28797,10 +28836,10 @@ var IntrinsicFieldEntity = class {
|
|
28797
28836
|
isStatic() {
|
28798
28837
|
return this._isStatic;
|
28799
28838
|
}
|
28800
|
-
|
28801
|
-
return this.
|
28839
|
+
isBasic() {
|
28840
|
+
return this._isBasic;
|
28802
28841
|
}
|
28803
|
-
|
28842
|
+
isOverridden() {
|
28804
28843
|
return this._isRedefined;
|
28805
28844
|
}
|
28806
28845
|
isAbstract() {
|
@@ -28946,7 +28985,7 @@ var SourcePackageMembersCreator = class {
|
|
28946
28985
|
resultingComputedVariables.set(accessor, entity);
|
28947
28986
|
if (accessor.kind === 37 /* PackageVariableSetterDeclaration */) {
|
28948
28987
|
diagnostics?.addDiagnostic(analyzer.createNodeDiagnostic(
|
28949
|
-
|
28988
|
+
307 /* WriteFunctionHasNoCorrespondingReadFunction */,
|
28950
28989
|
accessor.name
|
28951
28990
|
));
|
28952
28991
|
}
|
@@ -33617,7 +33656,7 @@ var PackageMemberNameConflictsValidator = class {
|
|
33617
33656
|
} else {
|
33618
33657
|
this.createAndAddNameConflictDiagnosticsForAllEntities(
|
33619
33658
|
members,
|
33620
|
-
|
33659
|
+
298 /* PackageAlreadyContainsDeclarationWithTheSameName */
|
33621
33660
|
);
|
33622
33661
|
}
|
33623
33662
|
}
|
@@ -33639,7 +33678,7 @@ var PackageMemberNameConflictsValidator = class {
|
|
33639
33678
|
}
|
33640
33679
|
this.createAndAddNameConflictDiagnosticsForAllEntities(
|
33641
33680
|
group,
|
33642
|
-
|
33681
|
+
299 /* PackageAlreadyContainsFunctionWithTheSameNameAndParameterTypes */
|
33643
33682
|
);
|
33644
33683
|
}
|
33645
33684
|
}
|
@@ -33672,7 +33711,7 @@ var PackageMemberNameConflictsValidator = class {
|
|
33672
33711
|
this.createAndAddNameConflictDiagnostic(
|
33673
33712
|
entity,
|
33674
33713
|
conflictingTypes,
|
33675
|
-
|
33714
|
+
300 /* PackageAlreadyContainsTypeWithTheSameNameAndSameOrIntersectingTypeParameterCount */
|
33676
33715
|
);
|
33677
33716
|
}
|
33678
33717
|
}
|
@@ -33787,7 +33826,7 @@ var SourcePackageMemberConflictsValidator = class {
|
|
33787
33826
|
if (constructorDeclarations.length > 1 || entryPointDeclarations.length > 1) {
|
33788
33827
|
const diagnostics = Array.from(nameConflictsValidationDiagnostics);
|
33789
33828
|
if (constructorDeclarations.length > 1) {
|
33790
|
-
const diagnosticData = DiagnosticData.withCode(
|
33829
|
+
const diagnosticData = DiagnosticData.withCode(303 /* PackageCanHaveOnlyOneConstructor */);
|
33791
33830
|
for (const declaration of constructorDeclarations) {
|
33792
33831
|
diagnostics.push(new Diagnostic(
|
33793
33832
|
diagnosticData,
|
@@ -33796,7 +33835,7 @@ var SourcePackageMemberConflictsValidator = class {
|
|
33796
33835
|
}
|
33797
33836
|
}
|
33798
33837
|
if (entryPointDeclarations.length > 1) {
|
33799
|
-
const diagnosticData = DiagnosticData.withCode(
|
33838
|
+
const diagnosticData = DiagnosticData.withCode(302 /* PackageCanHaveOnlyEntryPoint */);
|
33800
33839
|
for (const declaration of entryPointDeclarations) {
|
33801
33840
|
diagnostics.push(new Diagnostic(
|
33802
33841
|
diagnosticData,
|
@@ -33840,7 +33879,7 @@ var SourceFileMembers = class {
|
|
33840
33879
|
const packageAliasesByNameKey = Query.from(this._namedMembers).filter((d) => d.kind === 10 /* PackageAlias */).groupByToMap((a) => a.getName().key);
|
33841
33880
|
for (const [name, aliases] of packageAliasesByNameKey) {
|
33842
33881
|
if (aliases.length > 1) {
|
33843
|
-
const diagnosticData = DiagnosticData.withCode(
|
33882
|
+
const diagnosticData = DiagnosticData.withCode(301 /* PackageAliasWithTheSameNameAlreadyExits */);
|
33844
33883
|
for (const alias of aliases) {
|
33845
33884
|
const diagnosticLocation = this.getDiagnosticLocation(alias);
|
33846
33885
|
if (diagnosticLocation !== void 0) {
|
@@ -33853,7 +33892,7 @@ var SourceFileMembers = class {
|
|
33853
33892
|
const diagnosticLocation = this.getDiagnosticLocation(aliases[0]);
|
33854
33893
|
if (diagnosticLocation !== void 0) {
|
33855
33894
|
const diagnosticData = DiagnosticData.withCode(
|
33856
|
-
|
33895
|
+
298 /* PackageAlreadyContainsDeclarationWithTheSameName */
|
33857
33896
|
);
|
33858
33897
|
diagnostics.addDiagnostic(new Diagnostic(diagnosticData, diagnosticLocation));
|
33859
33898
|
}
|
@@ -33915,7 +33954,7 @@ var Resolver11 = class {
|
|
33915
33954
|
previousPackageRelatedQualifier = resolvedQualifier;
|
33916
33955
|
} else {
|
33917
33956
|
if (i !== qualifiers.length - 1) {
|
33918
|
-
diagnostic = this._analyzer.createNodeDiagnostic(
|
33957
|
+
diagnostic = this._analyzer.createNodeDiagnostic(289 /* PackageNameOrAliasExpected */, qualifier);
|
33919
33958
|
}
|
33920
33959
|
break;
|
33921
33960
|
}
|
@@ -33927,7 +33966,7 @@ var Resolver11 = class {
|
|
33927
33966
|
const lastQualifierIdentifier = qualifiers[qualifiers.length - 1];
|
33928
33967
|
if (!(lastQualifier.kind === "type" || lastQualifier.kind === "function")) {
|
33929
33968
|
const diagnostic2 = this._analyzer.createNodeDiagnostic(
|
33930
|
-
|
33969
|
+
288 /* TypeOrFunctionNameExpected */,
|
33931
33970
|
lastQualifierIdentifier
|
33932
33971
|
);
|
33933
33972
|
return new ResolutionResult4(new Meaning_unresolved9(), resolvedQualifiers, diagnostic2);
|
@@ -33946,7 +33985,7 @@ var Resolver11 = class {
|
|
33946
33985
|
let ambiguousDeclarations;
|
33947
33986
|
const declarations = this.semanticContext.getNamedDeclarationsByName(name);
|
33948
33987
|
if (declarations.length === 0) {
|
33949
|
-
diagnostic = this._analyzer.createNodeDiagnostic(
|
33988
|
+
diagnostic = this._analyzer.createNodeDiagnostic(287 /* TagNotFound */, nodeForDiagnostic);
|
33950
33989
|
} else if (declarations.length === 1) {
|
33951
33990
|
const declaration = declarations[0];
|
33952
33991
|
switch (declaration.value.kind) {
|
@@ -33967,7 +34006,7 @@ var Resolver11 = class {
|
|
33967
34006
|
break;
|
33968
34007
|
case "variable":
|
33969
34008
|
diagnostic = this._analyzer.createNodeDiagnostic(
|
33970
|
-
|
34009
|
+
288 /* TypeOrFunctionNameExpected */,
|
33971
34010
|
nodeForDiagnostic
|
33972
34011
|
);
|
33973
34012
|
break;
|
@@ -34016,12 +34055,12 @@ var Resolver11 = class {
|
|
34016
34055
|
if (resolvedQualifier === void 0) {
|
34017
34056
|
const packageEntity = qualifier.kind === "package-alias" ? qualifier.packageAlias.getPackage() : qualifier.packageTreeNode.package?.value;
|
34018
34057
|
if (packageEntity === void 0) {
|
34019
|
-
diagnostic = this._analyzer.createNodeDiagnostic(
|
34058
|
+
diagnostic = this._analyzer.createNodeDiagnostic(287 /* TagNotFound */, nodeForDiagnostic);
|
34020
34059
|
} else {
|
34021
34060
|
const lookup = new PackageMemberLookup(packageEntity, this.semanticContext.getLocalizationContext());
|
34022
34061
|
const declarations = lookup.getNamedMembersByName(name, this.semanticContext.getHidingMatcher());
|
34023
34062
|
if (declarations.length === 0) {
|
34024
|
-
diagnostic = this._analyzer.createNodeDiagnostic(
|
34063
|
+
diagnostic = this._analyzer.createNodeDiagnostic(287 /* TagNotFound */, nodeForDiagnostic);
|
34025
34064
|
} else if (declarations.length === 1) {
|
34026
34065
|
const declaration = declarations[0];
|
34027
34066
|
switch (declaration.value.kind) {
|
@@ -34039,7 +34078,7 @@ var Resolver11 = class {
|
|
34039
34078
|
break;
|
34040
34079
|
case 0 /* Variable */:
|
34041
34080
|
diagnostic = this._analyzer.createNodeDiagnostic(
|
34042
|
-
|
34081
|
+
288 /* TypeOrFunctionNameExpected */,
|
34043
34082
|
nodeForDiagnostic
|
34044
34083
|
);
|
34045
34084
|
break;
|
@@ -34907,9 +34946,9 @@ var GraphBuilder = class {
|
|
34907
34946
|
this.visitCondition(node.expression, conditionTargets);
|
34908
34947
|
break;
|
34909
34948
|
case 85 /* KeywordExpression */: {
|
34910
|
-
if (node.keyword.keywordKind ===
|
34949
|
+
if (node.keyword.keywordKind === 52 /* Yes */) {
|
34911
34950
|
conditionTargets.trueTarget.addPredecessor(this._currentPredecessor);
|
34912
|
-
} else if (node.keyword.keywordKind ===
|
34951
|
+
} else if (node.keyword.keywordKind === 53 /* No */) {
|
34913
34952
|
conditionTargets.falseTarget.addPredecessor(this._currentPredecessor);
|
34914
34953
|
} else {
|
34915
34954
|
this.visitNode(node);
|
@@ -34948,7 +34987,7 @@ var GraphBuilder = class {
|
|
34948
34987
|
}
|
34949
34988
|
}
|
34950
34989
|
visitPrefixUnaryExpressionInCondition(node, conditionTargets) {
|
34951
|
-
if (node.operator.kind === 3 /* Keyword */ && node.operator.keywordKind ===
|
34990
|
+
if (node.operator.kind === 3 /* Keyword */ && node.operator.keywordKind === 43 /* Not */) {
|
34952
34991
|
this.visitCondition(node.operand, conditionTargets.swap());
|
34953
34992
|
} else {
|
34954
34993
|
this.visitNode(node);
|
@@ -34985,7 +35024,7 @@ var GraphBuilder = class {
|
|
34985
35024
|
}
|
34986
35025
|
addUnreachableCodeDiagnostic(node) {
|
34987
35026
|
const data = DiagnosticData.withCode(
|
34988
|
-
|
35027
|
+
292 /* UnreachableCode */,
|
34989
35028
|
[],
|
34990
35029
|
3 /* Hint */,
|
34991
35030
|
2 /* Unreachable */
|
@@ -37301,7 +37340,7 @@ var SemanticContextValidatingNameConflictsBase = class extends SemanticContextWi
|
|
37301
37340
|
if (members.every((m) => m.kind === 1 /* Function */)) {
|
37302
37341
|
this.validateNestedFunctionsConflicts(members, sourceFile, diagnostics);
|
37303
37342
|
} else {
|
37304
|
-
const diagnosticData = DiagnosticData.withCode(
|
37343
|
+
const diagnosticData = DiagnosticData.withCode(295 /* ScopeAlreadyContainsDeclarationWithTheSameName */);
|
37305
37344
|
const preferSetterParameter = this.getContainingSubprogram()?.kind === "setter";
|
37306
37345
|
for (const member of members) {
|
37307
37346
|
const diagnosticRange = getDiagnosticRange(member, preferSetterParameter);
|
@@ -37337,7 +37376,7 @@ var SemanticContextValidatingNameConflictsBase = class extends SemanticContextWi
|
|
37337
37376
|
continue;
|
37338
37377
|
}
|
37339
37378
|
const diagnosticData = DiagnosticData.withCode(
|
37340
|
-
|
37379
|
+
296 /* ScopeAlreadyContainsFunctionWithTheSameNameAndParameterTypes */
|
37341
37380
|
);
|
37342
37381
|
for (const entity of group) {
|
37343
37382
|
const diagnosticRange = getDiagnosticRange(entity);
|
@@ -37762,7 +37801,7 @@ var SubprogramTypeParameterSemanticContext = class extends SemanticContextValida
|
|
37762
37801
|
if (name.considerEqual(resultSpecialName)) {
|
37763
37802
|
diagnostics.addDiagnostic(new Diagnostic(
|
37764
37803
|
DiagnosticData.withCode(
|
37765
|
-
|
37804
|
+
297 /* ParameterName0ConflictsWithAutomaticallyGeneratedVariableName */,
|
37766
37805
|
[resultSpecialName.unescapedOriginal]
|
37767
37806
|
),
|
37768
37807
|
new DiagnosticLocation(parameter.name.rangeWithoutTrivia, sourceFile)
|
@@ -37814,7 +37853,7 @@ var ExplicitSubprogramParameterSemanticContext = class extends SubprogramParamet
|
|
37814
37853
|
const originalName = equalsResultSpecialName ? resultSpecialName.unescapedOriginal : valueSpecialName.unescapedOriginal;
|
37815
37854
|
diagnostics.addDiagnostic(new Diagnostic(
|
37816
37855
|
DiagnosticData.withCode(
|
37817
|
-
|
37856
|
+
297 /* ParameterName0ConflictsWithAutomaticallyGeneratedVariableName */,
|
37818
37857
|
[originalName]
|
37819
37858
|
),
|
37820
37859
|
new DiagnosticLocation(parameter.name.rangeWithoutTrivia, sourceFile)
|
@@ -39700,19 +39739,19 @@ var Analyzer = class _Analyzer {
|
|
39700
39739
|
dereferenceOperators
|
39701
39740
|
);
|
39702
39741
|
}
|
39703
|
-
|
39742
|
+
getBasicMethodOfOriginalTypeForBasicMethodOfAliasType(entity) {
|
39704
39743
|
const definition = entity.getDefinition();
|
39705
39744
|
if (!(definition.kind === 0 /* Source */ && definition.node.kind === 52 /* MethodDeclaration */)) {
|
39706
39745
|
return void 0;
|
39707
39746
|
}
|
39708
|
-
return this.
|
39747
|
+
return this.checkBodyOfBasicAliasTypeMethod(definition.node)?.basicMethodOfOriginalType;
|
39709
39748
|
}
|
39710
|
-
|
39749
|
+
checkBodyOfBasicAliasTypeMethod(node, diagnostics) {
|
39711
39750
|
if (node.block === void 0) {
|
39712
39751
|
return void 0;
|
39713
39752
|
}
|
39714
39753
|
const entity = this.entity.ofMethodDeclaration(node);
|
39715
|
-
if (!entity.
|
39754
|
+
if (!entity.isBasic()) {
|
39716
39755
|
return void 0;
|
39717
39756
|
}
|
39718
39757
|
const container = entity.getContainer();
|
@@ -39725,7 +39764,7 @@ var Analyzer = class _Analyzer {
|
|
39725
39764
|
const firstStatement = block.expressionOrStatementList?.statements.first();
|
39726
39765
|
if (firstStatement?.kind !== 106 /* ExpressionStatement */) {
|
39727
39766
|
diagnostics?.addDiagnostic(this.createNodeDiagnostic(
|
39728
|
-
276 /*
|
39767
|
+
276 /* IncorrectBodyOfBasicAliasTypeMethod */,
|
39729
39768
|
node.block.openBraceToken
|
39730
39769
|
));
|
39731
39770
|
return void 0;
|
@@ -39736,7 +39775,7 @@ var Analyzer = class _Analyzer {
|
|
39736
39775
|
}
|
39737
39776
|
if (expression.kind !== 69 /* CallExpression */) {
|
39738
39777
|
diagnostics?.addDiagnostic(this.createNodeDiagnostic(
|
39739
|
-
276 /*
|
39778
|
+
276 /* IncorrectBodyOfBasicAliasTypeMethod */,
|
39740
39779
|
node.block.openBraceToken
|
39741
39780
|
));
|
39742
39781
|
return void 0;
|
@@ -39751,7 +39790,7 @@ var Analyzer = class _Analyzer {
|
|
39751
39790
|
case "constructor-call":
|
39752
39791
|
case "operator-call":
|
39753
39792
|
diagnostics?.addDiagnostic(this.createNodeDiagnostic(
|
39754
|
-
276 /*
|
39793
|
+
276 /* IncorrectBodyOfBasicAliasTypeMethod */,
|
39755
39794
|
expression
|
39756
39795
|
));
|
39757
39796
|
return void 0;
|
@@ -39761,14 +39800,14 @@ var Analyzer = class _Analyzer {
|
|
39761
39800
|
Debug.never(meaning);
|
39762
39801
|
}
|
39763
39802
|
const calledFunctionEntity = calledFunction.getEntity();
|
39764
|
-
if (calledFunctionEntity.subkind !== "method" || !calledFunctionEntity.
|
39803
|
+
if (calledFunctionEntity.subkind !== "method" || !calledFunctionEntity.isBasic()) {
|
39765
39804
|
diagnostics?.addDiagnostic(this.createNodeDiagnostic(
|
39766
|
-
276 /*
|
39805
|
+
276 /* IncorrectBodyOfBasicAliasTypeMethod */,
|
39767
39806
|
expression
|
39768
39807
|
));
|
39769
39808
|
return void 0;
|
39770
39809
|
}
|
39771
|
-
return {
|
39810
|
+
return { basicMethodOfOriginalType: calledFunctionEntity };
|
39772
39811
|
}
|
39773
39812
|
getControlFlowGraph(sourceFile) {
|
39774
39813
|
let result = this._controlFlowGraphs.get(sourceFile);
|
@@ -40211,7 +40250,7 @@ var Type4 = class {
|
|
40211
40250
|
} catch (e) {
|
40212
40251
|
if (e instanceof RecursiveAnalysisError) {
|
40213
40252
|
const diagnostic = this._analyzer.createNodeDiagnostic(
|
40214
|
-
|
40253
|
+
293 /* RecursionOccurredWhileCalculatingTheTypeOfTheExpression */,
|
40215
40254
|
node
|
40216
40255
|
);
|
40217
40256
|
this._analyzer.addDiagnosticComputedLazily(diagnostic);
|
@@ -40579,10 +40618,10 @@ var Type4 = class {
|
|
40579
40618
|
}
|
40580
40619
|
ofKeywordExpression(node) {
|
40581
40620
|
switch (node.keyword.keywordKind) {
|
40582
|
-
case
|
40583
|
-
case
|
40621
|
+
case 52 /* Yes */:
|
40622
|
+
case 53 /* No */:
|
40584
40623
|
return this._analyzer.standardTypes.yesNo;
|
40585
|
-
case
|
40624
|
+
case 57 /* None */:
|
40586
40625
|
return this._analyzer.standardTypes.none;
|
40587
40626
|
default:
|
40588
40627
|
Debug.never(node.keyword);
|
@@ -41608,7 +41647,7 @@ var Entity4 = class {
|
|
41608
41647
|
this._fieldEntities.set(accessor, entity);
|
41609
41648
|
if (accessor.kind === 56 /* FieldSetterDeclaration */) {
|
41610
41649
|
diagnostics.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
41611
|
-
|
41650
|
+
307 /* WriteFunctionHasNoCorrespondingReadFunction */,
|
41612
41651
|
accessor.name
|
41613
41652
|
));
|
41614
41653
|
}
|
@@ -41646,7 +41685,7 @@ var Entity4 = class {
|
|
41646
41685
|
this._referenceOperatorEntities.set(accessor, entity);
|
41647
41686
|
if (accessor.kind === 51 /* DereferencedVariableSetterDeclaration */) {
|
41648
41687
|
diagnostics.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
41649
|
-
|
41688
|
+
307 /* WriteFunctionHasNoCorrespondingReadFunction */,
|
41650
41689
|
accessor.caretToken
|
41651
41690
|
));
|
41652
41691
|
}
|
@@ -41686,7 +41725,7 @@ var Entity4 = class {
|
|
41686
41725
|
this._indexerEntities.set(accessor, entity);
|
41687
41726
|
if (accessor.kind === 48 /* IndexedElementSetterDeclaration */) {
|
41688
41727
|
diagnostics.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
41689
|
-
|
41728
|
+
307 /* WriteFunctionHasNoCorrespondingReadFunction */,
|
41690
41729
|
accessor.parameterClause
|
41691
41730
|
));
|
41692
41731
|
}
|
@@ -42062,7 +42101,7 @@ var DefaultConstructors = class {
|
|
42062
42101
|
return result;
|
42063
42102
|
}
|
42064
42103
|
getPublicInstanceStoredVariables(type) {
|
42065
|
-
return Query.from(flattenTypeMemberDeclarationList(type.body.memberBlock.memberList)).filter((d) => d.kind === 54 /* FieldDeclaration */ && findModifier(d,
|
42104
|
+
return Query.from(flattenTypeMemberDeclarationList(type.body.memberBlock.memberList)).filter((d) => d.kind === 54 /* FieldDeclaration */ && findModifier(d, 41 /* Static */) === void 0 && findModifier(d, 37 /* Hidden */) === void 0).toArray();
|
42066
42105
|
}
|
42067
42106
|
};
|
42068
42107
|
var OverriddenMember = class {
|
@@ -42242,7 +42281,7 @@ var OverriddenMember = class {
|
|
42242
42281
|
if (entity.isStatic()) {
|
42243
42282
|
return false;
|
42244
42283
|
}
|
42245
|
-
if (!entity.
|
42284
|
+
if (!entity.isOverridden()) {
|
42246
42285
|
return false;
|
42247
42286
|
}
|
42248
42287
|
const container = entity.getContainer();
|
@@ -42252,7 +42291,7 @@ var OverriddenMember = class {
|
|
42252
42291
|
if (entity.isStatic()) {
|
42253
42292
|
return false;
|
42254
42293
|
}
|
42255
|
-
if (entity.
|
42294
|
+
if (entity.isBasic() || entity.isOverridden() || entity.isAbstract()) {
|
42256
42295
|
return true;
|
42257
42296
|
}
|
42258
42297
|
const baseContainer = entity.getContainer();
|
@@ -42336,10 +42375,10 @@ var Tags = class {
|
|
42336
42375
|
break;
|
42337
42376
|
case 85 /* KeywordExpression */: {
|
42338
42377
|
switch (value.keyword.keywordKind) {
|
42339
|
-
case
|
42378
|
+
case 52 /* Yes */:
|
42340
42379
|
result = new TagArgument_boolean(true);
|
42341
42380
|
break;
|
42342
|
-
case
|
42381
|
+
case 53 /* No */:
|
42343
42382
|
result = new TagArgument_boolean(false);
|
42344
42383
|
break;
|
42345
42384
|
default:
|
@@ -44153,7 +44192,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
44153
44192
|
case "resolved": {
|
44154
44193
|
const receiverType = this._analyzer.type.ofExpression(node.expression);
|
44155
44194
|
if (this._analyzer.canTypeBeNone(receiverType)) {
|
44156
|
-
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
44195
|
+
this.addDiagnostic(this._analyzer.createNodeDiagnostic(290 /* ExpressionCanBeNone */, node.expression));
|
44157
44196
|
}
|
44158
44197
|
break;
|
44159
44198
|
}
|
@@ -44178,7 +44217,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
44178
44217
|
if (meaning.kind !== "unresolved") {
|
44179
44218
|
const receiverType = this._analyzer.type.ofExpression(node.expression);
|
44180
44219
|
if (this._analyzer.canTypeBeNone(receiverType)) {
|
44181
|
-
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
44220
|
+
this.addDiagnostic(this._analyzer.createNodeDiagnostic(290 /* ExpressionCanBeNone */, node.expression));
|
44182
44221
|
}
|
44183
44222
|
}
|
44184
44223
|
}
|
@@ -44212,7 +44251,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
44212
44251
|
const containingSubprogram = this._analyzer.semanticContext.containing(node).getContainingSubprogram();
|
44213
44252
|
if (containingSubprogram?.allowsAsyncCalls() !== true) {
|
44214
44253
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
44215
|
-
|
44254
|
+
286 /* AsyncFunctionCanOnlyBeCalledFromFunctionMarkedWithAsyncModifier */,
|
44216
44255
|
node
|
44217
44256
|
));
|
44218
44257
|
}
|
@@ -44220,7 +44259,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
44220
44259
|
if (meaning.kind === "object-function-call") {
|
44221
44260
|
const calleeType = this._analyzer.type.ofExpression(node.expression);
|
44222
44261
|
if (this._analyzer.canTypeBeNone(calleeType)) {
|
44223
|
-
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
44262
|
+
this.addDiagnostic(this._analyzer.createNodeDiagnostic(290 /* ExpressionCanBeNone */, node.expression));
|
44224
44263
|
}
|
44225
44264
|
}
|
44226
44265
|
}
|
@@ -44351,24 +44390,17 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
44351
44390
|
checkConstructorDeclaration(node) {
|
44352
44391
|
const entity = this._analyzer.entity.ofConstructorDeclaration(node);
|
44353
44392
|
this.checkTypeMemberBodyPresence(entity, node.block, node.creationKeyword);
|
44354
|
-
const
|
44355
|
-
if (
|
44393
|
+
const basicModifier = findModifier(node, 17 /* Basic */);
|
44394
|
+
if (basicModifier !== void 0) {
|
44356
44395
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
44357
|
-
|
44396
|
+
284 /* ConstructorCannotBeDeclaredAsBasic */,
|
44358
44397
|
node.creationKeyword
|
44359
44398
|
));
|
44360
44399
|
}
|
44361
|
-
const redefinedModifier = findModifier(node,
|
44400
|
+
const redefinedModifier = findModifier(node, 39 /* Redefined */);
|
44362
44401
|
if (redefinedModifier !== void 0) {
|
44363
44402
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
44364
|
-
|
44365
|
-
node.creationKeyword
|
44366
|
-
));
|
44367
|
-
}
|
44368
|
-
const basicModifier = findModifier(node, 17 /* Basic */);
|
44369
|
-
if (basicModifier !== void 0) {
|
44370
|
-
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
44371
|
-
284 /* ConstructorCannotBeDeclaredAsBasic */,
|
44403
|
+
285 /* ConstructorCannotBeDeclaredAsOverridden */,
|
44372
44404
|
node.creationKeyword
|
44373
44405
|
));
|
44374
44406
|
}
|
@@ -44380,14 +44412,14 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
44380
44412
|
if (node.block !== void 0) {
|
44381
44413
|
this.checkPossibleGeneratorFunctionReturnType(entity, node.block, node.name);
|
44382
44414
|
const container = entity.getContainer();
|
44383
|
-
if (entity.
|
44384
|
-
this._analyzer.
|
44415
|
+
if (entity.isBasic() && container.kind === "type" && container.typeEntity.typeEntityKind === 4 /* Alias */) {
|
44416
|
+
this._analyzer.checkBodyOfBasicAliasTypeMethod(node, this._diagnosticAcceptor);
|
44385
44417
|
}
|
44386
44418
|
}
|
44387
|
-
const redefinedModifier = findModifier(node,
|
44419
|
+
const redefinedModifier = findModifier(node, 39 /* Redefined */);
|
44388
44420
|
if (redefinedModifier !== void 0 && entity.getOverriddenMembers().length === 0) {
|
44389
44421
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
44390
|
-
283 /*
|
44422
|
+
283 /* CorrespondingBasicTypeMemberNotFound */,
|
44391
44423
|
redefinedModifier
|
44392
44424
|
));
|
44393
44425
|
}
|
@@ -44407,14 +44439,14 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
44407
44439
|
checkOperatorDeclaration(node) {
|
44408
44440
|
const entity = this._analyzer.entity.ofOperatorDeclaration(node);
|
44409
44441
|
this.checkTypeMemberBodyPresence(entity, node.block, node.name);
|
44410
|
-
const redefinedModifier = findModifier(node,
|
44442
|
+
const redefinedModifier = findModifier(node, 39 /* Redefined */);
|
44411
44443
|
if (redefinedModifier !== void 0 && entity.getOverriddenMembers().length === 0) {
|
44412
44444
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
44413
|
-
283 /*
|
44445
|
+
283 /* CorrespondingBasicTypeMemberNotFound */,
|
44414
44446
|
redefinedModifier
|
44415
44447
|
));
|
44416
44448
|
}
|
44417
|
-
const staticModifier = findModifier(node,
|
44449
|
+
const staticModifier = findModifier(node, 41 /* Static */);
|
44418
44450
|
if (staticModifier !== void 0) {
|
44419
44451
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
44420
44452
|
279 /* OperatorFunctionMustNotBeStatic */,
|
@@ -44498,10 +44530,10 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
44498
44530
|
}
|
44499
44531
|
const entity = this._analyzer.entity.ofFieldDeclaration(node);
|
44500
44532
|
entity.ensureAllDiagnosticsReported?.();
|
44501
|
-
const redefinedModifier = findModifier(node,
|
44533
|
+
const redefinedModifier = findModifier(node, 39 /* Redefined */);
|
44502
44534
|
if (redefinedModifier !== void 0 && entity.getOverriddenMembers().length === 0) {
|
44503
44535
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
44504
|
-
283 /*
|
44536
|
+
283 /* CorrespondingBasicTypeMemberNotFound */,
|
44505
44537
|
redefinedModifier
|
44506
44538
|
));
|
44507
44539
|
}
|
@@ -44509,10 +44541,10 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
44509
44541
|
checkFieldGetterDeclaration(node) {
|
44510
44542
|
const entity = this._analyzer.entity.ofComputedFieldDeclaration(node);
|
44511
44543
|
this.checkTypeMemberBodyPresence(entity, node.block, node.name);
|
44512
|
-
const redefinedModifier = findModifier(node,
|
44544
|
+
const redefinedModifier = findModifier(node, 39 /* Redefined */);
|
44513
44545
|
if (redefinedModifier !== void 0 && entity.getOverriddenMembers().length === 0) {
|
44514
44546
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
44515
|
-
283 /*
|
44547
|
+
283 /* CorrespondingBasicTypeMemberNotFound */,
|
44516
44548
|
redefinedModifier
|
44517
44549
|
));
|
44518
44550
|
}
|
@@ -44526,10 +44558,10 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
44526
44558
|
checkFieldSetterDeclaration(node) {
|
44527
44559
|
const entity = this._analyzer.entity.ofComputedFieldDeclaration(node);
|
44528
44560
|
this.checkTypeMemberBodyPresence(entity, node.block, node.name);
|
44529
|
-
const redefinedModifier = findModifier(node,
|
44561
|
+
const redefinedModifier = findModifier(node, 39 /* Redefined */);
|
44530
44562
|
if (redefinedModifier !== void 0 && entity.getOverriddenMembers().length === 0) {
|
44531
44563
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
44532
|
-
283 /*
|
44564
|
+
283 /* CorrespondingBasicTypeMemberNotFound */,
|
44533
44565
|
redefinedModifier
|
44534
44566
|
));
|
44535
44567
|
}
|
@@ -44537,10 +44569,10 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
44537
44569
|
checkIndexedElementGetterDeclaration(node) {
|
44538
44570
|
const entity = this._analyzer.entity.ofIndexerDeclaration(node);
|
44539
44571
|
this.checkTypeMemberBodyPresence(entity, node.block, node.parameterClause);
|
44540
|
-
const redefinedModifier = findModifier(node,
|
44572
|
+
const redefinedModifier = findModifier(node, 39 /* Redefined */);
|
44541
44573
|
if (redefinedModifier !== void 0 && entity.getOverriddenMembers().length === 0) {
|
44542
44574
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
44543
|
-
283 /*
|
44575
|
+
283 /* CorrespondingBasicTypeMemberNotFound */,
|
44544
44576
|
redefinedModifier
|
44545
44577
|
));
|
44546
44578
|
}
|
@@ -44555,10 +44587,10 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
44555
44587
|
checkIndexedElementSetterDeclaration(node) {
|
44556
44588
|
const entity = this._analyzer.entity.ofIndexerDeclaration(node);
|
44557
44589
|
this.checkTypeMemberBodyPresence(entity, node.block, node.parameterClause);
|
44558
|
-
const redefinedModifier = findModifier(node,
|
44590
|
+
const redefinedModifier = findModifier(node, 39 /* Redefined */);
|
44559
44591
|
if (redefinedModifier !== void 0 && entity.getOverriddenMembers().length === 0) {
|
44560
44592
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
44561
|
-
283 /*
|
44593
|
+
283 /* CorrespondingBasicTypeMemberNotFound */,
|
44562
44594
|
redefinedModifier
|
44563
44595
|
));
|
44564
44596
|
}
|
@@ -44567,10 +44599,10 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
44567
44599
|
checkDereferencedVariableGetterDeclaration(node) {
|
44568
44600
|
const entity = this._analyzer.entity.ofDereferenceOperatorDeclaration(node);
|
44569
44601
|
this.checkTypeMemberBodyPresence(entity, node.block, node.caretToken);
|
44570
|
-
const redefinedModifier = findModifier(node,
|
44602
|
+
const redefinedModifier = findModifier(node, 39 /* Redefined */);
|
44571
44603
|
if (redefinedModifier !== void 0 && entity.getOverriddenMembers().length === 0) {
|
44572
44604
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
44573
|
-
283 /*
|
44605
|
+
283 /* CorrespondingBasicTypeMemberNotFound */,
|
44574
44606
|
redefinedModifier
|
44575
44607
|
));
|
44576
44608
|
}
|
@@ -44584,10 +44616,10 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
44584
44616
|
checkDereferencedVariableSetterDeclaration(node) {
|
44585
44617
|
const entity = this._analyzer.entity.ofDereferenceOperatorDeclaration(node);
|
44586
44618
|
this.checkTypeMemberBodyPresence(entity, node.block, node.caretToken);
|
44587
|
-
const redefinedModifier = findModifier(node,
|
44619
|
+
const redefinedModifier = findModifier(node, 39 /* Redefined */);
|
44588
44620
|
if (redefinedModifier !== void 0 && entity.getOverriddenMembers().length === 0) {
|
44589
44621
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
44590
|
-
283 /*
|
44622
|
+
283 /* CorrespondingBasicTypeMemberNotFound */,
|
44591
44623
|
redefinedModifier
|
44592
44624
|
));
|
44593
44625
|
}
|
@@ -44773,7 +44805,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
44773
44805
|
if (entity.isAbstract() && !isAspectTypeMember) {
|
44774
44806
|
return 1 /* DoesNotRequireBecauseIsAbstract */;
|
44775
44807
|
}
|
44776
|
-
if (this.
|
44808
|
+
if (this.isBasicEntity(entity) && isAspectTypeMember) {
|
44777
44809
|
return 4 /* RequiresBecauseIsBasicAspectTypeMember */;
|
44778
44810
|
}
|
44779
44811
|
if (isAspectTypeMember) {
|
@@ -44782,18 +44814,18 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
44782
44814
|
return 6 /* RequiresBecauseIsRegularMember */;
|
44783
44815
|
}
|
44784
44816
|
// TODO: заменить на entity.isBasic().
|
44785
|
-
|
44817
|
+
isBasicEntity(entity) {
|
44786
44818
|
switch (entity.kind) {
|
44787
44819
|
case 0 /* Variable */:
|
44788
|
-
return entity.
|
44820
|
+
return entity.isBasic();
|
44789
44821
|
case 1 /* Function */:
|
44790
|
-
return entity.
|
44822
|
+
return entity.isBasic();
|
44791
44823
|
case 5 /* Indexer */:
|
44792
|
-
return entity.
|
44824
|
+
return entity.isBasic();
|
44793
44825
|
case 6 /* DereferenceOperator */:
|
44794
|
-
return entity.
|
44826
|
+
return entity.isBasic();
|
44795
44827
|
case 9 /* Operator */:
|
44796
|
-
return entity.
|
44828
|
+
return entity.isBasic();
|
44797
44829
|
case 7 /* Constructor */:
|
44798
44830
|
return false;
|
44799
44831
|
case 8 /* Destructor */:
|
@@ -44882,12 +44914,12 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
44882
44914
|
if (entity.subkind === "local") {
|
44883
44915
|
if (this.checkLocalVariableUsedBeforeDeclaration(node, entity)) {
|
44884
44916
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
44885
|
-
|
44917
|
+
304 /* VariableIsUsedBeforeItsDeclaration */,
|
44886
44918
|
node
|
44887
44919
|
));
|
44888
44920
|
} else if ((meaning.accessKind === 0 /* Get */ || meaning.accessKind === 2 /* GetSet */) && this.checkLocalVariableIsUsedBeforeBeingAssigned(node, entity)) {
|
44889
44921
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
44890
|
-
|
44922
|
+
305 /* VariableMayNotHasBeenAssignedBeforeUsage */,
|
44891
44923
|
node
|
44892
44924
|
));
|
44893
44925
|
}
|
@@ -45015,7 +45047,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
45015
45047
|
if (meaning.kind === "instance-field-access" || meaning.kind === "instance-method-access" || meaning.kind === "operator-access") {
|
45016
45048
|
const receiverType = this._analyzer.type.ofExpression(node.expression);
|
45017
45049
|
if (this._analyzer.canTypeBeNone(receiverType)) {
|
45018
|
-
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
45050
|
+
this.addDiagnostic(this._analyzer.createNodeDiagnostic(290 /* ExpressionCanBeNone */, node.expression));
|
45019
45051
|
}
|
45020
45052
|
}
|
45021
45053
|
}
|
@@ -45308,7 +45340,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
45308
45340
|
checkOptionalChainingIsUsedOnTheLeftSideOfAssignment(left) {
|
45309
45341
|
if (this._analyzer.isExpressionOptionalChainingSyntactically(left)) {
|
45310
45342
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
45311
|
-
|
45343
|
+
291 /* TargetVariableExpressionInTheAssignmentStatementCannotContainQuestionOperator */,
|
45312
45344
|
left
|
45313
45345
|
));
|
45314
45346
|
}
|
@@ -45483,7 +45515,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
45483
45515
|
}
|
45484
45516
|
if (shouldReportError) {
|
45485
45517
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
45486
|
-
|
45518
|
+
306 /* NotAllCodePathsReturnAValueAndResultLocalVariableMayNotHasBeenAssigned */,
|
45487
45519
|
nodeForDiagnostic
|
45488
45520
|
));
|
45489
45521
|
}
|
@@ -45598,13 +45630,13 @@ function modifierToModifierFlag(modifier) {
|
|
45598
45630
|
switch (modifier.level?.keywordKind) {
|
45599
45631
|
case void 0:
|
45600
45632
|
return 1 /* HiddenWithoutLevel */;
|
45601
|
-
case
|
45633
|
+
case 48 /* InHierarchy */:
|
45602
45634
|
return 4 /* HiddenInHierarchy */;
|
45603
|
-
case
|
45635
|
+
case 49 /* InFile */:
|
45604
45636
|
return 8 /* HiddenInFile */;
|
45605
|
-
case
|
45637
|
+
case 50 /* InPackage */:
|
45606
45638
|
return 16 /* HiddenInPackage */;
|
45607
|
-
case
|
45639
|
+
case 51 /* InType */:
|
45608
45640
|
return 2 /* HiddenInType */;
|
45609
45641
|
default:
|
45610
45642
|
Debug.never(modifier.level);
|
@@ -45612,16 +45644,14 @@ function modifierToModifierFlag(modifier) {
|
|
45612
45644
|
case 17 /* Basic */:
|
45613
45645
|
return 32 /* Basic */;
|
45614
45646
|
case 36 /* Const */:
|
45615
|
-
return
|
45647
|
+
return 1024 /* Const */;
|
45616
45648
|
case 38 /* Abstract */:
|
45617
|
-
return
|
45618
|
-
case 39 /*
|
45619
|
-
return
|
45620
|
-
case 40 /*
|
45621
|
-
return 512 /*
|
45622
|
-
case 41 /*
|
45623
|
-
return 1024 /* Async */;
|
45624
|
-
case 42 /* Static */:
|
45649
|
+
return 128 /* Abstract */;
|
45650
|
+
case 39 /* Redefined */:
|
45651
|
+
return 256 /* Redefined */;
|
45652
|
+
case 40 /* Async */:
|
45653
|
+
return 512 /* Async */;
|
45654
|
+
case 41 /* Static */:
|
45625
45655
|
return 64 /* Static */;
|
45626
45656
|
default:
|
45627
45657
|
Debug.never(modifier.value.keywordKind);
|
@@ -45853,10 +45883,10 @@ var PackageAliasTypeDeclarationEntity = class {
|
|
45853
45883
|
this._aliasedType = new Cached();
|
45854
45884
|
this._typeParameters = new Cached();
|
45855
45885
|
this._members = new Cached();
|
45856
|
-
this._modifierFlags =
|
45886
|
+
this._modifierFlags = 2048 /* NotComputed */;
|
45857
45887
|
}
|
45858
45888
|
get modifierFlags() {
|
45859
|
-
return this._modifierFlags ===
|
45889
|
+
return this._modifierFlags === 2048 /* NotComputed */ ? createDeclaredModifierFlags(this._node) : this._modifierFlags;
|
45860
45890
|
}
|
45861
45891
|
getName() {
|
45862
45892
|
return this._analyzer.createNameFromIdentifier(this._node.name);
|
@@ -45946,10 +45976,10 @@ var ConstructorDeclarationEntity = class {
|
|
45946
45976
|
this._node = _node;
|
45947
45977
|
this.kind = 7 /* Constructor */;
|
45948
45978
|
this._valueParameters = new Cached();
|
45949
|
-
this._modifierFlags =
|
45979
|
+
this._modifierFlags = 2048 /* NotComputed */;
|
45950
45980
|
}
|
45951
45981
|
get modifierFlags() {
|
45952
|
-
return this._modifierFlags ===
|
45982
|
+
return this._modifierFlags === 2048 /* NotComputed */ ? createDeclaredModifierFlags(this._node) : this._modifierFlags;
|
45953
45983
|
}
|
45954
45984
|
getValueParameters() {
|
45955
45985
|
return this._valueParameters.getOrInsertWith(
|
@@ -45969,7 +45999,7 @@ var ConstructorDeclarationEntity = class {
|
|
45969
45999
|
return this._analyzer.createTypeMemberHiding(this._node, this.modifierFlags);
|
45970
46000
|
}
|
45971
46001
|
isAbstract() {
|
45972
|
-
let result = (this.modifierFlags &
|
46002
|
+
let result = (this.modifierFlags & 128 /* Abstract */) !== 0;
|
45973
46003
|
if (!result && this._node.block === void 0) {
|
45974
46004
|
const container = this.getContainer();
|
45975
46005
|
result = container.kind === "type" && container.typeEntity.typeEntityKind === 1 /* Structured */ && container.typeEntity.isAspect();
|
@@ -46125,7 +46155,7 @@ var DereferenceOperatorDeclarationEntity = class {
|
|
46125
46155
|
constructor(analyzer, getterDeclaration, setterDeclaration) {
|
46126
46156
|
this.kind = 6 /* DereferenceOperator */;
|
46127
46157
|
this._overriddenMembers = new Cached();
|
46128
|
-
this._modifierFlags =
|
46158
|
+
this._modifierFlags = 2048 /* NotComputed */;
|
46129
46159
|
this._analyzer = analyzer;
|
46130
46160
|
this._getterDeclaration = getterDeclaration;
|
46131
46161
|
this._setterDeclaration = setterDeclaration;
|
@@ -46138,7 +46168,7 @@ var DereferenceOperatorDeclarationEntity = class {
|
|
46138
46168
|
}
|
46139
46169
|
}
|
46140
46170
|
get modifierFlags() {
|
46141
|
-
return this._modifierFlags ===
|
46171
|
+
return this._modifierFlags === 2048 /* NotComputed */ ? createDeclaredModifierFlags(this._getterOrSetterDeclaration) : this._modifierFlags;
|
46142
46172
|
}
|
46143
46173
|
getType() {
|
46144
46174
|
if (this._getterDeclaration !== void 0) {
|
@@ -46172,14 +46202,14 @@ var DereferenceOperatorDeclarationEntity = class {
|
|
46172
46202
|
const getterEntity = this.getGetter();
|
46173
46203
|
return getterEntity !== void 0 ? getterEntity.isHidden() : this.getSetter()?.isHidden();
|
46174
46204
|
}
|
46175
|
-
|
46176
|
-
return (this.modifierFlags &
|
46205
|
+
isBasic() {
|
46206
|
+
return (this.modifierFlags & 32 /* Basic */) !== 0;
|
46177
46207
|
}
|
46178
|
-
|
46179
|
-
return (this.modifierFlags &
|
46208
|
+
isOverridden() {
|
46209
|
+
return (this.modifierFlags & 256 /* Redefined */) !== 0;
|
46180
46210
|
}
|
46181
46211
|
isAbstract() {
|
46182
|
-
let result = (this.modifierFlags &
|
46212
|
+
let result = (this.modifierFlags & 128 /* Abstract */) !== 0;
|
46183
46213
|
if (!result && this._getterOrSetterDeclaration.block === void 0) {
|
46184
46214
|
const container = this.getContainer();
|
46185
46215
|
result = container.kind === "type" && container.typeEntity.typeEntityKind === 1 /* Structured */ && container.typeEntity.isAspect();
|
@@ -46204,10 +46234,10 @@ var DestructorDeclarationEntity = class {
|
|
46204
46234
|
this._node = _node;
|
46205
46235
|
this.kind = 8 /* Destructor */;
|
46206
46236
|
this._valueParameters = new Cached();
|
46207
|
-
this._modifierFlags =
|
46237
|
+
this._modifierFlags = 2048 /* NotComputed */;
|
46208
46238
|
}
|
46209
46239
|
get modifierFlags() {
|
46210
|
-
return this._modifierFlags ===
|
46240
|
+
return this._modifierFlags === 2048 /* NotComputed */ ? createDeclaredModifierFlags(this._node) : this._modifierFlags;
|
46211
46241
|
}
|
46212
46242
|
getValueParameters() {
|
46213
46243
|
return this._valueParameters.getOrInsertWith(
|
@@ -46224,7 +46254,7 @@ var DestructorDeclarationEntity = class {
|
|
46224
46254
|
return this._analyzer.createTypeMemberHiding(this._node, this.modifierFlags);
|
46225
46255
|
}
|
46226
46256
|
isAbstract() {
|
46227
|
-
let result = (this.modifierFlags &
|
46257
|
+
let result = (this.modifierFlags & 128 /* Abstract */) !== 0;
|
46228
46258
|
if (!result && this._node.block === void 0) {
|
46229
46259
|
const container = this.getContainer();
|
46230
46260
|
result = container.kind === "type" && container.typeEntity.typeEntityKind === 1 /* Structured */ && container.typeEntity.isAspect();
|
@@ -46290,10 +46320,10 @@ var PackageVariableGetterDeclarationEntity = class {
|
|
46290
46320
|
this._analyzer = _analyzer;
|
46291
46321
|
this._node = _node;
|
46292
46322
|
this.kind = 3 /* Getter */;
|
46293
|
-
this._modifierFlags =
|
46323
|
+
this._modifierFlags = 2048 /* NotComputed */;
|
46294
46324
|
}
|
46295
46325
|
get modifierFlags() {
|
46296
|
-
return this._modifierFlags ===
|
46326
|
+
return this._modifierFlags === 2048 /* NotComputed */ ? createDeclaredModifierFlags(this._node) : this._modifierFlags;
|
46297
46327
|
}
|
46298
46328
|
getReturnType() {
|
46299
46329
|
return this._analyzer.entity.ofComputedPackageVariableDeclaration(this._node).getType();
|
@@ -46322,10 +46352,10 @@ var FieldGetterDeclarationEntity = class {
|
|
46322
46352
|
this._analyzer = _analyzer;
|
46323
46353
|
this._node = _node;
|
46324
46354
|
this.kind = 3 /* Getter */;
|
46325
|
-
this._modifierFlags =
|
46355
|
+
this._modifierFlags = 2048 /* NotComputed */;
|
46326
46356
|
}
|
46327
46357
|
get modifierFlags() {
|
46328
|
-
return this._modifierFlags ===
|
46358
|
+
return this._modifierFlags === 2048 /* NotComputed */ ? createDeclaredModifierFlags(this._node) : this._modifierFlags;
|
46329
46359
|
}
|
46330
46360
|
getReturnType() {
|
46331
46361
|
return this._analyzer.entity.ofComputedFieldDeclaration(this._node).getType();
|
@@ -46354,10 +46384,10 @@ var IndexedElementGetterDeclarationEntity = class {
|
|
46354
46384
|
this._analyzer = _analyzer;
|
46355
46385
|
this._node = _node;
|
46356
46386
|
this.kind = 3 /* Getter */;
|
46357
|
-
this._modifierFlags =
|
46387
|
+
this._modifierFlags = 2048 /* NotComputed */;
|
46358
46388
|
}
|
46359
46389
|
get modifierFlags() {
|
46360
|
-
return this._modifierFlags ===
|
46390
|
+
return this._modifierFlags === 2048 /* NotComputed */ ? createDeclaredModifierFlags(this._node) : this._modifierFlags;
|
46361
46391
|
}
|
46362
46392
|
getReturnType() {
|
46363
46393
|
return this._analyzer.entity.ofIndexerDeclaration(this._node).getType();
|
@@ -46386,10 +46416,10 @@ var DereferencedVariableGetterDeclarationEntity = class {
|
|
46386
46416
|
this._analyzer = _analyzer;
|
46387
46417
|
this._node = _node;
|
46388
46418
|
this.kind = 3 /* Getter */;
|
46389
|
-
this._modifierFlags =
|
46419
|
+
this._modifierFlags = 2048 /* NotComputed */;
|
46390
46420
|
}
|
46391
46421
|
get modifierFlags() {
|
46392
|
-
return this._modifierFlags ===
|
46422
|
+
return this._modifierFlags === 2048 /* NotComputed */ ? createDeclaredModifierFlags(this._node) : this._modifierFlags;
|
46393
46423
|
}
|
46394
46424
|
getReturnType() {
|
46395
46425
|
return this._analyzer.entity.ofDereferenceOperatorDeclaration(this._node).getType();
|
@@ -46450,7 +46480,7 @@ var IndexerDeclarationEntity = class {
|
|
46450
46480
|
this.kind = 5 /* Indexer */;
|
46451
46481
|
this._parameters = new Cached();
|
46452
46482
|
this._overriddenMembers = new Cached();
|
46453
|
-
this._modifierFlags =
|
46483
|
+
this._modifierFlags = 2048 /* NotComputed */;
|
46454
46484
|
this._analyzer = analyzer;
|
46455
46485
|
this._getterDeclaration = getterDeclaration;
|
46456
46486
|
this._setterDeclaration = setterDeclaration;
|
@@ -46466,7 +46496,7 @@ var IndexerDeclarationEntity = class {
|
|
46466
46496
|
return this._parameters.getOrInsertWith(() => this.createParameters());
|
46467
46497
|
}
|
46468
46498
|
get modifierFlags() {
|
46469
|
-
return this._modifierFlags ===
|
46499
|
+
return this._modifierFlags === 2048 /* NotComputed */ ? createDeclaredModifierFlags(this._getterOrSetterDeclaration) : this._modifierFlags;
|
46470
46500
|
}
|
46471
46501
|
getParameter(node) {
|
46472
46502
|
const entityByNode = this.parameters.entityByNode;
|
@@ -46509,14 +46539,14 @@ var IndexerDeclarationEntity = class {
|
|
46509
46539
|
const getterEntity = this.getGetter();
|
46510
46540
|
return getterEntity !== void 0 ? getterEntity.isHidden() : this.getSetter()?.isHidden();
|
46511
46541
|
}
|
46512
|
-
|
46513
|
-
return (this.modifierFlags &
|
46542
|
+
isBasic() {
|
46543
|
+
return (this.modifierFlags & 32 /* Basic */) !== 0;
|
46514
46544
|
}
|
46515
|
-
|
46516
|
-
return (this.modifierFlags &
|
46545
|
+
isOverridden() {
|
46546
|
+
return (this.modifierFlags & 256 /* Redefined */) !== 0;
|
46517
46547
|
}
|
46518
46548
|
isAbstract() {
|
46519
|
-
let result = (this.modifierFlags &
|
46549
|
+
let result = (this.modifierFlags & 128 /* Abstract */) !== 0;
|
46520
46550
|
if (!result && this._getterOrSetterDeclaration.block === void 0) {
|
46521
46551
|
const container = this.getContainer();
|
46522
46552
|
result = container.kind === "type" && container.typeEntity.typeEntityKind === 1 /* Structured */ && container.typeEntity.isAspect();
|
@@ -46557,10 +46587,10 @@ var PackageFunctionDeclarationEntity = class {
|
|
46557
46587
|
this.subkind = "package";
|
46558
46588
|
this._typeParameters = new Cached();
|
46559
46589
|
this._valueParameters = new Cached();
|
46560
|
-
this._modifierFlags =
|
46590
|
+
this._modifierFlags = 2048 /* NotComputed */;
|
46561
46591
|
}
|
46562
46592
|
get modifierFlags() {
|
46563
|
-
return this._modifierFlags ===
|
46593
|
+
return this._modifierFlags === 2048 /* NotComputed */ ? createDeclaredModifierFlags(this._node) : this._modifierFlags;
|
46564
46594
|
}
|
46565
46595
|
getName() {
|
46566
46596
|
return this._analyzer.createNameFromIdentifier(this._node.name);
|
@@ -46588,7 +46618,7 @@ var PackageFunctionDeclarationEntity = class {
|
|
46588
46618
|
return { kind: 0 /* Source */, node: this._node };
|
46589
46619
|
}
|
46590
46620
|
isAsync() {
|
46591
|
-
return (this.modifierFlags &
|
46621
|
+
return (this.modifierFlags & 512 /* Async */) !== 0;
|
46592
46622
|
}
|
46593
46623
|
isHidden() {
|
46594
46624
|
return this._analyzer.createPackageMemberHiding(this._node, this.modifierFlags);
|
@@ -46615,10 +46645,10 @@ var MethodDeclarationEntity = class {
|
|
46615
46645
|
this._typeParameters = new Cached();
|
46616
46646
|
this._valueParameters = new Cached();
|
46617
46647
|
this._overriddenMember = new Cached();
|
46618
|
-
this._modifierFlags =
|
46648
|
+
this._modifierFlags = 2048 /* NotComputed */;
|
46619
46649
|
}
|
46620
46650
|
get modifierFlags() {
|
46621
|
-
return this._modifierFlags ===
|
46651
|
+
return this._modifierFlags === 2048 /* NotComputed */ ? createDeclaredModifierFlags(this._node) : this._modifierFlags;
|
46622
46652
|
}
|
46623
46653
|
getName() {
|
46624
46654
|
return this._analyzer.createNameFromIdentifier(this._node.name);
|
@@ -46643,7 +46673,7 @@ var MethodDeclarationEntity = class {
|
|
46643
46673
|
return { kind: 0 /* Source */, node: this._node };
|
46644
46674
|
}
|
46645
46675
|
isAsync() {
|
46646
|
-
return (this.modifierFlags &
|
46676
|
+
return (this.modifierFlags & 512 /* Async */) !== 0;
|
46647
46677
|
}
|
46648
46678
|
isHidden() {
|
46649
46679
|
return this._analyzer.createTypeMemberHiding(this._node, this.modifierFlags);
|
@@ -46663,14 +46693,14 @@ var MethodDeclarationEntity = class {
|
|
46663
46693
|
isStatic() {
|
46664
46694
|
return (this.modifierFlags & 64 /* Static */) !== 0;
|
46665
46695
|
}
|
46666
|
-
|
46667
|
-
return (this.modifierFlags &
|
46696
|
+
isBasic() {
|
46697
|
+
return (this.modifierFlags & 32 /* Basic */) !== 0;
|
46668
46698
|
}
|
46669
|
-
|
46670
|
-
return (this.modifierFlags &
|
46699
|
+
isOverridden() {
|
46700
|
+
return (this.modifierFlags & 256 /* Redefined */) !== 0;
|
46671
46701
|
}
|
46672
46702
|
isAbstract() {
|
46673
|
-
let result = (this.modifierFlags &
|
46703
|
+
let result = (this.modifierFlags & 128 /* Abstract */) !== 0;
|
46674
46704
|
if (!result && this._node.block === void 0) {
|
46675
46705
|
const container = this.getContainer();
|
46676
46706
|
result = container.kind === "type" && container.typeEntity.typeEntityKind === 1 /* Structured */ && container.typeEntity.isAspect();
|
@@ -46794,7 +46824,7 @@ IntrinsicPackageFunctionEntity = __decorateClass([
|
|
46794
46824
|
entityToStringDecorator
|
46795
46825
|
], IntrinsicPackageFunctionEntity);
|
46796
46826
|
var IntrinsicMethodEntity = class {
|
46797
|
-
constructor(_name, _typeParameters, _valueParameters, _returnType, _isAsync, _isHidden, _tags, _isFunctionTypeInvokeMethod, _container, _isStatic,
|
46827
|
+
constructor(_name, _typeParameters, _valueParameters, _returnType, _isAsync, _isHidden, _tags, _isFunctionTypeInvokeMethod, _container, _isStatic, _isBasic, _isRedefined, _isAbstract, _isModifyingOwningPlainObject, _overriddenMembers) {
|
46798
46828
|
this._name = _name;
|
46799
46829
|
this._typeParameters = _typeParameters;
|
46800
46830
|
this._valueParameters = _valueParameters;
|
@@ -46805,7 +46835,7 @@ var IntrinsicMethodEntity = class {
|
|
46805
46835
|
this._isFunctionTypeInvokeMethod = _isFunctionTypeInvokeMethod;
|
46806
46836
|
this._container = _container;
|
46807
46837
|
this._isStatic = _isStatic;
|
46808
|
-
this.
|
46838
|
+
this._isBasic = _isBasic;
|
46809
46839
|
this._isRedefined = _isRedefined;
|
46810
46840
|
this._isAbstract = _isAbstract;
|
46811
46841
|
this._isModifyingOwningPlainObject = _isModifyingOwningPlainObject;
|
@@ -46849,10 +46879,10 @@ var IntrinsicMethodEntity = class {
|
|
46849
46879
|
isStatic() {
|
46850
46880
|
return this._isStatic;
|
46851
46881
|
}
|
46852
|
-
|
46853
|
-
return this.
|
46882
|
+
isBasic() {
|
46883
|
+
return this._isBasic;
|
46854
46884
|
}
|
46855
|
-
|
46885
|
+
isOverridden() {
|
46856
46886
|
return this._isRedefined;
|
46857
46887
|
}
|
46858
46888
|
isAbstract() {
|
@@ -46884,10 +46914,10 @@ var PackageFunctionTypeDeclarationEntity = class {
|
|
46884
46914
|
this._valueParameters = new Cached();
|
46885
46915
|
this._members = new Cached();
|
46886
46916
|
this._baseObjectType = new Cached();
|
46887
|
-
this._modifierFlags =
|
46917
|
+
this._modifierFlags = 2048 /* NotComputed */;
|
46888
46918
|
}
|
46889
46919
|
get modifierFlags() {
|
46890
|
-
return this._modifierFlags ===
|
46920
|
+
return this._modifierFlags === 2048 /* NotComputed */ ? createDeclaredModifierFlags(this._node) : this._modifierFlags;
|
46891
46921
|
}
|
46892
46922
|
getNaming() {
|
46893
46923
|
return new EntityNaming_named(this.getName());
|
@@ -46925,7 +46955,7 @@ var PackageFunctionTypeDeclarationEntity = class {
|
|
46925
46955
|
return { kind: 0 /* Source */, node: this._node };
|
46926
46956
|
}
|
46927
46957
|
isAsync() {
|
46928
|
-
return (this.modifierFlags &
|
46958
|
+
return (this.modifierFlags & 512 /* Async */) !== 0 || this._node.body.asyncKeyword !== void 0;
|
46929
46959
|
}
|
46930
46960
|
getArity() {
|
46931
46961
|
return this.getTypeParameters().length;
|
@@ -47211,7 +47241,7 @@ var OperatorDeclarationEntity = class {
|
|
47211
47241
|
this.kind = 9 /* Operator */;
|
47212
47242
|
this._valueParameters = new Cached();
|
47213
47243
|
this._overriddenMembers = new Cached();
|
47214
|
-
this._modifierFlags =
|
47244
|
+
this._modifierFlags = 2048 /* NotComputed */;
|
47215
47245
|
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.");
|
47216
47246
|
this._operatorKind = this.convertSyntaxOperatorKind(
|
47217
47247
|
_node.name.ifOperatorNameThenKind,
|
@@ -47219,7 +47249,7 @@ var OperatorDeclarationEntity = class {
|
|
47219
47249
|
);
|
47220
47250
|
}
|
47221
47251
|
get modifierFlags() {
|
47222
|
-
return this._modifierFlags ===
|
47252
|
+
return this._modifierFlags === 2048 /* NotComputed */ ? createDeclaredModifierFlags(this._node) : this._modifierFlags;
|
47223
47253
|
}
|
47224
47254
|
getOperatorKind() {
|
47225
47255
|
return this._operatorKind;
|
@@ -47242,14 +47272,14 @@ var OperatorDeclarationEntity = class {
|
|
47242
47272
|
isStatic() {
|
47243
47273
|
return (this.modifierFlags & 64 /* Static */) !== 0;
|
47244
47274
|
}
|
47245
|
-
|
47246
|
-
return (this.modifierFlags &
|
47275
|
+
isBasic() {
|
47276
|
+
return (this.modifierFlags & 32 /* Basic */) !== 0;
|
47247
47277
|
}
|
47248
|
-
|
47249
|
-
return (this.modifierFlags &
|
47278
|
+
isOverridden() {
|
47279
|
+
return (this.modifierFlags & 256 /* Redefined */) !== 0;
|
47250
47280
|
}
|
47251
47281
|
isAbstract() {
|
47252
|
-
let result = (this.modifierFlags &
|
47282
|
+
let result = (this.modifierFlags & 128 /* Abstract */) !== 0;
|
47253
47283
|
if (!result && this._node.block === void 0) {
|
47254
47284
|
const container = this.getContainer();
|
47255
47285
|
result = container.kind === "type" && container.typeEntity.typeEntityKind === 1 /* Structured */ && container.typeEntity.isAspect();
|
@@ -47463,10 +47493,10 @@ var PackageVariableSetterDeclarationEntity = class {
|
|
47463
47493
|
this._analyzer = _analyzer;
|
47464
47494
|
this._node = _node;
|
47465
47495
|
this.kind = 4 /* Setter */;
|
47466
|
-
this._modifierFlags =
|
47496
|
+
this._modifierFlags = 2048 /* NotComputed */;
|
47467
47497
|
}
|
47468
47498
|
get modifierFlags() {
|
47469
|
-
return this._modifierFlags ===
|
47499
|
+
return this._modifierFlags === 2048 /* NotComputed */ ? createDeclaredModifierFlags(this._node) : this._modifierFlags;
|
47470
47500
|
}
|
47471
47501
|
getDefinition() {
|
47472
47502
|
return { kind: 0 /* Source */, node: this._node };
|
@@ -47492,10 +47522,10 @@ var FieldSetterDeclarationEntity = class {
|
|
47492
47522
|
this._analyzer = _analyzer;
|
47493
47523
|
this._node = _node;
|
47494
47524
|
this.kind = 4 /* Setter */;
|
47495
|
-
this._modifierFlags =
|
47525
|
+
this._modifierFlags = 2048 /* NotComputed */;
|
47496
47526
|
}
|
47497
47527
|
get modifierFlags() {
|
47498
|
-
return this._modifierFlags ===
|
47528
|
+
return this._modifierFlags === 2048 /* NotComputed */ ? createDeclaredModifierFlags(this._node) : this._modifierFlags;
|
47499
47529
|
}
|
47500
47530
|
getDefinition() {
|
47501
47531
|
return { kind: 0 /* Source */, node: this._node };
|
@@ -47521,10 +47551,10 @@ var IndexedElementSetterDeclarationEntity = class {
|
|
47521
47551
|
this._analyzer = _analyzer;
|
47522
47552
|
this._node = _node;
|
47523
47553
|
this.kind = 4 /* Setter */;
|
47524
|
-
this._modifierFlags =
|
47554
|
+
this._modifierFlags = 2048 /* NotComputed */;
|
47525
47555
|
}
|
47526
47556
|
get modifierFlags() {
|
47527
|
-
return this._modifierFlags ===
|
47557
|
+
return this._modifierFlags === 2048 /* NotComputed */ ? createDeclaredModifierFlags(this._node) : this._modifierFlags;
|
47528
47558
|
}
|
47529
47559
|
getDefinition() {
|
47530
47560
|
return { kind: 0 /* Source */, node: this._node };
|
@@ -47550,10 +47580,10 @@ var DereferencedVariableSetterDeclarationEntity = class {
|
|
47550
47580
|
this._analyzer = _analyzer;
|
47551
47581
|
this._node = _node;
|
47552
47582
|
this.kind = 4 /* Setter */;
|
47553
|
-
this._modifierFlags =
|
47583
|
+
this._modifierFlags = 2048 /* NotComputed */;
|
47554
47584
|
}
|
47555
47585
|
get modifierFlags() {
|
47556
|
-
return this._modifierFlags ===
|
47586
|
+
return this._modifierFlags === 2048 /* NotComputed */ ? createDeclaredModifierFlags(this._node) : this._modifierFlags;
|
47557
47587
|
}
|
47558
47588
|
getDefinition() {
|
47559
47589
|
return { kind: 0 /* Source */, node: this._node };
|
@@ -47808,13 +47838,13 @@ var SourcePackageStructuredTypeDeclarationData = class {
|
|
47808
47838
|
this._baseObjectType = new Cached();
|
47809
47839
|
this._baseAspectTypes = new Cached();
|
47810
47840
|
this._members = new Cached();
|
47811
|
-
this._modifierFlags =
|
47841
|
+
this._modifierFlags = 2048 /* NotComputed */;
|
47812
47842
|
this._analyzer = analyzer;
|
47813
47843
|
this._node = node;
|
47814
47844
|
this._entity = entity;
|
47815
47845
|
}
|
47816
47846
|
get modifierFlags() {
|
47817
|
-
return this._modifierFlags ===
|
47847
|
+
return this._modifierFlags === 2048 /* NotComputed */ ? createDeclaredModifierFlags(this._node) : this._modifierFlags;
|
47818
47848
|
}
|
47819
47849
|
getNaming() {
|
47820
47850
|
return new EntityNaming_named(this.getName());
|
@@ -47861,7 +47891,7 @@ var SourcePackageStructuredTypeDeclarationData = class {
|
|
47861
47891
|
return (this.modifierFlags & 32 /* Basic */) !== 0;
|
47862
47892
|
}
|
47863
47893
|
isAbstract() {
|
47864
|
-
return (this.modifierFlags &
|
47894
|
+
return (this.modifierFlags & 128 /* Abstract */) !== 0;
|
47865
47895
|
}
|
47866
47896
|
isAspect() {
|
47867
47897
|
return this._node.body.structuredTypeKindKeyword.keywordKind === 3 /* Aspect */;
|
@@ -48245,12 +48275,12 @@ var SourceTypeExtensionEntity = class {
|
|
48245
48275
|
constructor(analyzer, node) {
|
48246
48276
|
this.kind = 11 /* TypeExtension */;
|
48247
48277
|
this._members = new Cached();
|
48248
|
-
this._modifierFlags =
|
48278
|
+
this._modifierFlags = 2048 /* NotComputed */;
|
48249
48279
|
this._analyzer = analyzer;
|
48250
48280
|
this._node = node;
|
48251
48281
|
}
|
48252
48282
|
get modifierFlags() {
|
48253
|
-
return this._modifierFlags ===
|
48283
|
+
return this._modifierFlags === 2048 /* NotComputed */ ? createDeclaredModifierFlags(this._node) : this._modifierFlags;
|
48254
48284
|
}
|
48255
48285
|
getMembers() {
|
48256
48286
|
return this._members.getOrInsertWith(() => {
|
@@ -48580,10 +48610,10 @@ var PackageVariantTypeDeclarationEntity = class {
|
|
48580
48610
|
this._members = new Cached();
|
48581
48611
|
this._underlyingType = new Cached();
|
48582
48612
|
this._baseObjectType = new Cached();
|
48583
|
-
this._modifierFlags =
|
48613
|
+
this._modifierFlags = 2048 /* NotComputed */;
|
48584
48614
|
}
|
48585
48615
|
get modifierFlags() {
|
48586
|
-
return this._modifierFlags ===
|
48616
|
+
return this._modifierFlags === 2048 /* NotComputed */ ? createDeclaredModifierFlags(this._node) : this._modifierFlags;
|
48587
48617
|
}
|
48588
48618
|
getNaming() {
|
48589
48619
|
return new EntityNaming_named(this.getName());
|
@@ -49386,7 +49416,7 @@ var FunctionEntityDetails = class {
|
|
49386
49416
|
this.isDefaultExport = false;
|
49387
49417
|
this.isAliasTypeOrExtensionMemberThatRequiresLowering = false;
|
49388
49418
|
this.isBuiltInOperator = false;
|
49389
|
-
this.
|
49419
|
+
this.isBasic = false;
|
49390
49420
|
this.isTypeExtensionMemberAddedToPrototype = false;
|
49391
49421
|
this.isAbstract = false;
|
49392
49422
|
this.isStatic = false;
|
@@ -49399,7 +49429,7 @@ var VariableEntityDetails = class {
|
|
49399
49429
|
this.overriddenMembers = [];
|
49400
49430
|
this.isProxiedField = void 0;
|
49401
49431
|
this.isDefaultExport = false;
|
49402
|
-
this.
|
49432
|
+
this.isBasic = false;
|
49403
49433
|
this.isAbstract = false;
|
49404
49434
|
this.isTypeExtensionMemberAddedToPrototype = false;
|
49405
49435
|
this.isStatic = false;
|
@@ -51616,7 +51646,7 @@ var EntityMap = class {
|
|
51616
51646
|
result.ifTypeMemberThenContainingType = this.getTypeOrExtensionEntity(originalContainingEntity);
|
51617
51647
|
result.details.isStatic = entity.isStatic();
|
51618
51648
|
result.details.isAbstract = entity.isAbstract();
|
51619
|
-
result.details.
|
51649
|
+
result.details.isBasic = entity.isBasic();
|
51620
51650
|
result.details.overriddenMembers = entity.getOverriddenMembers().map((m) => this.getVariableEntity(m.getEntity()));
|
51621
51651
|
const proxyTag = entity.getTags().find((t) => t.kind === "type" && this._analyzer.checkTypeIsBasedOnAspect(t.type, this._analyzer.wellKnownDeclarations.fieldProxy));
|
51622
51652
|
if (proxyTag !== void 0) {
|
@@ -51627,7 +51657,7 @@ var EntityMap = class {
|
|
51627
51657
|
constructor: this.getConstructorEntity(proxyTag.constructor_.getEntity())
|
51628
51658
|
};
|
51629
51659
|
}
|
51630
|
-
result.details.
|
51660
|
+
result.details.isBasic = entity.isBasic();
|
51631
51661
|
result.details.isAbstract = entity.isAbstract();
|
51632
51662
|
}
|
51633
51663
|
const getter = entity.getGetter();
|
@@ -51669,12 +51699,12 @@ var EntityMap = class {
|
|
51669
51699
|
result.ifTypeMemberThenContainingType = this.getTypeOrExtensionEntity(entity.getContainer().getEntity());
|
51670
51700
|
result.details.isStatic = entity.isStatic();
|
51671
51701
|
result.details.isAbstract = entity.isAbstract();
|
51672
|
-
result.details.
|
51702
|
+
result.details.isBasic = entity.isBasic();
|
51673
51703
|
result.details.overriddenMembers = entity.getOverriddenMembers().map((m) => this.getFunctionEntity(m.getEntity()));
|
51674
|
-
if (result.ifTypeMemberThenContainingType.typeOrExtensionKind === 1 /* AliasType */ && entity.
|
51675
|
-
const
|
51676
|
-
if (
|
51677
|
-
result.details.
|
51704
|
+
if (result.ifTypeMemberThenContainingType.typeOrExtensionKind === 1 /* AliasType */ && entity.isBasic()) {
|
51705
|
+
const realBasicMethod = this._analyzer.getBasicMethodOfOriginalTypeForBasicMethodOfAliasType(entity);
|
51706
|
+
if (realBasicMethod !== void 0) {
|
51707
|
+
result.details.ifBasicAliasTypeMethodThenRealMethod = this.getFunctionEntity(realBasicMethod);
|
51678
51708
|
}
|
51679
51709
|
}
|
51680
51710
|
}
|
@@ -51698,7 +51728,7 @@ var EntityMap = class {
|
|
51698
51728
|
result.ifTypeMemberThenContainingType = this.getTypeOrExtensionEntity(entity.getContainer().getEntity());
|
51699
51729
|
result.details.isStatic = entity.isStatic();
|
51700
51730
|
result.details.isAbstract = entity.isAbstract();
|
51701
|
-
result.details.
|
51731
|
+
result.details.isBasic = entity.isBasic();
|
51702
51732
|
result.name = EmitPhaseName.ofOperator(result.containingPackage.locale, entity.getOperatorKind());
|
51703
51733
|
result.details.isBuiltInOperator = findTag(
|
51704
51734
|
this._analyzer.wellKnownDeclarations.builtIntoPlatform,
|
@@ -51771,7 +51801,7 @@ var EntityMap = class {
|
|
51771
51801
|
);
|
51772
51802
|
result.details.isStatic = owningEntity.isStatic();
|
51773
51803
|
result.details.isAbstract = owningEntity.isAbstract();
|
51774
|
-
result.details.
|
51804
|
+
result.details.isBasic = owningEntity.isBasic();
|
51775
51805
|
result.details.overriddenMembers = owningEntity.getOverriddenMembers().map((m) => this.getVariableEntity(m.getEntity()).getter).filter((g) => g !== void 0);
|
51776
51806
|
} else {
|
51777
51807
|
Debug.never(owningEntity);
|
@@ -51784,7 +51814,7 @@ var EntityMap = class {
|
|
51784
51814
|
);
|
51785
51815
|
result.details.isStatic = owningEntity.isStatic();
|
51786
51816
|
result.details.isAbstract = owningEntity.isAbstract();
|
51787
|
-
result.details.
|
51817
|
+
result.details.isBasic = owningEntity.isBasic();
|
51788
51818
|
result.name = EmitPhaseName.ofIndexedElementGetter(result.containingPackage.locale);
|
51789
51819
|
result.details.overriddenMembers = owningEntity.getOverriddenMembers().map((i) => i.getEntity().getGetter()).filter((g) => g !== void 0).map((g) => this.getGetterEntity(g));
|
51790
51820
|
break;
|
@@ -51795,7 +51825,7 @@ var EntityMap = class {
|
|
51795
51825
|
);
|
51796
51826
|
result.details.isStatic = owningEntity.isStatic();
|
51797
51827
|
result.details.isAbstract = owningEntity.isAbstract();
|
51798
|
-
result.details.
|
51828
|
+
result.details.isBasic = owningEntity.isBasic();
|
51799
51829
|
result.name = EmitPhaseName.ofDereferencedVariableGetter(result.containingPackage.locale);
|
51800
51830
|
result.details.overriddenMembers = owningEntity.getOverriddenMembers().map((i) => i.getEntity().getGetter()).filter((g) => g !== void 0).map((g) => this.getGetterEntity(g));
|
51801
51831
|
break;
|
@@ -51834,7 +51864,7 @@ var EntityMap = class {
|
|
51834
51864
|
);
|
51835
51865
|
result.details.isStatic = owningEntity.isStatic();
|
51836
51866
|
result.details.isAbstract = owningEntity.isAbstract();
|
51837
|
-
result.details.
|
51867
|
+
result.details.isBasic = owningEntity.isBasic();
|
51838
51868
|
result.details.overriddenMembers = owningEntity.getOverriddenMembers().map((m) => this.getVariableEntity(m.getEntity()).setter).filter((s) => s !== void 0);
|
51839
51869
|
} else {
|
51840
51870
|
Debug.never(owningEntity);
|
@@ -51847,7 +51877,7 @@ var EntityMap = class {
|
|
51847
51877
|
);
|
51848
51878
|
result.details.isStatic = owningEntity.isStatic();
|
51849
51879
|
result.details.isAbstract = owningEntity.isAbstract();
|
51850
|
-
result.details.
|
51880
|
+
result.details.isBasic = owningEntity.isBasic();
|
51851
51881
|
result.name = EmitPhaseName.ofIndexedElementSetter(result.containingPackage.locale);
|
51852
51882
|
result.details.overriddenMembers = owningEntity.getOverriddenMembers().map((i) => i.getEntity().getSetter()).filter((g) => g !== void 0).map((s) => this.getSetterEntity(s));
|
51853
51883
|
break;
|
@@ -51858,7 +51888,7 @@ var EntityMap = class {
|
|
51858
51888
|
);
|
51859
51889
|
result.details.isStatic = owningEntity.isStatic();
|
51860
51890
|
result.details.isAbstract = owningEntity.isAbstract();
|
51861
|
-
result.details.
|
51891
|
+
result.details.isBasic = owningEntity.isBasic();
|
51862
51892
|
result.name = EmitPhaseName.ofDereferencedVariableSetter(result.containingPackage.locale);
|
51863
51893
|
result.details.overriddenMembers = owningEntity.getOverriddenMembers().map((i) => i.getEntity().getSetter()).filter((g) => g !== void 0).map((s) => this.getSetterEntity(s));
|
51864
51894
|
break;
|
@@ -53722,8 +53752,8 @@ var GeneralLowering = class {
|
|
53722
53752
|
const loweringContext = new GeneralLoweringContext(this._ectx);
|
53723
53753
|
const compoundDeclarationsLowering = new CompoundDeclarationsAndOperatorsLowering(loweringContext);
|
53724
53754
|
compoundDeclarationsLowering.lower(state);
|
53725
|
-
const
|
53726
|
-
|
53755
|
+
const basicTypeExtensionMembersLowering = new TypeExtensionBasicMembersLowering(loweringContext);
|
53756
|
+
basicTypeExtensionMembersLowering.lower(state);
|
53727
53757
|
const aspectsLowering = new AspectsLowering(loweringContext);
|
53728
53758
|
aspectsLowering.lower(state);
|
53729
53759
|
const initializersLowering = new VariableInitializersLowering(loweringContext);
|
@@ -54262,7 +54292,7 @@ var CompoundDeclarationsAndOperatorsLowering = class {
|
|
54262
54292
|
});
|
54263
54293
|
}
|
54264
54294
|
};
|
54265
|
-
var
|
54295
|
+
var TypeExtensionBasicMembersLowering = class {
|
54266
54296
|
constructor(_ctx) {
|
54267
54297
|
this._ctx = _ctx;
|
54268
54298
|
}
|
@@ -54272,7 +54302,7 @@ var RedefinableTypeExtensionMembersLowering = class {
|
|
54272
54302
|
const statements = new Array();
|
54273
54303
|
for (const declaration of pkg.ir.declarations) {
|
54274
54304
|
if (declaration.kind === 24 /* PackageTypeDeclaration */ && declaration.entity.typeOrExtensionKind === 5 /* TypeExtension */) {
|
54275
|
-
const statementsAndDeclarations = this.
|
54305
|
+
const statementsAndDeclarations = this.addBasicMembersToExtendedTypePrototype(pkg.entity, declaration);
|
54276
54306
|
if (statementsAndDeclarations !== void 0) {
|
54277
54307
|
symbolDeclarations.push(...statementsAndDeclarations.symbolDeclarations);
|
54278
54308
|
statements.push(...statementsAndDeclarations.statements);
|
@@ -54294,7 +54324,7 @@ var RedefinableTypeExtensionMembersLowering = class {
|
|
54294
54324
|
// configurable: false,
|
54295
54325
|
// enumerable: false,
|
54296
54326
|
// })
|
54297
|
-
|
54327
|
+
addBasicMembersToExtendedTypePrototype(packageEntity, node) {
|
54298
54328
|
if (node.entity.details.extendedType === void 0) {
|
54299
54329
|
return void 0;
|
54300
54330
|
}
|
@@ -54305,7 +54335,7 @@ var RedefinableTypeExtensionMembersLowering = class {
|
|
54305
54335
|
const symbolDeclarations = new Array();
|
54306
54336
|
const statements = new Array();
|
54307
54337
|
for (const member of node.members) {
|
54308
|
-
if ((member.kind === 52 /* MethodDeclaration */ || member.kind === 94 /* ComputedFieldDeclaration */) && member.entity.details.
|
54338
|
+
if ((member.kind === 52 /* MethodDeclaration */ || member.kind === 94 /* ComputedFieldDeclaration */) && member.entity.details.isBasic) {
|
54309
54339
|
const keyName = `${node.entity.name}_${member.entity.name}`;
|
54310
54340
|
const keyEntity = new IntrinsicVariableEntity(
|
54311
54341
|
keyName,
|
@@ -54914,12 +54944,12 @@ var AliasTypeAndExtensionMembersAccessLowering = class extends ExecutableCodeLow
|
|
54914
54944
|
if (node.expression.kind === 70 /* MethodAccessExpression */) {
|
54915
54945
|
const entity = node.expression.method.entity;
|
54916
54946
|
if (entity.details.isAliasTypeOrExtensionMemberThatRequiresLowering && !node.options.isAliasOrExtensionMethodCallLowered) {
|
54917
|
-
const
|
54918
|
-
if (
|
54947
|
+
const realBasicMethod = node.expression.method.entity.details.ifBasicAliasTypeMethodThenRealMethod;
|
54948
|
+
if (realBasicMethod === void 0) {
|
54919
54949
|
const { expression, tempVariables } = this.lowerMethodCall(node);
|
54920
54950
|
return replaceExpression(expression, tempVariables);
|
54921
54951
|
} else {
|
54922
|
-
node.expression.method = new AccessedFunction5(
|
54952
|
+
node.expression.method = new AccessedFunction5(realBasicMethod, node.expression.method.returnType);
|
54923
54953
|
return preserveExpression();
|
54924
54954
|
}
|
54925
54955
|
}
|
@@ -55486,8 +55516,8 @@ var MiscLowering = class {
|
|
55486
55516
|
if (member.kind === "method") {
|
55487
55517
|
if (member.details.overriddenMembers.length > 0) {
|
55488
55518
|
member.details.overriddenMembers = member.details.overriddenMembers.map((m) => {
|
55489
|
-
if (m.details.
|
55490
|
-
return m.details.
|
55519
|
+
if (m.details.ifBasicAliasTypeMethodThenRealMethod !== void 0) {
|
55520
|
+
return m.details.ifBasicAliasTypeMethodThenRealMethod;
|
55491
55521
|
} else {
|
55492
55522
|
return m;
|
55493
55523
|
}
|
@@ -58723,7 +58753,7 @@ var IrBuilder = class {
|
|
58723
58753
|
}
|
58724
58754
|
} else {
|
58725
58755
|
switch (expression.operator.keywordKind) {
|
58726
|
-
case
|
58756
|
+
case 43 /* Not */:
|
58727
58757
|
operatorKind = 2 /* Not */;
|
58728
58758
|
break;
|
58729
58759
|
default:
|
@@ -59008,11 +59038,11 @@ var IrBuilder = class {
|
|
59008
59038
|
}
|
59009
59039
|
buildKeywordExpression(expression) {
|
59010
59040
|
switch (expression.keyword.keywordKind) {
|
59011
|
-
case
|
59041
|
+
case 52 /* Yes */:
|
59012
59042
|
return new BooleanLiteral(true, this.getSourceLocation(expression));
|
59013
|
-
case
|
59043
|
+
case 53 /* No */:
|
59014
59044
|
return new BooleanLiteral(false, this.getSourceLocation(expression));
|
59015
|
-
case
|
59045
|
+
case 57 /* None */:
|
59016
59046
|
return new NoneLiteral(this.getSourceLocation(expression));
|
59017
59047
|
default:
|
59018
59048
|
Debug.never(expression.keyword);
|
@@ -61833,7 +61863,7 @@ export {
|
|
61833
61863
|
TypeParameterClause2 as TypeParameterClause,
|
61834
61864
|
TypeParameterList2 as TypeParameterList,
|
61835
61865
|
TypeAnnotation2 as TypeAnnotation,
|
61836
|
-
|
61866
|
+
Token6 as Token,
|
61837
61867
|
green_exports,
|
61838
61868
|
NodePath,
|
61839
61869
|
isIdentifier,
|