@artel/artc 0.6.25280 → 0.6.25282
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 +16 -10
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +315 -219
- package/build/{chunk-YIFO3FBO.js → chunk-3DN3M64Y.js} +3 -3
- package/build/{chunk-W3UL6UED.js → chunk-DURHSZYF.js} +5 -4
- package/build/{chunk-LLI2DYRX.js → chunk-VVFLEWSA.js} +3236 -3331
- package/build/types/analysis/AccessedFunction.d.ts +4 -0
- package/build/types/analysis/AnalyzedTranslationPackage.d.ts +3 -3
- package/build/types/analysis/Analyzer.d.ts +35 -48
- package/build/types/analysis/AutotypeCallExpressionMeaning.d.ts +5 -5
- package/build/types/analysis/BaseExpressionMeaning.d.ts +8 -18
- package/build/types/analysis/CallExpressionMeaning.d.ts +4 -9
- package/build/types/analysis/DereferenceExpressionMeaning.d.ts +3 -4
- package/build/types/analysis/IdentifierExpressionMeaning.d.ts +8 -16
- package/build/types/analysis/IndexedAccessExpressionMeaning.d.ts +4 -8
- package/build/types/analysis/MemberAccessExpressionMeaning.d.ts +8 -16
- package/build/types/analysis/NamedTypeResolver.d.ts +4 -4
- package/build/types/analysis/NamedTypeSpecifierResolver.d.ts +4 -4
- package/build/types/analysis/NodeTypeUtils.d.ts +1 -1
- package/build/types/analysis/ObjectExpressionMeaning.d.ts +4 -9
- package/build/types/analysis/{PackageMemberNameConflictsValidator.d.ts → PackageMemberConflictsValidator.d.ts} +8 -4
- package/build/types/analysis/ResolvedTextTranslationPackage.d.ts +9 -0
- package/build/types/analysis/SourceFileAnalyzer.d.ts +1 -0
- package/build/types/analysis/SourcePackageDependencyGraph.d.ts +4 -0
- package/build/types/analysis/SubstitutedFunction.d.ts +3 -0
- package/build/types/analysis/TagMeaning.d.ts +4 -4
- package/build/types/analysis/UserDefinableBinaryOperatorResolver.d.ts +4 -3
- package/build/types/analysis/UserDefinableUnaryOperatorResolver.d.ts +4 -3
- package/build/types/analysis/Utils.d.ts +1 -0
- package/build/types/analysis/semantic-context/SemanticContextBase.d.ts +1 -1
- package/build/types/analysis/semantic-context/SourceFileSemanticContext.d.ts +8 -4
- package/build/types/api/Api.d.ts +4 -5
- package/build/types/common/ArrayUtils.d.ts +3 -1
- package/build/types/common/Displayable.d.ts +4 -4
- package/build/types/common/FormatString.d.ts +1 -1
- package/build/types/common/index.d.ts +3 -0
- package/build/types/diagnostic/DiagnosticCode.d.ts +238 -238
- package/build/types/diagnostic/DiagnosticData.d.ts +2 -2
- package/build/types/emitter/IrBuilder.d.ts +3 -1
- package/build/types/emitter/IrFactory.d.ts +2 -2
- package/build/types/emitter/Transformer.d.ts +3 -3
- package/build/types/emitter/ir/Nodes.d.ts +6 -6
- package/build/types/emitter/ir/types.d.ts +2 -2
- package/build/types/entities/Entity.d.ts +1 -1
- package/build/types/entities/EntityLocalizationContext.d.ts +2 -1
- package/build/types/entities/PackageEntityMembers.d.ts +22 -0
- package/build/types/entities/index.d.ts +1 -1
- package/build/types/entities/interfaces/PackageEntity.d.ts +1 -2
- package/build/types/entities/interfaces/TextTranslationEntity.d.ts +2 -1
- package/build/types/entities/interfaces/VariableEntity.d.ts +1 -1
- package/build/types/entities/source/SourcePackageEntity.d.ts +1 -2
- package/build/types/entities/source/SourceTextTranslationEntity.d.ts +2 -1
- package/build/types/entities/source/SourceTypeExtensionEntity.d.ts +4 -0
- package/build/types/entities/source/SourceVariableEntity.d.ts +2 -2
- package/build/types/entities/translated/TranslatedPackageEntity.d.ts +2 -3
- package/build/types/project/PackageContent.d.ts +1 -1
- package/build/types/project/SourcePackage.d.ts +3 -1
- package/build/types/project/configuration/ConfigurationConverter.d.ts +1 -1
- package/build/types/project/configuration/types/PackageConfigurationEn.d.ts +4 -4
- package/build/types/project/configuration/types/PackageConfigurationRu.d.ts +4 -4
- package/build/types/services/AddBlockToScriptService.d.ts +17 -0
- package/build/types/services/CustomRequests.d.ts +11 -2
- package/build/types/services/DisplayService.d.ts +1 -2
- package/build/types/services/EvaluatableExpressionService.d.ts +1 -1
- package/build/types/services/LanguageServer.d.ts +3 -1
- package/build/types/services/SourceFileItemsService.d.ts +1 -1
- package/build/types/tree/NodeKind.d.ts +1 -1
- package/build/types/tree/Nodes.d.ts +6 -6
- package/build/types/tree/SyntaxFactory.d.ts +1 -1
- package/build/types/tree/SyntaxToCode.d.ts +1 -1
- package/build/types/tree/Token.d.ts +4 -3
- package/build/types/tree/TokenKind.d.ts +58 -60
- package/build/types/types/AliasType.d.ts +1 -1
- package/build/types/types/FunctionType.d.ts +2 -2
- package/build/types/types/IntersectionType.d.ts +1 -1
- package/build/types/types/ParameterType.d.ts +1 -1
- package/build/types/types/Substitutions.d.ts +1 -1
- package/build/types/types/Type.d.ts +1 -4
- package/build/types/types/TypeMembers.d.ts +8 -8
- package/build/types/types/UnionType.d.ts +1 -1
- package/build/types/types/VariantType.d.ts +1 -1
- package/package.json +1 -1
- package/build/types/analysis/AnalyzedTextTranslationPackage.d.ts +0 -20
- package/build/types/analysis/SourceFileMembers.d.ts +0 -22
- package/build/types/entities/PackageMembers.d.ts +0 -15
|
@@ -1,240 +1,240 @@
|
|
|
1
1
|
export declare enum DiagnosticCode {
|
|
2
|
-
UnterminatedToken =
|
|
3
|
-
UnterminatedMultiLineComment =
|
|
4
|
-
UnterminatedNumber =
|
|
5
|
-
UnterminatedTextOrTextTemplate =
|
|
6
|
-
UnterminatedQuotedIdentifier =
|
|
7
|
-
IdentifierExpected =
|
|
8
|
-
TypeNameExpected =
|
|
9
|
-
PackageNameExpected =
|
|
10
|
-
TypeMemberDeclarationExpected =
|
|
11
|
-
PackageMemberDeclarationExpected =
|
|
12
|
-
ForStatementVariableDeclarationExpected =
|
|
13
|
-
StatementExpected =
|
|
14
|
-
ExpressionExpected =
|
|
15
|
-
ExpressionCannotBeUsedAsStatement =
|
|
16
|
-
Expected0But1Found =
|
|
17
|
-
Delimiter0Expected =
|
|
18
|
-
BaseTypeNameExpected =
|
|
19
|
-
TypeSpecifierExpected =
|
|
20
|
-
TypeBodyExpected =
|
|
21
|
-
ParameterExpected =
|
|
22
|
-
TypeParameterExpected =
|
|
23
|
-
CatchClauseOrFinallyClauseExpected =
|
|
24
|
-
PackageImportExpected =
|
|
25
|
-
DeclarationOrPackageImportExpected =
|
|
26
|
-
InvalidTextTemplate =
|
|
27
|
-
ModifierListExpected =
|
|
28
|
-
RunKeywordCreationKeywordOrModifierListExpected =
|
|
29
|
-
HidingLevelExpected =
|
|
30
|
-
ParameterNameCanContainOnlyOneBackQuote =
|
|
31
|
-
FieldNameCanContainOnlyTwoBackQuote =
|
|
32
|
-
BackQuotesCanOnlyBeUsedInParameterAndFieldNames =
|
|
33
|
-
NameThatMatchesKeywordMustBeEnclosedInSingleQuotes =
|
|
34
|
-
TagNameExpected =
|
|
35
|
-
TypeMemberTranslationExpected =
|
|
36
|
-
TranslationExpected =
|
|
37
|
-
TranslatedTextTemplateOrTranslationFunctionBlockExpected =
|
|
38
|
-
TranslatedTextCannotBeginOrEndWithTilde =
|
|
39
|
-
TypeCannotBeUsedAsValue =
|
|
40
|
-
PackageNameCannotBeUsedAsValue =
|
|
41
|
-
PackageAliasCannotBeUsedAsValue =
|
|
42
|
-
PackageMemberOrPackageNotFound =
|
|
43
|
-
PackageMemberNotFound =
|
|
44
|
-
TypeMemberNotFound =
|
|
45
|
-
ConstructorNotFound =
|
|
46
|
-
ConstructorWithTheGivenParameterNamesNotFound =
|
|
47
|
-
IndexerOfTheSpecifiedTypeNotFound =
|
|
48
|
-
DereferenceOperatorOfTheSpecifiedTypeNotFound =
|
|
49
|
-
IndexerNotFound =
|
|
50
|
-
IndexerWithTheGivenParameterNamesNotFound =
|
|
51
|
-
CannotAccessStaticMembersOnTypeParameter =
|
|
52
|
-
CannotCreateInstanceOfAspect =
|
|
53
|
-
CannotCreateInstanceOfAbstractType =
|
|
54
|
-
CannotCreateInstanceOfTypeParameter =
|
|
55
|
-
CannotCreateInstanceOfUnresolvedType =
|
|
56
|
-
ExpressionIsNotCallable =
|
|
57
|
-
ParameterForPositionalArgumentNotFound =
|
|
58
|
-
ParameterWithGivenNameNotFound =
|
|
59
|
-
PositionalArgumentsCannotFollowNamedArguments =
|
|
60
|
-
ArgumentForParameterAlreadyAssigned =
|
|
61
|
-
RequiredParameter0IsNotProvidedWithAnArgument =
|
|
62
|
-
ExtraArgumentExpected0Arguments =
|
|
63
|
-
ExtraArgumentExpectedFrom0ATo1Arguments =
|
|
64
|
-
UnknownVariable =
|
|
65
|
-
UnknownType =
|
|
66
|
-
TypeWithArity0NotFound =
|
|
67
|
-
TypeWithName0NotFound =
|
|
68
|
-
TypeWithTheGivenParameterAndTypeParameterNamesNotFound =
|
|
69
|
-
TypeWithTheGivenTypeParameterNamesNotFound =
|
|
70
|
-
VariableUsedBeforeBeingDeclared =
|
|
71
|
-
Type0IsNotAssignableToType1 =
|
|
72
|
-
Type0OfTheImplicitlyReturnedExpressionIsNotAssignableToType1 =
|
|
73
|
-
VariableWithName0NotFound =
|
|
74
|
-
FunctionWithName0NotFound =
|
|
75
|
-
FunctionWithTheGivenParameterAndTypeParameterNamesNotFound =
|
|
76
|
-
UnknownPackage =
|
|
77
|
-
CannotAssignValueToExpression =
|
|
78
|
-
AutotypeExpressionCannotBeUsedHere =
|
|
79
|
-
CannotDetermineTargetTypeToCallTheConstructor =
|
|
80
|
-
AmbiguousAccess =
|
|
81
|
-
AmbiguousAccess0 =
|
|
82
|
-
CannotAssignValueToContextVariable =
|
|
83
|
-
ExpectedPackageNameOrAliasButFoundType =
|
|
84
|
-
TypeExpected =
|
|
85
|
-
NameOfTypeOrPackageNotFound =
|
|
86
|
-
TypeIsNotATag =
|
|
87
|
-
Operator0IsNotDefinedForTypes1And2 =
|
|
88
|
-
Operator0IsNotDefinedForType1 =
|
|
89
|
-
VariantMustHaveAssociatedValue =
|
|
90
|
-
TranslationsCanOnlyBeDeclaredInTranslationPackage =
|
|
91
|
-
UnknownTranslatingPackage0 =
|
|
92
|
-
BaseCannotBeUsedInThisContext =
|
|
93
|
-
OverriddenMethodNotFound =
|
|
94
|
-
ObjectCannotBeUsedInThisContext =
|
|
95
|
-
BaseCannotBeUsedAsAnExpressionInItself =
|
|
96
|
-
InterfacePackageMustNotContainImplementation =
|
|
97
|
-
InterfacePackageVariablesMustNotHaveInitializers =
|
|
98
|
-
BodyIsMissing =
|
|
99
|
-
AbstractTypeMembersMustNotHaveBody =
|
|
100
|
-
MembersOfAspectTypeMustNotHaveBody =
|
|
101
|
-
AspectTypeFieldsMustBeAbstract =
|
|
102
|
-
DeclarationsMarkedWithBuiltIntoPlatformTagMustNotHaveBody =
|
|
103
|
-
AbstractFieldsMustNotHaveInitializers =
|
|
104
|
-
PackageIsAlreadyImported =
|
|
105
|
-
OnlySubprogramsWithReturnTypeCanReturnValue =
|
|
106
|
-
FunctionsUsingYieldStatementCannotReturnValue =
|
|
107
|
-
YieldStatementCannotBeUsedInAnonymousFunctions =
|
|
108
|
-
YieldStatementCannotBeUsedHere =
|
|
109
|
-
FunctionsUsingYieldStatementMustHaveEnumerableAsReturnType =
|
|
110
|
-
YieldStatementCannotBeUsedInTryStatementThatHasCatchClause =
|
|
111
|
-
YieldStatementCannotBeUsedInFinallyClause =
|
|
112
|
-
SubprogramMustReturnValue =
|
|
113
|
-
ResultVariableCannotBeUsedInFunctionsUsingYieldStatement =
|
|
114
|
-
TypeAliasReferencesItself =
|
|
115
|
-
TypeParameterHasCircularConstraint =
|
|
116
|
-
BaseTypeCausesInheritanceCycle =
|
|
117
|
-
OnlyGenericTypesAndFunctionsCanBeSpecialized =
|
|
118
|
-
Expected0TypeArguments =
|
|
119
|
-
ExpectedFrom0To1TypeArguments =
|
|
120
|
-
Type0IsNotAssignableToConstraint1 =
|
|
121
|
-
VariableIsDeclaredButItsValueIsNeverRead =
|
|
122
|
-
FunctionIsDeclaredButNotUsed =
|
|
123
|
-
TypeParameterIsDeclaredButNotUsed =
|
|
124
|
-
DefaultConstructorArgumentsMustBeNamed =
|
|
125
|
-
IncorrectBodyOfBasicAliasTypeMethod =
|
|
126
|
-
TheFollowingDeclarationsAreNotTranslated0 =
|
|
127
|
-
TheFollowingDeclarationsAreNotTranslated0And1More =
|
|
128
|
-
TheFollowingTextsAreNotTranslated0 =
|
|
129
|
-
TheFollowingTextsAreNotTranslated0And1More =
|
|
130
|
-
OperatorFunction0MustNotHaveParameters =
|
|
131
|
-
OperatorFunction0MustHaveOneParameter =
|
|
132
|
-
OperatorFunction0MustHaveNoMoreThanOneParameter =
|
|
133
|
-
CorrespondingBasicTypeMemberNotFound =
|
|
134
|
-
AsyncFunctionCanOnlyBeCalledFromFunctionMarkedWithAsyncModifier =
|
|
135
|
-
TagNotFound =
|
|
136
|
-
TypeOrFunctionNameExpected =
|
|
137
|
-
PackageNameOrAliasExpected =
|
|
138
|
-
ExpressionCanBeNull =
|
|
139
|
-
TargetVariableExpressionInTheAssignmentStatementCannotContainQuestionOperator =
|
|
140
|
-
UnreachableCode =
|
|
141
|
-
RecursionOccurredWhileCalculatingTheTypeOfTheExpression =
|
|
142
|
-
RecursionOccurredWhileInferringTheTypeOfTheVariable =
|
|
143
|
-
ScopeAlreadyContainsDeclarationWithTheSameName =
|
|
144
|
-
ScopeAlreadyContainsFunctionWithTheSameNameAndParameterTypes =
|
|
145
|
-
ParameterName0ConflictsWithAutomaticallyGeneratedVariableName =
|
|
146
|
-
PackageAlreadyContainsDeclarationWithTheSameName =
|
|
147
|
-
PackageAlreadyContainsFunctionWithTheSameNameAndParameterTypes =
|
|
148
|
-
PackageAlreadyContainsTypeWithTheSameNameAndSameOrIntersectingTypeParameterCount =
|
|
149
|
-
PackageAliasWithTheSameNameAlreadyExits =
|
|
150
|
-
TypeAlreadyContainsDeclarationWithTheSameName =
|
|
151
|
-
TypeAlreadyContainsMethodWithTheSameNameAndParameterTypes =
|
|
152
|
-
TypeAlreadyContainsConstructorWithTheSameParameterTypes =
|
|
153
|
-
TypeAlreadyContainsOperatorFunctionWithTheSameParameterTypes =
|
|
154
|
-
TypeAlreadyContainsIndexerWithTheSameParameterTypes =
|
|
155
|
-
TypeCanHaveOnlyOneDestructor =
|
|
156
|
-
TypeCanHaveOnlyOneDereferenceOperator =
|
|
157
|
-
VariableIsUsedBeforeItsDeclaration =
|
|
158
|
-
VariableMayNotHasBeenAssignedBeforeUsage =
|
|
159
|
-
NotAllCodePathsReturnAValueAndResultLocalVariableMayNotHasBeenAssigned =
|
|
160
|
-
WriteFunctionHasNoCorrespondingReadFunction =
|
|
161
|
-
TypeCannotHaveMultipleBaseObjectTypes =
|
|
162
|
-
TypeThatIsNotMarkedAsBasicCannotBeUsedAsBaseType =
|
|
163
|
-
PlainObjectTypeCannotBeUsedAsBaseType =
|
|
164
|
-
ThisTypeIsAlreadyListedInBaseTypeList =
|
|
165
|
-
OnlyObjectAndAspectTypesCanBeUsedAsBaseTypes =
|
|
166
|
-
PlainObjectTypeCanHaveOnlyAspectsAsBaseTypes =
|
|
167
|
-
AspectTypeCanHaveOnlyAspectsAsBaseTypes =
|
|
168
|
-
ModifierListAlreadyContains0Modifier =
|
|
169
|
-
ModifierListOfOuterDeclarationGroupAlreadyContains0Modifier =
|
|
170
|
-
_0ModifierIsNotAllowedHere =
|
|
171
|
-
DeclarationCannotBePlacedInGroupHaving0Modifier =
|
|
172
|
-
PackageConstructorDeclarationCannotHaveModifiers =
|
|
173
|
-
PackageEntryPointDeclarationCannotHaveModifiers =
|
|
174
|
-
TranslationsCannotHaveModifiers =
|
|
175
|
-
AbstractModifierCanOnlyBeUsedInAbstractObjectTypes =
|
|
176
|
-
BasicModifierCanOnlyBeUsedInObjectTypesAspectTypesAndTypeAliases =
|
|
177
|
-
OverrideModifierCanOnlyBeUsedInObjectAndAspectTypes =
|
|
178
|
-
_0ModifierCannotBeUsedWith1Modifier =
|
|
179
|
-
|
|
180
|
-
BasicModifierCanOnlyBeAppliedToObjectTypes =
|
|
181
|
-
AbstractModifierCanOnlyBeAppliedToObjectTypes =
|
|
182
|
-
NotBasicObjectTypesCannotHaveBasicMembers =
|
|
183
|
-
BasicModifierCannotBeAppliedToAspectTypeFields =
|
|
184
|
-
WriteFunctionMustHaveTheSameModifiersAsReadFunction =
|
|
185
|
-
WriteFunctionMustHaveTheSameOrMoreRestrictiveHidingLevelThenReadFunction =
|
|
186
|
-
DeclarationConflictsWithBaseTypeMember0 =
|
|
187
|
-
DeclarationConflictsWithBaseTypeMember0AddOverrideModifier =
|
|
188
|
-
DeclarationConflictsWithBaseTypeMember0ThisMemberCannotBeOverridden =
|
|
189
|
-
DeclarationConflictsWithBaseTypeMember0ToOverrideTypeMustBeAssignableTo1 =
|
|
190
|
-
DeclarationConflictsWithBaseTypeMember0ToOverrideReturnTypeMustBeAssignableTo1 =
|
|
191
|
-
OverridingMemberMustHaveTheSameHidingLevelAsBaseMember0 =
|
|
192
|
-
OverridingMethodMustBeAsyncBecauseBaseMethod0IsAsync =
|
|
193
|
-
OverridingMethodMustNotBeAsyncBecauseBaseMethod0IsNotAsync =
|
|
194
|
-
OverridingFieldMustNotBeConstOrHaveWriteFunctionToMatchBaseField0 =
|
|
195
|
-
OverridingMemberMustHaveWriteFunctionToMatchBaseMember0 =
|
|
196
|
-
TypeDoesNotImplementMember0 =
|
|
197
|
-
TypeDoesNotImplementMember0ImplicitImplementationTypeMismatch1 =
|
|
198
|
-
TypeDoesNotImplementMember0ImplicitImplementation1IsAsync =
|
|
199
|
-
TypeDoesNotImplementMember0ImplicitImplementation1IsNotAsync =
|
|
200
|
-
TypeDoesNotImplementMember0ImplicitImplementation1IsNotWriteable =
|
|
201
|
-
TypeDoesNotImplementMember0ImplicitImplementation1WriteFunctionIsHidden =
|
|
202
|
-
CannotAccessAbstractMemberOfBaseType =
|
|
203
|
-
TheFollowingBaseTypeMembersConflictAndMustBeOverridden0 =
|
|
204
|
-
TheFollowingBaseTypeMembersConflictBecauseTheyHaveTheSameOriginalName0AndMustBeOverridden1 =
|
|
205
|
-
TheFirstStatementOfConstructorBlockMustBeEitherBaseOrOwnConstructorCall =
|
|
206
|
-
ThisCallCausesOwnConstructorCallCycle =
|
|
207
|
-
OwnConstructorCallMustBeTheFirstStatementOfConstructorBlock =
|
|
208
|
-
BaseConstructorCallMustBeTheFirstStatementOfConstructorBlock =
|
|
209
|
-
Field0HasNoInitializerAndMayNotBeAssignedInConstructor =
|
|
210
|
-
Field0HasNoInitializerAndMayNotBeAssignedInPackageConstructor =
|
|
211
|
-
Variable0HasNoInitializerAndMayNotBeAssignedInPackageConstructor =
|
|
212
|
-
ExpressionOfType0CanNotBeUsedInForLoopBecauseNotEnumerableAndNoMethod1 =
|
|
213
|
-
ForExpressionToBeUsedInForLoopMethod0MustReturnEnumeratorType =
|
|
214
|
-
CannotInferTypeArguments =
|
|
215
|
-
CanNotInferReturnTypeAddExplicitReturnTypeSpecifier =
|
|
216
|
-
ConstantVariablesBustBeInitialized =
|
|
217
|
-
VariableTypeIsNotSpecified =
|
|
218
|
-
CannotInferTypeOfFunctionLiteralAddTypeSpecifierForParameter =
|
|
219
|
-
TypeParameterDefaultCanReferenceOnlyPreviouslyDeclaredTypeParameters =
|
|
220
|
-
RequiredTypeParametersCannotFollowTypeParametersWithDefaults =
|
|
221
|
-
RequiredParametersCannotFollowOptionalParameters =
|
|
222
|
-
ExpressionCannotBeReferenced =
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
CannotFindTsLibDirectoryBaseSearchPaths0 =
|
|
235
|
-
SourceFile0IsNotPartOfThePackageAndWontBeLoaded =
|
|
236
|
-
ProgramWithoutMainPackageCannotBeCompiled =
|
|
237
|
-
ErrorsInJsonConfigurationFile =
|
|
238
|
-
StandardPackage0NotFound =
|
|
239
|
-
Declaration0NotFoundInStandardPackage1 =
|
|
2
|
+
UnterminatedToken = 1000,
|
|
3
|
+
UnterminatedMultiLineComment = 1001,
|
|
4
|
+
UnterminatedNumber = 1002,
|
|
5
|
+
UnterminatedTextOrTextTemplate = 1003,
|
|
6
|
+
UnterminatedQuotedIdentifier = 1004,
|
|
7
|
+
IdentifierExpected = 1100,
|
|
8
|
+
TypeNameExpected = 1101,
|
|
9
|
+
PackageNameExpected = 1102,
|
|
10
|
+
TypeMemberDeclarationExpected = 1103,
|
|
11
|
+
PackageMemberDeclarationExpected = 1104,
|
|
12
|
+
ForStatementVariableDeclarationExpected = 1105,
|
|
13
|
+
StatementExpected = 1106,
|
|
14
|
+
ExpressionExpected = 1107,
|
|
15
|
+
ExpressionCannotBeUsedAsStatement = 1108,
|
|
16
|
+
Expected0But1Found = 1109,
|
|
17
|
+
Delimiter0Expected = 1110,
|
|
18
|
+
BaseTypeNameExpected = 1111,
|
|
19
|
+
TypeSpecifierExpected = 1112,
|
|
20
|
+
TypeBodyExpected = 1113,
|
|
21
|
+
ParameterExpected = 1114,
|
|
22
|
+
TypeParameterExpected = 1115,
|
|
23
|
+
CatchClauseOrFinallyClauseExpected = 1116,
|
|
24
|
+
PackageImportExpected = 1117,
|
|
25
|
+
DeclarationOrPackageImportExpected = 1118,
|
|
26
|
+
InvalidTextTemplate = 1119,
|
|
27
|
+
ModifierListExpected = 1120,
|
|
28
|
+
RunKeywordCreationKeywordOrModifierListExpected = 1121,
|
|
29
|
+
HidingLevelExpected = 1122,
|
|
30
|
+
ParameterNameCanContainOnlyOneBackQuote = 1123,
|
|
31
|
+
FieldNameCanContainOnlyTwoBackQuote = 1124,
|
|
32
|
+
BackQuotesCanOnlyBeUsedInParameterAndFieldNames = 1125,
|
|
33
|
+
NameThatMatchesKeywordMustBeEnclosedInSingleQuotes = 1126,
|
|
34
|
+
TagNameExpected = 1127,
|
|
35
|
+
TypeMemberTranslationExpected = 1128,
|
|
36
|
+
TranslationExpected = 1129,
|
|
37
|
+
TranslatedTextTemplateOrTranslationFunctionBlockExpected = 1130,
|
|
38
|
+
TranslatedTextCannotBeginOrEndWithTilde = 1131,
|
|
39
|
+
TypeCannotBeUsedAsValue = 2000,
|
|
40
|
+
PackageNameCannotBeUsedAsValue = 2001,
|
|
41
|
+
PackageAliasCannotBeUsedAsValue = 2002,
|
|
42
|
+
PackageMemberOrPackageNotFound = 2003,
|
|
43
|
+
PackageMemberNotFound = 2004,
|
|
44
|
+
TypeMemberNotFound = 2005,
|
|
45
|
+
ConstructorNotFound = 2006,
|
|
46
|
+
ConstructorWithTheGivenParameterNamesNotFound = 2007,
|
|
47
|
+
IndexerOfTheSpecifiedTypeNotFound = 2008,
|
|
48
|
+
DereferenceOperatorOfTheSpecifiedTypeNotFound = 2009,
|
|
49
|
+
IndexerNotFound = 2010,
|
|
50
|
+
IndexerWithTheGivenParameterNamesNotFound = 2011,
|
|
51
|
+
CannotAccessStaticMembersOnTypeParameter = 2012,
|
|
52
|
+
CannotCreateInstanceOfAspect = 2013,
|
|
53
|
+
CannotCreateInstanceOfAbstractType = 2014,
|
|
54
|
+
CannotCreateInstanceOfTypeParameter = 2015,
|
|
55
|
+
CannotCreateInstanceOfUnresolvedType = 2016,
|
|
56
|
+
ExpressionIsNotCallable = 2017,
|
|
57
|
+
ParameterForPositionalArgumentNotFound = 2018,
|
|
58
|
+
ParameterWithGivenNameNotFound = 2019,
|
|
59
|
+
PositionalArgumentsCannotFollowNamedArguments = 2020,
|
|
60
|
+
ArgumentForParameterAlreadyAssigned = 2021,
|
|
61
|
+
RequiredParameter0IsNotProvidedWithAnArgument = 2022,
|
|
62
|
+
ExtraArgumentExpected0Arguments = 2023,
|
|
63
|
+
ExtraArgumentExpectedFrom0ATo1Arguments = 2024,
|
|
64
|
+
UnknownVariable = 2025,
|
|
65
|
+
UnknownType = 2026,
|
|
66
|
+
TypeWithArity0NotFound = 2027,
|
|
67
|
+
TypeWithName0NotFound = 2028,
|
|
68
|
+
TypeWithTheGivenParameterAndTypeParameterNamesNotFound = 2029,
|
|
69
|
+
TypeWithTheGivenTypeParameterNamesNotFound = 2030,
|
|
70
|
+
VariableUsedBeforeBeingDeclared = 2031,
|
|
71
|
+
Type0IsNotAssignableToType1 = 2032,
|
|
72
|
+
Type0OfTheImplicitlyReturnedExpressionIsNotAssignableToType1 = 2033,
|
|
73
|
+
VariableWithName0NotFound = 2034,
|
|
74
|
+
FunctionWithName0NotFound = 2035,
|
|
75
|
+
FunctionWithTheGivenParameterAndTypeParameterNamesNotFound = 2036,
|
|
76
|
+
UnknownPackage = 2037,
|
|
77
|
+
CannotAssignValueToExpression = 2038,
|
|
78
|
+
AutotypeExpressionCannotBeUsedHere = 2039,
|
|
79
|
+
CannotDetermineTargetTypeToCallTheConstructor = 2040,
|
|
80
|
+
AmbiguousAccess = 2041,
|
|
81
|
+
AmbiguousAccess0 = 2042,
|
|
82
|
+
CannotAssignValueToContextVariable = 2043,
|
|
83
|
+
ExpectedPackageNameOrAliasButFoundType = 2044,
|
|
84
|
+
TypeExpected = 2045,
|
|
85
|
+
NameOfTypeOrPackageNotFound = 2046,
|
|
86
|
+
TypeIsNotATag = 2047,
|
|
87
|
+
Operator0IsNotDefinedForTypes1And2 = 2048,
|
|
88
|
+
Operator0IsNotDefinedForType1 = 2049,
|
|
89
|
+
VariantMustHaveAssociatedValue = 2050,
|
|
90
|
+
TranslationsCanOnlyBeDeclaredInTranslationPackage = 2051,
|
|
91
|
+
UnknownTranslatingPackage0 = 2052,
|
|
92
|
+
BaseCannotBeUsedInThisContext = 2053,
|
|
93
|
+
OverriddenMethodNotFound = 2054,
|
|
94
|
+
ObjectCannotBeUsedInThisContext = 2055,
|
|
95
|
+
BaseCannotBeUsedAsAnExpressionInItself = 2056,
|
|
96
|
+
InterfacePackageMustNotContainImplementation = 2057,
|
|
97
|
+
InterfacePackageVariablesMustNotHaveInitializers = 2058,
|
|
98
|
+
BodyIsMissing = 2059,
|
|
99
|
+
AbstractTypeMembersMustNotHaveBody = 2060,
|
|
100
|
+
MembersOfAspectTypeMustNotHaveBody = 2061,
|
|
101
|
+
AspectTypeFieldsMustBeAbstract = 2062,
|
|
102
|
+
DeclarationsMarkedWithBuiltIntoPlatformTagMustNotHaveBody = 2063,
|
|
103
|
+
AbstractFieldsMustNotHaveInitializers = 2064,
|
|
104
|
+
PackageIsAlreadyImported = 2065,
|
|
105
|
+
OnlySubprogramsWithReturnTypeCanReturnValue = 2066,
|
|
106
|
+
FunctionsUsingYieldStatementCannotReturnValue = 2067,
|
|
107
|
+
YieldStatementCannotBeUsedInAnonymousFunctions = 2068,
|
|
108
|
+
YieldStatementCannotBeUsedHere = 2069,
|
|
109
|
+
FunctionsUsingYieldStatementMustHaveEnumerableAsReturnType = 2070,
|
|
110
|
+
YieldStatementCannotBeUsedInTryStatementThatHasCatchClause = 2071,
|
|
111
|
+
YieldStatementCannotBeUsedInFinallyClause = 2072,
|
|
112
|
+
SubprogramMustReturnValue = 2073,
|
|
113
|
+
ResultVariableCannotBeUsedInFunctionsUsingYieldStatement = 2074,
|
|
114
|
+
TypeAliasReferencesItself = 2075,
|
|
115
|
+
TypeParameterHasCircularConstraint = 2076,
|
|
116
|
+
BaseTypeCausesInheritanceCycle = 2077,
|
|
117
|
+
OnlyGenericTypesAndFunctionsCanBeSpecialized = 2078,
|
|
118
|
+
Expected0TypeArguments = 2079,
|
|
119
|
+
ExpectedFrom0To1TypeArguments = 2080,
|
|
120
|
+
Type0IsNotAssignableToConstraint1 = 2081,
|
|
121
|
+
VariableIsDeclaredButItsValueIsNeverRead = 2082,
|
|
122
|
+
FunctionIsDeclaredButNotUsed = 2083,
|
|
123
|
+
TypeParameterIsDeclaredButNotUsed = 2084,
|
|
124
|
+
DefaultConstructorArgumentsMustBeNamed = 2085,
|
|
125
|
+
IncorrectBodyOfBasicAliasTypeMethod = 2086,
|
|
126
|
+
TheFollowingDeclarationsAreNotTranslated0 = 2087,
|
|
127
|
+
TheFollowingDeclarationsAreNotTranslated0And1More = 2088,
|
|
128
|
+
TheFollowingTextsAreNotTranslated0 = 2089,
|
|
129
|
+
TheFollowingTextsAreNotTranslated0And1More = 2090,
|
|
130
|
+
OperatorFunction0MustNotHaveParameters = 2091,
|
|
131
|
+
OperatorFunction0MustHaveOneParameter = 2092,
|
|
132
|
+
OperatorFunction0MustHaveNoMoreThanOneParameter = 2093,
|
|
133
|
+
CorrespondingBasicTypeMemberNotFound = 2094,
|
|
134
|
+
AsyncFunctionCanOnlyBeCalledFromFunctionMarkedWithAsyncModifier = 2095,
|
|
135
|
+
TagNotFound = 2096,
|
|
136
|
+
TypeOrFunctionNameExpected = 2097,
|
|
137
|
+
PackageNameOrAliasExpected = 2098,
|
|
138
|
+
ExpressionCanBeNull = 2099,
|
|
139
|
+
TargetVariableExpressionInTheAssignmentStatementCannotContainQuestionOperator = 2100,
|
|
140
|
+
UnreachableCode = 2101,
|
|
141
|
+
RecursionOccurredWhileCalculatingTheTypeOfTheExpression = 2102,
|
|
142
|
+
RecursionOccurredWhileInferringTheTypeOfTheVariable = 2103,
|
|
143
|
+
ScopeAlreadyContainsDeclarationWithTheSameName = 2104,
|
|
144
|
+
ScopeAlreadyContainsFunctionWithTheSameNameAndParameterTypes = 2105,
|
|
145
|
+
ParameterName0ConflictsWithAutomaticallyGeneratedVariableName = 2106,
|
|
146
|
+
PackageAlreadyContainsDeclarationWithTheSameName = 2107,
|
|
147
|
+
PackageAlreadyContainsFunctionWithTheSameNameAndParameterTypes = 2108,
|
|
148
|
+
PackageAlreadyContainsTypeWithTheSameNameAndSameOrIntersectingTypeParameterCount = 2109,
|
|
149
|
+
PackageAliasWithTheSameNameAlreadyExits = 2110,
|
|
150
|
+
TypeAlreadyContainsDeclarationWithTheSameName = 2111,
|
|
151
|
+
TypeAlreadyContainsMethodWithTheSameNameAndParameterTypes = 2112,
|
|
152
|
+
TypeAlreadyContainsConstructorWithTheSameParameterTypes = 2113,
|
|
153
|
+
TypeAlreadyContainsOperatorFunctionWithTheSameParameterTypes = 2114,
|
|
154
|
+
TypeAlreadyContainsIndexerWithTheSameParameterTypes = 2115,
|
|
155
|
+
TypeCanHaveOnlyOneDestructor = 2116,
|
|
156
|
+
TypeCanHaveOnlyOneDereferenceOperator = 2117,
|
|
157
|
+
VariableIsUsedBeforeItsDeclaration = 2118,
|
|
158
|
+
VariableMayNotHasBeenAssignedBeforeUsage = 2119,
|
|
159
|
+
NotAllCodePathsReturnAValueAndResultLocalVariableMayNotHasBeenAssigned = 2120,
|
|
160
|
+
WriteFunctionHasNoCorrespondingReadFunction = 2121,
|
|
161
|
+
TypeCannotHaveMultipleBaseObjectTypes = 2122,
|
|
162
|
+
TypeThatIsNotMarkedAsBasicCannotBeUsedAsBaseType = 2123,
|
|
163
|
+
PlainObjectTypeCannotBeUsedAsBaseType = 2124,
|
|
164
|
+
ThisTypeIsAlreadyListedInBaseTypeList = 2125,
|
|
165
|
+
OnlyObjectAndAspectTypesCanBeUsedAsBaseTypes = 2126,
|
|
166
|
+
PlainObjectTypeCanHaveOnlyAspectsAsBaseTypes = 2127,
|
|
167
|
+
AspectTypeCanHaveOnlyAspectsAsBaseTypes = 2128,
|
|
168
|
+
ModifierListAlreadyContains0Modifier = 2129,
|
|
169
|
+
ModifierListOfOuterDeclarationGroupAlreadyContains0Modifier = 2130,
|
|
170
|
+
_0ModifierIsNotAllowedHere = 2131,
|
|
171
|
+
DeclarationCannotBePlacedInGroupHaving0Modifier = 2132,
|
|
172
|
+
PackageConstructorDeclarationCannotHaveModifiers = 2133,
|
|
173
|
+
PackageEntryPointDeclarationCannotHaveModifiers = 2134,
|
|
174
|
+
TranslationsCannotHaveModifiers = 2135,
|
|
175
|
+
AbstractModifierCanOnlyBeUsedInAbstractObjectTypes = 2136,
|
|
176
|
+
BasicModifierCanOnlyBeUsedInObjectTypesAspectTypesAndTypeAliases = 2137,
|
|
177
|
+
OverrideModifierCanOnlyBeUsedInObjectAndAspectTypes = 2138,
|
|
178
|
+
_0ModifierCannotBeUsedWith1Modifier = 2139,
|
|
179
|
+
VariantValueCannotBeHidden = 2140,
|
|
180
|
+
BasicModifierCanOnlyBeAppliedToObjectTypes = 2141,
|
|
181
|
+
AbstractModifierCanOnlyBeAppliedToObjectTypes = 2142,
|
|
182
|
+
NotBasicObjectTypesCannotHaveBasicMembers = 2143,
|
|
183
|
+
BasicModifierCannotBeAppliedToAspectTypeFields = 2144,
|
|
184
|
+
WriteFunctionMustHaveTheSameModifiersAsReadFunction = 2145,
|
|
185
|
+
WriteFunctionMustHaveTheSameOrMoreRestrictiveHidingLevelThenReadFunction = 2146,
|
|
186
|
+
DeclarationConflictsWithBaseTypeMember0 = 2147,
|
|
187
|
+
DeclarationConflictsWithBaseTypeMember0AddOverrideModifier = 2148,
|
|
188
|
+
DeclarationConflictsWithBaseTypeMember0ThisMemberCannotBeOverridden = 2149,
|
|
189
|
+
DeclarationConflictsWithBaseTypeMember0ToOverrideTypeMustBeAssignableTo1 = 2150,
|
|
190
|
+
DeclarationConflictsWithBaseTypeMember0ToOverrideReturnTypeMustBeAssignableTo1 = 2151,
|
|
191
|
+
OverridingMemberMustHaveTheSameHidingLevelAsBaseMember0 = 2152,
|
|
192
|
+
OverridingMethodMustBeAsyncBecauseBaseMethod0IsAsync = 2153,
|
|
193
|
+
OverridingMethodMustNotBeAsyncBecauseBaseMethod0IsNotAsync = 2154,
|
|
194
|
+
OverridingFieldMustNotBeConstOrHaveWriteFunctionToMatchBaseField0 = 2155,
|
|
195
|
+
OverridingMemberMustHaveWriteFunctionToMatchBaseMember0 = 2156,
|
|
196
|
+
TypeDoesNotImplementMember0 = 2157,
|
|
197
|
+
TypeDoesNotImplementMember0ImplicitImplementationTypeMismatch1 = 2158,
|
|
198
|
+
TypeDoesNotImplementMember0ImplicitImplementation1IsAsync = 2159,
|
|
199
|
+
TypeDoesNotImplementMember0ImplicitImplementation1IsNotAsync = 2160,
|
|
200
|
+
TypeDoesNotImplementMember0ImplicitImplementation1IsNotWriteable = 2161,
|
|
201
|
+
TypeDoesNotImplementMember0ImplicitImplementation1WriteFunctionIsHidden = 2162,
|
|
202
|
+
CannotAccessAbstractMemberOfBaseType = 2163,
|
|
203
|
+
TheFollowingBaseTypeMembersConflictAndMustBeOverridden0 = 2164,
|
|
204
|
+
TheFollowingBaseTypeMembersConflictBecauseTheyHaveTheSameOriginalName0AndMustBeOverridden1 = 2165,
|
|
205
|
+
TheFirstStatementOfConstructorBlockMustBeEitherBaseOrOwnConstructorCall = 2166,
|
|
206
|
+
ThisCallCausesOwnConstructorCallCycle = 2167,
|
|
207
|
+
OwnConstructorCallMustBeTheFirstStatementOfConstructorBlock = 2168,
|
|
208
|
+
BaseConstructorCallMustBeTheFirstStatementOfConstructorBlock = 2169,
|
|
209
|
+
Field0HasNoInitializerAndMayNotBeAssignedInConstructor = 2170,
|
|
210
|
+
Field0HasNoInitializerAndMayNotBeAssignedInPackageConstructor = 2171,
|
|
211
|
+
Variable0HasNoInitializerAndMayNotBeAssignedInPackageConstructor = 2172,
|
|
212
|
+
ExpressionOfType0CanNotBeUsedInForLoopBecauseNotEnumerableAndNoMethod1 = 2173,
|
|
213
|
+
ForExpressionToBeUsedInForLoopMethod0MustReturnEnumeratorType = 2174,
|
|
214
|
+
CannotInferTypeArguments = 2175,
|
|
215
|
+
CanNotInferReturnTypeAddExplicitReturnTypeSpecifier = 2176,
|
|
216
|
+
ConstantVariablesBustBeInitialized = 2177,
|
|
217
|
+
VariableTypeIsNotSpecified = 2178,
|
|
218
|
+
CannotInferTypeOfFunctionLiteralAddTypeSpecifierForParameter = 2179,
|
|
219
|
+
TypeParameterDefaultCanReferenceOnlyPreviouslyDeclaredTypeParameters = 2180,
|
|
220
|
+
RequiredTypeParametersCannotFollowTypeParametersWithDefaults = 2181,
|
|
221
|
+
RequiredParametersCannotFollowOptionalParameters = 2182,
|
|
222
|
+
ExpressionCannotBeReferenced = 2183,
|
|
223
|
+
TextIsMissingAmongPrimaryTextTranslationDefinitions = 2184,
|
|
224
|
+
DeclarationHasAlreadyBeenTranslated = 2185,
|
|
225
|
+
TheNumberOfTranslatedParametersMustBeEqualToTheNumberOfSourceParameters = 2186,
|
|
226
|
+
TheNumberOfTranslatedTypeParametersMustBeEqualToTheNumberOfSourceTypeParameters = 2187,
|
|
227
|
+
TheNameOfTheTranslatedOperatorMustMeTheSameAsSourceOperatorName = 2188,
|
|
228
|
+
TranslationOfFunctionTypeMustIncludeParameterList = 2189,
|
|
229
|
+
OnlyOneTextTranslationPackageShouldBeMarkedAsPrimary = 2190,
|
|
230
|
+
Declarations0And1HaveTheSameSourceNamesButDifferentTranslatedNames23 = 2191,
|
|
231
|
+
TranslatedDeclarations0And1HaveTheSameTranslatedNamesButDifferentSourceNames23 = 2192,
|
|
232
|
+
TranslatedOverridingMember0MustTheSameNameAsBaseMember1 = 2193,
|
|
233
|
+
TextTranslationAlreadyExistsInTheTextTranslationPackage = 2194,
|
|
234
|
+
CannotFindTsLibDirectoryBaseSearchPaths0 = 3000,
|
|
235
|
+
SourceFile0IsNotPartOfThePackageAndWontBeLoaded = 3001,
|
|
236
|
+
ProgramWithoutMainPackageCannotBeCompiled = 3002,
|
|
237
|
+
ErrorsInJsonConfigurationFile = 3003,
|
|
238
|
+
StandardPackage0NotFound = 3004,
|
|
239
|
+
Declaration0NotFoundInStandardPackage1 = 3005
|
|
240
240
|
}
|
|
@@ -4,11 +4,11 @@ export declare class DiagnosticData {
|
|
|
4
4
|
readonly code: DiagnosticCode;
|
|
5
5
|
readonly kind: DiagnosticKind;
|
|
6
6
|
readonly flags: DiagnosticFlags;
|
|
7
|
-
private messageFormat;
|
|
7
|
+
private readonly messageFormat;
|
|
8
8
|
private formatArguments;
|
|
9
9
|
private message_;
|
|
10
10
|
get message(): string;
|
|
11
|
-
constructor(code: DiagnosticCode,
|
|
11
|
+
constructor(code: DiagnosticCode, messageFormat: string, formatArguments: readonly DisplayableOrPrimitive[] | undefined, kind: DiagnosticKind, flags: DiagnosticFlags);
|
|
12
12
|
static withCode(code: DiagnosticCode, formatArguments?: readonly DisplayableOrPrimitive[], kind?: DiagnosticKind, flags?: DiagnosticFlags): DiagnosticData;
|
|
13
13
|
}
|
|
14
14
|
export declare const enum DiagnosticKind {
|
|
@@ -21,6 +21,7 @@ export declare class IrBuilder {
|
|
|
21
21
|
constructor(ectx: EmitterContext, entityMap: EntityMap, declarationUsageInfoOfAllPackages: ReadonlyMap<tree.SourceFile, DeclarationsUsageMap>);
|
|
22
22
|
build(pkg: SourcePackage): ir.Package;
|
|
23
23
|
private buildPackageMemberDeclarationList;
|
|
24
|
+
private buildBackingPackageVariables;
|
|
24
25
|
private buildPackageConstructorDeclaration;
|
|
25
26
|
private buildFunctionBlockOfFunction;
|
|
26
27
|
private buildFunctionBlockOfFunctionWithoutResult;
|
|
@@ -38,7 +39,7 @@ export declare class IrBuilder {
|
|
|
38
39
|
private buildPackageVariableSetterDeclaration;
|
|
39
40
|
private buildBackingPackageVariable;
|
|
40
41
|
private buildPackageVariantTypeDeclaration;
|
|
41
|
-
private
|
|
42
|
+
private buildVariantValueDeclaration;
|
|
42
43
|
private buildTypeExtensionDeclaration;
|
|
43
44
|
private buildTypeMemberList;
|
|
44
45
|
private buildConstructorDeclaration;
|
|
@@ -95,6 +96,7 @@ export declare class IrBuilder {
|
|
|
95
96
|
private convertDereferencedVariableAccess;
|
|
96
97
|
private buildReferenceExpression;
|
|
97
98
|
private buildConditionalExpression;
|
|
99
|
+
private buildCharLiteral;
|
|
98
100
|
private buildTextLiteral;
|
|
99
101
|
private buildLocalizableTextLiteral;
|
|
100
102
|
private buildTextTemplateLiteral;
|
|
@@ -8,8 +8,8 @@ export declare function packageTypeDeclaration(entity: TypeOrExtensionEntity, me
|
|
|
8
8
|
export declare function packageVariableDeclaration(entity: VariableEntity, initializer: ir.Expression | undefined, sourceLocation?: ir.SourceLocation): ir.PackageVariableDeclaration;
|
|
9
9
|
export declare function packageVariableGetterDeclaration(entity: FunctionEntity, variableEntity: VariableEntity, body: ir.BlockStatement, sourceLocation?: ir.SourceLocation): ir.PackageVariableGetterDeclaration;
|
|
10
10
|
export declare function packageVariableSetterDeclaration(entity: FunctionEntity, variableEntity: VariableEntity, body: ir.BlockStatement, valueLocalVariableEntity: VariableEntity, sourceLocation?: ir.SourceLocation): ir.PackageVariableSetterDeclaration;
|
|
11
|
-
export declare function packageVariantTypeDeclaration(entity: TypeOrExtensionEntity, underlyingTypeKind: ir.UnderlyingTypeKind,
|
|
12
|
-
export declare function
|
|
11
|
+
export declare function packageVariantTypeDeclaration(entity: TypeOrExtensionEntity, underlyingTypeKind: ir.UnderlyingTypeKind, variantValues: readonly ir.VariantValueDeclaration[], sourceLocation?: ir.SourceLocation): ir.PackageVariantTypeDeclaration;
|
|
12
|
+
export declare function variantValueDeclaration(entity: VariableEntity, value: ir.Expression | undefined, sourceLocation?: ir.SourceLocation): ir.VariantValueDeclaration;
|
|
13
13
|
export declare function decorator(expression: ir.Expression, sourceLocation?: ir.SourceLocation): ir.Decorator;
|
|
14
14
|
export declare function arrayLiteral(ectx: EmitterContext, elements: readonly ir.Expression[], sourceLocation?: ir.SourceLocation): ir.ArrayLiteral;
|
|
15
15
|
export declare function arrayLiteralWithType(elements: readonly ir.Expression[], type: Type, sourceLocation?: ir.SourceLocation): ir.ArrayLiteral;
|
|
@@ -71,8 +71,8 @@ export declare class Transformer {
|
|
|
71
71
|
transformDereferencedVariableSetterDeclarationChildren(declaration: ir.DereferencedVariableSetterDeclaration): void;
|
|
72
72
|
transformPackageVariableDeclarationChildren(declaration: ir.PackageVariableDeclaration): void;
|
|
73
73
|
transformPackageVariantTypeDeclarationChildren(declaration: ir.PackageVariantTypeDeclaration): void;
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
transformVariantValueDeclaration(node: ir.VariantValueDeclaration): ir.VariantValueDeclaration;
|
|
75
|
+
transformVariantValueDeclarationChildren(declaration: ir.VariantValueDeclaration): void;
|
|
76
76
|
transformPackageVariableGetterDeclarationChildren(declaration: ir.PackageVariableGetterDeclaration): void;
|
|
77
77
|
transformPackageVariableSetterDeclarationChildren(declaration: ir.PackageVariableSetterDeclaration): void;
|
|
78
78
|
transformExpression(expression: ir.Expression): ir.Expression;
|
|
@@ -225,7 +225,7 @@ export interface TransformationConfig {
|
|
|
225
225
|
transformLocalVariableDeclaration?(declaration: ir.LocalVariableDeclaration): NodeTransformationResult<ir.LocalVariableDeclaration>;
|
|
226
226
|
transformParameterDeclaration?(declaration: ir.ParameterDeclaration): NodeTransformationResult<ir.ParameterDeclaration>;
|
|
227
227
|
transformCaseClause?(declaration: ir.CaseClause): NodeTransformationResult<ir.CaseClause>;
|
|
228
|
-
|
|
228
|
+
transformVariantValueDeclaration?(declaration: ir.VariantValueDeclaration): NodeTransformationResult<ir.VariantValueDeclaration>;
|
|
229
229
|
transformArguments?(declaration: ir.Arguments): NodeTransformationResult<ir.Arguments>;
|
|
230
230
|
transformCatchClause?(clause: ir.CatchClause): NodeTransformationResult<ir.CatchClause>;
|
|
231
231
|
transformFinallyClause?(clause: ir.FinallyClause): NodeTransformationResult<ir.FinallyClause>;
|
|
@@ -73,23 +73,23 @@ export declare class PackageVariantTypeDeclaration {
|
|
|
73
73
|
entity: TypeOrExtensionEntity;
|
|
74
74
|
modifiers: Modifiers;
|
|
75
75
|
underlyingTypeKind: UnderlyingTypeKind;
|
|
76
|
-
variants: readonly
|
|
76
|
+
variants: readonly VariantValueDeclaration[];
|
|
77
77
|
sourceLocation?: SourceLocation | undefined;
|
|
78
78
|
readonly kind = NodeKind.PackageVariantTypeDeclaration;
|
|
79
|
-
constructor(entity: TypeOrExtensionEntity, modifiers: Modifiers, underlyingTypeKind: UnderlyingTypeKind, variants: readonly
|
|
79
|
+
constructor(entity: TypeOrExtensionEntity, modifiers: Modifiers, underlyingTypeKind: UnderlyingTypeKind, variants: readonly VariantValueDeclaration[], sourceLocation?: SourceLocation | undefined);
|
|
80
80
|
clone(): PackageVariantTypeDeclaration;
|
|
81
81
|
}
|
|
82
82
|
export declare const enum UnderlyingTypeKind {
|
|
83
83
|
Numeric = 0,
|
|
84
84
|
NonNumeric = 1
|
|
85
85
|
}
|
|
86
|
-
export declare class
|
|
86
|
+
export declare class VariantValueDeclaration {
|
|
87
87
|
entity: VariableEntity;
|
|
88
88
|
value: Expression | undefined;
|
|
89
89
|
sourceLocation?: SourceLocation | undefined;
|
|
90
|
-
readonly kind = NodeKind.
|
|
90
|
+
readonly kind = NodeKind.VariantValueDeclaration;
|
|
91
91
|
constructor(entity: VariableEntity, value: Expression | undefined, sourceLocation?: SourceLocation | undefined);
|
|
92
|
-
clone():
|
|
92
|
+
clone(): VariantValueDeclaration;
|
|
93
93
|
}
|
|
94
94
|
export declare class Decorator {
|
|
95
95
|
expression: Expression;
|
|
@@ -1033,7 +1033,7 @@ export declare const enum NodeKind {
|
|
|
1033
1033
|
TernaryExpression = 58,
|
|
1034
1034
|
ThisExpression = 59,
|
|
1035
1035
|
ParameterDeclaration = 60,
|
|
1036
|
-
|
|
1036
|
+
VariantValueDeclaration = 61,
|
|
1037
1037
|
WhileStatement = 62,
|
|
1038
1038
|
YieldStatement = 63,
|
|
1039
1039
|
ArrayLiteral = 64,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as ir from './Nodes.js';
|
|
2
|
-
export type Node = ir.ArrayLiteral | ir.AsExpression | ir.AssertionExpression | ir.AssignmentExpression | ir.AssignmentStatement | ir.BaseConstructorCallExpression | ir.BinaryExpression | ir.BlockStatement | ir.BooleanLiteral | ir.BreakLoopStatement | ir.CallExpression | ir.CharLiteral | ir.CommaExpression | ir.ConstructorCallExpression | ir.ContinueLoopStatement | ir.DisposeStatement | ir.RunStatement | ir.TryStatement | ir.NullLiteral | ir.EmptyStatement | ir.ErrorStatement | ir.ImportantStatement | ir.ExpressionStatement | ir.FinallyClause | ir.ForStatement | ir.PackageFunctionDeclaration | ir.PackageTypeDeclaration | ir.PackageVariableDeclaration | ir.PackageVariableGetterDeclaration | ir.PackageVariableSetterDeclaration | ir.PackageVariantTypeDeclaration | ir.IfStatement | ir.IndexedAccessExpression | ir.InlineJsExpression | ir.MethodAccessExpression | ir.FieldAccessExpression | ir.IntegerLiteral | ir.IsExpression | ir.JsIndexedAccessExpression | ir.NestedFunctionDeclaration | ir.NestedFunctionDeclarationStatement | ir.LocalVariableDeclaration | ir.LocalVariableDeclarationStatement | ir.NumericLiteral | ir.CatchClause | ir.FunctionAccessExpression | ir.FunctionLiteral | ir.PrefixUnaryExpression | ir.MeasureLiteral | ir.ReferenceExpression | ir.LoopStatement | ir.Package | ir.ReturnStatement | ir.TextLiteral | ir.LocalizableTextLiteral | ir.TextTemplateLiteral | ir.LocalizableTextTemplateLiteral | ir.ConstructorDeclaration | ir.DestructorDeclaration | ir.IndexedElementGetterDeclaration | ir.IndexedElementSetterDeclaration | ir.MethodDeclaration | ir.FieldDeclaration | ir.ComputedFieldDeclaration | ir.FieldGetterDeclaration | ir.FieldSetterDeclaration | ir.SwitchStatement | ir.CaseClause | ir.TernaryExpression | ir.ThisExpression | ir.TypeAccessExpression | ir.ParameterDeclaration | ir.VariableAccessExpression | ir.
|
|
3
|
-
export type Declaration = ir.PackageFunctionDeclaration | ir.PackageTypeDeclaration | ir.PackageVariableDeclaration | ir.PackageVariableGetterDeclaration | ir.PackageVariableSetterDeclaration | ir.PackageVariantTypeDeclaration | ir.NestedFunctionDeclaration | ir.LocalVariableDeclaration | ir.ConstructorDeclaration | ir.DestructorDeclaration | ir.IndexedElementGetterDeclaration | ir.IndexedElementSetterDeclaration | ir.MethodDeclaration | ir.FieldDeclaration | ir.FieldGetterDeclaration | ir.FieldSetterDeclaration | ir.ParameterDeclaration | ir.
|
|
2
|
+
export type Node = ir.ArrayLiteral | ir.AsExpression | ir.AssertionExpression | ir.AssignmentExpression | ir.AssignmentStatement | ir.BaseConstructorCallExpression | ir.BinaryExpression | ir.BlockStatement | ir.BooleanLiteral | ir.BreakLoopStatement | ir.CallExpression | ir.CharLiteral | ir.CommaExpression | ir.ConstructorCallExpression | ir.ContinueLoopStatement | ir.DisposeStatement | ir.RunStatement | ir.TryStatement | ir.NullLiteral | ir.EmptyStatement | ir.ErrorStatement | ir.ImportantStatement | ir.ExpressionStatement | ir.FinallyClause | ir.ForStatement | ir.PackageFunctionDeclaration | ir.PackageTypeDeclaration | ir.PackageVariableDeclaration | ir.PackageVariableGetterDeclaration | ir.PackageVariableSetterDeclaration | ir.PackageVariantTypeDeclaration | ir.IfStatement | ir.IndexedAccessExpression | ir.InlineJsExpression | ir.MethodAccessExpression | ir.FieldAccessExpression | ir.IntegerLiteral | ir.IsExpression | ir.JsIndexedAccessExpression | ir.NestedFunctionDeclaration | ir.NestedFunctionDeclarationStatement | ir.LocalVariableDeclaration | ir.LocalVariableDeclarationStatement | ir.NumericLiteral | ir.CatchClause | ir.FunctionAccessExpression | ir.FunctionLiteral | ir.PrefixUnaryExpression | ir.MeasureLiteral | ir.ReferenceExpression | ir.LoopStatement | ir.Package | ir.ReturnStatement | ir.TextLiteral | ir.LocalizableTextLiteral | ir.TextTemplateLiteral | ir.LocalizableTextTemplateLiteral | ir.ConstructorDeclaration | ir.DestructorDeclaration | ir.IndexedElementGetterDeclaration | ir.IndexedElementSetterDeclaration | ir.MethodDeclaration | ir.FieldDeclaration | ir.ComputedFieldDeclaration | ir.FieldGetterDeclaration | ir.FieldSetterDeclaration | ir.SwitchStatement | ir.CaseClause | ir.TernaryExpression | ir.ThisExpression | ir.TypeAccessExpression | ir.ParameterDeclaration | ir.VariableAccessExpression | ir.VariantValueDeclaration | ir.WhileStatement | ir.YieldStatement | ir.JsObjectLiteral | ir.ValueJsObjectLiteralProperty | ir.FunctionJsObjectLiteralProperty | ir.SpreadJsObjectLiteralProperty | ir.JsPropertyAccessExpression | ir.JsTypeOfExpression | ir.JsInstanceOfExpression | ir.JsIdentifierExpression | ir.DereferenceExpression | ir.BaseExpression | ir.OwnConstructorCallExpression | ir.EsModuleImportDirectiveStatement | ir.CjsModuleImportDirectiveStatement | ir.JsNamespaceDestructuringStatement | ir.DereferencedVariableGetterDeclaration | ir.DereferencedVariableSetterDeclaration | ir.TextWithEntityName | ir.Argument | ir.Arguments | ir.Decorator | ir.TextTranslationDeclaration | ir.TranslationTextTemplate;
|
|
3
|
+
export type Declaration = ir.PackageFunctionDeclaration | ir.PackageTypeDeclaration | ir.PackageVariableDeclaration | ir.PackageVariableGetterDeclaration | ir.PackageVariableSetterDeclaration | ir.PackageVariantTypeDeclaration | ir.NestedFunctionDeclaration | ir.LocalVariableDeclaration | ir.ConstructorDeclaration | ir.DestructorDeclaration | ir.IndexedElementGetterDeclaration | ir.IndexedElementSetterDeclaration | ir.MethodDeclaration | ir.FieldDeclaration | ir.FieldGetterDeclaration | ir.FieldSetterDeclaration | ir.ParameterDeclaration | ir.VariantValueDeclaration | ir.DereferencedVariableGetterDeclaration | ir.DereferencedVariableSetterDeclaration | ir.TextTranslationDeclaration;
|
|
4
4
|
export type Statement = ir.AssignmentStatement | ir.BlockStatement | ir.BreakLoopStatement | ir.ContinueLoopStatement | ir.DisposeStatement | ir.RunStatement | ir.TryStatement | ir.EmptyStatement | ir.ErrorStatement | ir.ImportantStatement | ir.ExpressionStatement | ir.ForStatement | ir.IfStatement | ir.NestedFunctionDeclarationStatement | ir.LocalVariableDeclarationStatement | ir.LoopStatement | ir.ReturnStatement | ir.SwitchStatement | ir.WhileStatement | ir.YieldStatement | ir.EsModuleImportDirectiveStatement | ir.CjsModuleImportDirectiveStatement | ir.JsNamespaceDestructuringStatement;
|
|
5
5
|
export type Expression = ir.ArrayLiteral | ir.AsExpression | ir.AssertionExpression | ir.AssignmentExpression | ir.BinaryExpression | ir.BooleanLiteral | ir.CallExpression | ir.CharLiteral | ir.CommaExpression | ir.ConstructorCallExpression | ir.NullLiteral | ir.IndexedAccessExpression | ir.InlineJsExpression | ir.MethodAccessExpression | ir.FieldAccessExpression | ir.IntegerLiteral | ir.IsExpression | ir.NumericLiteral | ir.FunctionAccessExpression | ir.FunctionLiteral | ir.PrefixUnaryExpression | ir.MeasureLiteral | ir.ReferenceExpression | ir.DereferenceExpression | ir.TextLiteral | ir.LocalizableTextLiteral | ir.TextWithEntityName | ir.TextTemplateLiteral | ir.LocalizableTextTemplateLiteral | ir.TernaryExpression | ir.ThisExpression | ir.TypeAccessExpression | ir.VariableAccessExpression | ir.BaseConstructorCallExpression | ir.JsIndexedAccessExpression | ir.JsObjectLiteral | ir.JsPropertyAccessExpression | ir.JsTypeOfExpression | ir.JsInstanceOfExpression | ir.JsIdentifierExpression | ir.BaseExpression | ir.OwnConstructorCallExpression;
|
|
6
6
|
export type TypeMemberDeclaration = ir.FieldDeclaration | ir.ComputedFieldDeclaration | ir.MethodDeclaration | ir.ConstructorDeclaration | ir.DestructorDeclaration | ir.IndexedElementGetterDeclaration | ir.IndexedElementSetterDeclaration | ir.DereferencedVariableGetterDeclaration | ir.DereferencedVariableSetterDeclaration;
|