@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.
Files changed (86) hide show
  1. package/build/Cli.js +3 -3
  2. package/build/api/Api.js +16 -10
  3. package/build/api/ApiNodeJS.js +3 -3
  4. package/build/api/ApiServices.js +315 -219
  5. package/build/{chunk-YIFO3FBO.js → chunk-3DN3M64Y.js} +3 -3
  6. package/build/{chunk-W3UL6UED.js → chunk-DURHSZYF.js} +5 -4
  7. package/build/{chunk-LLI2DYRX.js → chunk-VVFLEWSA.js} +3236 -3331
  8. package/build/types/analysis/AccessedFunction.d.ts +4 -0
  9. package/build/types/analysis/AnalyzedTranslationPackage.d.ts +3 -3
  10. package/build/types/analysis/Analyzer.d.ts +35 -48
  11. package/build/types/analysis/AutotypeCallExpressionMeaning.d.ts +5 -5
  12. package/build/types/analysis/BaseExpressionMeaning.d.ts +8 -18
  13. package/build/types/analysis/CallExpressionMeaning.d.ts +4 -9
  14. package/build/types/analysis/DereferenceExpressionMeaning.d.ts +3 -4
  15. package/build/types/analysis/IdentifierExpressionMeaning.d.ts +8 -16
  16. package/build/types/analysis/IndexedAccessExpressionMeaning.d.ts +4 -8
  17. package/build/types/analysis/MemberAccessExpressionMeaning.d.ts +8 -16
  18. package/build/types/analysis/NamedTypeResolver.d.ts +4 -4
  19. package/build/types/analysis/NamedTypeSpecifierResolver.d.ts +4 -4
  20. package/build/types/analysis/NodeTypeUtils.d.ts +1 -1
  21. package/build/types/analysis/ObjectExpressionMeaning.d.ts +4 -9
  22. package/build/types/analysis/{PackageMemberNameConflictsValidator.d.ts → PackageMemberConflictsValidator.d.ts} +8 -4
  23. package/build/types/analysis/ResolvedTextTranslationPackage.d.ts +9 -0
  24. package/build/types/analysis/SourceFileAnalyzer.d.ts +1 -0
  25. package/build/types/analysis/SourcePackageDependencyGraph.d.ts +4 -0
  26. package/build/types/analysis/SubstitutedFunction.d.ts +3 -0
  27. package/build/types/analysis/TagMeaning.d.ts +4 -4
  28. package/build/types/analysis/UserDefinableBinaryOperatorResolver.d.ts +4 -3
  29. package/build/types/analysis/UserDefinableUnaryOperatorResolver.d.ts +4 -3
  30. package/build/types/analysis/Utils.d.ts +1 -0
  31. package/build/types/analysis/semantic-context/SemanticContextBase.d.ts +1 -1
  32. package/build/types/analysis/semantic-context/SourceFileSemanticContext.d.ts +8 -4
  33. package/build/types/api/Api.d.ts +4 -5
  34. package/build/types/common/ArrayUtils.d.ts +3 -1
  35. package/build/types/common/Displayable.d.ts +4 -4
  36. package/build/types/common/FormatString.d.ts +1 -1
  37. package/build/types/common/index.d.ts +3 -0
  38. package/build/types/diagnostic/DiagnosticCode.d.ts +238 -238
  39. package/build/types/diagnostic/DiagnosticData.d.ts +2 -2
  40. package/build/types/emitter/IrBuilder.d.ts +3 -1
  41. package/build/types/emitter/IrFactory.d.ts +2 -2
  42. package/build/types/emitter/Transformer.d.ts +3 -3
  43. package/build/types/emitter/ir/Nodes.d.ts +6 -6
  44. package/build/types/emitter/ir/types.d.ts +2 -2
  45. package/build/types/entities/Entity.d.ts +1 -1
  46. package/build/types/entities/EntityLocalizationContext.d.ts +2 -1
  47. package/build/types/entities/PackageEntityMembers.d.ts +22 -0
  48. package/build/types/entities/index.d.ts +1 -1
  49. package/build/types/entities/interfaces/PackageEntity.d.ts +1 -2
  50. package/build/types/entities/interfaces/TextTranslationEntity.d.ts +2 -1
  51. package/build/types/entities/interfaces/VariableEntity.d.ts +1 -1
  52. package/build/types/entities/source/SourcePackageEntity.d.ts +1 -2
  53. package/build/types/entities/source/SourceTextTranslationEntity.d.ts +2 -1
  54. package/build/types/entities/source/SourceTypeExtensionEntity.d.ts +4 -0
  55. package/build/types/entities/source/SourceVariableEntity.d.ts +2 -2
  56. package/build/types/entities/translated/TranslatedPackageEntity.d.ts +2 -3
  57. package/build/types/project/PackageContent.d.ts +1 -1
  58. package/build/types/project/SourcePackage.d.ts +3 -1
  59. package/build/types/project/configuration/ConfigurationConverter.d.ts +1 -1
  60. package/build/types/project/configuration/types/PackageConfigurationEn.d.ts +4 -4
  61. package/build/types/project/configuration/types/PackageConfigurationRu.d.ts +4 -4
  62. package/build/types/services/AddBlockToScriptService.d.ts +17 -0
  63. package/build/types/services/CustomRequests.d.ts +11 -2
  64. package/build/types/services/DisplayService.d.ts +1 -2
  65. package/build/types/services/EvaluatableExpressionService.d.ts +1 -1
  66. package/build/types/services/LanguageServer.d.ts +3 -1
  67. package/build/types/services/SourceFileItemsService.d.ts +1 -1
  68. package/build/types/tree/NodeKind.d.ts +1 -1
  69. package/build/types/tree/Nodes.d.ts +6 -6
  70. package/build/types/tree/SyntaxFactory.d.ts +1 -1
  71. package/build/types/tree/SyntaxToCode.d.ts +1 -1
  72. package/build/types/tree/Token.d.ts +4 -3
  73. package/build/types/tree/TokenKind.d.ts +58 -60
  74. package/build/types/types/AliasType.d.ts +1 -1
  75. package/build/types/types/FunctionType.d.ts +2 -2
  76. package/build/types/types/IntersectionType.d.ts +1 -1
  77. package/build/types/types/ParameterType.d.ts +1 -1
  78. package/build/types/types/Substitutions.d.ts +1 -1
  79. package/build/types/types/Type.d.ts +1 -4
  80. package/build/types/types/TypeMembers.d.ts +8 -8
  81. package/build/types/types/UnionType.d.ts +1 -1
  82. package/build/types/types/VariantType.d.ts +1 -1
  83. package/package.json +1 -1
  84. package/build/types/analysis/AnalyzedTextTranslationPackage.d.ts +0 -20
  85. package/build/types/analysis/SourceFileMembers.d.ts +0 -22
  86. package/build/types/entities/PackageMembers.d.ts +0 -15
@@ -1,240 +1,240 @@
1
1
  export declare enum DiagnosticCode {
2
- UnterminatedToken = 0,
3
- UnterminatedMultiLineComment = 1,
4
- UnterminatedNumber = 2,
5
- UnterminatedTextOrTextTemplate = 3,
6
- UnterminatedQuotedIdentifier = 4,
7
- IdentifierExpected = 101,
8
- TypeNameExpected = 102,
9
- PackageNameExpected = 103,
10
- TypeMemberDeclarationExpected = 104,
11
- PackageMemberDeclarationExpected = 105,
12
- ForStatementVariableDeclarationExpected = 106,
13
- StatementExpected = 107,
14
- ExpressionExpected = 108,
15
- ExpressionCannotBeUsedAsStatement = 109,
16
- Expected0But1Found = 110,
17
- Delimiter0Expected = 111,
18
- BaseTypeNameExpected = 112,
19
- TypeSpecifierExpected = 113,
20
- TypeBodyExpected = 114,
21
- ParameterExpected = 115,
22
- TypeParameterExpected = 116,
23
- CatchClauseOrFinallyClauseExpected = 117,
24
- PackageImportExpected = 118,
25
- DeclarationOrPackageImportExpected = 119,
26
- InvalidTextTemplate = 120,
27
- ModifierListExpected = 121,
28
- RunKeywordCreationKeywordOrModifierListExpected = 122,
29
- HidingLevelExpected = 123,
30
- ParameterNameCanContainOnlyOneBackQuote = 124,
31
- FieldNameCanContainOnlyTwoBackQuote = 125,
32
- BackQuotesCanOnlyBeUsedInParameterAndFieldNames = 126,
33
- NameThatMatchesKeywordMustBeEnclosedInSingleQuotes = 127,
34
- TagNameExpected = 128,
35
- TypeMemberTranslationExpected = 129,
36
- TranslationExpected = 130,
37
- TranslatedTextTemplateOrTranslationFunctionBlockExpected = 131,
38
- TranslatedTextCannotBeginOrEndWithTilde = 132,
39
- TypeCannotBeUsedAsValue = 201,
40
- PackageNameCannotBeUsedAsValue = 202,
41
- PackageAliasCannotBeUsedAsValue = 203,
42
- PackageMemberOrPackageNotFound = 204,
43
- PackageMemberNotFound = 205,
44
- TypeMemberNotFound = 206,
45
- ConstructorNotFound = 207,
46
- ConstructorWithTheGivenParameterNamesNotFound = 208,
47
- IndexerOfTheSpecifiedTypeNotFound = 209,
48
- DereferenceOperatorOfTheSpecifiedTypeNotFound = 210,
49
- IndexerNotFound = 211,
50
- IndexerWithTheGivenParameterNamesNotFound = 212,
51
- CannotAccessStaticMembersOnTypeParameter = 213,
52
- CannotCreateInstanceOfAspect = 214,
53
- CannotCreateInstanceOfAbstractType = 215,
54
- CannotCreateInstanceOfTypeParameter = 216,
55
- CannotCreateInstanceOfUnresolvedType = 217,
56
- ExpressionIsNotCallable = 218,
57
- ParameterForPositionalArgumentNotFound = 219,
58
- ParameterWithGivenNameNotFound = 220,
59
- PositionalArgumentsCannotFollowNamedArguments = 221,
60
- ArgumentForParameterAlreadyAssigned = 222,
61
- RequiredParameter0IsNotProvidedWithAnArgument = 223,
62
- ExtraArgumentExpected0Arguments = 224,
63
- ExtraArgumentExpectedFrom0ATo1Arguments = 225,
64
- UnknownVariable = 226,
65
- UnknownType = 227,
66
- TypeWithArity0NotFound = 228,
67
- TypeWithName0NotFound = 229,
68
- TypeWithTheGivenParameterAndTypeParameterNamesNotFound = 230,
69
- TypeWithTheGivenTypeParameterNamesNotFound = 231,
70
- VariableUsedBeforeBeingDeclared = 232,
71
- Type0IsNotAssignableToType1 = 233,
72
- Type0OfTheImplicitlyReturnedExpressionIsNotAssignableToType1 = 234,
73
- VariableWithName0NotFound = 235,
74
- FunctionWithName0NotFound = 236,
75
- FunctionWithTheGivenParameterAndTypeParameterNamesNotFound = 237,
76
- UnknownPackage = 238,
77
- CannotAssignValueToExpression = 239,
78
- AutotypeExpressionCannotBeUsedHere = 240,
79
- CannotDetermineTargetTypeToCallTheConstructor = 241,
80
- AmbiguousAccess = 242,
81
- AmbiguousAccess0 = 243,
82
- CannotAssignValueToContextVariable = 244,
83
- ExpectedPackageNameOrAliasButFoundType = 245,
84
- TypeExpected = 246,
85
- NameOfTypeOrPackageNotFound = 247,
86
- TypeIsNotATag = 248,
87
- Operator0IsNotDefinedForTypes1And2 = 249,
88
- Operator0IsNotDefinedForType1 = 250,
89
- VariantMustHaveAssociatedValue = 251,
90
- TranslationsCanOnlyBeDeclaredInTranslationPackage = 252,
91
- UnknownTranslatingPackage0 = 253,
92
- BaseCannotBeUsedInThisContext = 254,
93
- OverriddenMethodNotFound = 255,
94
- ObjectCannotBeUsedInThisContext = 256,
95
- BaseCannotBeUsedAsAnExpressionInItself = 257,
96
- InterfacePackageMustNotContainImplementation = 258,
97
- InterfacePackageVariablesMustNotHaveInitializers = 259,
98
- BodyIsMissing = 260,
99
- AbstractTypeMembersMustNotHaveBody = 261,
100
- MembersOfAspectTypeMustNotHaveBody = 262,
101
- AspectTypeFieldsMustBeAbstract = 263,
102
- DeclarationsMarkedWithBuiltIntoPlatformTagMustNotHaveBody = 264,
103
- AbstractFieldsMustNotHaveInitializers = 265,
104
- PackageIsAlreadyImported = 266,
105
- OnlySubprogramsWithReturnTypeCanReturnValue = 267,
106
- FunctionsUsingYieldStatementCannotReturnValue = 268,
107
- YieldStatementCannotBeUsedInAnonymousFunctions = 269,
108
- YieldStatementCannotBeUsedHere = 270,
109
- FunctionsUsingYieldStatementMustHaveEnumerableAsReturnType = 271,
110
- YieldStatementCannotBeUsedInTryStatementThatHasCatchClause = 272,
111
- YieldStatementCannotBeUsedInFinallyClause = 273,
112
- SubprogramMustReturnValue = 274,
113
- ResultVariableCannotBeUsedInFunctionsUsingYieldStatement = 275,
114
- TypeAliasReferencesItself = 276,
115
- TypeParameterHasCircularConstraint = 277,
116
- BaseTypeCausesInheritanceCycle = 278,
117
- OnlyGenericTypesAndFunctionsCanBeSpecialized = 279,
118
- Expected0TypeArguments = 280,
119
- ExpectedFrom0To1TypeArguments = 281,
120
- Type0IsNotAssignableToConstraint1 = 282,
121
- VariableIsDeclaredButItsValueIsNeverRead = 283,
122
- FunctionIsDeclaredButNotUsed = 284,
123
- TypeParameterIsDeclaredButNotUsed = 285,
124
- DefaultConstructorArgumentsMustBeNamed = 286,
125
- IncorrectBodyOfBasicAliasTypeMethod = 287,
126
- TheFollowingDeclarationsAreNotTranslated0 = 288,
127
- TheFollowingDeclarationsAreNotTranslated0And1More = 289,
128
- TheFollowingTextsAreNotTranslated0 = 290,
129
- TheFollowingTextsAreNotTranslated0And1More = 291,
130
- OperatorFunction0MustNotHaveParameters = 292,
131
- OperatorFunction0MustHaveOneParameter = 293,
132
- OperatorFunction0MustHaveNoMoreThanOneParameter = 294,
133
- CorrespondingBasicTypeMemberNotFound = 295,
134
- AsyncFunctionCanOnlyBeCalledFromFunctionMarkedWithAsyncModifier = 296,
135
- TagNotFound = 297,
136
- TypeOrFunctionNameExpected = 298,
137
- PackageNameOrAliasExpected = 299,
138
- ExpressionCanBeNull = 300,
139
- TargetVariableExpressionInTheAssignmentStatementCannotContainQuestionOperator = 301,
140
- UnreachableCode = 302,
141
- RecursionOccurredWhileCalculatingTheTypeOfTheExpression = 303,
142
- RecursionOccurredWhileInferringTheTypeOfTheVariable = 304,
143
- ScopeAlreadyContainsDeclarationWithTheSameName = 305,
144
- ScopeAlreadyContainsFunctionWithTheSameNameAndParameterTypes = 306,
145
- ParameterName0ConflictsWithAutomaticallyGeneratedVariableName = 307,
146
- PackageAlreadyContainsDeclarationWithTheSameName = 308,
147
- PackageAlreadyContainsFunctionWithTheSameNameAndParameterTypes = 309,
148
- PackageAlreadyContainsTypeWithTheSameNameAndSameOrIntersectingTypeParameterCount = 310,
149
- PackageAliasWithTheSameNameAlreadyExits = 311,
150
- TypeAlreadyContainsDeclarationWithTheSameName = 312,
151
- TypeAlreadyContainsMethodWithTheSameNameAndParameterTypes = 313,
152
- TypeAlreadyContainsConstructorWithTheSameParameterTypes = 314,
153
- TypeAlreadyContainsOperatorFunctionWithTheSameParameterTypes = 315,
154
- TypeAlreadyContainsIndexerWithTheSameParameterTypes = 316,
155
- TypeCanHaveOnlyOneDestructor = 317,
156
- TypeCanHaveOnlyOneDereferenceOperator = 318,
157
- VariableIsUsedBeforeItsDeclaration = 319,
158
- VariableMayNotHasBeenAssignedBeforeUsage = 320,
159
- NotAllCodePathsReturnAValueAndResultLocalVariableMayNotHasBeenAssigned = 321,
160
- WriteFunctionHasNoCorrespondingReadFunction = 322,
161
- TypeCannotHaveMultipleBaseObjectTypes = 323,
162
- TypeThatIsNotMarkedAsBasicCannotBeUsedAsBaseType = 324,
163
- PlainObjectTypeCannotBeUsedAsBaseType = 325,
164
- ThisTypeIsAlreadyListedInBaseTypeList = 326,
165
- OnlyObjectAndAspectTypesCanBeUsedAsBaseTypes = 327,
166
- PlainObjectTypeCanHaveOnlyAspectsAsBaseTypes = 328,
167
- AspectTypeCanHaveOnlyAspectsAsBaseTypes = 329,
168
- ModifierListAlreadyContains0Modifier = 330,
169
- ModifierListOfOuterDeclarationGroupAlreadyContains0Modifier = 331,
170
- _0ModifierIsNotAllowedHere = 332,
171
- DeclarationCannotBePlacedInGroupHaving0Modifier = 333,
172
- PackageConstructorDeclarationCannotHaveModifiers = 334,
173
- PackageEntryPointDeclarationCannotHaveModifiers = 335,
174
- TranslationsCannotHaveModifiers = 336,
175
- AbstractModifierCanOnlyBeUsedInAbstractObjectTypes = 337,
176
- BasicModifierCanOnlyBeUsedInObjectTypesAspectTypesAndTypeAliases = 338,
177
- OverrideModifierCanOnlyBeUsedInObjectAndAspectTypes = 339,
178
- _0ModifierCannotBeUsedWith1Modifier = 340,
179
- VariantDeclarationCannotHaveHiddenModifier = 341,
180
- BasicModifierCanOnlyBeAppliedToObjectTypes = 342,
181
- AbstractModifierCanOnlyBeAppliedToObjectTypes = 343,
182
- NotBasicObjectTypesCannotHaveBasicMembers = 344,
183
- BasicModifierCannotBeAppliedToAspectTypeFields = 345,
184
- WriteFunctionMustHaveTheSameModifiersAsReadFunction = 346,
185
- WriteFunctionMustHaveTheSameOrMoreRestrictiveHidingLevelThenReadFunction = 347,
186
- DeclarationConflictsWithBaseTypeMember0 = 348,
187
- DeclarationConflictsWithBaseTypeMember0AddOverrideModifier = 349,
188
- DeclarationConflictsWithBaseTypeMember0ThisMemberCannotBeOverridden = 350,
189
- DeclarationConflictsWithBaseTypeMember0ToOverrideTypeMustBeAssignableTo1 = 351,
190
- DeclarationConflictsWithBaseTypeMember0ToOverrideReturnTypeMustBeAssignableTo1 = 352,
191
- OverridingMemberMustHaveTheSameHidingLevelAsBaseMember0 = 353,
192
- OverridingMethodMustBeAsyncBecauseBaseMethod0IsAsync = 354,
193
- OverridingMethodMustNotBeAsyncBecauseBaseMethod0IsNotAsync = 355,
194
- OverridingFieldMustNotBeConstOrHaveWriteFunctionToMatchBaseField0 = 356,
195
- OverridingMemberMustHaveWriteFunctionToMatchBaseMember0 = 357,
196
- TypeDoesNotImplementMember0 = 358,
197
- TypeDoesNotImplementMember0ImplicitImplementationTypeMismatch1 = 359,
198
- TypeDoesNotImplementMember0ImplicitImplementation1IsAsync = 360,
199
- TypeDoesNotImplementMember0ImplicitImplementation1IsNotAsync = 361,
200
- TypeDoesNotImplementMember0ImplicitImplementation1IsNotWriteable = 362,
201
- TypeDoesNotImplementMember0ImplicitImplementation1WriteFunctionIsHidden = 363,
202
- CannotAccessAbstractMemberOfBaseType = 364,
203
- TheFollowingBaseTypeMembersConflictAndMustBeOverridden0 = 365,
204
- TheFollowingBaseTypeMembersConflictBecauseTheyHaveTheSameOriginalName0AndMustBeOverridden1 = 366,
205
- TheFirstStatementOfConstructorBlockMustBeEitherBaseOrOwnConstructorCall = 367,
206
- ThisCallCausesOwnConstructorCallCycle = 368,
207
- OwnConstructorCallMustBeTheFirstStatementOfConstructorBlock = 369,
208
- BaseConstructorCallMustBeTheFirstStatementOfConstructorBlock = 370,
209
- Field0HasNoInitializerAndMayNotBeAssignedInConstructor = 371,
210
- Field0HasNoInitializerAndMayNotBeAssignedInPackageConstructor = 372,
211
- Variable0HasNoInitializerAndMayNotBeAssignedInPackageConstructor = 373,
212
- ExpressionOfType0CanNotBeUsedInForLoopBecauseNotEnumerableAndNoMethod1 = 374,
213
- ForExpressionToBeUsedInForLoopMethod0MustReturnEnumeratorType = 375,
214
- CannotInferTypeArguments = 376,
215
- CanNotInferReturnTypeAddExplicitReturnTypeSpecifier = 377,
216
- ConstantVariablesBustBeInitialized = 378,
217
- VariableTypeIsNotSpecified = 379,
218
- CannotInferTypeOfFunctionLiteralAddTypeSpecifierForParameter = 380,
219
- TypeParameterDefaultCanReferenceOnlyPreviouslyDeclaredTypeParameters = 381,
220
- RequiredTypeParametersCannotFollowTypeParametersWithDefaults = 382,
221
- RequiredParametersCannotFollowOptionalParameters = 383,
222
- ExpressionCannotBeReferenced = 384,
223
- TextIsMissingInPrimaryTextTranslationPackage = 385,
224
- TextTemplateIsMissingInPrimaryTextTranslationPackage = 386,
225
- DeclarationHasAlreadyBeenTranslated = 387,
226
- TheNumberOfTranslatedParametersMustBeEqualToTheNumberOfSourceParameters = 388,
227
- TheNumberOfTranslatedTypeParametersMustBeEqualToTheNumberOfSourceTypeParameters = 389,
228
- TheNameOfTheTranslatedOperatorMustMeTheSameAsSourceOperatorName = 390,
229
- TranslationOfFunctionTypeMustIncludeParameterList = 391,
230
- OnlyOneTextTranslationPackageShouldBeMarkedAsPrimary = 392,
231
- Declarations0And1HaveTheSameSourceNamesButDifferentTranslatedNames23 = 393,
232
- TranslatedDeclarations0And1HaveTheSameTranslatedNamesButDifferentSourceNames23 = 394,
233
- TranslatedOverridingMember0MustTheSameNameAsBaseMember1 = 395,
234
- CannotFindTsLibDirectoryBaseSearchPaths0 = 401,
235
- SourceFile0IsNotPartOfThePackageAndWontBeLoaded = 402,
236
- ProgramWithoutMainPackageCannotBeCompiled = 403,
237
- ErrorsInJsonConfigurationFile = 404,
238
- StandardPackage0NotFound = 405,
239
- Declaration0NotFoundInStandardPackage1 = 406
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, formatMessage: string | undefined, formatArguments: readonly DisplayableOrPrimitive[] | undefined, kind: DiagnosticKind, flags: DiagnosticFlags);
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 buildVariantDeclaration;
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, variants: readonly ir.VariantDeclaration[], sourceLocation?: ir.SourceLocation): ir.PackageVariantTypeDeclaration;
12
- export declare function variantDeclaration(entity: VariableEntity, value: ir.Expression | undefined, sourceLocation?: ir.SourceLocation): ir.VariantDeclaration;
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
- transformVariantDeclaration(node: ir.VariantDeclaration): ir.VariantDeclaration;
75
- transformVariantDeclarationChildren(declaration: ir.VariantDeclaration): void;
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
- transformVariantDeclaration?(declaration: ir.VariantDeclaration): NodeTransformationResult<ir.VariantDeclaration>;
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 VariantDeclaration[];
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 VariantDeclaration[], sourceLocation?: SourceLocation | undefined);
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 VariantDeclaration {
86
+ export declare class VariantValueDeclaration {
87
87
  entity: VariableEntity;
88
88
  value: Expression | undefined;
89
89
  sourceLocation?: SourceLocation | undefined;
90
- readonly kind = NodeKind.VariantDeclaration;
90
+ readonly kind = NodeKind.VariantValueDeclaration;
91
91
  constructor(entity: VariableEntity, value: Expression | undefined, sourceLocation?: SourceLocation | undefined);
92
- clone(): VariantDeclaration;
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
- VariantDeclaration = 61,
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.VariantDeclaration | 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.VariantDeclaration | ir.DereferencedVariableGetterDeclaration | ir.DereferencedVariableSetterDeclaration | ir.TextTranslationDeclaration;
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;