@artel/artc 0.6.26001 → 0.6.26002
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 +8 -8
- package/build/{chunk-ZTOJ2GBQ.js → chunk-6H5R5IWZ.js} +2 -2
- package/build/{chunk-XD7EZX2F.js → chunk-7KOMNQ22.js} +1 -1
- package/build/{chunk-TSATPA2U.js → chunk-GDTFOV2M.js} +111 -112
- package/build/types/analysis/Analyzer.d.ts +2 -2
- package/build/types/analysis/ModifierFlags.d.ts +3 -2
- package/build/types/analysis/ReachabilityChecker.d.ts +1 -1
- package/build/types/diagnostic/DiagnosticCode.d.ts +7 -7
- package/build/types/tree/KeywordKind.d.ts +1 -1
- package/build/types/tree/Nodes.d.ts +4 -4
- 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-6H5R5IWZ.js";
|
|
5
|
+
import "./chunk-7KOMNQ22.js";
|
|
6
6
|
import {
|
|
7
7
|
__async
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-GDTFOV2M.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-7KOMNQ22.js";
|
|
4
4
|
import {
|
|
5
5
|
AccessKind,
|
|
6
6
|
AccessedFunctionParameter,
|
|
@@ -348,7 +348,7 @@ import {
|
|
|
348
348
|
withoutQuotes,
|
|
349
349
|
withoutTemplateQuotes,
|
|
350
350
|
yieldTask
|
|
351
|
-
} from "../chunk-
|
|
351
|
+
} from "../chunk-GDTFOV2M.js";
|
|
352
352
|
export {
|
|
353
353
|
AccessKind,
|
|
354
354
|
AccessedFunctionParameter,
|
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-6H5R5IWZ.js";
|
|
10
|
+
import "../chunk-7KOMNQ22.js";
|
|
11
|
+
import "../chunk-GDTFOV2M.js";
|
|
12
12
|
export {
|
|
13
13
|
CommandLineCompiler,
|
|
14
14
|
FileSystemUri,
|
package/build/api/ApiServices.js
CHANGED
|
@@ -183,7 +183,7 @@ import {
|
|
|
183
183
|
unwrapParenthesizedExpressions,
|
|
184
184
|
visitChildren,
|
|
185
185
|
yieldTask
|
|
186
|
-
} from "../chunk-
|
|
186
|
+
} from "../chunk-GDTFOV2M.js";
|
|
187
187
|
|
|
188
188
|
// source/services/CustomRequests.ts
|
|
189
189
|
import * as ls from "vscode-languageserver";
|
|
@@ -2172,7 +2172,7 @@ var modifierSortOrder = {
|
|
|
2172
2172
|
[39 /* Abstract */]: 3,
|
|
2173
2173
|
[40 /* Override */]: 4,
|
|
2174
2174
|
[41 /* Async */]: 5,
|
|
2175
|
-
[37 /*
|
|
2175
|
+
[37 /* Var */]: 6
|
|
2176
2176
|
};
|
|
2177
2177
|
|
|
2178
2178
|
// source/services/TreeUtils.ts
|
|
@@ -3665,13 +3665,13 @@ var CompletionService = class {
|
|
|
3665
3665
|
kinds.add(19 /* Import */).add(8 /* Run */).add(32 /* Creation */).add(13 /* Function */).add(18 /* Basic */).add(17 /* Type */).add(59 /* Get */).add(60 /* Set */).add(56 /* Translations */);
|
|
3666
3666
|
}
|
|
3667
3667
|
if (syntaxContext.isPackageMemberDeclarationListContext || syntaxContext.isTypeMemberDeclarationListContext) {
|
|
3668
|
-
kinds.add(38 /* Hidden */).add(42 /* Static */).add(18 /* Basic */).add(39 /* Abstract */).add(40 /* Override */).add(41 /* Async */).add(37 /*
|
|
3668
|
+
kinds.add(38 /* Hidden */).add(42 /* Static */).add(18 /* Basic */).add(39 /* Abstract */).add(40 /* Override */).add(41 /* Async */).add(37 /* Var */);
|
|
3669
3669
|
}
|
|
3670
3670
|
if (syntaxContext.isTypeMemberDeclarationListContext) {
|
|
3671
3671
|
kinds.add(32 /* Creation */).add(13 /* Function */).add(48 /* Destruction */).add(59 /* Get */).add(60 /* Set */);
|
|
3672
3672
|
}
|
|
3673
3673
|
if (syntaxContext.isStatementContext) {
|
|
3674
|
-
kinds.add(8 /* Run */).add(36 /* For */).add(26 /* While */).add(27 /* Loop */).add(16 /* Return */).add(21 /* Error */).add(20 /* Important */).add(29 /* Yield */).add(34 /* BreakLoop */).add(35 /* ContinueLoop */).add(14 /* If */).add(45 /* Switch */).add(1 /* Let */).add(37 /*
|
|
3674
|
+
kinds.add(8 /* Run */).add(36 /* For */).add(26 /* While */).add(27 /* Loop */).add(16 /* Return */).add(21 /* Error */).add(20 /* Important */).add(29 /* Yield */).add(34 /* BreakLoop */).add(35 /* ContinueLoop */).add(14 /* If */).add(45 /* Switch */).add(1 /* Let */).add(37 /* Var */).add(47 /* Dispose */).add(9 /* Try */).add(13 /* Function */).add(41 /* Async */);
|
|
3675
3675
|
}
|
|
3676
3676
|
if (this.isFromKeywordContext(positionDescription)) {
|
|
3677
3677
|
kinds.add(10 /* From */);
|
|
@@ -11735,8 +11735,8 @@ var EntityToSyntax = class {
|
|
|
11735
11735
|
if (isHidden !== void 0) {
|
|
11736
11736
|
modifiers.push(this.createHidingModifier(isHidden));
|
|
11737
11737
|
}
|
|
11738
|
-
if (entity.isConstant()) {
|
|
11739
|
-
modifiers.push(SyntaxFactory.modifier(37 /*
|
|
11738
|
+
if (!entity.isConstant()) {
|
|
11739
|
+
modifiers.push(SyntaxFactory.modifier(37 /* Var */));
|
|
11740
11740
|
}
|
|
11741
11741
|
return modifiers;
|
|
11742
11742
|
}
|
|
@@ -11904,8 +11904,8 @@ var EntityToSyntax = class {
|
|
|
11904
11904
|
if (entity.isOverride()) {
|
|
11905
11905
|
modifiers.push(SyntaxFactory.modifier(40 /* Override */));
|
|
11906
11906
|
}
|
|
11907
|
-
if (entity.isConstant()) {
|
|
11908
|
-
modifiers.push(SyntaxFactory.modifier(37 /*
|
|
11907
|
+
if (!entity.isConstant()) {
|
|
11908
|
+
modifiers.push(SyntaxFactory.modifier(37 /* Var */));
|
|
11909
11909
|
}
|
|
11910
11910
|
return modifiers;
|
|
11911
11911
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Compiler
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7KOMNQ22.js";
|
|
4
4
|
import {
|
|
5
5
|
ArtelVersion,
|
|
6
6
|
Cached,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
__async,
|
|
16
16
|
performanceMeasurementStageNames,
|
|
17
17
|
performanceMeasurementStages
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-GDTFOV2M.js";
|
|
19
19
|
|
|
20
20
|
// source/executor/FileSystemUri.ts
|
|
21
21
|
import { platform } from "os";
|
|
@@ -764,7 +764,7 @@ var UniqueWithComparatorQuery = class extends Query {
|
|
|
764
764
|
};
|
|
765
765
|
|
|
766
766
|
// source/common/Constants.ts
|
|
767
|
-
var ArtelVersion = true ? "0.6.
|
|
767
|
+
var ArtelVersion = true ? "0.6.26002" : "";
|
|
768
768
|
var ArtelSourceFileExtensions = [".\u0430\u0440\u0442", ".\u0430\u0440\u0442\u0435\u043B\u044C", ".art", ".artel", ".\u0430\u0440\u0442\u043C", ".\u0430\u0440\u0442\u0435\u043B\u044C\u043C", ".artm", ".artelm"];
|
|
769
769
|
var ArtelSourceFileExtensionSet = new Set(ArtelSourceFileExtensions);
|
|
770
770
|
var ArtelSourceAndConfigurationFileExtensionSet = new Set(ArtelSourceFileExtensionSet).add(".json");
|
|
@@ -1598,7 +1598,7 @@ var KeywordKind = /* @__PURE__ */ ((KeywordKind2) => {
|
|
|
1598
1598
|
KeywordKind2[KeywordKind2["BreakLoop"] = 34] = "BreakLoop";
|
|
1599
1599
|
KeywordKind2[KeywordKind2["ContinueLoop"] = 35] = "ContinueLoop";
|
|
1600
1600
|
KeywordKind2[KeywordKind2["For"] = 36] = "For";
|
|
1601
|
-
KeywordKind2[KeywordKind2["
|
|
1601
|
+
KeywordKind2[KeywordKind2["Var"] = 37] = "Var";
|
|
1602
1602
|
KeywordKind2[KeywordKind2["Hidden"] = 38] = "Hidden";
|
|
1603
1603
|
KeywordKind2[KeywordKind2["Abstract"] = 39] = "Abstract";
|
|
1604
1604
|
KeywordKind2[KeywordKind2["Override"] = 40] = "Override";
|
|
@@ -4135,17 +4135,17 @@ var NestedFunctionDeclaration = class extends BaseNode {
|
|
|
4135
4135
|
}
|
|
4136
4136
|
};
|
|
4137
4137
|
var LocalVariableDeclaration = class extends BaseNode {
|
|
4138
|
-
constructor(
|
|
4138
|
+
constructor(letOrVarKeyword, name, typeAnnotation, equalsToken, initializer, rangeWithTrivia) {
|
|
4139
4139
|
super(rangeWithTrivia);
|
|
4140
4140
|
this.kind = 59 /* LocalVariableDeclaration */;
|
|
4141
|
-
this.children = [
|
|
4141
|
+
this.children = [letOrVarKeyword, name, typeAnnotation, equalsToken, initializer];
|
|
4142
4142
|
this.setParentForChildren();
|
|
4143
4143
|
}
|
|
4144
4144
|
get parent() {
|
|
4145
4145
|
Debug.assertNotNull(this.parent_);
|
|
4146
4146
|
return this.parent_;
|
|
4147
4147
|
}
|
|
4148
|
-
get
|
|
4148
|
+
get letOrVarKeyword() {
|
|
4149
4149
|
return this.children[0];
|
|
4150
4150
|
}
|
|
4151
4151
|
get name() {
|
|
@@ -6868,7 +6868,7 @@ var englishKeywords = new Lazy(() => [
|
|
|
6868
6868
|
{ keyword: "case", kind: 46 /* Case */, flags: 0 /* None */, dialects: [0 /* ArtelA */, 1 /* ArtelM */] },
|
|
6869
6869
|
{ keyword: "catch", kind: 33 /* Catch */, flags: 0 /* None */, dialects: [0 /* ArtelA */, 1 /* ArtelM */] },
|
|
6870
6870
|
{ keyword: "cond", kind: 31 /* Cond */, flags: 0 /* None */, dialects: [0 /* ArtelA */, 1 /* ArtelM */] },
|
|
6871
|
-
{ keyword: "
|
|
6871
|
+
{ keyword: "var", kind: 37 /* Var */, flags: 2 /* Noun */, dialects: [0 /* ArtelA */] },
|
|
6872
6872
|
{ keyword: "continue loop", kind: 35 /* ContinueLoop */, flags: 0 /* None */, dialects: [0 /* ArtelA */, 1 /* ArtelM */] },
|
|
6873
6873
|
{ keyword: "creation", kind: 32 /* Creation */, flags: 4098 /* NeuNoun */, dialects: [0 /* ArtelA */] },
|
|
6874
6874
|
{ keyword: "destroy", kind: 47 /* Dispose */, flags: 0 /* None */, dialects: [0 /* ArtelA */] },
|
|
@@ -6908,7 +6908,6 @@ var englishKeywords = new Lazy(() => [
|
|
|
6908
6908
|
{ keyword: "translations", kind: 56 /* Translations */, flags: 16386 /* PluralNoun */, dialects: [0 /* ArtelA */, 1 /* ArtelM */] },
|
|
6909
6909
|
{ keyword: "try", kind: 9 /* Try */, flags: 0 /* None */, dialects: [0 /* ArtelA */, 1 /* ArtelM */] },
|
|
6910
6910
|
{ keyword: "type", kind: 17 /* Type */, flags: 12290 /* SingularNeuNoun */, dialects: [0 /* ArtelA */, 1 /* ArtelM */] },
|
|
6911
|
-
{ keyword: "var", kind: 1 /* Let */, flags: 0 /* None */, dialects: [0 /* ArtelA */, 1 /* ArtelM */] },
|
|
6912
6911
|
{ keyword: "variant", kind: 7 /* Variant */, flags: 12290 /* SingularNeuNoun */, dialects: [0 /* ArtelA */] },
|
|
6913
6912
|
{ keyword: "when", kind: 30 /* When */, flags: 0 /* None */, dialects: [0 /* ArtelA */] },
|
|
6914
6913
|
{ keyword: "while", kind: 26 /* While */, flags: 0 /* None */, dialects: [0 /* ArtelA */, 1 /* ArtelM */] },
|
|
@@ -6949,7 +6948,7 @@ var russianKeywords = new Lazy(() => [
|
|
|
6949
6948
|
{ keyword: "\u0438\u0441\u043A\u043B", kind: 25 /* Xor */, flags: 0 /* None */, dialects: [0 /* ArtelA */] },
|
|
6950
6949
|
{ keyword: "\u043A\u0430\u043A", kind: 43 /* As */, flags: 0 /* None */, dialects: [0 /* ArtelA */] },
|
|
6951
6950
|
{ keyword: "\u043A\u043E\u0433\u0434\u0430", kind: 30 /* When */, flags: 0 /* None */, dialects: [0 /* ArtelA */] },
|
|
6952
|
-
{ keyword: "\
|
|
6951
|
+
{ keyword: "\u043F\u0435\u0440\u0435\u043C", kind: 37 /* Var */, flags: 12290 /* SingularNeuNoun */, dialects: [0 /* ArtelA */] },
|
|
6953
6952
|
{ keyword: "\u043B\u0438\u0431\u043E", kind: 46 /* Case */, flags: 0 /* None */, dialects: [0 /* ArtelA */, 1 /* ArtelM */] },
|
|
6954
6953
|
{ keyword: "\u043B\u043E\u0432\u0443\u0448\u043A\u0430", kind: 33 /* Catch */, flags: 0 /* None */, dialects: [0 /* ArtelA */, 1 /* ArtelM */] },
|
|
6955
6954
|
{ keyword: "\u043D\u0430\u043F\u043E\u0441\u043B\u0435\u0434\u043E\u043A", kind: 22 /* Finally */, flags: 0 /* None */, dialects: [0 /* ArtelA */, 1 /* ArtelM */] },
|
|
@@ -13327,13 +13326,13 @@ var DiagnosticCode = /* @__PURE__ */ ((DiagnosticCode2) => {
|
|
|
13327
13326
|
DiagnosticCode2[DiagnosticCode2["OverridingMemberMustHaveTheSameHidingLevelAsBaseMember0"] = 2155] = "OverridingMemberMustHaveTheSameHidingLevelAsBaseMember0";
|
|
13328
13327
|
DiagnosticCode2[DiagnosticCode2["OverridingMethodMustBeAsyncBecauseBaseMethod0IsAsync"] = 2156] = "OverridingMethodMustBeAsyncBecauseBaseMethod0IsAsync";
|
|
13329
13328
|
DiagnosticCode2[DiagnosticCode2["OverridingMethodMustNotBeAsyncBecauseBaseMethod0IsNotAsync"] = 2157] = "OverridingMethodMustNotBeAsyncBecauseBaseMethod0IsNotAsync";
|
|
13330
|
-
DiagnosticCode2[DiagnosticCode2["
|
|
13329
|
+
DiagnosticCode2[DiagnosticCode2["OverridingFieldMustMustBeMutableToMatchBaseField0"] = 2158] = "OverridingFieldMustMustBeMutableToMatchBaseField0";
|
|
13331
13330
|
DiagnosticCode2[DiagnosticCode2["OverridingMemberMustHaveWriteFunctionToMatchBaseMember0"] = 2159] = "OverridingMemberMustHaveWriteFunctionToMatchBaseMember0";
|
|
13332
13331
|
DiagnosticCode2[DiagnosticCode2["TypeDoesNotImplementMember0"] = 2160] = "TypeDoesNotImplementMember0";
|
|
13333
13332
|
DiagnosticCode2[DiagnosticCode2["TypeDoesNotImplementMember0ImplicitImplementationTypeMismatch1"] = 2161] = "TypeDoesNotImplementMember0ImplicitImplementationTypeMismatch1";
|
|
13334
13333
|
DiagnosticCode2[DiagnosticCode2["TypeDoesNotImplementMember0ImplicitImplementation1IsAsync"] = 2162] = "TypeDoesNotImplementMember0ImplicitImplementation1IsAsync";
|
|
13335
13334
|
DiagnosticCode2[DiagnosticCode2["TypeDoesNotImplementMember0ImplicitImplementation1IsNotAsync"] = 2163] = "TypeDoesNotImplementMember0ImplicitImplementation1IsNotAsync";
|
|
13336
|
-
DiagnosticCode2[DiagnosticCode2["
|
|
13335
|
+
DiagnosticCode2[DiagnosticCode2["TypeDoesNotImplementMember0ImplicitImplementation1IsNotMutable"] = 2164] = "TypeDoesNotImplementMember0ImplicitImplementation1IsNotMutable";
|
|
13337
13336
|
DiagnosticCode2[DiagnosticCode2["TypeDoesNotImplementMember0ImplicitImplementation1WriteFunctionIsHidden"] = 2165] = "TypeDoesNotImplementMember0ImplicitImplementation1WriteFunctionIsHidden";
|
|
13338
13337
|
DiagnosticCode2[DiagnosticCode2["CannotAccessAbstractMemberOfBaseType"] = 2166] = "CannotAccessAbstractMemberOfBaseType";
|
|
13339
13338
|
DiagnosticCode2[DiagnosticCode2["TheFollowingBaseTypeMembersConflictAndMustBeOverridden0"] = 2167] = "TheFollowingBaseTypeMembersConflictAndMustBeOverridden0";
|
|
@@ -13349,7 +13348,7 @@ var DiagnosticCode = /* @__PURE__ */ ((DiagnosticCode2) => {
|
|
|
13349
13348
|
DiagnosticCode2[DiagnosticCode2["ForExpressionToBeUsedInForLoopMethod0MustReturnEnumeratorType"] = 2177] = "ForExpressionToBeUsedInForLoopMethod0MustReturnEnumeratorType";
|
|
13350
13349
|
DiagnosticCode2[DiagnosticCode2["CannotInferTypeArguments"] = 2178] = "CannotInferTypeArguments";
|
|
13351
13350
|
DiagnosticCode2[DiagnosticCode2["CanNotInferReturnTypeAddExplicitReturnTypeSpecifier"] = 2179] = "CanNotInferReturnTypeAddExplicitReturnTypeSpecifier";
|
|
13352
|
-
DiagnosticCode2[DiagnosticCode2["
|
|
13351
|
+
DiagnosticCode2[DiagnosticCode2["ImmutableVariablesBustBeInitialized"] = 2180] = "ImmutableVariablesBustBeInitialized";
|
|
13353
13352
|
DiagnosticCode2[DiagnosticCode2["VariableTypeIsNotSpecified"] = 2181] = "VariableTypeIsNotSpecified";
|
|
13354
13353
|
DiagnosticCode2[DiagnosticCode2["CannotInferTypeOfFunctionLiteralAddTypeSpecifierForParameter"] = 2182] = "CannotInferTypeOfFunctionLiteralAddTypeSpecifierForParameter";
|
|
13355
13354
|
DiagnosticCode2[DiagnosticCode2["TypeParameterDefaultCanReferenceOnlyPreviouslyDeclaredTypeParameters"] = 2183] = "TypeParameterDefaultCanReferenceOnlyPreviouslyDeclaredTypeParameters";
|
|
@@ -13369,7 +13368,7 @@ var DiagnosticCode = /* @__PURE__ */ ((DiagnosticCode2) => {
|
|
|
13369
13368
|
DiagnosticCode2[DiagnosticCode2["TextTranslationAlreadyExistsInTheTextTranslationPackage"] = 2197] = "TextTranslationAlreadyExistsInTheTextTranslationPackage";
|
|
13370
13369
|
DiagnosticCode2[DiagnosticCode2["PackageDoesNotContainImplementationOf0"] = 2198] = "PackageDoesNotContainImplementationOf0";
|
|
13371
13370
|
DiagnosticCode2[DiagnosticCode2["TypeDoesNotContainImplementationOf0"] = 2199] = "TypeDoesNotContainImplementationOf0";
|
|
13372
|
-
DiagnosticCode2[DiagnosticCode2["
|
|
13371
|
+
DiagnosticCode2[DiagnosticCode2["ImplementationVariableMustBeMutableToMatchInterfacePackageVariable0"] = 2200] = "ImplementationVariableMustBeMutableToMatchInterfacePackageVariable0";
|
|
13373
13372
|
DiagnosticCode2[DiagnosticCode2["ImplementationFunctionMustBeAsyncToMatchInterfacePackageFunction0"] = 2201] = "ImplementationFunctionMustBeAsyncToMatchInterfacePackageFunction0";
|
|
13374
13373
|
DiagnosticCode2[DiagnosticCode2["ImplementationFunctionMustNotBeAsyncToMatchInterfacePackageFunction0"] = 2202] = "ImplementationFunctionMustNotBeAsyncToMatchInterfacePackageFunction0";
|
|
13375
13374
|
DiagnosticCode2[DiagnosticCode2["ImplementationTypeMustBeBasicToMatchInterfacePackageType0"] = 2203] = "ImplementationTypeMustBeBasicToMatchInterfacePackageType0";
|
|
@@ -13384,12 +13383,12 @@ var DiagnosticCode = /* @__PURE__ */ ((DiagnosticCode2) => {
|
|
|
13384
13383
|
DiagnosticCode2[DiagnosticCode2["OnlyTypesPresentInBaseTypeListOrReductionSourceCanBeSpecified"] = 2212] = "OnlyTypesPresentInBaseTypeListOrReductionSourceCanBeSpecified";
|
|
13385
13384
|
DiagnosticCode2[DiagnosticCode2["ReducedTypeMemberMustHaveTheSameTypeAsReductionSourceMember"] = 2213] = "ReducedTypeMemberMustHaveTheSameTypeAsReductionSourceMember";
|
|
13386
13385
|
DiagnosticCode2[DiagnosticCode2["ReducedTypeMemberMustHaveTheSameHidingLevelAsReductionSourceMember"] = 2214] = "ReducedTypeMemberMustHaveTheSameHidingLevelAsReductionSourceMember";
|
|
13387
|
-
DiagnosticCode2[DiagnosticCode2["
|
|
13386
|
+
DiagnosticCode2[DiagnosticCode2["ReducedTypeFieldMustBeImmutableToMatchReductionSourceField"] = 2215] = "ReducedTypeFieldMustBeImmutableToMatchReductionSourceField";
|
|
13388
13387
|
DiagnosticCode2[DiagnosticCode2["ReducedTypeMethodMustBeAsyncToMatchReductionSourceMethod"] = 2216] = "ReducedTypeMethodMustBeAsyncToMatchReductionSourceMethod";
|
|
13389
13388
|
DiagnosticCode2[DiagnosticCode2["ReducedTypeMethodMustNotBeAsyncToMatchReductionSourceMethod"] = 2217] = "ReducedTypeMethodMustNotBeAsyncToMatchReductionSourceMethod";
|
|
13390
13389
|
DiagnosticCode2[DiagnosticCode2["ReducedTypeMemberMustHaveNoWriteFunctionToMatchReductionSourceMember"] = 2218] = "ReducedTypeMemberMustHaveNoWriteFunctionToMatchReductionSourceMember";
|
|
13391
|
-
DiagnosticCode2[DiagnosticCode2["
|
|
13392
|
-
DiagnosticCode2[DiagnosticCode2["
|
|
13390
|
+
DiagnosticCode2[DiagnosticCode2["PlainObjectFieldsMustBeImmutable"] = 2219] = "PlainObjectFieldsMustBeImmutable";
|
|
13391
|
+
DiagnosticCode2[DiagnosticCode2["PlainObjectFieldsMustBeImmutableAutomaticallyCreatedStoredFieldIsMutable"] = 2220] = "PlainObjectFieldsMustBeImmutableAutomaticallyCreatedStoredFieldIsMutable";
|
|
13393
13392
|
DiagnosticCode2[DiagnosticCode2["FieldTypeCausesRecursivePlainObjectLayout"] = 2221] = "FieldTypeCausesRecursivePlainObjectLayout";
|
|
13394
13393
|
DiagnosticCode2[DiagnosticCode2["QuestionOperatorCanBeUsedOnlyInSpecificExpressions"] = 2222] = "QuestionOperatorCanBeUsedOnlyInSpecificExpressions";
|
|
13395
13394
|
DiagnosticCode2[DiagnosticCode2["CannotFindTsLibDirectoryBaseSearchPaths0"] = 3e3] = "CannotFindTsLibDirectoryBaseSearchPaths0";
|
|
@@ -13653,13 +13652,13 @@ var englishErrorMessages = {
|
|
|
13653
13652
|
[2155 /* OverridingMemberMustHaveTheSameHidingLevelAsBaseMember0 */]: "Overriding member must have the same hiding level as base member '{0}'.",
|
|
13654
13653
|
[2156 /* OverridingMethodMustBeAsyncBecauseBaseMethod0IsAsync */]: "Overriding method must be 'async' because base method '{0}' is 'async'.",
|
|
13655
13654
|
[2157 /* OverridingMethodMustNotBeAsyncBecauseBaseMethod0IsNotAsync */]: "Overriding method must not be 'async' because base method '{0}' is not 'async'.",
|
|
13656
|
-
[2158 /*
|
|
13655
|
+
[2158 /* OverridingFieldMustMustBeMutableToMatchBaseField0 */]: "Overriding field must be mutable to match base field '{0}'.",
|
|
13657
13656
|
[2159 /* OverridingMemberMustHaveWriteFunctionToMatchBaseMember0 */]: "Overriding member must have write function to match base member '{0}'.",
|
|
13658
13657
|
[2160 /* TypeDoesNotImplementMember0 */]: "Type does not implement member '{0}'.",
|
|
13659
13658
|
[2161 /* TypeDoesNotImplementMember0ImplicitImplementationTypeMismatch1 */]: "Type does not implement member '{0}'. Member '{1}' cannot implement it because their types does not match.",
|
|
13660
13659
|
[2162 /* TypeDoesNotImplementMember0ImplicitImplementation1IsAsync */]: "Type does not implement member '{0}'. Method '{1}' cannot implement it because it is 'async'.",
|
|
13661
13660
|
[2163 /* TypeDoesNotImplementMember0ImplicitImplementation1IsNotAsync */]: "Type does not implement member '{0}'. Method '{1}' cannot implement it because it is not 'async'.",
|
|
13662
|
-
[2164 /*
|
|
13661
|
+
[2164 /* TypeDoesNotImplementMember0ImplicitImplementation1IsNotMutable */]: "Type does not implement member '{0}'. Member '{1}' cannot implement it because it is not mutable.",
|
|
13663
13662
|
[2165 /* TypeDoesNotImplementMember0ImplicitImplementation1WriteFunctionIsHidden */]: "Type does not implement member '{0}'. Member '{1}' cannot implement it because its write function is hidden.",
|
|
13664
13663
|
[2166 /* CannotAccessAbstractMemberOfBaseType */]: "Can not access abstract member of base type.",
|
|
13665
13664
|
[2167 /* TheFollowingBaseTypeMembersConflictAndMustBeOverridden0 */]: "The following base type members conflict and must be overridden:\n{0}",
|
|
@@ -13676,7 +13675,7 @@ var englishErrorMessages = {
|
|
|
13676
13675
|
[2178 /* CannotInferTypeArguments */]: "Cannot infer type arguments",
|
|
13677
13676
|
[2179 /* CanNotInferReturnTypeAddExplicitReturnTypeSpecifier */]: "Can not infer return type. Add explicit return type specifier.",
|
|
13678
13677
|
[2181 /* VariableTypeIsNotSpecified */]: "Variable type is not specified.",
|
|
13679
|
-
[2180 /*
|
|
13678
|
+
[2180 /* ImmutableVariablesBustBeInitialized */]: "Immutable variables must be initialized.",
|
|
13680
13679
|
[2182 /* CannotInferTypeOfFunctionLiteralAddTypeSpecifierForParameter */]: "Cannot infer type of function literal. Add type specifier for parameter.",
|
|
13681
13680
|
[2183 /* TypeParameterDefaultCanReferenceOnlyPreviouslyDeclaredTypeParameters */]: "Type parameter default can reference only previously declared type parameters.",
|
|
13682
13681
|
[2184 /* RequiredTypeParametersCannotFollowTypeParametersWithDefaults */]: "Required type parameters cannot follow type parameters with defaults.",
|
|
@@ -13695,7 +13694,7 @@ var englishErrorMessages = {
|
|
|
13695
13694
|
[2197 /* TextTranslationAlreadyExistsInTheTextTranslationPackage */]: "Text translation already exists in the text translation package.",
|
|
13696
13695
|
[2198 /* PackageDoesNotContainImplementationOf0 */]: "Package does not contain implementation of '{0}'.",
|
|
13697
13696
|
[2199 /* TypeDoesNotContainImplementationOf0 */]: "Type does not contain implementation of '{0}'.",
|
|
13698
|
-
[2200 /*
|
|
13697
|
+
[2200 /* ImplementationVariableMustBeMutableToMatchInterfacePackageVariable0 */]: "Implementation variable must be mutable to match interface package variable '{0}'.",
|
|
13699
13698
|
[2201 /* ImplementationFunctionMustBeAsyncToMatchInterfacePackageFunction0 */]: "Implementation function must be 'async' to match interface package function '{0}'.",
|
|
13700
13699
|
[2202 /* ImplementationFunctionMustNotBeAsyncToMatchInterfacePackageFunction0 */]: "Implementation function must not be 'async' to match interface package function '{0}'.",
|
|
13701
13700
|
[2203 /* ImplementationTypeMustBeBasicToMatchInterfacePackageType0 */]: "Implementation type must be 'basic' to match interface package type '{0}'.",
|
|
@@ -13710,12 +13709,12 @@ var englishErrorMessages = {
|
|
|
13710
13709
|
[2212 /* OnlyTypesPresentInBaseTypeListOrReductionSourceCanBeSpecified */]: "Only the types present in the base types list of the reduction source can be specified as the base types of a reduced type.",
|
|
13711
13710
|
[2213 /* ReducedTypeMemberMustHaveTheSameTypeAsReductionSourceMember */]: "Reduced type member must have the same type as reduction source member.",
|
|
13712
13711
|
[2214 /* ReducedTypeMemberMustHaveTheSameHidingLevelAsReductionSourceMember */]: "Reduced type member must have the same hiding level as reduction source member.",
|
|
13713
|
-
[2215 /*
|
|
13712
|
+
[2215 /* ReducedTypeFieldMustBeImmutableToMatchReductionSourceField */]: "Reduced type field must be immutable to match reduction source field.",
|
|
13714
13713
|
[2216 /* ReducedTypeMethodMustBeAsyncToMatchReductionSourceMethod */]: "Reduced type method must be 'async' to match reduction source method.",
|
|
13715
13714
|
[2217 /* ReducedTypeMethodMustNotBeAsyncToMatchReductionSourceMethod */]: "Reduced type method must not be 'async' to match reduction source method.",
|
|
13716
13715
|
[2218 /* ReducedTypeMemberMustHaveNoWriteFunctionToMatchReductionSourceMember */]: "Reduced type member must have no write function to match reduction source member.",
|
|
13717
|
-
[2219 /*
|
|
13718
|
-
[2220 /*
|
|
13716
|
+
[2219 /* PlainObjectFieldsMustBeImmutable */]: "Plain object fields must be constant.",
|
|
13717
|
+
[2220 /* PlainObjectFieldsMustBeImmutableAutomaticallyCreatedStoredFieldIsMutable */]: "Plain object fields must be constant. Automatically created stored field is not constant.",
|
|
13719
13718
|
[2221 /* FieldTypeCausesRecursivePlainObjectLayout */]: "Field type causes recursive plain object layout.",
|
|
13720
13719
|
[2222 /* QuestionOperatorCanBeUsedOnlyInSpecificExpressions */]: "Question operator can be used only in member access, indexed access, dereference or call expressions.",
|
|
13721
13720
|
[3e3 /* CannotFindTsLibDirectoryBaseSearchPaths0 */]: "Can not find directory with TypeScript library. Base search paths: {0}.",
|
|
@@ -13934,12 +13933,12 @@ var russianErrorMessages = {
|
|
|
13934
13933
|
[2161 /* TypeDoesNotImplementMember0ImplicitImplementationTypeMismatch1 */]: "\u0422\u0438\u043F \u043D\u0435 \u0440\u0435\u0430\u043B\u0438\u0437\u0443\u0435\u0442 \u0447\u043B\u0435\u043D '{0}'. \u0427\u043B\u0435\u043D '{1}' \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0440\u0435\u0430\u043B\u0438\u0437\u043E\u0432\u0430\u0442\u044C \u0435\u0433\u043E, \u043F\u043E\u0441\u043A\u043E\u043B\u044C\u043A\u0443 \u0438\u0445 \u0442\u0438\u043F\u044B \u043E\u0442\u043B\u0438\u0447\u0430\u044E\u0442\u0441\u044F.",
|
|
13935
13934
|
[2162 /* TypeDoesNotImplementMember0ImplicitImplementation1IsAsync */]: "\u0422\u0438\u043F \u043D\u0435 \u0440\u0435\u0430\u043B\u0438\u0437\u0443\u0435\u0442 \u0447\u043B\u0435\u043D '{0}'. \u041C\u0435\u0442\u043E\u0434 '{1}' \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0440\u0435\u0430\u043B\u0438\u0437\u043E\u0432\u0430\u0442\u044C \u0435\u0433\u043E, \u043F\u043E\u0441\u043A\u043E\u043B\u044C\u043A\u0443 \u0432 \u043E\u0442\u043B\u0438\u0447\u0438\u0435 \u043E\u0442 \u0430\u0431\u0441\u0442\u0440\u0430\u043A\u0442\u043D\u043E\u0433\u043E \u0447\u043B\u0435\u043D\u0430 \u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u0430\u0441\u0438\u043D\u0445\u0440\u043E\u043D\u043D\u044B\u043C.",
|
|
13936
13935
|
[2163 /* TypeDoesNotImplementMember0ImplicitImplementation1IsNotAsync */]: "\u0422\u0438\u043F \u043D\u0435 \u0440\u0435\u0430\u043B\u0438\u0437\u0443\u0435\u0442 \u0447\u043B\u0435\u043D '{0}'. \u041C\u0435\u0442\u043E\u0434 '{1}' \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0440\u0435\u0430\u043B\u0438\u0437\u043E\u0432\u0430\u0442\u044C \u0435\u0433\u043E, \u043F\u043E\u0441\u043A\u043E\u043B\u044C\u043A\u0443 \u0432 \u043E\u0442\u043B\u0438\u0447\u0438\u0435 \u043E\u0442 \u0430\u0431\u0441\u0442\u0440\u0430\u043A\u0442\u043D\u043E\u0433\u043E \u0447\u043B\u0435\u043D\u0430 \u043D\u0435 \u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u0430\u0441\u0438\u043D\u0445\u0440\u043E\u043D\u043D\u044B\u043C.",
|
|
13937
|
-
[2164 /*
|
|
13936
|
+
[2164 /* TypeDoesNotImplementMember0ImplicitImplementation1IsNotMutable */]: "\u0422\u0438\u043F \u043D\u0435 \u0440\u0435\u0430\u043B\u0438\u0437\u0443\u0435\u0442 \u0447\u043B\u0435\u043D '{0}'. \u0427\u043B\u0435\u043D '{1}' \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0440\u0435\u0430\u043B\u0438\u0437\u043E\u0432\u0430\u0442\u044C \u0435\u0433\u043E, \u043F\u043E\u0441\u043A\u043E\u043B\u044C\u043A\u0443 \u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u043D\u0435\u0438\u0437\u043C\u0435\u043D\u044F\u0435\u043C\u044B\u043C.",
|
|
13938
13937
|
[2165 /* TypeDoesNotImplementMember0ImplicitImplementation1WriteFunctionIsHidden */]: "\u0422\u0438\u043F \u043D\u0435 \u0440\u0435\u0430\u043B\u0438\u0437\u0443\u0435\u0442 \u0447\u043B\u0435\u043D '{0}'. \u0427\u043B\u0435\u043D '{1}' \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0440\u0435\u0430\u043B\u0438\u0437\u043E\u0432\u0430\u0442\u044C \u0435\u0433\u043E, \u043F\u043E\u0441\u043A\u043E\u043B\u044C\u043A\u0443 \u0435\u0433\u043E \u0444\u0443\u043D\u043A\u0446\u0438\u044F \u0437\u0430\u043F\u0438\u0441\u0438 \u0441\u043A\u0440\u044B\u0442\u0430.",
|
|
13939
13938
|
[2155 /* OverridingMemberMustHaveTheSameHidingLevelAsBaseMember0 */]: "\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043D\u043D\u044B\u0439 \u0447\u043B\u0435\u043D \u0442\u0438\u043F\u0430 \u0434\u043E\u043B\u0436\u0435\u043D \u0438\u043C\u0435\u0442\u044C \u0442\u0430\u043A\u043E\u0439 \u0436\u0435 \u0443\u0440\u043E\u0432\u0435\u043D\u044C \u0441\u043A\u0440\u044B\u0442\u043D\u043E\u0441\u0442\u0438 \u043A\u0430\u043A \u0431\u0430\u0437\u043E\u0432\u044B\u0439 \u0447\u043B\u0435\u043D '{0}'.",
|
|
13940
13939
|
[2156 /* OverridingMethodMustBeAsyncBecauseBaseMethod0IsAsync */]: "\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043D\u043D\u044B\u0439 \u043C\u0435\u0442\u043E\u0434 \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u043F\u043E\u043C\u0435\u0447\u0435\u043D \u043C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u043E\u043C '\u0430\u0441\u0438\u043D\u0445\u0440\u043E\u043D\u043D\u044B\u0439', \u043F\u043E\u0441\u043A\u043E\u043B\u044C\u043A\u0443 \u0431\u0430\u0437\u043E\u0432\u044B\u0439 \u043C\u0435\u0442\u043E\u0434 '{0}' \u043F\u043E\u043C\u0435\u0447\u0435\u043D \u0442\u0430\u043A\u0438\u043C \u043C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u043E\u043C.",
|
|
13941
13940
|
[2157 /* OverridingMethodMustNotBeAsyncBecauseBaseMethod0IsNotAsync */]: "\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043D\u043D\u044B\u0439 \u043C\u0435\u0442\u043E\u0434 \u043D\u0435 \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u043F\u043E\u043C\u0435\u0447\u0435\u043D \u043C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u043E\u043C '\u0430\u0441\u0438\u043D\u0445\u0440\u043E\u043D\u043D\u044B\u0439', \u043F\u043E\u0441\u043A\u043E\u043B\u044C\u043A\u0443 \u0431\u0430\u0437\u043E\u0432\u044B\u0439 \u043C\u0435\u0442\u043E\u0434 '{0}' \u043D\u0435 \u043F\u043E\u043C\u0435\u0447\u0435\u043D \u0442\u0430\u043A\u0438\u043C \u043C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u043E\u043C.",
|
|
13942
|
-
[2158 /*
|
|
13941
|
+
[2158 /* OverridingFieldMustMustBeMutableToMatchBaseField0 */]: "\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043D\u043D\u043E\u0435 \u043F\u043E\u043B\u0435 \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u0438\u0437\u043C\u0435\u043D\u044F\u0435\u043C\u044B\u043C, \u0447\u0442\u043E\u0431\u044B \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0431\u0430\u0437\u043E\u0432\u043E\u043C\u0443 \u043F\u043E\u043B\u044E '{0}'.",
|
|
13943
13942
|
[2159 /* OverridingMemberMustHaveWriteFunctionToMatchBaseMember0 */]: "\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043D\u043D\u044B\u0439 \u0447\u043B\u0435\u043D \u0442\u0438\u043F\u0430 \u0434\u043E\u043B\u0436\u0435\u043D \u0438\u043C\u0435\u0442\u044C \u0444\u0443\u043D\u043A\u0446\u0438\u044E \u0437\u0430\u043F\u0438\u0441\u0438, \u0447\u0442\u043E\u0431\u044B \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0431\u0430\u0437\u043E\u0432\u043E\u043C\u0443 \u0447\u043B\u0435\u043D\u0443 '{0}'.",
|
|
13944
13943
|
[2166 /* CannotAccessAbstractMemberOfBaseType */]: "\u041D\u0435\u043B\u044C\u0437\u044F \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u044C\u0441\u044F \u043A \u0430\u0431\u0441\u0442\u0440\u0430\u043A\u0442\u043D\u043E\u043C\u0443 \u0447\u043B\u0435\u043D\u0443 \u0431\u0430\u0437\u043E\u0432\u043E\u0433\u043E \u0442\u0438\u043F\u0430.",
|
|
13945
13944
|
[2167 /* TheFollowingBaseTypeMembersConflictAndMustBeOverridden0 */]: "\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 \u0438 \u0434\u043E\u043B\u0436\u043D\u044B \u0431\u044B\u0442\u044C \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043D\u044B:\n{0}",
|
|
@@ -13956,7 +13955,7 @@ var russianErrorMessages = {
|
|
|
13956
13955
|
[2178 /* CannotInferTypeArguments */]: "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0438\u0442\u044C \u0430\u0440\u0433\u0443\u043C\u0435\u043D\u0442\u044B \u0442\u0438\u043F\u0430.",
|
|
13957
13956
|
[2179 /* CanNotInferReturnTypeAddExplicitReturnTypeSpecifier */]: "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0438\u0442\u044C \u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043C\u044B\u0439 \u0442\u0438\u043F. \u0414\u043E\u0431\u0430\u0432\u044C\u0442\u0435 \u044F\u0432\u043D\u043E\u0435 \u0443\u043A\u0430\u0437\u0430\u043D\u0438\u0435 \u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043C\u043E\u0433\u043E \u0442\u0438\u043F\u0430.",
|
|
13958
13957
|
[2181 /* VariableTypeIsNotSpecified */]: "\u041D\u0435 \u0443\u043A\u0430\u0437\u0430\u043D \u0442\u0438\u043F \u043F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439.",
|
|
13959
|
-
[2180 /*
|
|
13958
|
+
[2180 /* ImmutableVariablesBustBeInitialized */]: "\u041D\u0435\u0438\u0437\u043C\u0435\u043D\u044F\u0435\u043C\u044B\u043C \u043F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u044B\u043C \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043F\u0440\u0438\u0441\u0432\u043E\u0435\u043D\u043E \u043D\u0430\u0447\u0430\u043B\u044C\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435.",
|
|
13960
13959
|
[2182 /* CannotInferTypeOfFunctionLiteralAddTypeSpecifierForParameter */]: "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0438\u0442\u044C \u0442\u0438\u043F \u0431\u0435\u0437\u044B\u043C\u044F\u043D\u043D\u043E\u0439 \u0444\u0443\u043D\u043A\u0446\u0438\u0438. \u0414\u043E\u0431\u0430\u0432\u044C\u0442\u0435 \u0443\u043A\u0430\u0437\u0430\u043D\u0438\u0435 \u0442\u0438\u043F\u0430 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0430.",
|
|
13961
13960
|
[2183 /* TypeParameterDefaultCanReferenceOnlyPreviouslyDeclaredTypeParameters */]: "\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0430 \u0442\u0438\u043F\u0430 \u043C\u043E\u0436\u0435\u0442 \u0441\u0441\u044B\u043B\u0430\u0442\u044C\u0441\u044F \u0442\u043E\u043B\u044C\u043A\u043E \u043D\u0430 \u0440\u0430\u043D\u0435\u0435 \u043E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u043D\u044B\u0435 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B \u0442\u0438\u043F\u0430.",
|
|
13962
13961
|
[2184 /* RequiredTypeParametersCannotFollowTypeParametersWithDefaults */]: "\u041E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u0435 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B \u0442\u0438\u043F\u0430 \u043D\u0435 \u043C\u043E\u0433\u0443\u0442 \u0441\u043B\u0435\u0434\u043E\u0432\u0430\u0442\u044C \u0437\u0430 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0430\u043C\u0438 \u0442\u0438\u043F\u0430 \u0441\u043E \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F\u043C\u0438 \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E.",
|
|
@@ -13975,7 +13974,7 @@ var russianErrorMessages = {
|
|
|
13975
13974
|
[2197 /* TextTranslationAlreadyExistsInTheTextTranslationPackage */]: "\u041F\u0435\u0440\u0435\u0432\u043E\u0434 \u0442\u0435\u043A\u0441\u0442\u0430 \u0443\u0436\u0435 \u0437\u0430\u0434\u0430\u043D \u0432 \u043F\u0430\u043A\u0435\u0442\u0435 \u043F\u0435\u0440\u0435\u0432\u043E\u0434\u043E\u0432 \u0442\u0435\u043A\u0441\u0442\u0430.",
|
|
13976
13975
|
[2198 /* PackageDoesNotContainImplementationOf0 */]: "\u041F\u0430\u043A\u0435\u0442 \u043D\u0435 \u0441\u043E\u0434\u0435\u0440\u0436\u0438\u0442 \u0440\u0435\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044E \u0434\u043B\u044F '{0}'.",
|
|
13977
13976
|
[2199 /* TypeDoesNotContainImplementationOf0 */]: "\u0422\u0438\u043F \u043D\u0435 \u0441\u043E\u0434\u0435\u0440\u0436\u0438\u0442 \u0440\u0435\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044E \u0434\u043B\u044F '{0}'.",
|
|
13978
|
-
[2200 /*
|
|
13977
|
+
[2200 /* ImplementationVariableMustBeMutableToMatchInterfacePackageVariable0 */]: "\u0420\u0435\u0430\u043B\u0438\u0437\u0443\u044E\u0449\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u0430\u044F \u0434\u043E\u043B\u0436\u043D\u0430 \u0431\u044B\u0442\u044C \u0438\u0437\u043C\u0435\u043D\u044F\u0435\u043C\u043E\u0439, \u0447\u0442\u043E\u0431\u044B \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u043F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 '{0}', \u043E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u043D\u043E\u0439 \u0432 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043D\u043E\u043C \u043F\u0430\u043A\u0435\u0442\u0435.",
|
|
13979
13978
|
[2201 /* ImplementationFunctionMustBeAsyncToMatchInterfacePackageFunction0 */]: "\u0420\u0435\u0430\u043B\u0438\u0437\u0443\u044E\u0449\u0430\u044F \u0444\u0443\u043D\u043A\u0446\u0438\u044F \u0434\u043E\u043B\u0436\u043D\u0430 \u0431\u044B\u0442\u044C \u043F\u043E\u043C\u0435\u0447\u0435\u043D\u0430 \u043C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u043E\u043C '\u0430\u0441\u0438\u043D\u0445\u0440\u043E\u043D\u043D\u0430\u044F', \u0447\u0442\u043E\u0431\u044B \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0444\u0443\u043D\u043A\u0446\u0438\u0438 '{0}', \u043E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u043D\u043E\u0439 \u0432 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043D\u043E\u043C \u043F\u0430\u043A\u0435\u0442\u0435.",
|
|
13980
13979
|
[2202 /* ImplementationFunctionMustNotBeAsyncToMatchInterfacePackageFunction0 */]: "\u0420\u0435\u0430\u043B\u0438\u0437\u0443\u044E\u0449\u0430\u044F \u0444\u0443\u043D\u043A\u0446\u0438\u044F \u043D\u0435 \u0434\u043E\u043B\u0436\u043D\u0430 \u0431\u044B\u0442\u044C \u043F\u043E\u043C\u0435\u0447\u0435\u043D\u0430 \u043C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u043E\u043C '\u0430\u0441\u0438\u043D\u0445\u0440\u043E\u043D\u043D\u0430\u044F', \u0447\u0442\u043E\u0431\u044B \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0444\u0443\u043D\u043A\u0446\u0438\u0438 '{0}', \u043E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u043D\u043E\u0439 \u0432 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043D\u043E\u043C \u043F\u0430\u043A\u0435\u0442\u0435.",
|
|
13981
13980
|
[2203 /* ImplementationTypeMustBeBasicToMatchInterfacePackageType0 */]: "\u0420\u0435\u0430\u043B\u0438\u0437\u0443\u044E\u0449\u0438\u0439 \u0442\u0438\u043F \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u0431\u0430\u0437\u043E\u0432\u044B\u043C, \u0447\u0442\u043E\u0431\u044B \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0442\u0438\u043F\u0443 '{0}', \u043E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u043D\u043E\u043C\u0443 \u0432 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043D\u043E\u043C \u043F\u0430\u043A\u0435\u0442\u0435.",
|
|
@@ -13990,12 +13989,12 @@ var russianErrorMessages = {
|
|
|
13990
13989
|
[2212 /* OnlyTypesPresentInBaseTypeListOrReductionSourceCanBeSpecified */]: "\u0412 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0431\u0430\u0437\u043E\u0432\u044B\u0445 \u0442\u0438\u043F\u043E\u0432 \u0441\u043E\u043A\u0440\u0430\u0449\u0451\u043D\u043D\u043E\u0433\u043E \u0442\u0438\u043F\u0430 \u043C\u043E\u0433\u0443\u0442 \u0431\u044B\u0442\u044C \u0443\u043A\u0430\u0437\u0430\u043D\u044B \u0442\u043E\u043B\u044C\u043A\u043E \u0442\u0438\u043F\u044B, \u043F\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044E\u0449\u0438\u0435 \u0432 \u0441\u043F\u0438\u0441\u043A\u0435 \u0431\u0430\u0437\u043E\u0432\u044B\u0445 \u0442\u0438\u043F\u043E\u0432 \u0441\u043E\u043A\u0440\u0430\u0449\u0430\u0435\u043C\u043E\u0433\u043E \u0442\u0438\u043F\u0430.",
|
|
13991
13990
|
[2213 /* ReducedTypeMemberMustHaveTheSameTypeAsReductionSourceMember */]: "\u0427\u043B\u0435\u043D \u0441\u043E\u043A\u0440\u0430\u0449\u0451\u043D\u043D\u043E\u0433\u043E \u0442\u0438\u043F\u0430 \u0434\u043E\u043B\u0436\u0435\u043D \u0438\u043C\u0435\u0442\u044C \u0442\u0430\u043A\u043E\u0439 \u0436\u0435 \u0442\u0438\u043F \u043A\u0430\u043A \u0447\u043B\u0435\u043D \u0441\u043E\u043A\u0440\u0430\u0449\u0430\u0435\u043C\u043E\u0433\u043E \u0442\u0438\u043F\u0430.",
|
|
13992
13991
|
[2214 /* ReducedTypeMemberMustHaveTheSameHidingLevelAsReductionSourceMember */]: "\u0427\u043B\u0435\u043D \u0441\u043E\u043A\u0440\u0430\u0449\u0451\u043D\u043D\u043E\u0433\u043E \u0442\u0438\u043F\u0430 \u0434\u043E\u043B\u0436\u0435\u043D \u0438\u043C\u0435\u0442\u044C \u0442\u0430\u043A\u043E\u0439 \u0436\u0435 \u0443\u0440\u043E\u0432\u0435\u043D\u044C \u0441\u043A\u0440\u044B\u0442\u043D\u043E\u0441\u0442\u0438 \u043A\u0430\u043A \u0447\u043B\u0435\u043D \u0441\u043E\u043A\u0440\u0430\u0449\u0430\u0435\u043C\u043E\u0433\u043E \u0442\u0438\u043F\u0430.",
|
|
13993
|
-
[2215 /*
|
|
13992
|
+
[2215 /* ReducedTypeFieldMustBeImmutableToMatchReductionSourceField */]: "\u041F\u043E\u043B\u0435 \u0441\u043E\u043A\u0440\u0430\u0449\u0451\u043D\u043D\u043E\u0433\u043E \u0442\u0438\u043F\u0430 \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043D\u0435\u0438\u0437\u043C\u0435\u043D\u044F\u0435\u043C\u044B\u043C, \u0447\u0442\u043E\u0431\u044B \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u043F\u043E\u043B\u044E \u0441\u043E\u043A\u0440\u0430\u0449\u0430\u0435\u043C\u043E\u0433\u043E \u0442\u0438\u043F\u0430.",
|
|
13994
13993
|
[2216 /* ReducedTypeMethodMustBeAsyncToMatchReductionSourceMethod */]: "\u041C\u0435\u0442\u043E\u0434 \u0441\u043E\u043A\u0440\u0430\u0449\u0451\u043D\u043D\u043E\u0433\u043E \u0442\u0438\u043F\u0430 \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u043F\u043E\u043C\u0435\u0447\u0435\u043D \u043C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u043E\u043C '\u0430\u0441\u0438\u043D\u0445\u0440\u043E\u043D\u043D\u044B\u0439', \u0447\u0442\u043E\u0431\u044B \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u043C\u0435\u0442\u043E\u0434\u0443 \u0441\u043E\u043A\u0440\u0430\u0449\u0430\u0435\u043C\u043E\u0433\u043E \u0442\u0438\u043F\u0430.",
|
|
13995
13994
|
[2217 /* ReducedTypeMethodMustNotBeAsyncToMatchReductionSourceMethod */]: "\u041C\u0435\u0442\u043E\u0434 \u0441\u043E\u043A\u0440\u0430\u0449\u0451\u043D\u043D\u043E\u0433\u043E \u0442\u0438\u043F\u0430 \u043D\u0435 \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u043F\u043E\u043C\u0435\u0447\u0435\u043D \u043C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u043E\u043C '\u0430\u0441\u0438\u043D\u0445\u0440\u043E\u043D\u043D\u044B\u0439', \u0447\u0442\u043E\u0431\u044B \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u043C\u0435\u0442\u043E\u0434\u0443 \u0441\u043E\u043A\u0440\u0430\u0449\u0430\u0435\u043C\u043E\u0433\u043E \u0442\u0438\u043F\u0430.",
|
|
13996
13995
|
[2218 /* ReducedTypeMemberMustHaveNoWriteFunctionToMatchReductionSourceMember */]: "\u0427\u043B\u0435\u043D \u0441\u043E\u043A\u0440\u0430\u0449\u0451\u043D\u043D\u043E\u0433\u043E \u0442\u0438\u043F\u0430 \u043D\u0435 \u0434\u043E\u043B\u0436\u0435\u043D \u0438\u043C\u0435\u0442\u044C \u0444\u0443\u043D\u043A\u0446\u0438\u044E \u0437\u0430\u043F\u0438\u0441\u0438, \u0447\u0442\u043E\u0431\u044B \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0447\u043B\u0435\u043D\u0443 \u0441\u043E\u043A\u0440\u0430\u0449\u0430\u0435\u043C\u043E\u0433\u043E \u0442\u0438\u043F\u0430.",
|
|
13997
|
-
[2219 /*
|
|
13998
|
-
[2220 /*
|
|
13996
|
+
[2219 /* PlainObjectFieldsMustBeImmutable */]: "\u041F\u043E\u043B\u044F \u043F\u0440\u043E\u0441\u0442\u043E\u0433\u043E \u043E\u0431\u044A\u0435\u043A\u0442\u0430 \u0434\u043E\u043B\u0436\u043D\u044B \u0431\u044B\u0442\u044C \u043D\u0435\u0438\u0437\u043C\u0435\u043D\u044F\u0435\u043C\u044B\u043C\u0438.",
|
|
13997
|
+
[2220 /* PlainObjectFieldsMustBeImmutableAutomaticallyCreatedStoredFieldIsMutable */]: "\u041F\u043E\u043B\u044F \u043F\u0440\u043E\u0441\u0442\u043E\u0433\u043E \u043E\u0431\u044A\u0435\u043A\u0442\u0430 \u0434\u043E\u043B\u0436\u043D\u044B \u0431\u044B\u0442\u044C \u043D\u0435\u0438\u0437\u043C\u0435\u043D\u044F\u0435\u043C\u044B\u043C\u0438. \u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0441\u043E\u0437\u0434\u0430\u043D\u043D\u043E\u0435 \u0445\u0440\u0430\u043D\u0438\u043C\u043E\u0435 \u043F\u043E\u043B\u0435 \u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u0438\u0437\u043C\u0435\u043D\u044F\u0435\u043C\u044B\u043C.",
|
|
13999
13998
|
[2221 /* FieldTypeCausesRecursivePlainObjectLayout */]: "\u0422\u0438\u043F \u043F\u043E\u043B\u044F \u043F\u0440\u0438\u0432\u043E\u0434\u0438\u0442 \u043A \u0440\u0435\u043A\u0443\u0440\u0441\u0438\u0432\u043D\u043E\u0439 \u0441\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u0435 \u043F\u0440\u043E\u0441\u0442\u043E\u0433\u043E \u043E\u0431\u044A\u0435\u043A\u0442\u0430.",
|
|
14000
13999
|
[2222 /* QuestionOperatorCanBeUsedOnlyInSpecificExpressions */]: "\u041E\u043F\u0435\u0440\u0430\u0442\u043E\u0440 '?' \u043C\u043E\u0436\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0442\u043E\u043B\u044C\u043A\u043E \u0432 \u0432\u044B\u0440\u0430\u0436\u0435\u043D\u0438\u044F\u0445 \u0434\u043E\u0441\u0442\u0443\u043F\u0430 \u043F\u043E \u0438\u043C\u0435\u043D\u0438, \u0434\u043E\u0441\u0442\u0443\u043F\u0430 \u043F\u043E \u0438\u043D\u0434\u0435\u043A\u0441\u0443, \u0434\u043E\u0441\u0442\u0443\u043F\u0430 \u043F\u043E \u0441\u0441\u044B\u043B\u043A\u0435 \u0438 \u0432\u044B\u0437\u043E\u0432\u0430.",
|
|
14001
14000
|
[3e3 /* 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}.",
|
|
@@ -17976,11 +17975,11 @@ var StatementParser = class _StatementParser {
|
|
|
17976
17975
|
parseLocalVariableDeclarationStatement() {
|
|
17977
17976
|
const statementStart = this.parser.tokenOrKeywordStartPosition();
|
|
17978
17977
|
const declarationStart = this.parser.tokenOrKeywordStartPosition();
|
|
17979
|
-
let
|
|
17980
|
-
if (this.parser.isKeyword(37 /*
|
|
17981
|
-
|
|
17978
|
+
let letOrVarKeyword;
|
|
17979
|
+
if (this.parser.isKeyword(37 /* Var */)) {
|
|
17980
|
+
letOrVarKeyword = this.parser.parseExpectedKeyword(37 /* Var */);
|
|
17982
17981
|
} else {
|
|
17983
|
-
|
|
17982
|
+
letOrVarKeyword = this.parser.parseExpectedKeyword(1 /* Let */);
|
|
17984
17983
|
}
|
|
17985
17984
|
const name = this.parser.parseIdentifier(4 /* Other */);
|
|
17986
17985
|
let typeAnnotation;
|
|
@@ -17993,7 +17992,7 @@ var StatementParser = class _StatementParser {
|
|
|
17993
17992
|
initializer = this.parser.expressionParser.parseExpression(false);
|
|
17994
17993
|
}
|
|
17995
17994
|
const declaration = new LocalVariableDeclaration(
|
|
17996
|
-
|
|
17995
|
+
letOrVarKeyword,
|
|
17997
17996
|
name,
|
|
17998
17997
|
typeAnnotation,
|
|
17999
17998
|
equalsToken,
|
|
@@ -18123,7 +18122,7 @@ var StatementParser = class _StatementParser {
|
|
|
18123
18122
|
case 45 /* Switch */:
|
|
18124
18123
|
return this.parseSwitchStatement.bind(this);
|
|
18125
18124
|
case 1 /* Let */:
|
|
18126
|
-
case 37 /*
|
|
18125
|
+
case 37 /* Var */:
|
|
18127
18126
|
return this.parseLocalVariableDeclarationStatement.bind(this);
|
|
18128
18127
|
case 47 /* Dispose */:
|
|
18129
18128
|
return this.parseDisposeStatement.bind(this);
|
|
@@ -19580,7 +19579,7 @@ var ModifierListParser = class {
|
|
|
19580
19579
|
const tokenOrKeyword = this.parser.currentTokenOrKeyword;
|
|
19581
19580
|
if (tokenOrKeyword.kind === 3 /* Keyword */) {
|
|
19582
19581
|
switch (tokenOrKeyword.keywordKind) {
|
|
19583
|
-
case 37 /*
|
|
19582
|
+
case 37 /* Var */:
|
|
19584
19583
|
case 38 /* Hidden */:
|
|
19585
19584
|
case 18 /* Basic */:
|
|
19586
19585
|
case 39 /* Abstract */:
|
|
@@ -37191,7 +37190,7 @@ var ReachabilityChecker = class {
|
|
|
37191
37190
|
*
|
|
37192
37191
|
* Например, следующий код
|
|
37193
37192
|
* ```artel
|
|
37194
|
-
*
|
|
37193
|
+
* пусть а = Объект()
|
|
37195
37194
|
* если не(а это Объект)
|
|
37196
37195
|
* {
|
|
37197
37196
|
* // ...
|
|
@@ -37282,7 +37281,7 @@ var ReductionSourceMemberFinder = class _ReductionSourceMemberFinder {
|
|
|
37282
37281
|
const isReductionSourceMemberWriteable = isComputedVariableEntity(reductionSourceMemberEntity) ? reductionSourceMemberEntity.getSetter() !== void 0 : !reductionSourceMemberEntity.isConstant();
|
|
37283
37282
|
if (isReducedTypeMemberWriteable && !isReductionSourceMemberWriteable) {
|
|
37284
37283
|
diagnostics.addDiagnostic(this.analyzer.createDiagnostic(
|
|
37285
|
-
2215 /*
|
|
37284
|
+
2215 /* ReducedTypeFieldMustBeImmutableToMatchReductionSourceField */,
|
|
37286
37285
|
diagnosticLocation
|
|
37287
37286
|
));
|
|
37288
37287
|
}
|
|
@@ -37568,7 +37567,7 @@ var ResolvedImplementationPackage = class _ResolvedImplementationPackage {
|
|
|
37568
37567
|
if (diagnosticLocation !== void 0) {
|
|
37569
37568
|
const argumentFactory = diagnosticLocation.getArgumentFactory(this.analyzer);
|
|
37570
37569
|
this.diagnostics.addDiagnostic(this.analyzer.createDiagnostic(
|
|
37571
|
-
2200 /*
|
|
37570
|
+
2200 /* ImplementationVariableMustBeMutableToMatchInterfacePackageVariable0 */,
|
|
37572
37571
|
diagnosticLocation,
|
|
37573
37572
|
[argumentFactory.createDisplayableEntity(entity)]
|
|
37574
37573
|
));
|
|
@@ -37836,7 +37835,7 @@ var ResolvedImplementationPackage = class _ResolvedImplementationPackage {
|
|
|
37836
37835
|
if (diagnosticLocation !== void 0) {
|
|
37837
37836
|
const argumentFactory = diagnosticLocation.getArgumentFactory(this.analyzer);
|
|
37838
37837
|
this.diagnostics.addDiagnostic(this.analyzer.createDiagnostic(
|
|
37839
|
-
2200 /*
|
|
37838
|
+
2200 /* ImplementationVariableMustBeMutableToMatchInterfacePackageVariable0 */,
|
|
37840
37839
|
diagnosticLocation,
|
|
37841
37840
|
[argumentFactory.createDisplayableEntity(entity)]
|
|
37842
37841
|
));
|
|
@@ -38617,7 +38616,7 @@ var ImplicitImplementationUtils = class {
|
|
|
38617
38616
|
const isAbstractMemberWriteable = isComputedVariableEntity(abstractMemberEntity) ? abstractMemberSetter !== void 0 : !abstractMemberEntity.isConstant();
|
|
38618
38617
|
if (isAbstractMemberWriteable && !isMatchingMemberWriteable) {
|
|
38619
38618
|
diagnosticsData.push(DiagnosticData.withCode(
|
|
38620
|
-
2164 /*
|
|
38619
|
+
2164 /* TypeDoesNotImplementMember0ImplicitImplementation1IsNotMutable */,
|
|
38621
38620
|
[
|
|
38622
38621
|
this.diagnosticArgumentFactory.createDisplayableTypeMember(abstractMember),
|
|
38623
38622
|
this.diagnosticArgumentFactory.createDisplayableTypeMember(matchingMember)
|
|
@@ -38642,7 +38641,7 @@ var ImplicitImplementationUtils = class {
|
|
|
38642
38641
|
const abstractMemberSetter = abstractMember.getEntity().getSetter();
|
|
38643
38642
|
if (abstractMemberSetter !== void 0 && matchingMemberSetter === void 0) {
|
|
38644
38643
|
diagnosticsData.push(DiagnosticData.withCode(
|
|
38645
|
-
2164 /*
|
|
38644
|
+
2164 /* TypeDoesNotImplementMember0ImplicitImplementation1IsNotMutable */,
|
|
38646
38645
|
[
|
|
38647
38646
|
this.diagnosticArgumentFactory.createDisplayableTypeMember(abstractMember),
|
|
38648
38647
|
this.diagnosticArgumentFactory.createDisplayableTypeMember(matchingMember)
|
|
@@ -38667,7 +38666,7 @@ var ImplicitImplementationUtils = class {
|
|
|
38667
38666
|
const abstractMemberSetter = abstractMember.getEntity().getSetter();
|
|
38668
38667
|
if (abstractMemberSetter !== void 0 && matchingMemberSetter === void 0) {
|
|
38669
38668
|
diagnosticsData.push(DiagnosticData.withCode(
|
|
38670
|
-
2164 /*
|
|
38669
|
+
2164 /* TypeDoesNotImplementMember0ImplicitImplementation1IsNotMutable */,
|
|
38671
38670
|
[
|
|
38672
38671
|
this.diagnosticArgumentFactory.createDisplayableTypeMember(abstractMember),
|
|
38673
38672
|
this.diagnosticArgumentFactory.createDisplayableTypeMember(matchingMember)
|
|
@@ -47350,8 +47349,8 @@ var TypeAssignabilityCheck = class {
|
|
|
47350
47349
|
/**
|
|
47351
47350
|
* @example
|
|
47352
47351
|
* ```artel
|
|
47353
|
-
*
|
|
47354
|
-
*
|
|
47352
|
+
* перем а = операция(п: Текст): Объект { }
|
|
47353
|
+
* перем б = операция(п: Объект): Текст { }
|
|
47355
47354
|
*
|
|
47356
47355
|
* а = б // Корректно
|
|
47357
47356
|
* б = а // Ошибка
|
|
@@ -48567,8 +48566,8 @@ function modifierToModifierFlag(modifier) {
|
|
|
48567
48566
|
return 256 /* Override */;
|
|
48568
48567
|
case 41 /* Async */:
|
|
48569
48568
|
return 512 /* Async */;
|
|
48570
|
-
case 37 /*
|
|
48571
|
-
return 1024 /*
|
|
48569
|
+
case 37 /* Var */:
|
|
48570
|
+
return 1024 /* Var */;
|
|
48572
48571
|
default:
|
|
48573
48572
|
Debug.never(modifier.value.keywordKind);
|
|
48574
48573
|
}
|
|
@@ -48585,7 +48584,7 @@ var ModifierValidator = class _ModifierValidator {
|
|
|
48585
48584
|
this.allowedPackageMemberHidingModifiers = 17 /* HiddenInPackageOrWithoutLevel */ | 8 /* HiddenInFile */;
|
|
48586
48585
|
}
|
|
48587
48586
|
static {
|
|
48588
|
-
this.allowedPackageMemberModifiers = this.allowedPackageMemberHidingModifiers | 64 /* Abstract */ | 128 /* Basic */ | 512 /* Async */ | 1024 /*
|
|
48587
|
+
this.allowedPackageMemberModifiers = this.allowedPackageMemberHidingModifiers | 64 /* Abstract */ | 128 /* Basic */ | 512 /* Async */ | 1024 /* Var */;
|
|
48589
48588
|
}
|
|
48590
48589
|
static {
|
|
48591
48590
|
this.allowedModifiersByPackageMemberDeclarationKind = {
|
|
@@ -48601,7 +48600,7 @@ var ModifierValidator = class _ModifierValidator {
|
|
|
48601
48600
|
[9 /* ObjectTypeDeclaration */]: this.allowedPackageMemberHidingModifiers | 128 /* Basic */ | 64 /* Abstract */,
|
|
48602
48601
|
[10 /* PlainObjectTypeDeclaration */]: this.allowedPackageMemberHidingModifiers,
|
|
48603
48602
|
[11 /* AspectTypeDeclaration */]: this.allowedPackageMemberHidingModifiers,
|
|
48604
|
-
[12 /* VariableDeclaration */]: this.allowedPackageMemberHidingModifiers | 1024 /*
|
|
48603
|
+
[12 /* VariableDeclaration */]: this.allowedPackageMemberHidingModifiers | 1024 /* Var */,
|
|
48605
48604
|
[13 /* VariableGetterDeclaration */]: this.allowedPackageMemberHidingModifiers,
|
|
48606
48605
|
[14 /* VariableSetterDeclaration */]: this.allowedPackageMemberHidingModifiers,
|
|
48607
48606
|
[15 /* VariantTypeDeclaration */]: this.allowedPackageMemberHidingModifiers,
|
|
@@ -48612,7 +48611,7 @@ var ModifierValidator = class _ModifierValidator {
|
|
|
48612
48611
|
this.allowedTypeMemberHidingModifiers = 16 /* HiddenInPackage */ | 8 /* HiddenInFile */ | 4 /* HiddenInHierarchy */ | 3 /* HiddenInTypeOrWithoutLevel */;
|
|
48613
48612
|
}
|
|
48614
48613
|
static {
|
|
48615
|
-
this.allowedTypeMemberModifiers = this.allowedTypeMemberHidingModifiers | 32 /* Static */ | 64 /* Abstract */ | 128 /* Basic */ | 256 /* Override */ | 512 /* Async */ | 1024 /*
|
|
48614
|
+
this.allowedTypeMemberModifiers = this.allowedTypeMemberHidingModifiers | 32 /* Static */ | 64 /* Abstract */ | 128 /* Basic */ | 256 /* Override */ | 512 /* Async */ | 1024 /* Var */;
|
|
48616
48615
|
}
|
|
48617
48616
|
static {
|
|
48618
48617
|
this.allowedModifiersByTypeMemberDeclarationKind = {
|
|
@@ -48625,7 +48624,7 @@ var ModifierValidator = class _ModifierValidator {
|
|
|
48625
48624
|
[51 /* DereferencedVariableSetterDeclaration */]: this.allowedTypeMemberHidingModifiers | 32 /* Static */ | 64 /* Abstract */ | 128 /* Basic */ | 256 /* Override */,
|
|
48626
48625
|
[52 /* MethodDeclaration */]: this.allowedTypeMemberHidingModifiers | 32 /* Static */ | 64 /* Abstract */ | 128 /* Basic */ | 256 /* Override */ | 512 /* Async */,
|
|
48627
48626
|
[53 /* OperatorDeclaration */]: this.allowedTypeMemberHidingModifiers | 128 /* Basic */ | 64 /* Abstract */ | 256 /* Override */,
|
|
48628
|
-
[54 /* FieldDeclaration */]: this.allowedTypeMemberHidingModifiers | 32 /* Static */ | 64 /* Abstract */ | 128 /* Basic */ | 256 /* Override */ | 1024 /*
|
|
48627
|
+
[54 /* FieldDeclaration */]: this.allowedTypeMemberHidingModifiers | 32 /* Static */ | 64 /* Abstract */ | 128 /* Basic */ | 256 /* Override */ | 1024 /* Var */,
|
|
48629
48628
|
[55 /* FieldGetterDeclaration */]: this.allowedTypeMemberHidingModifiers | 32 /* Static */ | 64 /* Abstract */ | 128 /* Basic */ | 256 /* Override */,
|
|
48630
48629
|
[56 /* FieldSetterDeclaration */]: this.allowedTypeMemberHidingModifiers | 32 /* Static */ | 64 /* Abstract */ | 128 /* Basic */ | 256 /* Override */,
|
|
48631
48630
|
[57 /* MissingTypeMemberDeclaration */]: this.allowedTypeMemberModifiers,
|
|
@@ -48966,8 +48965,8 @@ var ModifierValidator = class _ModifierValidator {
|
|
|
48966
48965
|
flags |= flag;
|
|
48967
48966
|
break;
|
|
48968
48967
|
}
|
|
48969
|
-
case 37 /*
|
|
48970
|
-
const flag = 1024 /*
|
|
48968
|
+
case 37 /* Var */: {
|
|
48969
|
+
const flag = 1024 /* Var */;
|
|
48971
48970
|
if ((flags & flag) !== 0) {
|
|
48972
48971
|
this.reportDuplicateModifier(modifier, flag, parentGroupFlags);
|
|
48973
48972
|
} else if (declarationKind === 3 /* MemberGroupDeclaration */ && (flags & 512 /* Async */) !== 0) {
|
|
@@ -48985,10 +48984,10 @@ var ModifierValidator = class _ModifierValidator {
|
|
|
48985
48984
|
const flag = 512 /* Async */;
|
|
48986
48985
|
if ((flags & flag) !== 0) {
|
|
48987
48986
|
this.reportDuplicateModifier(modifier, flag, parentGroupFlags);
|
|
48988
|
-
} else if (declarationKind === 3 /* MemberGroupDeclaration */ && (flags & 1024 /*
|
|
48987
|
+
} else if (declarationKind === 3 /* MemberGroupDeclaration */ && (flags & 1024 /* Var */) !== 0) {
|
|
48989
48988
|
this.reportModifierCannotBeUsedWithAnotherModifier(
|
|
48990
48989
|
modifier,
|
|
48991
|
-
this.findModifier(1024 /*
|
|
48990
|
+
this.findModifier(1024 /* Var */)
|
|
48992
48991
|
);
|
|
48993
48992
|
} else if (!(declarationKind === 3 /* MemberGroupDeclaration */ || declarationKind === 7 /* FunctionDeclaration */ || declarationKind === 16 /* InvalidDeclaration */)) {
|
|
48994
48993
|
this.reportModifierIsNotAllowedHere(modifier);
|
|
@@ -49307,8 +49306,8 @@ var ModifierValidator = class _ModifierValidator {
|
|
|
49307
49306
|
flags |= flag;
|
|
49308
49307
|
break;
|
|
49309
49308
|
}
|
|
49310
|
-
case 37 /*
|
|
49311
|
-
const flag = 1024 /*
|
|
49309
|
+
case 37 /* Var */: {
|
|
49310
|
+
const flag = 1024 /* Var */;
|
|
49312
49311
|
if ((flags & flag) !== 0) {
|
|
49313
49312
|
this.reportDuplicateModifier(modifier, flag, parentGroupFlags);
|
|
49314
49313
|
} else if (typeMemberDeclarationKind === 44 /* TypeMemberGroupDeclaration */ && (flags & 512 /* Async */) !== 0) {
|
|
@@ -49326,10 +49325,10 @@ var ModifierValidator = class _ModifierValidator {
|
|
|
49326
49325
|
const flag = 512 /* Async */;
|
|
49327
49326
|
if ((flags & flag) !== 0) {
|
|
49328
49327
|
this.reportDuplicateModifier(modifier, flag, parentGroupFlags);
|
|
49329
|
-
} else if (typeMemberDeclarationKind === 44 /* TypeMemberGroupDeclaration */ && (flags & 1024 /*
|
|
49328
|
+
} else if (typeMemberDeclarationKind === 44 /* TypeMemberGroupDeclaration */ && (flags & 1024 /* Var */) !== 0) {
|
|
49330
49329
|
this.reportModifierCannotBeUsedWithAnotherModifier(
|
|
49331
49330
|
modifier,
|
|
49332
|
-
this.findModifier(1024 /*
|
|
49331
|
+
this.findModifier(1024 /* Var */)
|
|
49333
49332
|
);
|
|
49334
49333
|
} else if (!(typeMemberDeclarationKind === 44 /* TypeMemberGroupDeclaration */ || typeMemberDeclarationKind === 52 /* MethodDeclaration */ || typeMemberDeclarationKind === 57 /* MissingTypeMemberDeclaration */)) {
|
|
49335
49334
|
this.reportModifierIsNotAllowedHere(modifier);
|
|
@@ -49435,7 +49434,7 @@ var ModifierValidator = class _ModifierValidator {
|
|
|
49435
49434
|
return result;
|
|
49436
49435
|
}
|
|
49437
49436
|
forEachModifierFlag(flags, cb) {
|
|
49438
|
-
for (let flag = 1 /* First */; flag <=
|
|
49437
|
+
for (let flag = 1 /* First */; flag <= 2048 /* Last */; flag <<= 1) {
|
|
49439
49438
|
if ((flags & flag) !== 0) {
|
|
49440
49439
|
cb(flag);
|
|
49441
49440
|
}
|
|
@@ -50071,7 +50070,7 @@ var SourceFileAnalyzer = class {
|
|
|
50071
50070
|
entity.ensureAllDiagnosticsReported?.();
|
|
50072
50071
|
if (entity.isConstant() && node.initializer === void 0) {
|
|
50073
50072
|
this.addDiagnostic(this.analyzer.createDiagnostic(
|
|
50074
|
-
2180 /*
|
|
50073
|
+
2180 /* ImmutableVariablesBustBeInitialized */,
|
|
50075
50074
|
node.name
|
|
50076
50075
|
));
|
|
50077
50076
|
} else if (node.typeAnnotation === void 0 && node.initializer === void 0) {
|
|
@@ -50350,7 +50349,7 @@ var SourceFileAnalyzer = class {
|
|
|
50350
50349
|
const diagnosticLocation = this.analyzer.getEntityDiagnosticLocation(specialVariableInfo.computedVariable);
|
|
50351
50350
|
if (diagnosticLocation !== void 0) {
|
|
50352
50351
|
this.addDiagnostic(this.analyzer.createDiagnostic(
|
|
50353
|
-
2220 /*
|
|
50352
|
+
2220 /* PlainObjectFieldsMustBeImmutableAutomaticallyCreatedStoredFieldIsMutable */,
|
|
50354
50353
|
diagnosticLocation
|
|
50355
50354
|
));
|
|
50356
50355
|
addedDiagnostic = true;
|
|
@@ -50360,7 +50359,7 @@ var SourceFileAnalyzer = class {
|
|
|
50360
50359
|
const diagnosticLocation = this.analyzer.getEntityDiagnosticLocation(member);
|
|
50361
50360
|
if (diagnosticLocation !== void 0) {
|
|
50362
50361
|
this.addDiagnostic(this.analyzer.createDiagnostic(
|
|
50363
|
-
2219 /*
|
|
50362
|
+
2219 /* PlainObjectFieldsMustBeImmutable */,
|
|
50364
50363
|
diagnosticLocation
|
|
50365
50364
|
));
|
|
50366
50365
|
addedDiagnostic = true;
|
|
@@ -51594,7 +51593,25 @@ var SourceFileAnalyzer = class {
|
|
|
51594
51593
|
}
|
|
51595
51594
|
checkAssignmentToPackageVariable(entity, assignmentNode, diagnosticLocation) {
|
|
51596
51595
|
let result = true;
|
|
51597
|
-
if (entity
|
|
51596
|
+
if (isComputedVariableEntity(entity)) {
|
|
51597
|
+
const setter = entity.getSetter();
|
|
51598
|
+
if (setter === void 0) {
|
|
51599
|
+
this.addDiagnostic(this.analyzer.createDiagnostic(
|
|
51600
|
+
2037 /* CannotAssignValueToExpression */,
|
|
51601
|
+
diagnosticLocation
|
|
51602
|
+
));
|
|
51603
|
+
result = false;
|
|
51604
|
+
} else {
|
|
51605
|
+
const lookupContext = this.analyzer.semanticContext.containing(assignmentNode).getPackageMemberLookupContext();
|
|
51606
|
+
if (!AccessibilityCheck.isPackageMemberAccessible(setter, lookupContext)) {
|
|
51607
|
+
this.addDiagnostic(this.analyzer.createDiagnostic(
|
|
51608
|
+
2037 /* CannotAssignValueToExpression */,
|
|
51609
|
+
diagnosticLocation
|
|
51610
|
+
));
|
|
51611
|
+
result = false;
|
|
51612
|
+
}
|
|
51613
|
+
}
|
|
51614
|
+
} else if (entity.isConstant()) {
|
|
51598
51615
|
const semanticContext = this.analyzer.semanticContext.containing(assignmentNode);
|
|
51599
51616
|
const containingSubprogram = semanticContext.getContainingSubprogram();
|
|
51600
51617
|
const isAssignedInConstructorOfContainingPackage = containingSubprogram?.kind === "package-constructor" && containingSubprogram.getPackageEntity() === entity.getContainingPackage();
|
|
@@ -51605,7 +51622,12 @@ var SourceFileAnalyzer = class {
|
|
|
51605
51622
|
));
|
|
51606
51623
|
result = false;
|
|
51607
51624
|
}
|
|
51608
|
-
}
|
|
51625
|
+
}
|
|
51626
|
+
return result;
|
|
51627
|
+
}
|
|
51628
|
+
checkAssignmentToField(entity, assignmentNode, diagnosticLocation, ifMemberAccessThenNode) {
|
|
51629
|
+
let result = true;
|
|
51630
|
+
if (isComputedVariableEntity(entity)) {
|
|
51609
51631
|
const setter = entity.getSetter();
|
|
51610
51632
|
if (setter === void 0) {
|
|
51611
51633
|
this.addDiagnostic(this.analyzer.createDiagnostic(
|
|
@@ -51614,8 +51636,14 @@ var SourceFileAnalyzer = class {
|
|
|
51614
51636
|
));
|
|
51615
51637
|
result = false;
|
|
51616
51638
|
} else {
|
|
51617
|
-
const lookupContext = this.analyzer.semanticContext.containing(assignmentNode).
|
|
51618
|
-
|
|
51639
|
+
const lookupContext = this.analyzer.semanticContext.containing(assignmentNode).getTypeMemberLookupContext();
|
|
51640
|
+
let receiverType = void 0;
|
|
51641
|
+
let ignoreReceiverType = true;
|
|
51642
|
+
if (ifMemberAccessThenNode !== void 0) {
|
|
51643
|
+
receiverType = this.analyzer.type.ofExpression(ifMemberAccessThenNode.expression);
|
|
51644
|
+
ignoreReceiverType = this.analyzer.isPossiblyCastedBaseExpression(ifMemberAccessThenNode.expression);
|
|
51645
|
+
}
|
|
51646
|
+
if (!AccessibilityCheck.isTypeMemberAccessible(setter, lookupContext, receiverType, ignoreReceiverType)) {
|
|
51619
51647
|
this.addDiagnostic(this.analyzer.createDiagnostic(
|
|
51620
51648
|
2037 /* CannotAssignValueToExpression */,
|
|
51621
51649
|
diagnosticLocation
|
|
@@ -51623,12 +51651,7 @@ var SourceFileAnalyzer = class {
|
|
|
51623
51651
|
result = false;
|
|
51624
51652
|
}
|
|
51625
51653
|
}
|
|
51626
|
-
}
|
|
51627
|
-
return result;
|
|
51628
|
-
}
|
|
51629
|
-
checkAssignmentToField(entity, assignmentNode, diagnosticLocation, ifMemberAccessThenNode) {
|
|
51630
|
-
let result = true;
|
|
51631
|
-
if (entity.isConstant()) {
|
|
51654
|
+
} else if (entity.isConstant()) {
|
|
51632
51655
|
const semanticContext = this.analyzer.semanticContext.containing(assignmentNode);
|
|
51633
51656
|
const containingSubprogram = semanticContext.getContainingSubprogram();
|
|
51634
51657
|
if (entity.isStatic()) {
|
|
@@ -51659,30 +51682,6 @@ var SourceFileAnalyzer = class {
|
|
|
51659
51682
|
}
|
|
51660
51683
|
}
|
|
51661
51684
|
}
|
|
51662
|
-
} else if (isComputedVariableEntity(entity)) {
|
|
51663
|
-
const setter = entity.getSetter();
|
|
51664
|
-
if (setter === void 0) {
|
|
51665
|
-
this.addDiagnostic(this.analyzer.createDiagnostic(
|
|
51666
|
-
2037 /* CannotAssignValueToExpression */,
|
|
51667
|
-
diagnosticLocation
|
|
51668
|
-
));
|
|
51669
|
-
result = false;
|
|
51670
|
-
} else {
|
|
51671
|
-
const lookupContext = this.analyzer.semanticContext.containing(assignmentNode).getTypeMemberLookupContext();
|
|
51672
|
-
let receiverType = void 0;
|
|
51673
|
-
let ignoreReceiverType = true;
|
|
51674
|
-
if (ifMemberAccessThenNode !== void 0) {
|
|
51675
|
-
receiverType = this.analyzer.type.ofExpression(ifMemberAccessThenNode.expression);
|
|
51676
|
-
ignoreReceiverType = this.analyzer.isPossiblyCastedBaseExpression(ifMemberAccessThenNode.expression);
|
|
51677
|
-
}
|
|
51678
|
-
if (!AccessibilityCheck.isTypeMemberAccessible(setter, lookupContext, receiverType, ignoreReceiverType)) {
|
|
51679
|
-
this.addDiagnostic(this.analyzer.createDiagnostic(
|
|
51680
|
-
2037 /* CannotAssignValueToExpression */,
|
|
51681
|
-
diagnosticLocation
|
|
51682
|
-
));
|
|
51683
|
-
result = false;
|
|
51684
|
-
}
|
|
51685
|
-
}
|
|
51686
51685
|
}
|
|
51687
51686
|
return result;
|
|
51688
51687
|
}
|
|
@@ -52030,7 +52029,7 @@ var SourceFileAnalyzer = class {
|
|
|
52030
52029
|
const overridingFieldIsNotConstOrHasSetter = isComputedVariableEntity(entity) ? entity.getSetter() !== void 0 : !entity.isConstant();
|
|
52031
52030
|
if (overriddenFieldIsNotConstOrHasSetter && !overridingFieldIsNotConstOrHasSetter) {
|
|
52032
52031
|
this.addDiagnostic(this.analyzer.createDiagnostic(
|
|
52033
|
-
2158 /*
|
|
52032
|
+
2158 /* OverridingFieldMustMustBeMutableToMatchBaseField0 */,
|
|
52034
52033
|
diagnosticLocation,
|
|
52035
52034
|
[this.diagnosticArgumentFactory.createDisplayableTypeMember(overriddenMember)]
|
|
52036
52035
|
));
|
|
@@ -55547,7 +55546,7 @@ var PackageVariableDeclarationEntity = class {
|
|
|
55547
55546
|
return void 0;
|
|
55548
55547
|
}
|
|
55549
55548
|
isConstant() {
|
|
55550
|
-
return (this.modifierFlags & 1024 /*
|
|
55549
|
+
return (this.modifierFlags & 1024 /* Var */) === 0;
|
|
55551
55550
|
}
|
|
55552
55551
|
isHidden() {
|
|
55553
55552
|
return this.hiding.getOrInsertWith(() => this.analyzer.createPackageMemberHiding(this.node, this.modifierFlags));
|
|
@@ -55629,7 +55628,7 @@ var ComputedPackageVariableDeclarationEntity = class {
|
|
|
55629
55628
|
return getterEntity !== void 0 ? getterEntity.isHidden() : this.getSetter()?.isHidden();
|
|
55630
55629
|
}
|
|
55631
55630
|
isConstant() {
|
|
55632
|
-
return
|
|
55631
|
+
return false;
|
|
55633
55632
|
}
|
|
55634
55633
|
getDefinition() {
|
|
55635
55634
|
const nodes = [];
|
|
@@ -55729,7 +55728,7 @@ var FieldDeclarationEntity = class {
|
|
|
55729
55728
|
return void 0;
|
|
55730
55729
|
}
|
|
55731
55730
|
isConstant() {
|
|
55732
|
-
return (this.modifierFlags & 1024 /*
|
|
55731
|
+
return (this.modifierFlags & 1024 /* Var */) === 0;
|
|
55733
55732
|
}
|
|
55734
55733
|
isHidden() {
|
|
55735
55734
|
return this.hiding.getOrInsertWith(() => this.analyzer.createTypeMemberHiding(this.node, this.modifierFlags));
|
|
@@ -55859,7 +55858,7 @@ var ComputedFieldDeclarationEntity = class {
|
|
|
55859
55858
|
return getterEntity !== void 0 ? getterEntity.isHidden() : this.getSetter()?.isHidden();
|
|
55860
55859
|
}
|
|
55861
55860
|
isConstant() {
|
|
55862
|
-
return
|
|
55861
|
+
return false;
|
|
55863
55862
|
}
|
|
55864
55863
|
isStatic() {
|
|
55865
55864
|
return (this.modifierFlags & 32 /* Static */) !== 0;
|
|
@@ -56090,7 +56089,7 @@ var LocalVariableDeclarationEntity = class {
|
|
|
56090
56089
|
return void 0;
|
|
56091
56090
|
}
|
|
56092
56091
|
isConstant() {
|
|
56093
|
-
return this.node.
|
|
56092
|
+
return this.node.letOrVarKeyword.keywordKind === 1 /* Let */;
|
|
56094
56093
|
}
|
|
56095
56094
|
isHidden() {
|
|
56096
56095
|
return void 0;
|
|
@@ -56167,7 +56166,7 @@ var ForStatementElementVariableDeclarationEntity = class {
|
|
|
56167
56166
|
return void 0;
|
|
56168
56167
|
}
|
|
56169
56168
|
isConstant() {
|
|
56170
|
-
return
|
|
56169
|
+
return true;
|
|
56171
56170
|
}
|
|
56172
56171
|
isHidden() {
|
|
56173
56172
|
return void 0;
|
|
@@ -56238,7 +56237,7 @@ var ForStatementIndexVariableDeclarationEntity = class {
|
|
|
56238
56237
|
return void 0;
|
|
56239
56238
|
}
|
|
56240
56239
|
isConstant() {
|
|
56241
|
-
return
|
|
56240
|
+
return true;
|
|
56242
56241
|
}
|
|
56243
56242
|
isHidden() {
|
|
56244
56243
|
return void 0;
|
|
@@ -56296,7 +56295,7 @@ var ErrorVariableDeclarationEntity = class {
|
|
|
56296
56295
|
return void 0;
|
|
56297
56296
|
}
|
|
56298
56297
|
isConstant() {
|
|
56299
|
-
return
|
|
56298
|
+
return true;
|
|
56300
56299
|
}
|
|
56301
56300
|
isHidden() {
|
|
56302
56301
|
return void 0;
|
|
@@ -56363,7 +56362,7 @@ var ParameterDeclarationEntity = class {
|
|
|
56363
56362
|
return void 0;
|
|
56364
56363
|
}
|
|
56365
56364
|
isConstant() {
|
|
56366
|
-
return
|
|
56365
|
+
return true;
|
|
56367
56366
|
}
|
|
56368
56367
|
isHidden() {
|
|
56369
56368
|
return void 0;
|
|
@@ -56489,7 +56488,7 @@ var IndexParameterDeclarationEntity = class {
|
|
|
56489
56488
|
return void 0;
|
|
56490
56489
|
}
|
|
56491
56490
|
isConstant() {
|
|
56492
|
-
return
|
|
56491
|
+
return true;
|
|
56493
56492
|
}
|
|
56494
56493
|
isHidden() {
|
|
56495
56494
|
return void 0;
|
|
@@ -56583,7 +56582,7 @@ var FunctionLiteralParameterDeclarationEntity = class {
|
|
|
56583
56582
|
return void 0;
|
|
56584
56583
|
}
|
|
56585
56584
|
isConstant() {
|
|
56586
|
-
return
|
|
56585
|
+
return true;
|
|
56587
56586
|
}
|
|
56588
56587
|
isHidden() {
|
|
56589
56588
|
return void 0;
|
|
@@ -56662,7 +56661,7 @@ var TranslationTextTemplateParameterEntity = class {
|
|
|
56662
56661
|
return void 0;
|
|
56663
56662
|
}
|
|
56664
56663
|
isConstant() {
|
|
56665
|
-
return
|
|
56664
|
+
return true;
|
|
56666
56665
|
}
|
|
56667
56666
|
isHidden() {
|
|
56668
56667
|
return void 0;
|
|
@@ -68720,7 +68719,7 @@ var ProxiedVariableAccessLowering = class extends ExecutableCodeLowering {
|
|
|
68720
68719
|
}
|
|
68721
68720
|
// об.поле = значение
|
|
68722
68721
|
//
|
|
68723
|
-
//
|
|
68722
|
+
// перем обВрем
|
|
68724
68723
|
// обВрем = об, обВрем.прокси_поле.записать(значение, обВрем, "поле", new ПутьКСинтаксическомуУзлу("..."))
|
|
68725
68724
|
lowerProxiedFieldAssignment(node, proxyVariable) {
|
|
68726
68725
|
Debug.assert(node.left.kind === 70 /* FieldAccessExpression */);
|
|
@@ -68750,7 +68749,7 @@ var ProxiedVariableAccessLowering = class extends ExecutableCodeLowering {
|
|
|
68750
68749
|
}
|
|
68751
68750
|
// об.поле
|
|
68752
68751
|
//
|
|
68753
|
-
//
|
|
68752
|
+
// перем обВрем
|
|
68754
68753
|
// обВрем = об, обВрем.прокси_поле.прочитать(обВрем, "поле", new ПутьКСинтаксическомуУзлу("..."))
|
|
68755
68754
|
lowerProxiedFieldRead(node, proxyVariable) {
|
|
68756
68755
|
const tempVariables = new Array();
|
|
@@ -708,8 +708,8 @@ declare class TypeAssignabilityCheck {
|
|
|
708
708
|
/**
|
|
709
709
|
* @example
|
|
710
710
|
* ```artel
|
|
711
|
-
*
|
|
712
|
-
*
|
|
711
|
+
* перем а = операция(п: Текст): Объект { }
|
|
712
|
+
* перем б = операция(п: Объект): Текст { }
|
|
713
713
|
*
|
|
714
714
|
* а = б // Корректно
|
|
715
715
|
* б = а // Ошибка
|
|
@@ -10,9 +10,10 @@ export declare enum ModifierFlags {
|
|
|
10
10
|
Basic = 128,
|
|
11
11
|
Override = 256,
|
|
12
12
|
Async = 512,
|
|
13
|
-
|
|
13
|
+
Var = 1024,
|
|
14
|
+
Const = 2048,
|
|
14
15
|
First = 1,
|
|
15
|
-
Last =
|
|
16
|
+
Last = 2048,
|
|
16
17
|
NotComputed = 2048,
|
|
17
18
|
AnyHiddenModifier = 31,
|
|
18
19
|
HiddenInPackageOrWithoutLevel = 17,
|
|
@@ -194,13 +194,13 @@ export declare enum DiagnosticCode {
|
|
|
194
194
|
OverridingMemberMustHaveTheSameHidingLevelAsBaseMember0 = 2155,
|
|
195
195
|
OverridingMethodMustBeAsyncBecauseBaseMethod0IsAsync = 2156,
|
|
196
196
|
OverridingMethodMustNotBeAsyncBecauseBaseMethod0IsNotAsync = 2157,
|
|
197
|
-
|
|
197
|
+
OverridingFieldMustMustBeMutableToMatchBaseField0 = 2158,
|
|
198
198
|
OverridingMemberMustHaveWriteFunctionToMatchBaseMember0 = 2159,
|
|
199
199
|
TypeDoesNotImplementMember0 = 2160,
|
|
200
200
|
TypeDoesNotImplementMember0ImplicitImplementationTypeMismatch1 = 2161,
|
|
201
201
|
TypeDoesNotImplementMember0ImplicitImplementation1IsAsync = 2162,
|
|
202
202
|
TypeDoesNotImplementMember0ImplicitImplementation1IsNotAsync = 2163,
|
|
203
|
-
|
|
203
|
+
TypeDoesNotImplementMember0ImplicitImplementation1IsNotMutable = 2164,
|
|
204
204
|
TypeDoesNotImplementMember0ImplicitImplementation1WriteFunctionIsHidden = 2165,
|
|
205
205
|
CannotAccessAbstractMemberOfBaseType = 2166,
|
|
206
206
|
TheFollowingBaseTypeMembersConflictAndMustBeOverridden0 = 2167,
|
|
@@ -216,7 +216,7 @@ export declare enum DiagnosticCode {
|
|
|
216
216
|
ForExpressionToBeUsedInForLoopMethod0MustReturnEnumeratorType = 2177,
|
|
217
217
|
CannotInferTypeArguments = 2178,
|
|
218
218
|
CanNotInferReturnTypeAddExplicitReturnTypeSpecifier = 2179,
|
|
219
|
-
|
|
219
|
+
ImmutableVariablesBustBeInitialized = 2180,
|
|
220
220
|
VariableTypeIsNotSpecified = 2181,
|
|
221
221
|
CannotInferTypeOfFunctionLiteralAddTypeSpecifierForParameter = 2182,
|
|
222
222
|
TypeParameterDefaultCanReferenceOnlyPreviouslyDeclaredTypeParameters = 2183,
|
|
@@ -236,7 +236,7 @@ export declare enum DiagnosticCode {
|
|
|
236
236
|
TextTranslationAlreadyExistsInTheTextTranslationPackage = 2197,
|
|
237
237
|
PackageDoesNotContainImplementationOf0 = 2198,
|
|
238
238
|
TypeDoesNotContainImplementationOf0 = 2199,
|
|
239
|
-
|
|
239
|
+
ImplementationVariableMustBeMutableToMatchInterfacePackageVariable0 = 2200,
|
|
240
240
|
ImplementationFunctionMustBeAsyncToMatchInterfacePackageFunction0 = 2201,
|
|
241
241
|
ImplementationFunctionMustNotBeAsyncToMatchInterfacePackageFunction0 = 2202,
|
|
242
242
|
ImplementationTypeMustBeBasicToMatchInterfacePackageType0 = 2203,
|
|
@@ -251,12 +251,12 @@ export declare enum DiagnosticCode {
|
|
|
251
251
|
OnlyTypesPresentInBaseTypeListOrReductionSourceCanBeSpecified = 2212,
|
|
252
252
|
ReducedTypeMemberMustHaveTheSameTypeAsReductionSourceMember = 2213,
|
|
253
253
|
ReducedTypeMemberMustHaveTheSameHidingLevelAsReductionSourceMember = 2214,
|
|
254
|
-
|
|
254
|
+
ReducedTypeFieldMustBeImmutableToMatchReductionSourceField = 2215,
|
|
255
255
|
ReducedTypeMethodMustBeAsyncToMatchReductionSourceMethod = 2216,
|
|
256
256
|
ReducedTypeMethodMustNotBeAsyncToMatchReductionSourceMethod = 2217,
|
|
257
257
|
ReducedTypeMemberMustHaveNoWriteFunctionToMatchReductionSourceMember = 2218,
|
|
258
|
-
|
|
259
|
-
|
|
258
|
+
PlainObjectFieldsMustBeImmutable = 2219,
|
|
259
|
+
PlainObjectFieldsMustBeImmutableAutomaticallyCreatedStoredFieldIsMutable = 2220,
|
|
260
260
|
FieldTypeCausesRecursivePlainObjectLayout = 2221,
|
|
261
261
|
QuestionOperatorCanBeUsedOnlyInSpecificExpressions = 2222,
|
|
262
262
|
CannotFindTsLibDirectoryBaseSearchPaths0 = 3000,
|
|
@@ -922,20 +922,20 @@ export declare class NestedFunctionDeclaration extends BaseNode {
|
|
|
922
922
|
export declare class LocalVariableDeclaration extends BaseNode {
|
|
923
923
|
readonly kind = NodeKind.LocalVariableDeclaration;
|
|
924
924
|
readonly children: readonly [
|
|
925
|
-
Keyword<KeywordKind.Let> | Keyword<KeywordKind.
|
|
925
|
+
Keyword<KeywordKind.Let> | Keyword<KeywordKind.Var>,
|
|
926
926
|
Identifier,
|
|
927
927
|
TypeAnnotation | undefined,
|
|
928
928
|
Token<TokenKind.Equals> | undefined,
|
|
929
929
|
Expression | undefined
|
|
930
930
|
];
|
|
931
931
|
get parent(): LocalVariableDeclarationStatement;
|
|
932
|
-
get
|
|
932
|
+
get letOrVarKeyword(): Keyword<KeywordKind.Let> | Keyword<KeywordKind.Var>;
|
|
933
933
|
get name(): Identifier;
|
|
934
934
|
get typeAnnotation(): TypeAnnotation | undefined;
|
|
935
935
|
get equalsToken(): Token<TokenKind.Equals> | undefined;
|
|
936
936
|
get initializer(): Expression | undefined;
|
|
937
937
|
protected get thisAsNode(): Node;
|
|
938
|
-
constructor(
|
|
938
|
+
constructor(letOrVarKeyword: Keyword<KeywordKind.Let> | Keyword<KeywordKind.Var>, name: Identifier, typeAnnotation: TypeAnnotation | undefined, equalsToken: Token<TokenKind.Equals> | undefined, initializer: Expression | undefined, rangeWithTrivia: Range | undefined);
|
|
939
939
|
}
|
|
940
940
|
export declare class ForStatementVariableDeclaration extends BaseNode {
|
|
941
941
|
readonly kind = NodeKind.ForStatementVariableDeclaration;
|
|
@@ -2247,7 +2247,7 @@ export declare class ModifierList extends BaseNode {
|
|
|
2247
2247
|
constructor(modifiers: readonly Modifier[], rangeWithTrivia: Range | undefined);
|
|
2248
2248
|
}
|
|
2249
2249
|
export type ModifierKeyword = Keyword<ModifierKeywordKind>;
|
|
2250
|
-
export type ModifierKeywordKind = KeywordKind.Hidden | KeywordKind.Basic | KeywordKind.Static | KeywordKind.Abstract | KeywordKind.Override | KeywordKind.Async | KeywordKind.
|
|
2250
|
+
export type ModifierKeywordKind = KeywordKind.Hidden | KeywordKind.Basic | KeywordKind.Static | KeywordKind.Abstract | KeywordKind.Override | KeywordKind.Async | KeywordKind.Var;
|
|
2251
2251
|
export type ModifierLevelKeyword = Keyword<KeywordKind.InType> | Keyword<KeywordKind.InHierarchy> | Keyword<KeywordKind.InFile> | Keyword<KeywordKind.InPackage>;
|
|
2252
2252
|
export declare class Modifier extends BaseNode {
|
|
2253
2253
|
readonly kind = NodeKind.Modifier;
|