@artel/artc 0.6.25253 → 0.6.25255
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 +12 -6
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +568 -365
- package/build/{chunk-6WZERC3X.js → chunk-R2AFVF7W.js} +2 -2
- package/build/{chunk-NEFP5U65.js → chunk-SSG7MY2R.js} +1 -1
- package/build/{chunk-3VAVX3J5.js → chunk-Y23FSWAN.js} +13016 -14906
- package/build/types/analysis/AccessedFunction.d.ts +11 -5
- package/build/types/analysis/AnalyzedTranslationPackage.d.ts +2 -1
- package/build/types/analysis/Analyzer.d.ts +116 -40
- package/build/types/analysis/ArgumentToParameterMatchResult.d.ts +1 -4
- package/build/types/analysis/ArgumentsToParametersMatcher.d.ts +9 -15
- package/build/types/analysis/AutotypeCallExpressionMeaning.d.ts +12 -6
- package/build/types/analysis/BaseExpressionMeaning.d.ts +43 -15
- package/build/types/analysis/CallExpressionMeaning.d.ts +41 -22
- package/build/types/analysis/ConstructorCallResolver.d.ts +22 -0
- package/build/types/analysis/DiagnosticCollector.d.ts +5 -9
- package/build/types/analysis/FunctionAccessResolver.d.ts +15 -0
- package/build/types/analysis/IdentifierExpressionMeaning.d.ts +56 -22
- package/build/types/analysis/IndexedAccessExpressionMeaning.d.ts +3 -2
- package/build/types/analysis/MemberAccessExpressionMeaning.d.ts +76 -27
- package/build/types/analysis/NamedTypeSpecifierResolver.d.ts +0 -1
- package/build/types/analysis/NodeTypeUtils.d.ts +1 -0
- package/build/types/analysis/ObjectExpressionMeaning.d.ts +1 -0
- package/build/types/analysis/OperatorAccessResolver.d.ts +9 -0
- package/build/types/analysis/OverloadResolver.d.ts +91 -5
- package/build/types/analysis/ReturnTypeInferrer.d.ts +13 -0
- package/build/types/analysis/SubstitutedFunction.d.ts +10 -4
- package/build/types/analysis/TagMeaning.d.ts +16 -15
- package/build/types/analysis/TypeArgumentInferrer.d.ts +49 -0
- package/build/types/analysis/TypeNarrower.d.ts +6 -4
- package/build/types/analysis/TypeOverloadResolver.d.ts +4 -2
- package/build/types/analysis/UserDefinableBinaryOperatorResolver.d.ts +2 -6
- package/build/types/analysis/UserDefinableUnaryOperatorResolver.d.ts +2 -2
- package/build/types/analysis/Utils.d.ts +2 -0
- package/build/types/analysis/index.d.ts +0 -2
- package/build/types/analysis/semantic-context/Declarations.d.ts +4 -4
- package/build/types/analysis/semantic-context/SemanticContextBuilder.d.ts +1 -0
- package/build/types/api/Api.d.ts +0 -2
- package/build/types/common/ArrayUtils.d.ts +3 -2
- package/build/types/common/Cached.d.ts +2 -0
- package/build/types/common/Query.d.ts +1 -1
- package/build/types/common/TreeQuery.d.ts +1 -2
- package/build/types/diagnostic/Diagnostic.d.ts +7 -0
- package/build/types/diagnostic/DiagnosticCode.d.ts +180 -173
- package/build/types/entities/AliasTypeEntity.d.ts +1 -0
- package/build/types/entities/AliasedType.d.ts +2 -2
- package/build/types/entities/FunctionEntity.d.ts +6 -3
- package/build/types/entities/FunctionTypeEntity.d.ts +2 -1
- package/build/types/entities/PackageAliasEntity.d.ts +2 -2
- package/build/types/entities/StructuredTypeEntity.d.ts +1 -0
- package/build/types/entities/TypeParameterEntity.d.ts +1 -0
- package/build/types/entities/VariableEntity.d.ts +23 -11
- package/build/types/entities/VariantTypeEntity.d.ts +1 -0
- package/build/types/entities/index.d.ts +2 -1
- package/build/types/parser/CharacterCodes.d.ts +0 -8
- package/build/types/parser/Parser.d.ts +2 -2
- package/build/types/parser/TriviaInterner.d.ts +8 -0
- package/build/types/services/AddPropertyAssignmentService.d.ts +0 -7
- package/build/types/services/NodeSemanticInfo.d.ts +3 -1
- package/build/types/services/TreeUtils.d.ts +1 -1
- package/build/types/services/signature-help/SignatureWithValueParameters.d.ts +9 -1
- package/build/types/services/signature-help/TypeParameterSignatureHelpProvider.d.ts +1 -1
- package/build/types/services/source-generation/EntityToSyntax.d.ts +1 -1
- package/build/types/tree/BaseNode.d.ts +26 -0
- package/build/types/tree/{green/Nodes.d.ts → Nodes.d.ts} +408 -356
- package/build/types/tree/{green/SyntaxToCode.d.ts → SyntaxToCode.d.ts} +1 -1
- package/build/types/tree/{green/Token.d.ts → Token.d.ts} +26 -10
- package/build/types/tree/{red/Utils.d.ts → Utils.d.ts} +4 -3
- package/build/types/tree/index.d.ts +10 -1
- package/build/types/ts-interop/Entities.d.ts +14 -0
- package/build/types/types/AliasType.d.ts +2 -2
- package/build/types/types/FunctionType.d.ts +2 -2
- package/build/types/types/IntersectionType.d.ts +2 -2
- package/build/types/types/ParameterType.d.ts +2 -2
- package/build/types/types/StructuredType.d.ts +2 -2
- package/build/types/types/Substitutions.d.ts +2 -2
- package/build/types/types/Type.d.ts +3 -3
- package/build/types/types/TypeMembers.d.ts +1 -0
- package/build/types/types/UnionType.d.ts +2 -2
- package/build/types/types/UnresolvedType.d.ts +2 -2
- package/build/types/types/VariantType.d.ts +2 -2
- package/package.json +1 -1
- package/build/types/analysis/ConstructorOverloadResolver.d.ts +0 -31
- package/build/types/analysis/FunctionOverloadResolver.d.ts +0 -21
- package/build/types/analysis/TargetTypeHint.d.ts +0 -5
- package/build/types/tree/green/BaseNode.d.ts +0 -14
- package/build/types/tree/green/Utils.d.ts +0 -2
- package/build/types/tree/green/index.d.ts +0 -8
- package/build/types/tree/red/BaseNode.d.ts +0 -16
- package/build/types/tree/red/Internal.d.ts +0 -2
- package/build/types/tree/red/Nodes.d.ts +0 -2271
- package/build/types/tree/red/Token.d.ts +0 -30
- package/build/types/tree/red/index.d.ts +0 -10
- /package/build/types/tree/{red/NodePath.d.ts → NodePath.d.ts} +0 -0
- /package/build/types/tree/{green/SyntaxFactory.d.ts → SyntaxFactory.d.ts} +0 -0
|
@@ -13,30 +13,28 @@ export declare enum DiagnosticCode {
|
|
|
13
13
|
StatementExpected = 107,
|
|
14
14
|
ExpressionExpected = 108,
|
|
15
15
|
ExpressionCannotBeUsedAsStatement = 109,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
Expected0But1Found = 110,
|
|
17
|
+
Delimiter0Expected = 111,
|
|
18
|
+
BaseTypeNameExpected = 112,
|
|
19
|
+
TypeSpecifierExpected = 113,
|
|
20
|
+
TypeBodyExpected = 114,
|
|
21
|
+
ParameterExpected = 115,
|
|
22
22
|
TypeParameterExpected = 116,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
TranslationExpected = 132,
|
|
39
|
-
TranslatedTextTemplateOrTranslationFunctionBlockExpected = 133,
|
|
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,
|
|
40
38
|
TypeCannotBeUsedAsValue = 201,
|
|
41
39
|
PackageNameCannotBeUsedAsValue = 202,
|
|
42
40
|
PackageAliasCannotBeUsedAsValue = 203,
|
|
@@ -49,156 +47,165 @@ export declare enum DiagnosticCode {
|
|
|
49
47
|
IndexerNotFound = 210,
|
|
50
48
|
CannotAccessStaticMembersOnTypeParameter = 211,
|
|
51
49
|
CannotCreateInstanceOfAspect = 212,
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
50
|
+
CannotCreateInstanceOfAbstractType = 213,
|
|
51
|
+
CannotCreateInstanceOfTypeParameter = 214,
|
|
52
|
+
CannotCreateInstanceOfUnresolvedType = 215,
|
|
53
|
+
ExpressionIsNotCallable = 216,
|
|
54
|
+
ParameterForPositionalArgumentNotFound = 217,
|
|
55
|
+
ParameterWithGivenNameNotFound = 218,
|
|
56
|
+
PositionalArgumentsCannotFollowNamedArguments = 219,
|
|
57
|
+
ArgumentForParameterAlreadyAssigned = 220,
|
|
58
|
+
RequiredParameter0IsNotProvidedWithAnArgument = 221,
|
|
59
|
+
ExtraArgumentExpected0Arguments = 222,
|
|
60
|
+
ExtraArgumentExpectedFrom0ATo1Arguments = 223,
|
|
61
|
+
UnknownVariable = 224,
|
|
62
|
+
UnknownType = 225,
|
|
63
|
+
TypeWithArity0NotFound = 226,
|
|
64
|
+
VariableUsedBeforeBeingDeclared = 227,
|
|
65
|
+
Type0IsNotAssignableToType1 = 228,
|
|
66
|
+
Type0OfTheImplicitlyReturnedExpressionIsNotAssignableToType1 = 229,
|
|
67
|
+
VariableNotFound = 230,
|
|
68
|
+
FunctionNotFound = 231,
|
|
69
|
+
UnknownPackage = 232,
|
|
70
|
+
CannotAssignValueToExpression = 233,
|
|
71
|
+
CannotDetermineTargetTypeToCallTheConstructor = 234,
|
|
72
|
+
AmbiguousAccess = 235,
|
|
73
|
+
AmbiguousAccess0 = 236,
|
|
74
|
+
CannotAssignValueToContextVariable = 237,
|
|
75
|
+
ExpectedPackageNameOrAliasButFoundType = 238,
|
|
76
|
+
TypeExpected = 239,
|
|
77
|
+
NameOfTypeOrPackageNotFound = 240,
|
|
78
|
+
TypeIsNotATag = 241,
|
|
79
|
+
Operator0IsNotDefinedForTypes1And2 = 242,
|
|
80
|
+
Operator0IsNotDefinedForType1 = 243,
|
|
81
|
+
VariantMustHaveAssociatedValue = 244,
|
|
82
|
+
TranslationsCanOnlyBeDeclaredInTranslationPackage = 245,
|
|
83
|
+
UnknownTranslatedPackage0 = 246,
|
|
84
|
+
BaseCannotBeUsedInThisContext = 247,
|
|
85
|
+
OverriddenMethodNotFound = 248,
|
|
86
|
+
ObjectCannotBeUsedInThisContext = 249,
|
|
87
|
+
BaseCannotBeUsedAsAnExpressionInItself = 250,
|
|
88
|
+
InterfacePackageMustNotContainImplementation = 251,
|
|
89
|
+
InterfacePackageVariablesMustNotHaveInitializers = 252,
|
|
90
|
+
BodyIsMissing = 253,
|
|
91
|
+
AbstractTypeMembersMustNotHaveBody = 254,
|
|
92
|
+
MembersOfAspectTypeMustNotHaveBody = 255,
|
|
93
|
+
AspectTypeFieldsMustBeAbstract = 256,
|
|
94
|
+
DeclarationsMarkedWithBuiltIntoPlatformTagMustNotHaveBody = 257,
|
|
95
|
+
AbstractFieldsMustNotHaveInitializers = 258,
|
|
96
|
+
PackageIsAlreadyImported = 259,
|
|
97
|
+
OnlySubprogramsWithReturnTypeCanReturnValue = 260,
|
|
98
|
+
FunctionsUsingYieldStatementCannotReturnValue = 261,
|
|
99
|
+
YieldStatementCannotBeUsedInAnonymousFunctions = 262,
|
|
100
|
+
YieldStatementCannotBeUsedHere = 263,
|
|
101
|
+
FunctionsUsingYieldStatementMustHaveEnumerableAsReturnType = 264,
|
|
102
|
+
YieldStatementCannotBeUsedInTryStatementThatHasCatchClause = 265,
|
|
103
|
+
YieldStatementCannotBeUsedInFinallyClause = 266,
|
|
104
|
+
SubprogramMustReturnValue = 267,
|
|
105
|
+
ResultVariableCannotBeUsedInFunctionsUsingYieldStatement = 268,
|
|
106
|
+
TypeAliasReferencesItself = 269,
|
|
107
|
+
TypeParameterHasCircularConstraint = 270,
|
|
108
|
+
BaseTypeCausesInheritanceCycle = 271,
|
|
109
|
+
OnlyGenericTypesAndFunctionsCanBeSpecialized = 272,
|
|
110
|
+
Expected0TypeArguments = 273,
|
|
111
|
+
ExpectedFrom0To1TypeArguments = 274,
|
|
112
|
+
Type0IsNotAssignableToConstraint1 = 275,
|
|
113
|
+
VariableIsDeclaredButItsValueIsNeverRead = 276,
|
|
114
|
+
FunctionIsDeclaredButNotUsed = 277,
|
|
115
|
+
TypeParameterIsDeclaredButNotUsed = 278,
|
|
116
|
+
DefaultConstructorArgumentsMustBeNamed = 279,
|
|
117
|
+
IncorrectBodyOfBasicAliasTypeMethod = 280,
|
|
118
|
+
TheFollowingDeclarationsAreNotTranslated0 = 281,
|
|
119
|
+
TheFollowingDeclarationAreNotTranslated0And1More = 282,
|
|
120
|
+
OperatorFunction0MustNotHaveParameters = 283,
|
|
121
|
+
OperatorFunction0MustHaveOneParameter = 284,
|
|
122
|
+
OperatorFunction0MustHaveNoMoreThanOneParameter = 285,
|
|
123
|
+
CorrespondingBasicTypeMemberNotFound = 286,
|
|
124
|
+
AsyncFunctionCanOnlyBeCalledFromFunctionMarkedWithAsyncModifier = 287,
|
|
125
|
+
TagNotFound = 288,
|
|
126
|
+
TypeOrFunctionNameExpected = 289,
|
|
127
|
+
PackageNameOrAliasExpected = 290,
|
|
128
|
+
ExpressionCanBeNull = 291,
|
|
129
|
+
TargetVariableExpressionInTheAssignmentStatementCannotContainQuestionOperator = 292,
|
|
130
|
+
UnreachableCode = 293,
|
|
131
|
+
RecursionOccurredWhileCalculatingTheTypeOfTheExpression = 294,
|
|
132
|
+
RecursionOccurredWhileInferringTheTypeOfTheVariable = 295,
|
|
133
|
+
ScopeAlreadyContainsDeclarationWithTheSameName = 296,
|
|
134
|
+
ScopeAlreadyContainsFunctionWithTheSameNameAndParameterTypes = 297,
|
|
135
|
+
ParameterName0ConflictsWithAutomaticallyGeneratedVariableName = 298,
|
|
136
|
+
PackageAlreadyContainsDeclarationWithTheSameName = 299,
|
|
137
|
+
PackageAlreadyContainsFunctionWithTheSameNameAndParameterTypes = 300,
|
|
138
|
+
PackageAlreadyContainsTypeWithTheSameNameAndSameOrIntersectingTypeParameterCount = 301,
|
|
139
|
+
PackageAliasWithTheSameNameAlreadyExits = 302,
|
|
140
|
+
TypeAlreadyContainsDeclarationWithTheSameName = 303,
|
|
141
|
+
TypeAlreadyContainsMethodWithTheSameNameAndParameterTypes = 304,
|
|
142
|
+
TypeAlreadyContainsConstructorWithTheSameParameterTypes = 305,
|
|
143
|
+
TypeAlreadyContainsOperatorFunctionWithTheSameParameterTypes = 306,
|
|
144
|
+
TypeAlreadyContainsIndexerWithTheSameParameterTypes = 307,
|
|
145
|
+
TypeCanHaveOnlyOneDestructor = 308,
|
|
146
|
+
TypeCanHaveOnlyOneDereferenceOperator = 309,
|
|
147
|
+
VariableIsUsedBeforeItsDeclaration = 310,
|
|
148
|
+
VariableMayNotHasBeenAssignedBeforeUsage = 311,
|
|
149
|
+
NotAllCodePathsReturnAValueAndResultLocalVariableMayNotHasBeenAssigned = 312,
|
|
150
|
+
WriteFunctionHasNoCorrespondingReadFunction = 313,
|
|
151
|
+
TypeCannotHaveMultipleBaseObjectTypes = 314,
|
|
152
|
+
TypeThatIsNotMarkedAsBasicCannotBeUsedAsBaseType = 315,
|
|
153
|
+
PlainObjectTypeCannotBeUsedAsBaseType = 316,
|
|
154
|
+
ThisTypeIsAlreadyListedInBaseTypeList = 317,
|
|
155
|
+
OnlyObjectAndAspectTypesCanBeUsedAsBaseTypes = 318,
|
|
156
|
+
PlainObjectTypeCanHaveOnlyAspectsAsBaseTypes = 319,
|
|
157
|
+
AspectTypeCanHaveOnlyAspectsAsBaseTypes = 320,
|
|
158
|
+
ModifierListAlreadyContains0Modifier = 321,
|
|
159
|
+
ModifierListOfOuterDeclarationGroupAlreadyContains0Modifier = 322,
|
|
160
|
+
_0ModifierIsNotAllowedHere = 323,
|
|
161
|
+
DeclarationCannotBePlacedInGroupHaving0Modifier = 324,
|
|
162
|
+
PackageConstructorDeclarationCannotHaveModifiers = 325,
|
|
163
|
+
PackageEntryPointDeclarationCannotHaveModifiers = 326,
|
|
164
|
+
TranslationsCannotHaveModifiers = 327,
|
|
165
|
+
AbstractModifierCanOnlyBeUsedInAbstractObjectTypes = 328,
|
|
166
|
+
BasicModifierCanOnlyBeUsedInObjectTypesAspectTypesAndTypeAliases = 329,
|
|
167
|
+
OverrideModifierCanOnlyBeUsedInObjectAndAspectTypes = 330,
|
|
168
|
+
_0ModifierCannotBeUsedWith1Modifier = 331,
|
|
169
|
+
VariantDeclarationCannotHaveHiddenModifier = 332,
|
|
170
|
+
BasicModifierCanOnlyBeAppliedToObjectTypes = 333,
|
|
171
|
+
AbstractModifierCanOnlyBeAppliedToObjectTypes = 334,
|
|
172
|
+
NotBasicObjectTypesCannotHaveBasicMembers = 335,
|
|
173
|
+
BasicModifierCannotBeAppliedToAspectTypeFields = 336,
|
|
174
|
+
WriteFunctionMustHaveTheSameModifiersAsReadFunction = 337,
|
|
175
|
+
WriteFunctionMustHaveTheSameOrMoreRestrictiveHidingLevelThenReadFunction = 338,
|
|
176
|
+
DeclarationConflictsWithBaseTypeMember0 = 339,
|
|
177
|
+
DeclarationConflictsWithBaseTypeMember0AddOverrideModifier = 340,
|
|
178
|
+
DeclarationConflictsWithBaseTypeMember0ThisMemberCannotBeOverridden = 341,
|
|
179
|
+
DeclarationConflictsWithBaseTypeMember0ToOverrideTypeMustBeAssignableTo1 = 342,
|
|
180
|
+
DeclarationConflictsWithBaseTypeMember0ToOverrideReturnTypeMustBeAssignableTo1 = 343,
|
|
181
|
+
OverridingMemberMustHaveTheSameHidingLevelAsBaseMember0 = 344,
|
|
182
|
+
OverridingMethodMustBeAsyncBecauseBaseMethod0IsAsync = 345,
|
|
183
|
+
OverridingMethodMustNotBeAsyncBecauseBaseMethod0IsNotAsync = 346,
|
|
184
|
+
OverridingFieldMustNotBeConstOrHaveWriteFunctionToMatchBaseField0 = 347,
|
|
185
|
+
OverridingMemberMustHaveWriteFunctionToMatchBaseMember0 = 348,
|
|
186
|
+
TypeDoesNotImplementMember0 = 349,
|
|
187
|
+
TypeDoesNotImplementMember0ImplicitImplementationTypeMismatch1 = 350,
|
|
188
|
+
TypeDoesNotImplementMember0ImplicitImplementation1IsAsync = 351,
|
|
189
|
+
TypeDoesNotImplementMember0ImplicitImplementation1IsNotAsync = 352,
|
|
190
|
+
TypeDoesNotImplementMember0ImplicitImplementation1IsNotWriteable = 353,
|
|
191
|
+
TypeDoesNotImplementMember0ImplicitImplementation1WriteFunctionIsHidden = 354,
|
|
192
|
+
CannotAccessAbstractMemberOfBaseType = 355,
|
|
193
|
+
TheFollowingBaseTypeMembersConflictAndMustBeOverridden0 = 356,
|
|
194
|
+
TheFollowingBaseTypeMembersConflictBecauseTheyHaveTheSameOriginalName0AndMustBeOverridden1 = 357,
|
|
195
|
+
TheFirstStatementOfConstructorBlockMustBeEitherBaseOrOwnConstructorCall = 358,
|
|
196
|
+
ThisCallCausesOwnConstructorCallCycle = 359,
|
|
197
|
+
OwnConstructorCallMustBeTheFirstStatementOfConstructorBlock = 360,
|
|
198
|
+
BaseConstructorCallMustBeTheFirstStatementOfConstructorBlock = 361,
|
|
199
|
+
Field0HasNoInitializerAndMayNotBeAssignedInConstructor = 362,
|
|
200
|
+
Field0HasNoInitializerAndMayNotBeAssignedInPackageConstructor = 363,
|
|
201
|
+
Variable0HasNoInitializerAndMayNotBeAssignedInPackageConstructor = 364,
|
|
202
|
+
ExpressionOfType0CanNotBeUsedInForLoopBecauseNotEnumerableAndNoMethod1 = 365,
|
|
203
|
+
ForExpressionToBeUsedInForLoopMethod0MustReturnEnumeratorType = 366,
|
|
204
|
+
CannotInferTypeArguments = 367,
|
|
205
|
+
CanNotInferReturnTypeAddExplicitReturnTypeSpecifier = 368,
|
|
206
|
+
ConstantVariablesBustBeInitialized = 369,
|
|
207
|
+
VariableTypeIsNotSpecified = 370,
|
|
208
|
+
CannotInferTypeOfFunctionLiteralAddTypeSpecifierForParameter = 371,
|
|
202
209
|
CannotFindTsLibDirectoryBaseSearchPaths0 = 401,
|
|
203
210
|
SourceFile0IsNotPartOfThePackageAndWontBeLoaded = 402,
|
|
204
211
|
ProgramWithoutMainPackageCannotBeCompiled = 403,
|
|
@@ -35,6 +35,7 @@ export declare class PackageAliasTypeDeclarationEntity implements AliasTypeEntit
|
|
|
35
35
|
private readonly _node;
|
|
36
36
|
readonly kind = EntityKind.Type;
|
|
37
37
|
readonly typeEntityKind = TypeEntityKind.Alias;
|
|
38
|
+
private readonly _name;
|
|
38
39
|
private readonly _aliasedType;
|
|
39
40
|
private readonly _typeParameters;
|
|
40
41
|
private readonly _members;
|
|
@@ -21,11 +21,11 @@ export declare abstract class AliasedType {
|
|
|
21
21
|
* Правая часть тождественного типа, указанная пользователем, либо тип `unresolved`,
|
|
22
22
|
* если указанный тип приводит к циклу.
|
|
23
23
|
*/
|
|
24
|
-
abstract cycleFree: types.Type;
|
|
24
|
+
abstract readonly cycleFree: types.Type;
|
|
25
25
|
/**
|
|
26
26
|
* Приводит ли указанная пользователем правая часть тождественного типа к циклу?
|
|
27
27
|
*/
|
|
28
|
-
abstract causesCycle: boolean;
|
|
28
|
+
abstract readonly causesCycle: boolean;
|
|
29
29
|
/**
|
|
30
30
|
* @param circularityTrackingStack Если элементом массива является `false`, тип не создаёт цикл, если `true` - создаёт.
|
|
31
31
|
*/
|
|
@@ -5,7 +5,7 @@ import { Name } from '../common/index.js';
|
|
|
5
5
|
import { MethodDeclaration, NestedFunctionDeclaration, PackageFunctionDeclaration } from '../tree/index.js';
|
|
6
6
|
import * as types from '../types/index.js';
|
|
7
7
|
import type { PackageEntity } from './index.js';
|
|
8
|
-
import { DefinitionKind,
|
|
8
|
+
import { DefinitionKind, EntityHidingLevel, EntityKind, ParameterVariableEntity, SubstitutionApplicationMode, TypeMemberEntityContainer, TypeParameterEntity } from './index.js';
|
|
9
9
|
export type FunctionEntity = PackageFunctionEntity | MethodEntity | NestedFunctionEntity;
|
|
10
10
|
export interface PackageFunctionEntity extends IFunctionEntity {
|
|
11
11
|
readonly subkind: 'package';
|
|
@@ -28,7 +28,7 @@ export interface MethodEntity extends IFunctionEntity {
|
|
|
28
28
|
}
|
|
29
29
|
export interface NestedFunctionEntity extends IFunctionEntity {
|
|
30
30
|
readonly subkind: 'nested';
|
|
31
|
-
|
|
31
|
+
getContainingPackage(): PackageEntity;
|
|
32
32
|
getLocalization(): Localization;
|
|
33
33
|
getOriginalEntity(): NestedFunctionEntity;
|
|
34
34
|
}
|
|
@@ -58,6 +58,7 @@ export declare class PackageFunctionDeclarationEntity implements PackageFunction
|
|
|
58
58
|
private readonly _node;
|
|
59
59
|
readonly kind = EntityKind.Function;
|
|
60
60
|
readonly subkind = "package";
|
|
61
|
+
private readonly _name;
|
|
61
62
|
private readonly _typeParameters;
|
|
62
63
|
private readonly _valueParameters;
|
|
63
64
|
private readonly _returnType;
|
|
@@ -83,6 +84,7 @@ export declare class MethodDeclarationEntity implements MethodEntity {
|
|
|
83
84
|
private readonly _node;
|
|
84
85
|
readonly kind = EntityKind.Function;
|
|
85
86
|
readonly subkind = "method";
|
|
87
|
+
private readonly _name;
|
|
86
88
|
private readonly _typeParameters;
|
|
87
89
|
private readonly _valueParameters;
|
|
88
90
|
private readonly _returnType;
|
|
@@ -115,12 +117,13 @@ export declare class NestedFunctionDeclarationEntity implements NestedFunctionEn
|
|
|
115
117
|
private readonly _node;
|
|
116
118
|
readonly kind = EntityKind.Function;
|
|
117
119
|
readonly subkind = "nested";
|
|
120
|
+
private readonly _name;
|
|
118
121
|
private readonly _typeParameters;
|
|
119
122
|
private readonly _valueParameters;
|
|
120
123
|
private readonly _returnType;
|
|
121
124
|
constructor(_analyzer: Analyzer, _node: NestedFunctionDeclaration);
|
|
122
125
|
getName(): Name;
|
|
123
|
-
|
|
126
|
+
getContainingPackage(): PackageEntity;
|
|
124
127
|
getTypeParameters(): readonly TypeParameterEntity[];
|
|
125
128
|
getValueParameters(): readonly ParameterVariableEntity[];
|
|
126
129
|
getReturnType(): types.Type;
|
|
@@ -55,6 +55,7 @@ export declare class PackageFunctionTypeDeclarationEntity implements PackageFunc
|
|
|
55
55
|
readonly kind = EntityKind.Type;
|
|
56
56
|
readonly typeEntityKind = TypeEntityKind.Function;
|
|
57
57
|
readonly subkind = "package";
|
|
58
|
+
private readonly _name;
|
|
58
59
|
private readonly _typeParameters;
|
|
59
60
|
private readonly _valueParameters;
|
|
60
61
|
private readonly _returnType;
|
|
@@ -112,7 +113,7 @@ export declare class AnonymousFunctionTypeDeclarationEntity implements Anonymous
|
|
|
112
113
|
export declare class UnfinishedIntrinsicAnonymousFunctionTypeEntity {
|
|
113
114
|
private readonly _unfinishedValue;
|
|
114
115
|
get unfinishedValue(): AnonymousFunctionTypeEntity;
|
|
115
|
-
constructor(analyzer: Analyzer, returnType: types.Type, isAsync: boolean,
|
|
116
|
+
constructor(analyzer: Analyzer, returnType: types.Type, isAsync: boolean, containingPackage: PackageEntity, isHidden: EntityHidingLevel | undefined, context: EntityContext | undefined);
|
|
116
117
|
finish(typeParameters: readonly TypeParameterEntity[], valueParameters: readonly ParameterVariableEntity[]): AnonymousFunctionTypeEntity;
|
|
117
118
|
}
|
|
118
119
|
export declare class UnfinishedIntrinsicPackageFunctionTypeEntity {
|
|
@@ -21,9 +21,9 @@ type PackageAliasEntityDefinition = {
|
|
|
21
21
|
export declare class AliasedPackageImportEntity implements PackageAliasEntity {
|
|
22
22
|
private readonly _analyzer;
|
|
23
23
|
private readonly _node;
|
|
24
|
-
private readonly _alias;
|
|
25
24
|
readonly kind = EntityKind.PackageAlias;
|
|
26
|
-
|
|
25
|
+
private readonly _name;
|
|
26
|
+
constructor(_analyzer: Analyzer, _node: PackageImport, alias: Identifier);
|
|
27
27
|
getName(): Name;
|
|
28
28
|
getDefinition(): PackageAliasEntityDefinition;
|
|
29
29
|
getPackage(): PackageEntity | undefined;
|
|
@@ -193,6 +193,7 @@ export declare class SourcePackageStructuredTypeDeclarationData {
|
|
|
193
193
|
private readonly _analyzer;
|
|
194
194
|
private readonly _node;
|
|
195
195
|
private readonly _entity;
|
|
196
|
+
private readonly _name;
|
|
196
197
|
private readonly _typeParameters;
|
|
197
198
|
private readonly _baseTypes;
|
|
198
199
|
private readonly _members;
|
|
@@ -78,6 +78,7 @@ export declare class SourceTypeParameterEntity implements TypeParameterEntity {
|
|
|
78
78
|
private readonly _node;
|
|
79
79
|
readonly kind = EntityKind.Type;
|
|
80
80
|
readonly typeEntityKind = TypeEntityKind.Parameter;
|
|
81
|
+
private readonly _name;
|
|
81
82
|
private readonly _definition;
|
|
82
83
|
private readonly _constraint;
|
|
83
84
|
private readonly _default;
|