@artel/artc 0.6.25282 → 0.6.25284
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 +28 -20
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +1836 -1590
- package/build/{chunk-VVFLEWSA.js → chunk-CGOSDN2E.js} +18023 -15286
- package/build/{chunk-DURHSZYF.js → chunk-OBX375YX.js} +1 -1
- package/build/{chunk-3DN3M64Y.js → chunk-ZV3UW5X6.js} +2 -2
- package/build/types/analysis/AccessibilityCheck.d.ts +20 -0
- package/build/types/analysis/Analyzer.d.ts +53 -78
- package/build/types/analysis/BaseMemberConflictsValidator.d.ts +2 -4
- package/build/types/analysis/ConstructorCallResolver.d.ts +3 -4
- package/build/types/analysis/MemberAccessExpressionMeaning.d.ts +2 -1
- package/build/types/analysis/ModifierValidator.d.ts +17 -15
- package/build/types/analysis/NodeTypeUtils.d.ts +3 -3
- package/build/types/analysis/PackageMemberLookup.d.ts +11 -4
- package/build/types/analysis/ReachabilityChecker.d.ts +27 -0
- package/build/types/analysis/ReductionSourceMemberFinder.d.ts +20 -0
- package/build/types/analysis/ReservedNameDictionary.d.ts +14 -0
- package/build/types/analysis/ResolvedImplementationPackage.d.ts +48 -0
- package/build/types/analysis/SourceFileAnalyzer.d.ts +3 -0
- package/build/types/analysis/TypeArgumentInferrer.d.ts +1 -0
- package/build/types/analysis/TypeMemberLookup.d.ts +36 -22
- package/build/types/analysis/Utils.d.ts +2 -0
- package/build/types/analysis/WellKnownDeclarations.d.ts +11 -7
- package/build/types/analysis/control-flow/GraphBuilder.d.ts +4 -1
- package/build/types/analysis/semantic-context/FieldWithInitializerSemanticContext.d.ts +6 -5
- package/build/types/analysis/semantic-context/SemanticContextBase.d.ts +8 -7
- package/build/types/analysis/semantic-context/SemanticContextValidatingNameConflicts.d.ts +4 -5
- package/build/types/analysis/semantic-context/SemanticContextWithParent.d.ts +2 -0
- package/build/types/analysis/semantic-context/SourceFileSemanticContext.d.ts +11 -6
- package/build/types/analysis/semantic-context/SubprogramBodyAndParametersSemanticContext.d.ts +5 -5
- package/build/types/analysis/semantic-context/SubprogramSemanticContext.d.ts +4 -5
- package/build/types/analysis/semantic-context/TypeSemanticContext.d.ts +18 -15
- package/build/types/api/Api.d.ts +1 -1
- package/build/types/common/HelperPhrases.d.ts +2 -1
- package/build/types/common/LocalizationHelper.d.ts +8 -6
- package/build/types/common/index.d.ts +0 -1
- package/build/types/diagnostic/DiagnosticCode.d.ts +154 -131
- package/build/types/emitter/Entities.d.ts +5 -4
- package/build/types/emitter/EntityMap.d.ts +5 -1
- package/build/types/emitter/IrBuilder.d.ts +1 -0
- package/build/types/emitter/ir/Nodes.d.ts +11 -2
- package/build/types/entities/Entity.d.ts +9 -18
- package/build/types/entities/EntityHiding.d.ts +1 -4
- package/build/types/entities/EntityLocalizationContext.d.ts +3 -3
- package/build/types/entities/IEntity.d.ts +2 -1
- package/build/types/entities/OperatorKind.d.ts +6 -3
- package/build/types/entities/TypeEntity.d.ts +7 -6
- package/build/types/entities/index.d.ts +0 -2
- package/build/types/entities/interfaces/AliasTypeEntity.d.ts +1 -6
- package/build/types/entities/interfaces/ConstructorEntity.d.ts +3 -5
- package/build/types/entities/interfaces/DereferenceOperatorEntity.d.ts +2 -5
- package/build/types/entities/interfaces/DestructorEntity.d.ts +4 -5
- package/build/types/entities/interfaces/FunctionEntity.d.ts +3 -8
- package/build/types/entities/interfaces/FunctionTypeEntity.d.ts +0 -8
- package/build/types/entities/interfaces/GetterEntity.d.ts +0 -4
- package/build/types/entities/interfaces/IndexerEntity.d.ts +2 -5
- package/build/types/entities/interfaces/OperatorEntity.d.ts +3 -5
- package/build/types/entities/interfaces/PackageAliasEntity.d.ts +0 -5
- package/build/types/entities/interfaces/PackageEntity.d.ts +1 -9
- package/build/types/entities/interfaces/ReducedTypeEntity.d.ts +99 -0
- package/build/types/entities/interfaces/SetterEntity.d.ts +0 -4
- package/build/types/entities/interfaces/StructuredTypeEntity.d.ts +0 -8
- package/build/types/entities/interfaces/TextTranslationEntity.d.ts +1 -0
- package/build/types/entities/interfaces/TypeExtensionEntity.d.ts +1 -7
- package/build/types/entities/interfaces/TypeParameterEntity.d.ts +2 -4
- package/build/types/entities/interfaces/VariableEntity.d.ts +2 -11
- package/build/types/entities/interfaces/VariantTypeEntity.d.ts +1 -8
- package/build/types/entities/interfaces/index.d.ts +1 -0
- package/build/types/entities/intrinsic/IntrinsicConstructorEntity.d.ts +3 -1
- package/build/types/entities/intrinsic/IntrinsicFunctionEntity.d.ts +2 -1
- package/build/types/entities/intrinsic/IntrinsicFunctionTypeEntity.d.ts +3 -3
- package/build/types/entities/intrinsic/IntrinsicStructuredTypeEntity.d.ts +3 -3
- package/build/types/entities/intrinsic/IntrinsicTypeParameterEntity.d.ts +2 -4
- package/build/types/entities/intrinsic/IntrinsicVariableEntity.d.ts +2 -1
- package/build/types/entities/source/SourceAliasTypeEntity.d.ts +1 -2
- package/build/types/entities/source/SourceConstructorEntity.d.ts +6 -2
- package/build/types/entities/source/SourceDereferenceOperatorEntity.d.ts +3 -1
- package/build/types/entities/source/SourceDestructorEntity.d.ts +6 -1
- package/build/types/entities/source/SourceFunctionEntity.d.ts +5 -1
- package/build/types/entities/source/SourceFunctionTypeEntity.d.ts +1 -3
- package/build/types/entities/source/SourceIndexerEntity.d.ts +3 -1
- package/build/types/entities/source/SourceOperatorEntity.d.ts +5 -1
- package/build/types/entities/source/SourceReducedTypeEntity.d.ts +44 -0
- package/build/types/entities/source/SourceStructuredTypeEntity.d.ts +1 -3
- package/build/types/entities/source/SourceTextTranslationEntity.d.ts +1 -0
- package/build/types/entities/source/SourceTypeExtensionEntity.d.ts +1 -2
- package/build/types/entities/source/SourceTypeParameterEntity.d.ts +1 -2
- package/build/types/entities/source/SourceVariableEntity.d.ts +7 -1
- package/build/types/entities/source/SourceVariantTypeEntity.d.ts +1 -3
- package/build/types/entities/source/index.d.ts +1 -0
- package/build/types/entities/translated/TranslatedAliasTypeEntity.d.ts +1 -3
- package/build/types/entities/translated/TranslatedConstructorEntity.d.ts +9 -4
- package/build/types/entities/translated/TranslatedDereferenceOperatorEntity.d.ts +3 -1
- package/build/types/entities/translated/TranslatedDestructorEntity.d.ts +4 -1
- package/build/types/entities/translated/TranslatedFunctionEntity.d.ts +3 -1
- package/build/types/entities/translated/TranslatedFunctionTypeEntity.d.ts +1 -5
- package/build/types/entities/translated/TranslatedIndexerEntity.d.ts +3 -1
- package/build/types/entities/translated/TranslatedOperatorEntity.d.ts +3 -1
- package/build/types/entities/translated/TranslatedReducedTypeEntity.d.ts +59 -0
- package/build/types/entities/translated/TranslatedStructuredTypeEntity.d.ts +1 -5
- package/build/types/entities/translated/TranslatedTypeExtensionEntity.d.ts +1 -3
- package/build/types/entities/translated/TranslatedTypeParameterEntity.d.ts +1 -3
- package/build/types/entities/translated/TranslatedVariableEntity.d.ts +3 -1
- package/build/types/entities/translated/TranslatedVariantTypeEntity.d.ts +1 -5
- package/build/types/entities/translated/index.d.ts +1 -0
- package/build/types/parser/KeywordDictionary.d.ts +10 -2
- package/build/types/parser/TokenKind.d.ts +46 -44
- package/build/types/project/SourceFile.d.ts +3 -1
- package/build/types/services/CompletionService.d.ts +5 -4
- package/build/types/services/CustomRequests.d.ts +17 -6
- package/build/types/services/DisplayService.d.ts +78 -3
- package/build/types/services/LanguageServer.d.ts +3 -4
- package/build/types/services/ScriptEditingService.d.ts +25 -0
- package/build/types/services/TranslationService.d.ts +1 -1
- package/build/types/services/Types.d.ts +6 -0
- package/build/types/services/source-generation/EntityToSyntax.d.ts +16 -0
- package/build/types/tree/BaseNode.d.ts +56 -2
- package/build/types/tree/KeywordFlags.d.ts +28 -0
- package/build/types/tree/KeywordKind.d.ts +57 -54
- package/build/types/tree/NodeKind.d.ts +142 -140
- package/build/types/tree/Nodes.d.ts +55 -29
- package/build/types/tree/NodesDebug.d.ts +9 -0
- package/build/types/tree/OperatorKind.d.ts +6 -3
- package/build/types/tree/SyntaxFactory.d.ts +33 -29
- package/build/types/tree/SyntaxToCode.d.ts +4 -0
- package/build/types/tree/TokenFlags.d.ts +15 -0
- package/build/types/tree/TokenKind.d.ts +58 -44
- package/build/types/tree/Utils.d.ts +2 -2
- package/build/types/tree/index.d.ts +2 -1
- package/build/types/ts-interop/Entities.d.ts +11 -12
- package/build/types/ts-interop/TsInteropContext.d.ts +1 -2
- package/build/types/ts-interop/TsPackageMembersCreator.d.ts +1 -1
- package/build/types/types/AliasType.d.ts +0 -1
- package/build/types/types/FunctionType.d.ts +0 -1
- package/build/types/types/IntersectionType.d.ts +0 -1
- package/build/types/types/ParameterType.d.ts +0 -1
- package/build/types/types/ReducedType.d.ts +24 -0
- package/build/types/types/StructuredType.d.ts +1 -2
- package/build/types/types/SubstitutionStubType.d.ts +21 -0
- package/build/types/types/Type.d.ts +5 -3
- package/build/types/types/TypeFactory.d.ts +4 -2
- package/build/types/types/UnionType.d.ts +0 -1
- package/build/types/types/UnresolvedType.d.ts +0 -1
- package/build/types/types/VariantType.d.ts +0 -1
- package/build/types/types/index.d.ts +3 -1
- package/package.json +1 -1
- package/build/types/analysis/semantic-context/SemanticContextBasedEntityHidingMatcher.d.ts +0 -14
- package/build/types/entities/BaseEntityHidingMatcher.d.ts +0 -11
- package/build/types/entities/EntityHidingMatcherWithinTypeEntity.d.ts +0 -10
- package/build/types/parser/ReservedIdentifierDictionary.d.ts +0 -11
- package/build/types/services/AddBlockToScriptService.d.ts +0 -17
- package/build/types/services/AssignFieldService.d.ts +0 -10
- package/build/types/services/DeleteBlockFromScriptService.d.ts +0 -6
- package/build/types/tree/Token.d.ts +0 -58
- /package/build/types/services/{ProjectItemsService.d.ts → WorkspaceItemsService.d.ts} +0 -0
|
@@ -100,137 +100,160 @@ export declare enum DiagnosticCode {
|
|
|
100
100
|
MembersOfAspectTypeMustNotHaveBody = 2061,
|
|
101
101
|
AspectTypeFieldsMustBeAbstract = 2062,
|
|
102
102
|
DeclarationsMarkedWithBuiltIntoPlatformTagMustNotHaveBody = 2063,
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
103
|
+
ReducedTypeMembersMustNotHaveBody = 2064,
|
|
104
|
+
AbstractFieldsMustNotHaveInitializers = 2065,
|
|
105
|
+
ReducedTypeFieldsMustNotHaveInitializers = 2066,
|
|
106
|
+
PackageIsAlreadyImported = 2067,
|
|
107
|
+
OnlySubprogramsWithReturnTypeCanReturnValue = 2068,
|
|
108
|
+
FunctionsUsingYieldStatementCannotReturnValue = 2069,
|
|
109
|
+
YieldStatementCannotBeUsedInAnonymousFunctions = 2070,
|
|
110
|
+
YieldStatementCannotBeUsedHere = 2071,
|
|
111
|
+
FunctionsUsingYieldStatementMustHaveEnumerableAsReturnType = 2072,
|
|
112
|
+
YieldStatementCannotBeUsedInTryStatementThatHasCatchClause = 2073,
|
|
113
|
+
YieldStatementCannotBeUsedInFinallyBlock = 2074,
|
|
114
|
+
SubprogramMustReturnValue = 2075,
|
|
115
|
+
ResultVariableCannotBeUsedInFunctionsUsingYieldStatement = 2076,
|
|
116
|
+
TypeAliasReferencesItself = 2077,
|
|
117
|
+
ReducedTypeReferencesItself = 2078,
|
|
118
|
+
TypeParameterHasCircularConstraint = 2079,
|
|
119
|
+
BaseTypeCausesInheritanceCycle = 2080,
|
|
120
|
+
OnlyGenericTypesAndFunctionsCanBeSpecialized = 2081,
|
|
121
|
+
Expected0TypeArguments = 2082,
|
|
122
|
+
ExpectedFrom0To1TypeArguments = 2083,
|
|
123
|
+
Type0IsNotAssignableToConstraint1 = 2084,
|
|
124
|
+
VariableIsDeclaredButItsValueIsNeverRead = 2085,
|
|
125
|
+
FunctionIsDeclaredButNotUsed = 2086,
|
|
126
|
+
TypeParameterIsDeclaredButNotUsed = 2087,
|
|
127
|
+
DefaultConstructorArgumentsMustBeNamed = 2088,
|
|
128
|
+
IncorrectBodyOfBasicAliasTypeMethod = 2089,
|
|
129
|
+
TheFollowingDeclarationsAreNotTranslated0 = 2090,
|
|
130
|
+
TheFollowingDeclarationsAreNotTranslated0And1More = 2091,
|
|
131
|
+
TheFollowingTextsAreNotTranslated0 = 2092,
|
|
132
|
+
TheFollowingTextsAreNotTranslated0And1More = 2093,
|
|
133
|
+
OperatorFunction0MustNotHaveParameters = 2094,
|
|
134
|
+
OperatorFunction0MustHaveOneParameter = 2095,
|
|
135
|
+
OperatorFunction0MustHaveNoMoreThanOneParameter = 2096,
|
|
136
|
+
CorrespondingBasicTypeMemberNotFound = 2097,
|
|
137
|
+
AsyncFunctionCanOnlyBeCalledFromFunctionMarkedWithAsyncModifier = 2098,
|
|
138
|
+
TagNotFound = 2099,
|
|
139
|
+
TypeOrFunctionNameExpected = 2100,
|
|
140
|
+
PackageNameOrAliasExpected = 2101,
|
|
141
|
+
ExpressionCanBeNull = 2102,
|
|
142
|
+
TargetVariableExpressionInTheAssignmentStatementCannotContainQuestionOperator = 2103,
|
|
143
|
+
UnreachableCode = 2104,
|
|
144
|
+
RecursionOccurredWhileCalculatingTheTypeOfTheExpression = 2105,
|
|
145
|
+
RecursionOccurredWhileInferringTheTypeOfTheVariable = 2106,
|
|
146
|
+
ScopeAlreadyContainsDeclarationWithTheSameName = 2107,
|
|
147
|
+
ScopeAlreadyContainsFunctionWithTheSameNameAndParameterTypes = 2108,
|
|
148
|
+
ParameterName0ConflictsWithAutomaticallyGeneratedVariableName = 2109,
|
|
149
|
+
PackageAlreadyContainsDeclarationWithTheSameName = 2110,
|
|
150
|
+
PackageAlreadyContainsFunctionWithTheSameNameAndParameterTypes = 2111,
|
|
151
|
+
PackageAlreadyContainsTypeWithTheSameNameAndSameOrIntersectingTypeParameterCount = 2112,
|
|
152
|
+
PackageAliasWithTheSameNameAlreadyExits = 2113,
|
|
153
|
+
TypeAlreadyContainsDeclarationWithTheSameName = 2114,
|
|
154
|
+
TypeAlreadyContainsMethodWithTheSameNameAndParameterTypes = 2115,
|
|
155
|
+
TypeAlreadyContainsConstructorWithTheSameParameterTypes = 2116,
|
|
156
|
+
TypeAlreadyContainsOperatorFunctionWithTheSameParameterTypes = 2117,
|
|
157
|
+
TypeAlreadyContainsIndexerWithTheSameParameterTypes = 2118,
|
|
158
|
+
TypeCanHaveOnlyOneDestructor = 2119,
|
|
159
|
+
TypeCanHaveOnlyOneDereferenceOperator = 2120,
|
|
160
|
+
VariableIsUsedBeforeItsDeclaration = 2121,
|
|
161
|
+
VariableMayNotHasBeenAssignedBeforeUsage = 2122,
|
|
162
|
+
NotAllCodePathsReturnAValueAndResultLocalVariableMayNotHasBeenAssigned = 2123,
|
|
163
|
+
WriteFunctionHasNoCorrespondingReadFunction = 2124,
|
|
164
|
+
TypeCannotHaveMultipleBaseObjectTypes = 2125,
|
|
165
|
+
TypeThatIsNotMarkedAsBasicCannotBeUsedAsBaseType = 2126,
|
|
166
|
+
PlainObjectTypeCannotBeUsedAsBaseType = 2127,
|
|
167
|
+
ThisTypeIsAlreadyListedInBaseTypeList = 2128,
|
|
168
|
+
OnlyObjectAndAspectTypesCanBeUsedAsBaseTypes = 2129,
|
|
169
|
+
PlainObjectTypeCanHaveOnlyAspectsAsBaseTypes = 2130,
|
|
170
|
+
AspectTypeCanHaveOnlyAspectsAsBaseTypes = 2131,
|
|
171
|
+
ModifierListAlreadyContains0Modifier = 2132,
|
|
172
|
+
ModifierListOfOuterDeclarationGroupAlreadyContains0Modifier = 2133,
|
|
173
|
+
_0ModifierIsNotAllowedHere = 2134,
|
|
174
|
+
DeclarationCannotBePlacedInGroupHaving0Modifier = 2135,
|
|
175
|
+
PackageConstructorDeclarationCannotHaveModifiers = 2136,
|
|
176
|
+
PackageEntryPointDeclarationCannotHaveModifiers = 2137,
|
|
177
|
+
TranslationsCannotHaveModifiers = 2138,
|
|
178
|
+
AbstractModifierCanOnlyBeUsedInAbstractObjectTypes = 2139,
|
|
179
|
+
BasicModifierCanOnlyBeUsedInObjectTypesAspectTypesAndTypeAliases = 2140,
|
|
180
|
+
OverrideModifierCanOnlyBeUsedInObjectAndAspectTypes = 2141,
|
|
181
|
+
_0ModifierCannotBeUsedWith1Modifier = 2142,
|
|
182
|
+
VariantValueCannotBeHidden = 2143,
|
|
183
|
+
BasicModifierCanOnlyBeAppliedToObjectTypes = 2144,
|
|
184
|
+
AbstractModifierCanOnlyBeAppliedToObjectTypes = 2145,
|
|
185
|
+
NotBasicObjectTypesCannotHaveBasicMembers = 2146,
|
|
186
|
+
BasicModifierCannotBeAppliedToAspectTypeFields = 2147,
|
|
187
|
+
WriteFunctionMustHaveTheSameModifiersAsReadFunction = 2148,
|
|
188
|
+
WriteFunctionMustHaveTheSameOrMoreRestrictiveHidingLevelThenReadFunction = 2149,
|
|
189
|
+
DeclarationConflictsWithBaseTypeMember0 = 2150,
|
|
190
|
+
DeclarationConflictsWithBaseTypeMember0AddOverrideModifier = 2151,
|
|
191
|
+
DeclarationConflictsWithBaseTypeMember0ThisMemberCannotBeOverridden = 2152,
|
|
192
|
+
DeclarationConflictsWithBaseTypeMember0ToOverrideTypeMustBeAssignableTo1 = 2153,
|
|
193
|
+
DeclarationConflictsWithBaseTypeMember0ToOverrideReturnTypeMustBeAssignableTo1 = 2154,
|
|
194
|
+
OverridingMemberMustHaveTheSameHidingLevelAsBaseMember0 = 2155,
|
|
195
|
+
OverridingMethodMustBeAsyncBecauseBaseMethod0IsAsync = 2156,
|
|
196
|
+
OverridingMethodMustNotBeAsyncBecauseBaseMethod0IsNotAsync = 2157,
|
|
197
|
+
OverridingFieldMustNotBeConstOrHaveWriteFunctionToMatchBaseField0 = 2158,
|
|
198
|
+
OverridingMemberMustHaveWriteFunctionToMatchBaseMember0 = 2159,
|
|
199
|
+
TypeDoesNotImplementMember0 = 2160,
|
|
200
|
+
TypeDoesNotImplementMember0ImplicitImplementationTypeMismatch1 = 2161,
|
|
201
|
+
TypeDoesNotImplementMember0ImplicitImplementation1IsAsync = 2162,
|
|
202
|
+
TypeDoesNotImplementMember0ImplicitImplementation1IsNotAsync = 2163,
|
|
203
|
+
TypeDoesNotImplementMember0ImplicitImplementation1IsNotWriteable = 2164,
|
|
204
|
+
TypeDoesNotImplementMember0ImplicitImplementation1WriteFunctionIsHidden = 2165,
|
|
205
|
+
CannotAccessAbstractMemberOfBaseType = 2166,
|
|
206
|
+
TheFollowingBaseTypeMembersConflictAndMustBeOverridden0 = 2167,
|
|
207
|
+
TheFollowingBaseTypeMembersConflictBecauseTheyHaveTheSameOriginalName0AndMustBeOverridden1 = 2168,
|
|
208
|
+
TheFirstStatementOfConstructorBlockMustBeEitherBaseOrOwnConstructorCall = 2169,
|
|
209
|
+
ThisCallCausesOwnConstructorCallCycle = 2170,
|
|
210
|
+
OwnConstructorCallMustBeTheFirstStatementOfConstructorBlock = 2171,
|
|
211
|
+
BaseConstructorCallMustBeTheFirstStatementOfConstructorBlock = 2172,
|
|
212
|
+
Field0HasNoInitializerAndMayNotBeAssignedInConstructor = 2173,
|
|
213
|
+
Field0HasNoInitializerAndMayNotBeAssignedInPackageConstructor = 2174,
|
|
214
|
+
Variable0HasNoInitializerAndMayNotBeAssignedInPackageConstructor = 2175,
|
|
215
|
+
ExpressionOfType0CanNotBeUsedInForLoopBecauseNotEnumerableAndNoMethod1 = 2176,
|
|
216
|
+
ForExpressionToBeUsedInForLoopMethod0MustReturnEnumeratorType = 2177,
|
|
217
|
+
CannotInferTypeArguments = 2178,
|
|
218
|
+
CanNotInferReturnTypeAddExplicitReturnTypeSpecifier = 2179,
|
|
219
|
+
ConstantVariablesBustBeInitialized = 2180,
|
|
220
|
+
VariableTypeIsNotSpecified = 2181,
|
|
221
|
+
CannotInferTypeOfFunctionLiteralAddTypeSpecifierForParameter = 2182,
|
|
222
|
+
TypeParameterDefaultCanReferenceOnlyPreviouslyDeclaredTypeParameters = 2183,
|
|
223
|
+
RequiredTypeParametersCannotFollowTypeParametersWithDefaults = 2184,
|
|
224
|
+
RequiredParametersCannotFollowOptionalParameters = 2185,
|
|
225
|
+
ExpressionCannotBeReferenced = 2186,
|
|
226
|
+
TextIsMissingAmongPrimaryTextTranslationDefinitions = 2187,
|
|
227
|
+
DeclarationHasAlreadyBeenTranslated = 2188,
|
|
228
|
+
TheNumberOfTranslatedParametersMustBeEqualToTheNumberOfSourceParameters = 2189,
|
|
229
|
+
TheNumberOfTranslatedTypeParametersMustBeEqualToTheNumberOfSourceTypeParameters = 2190,
|
|
230
|
+
TheNameOfTheTranslatedOperatorMustMeTheSameAsSourceOperatorName = 2191,
|
|
231
|
+
TranslationOfFunctionTypeMustIncludeParameterList = 2192,
|
|
232
|
+
OnlyOneTextTranslationPackageShouldBeMarkedAsPrimary = 2193,
|
|
233
|
+
Declarations0And1HaveTheSameSourceNamesButDifferentTranslatedNames23 = 2194,
|
|
234
|
+
TranslatedDeclarations0And1HaveTheSameTranslatedNamesButDifferentSourceNames23 = 2195,
|
|
235
|
+
TranslatedOverridingMember0MustTheSameNameAsBaseMember1 = 2196,
|
|
236
|
+
TextTranslationAlreadyExistsInTheTextTranslationPackage = 2197,
|
|
237
|
+
PackageDoesNotContainImplementationOf0 = 2198,
|
|
238
|
+
TypeDoesNotContainImplementationOf0 = 2199,
|
|
239
|
+
ImplementationVariableMustNotBeConstOrHaveWriteFunctionToMatchInterfacePackageVariable0 = 2200,
|
|
240
|
+
ImplementationFunctionMustBeAsyncToMatchInterfacePackageFunction0 = 2201,
|
|
241
|
+
ImplementationFunctionMustNotBeAsyncToMatchInterfacePackageFunction0 = 2202,
|
|
242
|
+
ImplementationTypeMustBeBasicToMatchInterfacePackageType0 = 2203,
|
|
243
|
+
ImplementationTypeMustNotBeAbstractToMatchInterfacePackageType0 = 2204,
|
|
244
|
+
ImplementationTypeMemberMustBeBasicToMatchInterfacePackageTypeMember0 = 2205,
|
|
245
|
+
ImplementationTypeMemberMustNotBeAbstractToMatchInterfacePackageTypeMember0 = 2206,
|
|
246
|
+
ImplementationTypeMemberMustHaveWriteFunctionToMatchInterfacePackageTypeMember0 = 2207,
|
|
247
|
+
BreakLoopAndContinueLoopStatementsCanOnlyBeUsedInsideALoop = 2208,
|
|
248
|
+
BreakLoopAndContinueLoopStatementsCannotBeUsedInFinallyBlock = 2209,
|
|
249
|
+
TheCodeWasExpectedToBeUnreachable = 2210,
|
|
250
|
+
CorrespondingReductionSourceTypeMemberNotFound = 2211,
|
|
251
|
+
OnlyTypesPresentInBaseTypeListOrReductionSourceCanBeSpecified = 2212,
|
|
252
|
+
ReducedTypeMemberMustHaveTheSameHidingLevelAsReductionSourceMember = 2213,
|
|
253
|
+
ReducedTypeFieldMustBeConstOrHaveNoWriteFunctionToMatchReductionSourceField = 2214,
|
|
254
|
+
ReducedTypeMethodMustBeAsyncToMatchReductionSourceMethod = 2215,
|
|
255
|
+
ReducedTypeMethodMustNotBeAsyncToMatchReductionSourceMethod = 2216,
|
|
256
|
+
ReducedTypeMemberMustHaveNoWriteFunctionToMatchReductionSourceMember = 2217,
|
|
234
257
|
CannotFindTsLibDirectoryBaseSearchPaths0 = 3000,
|
|
235
258
|
SourceFile0IsNotPartOfThePackageAndWontBeLoaded = 3001,
|
|
236
259
|
ProgramWithoutMainPackageCannotBeCompiled = 3002,
|
|
@@ -118,10 +118,11 @@ export declare class TypeOrExtensionEntityDetails {
|
|
|
118
118
|
export declare enum TypeOrExtensionEntityKind {
|
|
119
119
|
StructuredType = 0,
|
|
120
120
|
AliasType = 1,
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
121
|
+
ReducedType = 2,
|
|
122
|
+
VariantType = 3,
|
|
123
|
+
FunctionType = 4,
|
|
124
|
+
ParameterType = 5,
|
|
125
|
+
TypeExtension = 6
|
|
125
126
|
}
|
|
126
127
|
export declare enum StructuredTypeKind {
|
|
127
128
|
RefObject = 0,
|
|
@@ -15,7 +15,7 @@ export declare class EntityMap {
|
|
|
15
15
|
private readonly functions;
|
|
16
16
|
private readonly typeOrExtensions;
|
|
17
17
|
private readonly packages;
|
|
18
|
-
private readonly
|
|
18
|
+
private readonly implementationPackages;
|
|
19
19
|
constructor(analyzer: Analyzer, targetPlatform: PlatformKind);
|
|
20
20
|
getVariableEntity(entity: analyzerEntities.VariableEntity): emitterEntities.VariableEntity;
|
|
21
21
|
getNamedFunctionEntity(entity: analyzerEntities.NamedFunctionEntity): emitterEntities.FunctionEntity;
|
|
@@ -29,6 +29,7 @@ export declare class EntityMap {
|
|
|
29
29
|
getTypeParameterEntity(entity: analyzerEntities.TypeParameterEntity): emitterEntities.TypeOrExtensionEntity;
|
|
30
30
|
getFunctionTypeEntity(entity: analyzerEntities.FunctionTypeEntity): emitterEntities.TypeOrExtensionEntity;
|
|
31
31
|
getAliasTypeEntity(entity: analyzerEntities.AliasTypeEntity): emitterEntities.TypeOrExtensionEntity;
|
|
32
|
+
getReducedTypeEntity(entity: analyzerEntities.ReducedTypeEntity): emitterEntities.TypeOrExtensionEntity;
|
|
32
33
|
getTypeExtensionEntity(entity: analyzerEntities.TypeExtensionEntity): emitterEntities.TypeOrExtensionEntity;
|
|
33
34
|
getTypeOrExtensionEntity(entity: analyzerEntities.TypeOrExtensionEntity): emitterEntities.TypeOrExtensionEntity;
|
|
34
35
|
getPackageEntity(entity: analyzerEntities.PackageEntity): emitterEntities.PackageEntity;
|
|
@@ -37,6 +38,9 @@ export declare class EntityMap {
|
|
|
37
38
|
private getPackageEntityInternal;
|
|
38
39
|
private createTypeMembers;
|
|
39
40
|
private getContainingPackageAndAccumulateIfMember;
|
|
41
|
+
private tryGetReductionSourceMemberGetter;
|
|
42
|
+
private tryGetReductionSourceMemberSetter;
|
|
43
|
+
private getReductionSourceMember;
|
|
40
44
|
private getEntityNameText;
|
|
41
45
|
private getNameText;
|
|
42
46
|
private isDefaultExport;
|
|
@@ -34,6 +34,7 @@ export declare class IrBuilder {
|
|
|
34
34
|
private buildPackageFunctionDeclaration;
|
|
35
35
|
private buildPackageStructuredTypeDeclaration;
|
|
36
36
|
private buildPackageAliasTypeDeclaration;
|
|
37
|
+
private buildPackageReducedTypeDeclaration;
|
|
37
38
|
private buildPackageVariableDeclaration;
|
|
38
39
|
private buildPackageVariableGetterDeclaration;
|
|
39
40
|
private buildPackageVariableSetterDeclaration;
|
|
@@ -1081,7 +1081,13 @@ export declare const enum AssignmentOperatorKind {
|
|
|
1081
1081
|
SubtractEquals = 2,
|
|
1082
1082
|
MultiplyEquals = 3,
|
|
1083
1083
|
DivideEquals = 4,
|
|
1084
|
-
IntegerDivideEquals = 5
|
|
1084
|
+
IntegerDivideEquals = 5,
|
|
1085
|
+
BitwiseAndEquals = 6,
|
|
1086
|
+
BitwiseOrEquals = 7,
|
|
1087
|
+
BitwiseXorEquals = 8,
|
|
1088
|
+
LeftShiftEquals = 9,
|
|
1089
|
+
SignedRightShiftEquals = 10,
|
|
1090
|
+
UnsignedRightShiftEquals = 11
|
|
1085
1091
|
}
|
|
1086
1092
|
export declare const enum PrefixUnaryExpressionOperatorKind {
|
|
1087
1093
|
Plus = 0,
|
|
@@ -1108,5 +1114,8 @@ export declare const enum BinaryExpressionOperatorKind {
|
|
|
1108
1114
|
Modulo = 15,
|
|
1109
1115
|
BitwiseAnd = 16,
|
|
1110
1116
|
BitwiseOr = 17,
|
|
1111
|
-
BitwiseXor = 18
|
|
1117
|
+
BitwiseXor = 18,
|
|
1118
|
+
LeftShift = 19,
|
|
1119
|
+
SignedRightShift = 20,
|
|
1120
|
+
UnsignedRightShift = 21
|
|
1112
1121
|
}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { Analyzer } from '../analysis/Analyzer.js';
|
|
2
|
-
import { SemanticContext } from '../analysis/semantic-context/SemanticContext.js';
|
|
3
|
-
import { PackageDialect, PackageLocale } from '../common/index.js';
|
|
4
2
|
import * as types from '../types/index.js';
|
|
5
|
-
import { IEntityHidingMatcher } from './EntityHiding.js';
|
|
6
3
|
import { AliasTypeEntity } from './interfaces/AliasTypeEntity.js';
|
|
7
4
|
import { ConstructorEntity } from './interfaces/ConstructorEntity.js';
|
|
8
5
|
import { DereferenceOperatorEntity } from './interfaces/DereferenceOperatorEntity.js';
|
|
@@ -14,6 +11,7 @@ import { IndexerEntity } from './interfaces/IndexerEntity.js';
|
|
|
14
11
|
import { OperatorEntity } from './interfaces/OperatorEntity.js';
|
|
15
12
|
import { PackageAliasEntity } from './interfaces/PackageAliasEntity.js';
|
|
16
13
|
import { PackageEntity } from './interfaces/PackageEntity.js';
|
|
14
|
+
import { ReducedTypeEntity } from './interfaces/ReducedTypeEntity.js';
|
|
17
15
|
import { SetterEntity } from './interfaces/SetterEntity.js';
|
|
18
16
|
import { AnonymousStructuredTypeEntity, PackageStructuredTypeEntity, StructuredTypeEntity } from './interfaces/StructuredTypeEntity.js';
|
|
19
17
|
import { TextTranslationEntity } from './interfaces/TextTranslationEntity.js';
|
|
@@ -43,13 +41,13 @@ export declare const enum EntityKind {
|
|
|
43
41
|
Package = 12,
|
|
44
42
|
TextTranslation = 13
|
|
45
43
|
}
|
|
46
|
-
export type Entity = PackageEntity | VariableEntity | VariantTypeEntity | GetterEntity | SetterEntity | FunctionEntity | TypeParameterEntity | OperatorEntity | IndexerEntity | DereferenceOperatorEntity | ConstructorEntity | DestructorEntity | FunctionTypeEntity | StructuredTypeEntity | PackageAliasEntity | AliasTypeEntity | TypeExtensionEntity | TextTranslationEntity;
|
|
47
|
-
export type PackageTypeEntity = PackageFunctionTypeEntity | PackageStructuredTypeEntity | PackageVariantTypeEntity | AliasTypeEntity;
|
|
44
|
+
export type Entity = PackageEntity | VariableEntity | VariantTypeEntity | GetterEntity | SetterEntity | FunctionEntity | TypeParameterEntity | OperatorEntity | IndexerEntity | DereferenceOperatorEntity | ConstructorEntity | DestructorEntity | FunctionTypeEntity | StructuredTypeEntity | PackageAliasEntity | AliasTypeEntity | ReducedTypeEntity | TypeExtensionEntity | TextTranslationEntity;
|
|
45
|
+
export type PackageTypeEntity = PackageFunctionTypeEntity | PackageStructuredTypeEntity | PackageVariantTypeEntity | AliasTypeEntity | ReducedTypeEntity;
|
|
48
46
|
export declare function isPackageTypeEntity(entity: Entity): entity is PackageTypeEntity;
|
|
49
|
-
export type NamedTypeEntity = PackageFunctionTypeEntity | PackageStructuredTypeEntity | PackageVariantTypeEntity | AliasTypeEntity | TypeParameterEntity;
|
|
47
|
+
export type NamedTypeEntity = PackageFunctionTypeEntity | PackageStructuredTypeEntity | PackageVariantTypeEntity | AliasTypeEntity | ReducedTypeEntity | TypeParameterEntity;
|
|
50
48
|
export type AnonymousTypeEntity = AnonymousStructuredTypeEntity | AnonymousFunctionTypeEntity | AnonymousVariantTypeEntity;
|
|
51
49
|
export declare function isAnonymousTypeEntity(entity: Entity): entity is AnonymousTypeEntity;
|
|
52
|
-
export type TypeEntityWithMembers = FunctionTypeEntity | StructuredTypeEntity | VariantTypeEntity | AliasTypeEntity;
|
|
50
|
+
export type TypeEntityWithMembers = FunctionTypeEntity | StructuredTypeEntity | VariantTypeEntity | AliasTypeEntity | ReducedTypeEntity;
|
|
53
51
|
export declare function isTypeEntityWithMembers(entity: Entity): entity is TypeEntityWithMembers;
|
|
54
52
|
export type TypeOrExtensionEntity = TypeEntity | TypeExtensionEntity;
|
|
55
53
|
export type TypeWithMembersOrExtensionEntity = TypeEntityWithMembers | TypeExtensionEntity;
|
|
@@ -58,7 +56,7 @@ export declare namespace TypeWithMembersOrExtensionEntity {
|
|
|
58
56
|
}
|
|
59
57
|
export declare function isTypeWithMembersOrExtensionEntity(entity: Entity): entity is TypeWithMembersOrExtensionEntity;
|
|
60
58
|
export declare function isTypeEntity(entity: Entity): entity is TypeEntity;
|
|
61
|
-
export declare function isNamedTypeEntity(entity:
|
|
59
|
+
export declare function isNamedTypeEntity(entity: Entity): entity is NamedTypeEntity;
|
|
62
60
|
export type PackageMemberEntity = PackageVariableEntity | PackageFunctionEntity | PackageTypeEntity | TypeExtensionEntity | TextTranslationEntity;
|
|
63
61
|
export declare function isPackageMemberEntity(entity: Entity): entity is PackageMemberEntity;
|
|
64
62
|
export type NamedPackageMemberEntity = PackageVariableEntity | PackageFunctionEntity | PackageTypeEntity;
|
|
@@ -68,6 +66,7 @@ export declare function isTypeMemberEntity(entity: Entity): entity is TypeMember
|
|
|
68
66
|
export declare namespace TypeMemberEntity {
|
|
69
67
|
function isAspectTypeMember(entity: TypeMemberEntity): boolean;
|
|
70
68
|
function isRefObjectTypeMember(entity: TypeMemberEntity): boolean;
|
|
69
|
+
function isReducedTypeMember(entity: TypeMemberEntity): boolean;
|
|
71
70
|
/**
|
|
72
71
|
* Возвращает `true`, если объявление является всеобщим (помечено модификатором "всеобщее").
|
|
73
72
|
*/
|
|
@@ -90,24 +89,16 @@ export declare namespace TypeMemberEntity {
|
|
|
90
89
|
}
|
|
91
90
|
export type NamedTypeMemberEntity = FieldEntity | MethodEntity;
|
|
92
91
|
export declare function isNamedTypeMemberEntity(entity: Entity): entity is NamedTypeMemberEntity;
|
|
93
|
-
export type NamedEntity = VariableEntity | PackageVariantTypeEntity | NamedFunctionEntity | TypeParameterEntity | PackageFunctionTypeEntity | PackageStructuredTypeEntity | PackageAliasEntity | AliasTypeEntity;
|
|
92
|
+
export type NamedEntity = VariableEntity | PackageVariantTypeEntity | NamedFunctionEntity | TypeParameterEntity | PackageFunctionTypeEntity | PackageStructuredTypeEntity | PackageAliasEntity | AliasTypeEntity | ReducedTypeEntity;
|
|
94
93
|
export type PackageOrNestedFunctionEntity = PackageFunctionEntity | NestedFunctionEntity;
|
|
95
94
|
export type AccessorEntity = GetterEntity | SetterEntity;
|
|
95
|
+
export declare function isAccessorEntity(entity: Entity): entity is AccessorEntity;
|
|
96
96
|
export type EntityWithTypeParameters = EntityContainingTypeParameter;
|
|
97
97
|
export declare function isEntityWithTypeParameters(entity: Entity): entity is EntityWithTypeParameters;
|
|
98
98
|
export type EntityWithParameters = Exclude<EntityContainingParameter, PackageEntity>;
|
|
99
99
|
export declare function isEntityWithParameters(entity: Entity): entity is EntityWithParameters;
|
|
100
100
|
export type NamedFunctionEntity = PackageFunctionEntity | MethodEntity | NestedFunctionEntity;
|
|
101
101
|
export declare function isNamedFunctionEntity(entity: Entity): entity is NamedFunctionEntity;
|
|
102
|
-
export declare class EntityContext {
|
|
103
|
-
readonly containingPackage: PackageEntity;
|
|
104
|
-
readonly hidingMatcher: IEntityHidingMatcher;
|
|
105
|
-
readonly typeExtensionLookup: SemanticContext | undefined;
|
|
106
|
-
get locale(): PackageLocale;
|
|
107
|
-
get packageDialect(): PackageDialect;
|
|
108
|
-
constructor(containingPackage: PackageEntity, hidingMatcher: IEntityHidingMatcher, typeExtensionLookup: SemanticContext | undefined);
|
|
109
|
-
static fromSemanticContext(semanticContext: SemanticContext): EntityContext;
|
|
110
|
-
}
|
|
111
102
|
export declare function entityToStringDecorator<T extends {
|
|
112
103
|
new (...args: any[]): Entity;
|
|
113
104
|
}>(constructor: T): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SourceFile } from '../project/index.js';
|
|
2
|
-
import { PackageEntity } from './interfaces/PackageEntity.js';
|
|
3
2
|
import { TypeEntity } from './index.js';
|
|
3
|
+
import { PackageEntity } from './interfaces/PackageEntity.js';
|
|
4
4
|
export type EntityHidingLevel = EntityHidingLevel_type | EntityHidingLevel_typeHierarchy | EntityHidingLevel_file | EntityHidingLevel_package;
|
|
5
5
|
export declare class EntityHidingLevel_type {
|
|
6
6
|
readonly typeEntity: TypeEntity;
|
|
@@ -22,6 +22,3 @@ export declare class EntityHidingLevel_package {
|
|
|
22
22
|
readonly kind = "package";
|
|
23
23
|
constructor(packageEntity: PackageEntity);
|
|
24
24
|
}
|
|
25
|
-
export interface IEntityHidingMatcher {
|
|
26
|
-
matches(hiding: EntityHidingLevel | undefined): boolean;
|
|
27
|
-
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AnalyzedTranslationPackage } from '../analysis/AnalyzedTranslationPackage.js';
|
|
2
2
|
import { Analyzer } from '../analysis/Analyzer.js';
|
|
3
3
|
import * as types from '../types/index.js';
|
|
4
|
-
import { AliasTypeEntity, AnonymousFunctionTypeEntity, AnonymousStructuredTypeEntity, AnonymousVariantTypeEntity, ConstructorEntity, DereferenceOperatorEntity, DestructorEntity, Entity,
|
|
4
|
+
import { AliasTypeEntity, AnonymousFunctionTypeEntity, AnonymousStructuredTypeEntity, AnonymousVariantTypeEntity, ConstructorEntity, DereferenceOperatorEntity, DestructorEntity, Entity, FieldEntity, FunctionTypeEntity, GetterEntity, IndexerEntity, MethodEntity, NamedTypeMemberEntity, OperatorEntity, PackageEntity, PackageFunctionEntity, PackageFunctionTypeEntity, PackageMemberEntity, PackageStructuredTypeEntity, PackageTypeEntity, PackageVariableEntity, PackageVariantTypeEntity, ParameterEntity, ReducedTypeEntity, SetterEntity, StructuredTypeEntity, TypeEntity, TypeEntityWithMembers, TypeExtensionEntity, TypeMemberEntity, TypeParameterEntity, TypeWithMembersOrExtensionEntity, VariantTypeEntity } from './index.js';
|
|
5
5
|
export declare class EntityLocalizationContext {
|
|
6
6
|
private readonly analyzer;
|
|
7
7
|
private readonly translationPackage;
|
|
@@ -28,6 +28,7 @@ export declare class EntityLocalizationContext {
|
|
|
28
28
|
getLocalizedPackageStructuredTypeEntity(entity: PackageStructuredTypeEntity): PackageStructuredTypeEntity;
|
|
29
29
|
getLocalizedAnonymousStructuredTypeEntity(entity: AnonymousStructuredTypeEntity): AnonymousStructuredTypeEntity;
|
|
30
30
|
getLocalizedAliasTypeEntity(entity: AliasTypeEntity): AliasTypeEntity;
|
|
31
|
+
getLocalizedReducedTypeEntity(entity: ReducedTypeEntity): ReducedTypeEntity;
|
|
31
32
|
getLocalizedTypeExtensionEntity(entity: TypeExtensionEntity): TypeExtensionEntity;
|
|
32
33
|
getLocalizedNamedTypeMemberEntity(entity: NamedTypeMemberEntity): NamedTypeMemberEntity;
|
|
33
34
|
getLocalizedStructuredTypeEntity(entity: StructuredTypeEntity): StructuredTypeEntity;
|
|
@@ -43,13 +44,12 @@ export declare class EntityLocalizationContext {
|
|
|
43
44
|
getLocalizedEntityForPossiblyNotLocalizableEntity(entity: Entity): Entity;
|
|
44
45
|
createLocalizedType(type: types.Type): types.Type;
|
|
45
46
|
createLocalizedSubstitutions(substitutions: types.Substitutions): types.Substitutions;
|
|
46
|
-
createLocalizedEntityContext(context: EntityContext): EntityContext;
|
|
47
47
|
private getOwnTranslatedEntity;
|
|
48
48
|
private getOwnTranslatedTypeEntity;
|
|
49
49
|
private getOwnTranslatedTypeParameterEntity;
|
|
50
50
|
private getOwnTranslatedParameterEntity;
|
|
51
51
|
private getOwnTranslatedAccessorEntity;
|
|
52
52
|
}
|
|
53
|
-
export type LocalizableEntity = PackageEntity | PackageVariableEntity | FieldEntity | ParameterEntity | PackageVariantTypeEntity | AnonymousVariantTypeEntity | GetterEntity | SetterEntity | PackageFunctionEntity | MethodEntity | TypeParameterEntity | OperatorEntity | IndexerEntity | DereferenceOperatorEntity | ConstructorEntity | DestructorEntity | PackageFunctionTypeEntity | AnonymousFunctionTypeEntity | PackageStructuredTypeEntity | AnonymousStructuredTypeEntity | AliasTypeEntity | TypeExtensionEntity;
|
|
53
|
+
export type LocalizableEntity = PackageEntity | PackageVariableEntity | FieldEntity | ParameterEntity | PackageVariantTypeEntity | AnonymousVariantTypeEntity | GetterEntity | SetterEntity | PackageFunctionEntity | MethodEntity | TypeParameterEntity | OperatorEntity | IndexerEntity | DereferenceOperatorEntity | ConstructorEntity | DestructorEntity | PackageFunctionTypeEntity | AnonymousFunctionTypeEntity | PackageStructuredTypeEntity | AnonymousStructuredTypeEntity | AliasTypeEntity | ReducedTypeEntity | TypeExtensionEntity;
|
|
54
54
|
export declare function isLocalizableEntity(entity: Entity): entity is LocalizableEntity;
|
|
55
55
|
export type LocalizablePackageMemberEntity = PackageMemberEntity & LocalizableEntity;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Tag } from '../analysis/Tag.js';
|
|
2
2
|
import { Translation } from '../analysis/Translation.js';
|
|
3
3
|
import { PackageDialect, PackageLocale } from '../common/index.js';
|
|
4
|
-
import { EntityKind, PackageEntity } from './index.js';
|
|
4
|
+
import { Entity, EntityKind, PackageEntity } from './index.js';
|
|
5
5
|
export interface IEntity {
|
|
6
6
|
readonly kind: EntityKind;
|
|
7
7
|
getContainingPackage(): PackageEntity;
|
|
@@ -9,4 +9,5 @@ export interface IEntity {
|
|
|
9
9
|
getLocale(): PackageLocale;
|
|
10
10
|
getDialect(): PackageDialect;
|
|
11
11
|
getTags(): readonly Tag[];
|
|
12
|
+
getOriginalEntity(): Entity;
|
|
12
13
|
}
|
|
@@ -18,12 +18,15 @@ export declare enum OperatorKind {
|
|
|
18
18
|
Xor = 15,
|
|
19
19
|
BitwiseAnd = 16,
|
|
20
20
|
BitwiseOr = 17,
|
|
21
|
-
BitwiseXor = 18
|
|
21
|
+
BitwiseXor = 18,
|
|
22
|
+
LeftShift = 19,
|
|
23
|
+
SignedRightShift = 20,
|
|
24
|
+
UnsignedRightShift = 21
|
|
22
25
|
}
|
|
23
26
|
/**
|
|
24
27
|
* Виды операторов, задаваемых токенами (`+`, `-`, `*=` и др.).
|
|
25
28
|
*/
|
|
26
|
-
export type KindOfOperatorDefinedByToken = OperatorKind.UnaryPlus | OperatorKind.UnaryMinus | OperatorKind.Add | OperatorKind.Subtract | OperatorKind.Multiply | OperatorKind.Divide | OperatorKind.IntegerDivide | OperatorKind.Modulo | OperatorKind.LessThan | OperatorKind.GreaterThan | OperatorKind.LessThanOrEqual | OperatorKind.GreaterThanOrEqual | OperatorKind.BitwiseAnd | OperatorKind.BitwiseOr | OperatorKind.BitwiseXor;
|
|
29
|
+
export type KindOfOperatorDefinedByToken = OperatorKind.UnaryPlus | OperatorKind.UnaryMinus | OperatorKind.Add | OperatorKind.Subtract | OperatorKind.Multiply | OperatorKind.Divide | OperatorKind.IntegerDivide | OperatorKind.Modulo | OperatorKind.LessThan | OperatorKind.GreaterThan | OperatorKind.LessThanOrEqual | OperatorKind.GreaterThanOrEqual | OperatorKind.BitwiseAnd | OperatorKind.BitwiseOr | OperatorKind.BitwiseXor | OperatorKind.LeftShift | OperatorKind.SignedRightShift | OperatorKind.UnsignedRightShift;
|
|
27
30
|
export declare function isOperatorDefinedByToken(kind: OperatorKind): kind is KindOfOperatorDefinedByToken;
|
|
28
31
|
/**
|
|
29
32
|
* Виды операторов, задаваемых ключевыми словами (`и`, `или`, `не` и др.)
|
|
@@ -38,7 +41,7 @@ export declare function isUnaryOperator(kind: OperatorKind): kind is UnaryOperat
|
|
|
38
41
|
/**
|
|
39
42
|
* Виды двухместных операторов. Объявление двухместного оператора должно содержать один параметр.
|
|
40
43
|
*/
|
|
41
|
-
export type BinaryOperatorKind = OperatorKind.Add | OperatorKind.Subtract | OperatorKind.Multiply | OperatorKind.Divide | OperatorKind.IntegerDivide | OperatorKind.Modulo | OperatorKind.LessThan | OperatorKind.GreaterThan | OperatorKind.LessThanOrEqual | OperatorKind.GreaterThanOrEqual | OperatorKind.Or | OperatorKind.And | OperatorKind.Xor | OperatorKind.BitwiseAnd | OperatorKind.BitwiseOr | OperatorKind.BitwiseXor;
|
|
44
|
+
export type BinaryOperatorKind = OperatorKind.Add | OperatorKind.Subtract | OperatorKind.Multiply | OperatorKind.Divide | OperatorKind.IntegerDivide | OperatorKind.Modulo | OperatorKind.LessThan | OperatorKind.GreaterThan | OperatorKind.LessThanOrEqual | OperatorKind.GreaterThanOrEqual | OperatorKind.Or | OperatorKind.And | OperatorKind.Xor | OperatorKind.BitwiseAnd | OperatorKind.BitwiseOr | OperatorKind.BitwiseXor | OperatorKind.LeftShift | OperatorKind.SignedRightShift | OperatorKind.UnsignedRightShift;
|
|
42
45
|
export declare function isBinaryOperator(kind: OperatorKind): kind is BinaryOperatorKind;
|
|
43
46
|
export type KindOfUnaryOperatorDefinedByToken = UnaryOperatorKind & KindOfOperatorDefinedByToken;
|
|
44
47
|
export type KindOfUnaryOperatorDefinedByKeyword = UnaryOperatorKind & KindOfOperatorDefinedByKeyword;
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { Tag } from '../analysis/Tag.js';
|
|
2
1
|
import { IEntity } from './IEntity.js';
|
|
3
|
-
import { AliasTypeEntity,
|
|
4
|
-
export type TypeEntity = StructuredTypeEntity | FunctionTypeEntity | VariantTypeEntity | AliasTypeEntity | TypeParameterEntity;
|
|
2
|
+
import { AliasTypeEntity, EntityKind, FunctionTypeEntity, ReducedTypeEntity, StructuredTypeEntity, TypeParameterEntity, VariantTypeEntity } from './index.js';
|
|
3
|
+
export type TypeEntity = StructuredTypeEntity | FunctionTypeEntity | VariantTypeEntity | AliasTypeEntity | TypeParameterEntity | ReducedTypeEntity;
|
|
5
4
|
export declare namespace TypeEntity {
|
|
6
5
|
function isAbstract(entity: TypeEntity): boolean;
|
|
6
|
+
function isAbstractOrAliasedAbstract(entity: TypeEntity): boolean;
|
|
7
|
+
function isBasic(entity: TypeEntity): boolean;
|
|
8
|
+
function isBasicOrAliasedBasic(entity: TypeEntity): boolean;
|
|
7
9
|
}
|
|
8
10
|
export interface ITypeEntity extends IEntity {
|
|
9
11
|
readonly kind: EntityKind.Type;
|
|
10
12
|
readonly typeEntityKind: TypeEntityKind;
|
|
11
|
-
getContext(): EntityContext;
|
|
12
|
-
getTags(): readonly Tag[];
|
|
13
13
|
}
|
|
14
14
|
export declare enum TypeEntityKind {
|
|
15
15
|
Function = 0,
|
|
16
16
|
Structured = 1,
|
|
17
17
|
Parameter = 2,
|
|
18
18
|
Variant = 3,
|
|
19
|
-
Alias = 4
|
|
19
|
+
Alias = 4,
|
|
20
|
+
Reduced = 5
|
|
20
21
|
}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
export * from './BaseAspectTypes.js';
|
|
2
|
-
export * from './BaseEntityHidingMatcher.js';
|
|
3
2
|
export * from './BaseObjectType.js';
|
|
4
3
|
export * from './Entity.js';
|
|
5
4
|
export * from './EntityHiding.js';
|
|
6
|
-
export * from './EntityHidingMatcherWithinTypeEntity.js';
|
|
7
5
|
export * from './EntityLocalizationContext.js';
|
|
8
6
|
export * from './EntityNaming.js';
|
|
9
7
|
export * from './interfaces/index.js';
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
import { Tag } from '../../analysis/Tag.js';
|
|
2
|
-
import { Translation } from '../../analysis/Translation.js';
|
|
3
1
|
import { Analyzer } from '../../analysis/index.js';
|
|
4
2
|
import { Name } from '../../common/index.js';
|
|
5
3
|
import * as tree from '../../tree/index.js';
|
|
6
4
|
import * as types from '../../types/index.js';
|
|
7
5
|
import { TypeEntityMembers } from '../TypeEntityMembers.js';
|
|
8
|
-
import { DefinitionKind, EntityHidingLevel, EntityKind, ITypeEntity,
|
|
6
|
+
import { DefinitionKind, EntityHidingLevel, EntityKind, ITypeEntity, SubstitutionApplicationMode, TypeEntityKind, TypeParameterEntity } from '../index.js';
|
|
9
7
|
export interface AliasTypeEntity extends ITypeEntity {
|
|
10
8
|
readonly kind: EntityKind.Type;
|
|
11
9
|
readonly typeEntityKind: TypeEntityKind.Alias;
|
|
12
10
|
getName(): Name;
|
|
13
|
-
getContainingPackage(): PackageEntity;
|
|
14
11
|
/**
|
|
15
12
|
* При каждом вызове метод должен возвращать один и тот же экземпляр класса AliasedType.
|
|
16
13
|
*/
|
|
@@ -20,9 +17,7 @@ export interface AliasTypeEntity extends ITypeEntity {
|
|
|
20
17
|
getMembers(): TypeEntityMembers;
|
|
21
18
|
getArity(): number;
|
|
22
19
|
isHidden(): EntityHidingLevel | undefined;
|
|
23
|
-
getTags(): readonly Tag[];
|
|
24
20
|
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
|
25
|
-
getTranslation(): Translation | undefined;
|
|
26
21
|
getOriginalEntity(): AliasTypeEntity;
|
|
27
22
|
ensureAllDiagnosticsReported?(): void;
|
|
28
23
|
}
|