@artel/artc 0.6.25247 → 0.6.25248
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 +1 -1
- package/build/{chunk-TTNFYVNF.js → chunk-CBZMJHSW.js} +2 -2
- package/build/{chunk-3PVSYUJV.js → chunk-CWGZOWF7.js} +75 -54
- package/build/{chunk-3MYTPUJZ.js → chunk-JKFASNU3.js} +1 -1
- package/build/types/analysis/Analyzer.d.ts +8 -0
- package/build/types/diagnostic/DiagnosticCode.d.ts +9 -11
- package/package.json +1 -1
package/build/Cli.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
2
|
import {
|
3
3
|
CommandLineCompiler
|
4
|
-
} from "./chunk-
|
5
|
-
import "./chunk-
|
4
|
+
} from "./chunk-CBZMJHSW.js";
|
5
|
+
import "./chunk-JKFASNU3.js";
|
6
6
|
import {
|
7
7
|
__async
|
8
|
-
} from "./chunk-
|
8
|
+
} from "./chunk-CWGZOWF7.js";
|
9
9
|
|
10
10
|
// source/Cli.ts
|
11
11
|
function main() {
|
package/build/api/Api.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import {
|
2
2
|
Compiler
|
3
|
-
} from "../chunk-
|
3
|
+
} from "../chunk-JKFASNU3.js";
|
4
4
|
import {
|
5
5
|
AccessKind,
|
6
6
|
AccessedFunctionValueParameter,
|
@@ -332,7 +332,7 @@ import {
|
|
332
332
|
withoutQuotes,
|
333
333
|
withoutTemplateQuotes,
|
334
334
|
yieldExecution
|
335
|
-
} from "../chunk-
|
335
|
+
} from "../chunk-CWGZOWF7.js";
|
336
336
|
export {
|
337
337
|
AccessKind,
|
338
338
|
AccessedFunctionValueParameter,
|
package/build/api/ApiNodeJS.js
CHANGED
@@ -6,9 +6,9 @@ import {
|
|
6
6
|
PhysicalFileSystem,
|
7
7
|
PhysicalTypeScriptLibrariesProvider,
|
8
8
|
PrintingDiagnosticAcceptor
|
9
|
-
} from "../chunk-
|
10
|
-
import "../chunk-
|
11
|
-
import "../chunk-
|
9
|
+
} from "../chunk-CBZMJHSW.js";
|
10
|
+
import "../chunk-JKFASNU3.js";
|
11
|
+
import "../chunk-CWGZOWF7.js";
|
12
12
|
export {
|
13
13
|
CommandLineCompiler,
|
14
14
|
FileSystemUri,
|
package/build/api/ApiServices.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import {
|
2
2
|
Compiler
|
3
|
-
} from "./chunk-
|
3
|
+
} from "./chunk-JKFASNU3.js";
|
4
4
|
import {
|
5
5
|
ArtelVersion,
|
6
6
|
Cached,
|
@@ -14,7 +14,7 @@ import {
|
|
14
14
|
__async,
|
15
15
|
performanceMeasurementStageNames,
|
16
16
|
performanceMeasurementStages
|
17
|
-
} from "./chunk-
|
17
|
+
} from "./chunk-CWGZOWF7.js";
|
18
18
|
|
19
19
|
// source/executor/FileSystemUri.ts
|
20
20
|
import { platform } from "os";
|
@@ -620,7 +620,7 @@ var UniqueWithComparatorQuery = class extends Query {
|
|
620
620
|
};
|
621
621
|
|
622
622
|
// source/common/Constants.ts
|
623
|
-
var ArtelVersion = true ? "0.6.
|
623
|
+
var ArtelVersion = true ? "0.6.25248" : "";
|
624
624
|
var ArtelSourceFileExtensions = [".\u0430\u0440\u0442", ".\u0430\u0440\u0442\u0435\u043B\u044C", ".art", ".artel"];
|
625
625
|
var ArtelSourceFileExtensionSet = new Set(ArtelSourceFileExtensions);
|
626
626
|
var ArtelSourceAndConfigurationFileExtensionSet = new Set(ArtelSourceFileExtensionSet).add(".json");
|
@@ -12940,17 +12940,15 @@ var DiagnosticCode = /* @__PURE__ */ ((DiagnosticCode2) => {
|
|
12940
12940
|
DiagnosticCode2[DiagnosticCode2["TheFollowingBaseTypeMembersConflictBecauseTheyHaveTheSameOriginalName0AndMustBeOverridden1"] = 353] = "TheFollowingBaseTypeMembersConflictBecauseTheyHaveTheSameOriginalName0AndMustBeOverridden1";
|
12941
12941
|
DiagnosticCode2[DiagnosticCode2["EitherIdentifiersOrIntegerIndexesAreAllowedAsParametersOfTextTemplateLiteral"] = 354] = "EitherIdentifiersOrIntegerIndexesAreAllowedAsParametersOfTextTemplateLiteral";
|
12942
12942
|
DiagnosticCode2[DiagnosticCode2["OnlyIndex0IsAllowedHereAsParameterOfTextTemplateLiteral"] = 355] = "OnlyIndex0IsAllowedHereAsParameterOfTextTemplateLiteral";
|
12943
|
-
DiagnosticCode2[DiagnosticCode2["
|
12944
|
-
DiagnosticCode2[DiagnosticCode2["
|
12945
|
-
DiagnosticCode2[DiagnosticCode2["
|
12946
|
-
DiagnosticCode2[DiagnosticCode2["
|
12947
|
-
DiagnosticCode2[DiagnosticCode2["
|
12948
|
-
DiagnosticCode2[DiagnosticCode2["
|
12949
|
-
DiagnosticCode2[DiagnosticCode2["
|
12950
|
-
DiagnosticCode2[DiagnosticCode2["
|
12951
|
-
DiagnosticCode2[DiagnosticCode2["
|
12952
|
-
DiagnosticCode2[DiagnosticCode2["ExpressionOfType0CanNotBeUsedInForLoopBecauseNotEnumerableAndNoMethod1"] = 365] = "ExpressionOfType0CanNotBeUsedInForLoopBecauseNotEnumerableAndNoMethod1";
|
12953
|
-
DiagnosticCode2[DiagnosticCode2["ForExpressionToBeUsedInForLoopMethod0MustReturnEnumeratorType"] = 366] = "ForExpressionToBeUsedInForLoopMethod0MustReturnEnumeratorType";
|
12943
|
+
DiagnosticCode2[DiagnosticCode2["TheFirstStatementOfConstructorBlockMustBeEitherBaseOrOwnConstructorCall"] = 356] = "TheFirstStatementOfConstructorBlockMustBeEitherBaseOrOwnConstructorCall";
|
12944
|
+
DiagnosticCode2[DiagnosticCode2["ThisCallCausesOwnConstructorCallCycle"] = 357] = "ThisCallCausesOwnConstructorCallCycle";
|
12945
|
+
DiagnosticCode2[DiagnosticCode2["OwnConstructorCallMustBeTheFirstStatementOfConstructorBlock"] = 358] = "OwnConstructorCallMustBeTheFirstStatementOfConstructorBlock";
|
12946
|
+
DiagnosticCode2[DiagnosticCode2["BaseConstructorCallMustBeTheFirstStatementOfConstructorBlock"] = 359] = "BaseConstructorCallMustBeTheFirstStatementOfConstructorBlock";
|
12947
|
+
DiagnosticCode2[DiagnosticCode2["Field0HasNoInitializerAndMayNotBeAssignedInConstructor"] = 360] = "Field0HasNoInitializerAndMayNotBeAssignedInConstructor";
|
12948
|
+
DiagnosticCode2[DiagnosticCode2["Field0HasNoInitializerAndMayNotBeAssignedInPackageConstructor"] = 361] = "Field0HasNoInitializerAndMayNotBeAssignedInPackageConstructor";
|
12949
|
+
DiagnosticCode2[DiagnosticCode2["Variable0HasNoInitializerAndMayNotBeAssignedInPackageConstructor"] = 362] = "Variable0HasNoInitializerAndMayNotBeAssignedInPackageConstructor";
|
12950
|
+
DiagnosticCode2[DiagnosticCode2["ExpressionOfType0CanNotBeUsedInForLoopBecauseNotEnumerableAndNoMethod1"] = 363] = "ExpressionOfType0CanNotBeUsedInForLoopBecauseNotEnumerableAndNoMethod1";
|
12951
|
+
DiagnosticCode2[DiagnosticCode2["ForExpressionToBeUsedInForLoopMethod0MustReturnEnumeratorType"] = 364] = "ForExpressionToBeUsedInForLoopMethod0MustReturnEnumeratorType";
|
12954
12952
|
DiagnosticCode2[DiagnosticCode2["CannotFindTsLibDirectoryBaseSearchPaths0"] = 401] = "CannotFindTsLibDirectoryBaseSearchPaths0";
|
12955
12953
|
DiagnosticCode2[DiagnosticCode2["SourceFile0IsNotPartOfThePackageAndWontBeLoaded"] = 402] = "SourceFile0IsNotPartOfThePackageAndWontBeLoaded";
|
12956
12954
|
DiagnosticCode2[DiagnosticCode2["ProgramWithoutMainPackageCannotBeCompiled"] = 403] = "ProgramWithoutMainPackageCannotBeCompiled";
|
@@ -13199,17 +13197,15 @@ var englishErrorMessages = {
|
|
13199
13197
|
[353 /* TheFollowingBaseTypeMembersConflictBecauseTheyHaveTheSameOriginalName0AndMustBeOverridden1 */]: "The following base type members conflict because they have the same original name '{0}' and must be overridden:\n{1}",
|
13200
13198
|
[354 /* EitherIdentifiersOrIntegerIndexesAreAllowedAsParametersOfTextTemplateLiteral */]: "Either identifiers or integer indexes are allowed as parameters of text template literal.",
|
13201
13199
|
[355 /* OnlyIndex0IsAllowedHereAsParameterOfTextTemplateLiteral */]: "Only index {0} is allowed here as parameter of text template literal.",
|
13202
|
-
[356 /*
|
13203
|
-
[357 /*
|
13204
|
-
[358 /*
|
13205
|
-
[359 /*
|
13206
|
-
[360 /*
|
13207
|
-
[361 /*
|
13208
|
-
[362 /*
|
13209
|
-
[363 /*
|
13210
|
-
[364 /*
|
13211
|
-
[365 /* ExpressionOfType0CanNotBeUsedInForLoopBecauseNotEnumerableAndNoMethod1 */]: "Expression of type '{0}' cannot be used in a for loop because the type does not implement the 'Enumerable' aspect and does not contain a method named '{1}' that returns the 'Enumerator' type.",
|
13212
|
-
[366 /* ForExpressionToBeUsedInForLoopMethod0MustReturnEnumeratorType */]: "For an expression to be used in a for loop, method '{0}' must return the 'Enumerator' type.",
|
13200
|
+
[356 /* TheFirstStatementOfConstructorBlockMustBeEitherBaseOrOwnConstructorCall */]: "The first statement of constructor block must be either base or own constructor call.",
|
13201
|
+
[357 /* ThisCallCausesOwnConstructorCallCycle */]: "This call causes own constructor call cycle.",
|
13202
|
+
[358 /* OwnConstructorCallMustBeTheFirstStatementOfConstructorBlock */]: "Own constructor call must be the first statement of constructor block.",
|
13203
|
+
[359 /* BaseConstructorCallMustBeTheFirstStatementOfConstructorBlock */]: "Base constructor call must be the first statement of constructor block.",
|
13204
|
+
[360 /* Field0HasNoInitializerAndMayNotBeAssignedInConstructor */]: "Field '{0}' has no initializer and may not be assigned in constructor.",
|
13205
|
+
[361 /* Field0HasNoInitializerAndMayNotBeAssignedInPackageConstructor */]: "Field '{0}' has no initializer and may not be assigned in package constructor.",
|
13206
|
+
[362 /* Variable0HasNoInitializerAndMayNotBeAssignedInPackageConstructor */]: "Variable '{0}' has no initializer and may not be assigned in package constructor.",
|
13207
|
+
[363 /* ExpressionOfType0CanNotBeUsedInForLoopBecauseNotEnumerableAndNoMethod1 */]: "Expression of type '{0}' cannot be used in a for loop because the type does not implement the 'Enumerable' aspect and does not contain a method named '{1}' that returns the 'Enumerator' type.",
|
13208
|
+
[364 /* ForExpressionToBeUsedInForLoopMethod0MustReturnEnumeratorType */]: "For an expression to be used in a for loop, method '{0}' must return the 'Enumerator' type.",
|
13213
13209
|
[401 /* CannotFindTsLibDirectoryBaseSearchPaths0 */]: "Can not find directory with TypeScript library. Base search paths: {0}.",
|
13214
13210
|
[402 /* SourceFile0IsNotPartOfThePackageAndWontBeLoaded */]: "Source file '{0}' is not part of the package and won't be loaded.",
|
13215
13211
|
[403 /* ProgramWithoutMainPackageCannotBeCompiled */]: "Program without main package cannot be compiled.",
|
@@ -13411,17 +13407,15 @@ var russianErrorMessages = {
|
|
13411
13407
|
[353 /* TheFollowingBaseTypeMembersConflictBecauseTheyHaveTheSameOriginalName0AndMustBeOverridden1 */]: "\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0435 \u0447\u043B\u0435\u043D\u044B \u0431\u0430\u0437\u043E\u0432\u044B\u0445 \u0442\u0438\u043F\u043E\u0432 \u043A\u043E\u043D\u0444\u043B\u0438\u043A\u0442\u0443\u044E\u0442 \u043C\u0435\u0436\u0434\u0443 \u0441\u043E\u0431\u043E\u0439, \u043F\u043E\u0442\u043E\u043C\u0443 \u0447\u0442\u043E \u0438\u0445 \u0438\u043C\u0435\u043D\u0430 '{0}' \u0441\u043E\u0432\u043F\u0430\u0434\u0430\u044E\u0442 \u043D\u0430 \u044F\u0437\u044B\u043A\u0435 \u043E\u0440\u0438\u0433\u0438\u043D\u0430\u043B\u0430, \u0438 \u0434\u043E\u043B\u0436\u043D\u044B \u0431\u044B\u0442\u044C \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043D\u044B:\n{1}",
|
13412
13408
|
[354 /* EitherIdentifiersOrIntegerIndexesAreAllowedAsParametersOfTextTemplateLiteral */]: "\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0430\u043C\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0430 \u0442\u0435\u043A\u0441\u0442\u0430 \u043C\u043E\u0433\u0443\u0442 \u0431\u044B\u0442\u044C \u043B\u0438\u0431\u043E \u0438\u043C\u0435\u043D\u0430, \u043B\u0438\u0431\u043E \u0446\u0435\u043B\u043E\u0447\u0438\u0441\u043B\u0435\u043D\u043D\u044B\u0435 \u0438\u043D\u0434\u0435\u043A\u0441\u044B.",
|
13413
13409
|
[355 /* OnlyIndex0IsAllowedHereAsParameterOfTextTemplateLiteral */]: "\u0417\u0434\u0435\u0441\u044C \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u043E\u043C \u0448\u0430\u0431\u043B\u043E\u043D\u0430 \u0442\u0435\u043A\u0441\u0442\u0430 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u0442\u043E\u043B\u044C\u043A\u043E \u0446\u0435\u043B\u043E\u0447\u0438\u0441\u043B\u0435\u043D\u043D\u044B\u0439 \u0438\u043D\u0434\u0435\u043A\u0441 {0}.",
|
13414
|
-
[356 /*
|
13415
|
-
[357 /*
|
13416
|
-
[358 /*
|
13417
|
-
[359 /*
|
13418
|
-
[360 /*
|
13419
|
-
[361 /*
|
13420
|
-
[362 /*
|
13421
|
-
[363 /*
|
13422
|
-
[364 /*
|
13423
|
-
[365 /* ExpressionOfType0CanNotBeUsedInForLoopBecauseNotEnumerableAndNoMethod1 */]: "\u0412\u044B\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0438\u043F\u0430 '{0}' \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0432 \u0446\u0438\u043A\u043B\u0435 '\u0434\u043B\u044F', \u043F\u043E\u0441\u043A\u043E\u043B\u044C\u043A\u0443 \u0435\u0433\u043E \u0442\u0438\u043F \u043D\u0435 \u0440\u0435\u0430\u043B\u0438\u0437\u0443\u0435\u0442 \u0430\u0441\u043F\u0435\u043A\u0442 '\u041F\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0435\u043C\u044B\u0439' \u0438 \u043D\u0435 \u0441\u043E\u0434\u0435\u0440\u0436\u0438\u0442 \u043C\u0435\u0442\u043E\u0434 \u0441 \u0438\u043C\u0435\u043D\u0435\u043C '{1}', \u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0430\u044E\u0449\u0438\u0439 \u0442\u0438\u043F '\u041F\u0435\u0440\u0435\u0431\u043E\u0440'.",
|
13424
|
-
[366 /* ForExpressionToBeUsedInForLoopMethod0MustReturnEnumeratorType */]: "\u0427\u0442\u043E\u0431\u044B \u0432\u044B\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u043C\u043E\u0436\u043D\u043E \u0431\u044B\u043B\u043E \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0432 \u0446\u0438\u043A\u043B\u0435 '\u0434\u043B\u044F', \u043C\u0435\u0442\u043E\u0434 '{0}' \u0434\u043E\u043B\u0436\u0435\u043D \u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044C \u0442\u0438\u043F '\u041F\u0435\u0440\u0435\u0431\u043E\u0440'.",
|
13410
|
+
[356 /* TheFirstStatementOfConstructorBlockMustBeEitherBaseOrOwnConstructorCall */]: "\u041F\u0435\u0440\u0432\u043E\u0439 \u043A\u043E\u043C\u0430\u043D\u0434\u043E\u0439 \u0431\u043B\u043E\u043A\u0430 \u043A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440\u0430 \u0434\u043E\u043B\u0436\u043D\u0430 \u0431\u044B\u0442\u044C \u043A\u043E\u043C\u0430\u043D\u0434\u0430 \u0432\u044B\u0437\u043E\u0432\u0430 \u0441\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0433\u043E \u0438\u043B\u0438 \u0431\u0430\u0437\u043E\u0432\u043E\u0433\u043E \u043A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440\u0430.",
|
13411
|
+
[357 /* ThisCallCausesOwnConstructorCallCycle */]: "\u0414\u0430\u043D\u043D\u044B\u0439 \u0432\u044B\u0437\u043E\u0432 \u043F\u0440\u0438\u0432\u043E\u0434\u0438\u0442 \u043A \u0446\u0438\u043A\u043B\u0443 \u0432\u044B\u0437\u043E\u0432\u0430 \u0441\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0445 \u043A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440\u043E\u0432.",
|
13412
|
+
[358 /* OwnConstructorCallMustBeTheFirstStatementOfConstructorBlock */]: "\u0412\u044B\u0437\u043E\u0432 \u0441\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0433\u043E \u043A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440\u0430 \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u043F\u0435\u0440\u0432\u043E\u0439 \u043A\u043E\u043C\u0430\u043D\u0434\u043E\u0439 \u0431\u043B\u043E\u043A\u0430 \u043A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440\u0430.",
|
13413
|
+
[359 /* BaseConstructorCallMustBeTheFirstStatementOfConstructorBlock */]: "\u0412\u044B\u0437\u043E\u0432 \u0431\u0430\u0437\u043E\u0432\u043E\u0433\u043E \u043A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440\u0430 \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u043F\u0435\u0440\u0432\u043E\u0439 \u043A\u043E\u043C\u0430\u043D\u0434\u043E\u0439 \u0431\u043B\u043E\u043A\u0430 \u043A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440\u0430.",
|
13414
|
+
[360 /* Field0HasNoInitializerAndMayNotBeAssignedInConstructor */]: "\u041F\u043E\u043B\u0435 '{0}' \u043D\u0435 \u0438\u043C\u0435\u0435\u0442 \u043D\u0430\u0447\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F \u0438 \u0435\u043C\u0443 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u043D\u0435 \u043F\u0440\u0438\u0441\u0432\u043E\u0435\u043D\u043E \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 \u043A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440\u0435.",
|
13415
|
+
[361 /* Field0HasNoInitializerAndMayNotBeAssignedInPackageConstructor */]: "\u041F\u043E\u043B\u0435 '{0}' \u043D\u0435 \u0438\u043C\u0435\u0435\u0442 \u043D\u0430\u0447\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F \u0438 \u0435\u043C\u0443 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u043D\u0435 \u043F\u0440\u0438\u0441\u0432\u043E\u0435\u043D\u043E \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 \u043A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440\u0435 \u043F\u0430\u043A\u0435\u0442\u0430.",
|
13416
|
+
[362 /* Variable0HasNoInitializerAndMayNotBeAssignedInPackageConstructor */]: "\u041F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u0430\u044F '{0}' \u043D\u0435 \u0438\u043C\u0435\u0435\u0442 \u043D\u0430\u0447\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F \u0438 \u0435\u0439 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u043D\u0435 \u043F\u0440\u0438\u0441\u0432\u043E\u0435\u043D\u043E \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 \u043A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440\u0435 \u043F\u0430\u043A\u0435\u0442\u0430.",
|
13417
|
+
[363 /* ExpressionOfType0CanNotBeUsedInForLoopBecauseNotEnumerableAndNoMethod1 */]: "\u0412\u044B\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0438\u043F\u0430 '{0}' \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0432 \u0446\u0438\u043A\u043B\u0435 '\u0434\u043B\u044F', \u043F\u043E\u0441\u043A\u043E\u043B\u044C\u043A\u0443 \u0435\u0433\u043E \u0442\u0438\u043F \u043D\u0435 \u0440\u0435\u0430\u043B\u0438\u0437\u0443\u0435\u0442 \u0430\u0441\u043F\u0435\u043A\u0442 '\u041F\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0435\u043C\u044B\u0439' \u0438 \u043D\u0435 \u0441\u043E\u0434\u0435\u0440\u0436\u0438\u0442 \u043C\u0435\u0442\u043E\u0434 \u0441 \u0438\u043C\u0435\u043D\u0435\u043C '{1}', \u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0430\u044E\u0449\u0438\u0439 \u0442\u0438\u043F '\u041F\u0435\u0440\u0435\u0431\u043E\u0440'.",
|
13418
|
+
[364 /* ForExpressionToBeUsedInForLoopMethod0MustReturnEnumeratorType */]: "\u0427\u0442\u043E\u0431\u044B \u0432\u044B\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u043C\u043E\u0436\u043D\u043E \u0431\u044B\u043B\u043E \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0432 \u0446\u0438\u043A\u043B\u0435 '\u0434\u043B\u044F', \u043C\u0435\u0442\u043E\u0434 '{0}' \u0434\u043E\u043B\u0436\u0435\u043D \u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044C \u0442\u0438\u043F '\u041F\u0435\u0440\u0435\u0431\u043E\u0440'.",
|
13425
13419
|
[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}.",
|
13426
13420
|
[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.",
|
13427
13421
|
[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.",
|
@@ -35438,7 +35432,7 @@ var Resolver3 = class {
|
|
35438
35432
|
if (!(node.parent.kind === 104 /* ExpressionStatement */ && node.parent.parent.parent.kind === 92 /* FunctionBlock */ && node.parent.parent.elements[0] === node.parent)) {
|
35439
35433
|
diagnostics ??= [];
|
35440
35434
|
diagnostics.push(this._analyzer.createNodeDiagnostic(
|
35441
|
-
|
35435
|
+
359 /* BaseConstructorCallMustBeTheFirstStatementOfConstructorBlock */,
|
35442
35436
|
this._node
|
35443
35437
|
));
|
35444
35438
|
}
|
@@ -37674,7 +37668,7 @@ var Resolver10 = class {
|
|
37674
37668
|
if (!(node.parent.kind === 104 /* ExpressionStatement */ && node.parent.parent.parent.kind === 92 /* FunctionBlock */ && node.parent.parent.elements[0] === node.parent)) {
|
37675
37669
|
diagnostics ??= [];
|
37676
37670
|
diagnostics.push(this._analyzer.createNodeDiagnostic(
|
37677
|
-
|
37671
|
+
358 /* OwnConstructorCallMustBeTheFirstStatementOfConstructorBlock */,
|
37678
37672
|
this._node
|
37679
37673
|
));
|
37680
37674
|
}
|
@@ -37823,7 +37817,7 @@ var OwnAndBaseConstructorCallsChecker = class {
|
|
37823
37817
|
baseConstructorCalls.set(entity, baseConstructorWithoutParameters);
|
37824
37818
|
} else if (baseTypeHasAccessibleConstructors) {
|
37825
37819
|
diagnostics.push(this._analyzer.createNodeDiagnostic(
|
37826
|
-
|
37820
|
+
356 /* TheFirstStatementOfConstructorBlockMustBeEitherBaseOrOwnConstructorCall */,
|
37827
37821
|
constructorDeclaration.creationKeyword
|
37828
37822
|
));
|
37829
37823
|
}
|
@@ -37834,7 +37828,7 @@ var OwnAndBaseConstructorCallsChecker = class {
|
|
37834
37828
|
addOwnConstructorCallOrReportCycleDiagnostic(constructorContainingCall, calledConstructor, ownConstructorCalls, nodeForDiagnostic, diagnostics) {
|
37835
37829
|
if (calledConstructor.getOriginalEntity() === constructorContainingCall.getOriginalEntity()) {
|
37836
37830
|
diagnostics.push(this._analyzer.createNodeDiagnostic(
|
37837
|
-
|
37831
|
+
357 /* ThisCallCausesOwnConstructorCallCycle */,
|
37838
37832
|
nodeForDiagnostic
|
37839
37833
|
));
|
37840
37834
|
} else {
|
@@ -37845,7 +37839,7 @@ var OwnAndBaseConstructorCallsChecker = class {
|
|
37845
37839
|
break;
|
37846
37840
|
} else if (current === constructorContainingCall) {
|
37847
37841
|
diagnostics.push(this._analyzer.createNodeDiagnostic(
|
37848
|
-
|
37842
|
+
357 /* ThisCallCausesOwnConstructorCallCycle */,
|
37849
37843
|
nodeForDiagnostic
|
37850
37844
|
));
|
37851
37845
|
break;
|
@@ -39150,7 +39144,7 @@ var PackageAndStaticVariablesInitializationValidator = class {
|
|
39150
39144
|
reportNotInitialedVariableDiagnostic(entity) {
|
39151
39145
|
const location = this.getVariableDiagnosticLocationWithFallback(entity);
|
39152
39146
|
if (location !== void 0) {
|
39153
|
-
const code = entity.subkind === "package" ?
|
39147
|
+
const code = entity.subkind === "package" ? 362 /* Variable0HasNoInitializerAndMayNotBeAssignedInPackageConstructor */ : 361 /* Field0HasNoInitializerAndMayNotBeAssignedInPackageConstructor */;
|
39154
39148
|
const argumentFactory = this._analyzer.createDiagnosticArgumentFactoryWithinPackage(
|
39155
39149
|
getPackageContainingEntity(entity)
|
39156
39150
|
);
|
@@ -43013,7 +43007,7 @@ var Analyzer = class _Analyzer {
|
|
43013
43007
|
if (member?.kind !== "method") {
|
43014
43008
|
const diagnosticArgumentFactory = semanticContext.getDiagnosticArgumentFactory();
|
43015
43009
|
const diagnostic = this.createNodeDiagnostic(
|
43016
|
-
|
43010
|
+
363 /* ExpressionOfType0CanNotBeUsedInForLoopBecauseNotEnumerableAndNoMethod1 */,
|
43017
43011
|
node,
|
43018
43012
|
[diagnosticArgumentFactory.createDisplayableType(type), enumeratorMethodName]
|
43019
43013
|
);
|
@@ -43026,7 +43020,7 @@ var Analyzer = class _Analyzer {
|
|
43026
43020
|
} else {
|
43027
43021
|
const diagnosticArgumentFactory = semanticContext.getDiagnosticArgumentFactory();
|
43028
43022
|
const diagnostic = this.createNodeDiagnostic(
|
43029
|
-
|
43023
|
+
364 /* ForExpressionToBeUsedInForLoopMethod0MustReturnEnumeratorType */,
|
43030
43024
|
node,
|
43031
43025
|
[diagnosticArgumentFactory.createDisplayableTypeMember(member)]
|
43032
43026
|
);
|
@@ -44121,9 +44115,11 @@ var Analyzer = class _Analyzer {
|
|
44121
44115
|
return __async(this, null, function* () {
|
44122
44116
|
let result = this._packageAndStaticVariablesInitializationDiagnostics.get(pkg);
|
44123
44117
|
if (result === void 0) {
|
44124
|
-
const usageCountResults =
|
44125
|
-
|
44126
|
-
|
44118
|
+
const usageCountResults = new Array();
|
44119
|
+
for (const sourceFile of pkg.sourceFiles) {
|
44120
|
+
const usageCountResult = yield this.getDeclarationsUsageCount(sourceFile.getSyntaxNode(), cancellationToken);
|
44121
|
+
usageCountResults.push(usageCountResult);
|
44122
|
+
}
|
44127
44123
|
const diagnostics = new AccumulatingDiagnosticAcceptor();
|
44128
44124
|
const validator = new PackageAndStaticVariablesInitializationValidator(this, pkg, usageCountResults, diagnostics);
|
44129
44125
|
validator.validate();
|
@@ -44921,7 +44917,7 @@ var Type = class {
|
|
44921
44917
|
case 74 /* ConditionalExpression */:
|
44922
44918
|
return this.ofConditionalExpression(node, targetTypeHint);
|
44923
44919
|
case 79 /* TextTemplateLiteral */:
|
44924
|
-
return this.ofTextTemplateLiteral(node);
|
44920
|
+
return this.ofTextTemplateLiteral(node, targetTypeHint);
|
44925
44921
|
case 86 /* IdentifierExpression */:
|
44926
44922
|
return this.ofIdentifierExpression(node, targetTypeHint);
|
44927
44923
|
case 82 /* TokenExpression */:
|
@@ -45244,8 +45240,33 @@ var Type = class {
|
|
45244
45240
|
}
|
45245
45241
|
return this._analyzer.typeFactory.getUnionType([firstExpressionType, secondExpressionType], true);
|
45246
45242
|
}
|
45247
|
-
|
45248
|
-
|
45243
|
+
/**
|
45244
|
+
* По умолчанию литерал шаблона текста имеет тип Текст.
|
45245
|
+
*
|
45246
|
+
* Литерал шаблона текста имеет тип ШаблонТекста в следующих случаях:
|
45247
|
+
* - если он присваивается в переменную, имеющую тип ШаблонТекста;
|
45248
|
+
* - если он присваивается в переменную, имеющую союзный тип, содержащий тип ШаблонТекста
|
45249
|
+
* и не содержащий тип Текст.
|
45250
|
+
*/
|
45251
|
+
ofTextTemplateLiteral(node, targetTypeHint) {
|
45252
|
+
const standardTypes = this._analyzer.getLocalizedStandardTypes(
|
45253
|
+
TreeQuery.fromNode(node).locale(this._analyzer)
|
45254
|
+
);
|
45255
|
+
let targetType = this._analyzer.getTargetTypeOfExpression(node, targetTypeHint);
|
45256
|
+
if (targetType !== void 0) {
|
45257
|
+
targetType = unaliasType(targetType);
|
45258
|
+
}
|
45259
|
+
let nodeIsTemplateNotText;
|
45260
|
+
if (targetType === void 0) {
|
45261
|
+
nodeIsTemplateNotText = false;
|
45262
|
+
} else if (targetType.equals(standardTypes.textTemplate)) {
|
45263
|
+
nodeIsTemplateNotText = true;
|
45264
|
+
} else if (targetType.kind === "union") {
|
45265
|
+
nodeIsTemplateNotText = targetType.unaliasedFlattenedTypes.some((t) => t.equals(standardTypes.textTemplate)) && !targetType.unaliasedFlattenedTypes.some((t) => t.equals(standardTypes.text));
|
45266
|
+
} else {
|
45267
|
+
nodeIsTemplateNotText = false;
|
45268
|
+
}
|
45269
|
+
return nodeIsTemplateNotText ? standardTypes.textTemplate : standardTypes.text;
|
45249
45270
|
}
|
45250
45271
|
ofIdentifierExpression(node, targetTypeHint) {
|
45251
45272
|
const meaning = this._analyzer.resolveIdentifierExpression(node, targetTypeHint).meaning;
|
@@ -48898,7 +48919,7 @@ var InstanceFieldsInitializationValidator = class {
|
|
48898
48919
|
const diagnosticArgumentFactory = this.semanticContext.getDiagnosticArgumentFactory();
|
48899
48920
|
for (const field of fields) {
|
48900
48921
|
const data = DiagnosticData.withCode(
|
48901
|
-
|
48922
|
+
360 /* Field0HasNoInitializerAndMayNotBeAssignedInConstructor */,
|
48902
48923
|
[diagnosticArgumentFactory.createDisplayableEntity(field)]
|
48903
48924
|
);
|
48904
48925
|
const location = this.getFieldDiagnosticLocationWithFallback(field);
|
@@ -48935,7 +48956,7 @@ var InstanceFieldsInitializationValidator = class {
|
|
48935
48956
|
for (const field of fields) {
|
48936
48957
|
if (!initializedFields.has(field.getOriginalEntity())) {
|
48937
48958
|
const data = DiagnosticData.withCode(
|
48938
|
-
|
48959
|
+
360 /* Field0HasNoInitializerAndMayNotBeAssignedInConstructor */,
|
48939
48960
|
[diagnosticArgumentFactory.createDisplayableEntity(field)]
|
48940
48961
|
);
|
48941
48962
|
const location = this.getFieldDiagnosticLocationWithFallback(field);
|
@@ -48962,7 +48983,7 @@ var InstanceFieldsInitializationValidator = class {
|
|
48962
48983
|
const assignmentChecker = new AssignmentChecker(this._analyzer, reference, controlFlowNodeEndingConstructor);
|
48963
48984
|
if (!assignmentChecker.checkVariableIsAssigned()) {
|
48964
48985
|
this._diagnostics.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
48965
|
-
|
48986
|
+
360 /* Field0HasNoInitializerAndMayNotBeAssignedInConstructor */,
|
48966
48987
|
node.creationKeyword,
|
48967
48988
|
[diagnosticArgumentFactory.createDisplayableEntity(field)]
|
48968
48989
|
));
|
@@ -65238,13 +65259,13 @@ var IrBuilder = class {
|
|
65238
65259
|
}
|
65239
65260
|
applyImplicitConversionIfRequired(expression, expressionIr) {
|
65240
65261
|
if (this.expressionCanBeImplicitlyConverted(expression)) {
|
65262
|
+
if (expression.kind === 79 /* TextTemplateLiteral */ && this._analyzer.type.ofExpression(expression).equals(this._analyzer.originalStandardTypes.text)) {
|
65263
|
+
return this.convertTextTemplateToText(expressionIr);
|
65264
|
+
}
|
65241
65265
|
let targetType = this._analyzer.getTargetTypeOfExpression(expression);
|
65242
65266
|
if (targetType !== void 0) {
|
65243
65267
|
targetType = unaliasType(this._analyzer.excludeNoneFromType(targetType));
|
65244
65268
|
}
|
65245
|
-
if (expression.kind === 79 /* TextTemplateLiteral */ && targetType === void 0) {
|
65246
|
-
return this.convertTextTemplateToText(expressionIr);
|
65247
|
-
}
|
65248
65269
|
if (targetType !== void 0) {
|
65249
65270
|
const expressionType = this._analyzer.type.ofExpression(expression);
|
65250
65271
|
if (expressionType.equals(this._analyzer.originalStandardTypes.textTemplate)) {
|
@@ -372,6 +372,14 @@ declare class Type {
|
|
372
372
|
private ofReferenceExpression;
|
373
373
|
private ofDereferenceExpression;
|
374
374
|
private ofConditionalExpression;
|
375
|
+
/**
|
376
|
+
* По умолчанию литерал шаблона текста имеет тип Текст.
|
377
|
+
*
|
378
|
+
* Литерал шаблона текста имеет тип ШаблонТекста в следующих случаях:
|
379
|
+
* - если он присваивается в переменную, имеющую тип ШаблонТекста;
|
380
|
+
* - если он присваивается в переменную, имеющую союзный тип, содержащий тип ШаблонТекста
|
381
|
+
* и не содержащий тип Текст.
|
382
|
+
*/
|
375
383
|
private ofTextTemplateLiteral;
|
376
384
|
private ofIdentifierExpression;
|
377
385
|
private ofTokenExpression;
|
@@ -192,17 +192,15 @@ export declare enum DiagnosticCode {
|
|
192
192
|
TheFollowingBaseTypeMembersConflictBecauseTheyHaveTheSameOriginalName0AndMustBeOverridden1 = 353,
|
193
193
|
EitherIdentifiersOrIntegerIndexesAreAllowedAsParametersOfTextTemplateLiteral = 354,
|
194
194
|
OnlyIndex0IsAllowedHereAsParameterOfTextTemplateLiteral = 355,
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
ExpressionOfType0CanNotBeUsedInForLoopBecauseNotEnumerableAndNoMethod1 = 365,
|
205
|
-
ForExpressionToBeUsedInForLoopMethod0MustReturnEnumeratorType = 366,
|
195
|
+
TheFirstStatementOfConstructorBlockMustBeEitherBaseOrOwnConstructorCall = 356,
|
196
|
+
ThisCallCausesOwnConstructorCallCycle = 357,
|
197
|
+
OwnConstructorCallMustBeTheFirstStatementOfConstructorBlock = 358,
|
198
|
+
BaseConstructorCallMustBeTheFirstStatementOfConstructorBlock = 359,
|
199
|
+
Field0HasNoInitializerAndMayNotBeAssignedInConstructor = 360,
|
200
|
+
Field0HasNoInitializerAndMayNotBeAssignedInPackageConstructor = 361,
|
201
|
+
Variable0HasNoInitializerAndMayNotBeAssignedInPackageConstructor = 362,
|
202
|
+
ExpressionOfType0CanNotBeUsedInForLoopBecauseNotEnumerableAndNoMethod1 = 363,
|
203
|
+
ForExpressionToBeUsedInForLoopMethod0MustReturnEnumeratorType = 364,
|
206
204
|
CannotFindTsLibDirectoryBaseSearchPaths0 = 401,
|
207
205
|
SourceFile0IsNotPartOfThePackageAndWontBeLoaded = 402,
|
208
206
|
ProgramWithoutMainPackageCannotBeCompiled = 403,
|