@artel/artc 0.6.25225 → 0.6.25226
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 +2 -2
- package/build/{chunk-UB6LHKS5.js → chunk-MHPX52MT.js} +3 -3
- package/build/{chunk-TFTCV5R5.js → chunk-VRQPLLYS.js} +474 -474
- package/build/{chunk-Z6TZA6SN.js → chunk-YNR2KYMJ.js} +3 -3
- package/build/types/diagnostic/DiagnosticCode.d.ts +99 -99
- package/package.json +1 -1
@@ -577,7 +577,7 @@ var UniqueWithComparatorQuery = class extends Query {
|
|
577
577
|
};
|
578
578
|
|
579
579
|
// source/common/Constants.ts
|
580
|
-
var ArtelVersion = true ? "0.6.
|
580
|
+
var ArtelVersion = true ? "0.6.25226" : "";
|
581
581
|
var ArtelSourceFileExtensions = [".\u0430\u0440\u0442", ".\u0430\u0440\u0442\u0435\u043B\u044C", ".art", ".artel"];
|
582
582
|
var ArtelSourceFileExtensionSet = new Set(ArtelSourceFileExtensions);
|
583
583
|
var ArtelSourceAndConfigurationFileExtensionSet = new Set(ArtelSourceFileExtensionSet).add(".json");
|
@@ -12548,11 +12548,11 @@ var AccumulatingDiagnosticAcceptor = class {
|
|
12548
12548
|
|
12549
12549
|
// source/diagnostic/DiagnosticCode.ts
|
12550
12550
|
var DiagnosticCode = /* @__PURE__ */ ((DiagnosticCode2) => {
|
12551
|
-
DiagnosticCode2[DiagnosticCode2["UnterminatedToken"] =
|
12552
|
-
DiagnosticCode2[DiagnosticCode2["UnterminatedMultiLineComment"] =
|
12553
|
-
DiagnosticCode2[DiagnosticCode2["UnterminatedNumber"] =
|
12554
|
-
DiagnosticCode2[DiagnosticCode2["UnterminatedTextOrTextTemplate"] =
|
12555
|
-
DiagnosticCode2[DiagnosticCode2["UnterminatedQuotedIdentifier"] =
|
12551
|
+
DiagnosticCode2[DiagnosticCode2["UnterminatedToken"] = 0] = "UnterminatedToken";
|
12552
|
+
DiagnosticCode2[DiagnosticCode2["UnterminatedMultiLineComment"] = 1] = "UnterminatedMultiLineComment";
|
12553
|
+
DiagnosticCode2[DiagnosticCode2["UnterminatedNumber"] = 2] = "UnterminatedNumber";
|
12554
|
+
DiagnosticCode2[DiagnosticCode2["UnterminatedTextOrTextTemplate"] = 3] = "UnterminatedTextOrTextTemplate";
|
12555
|
+
DiagnosticCode2[DiagnosticCode2["UnterminatedQuotedIdentifier"] = 4] = "UnterminatedQuotedIdentifier";
|
12556
12556
|
DiagnosticCode2[DiagnosticCode2["IdentifierExpected"] = 101] = "IdentifierExpected";
|
12557
12557
|
DiagnosticCode2[DiagnosticCode2["TypeNameExpected"] = 102] = "TypeNameExpected";
|
12558
12558
|
DiagnosticCode2[DiagnosticCode2["PackageNameExpected"] = 103] = "PackageNameExpected";
|
@@ -12584,100 +12584,100 @@ var DiagnosticCode = /* @__PURE__ */ ((DiagnosticCode2) => {
|
|
12584
12584
|
DiagnosticCode2[DiagnosticCode2["TagNameExpected"] = 129] = "TagNameExpected";
|
12585
12585
|
DiagnosticCode2[DiagnosticCode2["TypeMemberTranslationExpected"] = 130] = "TypeMemberTranslationExpected";
|
12586
12586
|
DiagnosticCode2[DiagnosticCode2["TranslationExpected"] = 131] = "TranslationExpected";
|
12587
|
-
DiagnosticCode2[DiagnosticCode2["TypeCannotBeUsedAsValue"] =
|
12588
|
-
DiagnosticCode2[DiagnosticCode2["PackageNameCannotBeUsedAsValue"] =
|
12589
|
-
DiagnosticCode2[DiagnosticCode2["PackageAliasCannotBeUsedAsValue"] =
|
12590
|
-
DiagnosticCode2[DiagnosticCode2["PackageMemberOrPackageNotFound"] =
|
12591
|
-
DiagnosticCode2[DiagnosticCode2["PackageMemberNotFound"] =
|
12592
|
-
DiagnosticCode2[DiagnosticCode2["TypeMemberNotFound"] =
|
12593
|
-
DiagnosticCode2[DiagnosticCode2["ConstructorNotFound"] =
|
12594
|
-
DiagnosticCode2[DiagnosticCode2["IndexerOfTheSpecifiedTypeNotFound"] =
|
12595
|
-
DiagnosticCode2[DiagnosticCode2["DereferenceOperatorOfTheSpecifiedTypeNotFound"] =
|
12596
|
-
DiagnosticCode2[DiagnosticCode2["IndexerNotFound"] =
|
12597
|
-
DiagnosticCode2[DiagnosticCode2["CannotAccessStaticMembersOnTypeParameter"] =
|
12598
|
-
DiagnosticCode2[DiagnosticCode2["CannotCreateInstanceOfAspect"] =
|
12599
|
-
DiagnosticCode2[DiagnosticCode2["CannotCreateInstanceOfTypeParameter"] =
|
12600
|
-
DiagnosticCode2[DiagnosticCode2["CannotCreateInstanceOfUnresolvedType"] =
|
12601
|
-
DiagnosticCode2[DiagnosticCode2["ExpressionIsNotCallable"] =
|
12602
|
-
DiagnosticCode2[DiagnosticCode2["ParameterForPositionalArgumentNotFound"] =
|
12603
|
-
DiagnosticCode2[DiagnosticCode2["ParameterWithGivenNameNotFound"] =
|
12604
|
-
DiagnosticCode2[DiagnosticCode2["NamedArgumentExpectedButPositionalArgumentFound"] =
|
12605
|
-
DiagnosticCode2[DiagnosticCode2["ArgumentForParameterAlreadyAssigned"] =
|
12606
|
-
DiagnosticCode2[DiagnosticCode2["NotAllRequiredParametersAreProvidedWithArguments"] =
|
12607
|
-
DiagnosticCode2[DiagnosticCode2["UnknownVariable"] =
|
12608
|
-
DiagnosticCode2[DiagnosticCode2["UnknownType"] =
|
12609
|
-
DiagnosticCode2[DiagnosticCode2["TypeWithArity0NotFound"] =
|
12610
|
-
DiagnosticCode2[DiagnosticCode2["VariableUsedBeforeBeingDeclared"] =
|
12611
|
-
DiagnosticCode2[DiagnosticCode2["Type0IsNotAssignableToType1"] =
|
12612
|
-
DiagnosticCode2[DiagnosticCode2["VariableNotFound"] =
|
12613
|
-
DiagnosticCode2[DiagnosticCode2["FunctionNotFound"] =
|
12614
|
-
DiagnosticCode2[DiagnosticCode2["UnknownPackage"] =
|
12615
|
-
DiagnosticCode2[DiagnosticCode2["CannotAssignValueToExpression"] =
|
12616
|
-
DiagnosticCode2[DiagnosticCode2["CannotDetermineTargetTypeToCallTheConstructor"] =
|
12617
|
-
DiagnosticCode2[DiagnosticCode2["AmbiguousAccess"] =
|
12618
|
-
DiagnosticCode2[DiagnosticCode2["AmbiguousAccess0"] =
|
12619
|
-
DiagnosticCode2[DiagnosticCode2["CanNotAssignValueToContextVariable"] =
|
12620
|
-
DiagnosticCode2[DiagnosticCode2["ExpectedPackageNameOrAliasButFoundType"] =
|
12621
|
-
DiagnosticCode2[DiagnosticCode2["TypeExpected"] =
|
12622
|
-
DiagnosticCode2[DiagnosticCode2["NameOfTypeOrPackageNotFound"] =
|
12623
|
-
DiagnosticCode2[DiagnosticCode2["TypeIsNotATag"] =
|
12624
|
-
DiagnosticCode2[DiagnosticCode2["ExpressionOfType0CanNotBeUsedForEnumeration"] =
|
12625
|
-
DiagnosticCode2[DiagnosticCode2["Operator0IsNotDefinedForTypes1And2"] =
|
12626
|
-
DiagnosticCode2[DiagnosticCode2["Operator0IsNotDefinedForType1"] =
|
12627
|
-
DiagnosticCode2[DiagnosticCode2["VariantMustHaveAssociatedValue"] =
|
12628
|
-
DiagnosticCode2[DiagnosticCode2["TranslationsCanOnlyBeDeclaredInTranslationPackage"] =
|
12629
|
-
DiagnosticCode2[DiagnosticCode2["UnknownTranslatedPackage0"] =
|
12630
|
-
DiagnosticCode2[DiagnosticCode2["BaseCannotBeUsedInThisContext"] =
|
12631
|
-
DiagnosticCode2[DiagnosticCode2["OverriddenMethodNotFound"] =
|
12632
|
-
DiagnosticCode2[DiagnosticCode2["ObjectCannotBeUsedInThisContext"] =
|
12633
|
-
DiagnosticCode2[DiagnosticCode2["BaseCannotBeUsedAsAnExpressionInItself"] =
|
12634
|
-
DiagnosticCode2[DiagnosticCode2["InterfacePackageMustNotContainImplementation"] =
|
12635
|
-
DiagnosticCode2[DiagnosticCode2["InterfacePackageVariablesMustNotHaveInitializers"] =
|
12636
|
-
DiagnosticCode2[DiagnosticCode2["BodyIsMissing"] =
|
12637
|
-
DiagnosticCode2[DiagnosticCode2["AbstractTypeMembersMustNotHaveBody"] =
|
12638
|
-
DiagnosticCode2[DiagnosticCode2["AbstractVariablesMustNotHaveInitializers"] =
|
12639
|
-
DiagnosticCode2[DiagnosticCode2["PackageIsAlreadyImportedInAnotherLanguage"] =
|
12640
|
-
DiagnosticCode2[DiagnosticCode2["OnlySubprogramsWithReturnTypeCanReturnValue"] =
|
12641
|
-
DiagnosticCode2[DiagnosticCode2["FunctionsUsingYieldStatementCanNotReturnValue"] =
|
12642
|
-
DiagnosticCode2[DiagnosticCode2["YieldStatementCanNotBeUsedInAnonymousFunctions"] =
|
12643
|
-
DiagnosticCode2[DiagnosticCode2["YieldStatementCanNotBeUsedHere"] =
|
12644
|
-
DiagnosticCode2[DiagnosticCode2["FunctionsUsingYieldStatementMustHaveEnumerableAsReturnType"] =
|
12645
|
-
DiagnosticCode2[DiagnosticCode2["YieldStatementCanNotBeUsedInTryStatementThatHasCatchClause"] =
|
12646
|
-
DiagnosticCode2[DiagnosticCode2["YieldStatementCanNotBeUsedInFinallyClause"] =
|
12647
|
-
DiagnosticCode2[DiagnosticCode2["SubprogramMustReturnValue"] =
|
12648
|
-
DiagnosticCode2[DiagnosticCode2["ResultVariableCanNotBeUsedInFunctionsUsingYieldStatement"] =
|
12649
|
-
DiagnosticCode2[DiagnosticCode2["TypeAliasReferencesItself"] =
|
12650
|
-
DiagnosticCode2[DiagnosticCode2["TypeParameterHasCircularConstraint"] =
|
12651
|
-
DiagnosticCode2[DiagnosticCode2["BaseTypeCausesInheritanceCycle"] =
|
12652
|
-
DiagnosticCode2[DiagnosticCode2["OnlyGenericTypesAndFunctionsCanBeSpecialized"] =
|
12653
|
-
DiagnosticCode2[DiagnosticCode2["Expected0TypeArguments"] =
|
12654
|
-
DiagnosticCode2[DiagnosticCode2["ExpectedFrom0To1TypeArguments"] =
|
12655
|
-
DiagnosticCode2[DiagnosticCode2["Type0IsNotAssignableToConstraint1"] =
|
12656
|
-
DiagnosticCode2[DiagnosticCode2["VariableIsDeclaredButNotUsed"] =
|
12657
|
-
DiagnosticCode2[DiagnosticCode2["DefaultConstructorArgumentsMustBeNamed"] =
|
12658
|
-
DiagnosticCode2[DiagnosticCode2["IncorrectBodyOfRedefinableAliasTypeMethod"] =
|
12659
|
-
DiagnosticCode2[DiagnosticCode2["TheFollowingDeclarationsAreNotTranslated0"] =
|
12660
|
-
DiagnosticCode2[DiagnosticCode2["TheFollowingDeclarationAreNotTranslated0And1More"] =
|
12661
|
-
DiagnosticCode2[DiagnosticCode2["OperatorFunctionMustNotBeStatic"] =
|
12662
|
-
DiagnosticCode2[DiagnosticCode2["OperatorFunction0MustNotHaveParameters"] =
|
12663
|
-
DiagnosticCode2[DiagnosticCode2["OperatorFunction0MustHaveOneParameter"] =
|
12664
|
-
DiagnosticCode2[DiagnosticCode2["OperatorFunction0MustHaveNoMoreThanOneParameter"] =
|
12665
|
-
DiagnosticCode2[DiagnosticCode2["CorrespondingRedefinableTypeMemberNotFound"] =
|
12666
|
-
DiagnosticCode2[DiagnosticCode2["ConstructorCanNotBeRedefinable"] =
|
12667
|
-
DiagnosticCode2[DiagnosticCode2["ConstructorCanNotBeRedefined"] =
|
12668
|
-
DiagnosticCode2[DiagnosticCode2["AsyncFunctionCanOnlyBeCalledFromFunctionMarkedWithAsyncModifier"] =
|
12669
|
-
DiagnosticCode2[DiagnosticCode2["TagNotFound"] =
|
12670
|
-
DiagnosticCode2[DiagnosticCode2["TypeOrFunctionNameExpected"] =
|
12671
|
-
DiagnosticCode2[DiagnosticCode2["PackageNameOrAliasExpected"] =
|
12672
|
-
DiagnosticCode2[DiagnosticCode2["ExpressionCanBeNone"] =
|
12673
|
-
DiagnosticCode2[DiagnosticCode2["NoneAwareAccessCanNotBeUsedOnTheLeftHandSideOfAssignmentStatement"] =
|
12674
|
-
DiagnosticCode2[DiagnosticCode2["UnreachableCode"] =
|
12675
|
-
DiagnosticCode2[DiagnosticCode2["CanNotFindTsLibDirectoryBaseSearchPaths0"] =
|
12676
|
-
DiagnosticCode2[DiagnosticCode2["SourceFile0IsNotPartOfThePackageAndWontBeLoaded"] =
|
12677
|
-
DiagnosticCode2[DiagnosticCode2["ProgramWithoutMainPackageCanNotBeCompiled"] =
|
12678
|
-
DiagnosticCode2[DiagnosticCode2["JsonConfigurationValidationError"] =
|
12679
|
-
DiagnosticCode2[DiagnosticCode2["StandardPackage0NotFound"] =
|
12680
|
-
DiagnosticCode2[DiagnosticCode2["Declaration0NotFoundInStandardPackage1"] =
|
12587
|
+
DiagnosticCode2[DiagnosticCode2["TypeCannotBeUsedAsValue"] = 201] = "TypeCannotBeUsedAsValue";
|
12588
|
+
DiagnosticCode2[DiagnosticCode2["PackageNameCannotBeUsedAsValue"] = 202] = "PackageNameCannotBeUsedAsValue";
|
12589
|
+
DiagnosticCode2[DiagnosticCode2["PackageAliasCannotBeUsedAsValue"] = 203] = "PackageAliasCannotBeUsedAsValue";
|
12590
|
+
DiagnosticCode2[DiagnosticCode2["PackageMemberOrPackageNotFound"] = 204] = "PackageMemberOrPackageNotFound";
|
12591
|
+
DiagnosticCode2[DiagnosticCode2["PackageMemberNotFound"] = 205] = "PackageMemberNotFound";
|
12592
|
+
DiagnosticCode2[DiagnosticCode2["TypeMemberNotFound"] = 206] = "TypeMemberNotFound";
|
12593
|
+
DiagnosticCode2[DiagnosticCode2["ConstructorNotFound"] = 207] = "ConstructorNotFound";
|
12594
|
+
DiagnosticCode2[DiagnosticCode2["IndexerOfTheSpecifiedTypeNotFound"] = 208] = "IndexerOfTheSpecifiedTypeNotFound";
|
12595
|
+
DiagnosticCode2[DiagnosticCode2["DereferenceOperatorOfTheSpecifiedTypeNotFound"] = 209] = "DereferenceOperatorOfTheSpecifiedTypeNotFound";
|
12596
|
+
DiagnosticCode2[DiagnosticCode2["IndexerNotFound"] = 210] = "IndexerNotFound";
|
12597
|
+
DiagnosticCode2[DiagnosticCode2["CannotAccessStaticMembersOnTypeParameter"] = 211] = "CannotAccessStaticMembersOnTypeParameter";
|
12598
|
+
DiagnosticCode2[DiagnosticCode2["CannotCreateInstanceOfAspect"] = 212] = "CannotCreateInstanceOfAspect";
|
12599
|
+
DiagnosticCode2[DiagnosticCode2["CannotCreateInstanceOfTypeParameter"] = 213] = "CannotCreateInstanceOfTypeParameter";
|
12600
|
+
DiagnosticCode2[DiagnosticCode2["CannotCreateInstanceOfUnresolvedType"] = 214] = "CannotCreateInstanceOfUnresolvedType";
|
12601
|
+
DiagnosticCode2[DiagnosticCode2["ExpressionIsNotCallable"] = 215] = "ExpressionIsNotCallable";
|
12602
|
+
DiagnosticCode2[DiagnosticCode2["ParameterForPositionalArgumentNotFound"] = 216] = "ParameterForPositionalArgumentNotFound";
|
12603
|
+
DiagnosticCode2[DiagnosticCode2["ParameterWithGivenNameNotFound"] = 217] = "ParameterWithGivenNameNotFound";
|
12604
|
+
DiagnosticCode2[DiagnosticCode2["NamedArgumentExpectedButPositionalArgumentFound"] = 218] = "NamedArgumentExpectedButPositionalArgumentFound";
|
12605
|
+
DiagnosticCode2[DiagnosticCode2["ArgumentForParameterAlreadyAssigned"] = 219] = "ArgumentForParameterAlreadyAssigned";
|
12606
|
+
DiagnosticCode2[DiagnosticCode2["NotAllRequiredParametersAreProvidedWithArguments"] = 220] = "NotAllRequiredParametersAreProvidedWithArguments";
|
12607
|
+
DiagnosticCode2[DiagnosticCode2["UnknownVariable"] = 221] = "UnknownVariable";
|
12608
|
+
DiagnosticCode2[DiagnosticCode2["UnknownType"] = 222] = "UnknownType";
|
12609
|
+
DiagnosticCode2[DiagnosticCode2["TypeWithArity0NotFound"] = 223] = "TypeWithArity0NotFound";
|
12610
|
+
DiagnosticCode2[DiagnosticCode2["VariableUsedBeforeBeingDeclared"] = 224] = "VariableUsedBeforeBeingDeclared";
|
12611
|
+
DiagnosticCode2[DiagnosticCode2["Type0IsNotAssignableToType1"] = 225] = "Type0IsNotAssignableToType1";
|
12612
|
+
DiagnosticCode2[DiagnosticCode2["VariableNotFound"] = 226] = "VariableNotFound";
|
12613
|
+
DiagnosticCode2[DiagnosticCode2["FunctionNotFound"] = 227] = "FunctionNotFound";
|
12614
|
+
DiagnosticCode2[DiagnosticCode2["UnknownPackage"] = 228] = "UnknownPackage";
|
12615
|
+
DiagnosticCode2[DiagnosticCode2["CannotAssignValueToExpression"] = 229] = "CannotAssignValueToExpression";
|
12616
|
+
DiagnosticCode2[DiagnosticCode2["CannotDetermineTargetTypeToCallTheConstructor"] = 230] = "CannotDetermineTargetTypeToCallTheConstructor";
|
12617
|
+
DiagnosticCode2[DiagnosticCode2["AmbiguousAccess"] = 231] = "AmbiguousAccess";
|
12618
|
+
DiagnosticCode2[DiagnosticCode2["AmbiguousAccess0"] = 232] = "AmbiguousAccess0";
|
12619
|
+
DiagnosticCode2[DiagnosticCode2["CanNotAssignValueToContextVariable"] = 233] = "CanNotAssignValueToContextVariable";
|
12620
|
+
DiagnosticCode2[DiagnosticCode2["ExpectedPackageNameOrAliasButFoundType"] = 234] = "ExpectedPackageNameOrAliasButFoundType";
|
12621
|
+
DiagnosticCode2[DiagnosticCode2["TypeExpected"] = 235] = "TypeExpected";
|
12622
|
+
DiagnosticCode2[DiagnosticCode2["NameOfTypeOrPackageNotFound"] = 236] = "NameOfTypeOrPackageNotFound";
|
12623
|
+
DiagnosticCode2[DiagnosticCode2["TypeIsNotATag"] = 237] = "TypeIsNotATag";
|
12624
|
+
DiagnosticCode2[DiagnosticCode2["ExpressionOfType0CanNotBeUsedForEnumeration"] = 238] = "ExpressionOfType0CanNotBeUsedForEnumeration";
|
12625
|
+
DiagnosticCode2[DiagnosticCode2["Operator0IsNotDefinedForTypes1And2"] = 239] = "Operator0IsNotDefinedForTypes1And2";
|
12626
|
+
DiagnosticCode2[DiagnosticCode2["Operator0IsNotDefinedForType1"] = 240] = "Operator0IsNotDefinedForType1";
|
12627
|
+
DiagnosticCode2[DiagnosticCode2["VariantMustHaveAssociatedValue"] = 241] = "VariantMustHaveAssociatedValue";
|
12628
|
+
DiagnosticCode2[DiagnosticCode2["TranslationsCanOnlyBeDeclaredInTranslationPackage"] = 242] = "TranslationsCanOnlyBeDeclaredInTranslationPackage";
|
12629
|
+
DiagnosticCode2[DiagnosticCode2["UnknownTranslatedPackage0"] = 243] = "UnknownTranslatedPackage0";
|
12630
|
+
DiagnosticCode2[DiagnosticCode2["BaseCannotBeUsedInThisContext"] = 244] = "BaseCannotBeUsedInThisContext";
|
12631
|
+
DiagnosticCode2[DiagnosticCode2["OverriddenMethodNotFound"] = 245] = "OverriddenMethodNotFound";
|
12632
|
+
DiagnosticCode2[DiagnosticCode2["ObjectCannotBeUsedInThisContext"] = 246] = "ObjectCannotBeUsedInThisContext";
|
12633
|
+
DiagnosticCode2[DiagnosticCode2["BaseCannotBeUsedAsAnExpressionInItself"] = 247] = "BaseCannotBeUsedAsAnExpressionInItself";
|
12634
|
+
DiagnosticCode2[DiagnosticCode2["InterfacePackageMustNotContainImplementation"] = 248] = "InterfacePackageMustNotContainImplementation";
|
12635
|
+
DiagnosticCode2[DiagnosticCode2["InterfacePackageVariablesMustNotHaveInitializers"] = 249] = "InterfacePackageVariablesMustNotHaveInitializers";
|
12636
|
+
DiagnosticCode2[DiagnosticCode2["BodyIsMissing"] = 250] = "BodyIsMissing";
|
12637
|
+
DiagnosticCode2[DiagnosticCode2["AbstractTypeMembersMustNotHaveBody"] = 251] = "AbstractTypeMembersMustNotHaveBody";
|
12638
|
+
DiagnosticCode2[DiagnosticCode2["AbstractVariablesMustNotHaveInitializers"] = 252] = "AbstractVariablesMustNotHaveInitializers";
|
12639
|
+
DiagnosticCode2[DiagnosticCode2["PackageIsAlreadyImportedInAnotherLanguage"] = 253] = "PackageIsAlreadyImportedInAnotherLanguage";
|
12640
|
+
DiagnosticCode2[DiagnosticCode2["OnlySubprogramsWithReturnTypeCanReturnValue"] = 254] = "OnlySubprogramsWithReturnTypeCanReturnValue";
|
12641
|
+
DiagnosticCode2[DiagnosticCode2["FunctionsUsingYieldStatementCanNotReturnValue"] = 255] = "FunctionsUsingYieldStatementCanNotReturnValue";
|
12642
|
+
DiagnosticCode2[DiagnosticCode2["YieldStatementCanNotBeUsedInAnonymousFunctions"] = 256] = "YieldStatementCanNotBeUsedInAnonymousFunctions";
|
12643
|
+
DiagnosticCode2[DiagnosticCode2["YieldStatementCanNotBeUsedHere"] = 257] = "YieldStatementCanNotBeUsedHere";
|
12644
|
+
DiagnosticCode2[DiagnosticCode2["FunctionsUsingYieldStatementMustHaveEnumerableAsReturnType"] = 258] = "FunctionsUsingYieldStatementMustHaveEnumerableAsReturnType";
|
12645
|
+
DiagnosticCode2[DiagnosticCode2["YieldStatementCanNotBeUsedInTryStatementThatHasCatchClause"] = 259] = "YieldStatementCanNotBeUsedInTryStatementThatHasCatchClause";
|
12646
|
+
DiagnosticCode2[DiagnosticCode2["YieldStatementCanNotBeUsedInFinallyClause"] = 260] = "YieldStatementCanNotBeUsedInFinallyClause";
|
12647
|
+
DiagnosticCode2[DiagnosticCode2["SubprogramMustReturnValue"] = 261] = "SubprogramMustReturnValue";
|
12648
|
+
DiagnosticCode2[DiagnosticCode2["ResultVariableCanNotBeUsedInFunctionsUsingYieldStatement"] = 262] = "ResultVariableCanNotBeUsedInFunctionsUsingYieldStatement";
|
12649
|
+
DiagnosticCode2[DiagnosticCode2["TypeAliasReferencesItself"] = 263] = "TypeAliasReferencesItself";
|
12650
|
+
DiagnosticCode2[DiagnosticCode2["TypeParameterHasCircularConstraint"] = 264] = "TypeParameterHasCircularConstraint";
|
12651
|
+
DiagnosticCode2[DiagnosticCode2["BaseTypeCausesInheritanceCycle"] = 265] = "BaseTypeCausesInheritanceCycle";
|
12652
|
+
DiagnosticCode2[DiagnosticCode2["OnlyGenericTypesAndFunctionsCanBeSpecialized"] = 266] = "OnlyGenericTypesAndFunctionsCanBeSpecialized";
|
12653
|
+
DiagnosticCode2[DiagnosticCode2["Expected0TypeArguments"] = 267] = "Expected0TypeArguments";
|
12654
|
+
DiagnosticCode2[DiagnosticCode2["ExpectedFrom0To1TypeArguments"] = 268] = "ExpectedFrom0To1TypeArguments";
|
12655
|
+
DiagnosticCode2[DiagnosticCode2["Type0IsNotAssignableToConstraint1"] = 269] = "Type0IsNotAssignableToConstraint1";
|
12656
|
+
DiagnosticCode2[DiagnosticCode2["VariableIsDeclaredButNotUsed"] = 270] = "VariableIsDeclaredButNotUsed";
|
12657
|
+
DiagnosticCode2[DiagnosticCode2["DefaultConstructorArgumentsMustBeNamed"] = 271] = "DefaultConstructorArgumentsMustBeNamed";
|
12658
|
+
DiagnosticCode2[DiagnosticCode2["IncorrectBodyOfRedefinableAliasTypeMethod"] = 272] = "IncorrectBodyOfRedefinableAliasTypeMethod";
|
12659
|
+
DiagnosticCode2[DiagnosticCode2["TheFollowingDeclarationsAreNotTranslated0"] = 273] = "TheFollowingDeclarationsAreNotTranslated0";
|
12660
|
+
DiagnosticCode2[DiagnosticCode2["TheFollowingDeclarationAreNotTranslated0And1More"] = 274] = "TheFollowingDeclarationAreNotTranslated0And1More";
|
12661
|
+
DiagnosticCode2[DiagnosticCode2["OperatorFunctionMustNotBeStatic"] = 275] = "OperatorFunctionMustNotBeStatic";
|
12662
|
+
DiagnosticCode2[DiagnosticCode2["OperatorFunction0MustNotHaveParameters"] = 276] = "OperatorFunction0MustNotHaveParameters";
|
12663
|
+
DiagnosticCode2[DiagnosticCode2["OperatorFunction0MustHaveOneParameter"] = 277] = "OperatorFunction0MustHaveOneParameter";
|
12664
|
+
DiagnosticCode2[DiagnosticCode2["OperatorFunction0MustHaveNoMoreThanOneParameter"] = 278] = "OperatorFunction0MustHaveNoMoreThanOneParameter";
|
12665
|
+
DiagnosticCode2[DiagnosticCode2["CorrespondingRedefinableTypeMemberNotFound"] = 279] = "CorrespondingRedefinableTypeMemberNotFound";
|
12666
|
+
DiagnosticCode2[DiagnosticCode2["ConstructorCanNotBeRedefinable"] = 280] = "ConstructorCanNotBeRedefinable";
|
12667
|
+
DiagnosticCode2[DiagnosticCode2["ConstructorCanNotBeRedefined"] = 281] = "ConstructorCanNotBeRedefined";
|
12668
|
+
DiagnosticCode2[DiagnosticCode2["AsyncFunctionCanOnlyBeCalledFromFunctionMarkedWithAsyncModifier"] = 282] = "AsyncFunctionCanOnlyBeCalledFromFunctionMarkedWithAsyncModifier";
|
12669
|
+
DiagnosticCode2[DiagnosticCode2["TagNotFound"] = 283] = "TagNotFound";
|
12670
|
+
DiagnosticCode2[DiagnosticCode2["TypeOrFunctionNameExpected"] = 284] = "TypeOrFunctionNameExpected";
|
12671
|
+
DiagnosticCode2[DiagnosticCode2["PackageNameOrAliasExpected"] = 285] = "PackageNameOrAliasExpected";
|
12672
|
+
DiagnosticCode2[DiagnosticCode2["ExpressionCanBeNone"] = 286] = "ExpressionCanBeNone";
|
12673
|
+
DiagnosticCode2[DiagnosticCode2["NoneAwareAccessCanNotBeUsedOnTheLeftHandSideOfAssignmentStatement"] = 287] = "NoneAwareAccessCanNotBeUsedOnTheLeftHandSideOfAssignmentStatement";
|
12674
|
+
DiagnosticCode2[DiagnosticCode2["UnreachableCode"] = 288] = "UnreachableCode";
|
12675
|
+
DiagnosticCode2[DiagnosticCode2["CanNotFindTsLibDirectoryBaseSearchPaths0"] = 301] = "CanNotFindTsLibDirectoryBaseSearchPaths0";
|
12676
|
+
DiagnosticCode2[DiagnosticCode2["SourceFile0IsNotPartOfThePackageAndWontBeLoaded"] = 302] = "SourceFile0IsNotPartOfThePackageAndWontBeLoaded";
|
12677
|
+
DiagnosticCode2[DiagnosticCode2["ProgramWithoutMainPackageCanNotBeCompiled"] = 303] = "ProgramWithoutMainPackageCanNotBeCompiled";
|
12678
|
+
DiagnosticCode2[DiagnosticCode2["JsonConfigurationValidationError"] = 304] = "JsonConfigurationValidationError";
|
12679
|
+
DiagnosticCode2[DiagnosticCode2["StandardPackage0NotFound"] = 305] = "StandardPackage0NotFound";
|
12680
|
+
DiagnosticCode2[DiagnosticCode2["Declaration0NotFoundInStandardPackage1"] = 306] = "Declaration0NotFoundInStandardPackage1";
|
12681
12681
|
return DiagnosticCode2;
|
12682
12682
|
})(DiagnosticCode || {});
|
12683
12683
|
|
@@ -12718,11 +12718,11 @@ function getErrorMessage(code) {
|
|
12718
12718
|
return messages[code];
|
12719
12719
|
}
|
12720
12720
|
var englishErrorMessages = {
|
12721
|
-
[
|
12722
|
-
[
|
12723
|
-
[
|
12724
|
-
[
|
12725
|
-
[
|
12721
|
+
[0 /* UnterminatedToken */]: "Unterminated token.",
|
12722
|
+
[1 /* UnterminatedMultiLineComment */]: "Unterminated multiline comment.",
|
12723
|
+
[2 /* UnterminatedNumber */]: "Unterminated number.",
|
12724
|
+
[3 /* UnterminatedTextOrTextTemplate */]: "Unterminated text or text template.",
|
12725
|
+
[4 /* UnterminatedQuotedIdentifier */]: "Unterminated quoted identifier.",
|
12726
12726
|
[101 /* IdentifierExpected */]: "Identifier expected.",
|
12727
12727
|
[102 /* TypeNameExpected */]: "Type name expected.",
|
12728
12728
|
[103 /* PackageNameExpected */]: "Package name expected.",
|
@@ -12754,107 +12754,107 @@ var englishErrorMessages = {
|
|
12754
12754
|
[129 /* TagNameExpected */]: "Tag name expected.",
|
12755
12755
|
[130 /* TypeMemberTranslationExpected */]: "Type member translation expected.",
|
12756
12756
|
[131 /* TranslationExpected */]: "Translation expected.",
|
12757
|
-
[
|
12758
|
-
[
|
12759
|
-
[
|
12760
|
-
[
|
12761
|
-
[
|
12762
|
-
[
|
12763
|
-
[
|
12764
|
-
[
|
12765
|
-
[
|
12766
|
-
[
|
12767
|
-
[
|
12768
|
-
[
|
12769
|
-
[
|
12770
|
-
[
|
12771
|
-
[
|
12772
|
-
[
|
12773
|
-
[
|
12774
|
-
[
|
12775
|
-
[
|
12776
|
-
[
|
12777
|
-
[
|
12778
|
-
[
|
12779
|
-
[
|
12780
|
-
[
|
12781
|
-
[
|
12782
|
-
[
|
12783
|
-
[
|
12784
|
-
[
|
12785
|
-
[
|
12786
|
-
[
|
12787
|
-
[
|
12788
|
-
[
|
12789
|
-
[
|
12790
|
-
[
|
12791
|
-
[
|
12792
|
-
[
|
12793
|
-
[
|
12794
|
-
[
|
12795
|
-
[
|
12796
|
-
[
|
12797
|
-
[
|
12798
|
-
[
|
12799
|
-
[
|
12800
|
-
[
|
12801
|
-
[
|
12802
|
-
[
|
12803
|
-
[
|
12804
|
-
[
|
12805
|
-
[
|
12806
|
-
[
|
12807
|
-
[
|
12808
|
-
[
|
12809
|
-
[
|
12810
|
-
[
|
12811
|
-
[
|
12812
|
-
[
|
12813
|
-
[
|
12814
|
-
[
|
12815
|
-
[
|
12816
|
-
[
|
12817
|
-
[
|
12818
|
-
[
|
12819
|
-
[
|
12820
|
-
[
|
12821
|
-
[
|
12822
|
-
[
|
12823
|
-
[
|
12824
|
-
[
|
12825
|
-
[
|
12826
|
-
[
|
12827
|
-
[
|
12828
|
-
[
|
12829
|
-
[
|
12830
|
-
[
|
12831
|
-
[
|
12832
|
-
[
|
12833
|
-
[
|
12834
|
-
[
|
12835
|
-
[
|
12836
|
-
[
|
12837
|
-
[
|
12838
|
-
[
|
12839
|
-
[
|
12840
|
-
[
|
12841
|
-
[
|
12842
|
-
[
|
12843
|
-
[
|
12844
|
-
[
|
12845
|
-
[
|
12846
|
-
[
|
12847
|
-
[
|
12848
|
-
[
|
12849
|
-
[
|
12850
|
-
[
|
12757
|
+
[201 /* TypeCannotBeUsedAsValue */]: "Type name cannot be used as value.",
|
12758
|
+
[202 /* PackageNameCannotBeUsedAsValue */]: "Package name cannot be used as value.",
|
12759
|
+
[203 /* PackageAliasCannotBeUsedAsValue */]: "Package alias cannot be used as value.",
|
12760
|
+
[204 /* PackageMemberOrPackageNotFound */]: "Package member or package not found.",
|
12761
|
+
[205 /* PackageMemberNotFound */]: "Package member not found.",
|
12762
|
+
[206 /* TypeMemberNotFound */]: "Type member not found.",
|
12763
|
+
[207 /* ConstructorNotFound */]: "Constructor not found.",
|
12764
|
+
[208 /* IndexerOfTheSpecifiedTypeNotFound */]: "Indexer of the specified type not found.",
|
12765
|
+
[209 /* DereferenceOperatorOfTheSpecifiedTypeNotFound */]: "Dereference operator of the specified type not found.",
|
12766
|
+
[211 /* CannotAccessStaticMembersOnTypeParameter */]: "Cannot access static members on type parameter.",
|
12767
|
+
[212 /* CannotCreateInstanceOfAspect */]: "Cannot create instance of aspect.",
|
12768
|
+
[213 /* CannotCreateInstanceOfTypeParameter */]: "Cannot create instance of type parameter.",
|
12769
|
+
[214 /* CannotCreateInstanceOfUnresolvedType */]: "Cannot create instance of unresolved type.",
|
12770
|
+
[215 /* ExpressionIsNotCallable */]: "Expression is not callable.",
|
12771
|
+
[216 /* ParameterForPositionalArgumentNotFound */]: "Parameter for positional argument not found.",
|
12772
|
+
[217 /* ParameterWithGivenNameNotFound */]: "Parameter with given name not found.",
|
12773
|
+
[218 /* NamedArgumentExpectedButPositionalArgumentFound */]: "Named argument expected but positional argument found.",
|
12774
|
+
[219 /* ArgumentForParameterAlreadyAssigned */]: "Argument for parameter already assigned.",
|
12775
|
+
[220 /* NotAllRequiredParametersAreProvidedWithArguments */]: "Not all required parameters are provided with arguments.",
|
12776
|
+
[221 /* UnknownVariable */]: "Unknown variable.",
|
12777
|
+
[222 /* UnknownType */]: "Unknown type.",
|
12778
|
+
[223 /* TypeWithArity0NotFound */]: "Type with arity '{0}' not found.",
|
12779
|
+
[224 /* VariableUsedBeforeBeingDeclared */]: "Variable used before being declared.",
|
12780
|
+
[225 /* Type0IsNotAssignableToType1 */]: "Type '{0}' is not assignable to type '{1}'.",
|
12781
|
+
[226 /* VariableNotFound */]: "Variable not found.",
|
12782
|
+
[227 /* FunctionNotFound */]: "Function not found.",
|
12783
|
+
[228 /* UnknownPackage */]: "Unknown package.",
|
12784
|
+
[229 /* CannotAssignValueToExpression */]: "Cannot assign value to expression.",
|
12785
|
+
[230 /* CannotDetermineTargetTypeToCallTheConstructor */]: "Cannot determine target type to call the constructor.",
|
12786
|
+
[231 /* AmbiguousAccess */]: "Ambiguous access.",
|
12787
|
+
[232 /* AmbiguousAccess0 */]: "Ambiguous access:{0}",
|
12788
|
+
[233 /* CanNotAssignValueToContextVariable */]: "Can not assign value to context variable.",
|
12789
|
+
[234 /* ExpectedPackageNameOrAliasButFoundType */]: "Expected package name or alias but foundType.",
|
12790
|
+
[235 /* TypeExpected */]: "Type expected.",
|
12791
|
+
[236 /* NameOfTypeOrPackageNotFound */]: "Name of type or package not found.",
|
12792
|
+
[237 /* TypeIsNotATag */]: "Type is not a tag.",
|
12793
|
+
[238 /* ExpressionOfType0CanNotBeUsedForEnumeration */]: "Expression of type '{0}' can not be used for enumeration.",
|
12794
|
+
[239 /* Operator0IsNotDefinedForTypes1And2 */]: "Operator '{0}' is not defined for types '{1}' and '{2}'.",
|
12795
|
+
[240 /* Operator0IsNotDefinedForType1 */]: "Operator '{0}' is not defined for type '{1}'.",
|
12796
|
+
[241 /* VariantMustHaveAssociatedValue */]: "Variant must have associated value.",
|
12797
|
+
[242 /* TranslationsCanOnlyBeDeclaredInTranslationPackage */]: "Name dictionary can only be declared in translation package.",
|
12798
|
+
[243 /* UnknownTranslatedPackage0 */]: "Unknown translated package '{0}'.",
|
12799
|
+
[210 /* IndexerNotFound */]: "Indexer not found.",
|
12800
|
+
[244 /* BaseCannotBeUsedInThisContext */]: "'base' cannot be used in this context.",
|
12801
|
+
[247 /* BaseCannotBeUsedAsAnExpressionInItself */]: "'base' cannot be used as an expression in itself.",
|
12802
|
+
[245 /* OverriddenMethodNotFound */]: "Overridden method not found.",
|
12803
|
+
[246 /* ObjectCannotBeUsedInThisContext */]: "'object' cannot be used in this context.",
|
12804
|
+
[248 /* InterfacePackageMustNotContainImplementation */]: "Interface package must not contain implementation.",
|
12805
|
+
[249 /* InterfacePackageVariablesMustNotHaveInitializers */]: "Interface package variables must not have initializers.",
|
12806
|
+
[250 /* BodyIsMissing */]: "Body is missing.",
|
12807
|
+
[251 /* AbstractTypeMembersMustNotHaveBody */]: "Abstract type members must not have body.",
|
12808
|
+
[252 /* AbstractVariablesMustNotHaveInitializers */]: "Abstract variables must not have initializers.",
|
12809
|
+
[253 /* PackageIsAlreadyImportedInAnotherLanguage */]: "Package is already imported in another language.",
|
12810
|
+
[254 /* OnlySubprogramsWithReturnTypeCanReturnValue */]: "Only functions with a return type can return a value.",
|
12811
|
+
[255 /* FunctionsUsingYieldStatementCanNotReturnValue */]: "Methods using yield statement can not return a value.",
|
12812
|
+
[256 /* YieldStatementCanNotBeUsedInAnonymousFunctions */]: "Yield statement can not be used in anonymous functions.",
|
12813
|
+
[257 /* YieldStatementCanNotBeUsedHere */]: "Yield statement can not be used here.",
|
12814
|
+
[258 /* FunctionsUsingYieldStatementMustHaveEnumerableAsReturnType */]: "Function using 'yield' statement must have 'Enumerable' as a return type.",
|
12815
|
+
[259 /* YieldStatementCanNotBeUsedInTryStatementThatHasCatchClause */]: "Yield statement can not be used in 'try' statement that has 'catch' clause.",
|
12816
|
+
[260 /* YieldStatementCanNotBeUsedInFinallyClause */]: "Yield statement can not be used in 'finally' clause.",
|
12817
|
+
[261 /* SubprogramMustReturnValue */]: "Function must return a value.",
|
12818
|
+
[262 /* ResultVariableCanNotBeUsedInFunctionsUsingYieldStatement */]: "'result' variable can not be used in functions using 'yield' statement.",
|
12819
|
+
[263 /* TypeAliasReferencesItself */]: "Type alias references itself.",
|
12820
|
+
[264 /* TypeParameterHasCircularConstraint */]: "Type parameter has circular constraint.",
|
12821
|
+
[265 /* BaseTypeCausesInheritanceCycle */]: "Base type causes inheritance cycle.",
|
12822
|
+
[266 /* OnlyGenericTypesAndFunctionsCanBeSpecialized */]: "Only generic types and functions can be specialized.",
|
12823
|
+
[267 /* Expected0TypeArguments */]: "Expected '{0}' type argument(s).",
|
12824
|
+
[268 /* ExpectedFrom0To1TypeArguments */]: "Expected from '{0}' to '{1}' type arguments.",
|
12825
|
+
[269 /* Type0IsNotAssignableToConstraint1 */]: "Type '{0}' is not assignable to constraint '{1}'.",
|
12826
|
+
[270 /* VariableIsDeclaredButNotUsed */]: "Variable is declared but not used.",
|
12827
|
+
[271 /* DefaultConstructorArgumentsMustBeNamed */]: "Default constructor arguments must be named.",
|
12828
|
+
[272 /* IncorrectBodyOfRedefinableAliasTypeMethod */]: "Body of redefinable method declared in alias type must consist of a call to redefinable method of original type with same parameters and return type.",
|
12829
|
+
[273 /* TheFollowingDeclarationsAreNotTranslated0 */]: "The following declarations are not translated: {0}.",
|
12830
|
+
[274 /* TheFollowingDeclarationAreNotTranslated0And1More */]: "The following declarations are not translated: {0}and {1} more.",
|
12831
|
+
[275 /* OperatorFunctionMustNotBeStatic */]: "Operator function must not be static.",
|
12832
|
+
[276 /* OperatorFunction0MustNotHaveParameters */]: "Operator function '{0}' must not have parameters.",
|
12833
|
+
[277 /* OperatorFunction0MustHaveOneParameter */]: "Operator function '{0}' must have one parameter.",
|
12834
|
+
[278 /* OperatorFunction0MustHaveNoMoreThanOneParameter */]: "Operator function '{0}' must have no more than one parameter.",
|
12835
|
+
[279 /* CorrespondingRedefinableTypeMemberNotFound */]: "Corresponding redefinable type member not found.",
|
12836
|
+
[280 /* ConstructorCanNotBeRedefinable */]: "Constructor can not be redefinable.",
|
12837
|
+
[281 /* ConstructorCanNotBeRedefined */]: "Constructor can not be redefined.",
|
12838
|
+
[282 /* AsyncFunctionCanOnlyBeCalledFromFunctionMarkedWithAsyncModifier */]: "Async function can only be called from function marked with 'async' modifier.",
|
12839
|
+
[283 /* TagNotFound */]: "Tag not found.",
|
12840
|
+
[284 /* TypeOrFunctionNameExpected */]: "Type or function name expected.",
|
12841
|
+
[285 /* PackageNameOrAliasExpected */]: "Package name or alias expected.",
|
12842
|
+
[286 /* ExpressionCanBeNone */]: "Expression can be none.",
|
12843
|
+
[287 /* NoneAwareAccessCanNotBeUsedOnTheLeftHandSideOfAssignmentStatement */]: "None aware access can not be used on the left hand side of assignment statement.",
|
12844
|
+
[288 /* UnreachableCode */]: "Unreachable code.",
|
12845
|
+
[301 /* CanNotFindTsLibDirectoryBaseSearchPaths0 */]: "Can not find directory with TypeScript library. Base search paths: {0}.",
|
12846
|
+
[302 /* SourceFile0IsNotPartOfThePackageAndWontBeLoaded */]: "Source file '{0}' is not part of the package and won't be loaded.",
|
12847
|
+
[303 /* ProgramWithoutMainPackageCanNotBeCompiled */]: "Program without main package can not be compiled.",
|
12848
|
+
[304 /* JsonConfigurationValidationError */]: "JSON configuration validation error.",
|
12849
|
+
[305 /* StandardPackage0NotFound */]: "Standard package '{0}' not found.",
|
12850
|
+
[306 /* Declaration0NotFoundInStandardPackage1 */]: "Declaration '{0}' not found in standard package '{1}'."
|
12851
12851
|
};
|
12852
12852
|
var russianErrorMessages = {
|
12853
|
-
[
|
12854
|
-
[
|
12855
|
-
[
|
12856
|
-
[
|
12857
|
-
[
|
12853
|
+
[0 /* UnterminatedToken */]: "\u041D\u0435\u0437\u0430\u0432\u0435\u0440\u0448\u0451\u043D\u043D\u0430\u044F \u043B\u0435\u043A\u0441\u0435\u043C\u0430.",
|
12854
|
+
[1 /* UnterminatedMultiLineComment */]: "\u041D\u0435\u0437\u0430\u0432\u0435\u0440\u0448\u0451\u043D\u043D\u044B\u0439 \u043C\u043D\u043E\u0433\u043E\u0441\u0442\u0440\u043E\u0447\u043D\u044B\u0439 \u043A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u0439.",
|
12855
|
+
[2 /* UnterminatedNumber */]: "\u041D\u0435\u0437\u0430\u0432\u0435\u0440\u0448\u0451\u043D\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E.",
|
12856
|
+
[3 /* UnterminatedTextOrTextTemplate */]: "\u041D\u0435\u0437\u0430\u0432\u0435\u0440\u0448\u0451\u043D\u043D\u044B\u0439 \u0442\u0435\u043A\u0441\u0442 \u0438\u043B\u0438 \u0448\u0430\u0431\u043B\u043E\u043D \u0442\u0435\u043A\u0441\u0442\u0430.",
|
12857
|
+
[4 /* UnterminatedQuotedIdentifier */]: "\u041D\u0435\u0437\u0430\u0432\u0435\u0440\u0448\u0451\u043D\u043D\u043E\u0435 \u0438\u043C\u044F \u0432 \u043A\u0430\u0432\u044B\u0447\u043A\u0430\u0445.",
|
12858
12858
|
[101 /* IdentifierExpected */]: "\u041E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u0438\u043C\u044F.",
|
12859
12859
|
[102 /* TypeNameExpected */]: "\u041E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u0438\u043C\u044F \u0442\u0438\u043F\u0430.",
|
12860
12860
|
[103 /* PackageNameExpected */]: "\u041E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u0438\u043C\u044F \u043F\u0430\u043A\u0435\u0442\u0430.",
|
@@ -12884,102 +12884,102 @@ var russianErrorMessages = {
|
|
12884
12884
|
[128 /* NameThatMatchesKeywordMustBeEnclosedInSingleQuotes */]: "\u0418\u043C\u044F, \u0441\u043E\u0432\u043F\u0430\u0434\u0430\u044E\u0449\u0435\u0435 \u0441 \u043A\u043B\u044E\u0447\u0435\u0432\u044B\u043C \u0441\u043B\u043E\u0432\u043E\u043C, \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u0432\u0437\u044F\u0442\u043E \u0432 \u043E\u0434\u0438\u043D\u0430\u0440\u043D\u044B\u0435 \u043A\u0430\u0432\u044B\u0447\u043A\u0438.",
|
12885
12885
|
[130 /* TypeMemberTranslationExpected */]: "\u041E\u0436\u0438\u0434\u0430\u043B\u0441\u044F \u043F\u0435\u0440\u0435\u0432\u043E\u0434 \u0447\u043B\u0435\u043D\u0430 \u0442\u0438\u043F\u0430.",
|
12886
12886
|
[131 /* TranslationExpected */]: "\u041E\u0436\u0438\u0434\u0430\u043B\u0441\u044F \u043F\u0435\u0440\u0435\u0432\u043E\u0434.",
|
12887
|
-
[
|
12888
|
-
[
|
12889
|
-
[
|
12890
|
-
[
|
12891
|
-
[
|
12892
|
-
[
|
12893
|
-
[
|
12894
|
-
[
|
12895
|
-
[
|
12896
|
-
[
|
12897
|
-
[
|
12898
|
-
[
|
12899
|
-
[
|
12900
|
-
[
|
12901
|
-
[
|
12902
|
-
[
|
12903
|
-
[
|
12904
|
-
[
|
12905
|
-
[
|
12906
|
-
[
|
12907
|
-
[
|
12908
|
-
[
|
12909
|
-
[
|
12910
|
-
[
|
12911
|
-
[
|
12912
|
-
[
|
12913
|
-
[
|
12914
|
-
[
|
12915
|
-
[
|
12916
|
-
[
|
12917
|
-
[
|
12918
|
-
[
|
12919
|
-
[
|
12920
|
-
[
|
12921
|
-
[
|
12922
|
-
[
|
12923
|
-
[
|
12924
|
-
[
|
12925
|
-
[
|
12926
|
-
[
|
12887
|
+
[201 /* TypeCannotBeUsedAsValue */]: "\u0418\u043C\u044F \u0442\u0438\u043F\u0430 \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E \u043A\u0430\u043A \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435.",
|
12888
|
+
[202 /* PackageNameCannotBeUsedAsValue */]: "\u0418\u043C\u044F \u043F\u0430\u043A\u0435\u0442\u0430 \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E \u043A\u0430\u043A \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435.",
|
12889
|
+
[203 /* PackageAliasCannotBeUsedAsValue */]: "\u041F\u0441\u0435\u0432\u0434\u043E\u043D\u0438\u043C \u043F\u0430\u043A\u0435\u0442\u0430 \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D \u043A\u0430\u043A \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435.",
|
12890
|
+
[204 /* PackageMemberOrPackageNotFound */]: "\u041E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u0438\u0435 \u0438\u043B\u0438 \u043F\u0430\u043A\u0435\u0442 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u044B.",
|
12891
|
+
[205 /* PackageMemberNotFound */]: "\u0427\u043B\u0435\u043D \u043F\u0430\u043A\u0435\u0442\u0430 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D.",
|
12892
|
+
[206 /* TypeMemberNotFound */]: "\u0427\u043B\u0435\u043D \u0442\u0438\u043F\u0430 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D.",
|
12893
|
+
[207 /* ConstructorNotFound */]: "\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D.",
|
12894
|
+
[208 /* IndexerOfTheSpecifiedTypeNotFound */]: "\u041D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D \u0438\u043D\u0434\u0435\u043A\u0441\u0430\u0442\u043E\u0440 \u0443\u043A\u0430\u0437\u0430\u043D\u043D\u043E\u0433\u043E \u0442\u0438\u043F\u0430.",
|
12895
|
+
[209 /* DereferenceOperatorOfTheSpecifiedTypeNotFound */]: "\u041D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D \u0440\u0430\u0437\u044B\u043C\u0435\u043D\u043E\u0432\u0430\u0442\u0435\u043B\u044C \u0443\u043A\u0430\u0437\u0430\u043D\u043D\u043E\u0433\u043E \u0442\u0438\u043F\u0430.",
|
12896
|
+
[211 /* CannotAccessStaticMembersOnTypeParameter */]: "\u041D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u044C\u0441\u044F \u043A \u0432\u0441\u0435\u043E\u0431\u0449\u0438\u043C \u0447\u043B\u0435\u043D\u0430\u043C \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0430 \u0442\u0438\u043F\u0430.",
|
12897
|
+
[212 /* CannotCreateInstanceOfAspect */]: "\u041D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E \u0441\u043E\u0437\u0434\u0430\u0442\u044C \u044D\u043A\u0437\u0435\u043C\u043F\u043B\u044F\u0440 \u0430\u0441\u043F\u0435\u043A\u0442\u0430.",
|
12898
|
+
[213 /* CannotCreateInstanceOfTypeParameter */]: "\u041D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E \u0441\u043E\u0437\u0434\u0430\u0442\u044C \u044D\u043A\u0437\u0435\u043C\u043F\u043B\u044F\u0440 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0430 \u0442\u0438\u043F\u0430.",
|
12899
|
+
[214 /* CannotCreateInstanceOfUnresolvedType */]: "\u041D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E \u0441\u043E\u0437\u0434\u0430\u0442\u044C \u044D\u043A\u0437\u0435\u043C\u043F\u043B\u044F\u0440 \u043D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E\u0433\u043E \u0442\u0438\u043F\u0430.",
|
12900
|
+
[215 /* ExpressionIsNotCallable */]: "\u0412\u044B\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u043D\u0435 \u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u0432\u044B\u0437\u044B\u0432\u0430\u0435\u043C\u044B\u043C.",
|
12901
|
+
[216 /* ParameterForPositionalArgumentNotFound */]: "\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440 \u0434\u043B\u044F \u043F\u043E\u0437\u0438\u0446\u0438\u043E\u043D\u043D\u043E\u0433\u043E \u0430\u0440\u0433\u0443\u043C\u0435\u043D\u0442\u0430 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D.",
|
12902
|
+
[217 /* ParameterWithGivenNameNotFound */]: "\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440 \u0441 \u0443\u043A\u0430\u0437\u0430\u043D\u043D\u044B\u043C \u0438\u043C\u0435\u043D\u0435\u043C \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D.",
|
12903
|
+
[218 /* NamedArgumentExpectedButPositionalArgumentFound */]: "\u041E\u0436\u0438\u0434\u0430\u043B\u0441\u044F \u0438\u043C\u0435\u043D\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0430\u0440\u0433\u0443\u043C\u0435\u043D\u0442, \u043D\u043E \u043F\u0435\u0440\u0435\u0434\u0430\u043D \u043F\u043E\u0437\u0438\u0446\u0438\u043E\u043D\u043D\u044B\u0439.",
|
12904
|
+
[219 /* ArgumentForParameterAlreadyAssigned */]: "\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0443 \u0443\u0436\u0435 \u043D\u0430\u0437\u043D\u0430\u0447\u0435\u043D \u0430\u0440\u0433\u0443\u043C\u0435\u043D\u0442.",
|
12905
|
+
[220 /* NotAllRequiredParametersAreProvidedWithArguments */]: "\u041D\u0435 \u0432\u0441\u0435\u043C \u043E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u043C \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0430\u043C \u0437\u0430\u0434\u0430\u043D\u044B \u0430\u0440\u0433\u0443\u043C\u0435\u043D\u0442\u044B.",
|
12906
|
+
[221 /* UnknownVariable */]: "\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u0430\u044F.",
|
12907
|
+
[222 /* UnknownType */]: "\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u044B\u0439 \u0442\u0438\u043F.",
|
12908
|
+
[223 /* TypeWithArity0NotFound */]: "\u0422\u0438\u043F \u0441 \u043A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E\u043C \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u043E\u0432 '{0}' \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D.",
|
12909
|
+
[224 /* VariableUsedBeforeBeingDeclared */]: "\u041F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u0430\u044F \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442\u0441\u044F \u0434\u043E \u043E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u0438\u044F.",
|
12910
|
+
[225 /* Type0IsNotAssignableToType1 */]: "\u0422\u0438\u043F '{0}' \u043D\u0435 \u0441\u043E\u0432\u043C\u0435\u0441\u0442\u0438\u043C \u0441 \u0442\u0438\u043F\u043E\u043C '{1}'.",
|
12911
|
+
[226 /* VariableNotFound */]: "\u041F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u0430\u044F \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u0430.",
|
12912
|
+
[227 /* FunctionNotFound */]: "\u0424\u0443\u043D\u043A\u0446\u0438\u044F \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u0430.",
|
12913
|
+
[228 /* UnknownPackage */]: "\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u044B\u0439 \u043F\u0430\u043A\u0435\u0442.",
|
12914
|
+
[229 /* CannotAssignValueToExpression */]: "\u041D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E \u043F\u0440\u0438\u0441\u0432\u043E\u0438\u0442\u044C \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432\u044B\u0440\u0430\u0436\u0435\u043D\u0438\u044E.",
|
12915
|
+
[230 /* CannotDetermineTargetTypeToCallTheConstructor */]: "\u041D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0438\u0442\u044C \u0446\u0435\u043B\u0435\u0432\u043E\u0439 \u0442\u0438\u043F \u0434\u043B\u044F \u0432\u044B\u0437\u043E\u0432\u0430 \u043A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440\u0430.",
|
12916
|
+
[231 /* AmbiguousAccess */]: "\u041D\u0435\u043E\u0434\u043D\u043E\u0437\u043D\u0430\u0447\u043D\u044B\u0439 \u0434\u043E\u0441\u0442\u0443\u043F.",
|
12917
|
+
[232 /* AmbiguousAccess0 */]: "\u041D\u0435\u043E\u0434\u043D\u043E\u0437\u043D\u0430\u0447\u043D\u044B\u0439 \u0434\u043E\u0441\u0442\u0443\u043F:{0}",
|
12918
|
+
[233 /* CanNotAssignValueToContextVariable */]: "\u041D\u0435\u043B\u044C\u0437\u044F \u043F\u0440\u0438\u0441\u0432\u043E\u0438\u0442\u044C \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u0443\u044E \u043F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u0443\u044E.",
|
12919
|
+
[234 /* ExpectedPackageNameOrAliasButFoundType */]: "\u041E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u0438\u043C\u044F \u0438\u043B\u0438 \u043F\u0441\u0435\u0432\u0434\u043E\u043D\u0438\u043C \u043F\u0430\u043A\u0435\u0442\u0430, \u043D\u043E \u043D\u0430\u0439\u0434\u0435\u043D \u0442\u0438\u043F.",
|
12920
|
+
[235 /* TypeExpected */]: "\u041E\u0436\u0438\u0434\u0430\u043B\u0441\u044F \u0442\u0438\u043F.",
|
12921
|
+
[236 /* NameOfTypeOrPackageNotFound */]: "\u0418\u043C\u044F \u0442\u0438\u043F\u0430 \u0438\u043B\u0438 \u043F\u0430\u043A\u0435\u0442\u0430 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E.",
|
12922
|
+
[237 /* TypeIsNotATag */]: "\u0422\u0438\u043F \u043D\u0435 \u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u0442\u0435\u0433\u043E\u043C.",
|
12923
|
+
[238 /* ExpressionOfType0CanNotBeUsedForEnumeration */]: "\u0412\u044B\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0438\u043F\u0430 '{0}' \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0434\u043B\u044F \u043F\u0435\u0440\u0435\u0431\u043E\u0440\u0430.",
|
12924
|
+
[239 /* Operator0IsNotDefinedForTypes1And2 */]: "\u041E\u043F\u0435\u0440\u0430\u0446\u0438\u044F '{0}' \u043D\u0435 \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u0430 \u0434\u043B\u044F \u0442\u0438\u043F\u043E\u0432 '{1}' \u0438 '{2}'.",
|
12925
|
+
[240 /* Operator0IsNotDefinedForType1 */]: "\u041E\u043F\u0435\u0440\u0430\u0446\u0438\u044F '{0}' \u043D\u0435 \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u0430 \u0434\u043B\u044F \u0442\u0438\u043F\u0430 '{1}'.",
|
12926
|
+
[241 /* VariantMustHaveAssociatedValue */]: "\u0412\u0430\u0440\u0438\u0430\u043D\u0442 \u0434\u043E\u043B\u0436\u0435\u043D \u0438\u043C\u0435\u0442\u044C \u0430\u0441\u0441\u043E\u0446\u0438\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435.",
|
12927
12927
|
[124 /* HidingLevelExpected */]: "\u041E\u0436\u0438\u0434\u0430\u043B\u0441\u044F \u0443\u0440\u043E\u0432\u0435\u043D\u044C \u0441\u043A\u0440\u044B\u0442\u0438\u044F.",
|
12928
|
-
[
|
12929
|
-
[
|
12930
|
-
[
|
12931
|
-
[
|
12932
|
-
[
|
12933
|
-
[
|
12934
|
-
[
|
12935
|
-
[
|
12936
|
-
[
|
12937
|
-
[
|
12938
|
-
[
|
12939
|
-
[
|
12940
|
-
[
|
12941
|
-
[
|
12942
|
-
[
|
12943
|
-
[
|
12944
|
-
[
|
12945
|
-
[
|
12946
|
-
[
|
12947
|
-
[
|
12948
|
-
[
|
12949
|
-
[
|
12950
|
-
[
|
12951
|
-
[
|
12952
|
-
[
|
12953
|
-
[
|
12954
|
-
[
|
12955
|
-
[
|
12956
|
-
[
|
12957
|
-
[
|
12958
|
-
[
|
12959
|
-
[
|
12960
|
-
[
|
12961
|
-
[
|
12962
|
-
[
|
12963
|
-
[
|
12964
|
-
[
|
12965
|
-
[
|
12966
|
-
[
|
12967
|
-
[
|
12968
|
-
[
|
12969
|
-
[
|
12928
|
+
[242 /* TranslationsCanOnlyBeDeclaredInTranslationPackage */]: "\u041F\u0435\u0440\u0435\u0432\u043E\u0434\u044B \u043C\u043E\u0433\u0443\u0442 \u0431\u044B\u0442\u044C \u043E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u044B \u0442\u043E\u043B\u044C\u043A\u043E \u0432 \u043F\u0430\u043A\u0435\u0442\u0435 \u043F\u0435\u0440\u0435\u0432\u043E\u0434\u043E\u0432.",
|
12929
|
+
[243 /* UnknownTranslatedPackage0 */]: "\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u044B\u0439 \u043F\u0435\u0440\u0435\u0432\u043E\u0434\u0438\u043C\u044B\u0439 \u043F\u0430\u043A\u0435\u0442 '{0}'.",
|
12930
|
+
[210 /* IndexerNotFound */]: "\u0418\u043D\u0434\u0435\u043A\u0441\u0430\u0442\u043E\u0440 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D.",
|
12931
|
+
[244 /* BaseCannotBeUsedInThisContext */]: "'\u043E\u0441\u043D\u043E\u0432\u0430' \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0432 \u044D\u0442\u043E\u043C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u0435.",
|
12932
|
+
[247 /* BaseCannotBeUsedAsAnExpressionInItself */]: "'\u043E\u0441\u043D\u043E\u0432\u0430' \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0432 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0441\u0430\u043C\u043E\u0441\u0442\u043E\u044F\u0442\u0435\u043B\u044C\u043D\u043E\u0433\u043E \u0432\u044B\u0440\u0430\u0436\u0435\u043D\u0438\u044F.",
|
12933
|
+
[245 /* OverriddenMethodNotFound */]: "\u0418\u0441\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u043D\u044B\u0439 \u043C\u0435\u0442\u043E\u0434 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D.",
|
12934
|
+
[246 /* ObjectCannotBeUsedInThisContext */]: "'\u043E\u0431\u044A\u0435\u043A\u0442' \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0432 \u044D\u0442\u043E\u043C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u0435.",
|
12935
|
+
[248 /* InterfacePackageMustNotContainImplementation */]: "\u0418\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043D\u044B\u0439 \u043F\u0430\u043A\u0435\u0442 \u043D\u0435 \u0434\u043E\u043B\u0436\u0435\u043D \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C \u0440\u0435\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044E.",
|
12936
|
+
[249 /* InterfacePackageVariablesMustNotHaveInitializers */]: "\u041F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u044B\u0435 \u0432 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043D\u043E\u043C \u043F\u0430\u043A\u0435\u0442\u0435 \u043D\u0435 \u0434\u043E\u043B\u0436\u043D\u044B \u0438\u043C\u0435\u0442\u044C \u043D\u0430\u0447\u0430\u043B\u044C\u043D\u044B\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F.",
|
12937
|
+
[250 /* BodyIsMissing */]: "\u041E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0442\u0435\u043B\u043E.",
|
12938
|
+
[251 /* AbstractTypeMembersMustNotHaveBody */]: "\u0410\u0431\u0441\u0442\u0440\u0430\u043A\u0442\u043D\u044B\u0435 \u0447\u043B\u0435\u043D\u044B \u0442\u0438\u043F\u043E\u0432 \u043D\u0435 \u0434\u043E\u043B\u0436\u043D\u044B \u0438\u043C\u0435\u0442\u044C \u0442\u0435\u043B\u0430.",
|
12939
|
+
[252 /* AbstractVariablesMustNotHaveInitializers */]: "\u0410\u0431\u0441\u0442\u0440\u0430\u043A\u0442\u043D\u044B\u0435 \u043F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u044B\u0435 \u043D\u0435 \u0434\u043E\u043B\u0436\u043D\u044B \u0438\u043C\u0435\u0442\u044C \u043D\u0430\u0447\u0430\u043B\u044C\u043D\u044B\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F.",
|
12940
|
+
[253 /* PackageIsAlreadyImportedInAnotherLanguage */]: "\u041F\u0430\u043A\u0435\u0442 \u0443\u0436\u0435 \u0438\u043C\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u043D \u043D\u0430 \u0434\u0440\u0443\u0433\u043E\u043C \u044F\u0437\u044B\u043A\u0435.",
|
12941
|
+
[254 /* OnlySubprogramsWithReturnTypeCanReturnValue */]: "\u0412\u043E\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044C \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u043C\u043E\u0433\u0443\u0442 \u0442\u043E\u043B\u044C\u043A\u043E \u0444\u0443\u043D\u043A\u0446\u0438\u0438, \u0438\u043C\u0435\u044E\u0449\u0438\u0435 \u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043C\u044B\u0439 \u0442\u0438\u043F.",
|
12942
|
+
[255 /* FunctionsUsingYieldStatementCanNotReturnValue */]: "\u0424\u0443\u043D\u043A\u0446\u0438\u0438, \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u044E\u0449\u0438\u0435 \u043A\u043E\u043C\u0430\u043D\u0434\u0443 '\u0432\u044B\u0434\u0430\u0442\u044C', \u043D\u0435 \u043C\u043E\u0433\u0443\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044C \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435.",
|
12943
|
+
[256 /* YieldStatementCanNotBeUsedInAnonymousFunctions */]: "\u041A\u043E\u043C\u0430\u043D\u0434\u0430 '\u0432\u044B\u0434\u0430\u0442\u044C' \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0432 \u0431\u0435\u0437\u044B\u043C\u044F\u043D\u043D\u044B\u0445 \u0444\u0443\u043D\u043A\u0446\u0438\u044F\u0445.",
|
12944
|
+
[257 /* YieldStatementCanNotBeUsedHere */]: "\u041A\u043E\u043C\u0430\u043D\u0434\u0430 '\u0432\u044B\u0434\u0430\u0442\u044C' \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0437\u0434\u0435\u0441\u044C \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C\u0441\u044F.",
|
12945
|
+
[258 /* FunctionsUsingYieldStatementMustHaveEnumerableAsReturnType */]: "\u0424\u0443\u043D\u043A\u0446\u0438\u0438, \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u044E\u0449\u0438\u0435 \u043A\u043E\u043C\u0430\u043D\u0434\u0443 '\u0432\u044B\u0434\u0430\u0442\u044C', \u0434\u043E\u043B\u0436\u043D\u044B \u0438\u043C\u0435\u0442\u044C \u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043C\u044B\u0439 \u0442\u0438\u043F '\u041F\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0435\u043C\u044B\u0439'.",
|
12946
|
+
[259 /* YieldStatementCanNotBeUsedInTryStatementThatHasCatchClause */]: "\u041A\u043E\u043C\u0430\u043D\u0434\u0430 '\u0432\u044B\u0434\u0430\u0442\u044C' \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0432 \u0431\u043B\u043E\u043A\u0435 '\u043F\u043E\u043F\u044B\u0442\u043A\u0430', \u0438\u043C\u0435\u044E\u0449\u0435\u043C \u0431\u043B\u043E\u043A '\u043B\u043E\u0432\u0443\u0448\u043A\u0430'.",
|
12947
|
+
[260 /* YieldStatementCanNotBeUsedInFinallyClause */]: "\u041A\u043E\u043C\u0430\u043D\u0434\u0430 '\u0432\u044B\u0434\u0430\u0442\u044C' \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0432 \u0431\u043B\u043E\u043A\u0435 '\u043D\u0430\u043F\u043E\u0441\u043B\u0435\u0434\u043E\u043A'.",
|
12948
|
+
[261 /* SubprogramMustReturnValue */]: "\u0424\u0443\u043D\u043A\u0446\u0438\u044F \u0434\u043E\u043B\u0436\u043D\u0430 \u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044C \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435.",
|
12949
|
+
[262 /* ResultVariableCanNotBeUsedInFunctionsUsingYieldStatement */]: "\u041F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u0430\u044F '\u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442' \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0432 \u0444\u0443\u043D\u043A\u0446\u0438\u044F\u0445, \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u044E\u0449\u0438\u0445 \u043A\u043E\u043C\u0430\u043D\u0434\u0443 '\u0432\u044B\u0434\u0430\u0442\u044C'.",
|
12950
|
+
[263 /* TypeAliasReferencesItself */]: "\u0422\u043E\u0436\u0434\u0435\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0439 \u0442\u0438\u043F \u0441\u0441\u044B\u043B\u0430\u0435\u0442\u0441\u044F \u0441\u0430\u043C \u043D\u0430 \u0441\u0435\u0431\u044F.",
|
12951
|
+
[264 /* TypeParameterHasCircularConstraint */]: "\u041E\u0433\u0440\u0430\u043D\u0438\u0447\u0435\u043D\u0438\u0435 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0430 \u043E\u0431\u043E\u0431\u0449\u0435\u043D\u0438\u044F \u043E\u0431\u0440\u0430\u0437\u0443\u0435\u0442 \u0446\u0438\u043A\u043B.",
|
12952
|
+
[265 /* BaseTypeCausesInheritanceCycle */]: "\u0411\u0430\u0437\u043E\u0432\u044B\u0439 \u0442\u0438\u043F \u043F\u0440\u0438\u0432\u043E\u0434\u0438\u0442 \u043A \u0446\u0438\u043A\u043B\u0443 \u043D\u0430\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u043D\u0438\u044F.",
|
12953
|
+
[266 /* OnlyGenericTypesAndFunctionsCanBeSpecialized */]: "\u0422\u043E\u043B\u044C\u043A\u043E \u043E\u0431\u043E\u0431\u0449\u0451\u043D\u043D\u044B\u0435 \u0442\u0438\u043F\u044B \u0438 \u0444\u0443\u043D\u043A\u0446\u0438\u0438 \u043C\u043E\u0433\u0443\u0442 \u043A\u043E\u043D\u043A\u0440\u0435\u0442\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u0442\u044C\u0441\u044F.",
|
12954
|
+
[267 /* Expected0TypeArguments */]: "\u041E\u0436\u0438\u0434\u0430\u043B\u0438\u0441\u044C \u0430\u0440\u0433\u0443\u043C\u0435\u043D\u0442\u044B \u043E\u0431\u043E\u0431\u0449\u0435\u043D\u0438\u044F \u0432 \u043A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u0435 {0}.",
|
12955
|
+
[268 /* ExpectedFrom0To1TypeArguments */]: "\u041E\u0436\u0438\u0434\u0430\u043B\u0438\u0441\u044C \u0430\u0440\u0433\u0443\u043C\u0435\u043D\u0442\u044B \u043E\u0431\u043E\u0431\u0449\u0435\u043D\u0438\u044F \u0432 \u043A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u0435 \u043E\u0442 {0} \u0434\u043E {1}.",
|
12956
|
+
[269 /* Type0IsNotAssignableToConstraint1 */]: "\u0422\u0438\u043F '{0}' \u043D\u0435 \u0441\u043E\u0432\u043C\u0435\u0441\u0442\u0438\u043C \u0441 \u043E\u0433\u0440\u0430\u043D\u0438\u0447\u0435\u043D\u0438\u0435\u043C '{1}'.",
|
12957
|
+
[270 /* VariableIsDeclaredButNotUsed */]: "\u041F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u0430\u044F \u043E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u0430, \u043D\u043E \u043D\u0435 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442\u0441\u044F.",
|
12958
|
+
[271 /* DefaultConstructorArgumentsMustBeNamed */]: "\u0410\u0440\u0433\u0443\u043C\u0435\u043D\u0442\u044B \u043A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440\u0430 \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E \u0434\u043E\u043B\u0436\u043D\u044B \u043F\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044C\u0441\u044F \u0441 \u0443\u043A\u0430\u0437\u0430\u043D\u0438\u0435\u043C \u0438\u043C\u0435\u043D\u0438 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044E\u0449\u0435\u0433\u043E \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0430.",
|
12959
|
+
[272 /* IncorrectBodyOfRedefinableAliasTypeMethod */]: "\u0422\u0435\u043B\u043E \u0438\u0441\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u043D\u043E\u0433\u043E \u043C\u0435\u0442\u043E\u0434\u0430, \u043E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u043D\u043E\u0433\u043E \u0432 \u0442\u043E\u0436\u0434\u0435\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u043C \u0442\u0438\u043F\u0435, \u0434\u043E\u043B\u0436\u043D\u043E \u0441\u043E\u0441\u0442\u043E\u044F\u0442\u044C \u0438\u0437 \u0432\u044B\u0437\u043E\u0432\u0430 \u0431\u0430\u0437\u043E\u0432\u043E\u0433\u043E \u043C\u0435\u0442\u043E\u0434\u0430 \u043E\u0440\u0438\u0433\u0438\u043D\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u0442\u0438\u043F\u0430 \u0441 \u0442\u0430\u043A\u0438\u043C\u0438 \u0436\u0435 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0430\u043C\u0438 \u0438 \u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043C\u044B\u043C \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435\u043C.",
|
12960
|
+
[273 /* TheFollowingDeclarationsAreNotTranslated0 */]: "\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0435 \u043E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u0438\u044F \u043D\u0435 \u043F\u0435\u0440\u0435\u0432\u0435\u0434\u0435\u043D\u044B: {0}.",
|
12961
|
+
[274 /* TheFollowingDeclarationAreNotTranslated0And1More */]: "\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0435 \u043E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u0438\u044F \u043D\u0435 \u043F\u0435\u0440\u0435\u0432\u0435\u0434\u0435\u043D\u044B: {0}\u0438 \u0435\u0449\u0451 {1}.",
|
12962
|
+
[275 /* OperatorFunctionMustNotBeStatic */]: "\u0424\u0443\u043D\u043A\u0446\u0438\u044F \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 \u043D\u0435 \u0434\u043E\u043B\u0436\u043D\u0430 \u0431\u044B\u0442\u044C \u0432\u0441\u0435\u043E\u0431\u0449\u0435\u0439.",
|
12963
|
+
[276 /* OperatorFunction0MustNotHaveParameters */]: "\u0424\u0443\u043D\u043A\u0446\u0438\u044F \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 '{0}' \u043D\u0435 \u0434\u043E\u043B\u0436\u043D\u0430 \u0438\u043C\u0435\u0442\u044C \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u043E\u0432.",
|
12964
|
+
[277 /* OperatorFunction0MustHaveOneParameter */]: "\u0424\u0443\u043D\u043A\u0446\u0438\u044F \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 '{0}' \u0434\u043E\u043B\u0436\u043D\u0430 \u0438\u043C\u0435\u0442\u044C \u043E\u0434\u0438\u043D \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440.",
|
12965
|
+
[278 /* OperatorFunction0MustHaveNoMoreThanOneParameter */]: "\u0424\u0443\u043D\u043A\u0446\u0438\u044F \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 '{0}' \u0434\u043E\u043B\u0436\u043D\u0430 \u0438\u043C\u0435\u0442\u044C \u043D\u0435 \u0431\u043E\u043B\u0435\u0435 \u043E\u0434\u043D\u043E\u0433\u043E \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0430.",
|
12966
|
+
[279 /* CorrespondingRedefinableTypeMemberNotFound */]: "\u041D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044E\u0449\u0438\u0439 \u0431\u0430\u0437\u043E\u0432\u044B\u0439 \u0447\u043B\u0435\u043D \u0442\u0438\u043F\u0430.",
|
12967
|
+
[280 /* ConstructorCanNotBeRedefinable */]: "\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440 \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u0431\u0430\u0437\u043E\u0432\u044B\u043C.",
|
12968
|
+
[281 /* ConstructorCanNotBeRedefined */]: "\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440 \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u0438\u0441\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u043D\u044B\u043C.",
|
12969
|
+
[282 /* AsyncFunctionCanOnlyBeCalledFromFunctionMarkedWithAsyncModifier */]: "\u0410\u0441\u0438\u043D\u0445\u0440\u043E\u043D\u043D\u0430\u044F \u0444\u0443\u043D\u043A\u0446\u0438\u044F \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u0432\u044B\u0437\u0432\u0430\u043D \u0442\u043E\u043B\u044C\u043A\u043E \u0438\u0437 \u0444\u0443\u043D\u043A\u0446\u0438\u0438, \u043F\u043E\u043C\u0435\u0447\u0435\u043D\u043D\u043E\u0439 \u043C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u043E\u043C '\u0430\u0441\u0438\u043D\u0445\u0440\u043E\u043D\u043D\u043E'.",
|
12970
12970
|
[129 /* TagNameExpected */]: "\u041E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u0438\u043C\u044F \u0442\u0435\u0433\u0430",
|
12971
|
-
[
|
12972
|
-
[
|
12973
|
-
[
|
12974
|
-
[
|
12975
|
-
[
|
12976
|
-
[
|
12977
|
-
[
|
12978
|
-
[
|
12979
|
-
[
|
12980
|
-
[
|
12981
|
-
[
|
12982
|
-
[
|
12971
|
+
[283 /* TagNotFound */]: "\u0422\u0435\u0433 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D.",
|
12972
|
+
[284 /* TypeOrFunctionNameExpected */]: "\u041E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u0438\u043C\u044F \u0442\u0438\u043F\u0430 \u0438\u043B\u0438 \u0444\u0443\u043D\u043A\u0446\u0438\u0438.",
|
12973
|
+
[285 /* PackageNameOrAliasExpected */]: "\u041E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u0438\u043C\u044F \u0438\u043B\u0438 \u043F\u0441\u0435\u0432\u0434\u043E\u043D\u0438\u043C \u043F\u0430\u043A\u0435\u0442\u0430.",
|
12974
|
+
[286 /* ExpressionCanBeNone */]: "\u0412\u044B\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u043C\u043E\u0436\u0435\u0442 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 '\u043F\u0443\u0441\u0442\u043E'.",
|
12975
|
+
[287 /* NoneAwareAccessCanNotBeUsedOnTheLeftHandSideOfAssignmentStatement */]: "\u0414\u043E\u0441\u0442\u0443\u043F \u0441 \u0443\u0447\u0451\u0442\u043E\u043C \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F '\u043F\u0443\u0441\u0442\u043E' \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D \u0432 \u043B\u0435\u0432\u043E\u0439 \u0447\u0430\u0441\u0442\u0438 \u043F\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043D\u0438\u044F.",
|
12976
|
+
[288 /* UnreachableCode */]: "\u041D\u0435\u0434\u043E\u0441\u0442\u0438\u0436\u0438\u043C\u044B\u0439 \u043A\u043E\u0434.",
|
12977
|
+
[301 /* 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}.",
|
12978
|
+
[302 /* 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.",
|
12979
|
+
[303 /* 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.",
|
12980
|
+
[304 /* JsonConfigurationValidationError */]: "\u041E\u0448\u0438\u0431\u043A\u0430 \u0432\u0430\u043B\u0438\u0434\u0430\u0446\u0438\u0438 \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 JSON.",
|
12981
|
+
[305 /* StandardPackage0NotFound */]: "\u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442\u043D\u044B\u0439 \u043F\u0430\u043A\u0435\u0442 '{0}' \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D.",
|
12982
|
+
[306 /* Declaration0NotFoundInStandardPackage1 */]: "\u041E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u0438\u0435 '{0}' \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E \u0432 \u0441\u0442\u0430\u043D\u0434\u0430\u0440\u0442\u043D\u043E\u043C \u043F\u0430\u043A\u0435\u0442\u0435 '{1}'."
|
12983
12983
|
};
|
12984
12984
|
|
12985
12985
|
// source/analysis/Localization.ts
|
@@ -13089,7 +13089,7 @@ var AnalyzedTranslationPackage = class {
|
|
13089
13089
|
result = GetSingleTranslationTargetResult.valid(member);
|
13090
13090
|
} else {
|
13091
13091
|
result = GetSingleTranslationTargetResult.invalid([
|
13092
|
-
this._analyzer.createNodeDiagnostic(
|
13092
|
+
this._analyzer.createNodeDiagnostic(226 /* VariableNotFound */, node.sourceName)
|
13093
13093
|
]);
|
13094
13094
|
}
|
13095
13095
|
return result;
|
@@ -13123,7 +13123,7 @@ var AnalyzedTranslationPackage = class {
|
|
13123
13123
|
}
|
13124
13124
|
} else {
|
13125
13125
|
result = GetMultipleTranslationTargetsResult.invalid([
|
13126
|
-
this._analyzer.createNodeDiagnostic(
|
13126
|
+
this._analyzer.createNodeDiagnostic(227 /* FunctionNotFound */, node.sourceName)
|
13127
13127
|
]);
|
13128
13128
|
}
|
13129
13129
|
return result;
|
@@ -13140,14 +13140,14 @@ var AnalyzedTranslationPackage = class {
|
|
13140
13140
|
result = GetSingleTranslationTargetResult.valid(suitableMember);
|
13141
13141
|
} else {
|
13142
13142
|
result = GetSingleTranslationTargetResult.invalid([this._analyzer.createNodeDiagnostic(
|
13143
|
-
|
13143
|
+
223 /* TypeWithArity0NotFound */,
|
13144
13144
|
node.sourceName,
|
13145
13145
|
[arity.toString()]
|
13146
13146
|
)]);
|
13147
13147
|
}
|
13148
13148
|
} else {
|
13149
13149
|
result = GetSingleTranslationTargetResult.invalid([this._analyzer.createNodeDiagnostic(
|
13150
|
-
|
13150
|
+
222 /* UnknownType */,
|
13151
13151
|
node.sourceName
|
13152
13152
|
)]);
|
13153
13153
|
}
|
@@ -13166,7 +13166,7 @@ var AnalyzedTranslationPackage = class {
|
|
13166
13166
|
} else {
|
13167
13167
|
result = GetSingleTranslationTargetResult.invalid([
|
13168
13168
|
this._analyzer.createNodeDiagnostic(
|
13169
|
-
|
13169
|
+
223 /* TypeWithArity0NotFound */,
|
13170
13170
|
node.sourceName,
|
13171
13171
|
[arity.toString()]
|
13172
13172
|
)
|
@@ -13174,7 +13174,7 @@ var AnalyzedTranslationPackage = class {
|
|
13174
13174
|
}
|
13175
13175
|
} else {
|
13176
13176
|
result = GetSingleTranslationTargetResult.invalid([
|
13177
|
-
this._analyzer.createNodeDiagnostic(
|
13177
|
+
this._analyzer.createNodeDiagnostic(222 /* UnknownType */, node.sourceName)
|
13178
13178
|
]);
|
13179
13179
|
}
|
13180
13180
|
return result;
|
@@ -13193,7 +13193,7 @@ var AnalyzedTranslationPackage = class {
|
|
13193
13193
|
result = GetMultipleTranslationTargetsResult.valid(members);
|
13194
13194
|
} else {
|
13195
13195
|
result = GetMultipleTranslationTargetsResult.invalid([
|
13196
|
-
this._analyzer.createNodeDiagnostic(
|
13196
|
+
this._analyzer.createNodeDiagnostic(226 /* VariableNotFound */, node.sourceName)
|
13197
13197
|
]);
|
13198
13198
|
}
|
13199
13199
|
return result;
|
@@ -13232,7 +13232,7 @@ var AnalyzedTranslationPackage = class {
|
|
13232
13232
|
}
|
13233
13233
|
} else {
|
13234
13234
|
result = GetMultipleTranslationTargetsResult.invalid([
|
13235
|
-
this._analyzer.createNodeDiagnostic(
|
13235
|
+
this._analyzer.createNodeDiagnostic(227 /* FunctionNotFound */, node.sourceName)
|
13236
13236
|
]);
|
13237
13237
|
}
|
13238
13238
|
return result;
|
@@ -13266,7 +13266,7 @@ var AnalyzedTranslationPackage = class {
|
|
13266
13266
|
}
|
13267
13267
|
} else {
|
13268
13268
|
result = GetMultipleTranslationTargetsResult.invalid([
|
13269
|
-
this._analyzer.createNodeDiagnostic(
|
13269
|
+
this._analyzer.createNodeDiagnostic(207 /* ConstructorNotFound */, node.creationKeyword)
|
13270
13270
|
]);
|
13271
13271
|
}
|
13272
13272
|
return result;
|
@@ -13300,7 +13300,7 @@ var AnalyzedTranslationPackage = class {
|
|
13300
13300
|
}
|
13301
13301
|
} else {
|
13302
13302
|
result = GetMultipleTranslationTargetsResult.invalid([
|
13303
|
-
this._analyzer.createNodeDiagnostic(
|
13303
|
+
this._analyzer.createNodeDiagnostic(210 /* IndexerNotFound */, node.sourceParameterClause)
|
13304
13304
|
]);
|
13305
13305
|
}
|
13306
13306
|
return result;
|
@@ -13869,7 +13869,7 @@ var AnalyzedTranslationPackage = class {
|
|
13869
13869
|
createAmbiguousAccessDiagnostic(entities, node) {
|
13870
13870
|
const displayService = new DisplayService(this._analyzer, this._translatedPackage.getLocale());
|
13871
13871
|
const typesText = entities.map((e) => displayService.displayEntity(e)).join("\n");
|
13872
|
-
const diagnosticData = DiagnosticData.withCode(
|
13872
|
+
const diagnosticData = DiagnosticData.withCode(232 /* AmbiguousAccess0 */, ["\n" + typesText]);
|
13873
13873
|
const location = this._analyzer.createNodeDiagnosticLocation(node);
|
13874
13874
|
return new Diagnostic(diagnosticData, location);
|
13875
13875
|
}
|
@@ -18195,7 +18195,7 @@ var JsonConfigurationValidator = class _JsonConfigurationValidator {
|
|
18195
18195
|
addDiagnostics(acceptor, serviceDiagnostics, document) {
|
18196
18196
|
for (const serviceDiagnostic of serviceDiagnostics) {
|
18197
18197
|
const data = new DiagnosticData(
|
18198
|
-
|
18198
|
+
304 /* JsonConfigurationValidationError */,
|
18199
18199
|
serviceDiagnostic.message,
|
18200
18200
|
translateSeverity(serviceDiagnostic.severity),
|
18201
18201
|
0 /* None */
|
@@ -19048,13 +19048,13 @@ var TextParser = class {
|
|
19048
19048
|
let code;
|
19049
19049
|
switch (token.kind) {
|
19050
19050
|
case 5 /* MultiLineComment */: {
|
19051
|
-
code =
|
19051
|
+
code = 1 /* UnterminatedMultiLineComment */;
|
19052
19052
|
break;
|
19053
19053
|
}
|
19054
19054
|
case 6 /* IntegerLiteral */:
|
19055
19055
|
case 7 /* RealLiteral */:
|
19056
19056
|
case 8 /* MeasureLiteral */: {
|
19057
|
-
code =
|
19057
|
+
code = 2 /* UnterminatedNumber */;
|
19058
19058
|
break;
|
19059
19059
|
}
|
19060
19060
|
case 10 /* TextLiteral */:
|
@@ -19063,15 +19063,15 @@ var TextParser = class {
|
|
19063
19063
|
case 13 /* TextTemplateTail */:
|
19064
19064
|
case 14 /* LocalizableTextLiteral */:
|
19065
19065
|
case 15 /* LocalizableTextTemplateHead */: {
|
19066
|
-
code =
|
19066
|
+
code = 3 /* UnterminatedTextOrTextTemplate */;
|
19067
19067
|
break;
|
19068
19068
|
}
|
19069
19069
|
case 70 /* QuotedIdentifier */: {
|
19070
|
-
code =
|
19070
|
+
code = 4 /* UnterminatedQuotedIdentifier */;
|
19071
19071
|
break;
|
19072
19072
|
}
|
19073
19073
|
default: {
|
19074
|
-
code =
|
19074
|
+
code = 0 /* UnterminatedToken */;
|
19075
19075
|
break;
|
19076
19076
|
}
|
19077
19077
|
}
|
@@ -22479,7 +22479,7 @@ var FSTreeCompilationLoader = class {
|
|
22479
22479
|
}
|
22480
22480
|
case "file": {
|
22481
22481
|
this._diagnostics?.addDiagnostic(new Diagnostic(DiagnosticData.withCode(
|
22482
|
-
|
22482
|
+
302 /* SourceFile0IsNotPartOfThePackageAndWontBeLoaded */,
|
22483
22483
|
[fileOrDirectory.uri.toString()],
|
22484
22484
|
1 /* Warning */
|
22485
22485
|
), void 0));
|
@@ -30325,7 +30325,7 @@ var ArgumentToParameterMatcher = class {
|
|
30325
30325
|
} else {
|
30326
30326
|
this.addArgumentDiagnostic(
|
30327
30327
|
argument,
|
30328
|
-
|
30328
|
+
216 /* ParameterForPositionalArgumentNotFound */,
|
30329
30329
|
argumentArrangementDiagnostics
|
30330
30330
|
);
|
30331
30331
|
}
|
@@ -30346,7 +30346,7 @@ var ArgumentToParameterMatcher = class {
|
|
30346
30346
|
if (argumentName === void 0) {
|
30347
30347
|
this.addArgumentDiagnostic(
|
30348
30348
|
argument,
|
30349
|
-
|
30349
|
+
218 /* NamedArgumentExpectedButPositionalArgumentFound */,
|
30350
30350
|
argumentArrangementDiagnostics
|
30351
30351
|
);
|
30352
30352
|
} else {
|
@@ -30355,7 +30355,7 @@ var ArgumentToParameterMatcher = class {
|
|
30355
30355
|
if (matchedParameters.has(parameter)) {
|
30356
30356
|
this.addArgumentDiagnostic(
|
30357
30357
|
argument,
|
30358
|
-
|
30358
|
+
219 /* ArgumentForParameterAlreadyAssigned */,
|
30359
30359
|
argumentArrangementDiagnostics
|
30360
30360
|
);
|
30361
30361
|
} else {
|
@@ -30365,7 +30365,7 @@ var ArgumentToParameterMatcher = class {
|
|
30365
30365
|
} else {
|
30366
30366
|
this.addArgumentDiagnostic(
|
30367
30367
|
argument,
|
30368
|
-
|
30368
|
+
217 /* ParameterWithGivenNameNotFound */,
|
30369
30369
|
argumentArrangementDiagnostics
|
30370
30370
|
);
|
30371
30371
|
}
|
@@ -30911,23 +30911,23 @@ var Resolver2 = class {
|
|
30911
30911
|
let targetType = this._analyzer.getTargetTypeOfExpression(this._node, this._targetTypeHint);
|
30912
30912
|
if (targetType === void 0) {
|
30913
30913
|
return new Meaning_unresolved([
|
30914
|
-
this._analyzer.createNodeDiagnostic(
|
30914
|
+
this._analyzer.createNodeDiagnostic(230 /* CannotDetermineTargetTypeToCallTheConstructor */, this._node)
|
30915
30915
|
]);
|
30916
30916
|
}
|
30917
30917
|
targetType = this._analyzer.excludeNoneFromType(targetType);
|
30918
30918
|
if (targetType.kind === "unresolved") {
|
30919
30919
|
return new Meaning_unresolved([
|
30920
|
-
this._analyzer.createNodeDiagnostic(
|
30920
|
+
this._analyzer.createNodeDiagnostic(214 /* CannotCreateInstanceOfUnresolvedType */, this._node)
|
30921
30921
|
]);
|
30922
30922
|
}
|
30923
30923
|
if (targetType.kind === "parameter") {
|
30924
30924
|
return new Meaning_unresolved([
|
30925
|
-
this._analyzer.createNodeDiagnostic(
|
30925
|
+
this._analyzer.createNodeDiagnostic(213 /* CannotCreateInstanceOfTypeParameter */, this._node)
|
30926
30926
|
]);
|
30927
30927
|
}
|
30928
30928
|
if (targetType.kind === "structured" && targetType.isAspect()) {
|
30929
30929
|
return new Meaning_unresolved([
|
30930
|
-
this._analyzer.createNodeDiagnostic(
|
30930
|
+
this._analyzer.createNodeDiagnostic(212 /* CannotCreateInstanceOfAspect */, this._node)
|
30931
30931
|
]);
|
30932
30932
|
}
|
30933
30933
|
const semanticContext = this._analyzer.semanticContext.containing(this._node);
|
@@ -30939,7 +30939,7 @@ var Resolver2 = class {
|
|
30939
30939
|
const constructors = typeMemberLookup.getConstructors(semanticContext.getHidingMatcher(), semanticContext.getScopeLookup());
|
30940
30940
|
if (constructors.length === 0) {
|
30941
30941
|
return new Meaning_unresolved([this._analyzer.createNodeDiagnostic(
|
30942
|
-
|
30942
|
+
207 /* ConstructorNotFound */,
|
30943
30943
|
this._node
|
30944
30944
|
)]);
|
30945
30945
|
}
|
@@ -31015,7 +31015,7 @@ var Resolver3 = class {
|
|
31015
31015
|
const constructors = typeMemberLookup.getConstructors(hidingMatcher);
|
31016
31016
|
if (constructors.length === 0) {
|
31017
31017
|
return new Meaning_unresolved2(
|
31018
|
-
this._analyzer.createNodeDiagnostic(
|
31018
|
+
this._analyzer.createNodeDiagnostic(207 /* ConstructorNotFound */, this._node)
|
31019
31019
|
);
|
31020
31020
|
}
|
31021
31021
|
if (constructors.length === 1) {
|
@@ -31035,7 +31035,7 @@ var Resolver3 = class {
|
|
31035
31035
|
});
|
31036
31036
|
if (overriddenObjectMethod === void 0) {
|
31037
31037
|
return new Meaning_unresolved2(
|
31038
|
-
this._analyzer.createNodeDiagnostic(
|
31038
|
+
this._analyzer.createNodeDiagnostic(245 /* OverriddenMethodNotFound */, this._node)
|
31039
31039
|
);
|
31040
31040
|
}
|
31041
31041
|
return new Meaning_overriddenMethodAccess(overriddenObjectMethod);
|
@@ -31047,7 +31047,7 @@ var Resolver3 = class {
|
|
31047
31047
|
});
|
31048
31048
|
if (overriddenObjectTypeOperator === void 0) {
|
31049
31049
|
return new Meaning_unresolved2(
|
31050
|
-
this._analyzer.createNodeDiagnostic(
|
31050
|
+
this._analyzer.createNodeDiagnostic(245 /* OverriddenMethodNotFound */, this._node)
|
31051
31051
|
);
|
31052
31052
|
}
|
31053
31053
|
return new Meaning_overriddenOperatorAccess(overriddenObjectTypeOperator);
|
@@ -31066,7 +31066,7 @@ var Resolver3 = class {
|
|
31066
31066
|
}
|
31067
31067
|
invalidContextMeaning() {
|
31068
31068
|
return new Meaning_unresolved2(
|
31069
|
-
this._analyzer.createNodeDiagnostic(
|
31069
|
+
this._analyzer.createNodeDiagnostic(244 /* BaseCannotBeUsedInThisContext */, this._node)
|
31070
31070
|
);
|
31071
31071
|
}
|
31072
31072
|
getBaseOrAliasedType(typeEntity) {
|
@@ -31197,24 +31197,24 @@ var Resolver4 = class {
|
|
31197
31197
|
const type = this._analyzer.type.ofExpression(this.callee);
|
31198
31198
|
if (type.kind !== "unresolved") {
|
31199
31199
|
const node = this.getNodeForDiagnostics();
|
31200
|
-
return new Meaning_unresolved3([this._analyzer.createNodeDiagnostic(
|
31200
|
+
return new Meaning_unresolved3([this._analyzer.createNodeDiagnostic(215 /* ExpressionIsNotCallable */, node)]);
|
31201
31201
|
}
|
31202
31202
|
return new Meaning_unresolved3([]);
|
31203
31203
|
}
|
31204
31204
|
resolveConstructorCallExpressionMeaning(type) {
|
31205
31205
|
if (type.kind === "unresolved") {
|
31206
31206
|
return new Meaning_unresolved3([
|
31207
|
-
this._analyzer.createNodeDiagnostic(
|
31207
|
+
this._analyzer.createNodeDiagnostic(214 /* CannotCreateInstanceOfUnresolvedType */, this._node)
|
31208
31208
|
]);
|
31209
31209
|
}
|
31210
31210
|
if (type.kind === "parameter") {
|
31211
31211
|
return new Meaning_unresolved3([
|
31212
|
-
this._analyzer.createNodeDiagnostic(
|
31212
|
+
this._analyzer.createNodeDiagnostic(213 /* CannotCreateInstanceOfTypeParameter */, this.callee)
|
31213
31213
|
]);
|
31214
31214
|
}
|
31215
31215
|
if (type.kind === "structured" && type.isAspect()) {
|
31216
31216
|
return new Meaning_unresolved3([
|
31217
|
-
this._analyzer.createNodeDiagnostic(
|
31217
|
+
this._analyzer.createNodeDiagnostic(212 /* CannotCreateInstanceOfAspect */, this.callee)
|
31218
31218
|
]);
|
31219
31219
|
}
|
31220
31220
|
const semanticContext = this._analyzer.semanticContext.containing(this._node);
|
@@ -31222,7 +31222,7 @@ var Resolver4 = class {
|
|
31222
31222
|
const constructors = typeMemberLookup.getConstructors(semanticContext.getHidingMatcher(), semanticContext.getScopeLookup());
|
31223
31223
|
if (constructors.length === 0) {
|
31224
31224
|
return new Meaning_unresolved3([this._analyzer.createNodeDiagnostic(
|
31225
|
-
|
31225
|
+
207 /* ConstructorNotFound */,
|
31226
31226
|
this._node
|
31227
31227
|
)]);
|
31228
31228
|
}
|
@@ -31415,7 +31415,7 @@ var Resolver5 = class {
|
|
31415
31415
|
return new Meaning_resolved(operator, accessKind);
|
31416
31416
|
}
|
31417
31417
|
return new Meaning_unresolved4(this._analyzer.createNodeDiagnostic(
|
31418
|
-
|
31418
|
+
209 /* DereferenceOperatorOfTheSpecifiedTypeNotFound */,
|
31419
31419
|
this._node.caretToken
|
31420
31420
|
));
|
31421
31421
|
}
|
@@ -31651,7 +31651,7 @@ var Resolver6 = class {
|
|
31651
31651
|
return new ResolutionResult(new Meaning_mixedAmbiguousAccess(namedDeclarations), diagnostic);
|
31652
31652
|
}
|
31653
31653
|
return new ResolutionResult(new Meaning_unresolved5(), this._analyzer.createNodeDiagnostic(
|
31654
|
-
|
31654
|
+
221 /* UnknownVariable */,
|
31655
31655
|
this._node
|
31656
31656
|
));
|
31657
31657
|
}
|
@@ -32055,7 +32055,7 @@ var Resolver7 = class {
|
|
32055
32055
|
return new ResolutionResult2(new Meaning_resolved2(indexers, suitableIndexers, accessKind), diagnostic);
|
32056
32056
|
}
|
32057
32057
|
return new ResolutionResult2(new Meaning_unresolved6(), this._analyzer.createSourceFileRangeDiagnostic(
|
32058
|
-
|
32058
|
+
208 /* IndexerOfTheSpecifiedTypeNotFound */,
|
32059
32059
|
this.getArgumentsRangeWithBrackets(),
|
32060
32060
|
this._node
|
32061
32061
|
));
|
@@ -32349,7 +32349,7 @@ var Resolver8 = class {
|
|
32349
32349
|
}
|
32350
32350
|
return new ResolutionResult3(
|
32351
32351
|
new Meaning_unresolved7(),
|
32352
|
-
this._analyzer.createNodeDiagnostic(
|
32352
|
+
this._analyzer.createNodeDiagnostic(205 /* PackageMemberNotFound */, this._node.propertyName)
|
32353
32353
|
);
|
32354
32354
|
}
|
32355
32355
|
resolvePackageNameSegmentAccessMeaning(packageTreeNode) {
|
@@ -32362,7 +32362,7 @@ var Resolver8 = class {
|
|
32362
32362
|
}
|
32363
32363
|
return new ResolutionResult3(
|
32364
32364
|
new Meaning_unresolved7(),
|
32365
|
-
this._analyzer.createNodeDiagnostic(
|
32365
|
+
this._analyzer.createNodeDiagnostic(204 /* PackageMemberOrPackageNotFound */, this._node.propertyName)
|
32366
32366
|
);
|
32367
32367
|
}
|
32368
32368
|
createAccessedFunctionFromPackageMember(entity) {
|
@@ -32389,7 +32389,7 @@ var Resolver8 = class {
|
|
32389
32389
|
return new ResolutionResult3(
|
32390
32390
|
new Meaning_unresolved7(),
|
32391
32391
|
this._analyzer.createNodeDiagnostic(
|
32392
|
-
|
32392
|
+
211 /* CannotAccessStaticMembersOnTypeParameter */,
|
32393
32393
|
this._node.propertyName
|
32394
32394
|
)
|
32395
32395
|
);
|
@@ -32407,7 +32407,7 @@ var Resolver8 = class {
|
|
32407
32407
|
if (namedMembers.length === 0) {
|
32408
32408
|
return new ResolutionResult3(
|
32409
32409
|
new Meaning_unresolved7(),
|
32410
|
-
this._analyzer.createNodeDiagnostic(
|
32410
|
+
this._analyzer.createNodeDiagnostic(206 /* TypeMemberNotFound */, this._node.propertyName)
|
32411
32411
|
);
|
32412
32412
|
}
|
32413
32413
|
if (namedMembers.length === 1) {
|
@@ -32501,7 +32501,7 @@ var Resolver8 = class {
|
|
32501
32501
|
if (namedMembers.length === 0) {
|
32502
32502
|
return new ResolutionResult3(
|
32503
32503
|
new Meaning_unresolved7(),
|
32504
|
-
this._analyzer.createNodeDiagnostic(
|
32504
|
+
this._analyzer.createNodeDiagnostic(206 /* TypeMemberNotFound */, this._node.propertyName)
|
32505
32505
|
);
|
32506
32506
|
}
|
32507
32507
|
if (namedMembers.length === 1) {
|
@@ -32841,7 +32841,7 @@ var NamedTypeResolver = class {
|
|
32841
32841
|
);
|
32842
32842
|
}
|
32843
32843
|
if (typesOrContainersWithTypes.length === 0) {
|
32844
|
-
diagnostics.push(this._analyzer.createNodeDiagnostic(
|
32844
|
+
diagnostics.push(this._analyzer.createNodeDiagnostic(236 /* NameOfTypeOrPackageNotFound */, qualifier));
|
32845
32845
|
break;
|
32846
32846
|
}
|
32847
32847
|
if (typesOrContainersWithTypes.length === 1) {
|
@@ -32865,7 +32865,7 @@ var NamedTypeResolver = class {
|
|
32865
32865
|
resolvedQualifiers.push(resolvedQualifier);
|
32866
32866
|
} else {
|
32867
32867
|
diagnostics.push(this._analyzer.createNodeDiagnostic(
|
32868
|
-
|
32868
|
+
234 /* ExpectedPackageNameOrAliasButFoundType */,
|
32869
32869
|
qualifier
|
32870
32870
|
));
|
32871
32871
|
}
|
@@ -32877,7 +32877,7 @@ var NamedTypeResolver = class {
|
|
32877
32877
|
}
|
32878
32878
|
if (diagnostics.length === 0 && types.length === 0) {
|
32879
32879
|
const node = qualifiers.length > 0 ? qualifiers[qualifiers.length - 1] : this._node;
|
32880
|
-
diagnostics.push(this._analyzer.createNodeDiagnostic(
|
32880
|
+
diagnostics.push(this._analyzer.createNodeDiagnostic(235 /* TypeExpected */, node));
|
32881
32881
|
}
|
32882
32882
|
return new NamedTypeResolutionResult(types, resolvedQualifiers, diagnostics, ambiguousDeclarations);
|
32883
32883
|
}
|
@@ -32958,7 +32958,7 @@ var NamedTypeResolver = class {
|
|
32958
32958
|
Debug.never(d.value);
|
32959
32959
|
}
|
32960
32960
|
}).join("\n");
|
32961
|
-
const data = DiagnosticData.withCode(
|
32961
|
+
const data = DiagnosticData.withCode(232 /* AmbiguousAccess0 */, ["\n" + typesText]);
|
32962
32962
|
const location = this._analyzer.createNodeDiagnosticLocation(node);
|
32963
32963
|
return new Diagnostic(data, location);
|
32964
32964
|
}
|
@@ -33126,7 +33126,7 @@ var Resolver9 = class {
|
|
33126
33126
|
const constructors = typeMemberLookup.getConstructors(hidingMatcher);
|
33127
33127
|
if (constructors.length === 0) {
|
33128
33128
|
return new Meaning_unresolved8(this._analyzer.createNodeDiagnostic(
|
33129
|
-
|
33129
|
+
207 /* ConstructorNotFound */,
|
33130
33130
|
this._node
|
33131
33131
|
));
|
33132
33132
|
}
|
@@ -33155,7 +33155,7 @@ var Resolver9 = class {
|
|
33155
33155
|
}
|
33156
33156
|
invalidContextMeaning() {
|
33157
33157
|
return new Meaning_unresolved8(this._analyzer.createNodeDiagnostic(
|
33158
|
-
|
33158
|
+
246 /* ObjectCannotBeUsedInThisContext */,
|
33159
33159
|
this._node
|
33160
33160
|
));
|
33161
33161
|
}
|
@@ -35498,7 +35498,7 @@ var Resolver11 = class {
|
|
35498
35498
|
previousPackageRelatedQualifier = resolvedQualifier;
|
35499
35499
|
} else {
|
35500
35500
|
if (i !== qualifiers.length - 1) {
|
35501
|
-
diagnostic = this._analyzer.createNodeDiagnostic(
|
35501
|
+
diagnostic = this._analyzer.createNodeDiagnostic(285 /* PackageNameOrAliasExpected */, qualifier);
|
35502
35502
|
}
|
35503
35503
|
break;
|
35504
35504
|
}
|
@@ -35510,7 +35510,7 @@ var Resolver11 = class {
|
|
35510
35510
|
const lastQualifierIdentifier = qualifiers[qualifiers.length - 1];
|
35511
35511
|
if (!(lastQualifier.kind === "type" || lastQualifier.kind === "function")) {
|
35512
35512
|
const diagnostic2 = this._analyzer.createNodeDiagnostic(
|
35513
|
-
|
35513
|
+
284 /* TypeOrFunctionNameExpected */,
|
35514
35514
|
lastQualifierIdentifier
|
35515
35515
|
);
|
35516
35516
|
return new ResolutionResult4(new Meaning_unresolved9(), resolvedQualifiers, diagnostic2);
|
@@ -35529,7 +35529,7 @@ var Resolver11 = class {
|
|
35529
35529
|
let ambiguousDeclarations;
|
35530
35530
|
const declarations = this.semanticContext.getScopeLookup().getNamedDeclarationsByName(name);
|
35531
35531
|
if (declarations.length === 0) {
|
35532
|
-
diagnostic = this._analyzer.createNodeDiagnostic(
|
35532
|
+
diagnostic = this._analyzer.createNodeDiagnostic(283 /* TagNotFound */, nodeForDiagnostic);
|
35533
35533
|
} else if (declarations.length === 1) {
|
35534
35534
|
const declaration = declarations[0];
|
35535
35535
|
switch (declaration.value.kind) {
|
@@ -35550,7 +35550,7 @@ var Resolver11 = class {
|
|
35550
35550
|
break;
|
35551
35551
|
case "variable":
|
35552
35552
|
diagnostic = this._analyzer.createNodeDiagnostic(
|
35553
|
-
|
35553
|
+
284 /* TypeOrFunctionNameExpected */,
|
35554
35554
|
nodeForDiagnostic
|
35555
35555
|
);
|
35556
35556
|
break;
|
@@ -35599,12 +35599,12 @@ var Resolver11 = class {
|
|
35599
35599
|
if (resolvedQualifier === void 0) {
|
35600
35600
|
const packageEntity = qualifier.kind === "package-alias" ? qualifier.packageAlias.getPackage() : qualifier.packageTreeNode.package?.value;
|
35601
35601
|
if (packageEntity === void 0) {
|
35602
|
-
diagnostic = this._analyzer.createNodeDiagnostic(
|
35602
|
+
diagnostic = this._analyzer.createNodeDiagnostic(283 /* TagNotFound */, nodeForDiagnostic);
|
35603
35603
|
} else {
|
35604
35604
|
const lookup = new PackageMemberLookup(packageEntity, this.semanticContext.getLocalizationContext());
|
35605
35605
|
const declarations = lookup.getNamedMembersByName(name, this.semanticContext.getHidingMatcher());
|
35606
35606
|
if (declarations.length === 0) {
|
35607
|
-
diagnostic = this._analyzer.createNodeDiagnostic(
|
35607
|
+
diagnostic = this._analyzer.createNodeDiagnostic(283 /* TagNotFound */, nodeForDiagnostic);
|
35608
35608
|
} else if (declarations.length === 1) {
|
35609
35609
|
const declaration = declarations[0];
|
35610
35610
|
switch (declaration.value.kind) {
|
@@ -35622,7 +35622,7 @@ var Resolver11 = class {
|
|
35622
35622
|
break;
|
35623
35623
|
case 0 /* Variable */:
|
35624
35624
|
diagnostic = this._analyzer.createNodeDiagnostic(
|
35625
|
-
|
35625
|
+
284 /* TypeOrFunctionNameExpected */,
|
35626
35626
|
nodeForDiagnostic
|
35627
35627
|
);
|
35628
35628
|
break;
|
@@ -35685,7 +35685,7 @@ var Resolver11 = class {
|
|
35685
35685
|
return new ResolutionResult4(
|
35686
35686
|
new Meaning_unresolved9(),
|
35687
35687
|
qualifiers,
|
35688
|
-
this._analyzer.createNodeDiagnostic(
|
35688
|
+
this._analyzer.createNodeDiagnostic(207 /* ConstructorNotFound */, this._node)
|
35689
35689
|
);
|
35690
35690
|
}
|
35691
35691
|
if (constructors.length === 1) {
|
@@ -36542,7 +36542,7 @@ var GraphBuilder = class {
|
|
36542
36542
|
}
|
36543
36543
|
addUnreachableCodeDiagnostic(node) {
|
36544
36544
|
const data = DiagnosticData.withCode(
|
36545
|
-
|
36545
|
+
288 /* UnreachableCode */,
|
36546
36546
|
[],
|
36547
36547
|
3 /* Hint */,
|
36548
36548
|
2 /* Unreachable */
|
@@ -37207,7 +37207,7 @@ var UserDefinableBinaryOperatorResolver = class {
|
|
37207
37207
|
}
|
37208
37208
|
const displayService = new DisplayService(this._analyzer, lctx);
|
37209
37209
|
const diagnostic = this._analyzer.createNodeDiagnostic(
|
37210
|
-
|
37210
|
+
239 /* Operator0IsNotDefinedForTypes1And2 */,
|
37211
37211
|
this._operatorNodeForDiagnostic,
|
37212
37212
|
[
|
37213
37213
|
displayService.displayOperatorKind(this._operatorKind, lctx.originalLocale),
|
@@ -37329,7 +37329,7 @@ var UserDefinableUnaryOperatorResolver = class {
|
|
37329
37329
|
}
|
37330
37330
|
const displayService = new DisplayService(this._analyzer, lctx);
|
37331
37331
|
const diagnostic = this._analyzer.createNodeDiagnostic(
|
37332
|
-
|
37332
|
+
240 /* Operator0IsNotDefinedForType1 */,
|
37333
37333
|
this._node.operator,
|
37334
37334
|
[
|
37335
37335
|
displayService.displayOperatorKind(this.operatorKind, lctx.originalLocale),
|
@@ -37391,7 +37391,7 @@ var Analyzer2 = class _Analyzer {
|
|
37391
37391
|
const systemPackage = this.getPackageEntity(systemPackageName);
|
37392
37392
|
if (systemPackage === void 0) {
|
37393
37393
|
throw new WellKnownDeclarationsLoadError(new Diagnostic(DiagnosticData.withCode(
|
37394
|
-
|
37394
|
+
305 /* StandardPackage0NotFound */,
|
37395
37395
|
[systemPackageName.toString()]
|
37396
37396
|
), void 0));
|
37397
37397
|
}
|
@@ -38361,7 +38361,7 @@ var Analyzer2 = class _Analyzer {
|
|
38361
38361
|
const type = resolutionResult.types.find((t) => t.value.getArity() === arity);
|
38362
38362
|
if (type === void 0) {
|
38363
38363
|
result = new WithDiagnostics_error([this.createNodeDiagnostic(
|
38364
|
-
|
38364
|
+
223 /* TypeWithArity0NotFound */,
|
38365
38365
|
node.extendedTypeClause,
|
38366
38366
|
[arity.toString()]
|
38367
38367
|
)]);
|
@@ -38739,7 +38739,7 @@ var Analyzer2 = class _Analyzer {
|
|
38739
38739
|
const firstStatement = block.expressionOrStatementList?.statements.first();
|
38740
38740
|
if (firstStatement?.kind !== 106 /* ExpressionStatement */) {
|
38741
38741
|
diagnostics?.addDiagnostic(this.createNodeDiagnostic(
|
38742
|
-
|
38742
|
+
272 /* IncorrectBodyOfRedefinableAliasTypeMethod */,
|
38743
38743
|
node.block.openBraceToken
|
38744
38744
|
));
|
38745
38745
|
return void 0;
|
@@ -38750,7 +38750,7 @@ var Analyzer2 = class _Analyzer {
|
|
38750
38750
|
}
|
38751
38751
|
if (expression.kind !== 69 /* CallExpression */) {
|
38752
38752
|
diagnostics?.addDiagnostic(this.createNodeDiagnostic(
|
38753
|
-
|
38753
|
+
272 /* IncorrectBodyOfRedefinableAliasTypeMethod */,
|
38754
38754
|
node.block.openBraceToken
|
38755
38755
|
));
|
38756
38756
|
return void 0;
|
@@ -38765,7 +38765,7 @@ var Analyzer2 = class _Analyzer {
|
|
38765
38765
|
case "constructor-call":
|
38766
38766
|
case "operator-call":
|
38767
38767
|
diagnostics?.addDiagnostic(this.createNodeDiagnostic(
|
38768
|
-
|
38768
|
+
272 /* IncorrectBodyOfRedefinableAliasTypeMethod */,
|
38769
38769
|
expression
|
38770
38770
|
));
|
38771
38771
|
return void 0;
|
@@ -38777,7 +38777,7 @@ var Analyzer2 = class _Analyzer {
|
|
38777
38777
|
const calledFunctionEntity = calledFunction.getEntity();
|
38778
38778
|
if (calledFunctionEntity.subkind !== "method" || !calledFunctionEntity.isRedefinable()) {
|
38779
38779
|
diagnostics?.addDiagnostic(this.createNodeDiagnostic(
|
38780
|
-
|
38780
|
+
272 /* IncorrectBodyOfRedefinableAliasTypeMethod */,
|
38781
38781
|
expression
|
38782
38782
|
));
|
38783
38783
|
return void 0;
|
@@ -38798,9 +38798,9 @@ var Analyzer2 = class _Analyzer {
|
|
38798
38798
|
if (entities.length > 0) {
|
38799
38799
|
const displayService = new DisplayService(this, lctx);
|
38800
38800
|
const typesText = entities.map((e) => displayService.displayEntity(e.value, e.localization)).join("\n");
|
38801
|
-
data = DiagnosticData.withCode(
|
38801
|
+
data = DiagnosticData.withCode(232 /* AmbiguousAccess0 */, ["\n" + typesText]);
|
38802
38802
|
} else {
|
38803
|
-
data = DiagnosticData.withCode(
|
38803
|
+
data = DiagnosticData.withCode(231 /* AmbiguousAccess */);
|
38804
38804
|
}
|
38805
38805
|
const location = this.createNodeDiagnosticLocation(node);
|
38806
38806
|
return new Diagnostic(data, location);
|
@@ -38813,9 +38813,9 @@ var Analyzer2 = class _Analyzer {
|
|
38813
38813
|
const declaration = new FunctionDeclaration_accessedFunction(m.value, m.localization);
|
38814
38814
|
return displayService.displayFunctionDeclaration(declaration);
|
38815
38815
|
}).join("\n");
|
38816
|
-
data = DiagnosticData.withCode(
|
38816
|
+
data = DiagnosticData.withCode(232 /* AmbiguousAccess0 */, ["\n" + functionsText]);
|
38817
38817
|
} else {
|
38818
|
-
data = DiagnosticData.withCode(
|
38818
|
+
data = DiagnosticData.withCode(231 /* AmbiguousAccess */);
|
38819
38819
|
}
|
38820
38820
|
const location = this.createNodeDiagnosticLocation(node);
|
38821
38821
|
return new Diagnostic(data, location);
|
@@ -38858,9 +38858,9 @@ var Analyzer2 = class _Analyzer {
|
|
38858
38858
|
Debug.never(d.value);
|
38859
38859
|
}
|
38860
38860
|
}).join("\n");
|
38861
|
-
data = DiagnosticData.withCode(
|
38861
|
+
data = DiagnosticData.withCode(232 /* AmbiguousAccess0 */, ["\n" + typesText]);
|
38862
38862
|
} else {
|
38863
|
-
data = DiagnosticData.withCode(
|
38863
|
+
data = DiagnosticData.withCode(231 /* AmbiguousAccess */);
|
38864
38864
|
}
|
38865
38865
|
const location = this.createNodeDiagnosticLocation(node);
|
38866
38866
|
return new Diagnostic(data, location);
|
@@ -38905,9 +38905,9 @@ var Analyzer2 = class _Analyzer {
|
|
38905
38905
|
Debug.never(d.value);
|
38906
38906
|
}
|
38907
38907
|
}).join("\n");
|
38908
|
-
data = DiagnosticData.withCode(
|
38908
|
+
data = DiagnosticData.withCode(232 /* AmbiguousAccess0 */, ["\n" + declarationsText]);
|
38909
38909
|
} else {
|
38910
|
-
data = DiagnosticData.withCode(
|
38910
|
+
data = DiagnosticData.withCode(231 /* AmbiguousAccess */);
|
38911
38911
|
}
|
38912
38912
|
const location = this.createNodeDiagnosticLocation(node);
|
38913
38913
|
return new Diagnostic(data, location);
|
@@ -39029,7 +39029,7 @@ var WellKnownDeclarationsLoader = class {
|
|
39029
39029
|
const interopPackage = this._analyzer.getPackageEntity(interopPackageName);
|
39030
39030
|
if (interopPackage === void 0) {
|
39031
39031
|
throw new WellKnownDeclarationsLoadError(new Diagnostic(DiagnosticData.withCode(
|
39032
|
-
|
39032
|
+
305 /* StandardPackage0NotFound */,
|
39033
39033
|
[interopPackageName.toString()]
|
39034
39034
|
), void 0));
|
39035
39035
|
}
|
@@ -39070,7 +39070,7 @@ var WellKnownDeclarationsLoader = class {
|
|
39070
39070
|
if (type === void 0) {
|
39071
39071
|
throw new WellKnownDeclarationsLoadError(new Diagnostic(
|
39072
39072
|
DiagnosticData.withCode(
|
39073
|
-
|
39073
|
+
306 /* Declaration0NotFoundInStandardPackage1 */,
|
39074
39074
|
[name.unescapedOriginal, packageEntity.getName().toString()]
|
39075
39075
|
),
|
39076
39076
|
void 0
|
@@ -39083,7 +39083,7 @@ var WellKnownDeclarationsLoader = class {
|
|
39083
39083
|
if (method === void 0) {
|
39084
39084
|
throw new WellKnownDeclarationsLoadError(new Diagnostic(
|
39085
39085
|
DiagnosticData.withCode(
|
39086
|
-
|
39086
|
+
306 /* Declaration0NotFoundInStandardPackage1 */,
|
39087
39087
|
[
|
39088
39088
|
`${typeEntity.getNaming().toString()}.${name.unescapedOriginal}`,
|
39089
39089
|
getPackageContainingEntity(typeEntity).getName().toString()
|
@@ -42439,20 +42439,20 @@ var PackageImports = class {
|
|
42439
42439
|
} else {
|
42440
42440
|
if (previouslyImportedPackage.getTranslationPackage() !== importedPackage.getTranslationPackage()) {
|
42441
42441
|
diagnostics.push(this._analyzer.createNodeDiagnostic(
|
42442
|
-
|
42442
|
+
253 /* PackageIsAlreadyImportedInAnotherLanguage */,
|
42443
42443
|
packageImport.packageName
|
42444
42444
|
));
|
42445
42445
|
}
|
42446
42446
|
}
|
42447
42447
|
} else if (suitablePackages.length === 0) {
|
42448
42448
|
diagnostics.push(this._analyzer.createNodeDiagnostic(
|
42449
|
-
|
42449
|
+
228 /* UnknownPackage */,
|
42450
42450
|
packageImport.packageName
|
42451
42451
|
));
|
42452
42452
|
importInfo = new AnalyzedPackageImport(void 0, void 0, isAliasedImport);
|
42453
42453
|
} else {
|
42454
42454
|
diagnostics.push(this._analyzer.createNodeDiagnostic(
|
42455
|
-
|
42455
|
+
231 /* AmbiguousAccess */,
|
42456
42456
|
packageImport.packageName
|
42457
42457
|
));
|
42458
42458
|
importInfo = new AnalyzedPackageImport(void 0, void 0, isAliasedImport);
|
@@ -42970,7 +42970,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
42970
42970
|
const entity = this._analyzer.entity.ofPackageStructuredTypeDeclaration(node);
|
42971
42971
|
if (entity.getBaseObjectType().causesCycle || entity.getBaseAspectTypes().causesCycle) {
|
42972
42972
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
42973
|
-
|
42973
|
+
265 /* BaseTypeCausesInheritanceCycle */,
|
42974
42974
|
node.name
|
42975
42975
|
));
|
42976
42976
|
}
|
@@ -42983,7 +42983,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
42983
42983
|
if (this.isInterfacePackageFile) {
|
42984
42984
|
if (node.initializer !== void 0) {
|
42985
42985
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
42986
|
-
|
42986
|
+
249 /* InterfacePackageVariablesMustNotHaveInitializers */,
|
42987
42987
|
node.name
|
42988
42988
|
));
|
42989
42989
|
}
|
@@ -43005,7 +43005,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
43005
43005
|
case 25 /* PackageConstructorDeclaration */: {
|
43006
43006
|
if (this.isInterfacePackageFile) {
|
43007
43007
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43008
|
-
|
43008
|
+
248 /* InterfacePackageMustNotContainImplementation */,
|
43009
43009
|
node
|
43010
43010
|
));
|
43011
43011
|
}
|
@@ -43014,7 +43014,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
43014
43014
|
case 26 /* PackageEntryPointDeclaration */: {
|
43015
43015
|
if (this.isInterfacePackageFile) {
|
43016
43016
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43017
|
-
|
43017
|
+
248 /* InterfacePackageMustNotContainImplementation */,
|
43018
43018
|
node.runKeyword
|
43019
43019
|
));
|
43020
43020
|
}
|
@@ -43028,7 +43028,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
43028
43028
|
if (this.isInterfacePackageFile) {
|
43029
43029
|
if (node.block !== void 0) {
|
43030
43030
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43031
|
-
|
43031
|
+
248 /* InterfacePackageMustNotContainImplementation */,
|
43032
43032
|
node.destructionKeyword
|
43033
43033
|
));
|
43034
43034
|
}
|
@@ -43080,14 +43080,14 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
43080
43080
|
case 21 /* TranslationsDeclaration */: {
|
43081
43081
|
if (this._sourceFile.package.kind !== "translation") {
|
43082
43082
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43083
|
-
|
43083
|
+
242 /* TranslationsCanOnlyBeDeclaredInTranslationPackage */,
|
43084
43084
|
node.translationsKeyword
|
43085
43085
|
));
|
43086
43086
|
traversalController.stopChildrenTraverse();
|
43087
43087
|
} else {
|
43088
43088
|
if (this.translationPackage === void 0) {
|
43089
43089
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43090
|
-
|
43090
|
+
243 /* UnknownTranslatedPackage0 */,
|
43091
43091
|
node.translationsKeyword,
|
43092
43092
|
[this._sourceFile.package.configuration.targetPackageName.toString()]
|
43093
43093
|
));
|
@@ -43108,7 +43108,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
43108
43108
|
const enumeratedExpressionType = this._analyzer.type.ofExpression(node.enumeratedExpression);
|
43109
43109
|
if (this._analyzer.ifTypeEnumerableThenItemType(enumeratedExpressionType) === void 0) {
|
43110
43110
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43111
|
-
|
43111
|
+
238 /* ExpressionOfType0CanNotBeUsedForEnumeration */,
|
43112
43112
|
node.enumeratedExpression,
|
43113
43113
|
[this._displayService.displayType(enumeratedExpressionType)]
|
43114
43114
|
));
|
@@ -43150,7 +43150,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
43150
43150
|
returnType,
|
43151
43151
|
leftType,
|
43152
43152
|
node.right,
|
43153
|
-
|
43153
|
+
225 /* Type0IsNotAssignableToType1 */
|
43154
43154
|
);
|
43155
43155
|
}
|
43156
43156
|
}
|
@@ -43164,7 +43164,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
43164
43164
|
if (member.kind === 142 /* VariantDeclaration */) {
|
43165
43165
|
if (member.value === void 0 && !isIntegerVariant) {
|
43166
43166
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43167
|
-
|
43167
|
+
241 /* VariantMustHaveAssociatedValue */,
|
43168
43168
|
member
|
43169
43169
|
));
|
43170
43170
|
} else if (member.value !== void 0) {
|
@@ -43194,7 +43194,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
43194
43194
|
} else if (meaning.kind === "base-object-access") {
|
43195
43195
|
if (node.parent.kind !== 78 /* MemberAccessExpression */ && node.parent.kind !== 71 /* IndexedAccessExpression */) {
|
43196
43196
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43197
|
-
|
43197
|
+
247 /* BaseCannotBeUsedAsAnExpressionInItself */,
|
43198
43198
|
node
|
43199
43199
|
));
|
43200
43200
|
}
|
@@ -43212,7 +43212,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
43212
43212
|
case 22 /* PackageAliasTypeDeclaration */: {
|
43213
43213
|
const entity = this._analyzer.entity.ofPackageAliasTypeDeclaration(node);
|
43214
43214
|
if (entity.getAliasedType().causesCycle) {
|
43215
|
-
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43215
|
+
this.addDiagnostic(this._analyzer.createNodeDiagnostic(263 /* TypeAliasReferencesItself */, node.name));
|
43216
43216
|
}
|
43217
43217
|
break;
|
43218
43218
|
}
|
@@ -43220,7 +43220,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
43220
43220
|
const entity = this._analyzer.entity.ofTypeParameterDeclaration(node);
|
43221
43221
|
if (entity.getConstraint().causesCycle) {
|
43222
43222
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43223
|
-
|
43223
|
+
264 /* TypeParameterHasCircularConstraint */,
|
43224
43224
|
node.name
|
43225
43225
|
));
|
43226
43226
|
}
|
@@ -43257,7 +43257,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
43257
43257
|
case "resolved": {
|
43258
43258
|
const receiverType = this._analyzer.type.ofExpression(node.expression);
|
43259
43259
|
if (this._analyzer.canTypeBeNone(receiverType)) {
|
43260
|
-
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43260
|
+
this.addDiagnostic(this._analyzer.createNodeDiagnostic(286 /* ExpressionCanBeNone */, node.expression));
|
43261
43261
|
}
|
43262
43262
|
break;
|
43263
43263
|
}
|
@@ -43282,7 +43282,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
43282
43282
|
if (meaning.kind !== "unresolved") {
|
43283
43283
|
const receiverType = this._analyzer.type.ofExpression(node.expression);
|
43284
43284
|
if (this._analyzer.canTypeBeNone(receiverType)) {
|
43285
|
-
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43285
|
+
this.addDiagnostic(this._analyzer.createNodeDiagnostic(286 /* ExpressionCanBeNone */, node.expression));
|
43286
43286
|
}
|
43287
43287
|
}
|
43288
43288
|
}
|
@@ -43316,7 +43316,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
43316
43316
|
const containingSubprogram = this._analyzer.semanticContext.containing(node).getContainingSubprogram();
|
43317
43317
|
if (containingSubprogram?.allowsAsyncCalls() !== true) {
|
43318
43318
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43319
|
-
|
43319
|
+
282 /* AsyncFunctionCanOnlyBeCalledFromFunctionMarkedWithAsyncModifier */,
|
43320
43320
|
node
|
43321
43321
|
));
|
43322
43322
|
}
|
@@ -43324,7 +43324,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
43324
43324
|
if (meaning.kind === "object-function-call") {
|
43325
43325
|
const calleeType = this._analyzer.type.ofExpression(node.expression);
|
43326
43326
|
if (this._analyzer.canTypeBeNone(calleeType)) {
|
43327
|
-
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43327
|
+
this.addDiagnostic(this._analyzer.createNodeDiagnostic(286 /* ExpressionCanBeNone */, node.expression));
|
43328
43328
|
}
|
43329
43329
|
}
|
43330
43330
|
}
|
@@ -43393,7 +43393,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
43393
43393
|
if (entities.length <= maxDisplayedEntitiesCount) {
|
43394
43394
|
const notTranslatedEntitiesText = "\n" + entities.map((e) => this._displayService.displayEntity(e)).join("\n");
|
43395
43395
|
result = this._analyzer.createNodeDiagnostic(
|
43396
|
-
|
43396
|
+
273 /* TheFollowingDeclarationsAreNotTranslated0 */,
|
43397
43397
|
node,
|
43398
43398
|
[notTranslatedEntitiesText],
|
43399
43399
|
1 /* Warning */
|
@@ -43401,7 +43401,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
43401
43401
|
} else {
|
43402
43402
|
const notTranslatedEntitiesText = "\n" + entities.slice(0, maxDisplayedEntitiesCount + 1).map((e) => this._displayService.displayEntity(e)).join("\n") + "\n";
|
43403
43403
|
result = this._analyzer.createNodeDiagnostic(
|
43404
|
-
|
43404
|
+
274 /* TheFollowingDeclarationAreNotTranslated0And1More */,
|
43405
43405
|
node,
|
43406
43406
|
[notTranslatedEntitiesText, (entities.length - maxDisplayedEntitiesCount).toString()],
|
43407
43407
|
1 /* Warning */
|
@@ -43413,7 +43413,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
43413
43413
|
for (const argument of node.argumentList.arguments) {
|
43414
43414
|
if (argument.name === void 0) {
|
43415
43415
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43416
|
-
|
43416
|
+
271 /* DefaultConstructorArgumentsMustBeNamed */,
|
43417
43417
|
argument
|
43418
43418
|
));
|
43419
43419
|
}
|
@@ -43423,12 +43423,12 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
43423
43423
|
if (this.isInterfacePackageFile) {
|
43424
43424
|
if (node.block !== void 0) {
|
43425
43425
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43426
|
-
|
43426
|
+
248 /* InterfacePackageMustNotContainImplementation */,
|
43427
43427
|
node.name
|
43428
43428
|
));
|
43429
43429
|
}
|
43430
43430
|
} else if (node.block === void 0) {
|
43431
|
-
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43431
|
+
this.addDiagnostic(this._analyzer.createNodeDiagnostic(250 /* BodyIsMissing */, node.name));
|
43432
43432
|
}
|
43433
43433
|
const entity = this._analyzer.entity.ofPackageFunctionDeclaration(node);
|
43434
43434
|
if (node.block !== void 0) {
|
@@ -43439,31 +43439,31 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
43439
43439
|
if (this.isInterfacePackageFile) {
|
43440
43440
|
if (node.block !== void 0) {
|
43441
43441
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43442
|
-
|
43442
|
+
248 /* InterfacePackageMustNotContainImplementation */,
|
43443
43443
|
node.name
|
43444
43444
|
));
|
43445
43445
|
}
|
43446
43446
|
} else if (node.block === void 0) {
|
43447
|
-
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43447
|
+
this.addDiagnostic(this._analyzer.createNodeDiagnostic(250 /* BodyIsMissing */, node.name));
|
43448
43448
|
}
|
43449
43449
|
}
|
43450
43450
|
checkPackageVariableSetterDeclaration(node) {
|
43451
43451
|
if (this.isInterfacePackageFile) {
|
43452
43452
|
if (node.block !== void 0) {
|
43453
43453
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43454
|
-
|
43454
|
+
248 /* InterfacePackageMustNotContainImplementation */,
|
43455
43455
|
node.name
|
43456
43456
|
));
|
43457
43457
|
}
|
43458
43458
|
} else if (node.block === void 0) {
|
43459
|
-
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43459
|
+
this.addDiagnostic(this._analyzer.createNodeDiagnostic(250 /* BodyIsMissing */, node.name));
|
43460
43460
|
}
|
43461
43461
|
}
|
43462
43462
|
checkConstructorDeclaration(node) {
|
43463
43463
|
if (this.isInterfacePackageFile) {
|
43464
43464
|
if (node.block !== void 0) {
|
43465
43465
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43466
|
-
|
43466
|
+
248 /* InterfacePackageMustNotContainImplementation */,
|
43467
43467
|
node.creationKeyword
|
43468
43468
|
));
|
43469
43469
|
}
|
@@ -43473,14 +43473,14 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
43473
43473
|
const redefinableModifier = findModifier(node, 38 /* Redefinable */);
|
43474
43474
|
if (redefinableModifier !== void 0) {
|
43475
43475
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43476
|
-
|
43476
|
+
280 /* ConstructorCanNotBeRedefinable */,
|
43477
43477
|
node.creationKeyword
|
43478
43478
|
));
|
43479
43479
|
}
|
43480
43480
|
const redefinedModifier = findModifier(node, 39 /* Redefined */);
|
43481
43481
|
if (redefinedModifier !== void 0) {
|
43482
43482
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43483
|
-
|
43483
|
+
281 /* ConstructorCanNotBeRedefined */,
|
43484
43484
|
node.creationKeyword
|
43485
43485
|
));
|
43486
43486
|
}
|
@@ -43489,7 +43489,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
43489
43489
|
if (this.isInterfacePackageFile) {
|
43490
43490
|
if (node.block !== void 0) {
|
43491
43491
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43492
|
-
|
43492
|
+
248 /* InterfacePackageMustNotContainImplementation */,
|
43493
43493
|
node.name
|
43494
43494
|
));
|
43495
43495
|
}
|
@@ -43507,7 +43507,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
43507
43507
|
const redefinedModifier = findModifier(node, 39 /* Redefined */);
|
43508
43508
|
if (redefinedModifier !== void 0 && entity.getOverriddenMembers().length === 0) {
|
43509
43509
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43510
|
-
|
43510
|
+
279 /* CorrespondingRedefinableTypeMemberNotFound */,
|
43511
43511
|
redefinedModifier
|
43512
43512
|
));
|
43513
43513
|
}
|
@@ -43516,7 +43516,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
43516
43516
|
if (this.isInterfacePackageFile) {
|
43517
43517
|
if (node.block !== void 0) {
|
43518
43518
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43519
|
-
|
43519
|
+
248 /* InterfacePackageMustNotContainImplementation */,
|
43520
43520
|
node.name
|
43521
43521
|
));
|
43522
43522
|
}
|
@@ -43527,14 +43527,14 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
43527
43527
|
const redefinedModifier = findModifier(node, 39 /* Redefined */);
|
43528
43528
|
if (redefinedModifier !== void 0 && entity.getOverriddenMembers().length === 0) {
|
43529
43529
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43530
|
-
|
43530
|
+
279 /* CorrespondingRedefinableTypeMemberNotFound */,
|
43531
43531
|
redefinedModifier
|
43532
43532
|
));
|
43533
43533
|
}
|
43534
43534
|
const staticModifier = findModifier(node, 41 /* Static */);
|
43535
43535
|
if (staticModifier !== void 0) {
|
43536
43536
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43537
|
-
|
43537
|
+
275 /* OperatorFunctionMustNotBeStatic */,
|
43538
43538
|
staticModifier
|
43539
43539
|
));
|
43540
43540
|
}
|
@@ -43549,7 +43549,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
43549
43549
|
this._sourceFile.package.dialect
|
43550
43550
|
);
|
43551
43551
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43552
|
-
|
43552
|
+
276 /* OperatorFunction0MustNotHaveParameters */,
|
43553
43553
|
node.name,
|
43554
43554
|
[operatorText]
|
43555
43555
|
));
|
@@ -43564,7 +43564,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
43564
43564
|
this._sourceFile.package.dialect
|
43565
43565
|
);
|
43566
43566
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43567
|
-
|
43567
|
+
278 /* OperatorFunction0MustHaveNoMoreThanOneParameter */,
|
43568
43568
|
node.name,
|
43569
43569
|
[operatorText]
|
43570
43570
|
));
|
@@ -43579,7 +43579,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
43579
43579
|
this._sourceFile.package.dialect
|
43580
43580
|
);
|
43581
43581
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43582
|
-
|
43582
|
+
277 /* OperatorFunction0MustHaveOneParameter */,
|
43583
43583
|
node.name,
|
43584
43584
|
[operatorText]
|
43585
43585
|
));
|
@@ -43594,14 +43594,14 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
43594
43594
|
if (this.isInterfacePackageFile) {
|
43595
43595
|
if (node.initializer !== void 0) {
|
43596
43596
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43597
|
-
|
43597
|
+
249 /* InterfacePackageVariablesMustNotHaveInitializers */,
|
43598
43598
|
node.name
|
43599
43599
|
));
|
43600
43600
|
}
|
43601
43601
|
} else if (findModifier(node, 37 /* Abstract */) !== void 0) {
|
43602
43602
|
if (node.initializer !== void 0) {
|
43603
43603
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43604
|
-
|
43604
|
+
252 /* AbstractVariablesMustNotHaveInitializers */,
|
43605
43605
|
node.name
|
43606
43606
|
));
|
43607
43607
|
}
|
@@ -43610,7 +43610,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
43610
43610
|
const redefinedModifier = findModifier(node, 39 /* Redefined */);
|
43611
43611
|
if (redefinedModifier !== void 0 && entity.getOverriddenMembers().length === 0) {
|
43612
43612
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43613
|
-
|
43613
|
+
279 /* CorrespondingRedefinableTypeMemberNotFound */,
|
43614
43614
|
redefinedModifier
|
43615
43615
|
));
|
43616
43616
|
}
|
@@ -43619,7 +43619,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
43619
43619
|
if (this.isInterfacePackageFile) {
|
43620
43620
|
if (node.block !== void 0) {
|
43621
43621
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43622
|
-
|
43622
|
+
248 /* InterfacePackageMustNotContainImplementation */,
|
43623
43623
|
node.name
|
43624
43624
|
));
|
43625
43625
|
}
|
@@ -43630,7 +43630,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
43630
43630
|
const redefinedModifier = findModifier(node, 39 /* Redefined */);
|
43631
43631
|
if (redefinedModifier !== void 0 && entity.getOverriddenMembers().length === 0) {
|
43632
43632
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43633
|
-
|
43633
|
+
279 /* CorrespondingRedefinableTypeMemberNotFound */,
|
43634
43634
|
redefinedModifier
|
43635
43635
|
));
|
43636
43636
|
}
|
@@ -43639,7 +43639,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
43639
43639
|
if (this.isInterfacePackageFile) {
|
43640
43640
|
if (node.block !== void 0) {
|
43641
43641
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43642
|
-
|
43642
|
+
248 /* InterfacePackageMustNotContainImplementation */,
|
43643
43643
|
node.name
|
43644
43644
|
));
|
43645
43645
|
}
|
@@ -43650,7 +43650,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
43650
43650
|
const redefinedModifier = findModifier(node, 39 /* Redefined */);
|
43651
43651
|
if (redefinedModifier !== void 0 && entity.getOverriddenMembers().length === 0) {
|
43652
43652
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43653
|
-
|
43653
|
+
279 /* CorrespondingRedefinableTypeMemberNotFound */,
|
43654
43654
|
redefinedModifier
|
43655
43655
|
));
|
43656
43656
|
}
|
@@ -43659,7 +43659,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
43659
43659
|
if (this.isInterfacePackageFile) {
|
43660
43660
|
if (node.block !== void 0) {
|
43661
43661
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43662
|
-
|
43662
|
+
248 /* InterfacePackageMustNotContainImplementation */,
|
43663
43663
|
node.parameterClause
|
43664
43664
|
));
|
43665
43665
|
}
|
@@ -43670,7 +43670,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
43670
43670
|
const redefinedModifier = findModifier(node, 39 /* Redefined */);
|
43671
43671
|
if (redefinedModifier !== void 0 && entity.getOverriddenMembers().length === 0) {
|
43672
43672
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43673
|
-
|
43673
|
+
279 /* CorrespondingRedefinableTypeMemberNotFound */,
|
43674
43674
|
redefinedModifier
|
43675
43675
|
));
|
43676
43676
|
}
|
@@ -43679,7 +43679,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
43679
43679
|
if (this.isInterfacePackageFile) {
|
43680
43680
|
if (node.block !== void 0) {
|
43681
43681
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43682
|
-
|
43682
|
+
248 /* InterfacePackageMustNotContainImplementation */,
|
43683
43683
|
node.parameterClause
|
43684
43684
|
));
|
43685
43685
|
}
|
@@ -43690,7 +43690,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
43690
43690
|
const redefinedModifier = findModifier(node, 39 /* Redefined */);
|
43691
43691
|
if (redefinedModifier !== void 0 && entity.getOverriddenMembers().length === 0) {
|
43692
43692
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43693
|
-
|
43693
|
+
279 /* CorrespondingRedefinableTypeMemberNotFound */,
|
43694
43694
|
redefinedModifier
|
43695
43695
|
));
|
43696
43696
|
}
|
@@ -43699,7 +43699,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
43699
43699
|
if (this.isInterfacePackageFile) {
|
43700
43700
|
if (node.block !== void 0) {
|
43701
43701
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43702
|
-
|
43702
|
+
248 /* InterfacePackageMustNotContainImplementation */,
|
43703
43703
|
node.caretToken
|
43704
43704
|
));
|
43705
43705
|
}
|
@@ -43710,7 +43710,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
43710
43710
|
const redefinedModifier = findModifier(node, 39 /* Redefined */);
|
43711
43711
|
if (redefinedModifier !== void 0 && entity.getOverriddenMembers().length === 0) {
|
43712
43712
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43713
|
-
|
43713
|
+
279 /* CorrespondingRedefinableTypeMemberNotFound */,
|
43714
43714
|
redefinedModifier
|
43715
43715
|
));
|
43716
43716
|
}
|
@@ -43719,7 +43719,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
43719
43719
|
if (this.isInterfacePackageFile) {
|
43720
43720
|
if (node.block !== void 0) {
|
43721
43721
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43722
|
-
|
43722
|
+
248 /* InterfacePackageMustNotContainImplementation */,
|
43723
43723
|
node.caretToken
|
43724
43724
|
));
|
43725
43725
|
}
|
@@ -43730,7 +43730,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
43730
43730
|
const redefinedModifier = findModifier(node, 39 /* Redefined */);
|
43731
43731
|
if (redefinedModifier !== void 0 && entity.getOverriddenMembers().length === 0) {
|
43732
43732
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43733
|
-
|
43733
|
+
279 /* CorrespondingRedefinableTypeMemberNotFound */,
|
43734
43734
|
redefinedModifier
|
43735
43735
|
));
|
43736
43736
|
}
|
@@ -43750,7 +43750,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
43750
43750
|
}
|
43751
43751
|
if (!hasCorrectReturnType) {
|
43752
43752
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43753
|
-
|
43753
|
+
258 /* FunctionsUsingYieldStatementMustHaveEnumerableAsReturnType */,
|
43754
43754
|
nodeForDiagnostic
|
43755
43755
|
));
|
43756
43756
|
}
|
@@ -43762,17 +43762,17 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
43762
43762
|
const returnType = containingSubprogram?.getReturnType();
|
43763
43763
|
if (containingSubprogram?.isGenerator() === true && node.expression !== void 0) {
|
43764
43764
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43765
|
-
|
43765
|
+
255 /* FunctionsUsingYieldStatementCanNotReturnValue */,
|
43766
43766
|
node.returnKeyword
|
43767
43767
|
));
|
43768
43768
|
} else if (returnType === void 0 && node.expression !== void 0) {
|
43769
43769
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43770
|
-
|
43770
|
+
254 /* OnlySubprogramsWithReturnTypeCanReturnValue */,
|
43771
43771
|
node.returnKeyword
|
43772
43772
|
));
|
43773
43773
|
} else if (returnType !== void 0 && node.expression === void 0 && !returnType.equals(this._analyzer.standardTypes.none)) {
|
43774
43774
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43775
|
-
|
43775
|
+
261 /* SubprogramMustReturnValue */,
|
43776
43776
|
node.returnKeyword
|
43777
43777
|
));
|
43778
43778
|
}
|
@@ -43782,22 +43782,22 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
43782
43782
|
const containingSubprogram = semanticContext.getContainingSubprogram();
|
43783
43783
|
if (containingSubprogram?.kind === "function-literal") {
|
43784
43784
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43785
|
-
|
43785
|
+
256 /* YieldStatementCanNotBeUsedInAnonymousFunctions */,
|
43786
43786
|
node.yieldKeyword
|
43787
43787
|
));
|
43788
43788
|
} else if (containingSubprogram?.isGenerator() !== true) {
|
43789
43789
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43790
|
-
|
43790
|
+
257 /* YieldStatementCanNotBeUsedHere */,
|
43791
43791
|
node.yieldKeyword
|
43792
43792
|
));
|
43793
43793
|
} else if (semanticContext.isInTryStatement()?.hasCatchClause === true) {
|
43794
43794
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43795
|
-
|
43795
|
+
259 /* YieldStatementCanNotBeUsedInTryStatementThatHasCatchClause */,
|
43796
43796
|
node.yieldKeyword
|
43797
43797
|
));
|
43798
43798
|
} else if (semanticContext.isInFinallyClause()) {
|
43799
43799
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43800
|
-
|
43800
|
+
260 /* YieldStatementCanNotBeUsedInFinallyClause */,
|
43801
43801
|
node.yieldKeyword
|
43802
43802
|
));
|
43803
43803
|
}
|
@@ -43816,14 +43816,14 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
43816
43816
|
) !== void 0;
|
43817
43817
|
}
|
43818
43818
|
if (!bodyCanBeMissing) {
|
43819
|
-
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43819
|
+
this.addDiagnostic(this._analyzer.createNodeDiagnostic(250 /* BodyIsMissing */, nodeForDiagnostics));
|
43820
43820
|
}
|
43821
43821
|
}
|
43822
43822
|
}
|
43823
43823
|
} else {
|
43824
43824
|
if (findModifier(typeMemberWithBody, 37 /* Abstract */) !== void 0) {
|
43825
43825
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43826
|
-
|
43826
|
+
251 /* AbstractTypeMembersMustNotHaveBody */,
|
43827
43827
|
nodeForDiagnostics
|
43828
43828
|
));
|
43829
43829
|
}
|
@@ -43888,12 +43888,12 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
43888
43888
|
switch (meaning.kind) {
|
43889
43889
|
case "package-alias-access":
|
43890
43890
|
if (node.parent.kind !== 78 /* MemberAccessExpression */) {
|
43891
|
-
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43891
|
+
this.addDiagnostic(this._analyzer.createNodeDiagnostic(203 /* PackageAliasCannotBeUsedAsValue */, node));
|
43892
43892
|
}
|
43893
43893
|
break;
|
43894
43894
|
case "package-name-segment-access": {
|
43895
43895
|
if (node.parent.kind !== 78 /* MemberAccessExpression */) {
|
43896
|
-
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43896
|
+
this.addDiagnostic(this._analyzer.createNodeDiagnostic(202 /* PackageNameCannotBeUsedAsValue */, node));
|
43897
43897
|
}
|
43898
43898
|
break;
|
43899
43899
|
}
|
@@ -43920,7 +43920,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
43920
43920
|
if (node.parent.kind === 89 /* GenericSpecializationExpression */ && node.parent.parent.kind === 78 /* MemberAccessExpression */) {
|
43921
43921
|
break;
|
43922
43922
|
}
|
43923
|
-
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43923
|
+
this.addDiagnostic(this._analyzer.createNodeDiagnostic(201 /* TypeCannotBeUsedAsValue */, node));
|
43924
43924
|
break;
|
43925
43925
|
}
|
43926
43926
|
case "function-access": {
|
@@ -43938,7 +43938,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
43938
43938
|
const semanticContext = this._analyzer.semanticContext.containing(node);
|
43939
43939
|
if (semanticContext.getContainingSubprogram()?.isGenerator() === true) {
|
43940
43940
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43941
|
-
|
43941
|
+
262 /* ResultVariableCanNotBeUsedInFunctionsUsingYieldStatement */,
|
43942
43942
|
node
|
43943
43943
|
));
|
43944
43944
|
}
|
@@ -43978,7 +43978,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
43978
43978
|
}
|
43979
43979
|
case "package-name-segment-access": {
|
43980
43980
|
if (node.parent.kind !== 78 /* MemberAccessExpression */) {
|
43981
|
-
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43981
|
+
this.addDiagnostic(this._analyzer.createNodeDiagnostic(202 /* PackageNameCannotBeUsedAsValue */, node));
|
43982
43982
|
}
|
43983
43983
|
break;
|
43984
43984
|
}
|
@@ -43995,7 +43995,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
43995
43995
|
if (meaning.kind === "instance-variable-access" || meaning.kind === "instance-method-access" || meaning.kind === "operator-access") {
|
43996
43996
|
const receiverType = this._analyzer.type.ofExpression(node.expression);
|
43997
43997
|
if (this._analyzer.canTypeBeNone(receiverType)) {
|
43998
|
-
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
43998
|
+
this.addDiagnostic(this._analyzer.createNodeDiagnostic(286 /* ExpressionCanBeNone */, node.expression));
|
43999
43999
|
}
|
44000
44000
|
}
|
44001
44001
|
}
|
@@ -44003,7 +44003,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
44003
44003
|
this.addDiagnostics(matchResult.diagnostics);
|
44004
44004
|
if (matchResult.unmatchedParameters.length !== 0) {
|
44005
44005
|
this.addDiagnostic(this._analyzer.createSourceFileRangeDiagnostic(
|
44006
|
-
|
44006
|
+
220 /* NotAllRequiredParametersAreProvidedWithArguments */,
|
44007
44007
|
argumentsRange,
|
44008
44008
|
this._sourceFile
|
44009
44009
|
));
|
@@ -44034,7 +44034,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
44034
44034
|
}
|
44035
44035
|
if (declaration !== void 0 && locals.has(declaration) && locals.get(declaration) === false) {
|
44036
44036
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
44037
|
-
|
44037
|
+
224 /* VariableUsedBeforeBeingDeclared */,
|
44038
44038
|
node2
|
44039
44039
|
));
|
44040
44040
|
}
|
@@ -44064,7 +44064,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
44064
44064
|
expressionType,
|
44065
44065
|
targetType,
|
44066
44066
|
node,
|
44067
|
-
|
44067
|
+
225 /* Type0IsNotAssignableToType1 */
|
44068
44068
|
);
|
44069
44069
|
}
|
44070
44070
|
}
|
@@ -44094,7 +44094,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
44094
44094
|
this.checkAssignmentToDereferenceExpression(node.left);
|
44095
44095
|
break;
|
44096
44096
|
default:
|
44097
|
-
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
44097
|
+
this.addDiagnostic(this._analyzer.createNodeDiagnostic(229 /* CannotAssignValueToExpression */, node.left));
|
44098
44098
|
}
|
44099
44099
|
}
|
44100
44100
|
checkAssignmentToIdentifierExpression(node, statement) {
|
@@ -44105,7 +44105,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
44105
44105
|
return;
|
44106
44106
|
case "function-access":
|
44107
44107
|
case "operator-access": {
|
44108
|
-
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
44108
|
+
this.addDiagnostic(this._analyzer.createNodeDiagnostic(229 /* CannotAssignValueToExpression */, node));
|
44109
44109
|
return;
|
44110
44110
|
}
|
44111
44111
|
case "variable-access": {
|
@@ -44143,7 +44143,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
44143
44143
|
case "instance-method-access":
|
44144
44144
|
case "operator-access": {
|
44145
44145
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
44146
|
-
|
44146
|
+
229 /* CannotAssignValueToExpression */,
|
44147
44147
|
node.propertyName
|
44148
44148
|
));
|
44149
44149
|
break;
|
@@ -44170,7 +44170,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
44170
44170
|
case "local": {
|
44171
44171
|
if (entity.isConstant()) {
|
44172
44172
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
44173
|
-
|
44173
|
+
229 /* CannotAssignValueToExpression */,
|
44174
44174
|
nodeForDiagnostic
|
44175
44175
|
));
|
44176
44176
|
}
|
@@ -44187,7 +44187,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
44187
44187
|
const isAssignedInConstructorOfContainingPackage = containingSubprogram?.kind === "package-constructor" && containingSubprogram.getPackageEntity() === getPackageContainingEntity(entity);
|
44188
44188
|
if (!isAssignedInConstructorOfContainingPackage) {
|
44189
44189
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
44190
|
-
|
44190
|
+
229 /* CannotAssignValueToExpression */,
|
44191
44191
|
nodeForDiagnostic
|
44192
44192
|
));
|
44193
44193
|
}
|
@@ -44195,7 +44195,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
44195
44195
|
const setter = entity.getSetter();
|
44196
44196
|
if (setter === void 0) {
|
44197
44197
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
44198
|
-
|
44198
|
+
229 /* CannotAssignValueToExpression */,
|
44199
44199
|
nodeForDiagnostic
|
44200
44200
|
));
|
44201
44201
|
} else {
|
@@ -44204,7 +44204,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
44204
44204
|
const hidingMatcher = this._analyzer.semanticContext.containing(assignmentNode).getHidingMatcher();
|
44205
44205
|
if (!hidingMatcher.matches(setterHiding)) {
|
44206
44206
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
44207
|
-
|
44207
|
+
229 /* CannotAssignValueToExpression */,
|
44208
44208
|
nodeForDiagnostic
|
44209
44209
|
));
|
44210
44210
|
}
|
@@ -44220,7 +44220,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
44220
44220
|
const isAssignedInConstructorOfContainingPackage = containingSubprogram?.kind === "package-constructor" && containingSubprogram.getPackageEntity() === getPackageContainingEntity(entity);
|
44221
44221
|
if (!isAssignedInConstructorOfContainingPackage) {
|
44222
44222
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
44223
|
-
|
44223
|
+
229 /* CannotAssignValueToExpression */,
|
44224
44224
|
nodeForDiagnostic
|
44225
44225
|
));
|
44226
44226
|
}
|
@@ -44228,14 +44228,14 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
44228
44228
|
const isAssignedInConstructorOfContainingType = containingSubprogram?.kind === "constructor" && containingSubprogram.getEntity().getContainer().getEntity() === entity.getContainer().getEntity();
|
44229
44229
|
if (!isAssignedInConstructorOfContainingType) {
|
44230
44230
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
44231
|
-
|
44231
|
+
229 /* CannotAssignValueToExpression */,
|
44232
44232
|
nodeForDiagnostic
|
44233
44233
|
));
|
44234
44234
|
} else {
|
44235
44235
|
const isAssignedToAnotherInstance = ifPropertyAccessThenNode !== void 0 && unwrapParenthesizedExpressions(ifPropertyAccessThenNode.expression).kind !== 86 /* ObjectExpression */;
|
44236
44236
|
if (isAssignedToAnotherInstance) {
|
44237
44237
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
44238
|
-
|
44238
|
+
229 /* CannotAssignValueToExpression */,
|
44239
44239
|
nodeForDiagnostic
|
44240
44240
|
));
|
44241
44241
|
}
|
@@ -44245,7 +44245,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
44245
44245
|
const setter = entity.getSetter();
|
44246
44246
|
if (setter === void 0) {
|
44247
44247
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
44248
|
-
|
44248
|
+
229 /* CannotAssignValueToExpression */,
|
44249
44249
|
nodeForDiagnostic
|
44250
44250
|
));
|
44251
44251
|
} else {
|
@@ -44254,7 +44254,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
44254
44254
|
const hidingMatcher = this._analyzer.semanticContext.containing(assignmentNode).getHidingMatcher();
|
44255
44255
|
if (!hidingMatcher.matches(setterHiding)) {
|
44256
44256
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
44257
|
-
|
44257
|
+
229 /* CannotAssignValueToExpression */,
|
44258
44258
|
nodeForDiagnostic
|
44259
44259
|
));
|
44260
44260
|
}
|
@@ -44271,7 +44271,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
44271
44271
|
canAssignToObject = containingEntity.kind === 7 /* Constructor */ && (typeOrExtension?.kind === "type" && typeOrExtension.getEntity().typeEntityKind === 4 /* Alias */ || typeOrExtension?.kind === "type-extension");
|
44272
44272
|
}
|
44273
44273
|
if (!canAssignToObject) {
|
44274
|
-
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
44274
|
+
this.addDiagnostic(this._analyzer.createNodeDiagnostic(233 /* CanNotAssignValueToContextVariable */, node));
|
44275
44275
|
}
|
44276
44276
|
}
|
44277
44277
|
checkAssignmentToDereferenceExpression(node) {
|
@@ -44280,14 +44280,14 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
44280
44280
|
case "resolved": {
|
44281
44281
|
const setter = meaning.operator.value.getEntity().getSetter();
|
44282
44282
|
if (setter === void 0) {
|
44283
|
-
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
44283
|
+
this.addDiagnostic(this._analyzer.createNodeDiagnostic(229 /* CannotAssignValueToExpression */, node));
|
44284
44284
|
} else {
|
44285
44285
|
const setterHiding = setter.isHidden();
|
44286
44286
|
if (setterHiding !== void 0) {
|
44287
44287
|
const hidingMatcher = this._analyzer.semanticContext.containing(node).getHidingMatcher();
|
44288
44288
|
if (!hidingMatcher.matches(setterHiding)) {
|
44289
44289
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
44290
|
-
|
44290
|
+
229 /* CannotAssignValueToExpression */,
|
44291
44291
|
node
|
44292
44292
|
));
|
44293
44293
|
}
|
@@ -44309,14 +44309,14 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
44309
44309
|
if (meaning.singleSuitableIndexer !== void 0) {
|
44310
44310
|
const setter = meaning.singleSuitableIndexer.value.getEntity().getSetter();
|
44311
44311
|
if (setter === void 0) {
|
44312
|
-
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
44312
|
+
this.addDiagnostic(this._analyzer.createNodeDiagnostic(229 /* CannotAssignValueToExpression */, node));
|
44313
44313
|
} else {
|
44314
44314
|
const setterHiding = setter.isHidden();
|
44315
44315
|
if (setterHiding !== void 0) {
|
44316
44316
|
const hidingMatcher = this._analyzer.semanticContext.containing(node).getHidingMatcher();
|
44317
44317
|
if (!hidingMatcher.matches(setterHiding)) {
|
44318
44318
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
44319
|
-
|
44319
|
+
229 /* CannotAssignValueToExpression */,
|
44320
44320
|
node
|
44321
44321
|
));
|
44322
44322
|
}
|
@@ -44335,7 +44335,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
44335
44335
|
checkOptionalChainingIsUsedOnTheLeftSideOfAssignment(left) {
|
44336
44336
|
if (this._analyzer.isExpressionOptionalChainingSyntactically(left)) {
|
44337
44337
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
44338
|
-
|
44338
|
+
287 /* NoneAwareAccessCanNotBeUsedOnTheLeftHandSideOfAssignmentStatement */,
|
44339
44339
|
left
|
44340
44340
|
));
|
44341
44341
|
}
|
@@ -44359,7 +44359,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
44359
44359
|
return;
|
44360
44360
|
}
|
44361
44361
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
44362
|
-
|
44362
|
+
266 /* OnlyGenericTypesAndFunctionsCanBeSpecialized */,
|
44363
44363
|
node.typeArgumentClause
|
44364
44364
|
));
|
44365
44365
|
}
|
@@ -44379,7 +44379,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
44379
44379
|
checkSpecializationOfDeclarationWithParameters(typeParameters, substitutions, node) {
|
44380
44380
|
if (typeParameters.length === 0) {
|
44381
44381
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
44382
|
-
|
44382
|
+
266 /* OnlyGenericTypesAndFunctionsCanBeSpecialized */,
|
44383
44383
|
node
|
44384
44384
|
));
|
44385
44385
|
return;
|
@@ -44397,7 +44397,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
44397
44397
|
typeArgument,
|
44398
44398
|
substitutedConstraint,
|
44399
44399
|
typeArgumentNode,
|
44400
|
-
|
44400
|
+
269 /* Type0IsNotAssignableToConstraint1 */
|
44401
44401
|
);
|
44402
44402
|
}
|
44403
44403
|
}
|
@@ -44412,13 +44412,13 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
44412
44412
|
if (typeArgumentCount < requiredTypeParameterCount || typeArgumentCount > typeParameterCount) {
|
44413
44413
|
if (typeParameterCount === requiredTypeParameterCount) {
|
44414
44414
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
44415
|
-
|
44415
|
+
267 /* Expected0TypeArguments */,
|
44416
44416
|
nodeForDiagnostics,
|
44417
44417
|
[typeParameterCount.toString()]
|
44418
44418
|
));
|
44419
44419
|
} else {
|
44420
44420
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
44421
|
-
|
44421
|
+
268 /* ExpectedFrom0To1TypeArguments */,
|
44422
44422
|
nodeForDiagnostics,
|
44423
44423
|
[requiredTypeParameterCount.toString(), typeParameterCount.toString()]
|
44424
44424
|
));
|
@@ -44457,7 +44457,7 @@ var DiagnosticCollector = class _DiagnosticCollector {
|
|
44457
44457
|
const usageCount = this._namedDeclarationsCountResult.getUsageCount(entity);
|
44458
44458
|
if (usageCount === 0) {
|
44459
44459
|
this.addDiagnostic(this._analyzer.createNodeDiagnostic(
|
44460
|
-
|
44460
|
+
270 /* VariableIsDeclaredButNotUsed */,
|
44461
44461
|
nodeForDiagnostic,
|
44462
44462
|
void 0,
|
44463
44463
|
3 /* Hint */,
|