@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.
- 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 +9 -13
- package/build/{chunk-UCBPXOLW.js → chunk-4LBH5LW4.js} +1 -1
- package/build/{chunk-SJFIPH42.js → chunk-NQCSWP3L.js} +961 -923
- package/build/{chunk-65XBWCU7.js → chunk-WVQAJC2B.js} +2 -2
- package/build/types/analysis/Analyzer.d.ts +3 -0
- package/build/types/analysis/BaseExpressionMeaning.d.ts +1 -0
- package/build/types/analysis/ObjectExpressionMeaning.d.ts +0 -1
- package/build/types/diagnostic/DiagnosticCode.d.ts +177 -174
- package/build/types/project/CompilationLoader.d.ts +3 -3
- package/build/types/project/SourcePackage.d.ts +3 -0
- package/build/types/project/configuration/ConfigurationConverter.d.ts +3 -5
- package/build/types/project/configuration/ConfigurationFileParser.d.ts +7 -6
- package/build/types/project/configuration/ConfigurationTranslator.d.ts +1 -3
- package/build/types/project/configuration/types/PackageConfigurationEn.d.ts +1 -2
- package/build/types/project/configuration/types/PackageConfigurationRu.d.ts +1 -2
- package/build/types/services/workspace/CompilationController.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Compiler
|
|
3
|
-
} from "./chunk-
|
|
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-
|
|
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
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
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 {
|
|
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:
|
|
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<
|
|
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(
|
|
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
|
|
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 Возвращает `
|
|
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.
|
|
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:
|
|
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
|
|
3
|
+
type?: 'Package';
|
|
5
4
|
name: string;
|
|
6
5
|
language?: Language;
|
|
7
6
|
dialect?: Dialect;
|
|
@@ -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 {
|
|
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():
|
|
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);
|