@artel/artc 0.6.26017 → 0.6.26018

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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Compiler
3
- } from "./chunk-UCBPXOLW.js";
3
+ } from "./chunk-4LBH5LW4.js";
4
4
  import {
5
5
  ArtelVersion,
6
6
  Cached,
@@ -15,7 +15,7 @@ import {
15
15
  __async,
16
16
  performanceMeasurementStageNames,
17
17
  performanceMeasurementStages
18
- } from "./chunk-SJFIPH42.js";
18
+ } from "./chunk-NQCSWP3L.js";
19
19
 
20
20
  // source/executor/FileSystemUri.ts
21
21
  import { platform } from "os";
@@ -540,8 +540,11 @@ declare class Entity {
540
540
  ofFunctionLiteralParameterDeclarationInternal(node: tree.ParameterDeclaration, literal: tree.FunctionLiteral): e.FunctionLiteralParameterDeclarationEntity;
541
541
  private getContainingPackageLoadedFromDts;
542
542
  private createComputedFieldEntities;
543
+ private createComputedFieldEntitiesWithoutIsStaticCheck;
543
544
  private createDereferenceOperatorEntities;
545
+ private createDereferenceOperatorEntitiesWithoutIsStaticCheck;
544
546
  private createIndexerAndParameterEntities;
547
+ private createIndexerAndParameterEntitiesWithoutIsStaticCheck;
545
548
  private createAndCacheIndexerEntityAndParameters;
546
549
  private areIndexedElementAccessorDeclarationsEqual;
547
550
  }
@@ -14,6 +14,7 @@ export declare class FirstStageResolver {
14
14
  private resolveBaseMethodAccess;
15
15
  private resolveBaseObjectAccess;
16
16
  private invalidContextDiagnostic;
17
+ private staticContextDiagnostic;
17
18
  private getBaseOrAliasedType;
18
19
  private getContainingTypeMemberDeclaration;
19
20
  }
@@ -9,7 +9,6 @@ export declare class Resolver {
9
9
  private readonly diagnostics;
10
10
  constructor(analyzer: Analyzer, node: tree.ObjectExpression, diagnostics: DiagnosticAcceptor | undefined);
11
11
  resolve(): Meaning;
12
- private invalidContextDiagnostic;
13
12
  }
14
13
  export type Meaning = Meaning_objectAccess | Meaning_objectParameterAccess | Meaning_unresolved;
15
14
  declare class Meaning_objectAccess {
@@ -90,180 +90,183 @@ export declare enum DiagnosticCode {
90
90
  TranslationsCanOnlyBeDeclaredInTranslationPackage = 2051,
91
91
  UnknownTranslatingPackage0 = 2052,
92
92
  BaseCannotBeUsedInThisContext = 2053,
93
- OverriddenMethodNotFound = 2054,
94
- ObjectCannotBeUsedInThisContext = 2055,
95
- OwnConstructorCannotBeCalledHere = 2056,
96
- BaseCannotBeUsedAsAnExpressionInItself = 2057,
97
- InterfacePackageMustNotContainImplementation = 2058,
98
- InterfacePackageVariablesMustNotHaveInitializers = 2059,
99
- BodyIsMissing = 2060,
100
- AbstractTypeMembersMustNotHaveBody = 2061,
101
- MembersOfAspectTypeMustNotHaveBody = 2062,
102
- AspectTypeFieldsMustBeAbstract = 2063,
103
- DeclarationsMarkedWithBuiltIntoPlatformTagMustNotHaveBody = 2064,
104
- ReducedTypeMembersMustNotHaveBody = 2065,
105
- AbstractFieldsMustNotHaveInitializers = 2066,
106
- ReducedTypeFieldsMustNotHaveInitializers = 2067,
107
- PackageIsAlreadyImported = 2068,
108
- OnlySubprogramsWithReturnTypeCanReturnValue = 2069,
109
- FunctionsUsingYieldStatementCannotReturnValue = 2070,
110
- YieldStatementCannotBeUsedInAnonymousFunctions = 2071,
111
- YieldStatementCannotBeUsedHere = 2072,
112
- FunctionsUsingYieldStatementMustHaveEnumerableAsReturnType = 2073,
113
- YieldStatementCannotBeUsedInTryStatementThatHasCatchClause = 2074,
114
- YieldStatementCannotBeUsedInFinallyBlock = 2075,
115
- SubprogramMustReturnValue = 2076,
116
- ResultVariableCannotBeUsedInFunctionsUsingYieldStatement = 2077,
117
- TypeAliasReferencesItself = 2078,
118
- ReducedTypeReferencesItself = 2079,
119
- TypeParameterHasCircularConstraint = 2080,
120
- BaseTypeCausesInheritanceCycle = 2081,
121
- OnlyGenericTypesAndFunctionsCanBeSpecialized = 2082,
122
- Expected0TypeArguments = 2083,
123
- ExpectedFrom0To1TypeArguments = 2084,
124
- Type0IsNotAssignableToConstraint1 = 2085,
125
- VariableIsDeclaredButItsValueIsNeverRead = 2086,
126
- FunctionIsDeclaredButNotUsed = 2087,
127
- TypeParameterIsDeclaredButNotUsed = 2088,
128
- DefaultConstructorArgumentsMustBeNamed = 2089,
129
- IncorrectBodyOfBasicAliasTypeMethod = 2090,
130
- TheFollowingDeclarationsAreNotTranslated0 = 2091,
131
- TheFollowingDeclarationsAreNotTranslated0And1More = 2092,
132
- TheFollowingTextsAreNotTranslated0 = 2093,
133
- TheFollowingTextsAreNotTranslated0And1More = 2094,
134
- OperatorFunction0MustNotHaveParameters = 2095,
135
- OperatorFunction0MustHaveOneParameter = 2096,
136
- OperatorFunction0MustHaveNoMoreThanOneParameter = 2097,
137
- CorrespondingBasicTypeMemberNotFound = 2098,
138
- AsyncFunctionCanOnlyBeCalledFromFunctionMarkedWithAsyncModifier = 2099,
139
- TagNotFound = 2100,
140
- TypeOrFunctionNameExpected = 2101,
141
- PackageNameOrAliasExpected = 2102,
142
- ExpressionCanBeNull = 2103,
143
- TargetVariableExpressionInTheAssignmentStatementCannotContainQuestionOperator = 2104,
144
- UnreachableCode = 2105,
145
- RecursionOccurredWhileCalculatingTheTypeOfTheExpression = 2106,
146
- RecursionOccurredWhileInferringTheTypeOfTheVariable = 2107,
147
- ScopeAlreadyContainsDeclarationWithTheSameName = 2108,
148
- ScopeAlreadyContainsFunctionWithTheSameNameAndParameterTypes = 2109,
149
- ParameterName0ConflictsWithAutomaticallyGeneratedVariableName = 2110,
150
- PackageAlreadyContainsDeclarationWithTheSameName = 2111,
151
- PackageAlreadyContainsFunctionWithTheSameNameAndParameterTypes = 2112,
152
- PackageAlreadyContainsTypeWithTheSameNameAndSameOrIntersectingTypeParameterCount = 2113,
153
- PackageAliasWithTheSameNameAlreadyExits = 2114,
154
- TypeAlreadyContainsDeclarationWithTheSameName = 2115,
155
- TypeAlreadyContainsMethodWithTheSameNameAndParameterTypes = 2116,
156
- TypeAlreadyContainsConstructorWithTheSameParameterTypes = 2117,
157
- TypeAlreadyContainsIndexerWithTheSameParameterTypes = 2118,
158
- TypeCanHaveOnlyOneDestructor = 2119,
159
- TypeCanHaveOnlyOneDereferenceOperator = 2120,
160
- VariableIsUsedBeforeItsDeclaration = 2121,
161
- VariableMayNotHasBeenAssignedBeforeUsage = 2122,
162
- NotAllCodePathsReturnAValueAndResultLocalVariableMayNotHasBeenAssigned = 2123,
163
- WriteFunctionHasNoCorrespondingReadFunction = 2124,
164
- TypeCannotHaveMultipleBaseObjectTypes = 2125,
165
- TypeThatIsNotMarkedAsBasicCannotBeUsedAsBaseType = 2126,
166
- StructureCannotBeUsedAsBaseType = 2127,
167
- ThisTypeIsAlreadyListedInBaseTypeList = 2128,
168
- OnlyObjectAndAspectTypesCanBeUsedAsBaseTypes = 2129,
169
- StructureCanHaveOnlyAspectsAsBaseTypes = 2130,
170
- AspectTypeCanHaveOnlyAspectsAsBaseTypes = 2131,
171
- ModifierListAlreadyContains0Modifier = 2132,
172
- ModifierListOfOuterDeclarationGroupAlreadyContains0Modifier = 2133,
173
- _0ModifierIsNotAllowedHere = 2134,
174
- DeclarationCannotBePlacedInGroupHaving0Modifier = 2135,
175
- PackageConstructorDeclarationCannotHaveModifiers = 2136,
176
- PackageEntryPointDeclarationCannotHaveModifiers = 2137,
177
- TranslationsCannotHaveModifiers = 2138,
178
- AbstractModifierCanOnlyBeUsedInAbstractObjectTypes = 2139,
179
- BasicModifierCanOnlyBeUsedInObjectTypesAspectTypesAndTypeAliases = 2140,
180
- OverrideModifierCanOnlyBeUsedInObjectAndAspectTypes = 2141,
181
- _0ModifierCannotBeUsedWith1Modifier = 2142,
182
- VariantValueCannotBeHidden = 2143,
183
- BasicModifierCanOnlyBeAppliedToObjectTypes = 2144,
184
- AbstractModifierCanOnlyBeAppliedToObjectTypes = 2145,
185
- NotBasicObjectTypesCannotHaveBasicMembers = 2146,
186
- BasicModifierCannotBeAppliedToAspectTypeFields = 2147,
187
- WriteFunctionMustHaveTheSameModifiersAsReadFunction = 2148,
188
- WriteFunctionMustHaveTheSameOrMoreRestrictiveHidingLevelThenReadFunction = 2149,
189
- DeclarationConflictsWithBaseTypeMember0 = 2150,
190
- DeclarationConflictsWithBaseTypeMember0AddOverrideModifier = 2151,
191
- DeclarationConflictsWithBaseTypeMember0ThisMemberCannotBeOverridden = 2152,
192
- DeclarationConflictsWithBaseTypeMember0ToOverrideTypeMustBeAssignableTo1 = 2153,
193
- DeclarationConflictsWithBaseTypeMember0ToOverrideReturnTypeMustBeAssignableTo1 = 2154,
194
- OverridingMemberMustHaveTheSameHidingLevelAsBaseMember0 = 2155,
195
- OverridingMethodMustBeAsyncBecauseBaseMethod0IsAsync = 2156,
196
- OverridingMethodMustNotBeAsyncBecauseBaseMethod0IsNotAsync = 2157,
197
- OverridingFieldMustMustBeMutableToMatchBaseField0 = 2158,
198
- OverridingMemberMustHaveWriteFunctionToMatchBaseMember0 = 2159,
199
- TypeDoesNotImplementMember0 = 2160,
200
- TypeDoesNotImplementMember0ImplicitImplementationTypeMismatch1 = 2161,
201
- TypeDoesNotImplementMember0ImplicitImplementation1IsAsync = 2162,
202
- TypeDoesNotImplementMember0ImplicitImplementation1IsNotAsync = 2163,
203
- TypeDoesNotImplementMember0ImplicitImplementation1IsNotMutable = 2164,
204
- TypeDoesNotImplementMember0ImplicitImplementation1WriteFunctionIsHidden = 2165,
205
- CannotAccessAbstractMemberOfBaseType = 2166,
206
- TheFollowingBaseTypeMembersConflictAndMustBeOverridden0 = 2167,
207
- TheFollowingBaseTypeMembersConflictBecauseTheyHaveTheSameOriginalName0AndMustBeOverridden1 = 2168,
208
- TheFirstStatementOfConstructorBlockMustBeEitherBaseOrOwnConstructorCall = 2169,
209
- ThisCallCausesOwnConstructorCallCycle = 2170,
210
- OwnConstructorCallMustBeTheFirstStatementOfConstructorBlock = 2171,
211
- BaseConstructorCallMustBeTheFirstStatementOfConstructorBlock = 2172,
212
- Field0HasNoInitializerAndMayNotBeAssignedInConstructor = 2173,
213
- Field0HasNoInitializerAndMayNotBeAssignedInPackageConstructor = 2174,
214
- Variable0HasNoInitializerAndMayNotBeAssignedInPackageConstructor = 2175,
215
- ExpressionOfType0CanNotBeUsedInForLoopBecauseNotEnumerableAndNoMethod1 = 2176,
216
- ForExpressionToBeUsedInForLoopMethod0MustReturnEnumeratorType = 2177,
217
- CannotInferTypeArguments = 2178,
218
- CanNotInferReturnTypeAddExplicitReturnTypeSpecifier = 2179,
219
- ImmutableVariablesBustBeInitialized = 2180,
220
- VariableTypeIsNotSpecified = 2181,
221
- CannotInferTypeOfFunctionLiteralAddTypeSpecifierForParameter = 2182,
222
- TypeParameterDefaultCanReferenceOnlyPreviouslyDeclaredTypeParameters = 2183,
223
- RequiredTypeParametersCannotFollowTypeParametersWithDefaults = 2184,
224
- RequiredParametersCannotFollowOptionalParameters = 2185,
225
- ExpressionCannotBeReferenced = 2186,
226
- TextIsMissingAmongPrimaryTextTranslationDefinitions = 2187,
227
- DeclarationHasAlreadyBeenTranslated = 2188,
228
- TheNumberOfTranslatedParametersMustBeEqualToTheNumberOfSourceParameters = 2189,
229
- TheNumberOfTranslatedTypeParametersMustBeEqualToTheNumberOfSourceTypeParameters = 2190,
230
- TheNameOfTheTranslatedOperatorMustMeTheSameAsSourceOperatorName = 2191,
231
- TranslationOfFunctionTypeMustIncludeParameterList = 2192,
232
- OnlyOneTextTranslationPackageShouldBeMarkedAsPrimary = 2193,
233
- Declarations0And1HaveTheSameSourceNamesButDifferentTranslatedNames23 = 2194,
234
- TranslatedDeclarations0And1HaveTheSameTranslatedNamesButDifferentSourceNames23 = 2195,
235
- TranslatedOverridingMember0MustTheSameNameAsBaseMember1 = 2196,
236
- TextTranslationAlreadyExistsInTheTextTranslationPackage = 2197,
237
- PackageDoesNotContainImplementationOf0 = 2198,
238
- TypeDoesNotContainImplementationOf0 = 2199,
239
- ImplementationVariableMustBeMutableToMatchInterfacePackageVariable0 = 2200,
240
- ImplementationFunctionMustBeAsyncToMatchInterfacePackageFunction0 = 2201,
241
- ImplementationFunctionMustNotBeAsyncToMatchInterfacePackageFunction0 = 2202,
242
- ImplementationTypeMustBeBasicToMatchInterfacePackageType0 = 2203,
243
- ImplementationTypeMustNotBeAbstractToMatchInterfacePackageType0 = 2204,
244
- ImplementationTypeMemberMustBeBasicToMatchInterfacePackageTypeMember0 = 2205,
245
- ImplementationTypeMemberMustNotBeAbstractToMatchInterfacePackageTypeMember0 = 2206,
246
- ImplementationTypeMemberMustHaveWriteFunctionToMatchInterfacePackageTypeMember0 = 2207,
247
- BreakLoopAndContinueLoopStatementsCanOnlyBeUsedInsideALoop = 2208,
248
- BreakLoopAndContinueLoopStatementsCannotBeUsedInFinallyBlock = 2209,
249
- TheCodeWasExpectedToBeUnreachable = 2210,
250
- CorrespondingReductionSourceTypeMemberNotFound = 2211,
251
- OnlyTypesPresentInBaseTypeListOrReductionSourceCanBeSpecified = 2212,
252
- ReducedTypeMemberMustHaveTheSameTypeAsReductionSourceMember = 2213,
253
- ReducedTypeMemberMustHaveTheSameHidingLevelAsReductionSourceMember = 2214,
254
- ReducedTypeFieldMustBeImmutableToMatchReductionSourceField = 2215,
255
- ReducedTypeMethodMustBeAsyncToMatchReductionSourceMethod = 2216,
256
- ReducedTypeMethodMustNotBeAsyncToMatchReductionSourceMethod = 2217,
257
- ReducedTypeMemberMustHaveNoWriteFunctionToMatchReductionSourceMember = 2218,
258
- StructureFieldsMustBeImmutable = 2219,
259
- StructureFieldsMustBeImmutableAutomaticallyCreatedStoredFieldIsMutable = 2220,
260
- FieldTypeCausesRecursiveStructureLayout = 2221,
261
- QuestionOperatorCanBeUsedOnlyInSpecificExpressions = 2222,
262
- BaseTypeListMustNotBeEmpty = 2223,
263
- ObjectParameterMustBeTheFirstParameter = 2224,
264
- ObjectParameterCannotBeDeclaredHere = 2225,
265
- OperatorCannotBeAsync = 2226,
266
- OperatorCannotContainTypeParameterDeclarations = 2227,
93
+ BaseCannotBeUsedInStaticContext = 2054,
94
+ OverriddenMethodNotFound = 2055,
95
+ ObjectCannotBeUsedInThisContext = 2056,
96
+ ObjectCannotBeUsedInStaticContext = 2057,
97
+ OwnConstructorCannotBeCalledHere = 2058,
98
+ BaseCannotBeUsedAsAnExpressionInItself = 2059,
99
+ InterfacePackageMustNotContainImplementation = 2060,
100
+ InterfacePackageVariablesMustNotHaveInitializers = 2061,
101
+ BodyIsMissing = 2062,
102
+ AbstractTypeMembersMustNotHaveBody = 2063,
103
+ MembersOfAspectTypeMustNotHaveBody = 2064,
104
+ AspectTypeFieldsMustBeAbstract = 2065,
105
+ DeclarationsMarkedWithBuiltIntoPlatformTagMustNotHaveBody = 2066,
106
+ ReducedTypeMembersMustNotHaveBody = 2067,
107
+ AbstractFieldsMustNotHaveInitializers = 2068,
108
+ ReducedTypeFieldsMustNotHaveInitializers = 2069,
109
+ PackageIsAlreadyImported = 2070,
110
+ OnlySubprogramsWithReturnTypeCanReturnValue = 2071,
111
+ FunctionsUsingYieldStatementCannotReturnValue = 2072,
112
+ YieldStatementCannotBeUsedInAnonymousFunctions = 2073,
113
+ YieldStatementCannotBeUsedHere = 2074,
114
+ FunctionsUsingYieldStatementMustHaveEnumerableAsReturnType = 2075,
115
+ YieldStatementCannotBeUsedInTryStatementThatHasCatchClause = 2076,
116
+ YieldStatementCannotBeUsedInFinallyBlock = 2077,
117
+ SubprogramMustReturnValue = 2078,
118
+ ResultVariableCannotBeUsedInFunctionsUsingYieldStatement = 2079,
119
+ TypeAliasReferencesItself = 2080,
120
+ ReducedTypeReferencesItself = 2081,
121
+ TypeParameterHasCircularConstraint = 2082,
122
+ BaseTypeCausesInheritanceCycle = 2083,
123
+ OnlyGenericTypesAndFunctionsCanBeSpecialized = 2084,
124
+ Expected0TypeArguments = 2085,
125
+ ExpectedFrom0To1TypeArguments = 2086,
126
+ Type0IsNotAssignableToConstraint1 = 2087,
127
+ VariableIsDeclaredButItsValueIsNeverRead = 2088,
128
+ FunctionIsDeclaredButNotUsed = 2089,
129
+ TypeParameterIsDeclaredButNotUsed = 2090,
130
+ DefaultConstructorArgumentsMustBeNamed = 2091,
131
+ IncorrectBodyOfBasicAliasTypeMethod = 2092,
132
+ TheFollowingDeclarationsAreNotTranslated0 = 2093,
133
+ TheFollowingDeclarationsAreNotTranslated0And1More = 2094,
134
+ TheFollowingTextsAreNotTranslated0 = 2095,
135
+ TheFollowingTextsAreNotTranslated0And1More = 2096,
136
+ OperatorFunction0MustNotHaveParameters = 2097,
137
+ OperatorFunction0MustHaveOneParameter = 2098,
138
+ OperatorFunction0MustHaveNoMoreThanOneParameter = 2099,
139
+ CorrespondingBasicTypeMemberNotFound = 2100,
140
+ AsyncFunctionCanOnlyBeCalledFromFunctionMarkedWithAsyncModifier = 2101,
141
+ TagNotFound = 2102,
142
+ TypeOrFunctionNameExpected = 2103,
143
+ PackageNameOrAliasExpected = 2104,
144
+ ExpressionCanBeNull = 2105,
145
+ TargetVariableExpressionInTheAssignmentStatementCannotContainQuestionOperator = 2106,
146
+ UnreachableCode = 2107,
147
+ RecursionOccurredWhileCalculatingTheTypeOfTheExpression = 2108,
148
+ RecursionOccurredWhileInferringTheTypeOfTheVariable = 2109,
149
+ ScopeAlreadyContainsDeclarationWithTheSameName = 2110,
150
+ ScopeAlreadyContainsFunctionWithTheSameNameAndParameterTypes = 2111,
151
+ ParameterName0ConflictsWithAutomaticallyGeneratedVariableName = 2112,
152
+ PackageAlreadyContainsDeclarationWithTheSameName = 2113,
153
+ PackageAlreadyContainsFunctionWithTheSameNameAndParameterTypes = 2114,
154
+ PackageAlreadyContainsTypeWithTheSameNameAndSameOrIntersectingTypeParameterCount = 2115,
155
+ PackageAliasWithTheSameNameAlreadyExits = 2116,
156
+ TypeAlreadyContainsDeclarationWithTheSameName = 2117,
157
+ TypeAlreadyContainsMethodWithTheSameNameAndParameterTypes = 2118,
158
+ TypeAlreadyContainsConstructorWithTheSameParameterTypes = 2119,
159
+ TypeAlreadyContainsIndexerWithTheSameParameterTypes = 2120,
160
+ TypeCanHaveOnlyOneDestructor = 2121,
161
+ TypeCanHaveOnlyOneDereferenceOperator = 2122,
162
+ VariableIsUsedBeforeItsDeclaration = 2123,
163
+ VariableMayNotHasBeenAssignedBeforeUsage = 2124,
164
+ NotAllCodePathsReturnAValueAndResultLocalVariableMayNotHasBeenAssigned = 2125,
165
+ WriteFunctionHasNoCorrespondingReadFunction = 2126,
166
+ TypeCannotHaveMultipleBaseObjectTypes = 2127,
167
+ TypeThatIsNotMarkedAsBasicCannotBeUsedAsBaseType = 2128,
168
+ StructureCannotBeUsedAsBaseType = 2129,
169
+ ThisTypeIsAlreadyListedInBaseTypeList = 2130,
170
+ OnlyObjectAndAspectTypesCanBeUsedAsBaseTypes = 2131,
171
+ StructureCanHaveOnlyAspectsAsBaseTypes = 2132,
172
+ AspectTypeCanHaveOnlyAspectsAsBaseTypes = 2133,
173
+ ModifierListAlreadyContains0Modifier = 2134,
174
+ ModifierListOfOuterDeclarationGroupAlreadyContains0Modifier = 2135,
175
+ _0ModifierIsNotAllowedHere = 2136,
176
+ DeclarationCannotBePlacedInGroupHaving0Modifier = 2137,
177
+ PackageConstructorDeclarationCannotHaveModifiers = 2138,
178
+ PackageEntryPointDeclarationCannotHaveModifiers = 2139,
179
+ TranslationsCannotHaveModifiers = 2140,
180
+ AbstractModifierCanOnlyBeUsedInAbstractObjectTypes = 2141,
181
+ BasicModifierCanOnlyBeUsedInObjectTypesAspectTypesAndTypeAliases = 2142,
182
+ OverrideModifierCanOnlyBeUsedInObjectAndAspectTypes = 2143,
183
+ _0ModifierCannotBeUsedWith1Modifier = 2144,
184
+ VariantValueCannotBeHidden = 2145,
185
+ BasicModifierCanOnlyBeAppliedToObjectTypes = 2146,
186
+ AbstractModifierCanOnlyBeAppliedToObjectTypes = 2147,
187
+ NotBasicObjectTypesCannotHaveBasicMembers = 2148,
188
+ BasicModifierCannotBeAppliedToAspectTypeFields = 2149,
189
+ WriteFunctionMustHaveTheSameModifiersAsReadFunction = 2150,
190
+ WriteFunctionMustHaveTheSameOrMoreRestrictiveHidingLevelThenReadFunction = 2151,
191
+ DeclarationConflictsWithBaseTypeMember0 = 2152,
192
+ DeclarationConflictsWithBaseTypeMember0AddOverrideModifier = 2153,
193
+ DeclarationConflictsWithBaseTypeMember0ThisMemberCannotBeOverridden = 2154,
194
+ DeclarationConflictsWithBaseTypeMember0ToOverrideTypeMustBeAssignableTo1 = 2155,
195
+ DeclarationConflictsWithBaseTypeMember0ToOverrideReturnTypeMustBeAssignableTo1 = 2156,
196
+ OverridingMemberMustHaveTheSameHidingLevelAsBaseMember0 = 2157,
197
+ OverridingMethodMustBeAsyncBecauseBaseMethod0IsAsync = 2158,
198
+ OverridingMethodMustNotBeAsyncBecauseBaseMethod0IsNotAsync = 2159,
199
+ OverridingFieldMustMustBeMutableToMatchBaseField0 = 2160,
200
+ OverridingMemberMustHaveWriteFunctionToMatchBaseMember0 = 2161,
201
+ TypeDoesNotImplementMember0 = 2162,
202
+ TypeDoesNotImplementMember0ImplicitImplementationTypeMismatch1 = 2163,
203
+ TypeDoesNotImplementMember0ImplicitImplementation1IsAsync = 2164,
204
+ TypeDoesNotImplementMember0ImplicitImplementation1IsNotAsync = 2165,
205
+ TypeDoesNotImplementMember0ImplicitImplementation1IsNotMutable = 2166,
206
+ TypeDoesNotImplementMember0ImplicitImplementation1WriteFunctionIsHidden = 2167,
207
+ CannotAccessAbstractMemberOfBaseType = 2168,
208
+ TheFollowingBaseTypeMembersConflictAndMustBeOverridden0 = 2169,
209
+ TheFollowingBaseTypeMembersConflictBecauseTheyHaveTheSameOriginalName0AndMustBeOverridden1 = 2170,
210
+ TheFirstStatementOfConstructorBlockMustBeEitherBaseOrOwnConstructorCall = 2171,
211
+ ThisCallCausesOwnConstructorCallCycle = 2172,
212
+ OwnConstructorCallMustBeTheFirstStatementOfConstructorBlock = 2173,
213
+ BaseConstructorCallMustBeTheFirstStatementOfConstructorBlock = 2174,
214
+ Field0HasNoInitializerAndMayNotBeAssignedInConstructor = 2175,
215
+ Field0HasNoInitializerAndMayNotBeAssignedInPackageConstructor = 2176,
216
+ Variable0HasNoInitializerAndMayNotBeAssignedInPackageConstructor = 2177,
217
+ ExpressionOfType0CanNotBeUsedInForLoopBecauseNotEnumerableAndNoMethod1 = 2178,
218
+ ForExpressionToBeUsedInForLoopMethod0MustReturnEnumeratorType = 2179,
219
+ CannotInferTypeArguments = 2180,
220
+ CanNotInferReturnTypeAddExplicitReturnTypeSpecifier = 2181,
221
+ ImmutableVariablesBustBeInitialized = 2182,
222
+ VariableTypeIsNotSpecified = 2183,
223
+ CannotInferTypeOfFunctionLiteralAddTypeSpecifierForParameter = 2184,
224
+ TypeParameterDefaultCanReferenceOnlyPreviouslyDeclaredTypeParameters = 2185,
225
+ RequiredTypeParametersCannotFollowTypeParametersWithDefaults = 2186,
226
+ RequiredParametersCannotFollowOptionalParameters = 2187,
227
+ ExpressionCannotBeReferenced = 2188,
228
+ TextIsMissingAmongPrimaryTextTranslationDefinitions = 2189,
229
+ DeclarationHasAlreadyBeenTranslated = 2190,
230
+ TheNumberOfTranslatedParametersMustBeEqualToTheNumberOfSourceParameters = 2191,
231
+ TheNumberOfTranslatedTypeParametersMustBeEqualToTheNumberOfSourceTypeParameters = 2192,
232
+ TheNameOfTheTranslatedOperatorMustMeTheSameAsSourceOperatorName = 2193,
233
+ TranslationOfFunctionTypeMustIncludeParameterList = 2194,
234
+ OnlyOneTextTranslationPackageShouldBeMarkedAsPrimary = 2195,
235
+ Declarations0And1HaveTheSameSourceNamesButDifferentTranslatedNames23 = 2196,
236
+ TranslatedDeclarations0And1HaveTheSameTranslatedNamesButDifferentSourceNames23 = 2197,
237
+ TranslatedOverridingMember0MustTheSameNameAsBaseMember1 = 2198,
238
+ TextTranslationAlreadyExistsInTheTextTranslationPackage = 2199,
239
+ PackageDoesNotContainImplementationOf0 = 2200,
240
+ TypeDoesNotContainImplementationOf0 = 2201,
241
+ ImplementationVariableMustBeMutableToMatchInterfacePackageVariable0 = 2202,
242
+ ImplementationFunctionMustBeAsyncToMatchInterfacePackageFunction0 = 2203,
243
+ ImplementationFunctionMustNotBeAsyncToMatchInterfacePackageFunction0 = 2204,
244
+ ImplementationTypeMustBeBasicToMatchInterfacePackageType0 = 2205,
245
+ ImplementationTypeMustNotBeAbstractToMatchInterfacePackageType0 = 2206,
246
+ ImplementationTypeMemberMustBeBasicToMatchInterfacePackageTypeMember0 = 2207,
247
+ ImplementationTypeMemberMustNotBeAbstractToMatchInterfacePackageTypeMember0 = 2208,
248
+ ImplementationTypeMemberMustHaveWriteFunctionToMatchInterfacePackageTypeMember0 = 2209,
249
+ BreakLoopAndContinueLoopStatementsCanOnlyBeUsedInsideALoop = 2210,
250
+ BreakLoopAndContinueLoopStatementsCannotBeUsedInFinallyBlock = 2211,
251
+ TheCodeWasExpectedToBeUnreachable = 2212,
252
+ CorrespondingReductionSourceTypeMemberNotFound = 2213,
253
+ OnlyTypesPresentInBaseTypeListOrReductionSourceCanBeSpecified = 2214,
254
+ ReducedTypeMemberMustHaveTheSameTypeAsReductionSourceMember = 2215,
255
+ ReducedTypeMemberMustHaveTheSameHidingLevelAsReductionSourceMember = 2216,
256
+ ReducedTypeFieldMustBeImmutableToMatchReductionSourceField = 2217,
257
+ ReducedTypeMethodMustBeAsyncToMatchReductionSourceMethod = 2218,
258
+ ReducedTypeMethodMustNotBeAsyncToMatchReductionSourceMethod = 2219,
259
+ ReducedTypeMemberMustHaveNoWriteFunctionToMatchReductionSourceMember = 2220,
260
+ StructureFieldsMustBeImmutable = 2221,
261
+ StructureFieldsMustBeImmutableAutomaticallyCreatedStoredFieldIsMutable = 2222,
262
+ FieldTypeCausesRecursiveStructureLayout = 2223,
263
+ QuestionOperatorCanBeUsedOnlyInSpecificExpressions = 2224,
264
+ BaseTypeListMustNotBeEmpty = 2225,
265
+ ObjectParameterMustBeTheFirstParameter = 2226,
266
+ ObjectParameterCannotBeDeclaredHere = 2227,
267
+ OperatorCannotBeAsync = 2228,
268
+ OperatorCannotContainTypeParameterDeclarations = 2229,
269
+ TypeNameExpectedAtLastQualifier = 2230,
267
270
  CannotFindTsLibDirectoryBaseSearchPaths0 = 3000,
268
271
  SourceFile0IsNotPartOfThePackageAndWontBeLoaded = 3001,
269
272
  ProgramWithoutMainPackageCannotBeCompiled = 3002,
@@ -1,7 +1,7 @@
1
1
  import { TaskController, Uri } from '../common/index.js';
2
2
  import { Diagnostic, DiagnosticAcceptor } from '../diagnostic/Diagnostic.js';
3
3
  import { Compilation } from './Compilation.js';
4
- import { ConvertedConfiguration } from './configuration/ConfigurationConverter.js';
4
+ import { PackageOrGroupConfiguration } from './configuration/ConfigurationConverter.js';
5
5
  import * as fsTree from './FileSystemTree.js';
6
6
  import * as packageContent from './PackageContent.js';
7
7
  import { PackageName, ProgramPackageConfiguration } from './SourcePackage.js';
@@ -92,10 +92,10 @@ export declare class CompilationLoadResult {
92
92
  constructor(compilation: Compilation | undefined, configurationsByPackageOrGroupUri: ReadonlyMap<string, ProcessedConfigurationInfo>);
93
93
  }
94
94
  interface ProcessedConfigurationInfo {
95
- processedConfiguration: ConvertedConfiguration | undefined;
95
+ processedConfiguration: PackageOrGroupConfiguration | undefined;
96
96
  diagnostics: readonly Diagnostic[];
97
97
  configurationFileVersion: number;
98
98
  }
99
99
  export type MainPackageConfigurationProvider = () => Promise<ProgramPackageConfiguration>;
100
- export type ConfigurationProvider = (configurationDirectory: ConfigurationDirectoryInfo, isLoadedFromNodeModules: boolean, process: (configurationDirectory: ConfigurationDirectoryInfo) => Promise<ConvertedConfiguration | undefined>) => Promise<ConvertedConfiguration | undefined>;
100
+ export type ConfigurationProvider = (configurationDirectory: ConfigurationDirectoryInfo, isLoadedFromNodeModules: boolean, process: (configurationDirectory: ConfigurationDirectoryInfo) => Promise<PackageOrGroupConfiguration | undefined>) => Promise<PackageOrGroupConfiguration | undefined>;
101
101
  export {};
@@ -52,6 +52,7 @@ export declare class TranslationPackageConfiguration {
52
52
  readonly translationLocale: PackageLocale;
53
53
  readonly locale: PackageLocale;
54
54
  readonly dialect: PackageDialect;
55
+ readonly kind = "name-translation-package";
55
56
  readonly name: PackageName;
56
57
  constructor(targetPackageName: PackageName, translatedName: PackageName, translationLocale: PackageLocale, locale: PackageLocale, dialect?: PackageDialect);
57
58
  }
@@ -65,6 +66,7 @@ export declare class TextTranslationPackageConfiguration {
65
66
  readonly targetPlatform: TargetPlatformConfig;
66
67
  readonly packageImportLocales: readonly PackageImportLocaleConfig[];
67
68
  readonly automaticallyImportedPackages?: readonly PackageName[] | undefined;
69
+ readonly kind = "text-translation-package";
68
70
  readonly name: PackageName;
69
71
  constructor(targetPackageName: PackageName, translationLocale: string, isPrimaryTranslation: boolean | undefined, locale: PackageLocale, dialect?: PackageDialect, version?: string | undefined, targetPlatform?: TargetPlatformConfig, packageImportLocales?: readonly PackageImportLocaleConfig[], automaticallyImportedPackages?: readonly PackageName[] | undefined);
70
72
  }
@@ -79,6 +81,7 @@ export declare class ProgramPackageConfiguration {
79
81
  readonly jsProjectRootUri?: Uri | undefined;
80
82
  readonly packageImportLocales: readonly PackageImportLocaleConfig[];
81
83
  readonly automaticallyImportedPackages?: readonly PackageName[] | undefined;
84
+ readonly kind = "program-package";
82
85
  constructor(name: PackageName, locale: PackageLocale, dialect?: PackageDialect, version?: string | undefined, targetPlatform?: TargetPlatformConfig, requiredPackages?: readonly RequiredPackageConfig[], implementedInterfacePackageName?: PackageName | undefined, jsProjectRootUri?: Uri | undefined, packageImportLocales?: readonly PackageImportLocaleConfig[], automaticallyImportedPackages?: readonly PackageName[] | undefined);
83
86
  isInterfacePackage(): boolean;
84
87
  }
@@ -5,7 +5,7 @@ import * as origin from '../configuration/types/PackageConfigurationEn.js';
5
5
  import { PackageConfiguration, ProgramPackageConfiguration, TextTranslationPackageConfiguration, TranslationPackageConfiguration } from '../SourcePackage.js';
6
6
  export declare class ConfigurationConverter {
7
7
  private static readonly uriRegexp;
8
- static convert(configurations: readonly origin.Configuration[], packageOrGroupUri?: Uri, defaultLocale?: PackageLocale, defaultDialect?: PackageDialect): ConvertedConfiguration;
8
+ static convert(configuration: origin.Configuration | undefined, packageOrGroupUri?: Uri, defaultLocale?: PackageLocale, defaultDialect?: PackageDialect): PackageOrGroupConfiguration;
9
9
  static convertPackageConfiguration(configuration: origin.Package, packageOrGroupUri?: Uri, defaultLocale?: PackageLocale, defaultDialect?: PackageDialect): ProgramPackageConfiguration;
10
10
  static convertPackageGroupConfiguration(configuration: origin.PackageGroup): PackageGroupConfiguration;
11
11
  static convertNameTranslationsConfiguration(configuration: origin.NameTranslations, defaultLocale?: PackageLocale, defaultDialect?: PackageDialect): TranslationPackageConfiguration;
@@ -19,10 +19,8 @@ export declare class ConfigurationConverter {
19
19
  private static convertJavaScriptModuleFormat;
20
20
  private static tryParseUri;
21
21
  }
22
- export interface ConvertedConfiguration {
23
- packageConfiguration?: PackageConfiguration;
24
- packageGroupConfiguration?: PackageGroupConfiguration;
25
- }
22
+ export type PackageOrGroupConfiguration = PackageConfiguration | PackageGroupConfiguration;
26
23
  export declare class PackageGroupConfiguration {
24
+ readonly kind = "package-group";
27
25
  }
28
26
  export declare function createDefaultPackageConfiguration(packageUri: Uri | undefined, locale?: PackageLocale, dialect?: PackageDialect): ProgramPackageConfiguration;
@@ -1,3 +1,4 @@
1
+ import { Option } from '../../common/index.js';
1
2
  import { PackageLocale } from '../../common/PackageLocale.js';
2
3
  import { RangeDiagnosticAcceptor } from '../../diagnostic/RangeDiagnostic.js';
3
4
  import * as configEn from '../configuration/types/PackageConfigurationEn.js';
@@ -8,19 +9,19 @@ export declare class ConfigurationFileParser {
8
9
  * Выполняет разбор и валидацию конфигурации (проверка соответствия JSON схеме), преобразует в конфигурацию на
9
10
  * английском языке путём замены имён свойств.
10
11
  *
11
- * @returns Возвращает `ConfigurationArray`, если конфигурация была успешно разобрана, `undefined`, если содержала
12
+ * @returns Возвращает `Option.some`, если конфигурация была успешно разобрана, `Option.none`, если содержала
12
13
  * ошибки (ошибки в синтаксисе JSON, несоответствие JSON схеме).
13
14
  *
14
15
  * @example
15
- * [{
16
+ * {
16
17
  * "тип": "Пакет",
17
18
  * "имя": "МойПакет"
18
- * }]
19
+ * }
19
20
  * ->
20
- * [{
21
+ * {
21
22
  * "type": "Package",
22
23
  * "name": "МойПакет"
23
- * }]
24
+ * }
24
25
  */
25
- static parse(json: string, locale: PackageLocale, diagnostics: RangeDiagnosticAcceptor | undefined): Promise<configEn.ConfigurationArray | undefined>;
26
+ static parse(json: string, locale: PackageLocale, diagnostics: RangeDiagnosticAcceptor | undefined): Promise<Option<configEn.Configuration | undefined>>;
26
27
  }
@@ -1,7 +1,6 @@
1
1
  import { PackageLocale } from '../../common/PackageLocale.js';
2
2
  import * as configEn from '../configuration/types/PackageConfigurationEn.js';
3
3
  import * as configRu from '../configuration/types/PackageConfigurationRu.js';
4
- export type ConfigurationArray = configEn.ConfigurationArray | configRu.МассивКонфигураций;
5
4
  export type Configuration = configEn.Configuration | configRu.Конфигурация;
6
5
  /**
7
6
  * Заменяет ключи объектов конфигурации на ключи на английском языке.
@@ -18,6 +17,5 @@ export type Configuration = configEn.Configuration | configRu.Конфигура
18
17
  * }]
19
18
  */
20
19
  export declare class ConfigurationTranslator {
21
- static translate(configuration: ConfigurationArray, locale: PackageLocale): configEn.ConfigurationArray;
22
- static translateConfiguration(configuration: Configuration, locale: PackageLocale): configEn.Configuration;
20
+ static translate(configuration: Configuration, locale: PackageLocale): configEn.Configuration;
23
21
  }
@@ -1,7 +1,6 @@
1
- export type ConfigurationArray = Configuration[];
2
1
  export type Configuration = Package | PackageGroup | NameTranslations | TextTranslations;
3
2
  export interface Package {
4
- type: 'Package';
3
+ type?: 'Package';
5
4
  name: string;
6
5
  language?: Language;
7
6
  dialect?: Dialect;
@@ -1,7 +1,6 @@
1
- export type МассивКонфигураций = Конфигурация[];
2
1
  export type Конфигурация = Пакет | ГруппаПакетов | ПереводыИмён | ПереводыТекстов;
3
2
  export interface Пакет {
4
- тип: 'Пакет';
3
+ тип?: 'Пакет';
5
4
  имя: string;
6
5
  язык?: Язык;
7
6
  диалект?: Диалект;
@@ -2,7 +2,7 @@ import { Indicator, RxObject } from 'reactronic';
2
2
  import { Analyzer, TsInteropInputs } from '../../analysis/index.js';
3
3
  import { TaskController, Uri } from '../../common/index.js';
4
4
  import { Diagnostic } from '../../diagnostic/Diagnostic.js';
5
- import { ConvertedConfiguration, ProgramPackageConfiguration, SourceFile, fsTree } from '../../project/index.js';
5
+ import { PackageOrGroupConfiguration, ProgramPackageConfiguration, SourceFile, fsTree } from '../../project/index.js';
6
6
  import { PackageContent } from '../../project/PackageContent.js';
7
7
  import { TypeScriptLibrariesProvider } from '../../ts-interop/TsLibrariesProvider.js';
8
8
  import { ReadonlyClientTrackedSourceFiles } from './ClientTrackedSourceFiles.js';
@@ -112,7 +112,7 @@ declare class ConfigurationController extends RxObject {
112
112
  private convertedJsonConfigurationFileVersion;
113
113
  private convertedConfiguration_;
114
114
  private convertedConfigurationVersion_;
115
- get convertedConfiguration(): ConvertedConfiguration | undefined;
115
+ get convertedConfiguration(): PackageOrGroupConfiguration | undefined;
116
116
  get convertedConfigurationVersion(): number;
117
117
  get hasConvertedConfiguration(): boolean;
118
118
  constructor(rootDirectory: fsTree.Directory, packageUri: Uri, mainCompilationController: CompilationController);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artel/artc",
3
- "version": "0.6.26017",
3
+ "version": "0.6.26018",
4
4
  "description": "Артель Компилятор | Artel Compiler",
5
5
  "author": "Nezaboodka Team <contact@nezaboodka.com>",
6
6
  "license": "Apache-2.0",