@artel/artc 0.6.25258 → 0.6.25260
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 +1266 -1217
- package/build/{chunk-642CVYPB.js → chunk-7FERF2MU.js} +11 -11
- package/build/{chunk-QAOTQQD7.js → chunk-RIIOVQBM.js} +14371 -13456
- package/build/{chunk-B5Z42ZT6.js → chunk-ZNXSVPQT.js} +1 -1
- package/build/types/analysis/AccessedFunction.d.ts +11 -11
- package/build/types/analysis/AnalyzedTranslationPackage.d.ts +28 -28
- package/build/types/analysis/Analyzer.d.ts +184 -168
- package/build/types/analysis/ArgumentToParameterMatchResult.d.ts +9 -9
- package/build/types/analysis/ArgumentsToParametersMatcher.d.ts +8 -8
- package/build/types/analysis/AssignmentChecker.d.ts +4 -4
- package/build/types/analysis/AutotypeCallExpressionMeaning.d.ts +8 -6
- package/build/types/analysis/BaseExpressionMeaning.d.ts +5 -5
- package/build/types/analysis/BaseMemberConflictsValidator.d.ts +7 -7
- package/build/types/analysis/CallExpressionMeaning.d.ts +4 -6
- package/build/types/analysis/ConstructorCallResolver.d.ts +1 -1
- package/build/types/analysis/DeclarationsUsageCounter.d.ts +5 -5
- package/build/types/analysis/DereferenceExpressionMeaning.d.ts +4 -4
- package/build/types/analysis/DiagnosticArgumentFactory.d.ts +2 -2
- package/build/types/analysis/DiagnosticCollector.d.ts +11 -9
- package/build/types/analysis/DisplayableEntity.d.ts +30 -30
- package/build/types/analysis/IdentifierExpressionMeaning.d.ts +7 -7
- package/build/types/analysis/ImportedPackageNameTree.d.ts +1 -1
- package/build/types/analysis/IndexedAccessExpressionMeaning.d.ts +4 -4
- package/build/types/analysis/InstanceFieldsInitializationValidator.d.ts +6 -6
- package/build/types/analysis/MemberAccessExpressionMeaning.d.ts +7 -7
- package/build/types/analysis/ModifierValidator.d.ts +3 -3
- package/build/types/analysis/NamedTypeResolver.d.ts +3 -3
- package/build/types/analysis/NamedTypeSpecifierResolver.d.ts +3 -3
- package/build/types/analysis/NodeTypeUtils.d.ts +1 -1
- package/build/types/analysis/ObjectExpressionMeaning.d.ts +2 -2
- package/build/types/analysis/OverloadResolver.d.ts +13 -13
- package/build/types/analysis/OwnAndBaseConstructorCallsChecker.d.ts +5 -5
- package/build/types/analysis/PackageAndStaticVariablesInitializationValidator.d.ts +5 -5
- package/build/types/analysis/PackageMemberLookup.d.ts +2 -2
- package/build/types/analysis/PackageMemberNameConflictsValidator.d.ts +7 -7
- package/build/types/analysis/ReturnTypeInferrer.d.ts +4 -4
- package/build/types/analysis/SourceFileMembers.d.ts +6 -6
- package/build/types/analysis/SourcePackageDependencyGraph.d.ts +3 -3
- package/build/types/analysis/SubstitutedFunction.d.ts +8 -8
- package/build/types/analysis/TagMeaning.d.ts +4 -4
- package/build/types/analysis/Tags.d.ts +8 -7
- package/build/types/analysis/{Localization.d.ts → Translation.d.ts} +1 -23
- package/build/types/analysis/TypeArgumentInferrer.d.ts +9 -9
- package/build/types/analysis/TypeInferrer.d.ts +4 -4
- package/build/types/analysis/TypeMemberConflictsValidator.d.ts +4 -4
- package/build/types/analysis/TypeMemberImplementationChecker.d.ts +3 -3
- package/build/types/analysis/TypeMemberLookup.d.ts +7 -7
- package/build/types/analysis/TypeNarrower.d.ts +7 -7
- package/build/types/analysis/UserDefinableBinaryOperatorResolver.d.ts +6 -6
- package/build/types/analysis/UserDefinableUnaryOperatorResolver.d.ts +3 -3
- package/build/types/analysis/Utils.d.ts +1 -2
- package/build/types/analysis/WellKnownDeclarations.d.ts +32 -32
- package/build/types/analysis/control-flow/GraphBuilder.d.ts +11 -11
- package/build/types/analysis/control-flow/NarrowableReference.d.ts +10 -10
- package/build/types/analysis/semantic-context/Declarations.d.ts +0 -24
- package/build/types/analysis/semantic-context/FieldWithInitializerSemanticContext.d.ts +2 -2
- package/build/types/analysis/semantic-context/SemanticContextBase.d.ts +23 -22
- package/build/types/analysis/semantic-context/SemanticContextBasedEntityHidingMatcher.d.ts +4 -4
- package/build/types/analysis/semantic-context/SemanticContextBuilder.d.ts +25 -25
- package/build/types/analysis/semantic-context/SemanticContextValidatingNameConflicts.d.ts +9 -9
- package/build/types/analysis/semantic-context/SourceFileSemanticContext.d.ts +8 -8
- package/build/types/analysis/semantic-context/SubprogramSemanticContext.d.ts +27 -27
- package/build/types/analysis/semantic-context/TypeSemanticContext.d.ts +9 -9
- package/build/types/api/Api.d.ts +2 -2
- package/build/types/common/Cached.d.ts +3 -3
- package/build/types/common/CancellationToken.d.ts +2 -2
- package/build/types/common/Delayed.d.ts +2 -2
- package/build/types/common/Displayable.d.ts +3 -3
- package/build/types/common/HelperPhrases.d.ts +2 -1
- package/build/types/common/Interner.d.ts +1 -1
- package/build/types/common/Lazy.d.ts +3 -3
- package/build/types/common/Option.d.ts +2 -2
- package/build/types/common/PerformanceMeasurement.d.ts +2 -2
- package/build/types/common/Query.d.ts +15 -0
- package/build/types/common/ThrottledCancellationToken.d.ts +6 -6
- package/build/types/common/TreeQuery.d.ts +2 -5
- package/build/types/diagnostic/DiagnosticCode.d.ts +142 -139
- package/build/types/diagnostic/DiagnosticData.d.ts +3 -3
- package/build/types/diagnostic/RangeDiagnostic.d.ts +3 -3
- package/build/types/emitter/DebugStack.d.ts +2 -2
- package/build/types/emitter/Emitter.d.ts +5 -5
- package/build/types/emitter/EmitterContext.d.ts +21 -21
- package/build/types/emitter/EntityMap.d.ts +8 -8
- package/build/types/emitter/GeneralLowering.d.ts +2 -2
- package/build/types/emitter/IrBuilder.d.ts +10 -10
- package/build/types/emitter/IrToJs.d.ts +5 -5
- package/build/types/emitter/Transformer.d.ts +5 -5
- package/build/types/emitter/ir/EmitOptions.d.ts +27 -13
- package/build/types/emitter/ir/Nodes.d.ts +28 -27
- package/build/types/emitter/ir/types.d.ts +2 -2
- package/build/types/entities/AliasTypeEntity.d.ts +15 -12
- package/build/types/entities/AliasedType.d.ts +2 -2
- package/build/types/entities/BaseAspectTypes.d.ts +31 -0
- package/build/types/entities/BaseEntityHidingMatcher.d.ts +1 -1
- package/build/types/entities/BaseObjectType.d.ts +31 -0
- package/build/types/entities/ConstructorEntity.d.ts +51 -38
- package/build/types/entities/DereferenceOperatorEntity.d.ts +19 -13
- package/build/types/entities/DestructorEntity.d.ts +21 -14
- package/build/types/entities/EntityHidingMatcherWithinTypeEntity.d.ts +2 -2
- package/build/types/entities/EntityLocalizationContext.d.ts +10 -10
- package/build/types/entities/FunctionEntity.d.ts +86 -70
- package/build/types/entities/FunctionTypeEntity.d.ts +37 -31
- package/build/types/entities/GetterEntity.d.ts +51 -30
- package/build/types/entities/IEntity.d.ts +12 -0
- package/build/types/entities/IndexerEntity.d.ts +24 -24
- package/build/types/entities/LocalizableTextEntity.d.ts +26 -21
- package/build/types/entities/OperatorEntity.d.ts +23 -16
- package/build/types/entities/PackageAliasEntity.d.ts +15 -9
- package/build/types/entities/PackageEntity.d.ts +15 -10
- package/build/types/entities/PackageMembers.d.ts +5 -5
- package/build/types/entities/SetterEntity.d.ts +50 -29
- package/build/types/entities/StructuredTypeEntity.d.ts +76 -115
- package/build/types/entities/TypeEntity.d.ts +2 -1
- package/build/types/entities/TypeEntityMembers.d.ts +11 -11
- package/build/types/entities/TypeExtensionEntity.d.ts +13 -8
- package/build/types/entities/TypeParameterEntity.d.ts +28 -21
- package/build/types/entities/VariableEntity.d.ts +236 -179
- package/build/types/entities/VariantTypeEntity.d.ts +28 -22
- package/build/types/entities/index.d.ts +5 -1
- package/build/types/entities/translated/TranslatedAliasTypeEntity.d.ts +18 -16
- package/build/types/entities/translated/TranslatedConstructorEntity.d.ts +15 -11
- package/build/types/entities/translated/TranslatedDereferenceOperatorEntity.d.ts +16 -12
- package/build/types/entities/translated/TranslatedDestructorEntity.d.ts +15 -11
- package/build/types/entities/translated/TranslatedFunctionEntity.d.ts +32 -27
- package/build/types/entities/translated/TranslatedFunctionTypeEntity.d.ts +33 -29
- package/build/types/entities/translated/TranslatedGetterEntity.d.ts +12 -8
- package/build/types/entities/translated/TranslatedIndexerEntity.d.ts +19 -15
- package/build/types/entities/translated/TranslatedOperatorEntity.d.ts +18 -14
- package/build/types/entities/translated/TranslatedPackageEntity.d.ts +10 -7
- package/build/types/entities/translated/TranslatedSetterEntity.d.ts +11 -7
- package/build/types/entities/translated/TranslatedStructuredTypeEntity.d.ts +41 -39
- package/build/types/entities/translated/TranslatedTypeExtensionEntity.d.ts +12 -9
- package/build/types/entities/translated/TranslatedTypeParameterEntity.d.ts +19 -16
- package/build/types/entities/translated/TranslatedVariableEntity.d.ts +44 -36
- package/build/types/entities/translated/TranslatedVariantTypeEntity.d.ts +28 -24
- package/build/types/executor/NodeCompiler.d.ts +3 -3
- package/build/types/executor/PhysicalTypeScriptLibrariesProvider.d.ts +2 -2
- package/build/types/parser/Parser.d.ts +1 -1
- package/build/types/parser/TriviaInterner.d.ts +3 -3
- package/build/types/project/Compilation.d.ts +3 -3
- package/build/types/project/CompilationLoader.d.ts +5 -5
- package/build/types/project/FileSystemTree.d.ts +6 -6
- package/build/types/project/SourceFile.d.ts +2 -2
- package/build/types/project/SourcePackage.d.ts +1 -1
- package/build/types/project/TextFile.d.ts +1 -1
- package/build/types/project/configuration/ConfigurationConverter.d.ts +1 -1
- package/build/types/project/configuration/ConfigurationFileParser.d.ts +1 -1
- package/build/types/services/AssignFieldService.d.ts +10 -0
- package/build/types/services/CodeActionsService.d.ts +1 -1
- package/build/types/services/CompletionService.d.ts +8 -8
- package/build/types/services/CustomCommand.d.ts +13 -7
- package/build/types/services/DefinitionService.d.ts +1 -1
- package/build/types/services/DisplayService.d.ts +76 -80
- package/build/types/services/DocumentHighlightsService.d.ts +1 -1
- package/build/types/services/HoverService.d.ts +3 -3
- package/build/types/services/LanguageServer.d.ts +32 -32
- package/build/types/services/NodeSemanticInfo.d.ts +9 -9
- package/build/types/services/ProjectItemsService.d.ts +1 -1
- package/build/types/services/RenameService.d.ts +1 -1
- package/build/types/services/SemanticTokensService.d.ts +1 -1
- package/build/types/services/SourceFileItemsService.d.ts +1 -1
- package/build/types/services/TranslationService.d.ts +1 -1
- package/build/types/services/signature-help/{ValueParametersSignatureHelpProvider.d.ts → ParametersSignatureHelpProvider.d.ts} +6 -6
- package/build/types/services/signature-help/{SignatureWithValueParameters.d.ts → SignatureWithParameters.d.ts} +34 -34
- package/build/types/services/signature-help/TypeParameterSignatureHelpProvider.d.ts +4 -4
- package/build/types/services/source-generation/EntityToSyntax.d.ts +4 -4
- package/build/types/services/source-generation/SourceGenerationService.d.ts +5 -5
- package/build/types/services/workspace/CompilationController.d.ts +22 -22
- package/build/types/services/workspace/FileSystemTreeProviderBasedOnWatchedFileSystem.d.ts +13 -13
- package/build/types/services/workspace/ManuallyUpdatedFileSystemTreeProvider.d.ts +4 -4
- package/build/types/services/workspace/Workspace.d.ts +7 -7
- package/build/types/services/workspace/WorkspaceFiles.d.ts +1 -1
- package/build/types/tree/BaseNode.d.ts +12 -3
- package/build/types/tree/NodeKind.d.ts +56 -57
- package/build/types/tree/Nodes.d.ts +18 -20
- package/build/types/tree/SyntaxToCode.d.ts +11 -11
- package/build/types/ts-interop/Entities.d.ts +326 -263
- package/build/types/ts-interop/TsInteropContext.d.ts +16 -14
- package/build/types/ts-interop/TsPackageContents.d.ts +16 -16
- package/build/types/ts-interop/TsPackageMembersCreator.d.ts +10 -10
- package/build/types/ts-interop/TsProgramLoader.d.ts +7 -7
- package/build/types/ts-interop/TsTypeMembersCreator.d.ts +9 -9
- package/build/types/types/AliasType.d.ts +6 -5
- package/build/types/types/FunctionType.d.ts +8 -7
- package/build/types/types/IntersectionType.d.ts +3 -2
- package/build/types/types/ParameterType.d.ts +5 -4
- package/build/types/types/StandardTypes.d.ts +21 -21
- package/build/types/types/StructuredType.d.ts +9 -10
- package/build/types/types/Substitutions.d.ts +1 -1
- package/build/types/types/Type.d.ts +1 -0
- package/build/types/types/TypeMembers.d.ts +42 -42
- package/build/types/types/UnionType.d.ts +3 -2
- package/build/types/types/UnresolvedType.d.ts +3 -2
- package/build/types/types/VariantType.d.ts +5 -4
- package/package.json +1 -1
- package/build/types/entities/TypeMemberContainer.d.ts +0 -23
- package/build/types/services/AddPropertyAssignmentService.d.ts +0 -8
|
@@ -9,7 +9,7 @@ export declare enum DiagnosticCode {
|
|
|
9
9
|
PackageNameExpected = 103,
|
|
10
10
|
TypeMemberDeclarationExpected = 104,
|
|
11
11
|
PackageMemberDeclarationExpected = 105,
|
|
12
|
-
|
|
12
|
+
ForStatementVariableDeclarationExpected = 106,
|
|
13
13
|
StatementExpected = 107,
|
|
14
14
|
ExpressionExpected = 108,
|
|
15
15
|
ExpressionCannotBeUsedAsStatement = 109,
|
|
@@ -68,144 +68,147 @@ export declare enum DiagnosticCode {
|
|
|
68
68
|
FunctionNotFound = 231,
|
|
69
69
|
UnknownPackage = 232,
|
|
70
70
|
CannotAssignValueToExpression = 233,
|
|
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
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
71
|
+
AutotypeExpressionCannotBeUsedHere = 234,
|
|
72
|
+
CannotDetermineTargetTypeToCallTheConstructor = 235,
|
|
73
|
+
AmbiguousAccess = 236,
|
|
74
|
+
AmbiguousAccess0 = 237,
|
|
75
|
+
CannotAssignValueToContextVariable = 238,
|
|
76
|
+
ExpectedPackageNameOrAliasButFoundType = 239,
|
|
77
|
+
TypeExpected = 240,
|
|
78
|
+
NameOfTypeOrPackageNotFound = 241,
|
|
79
|
+
TypeIsNotATag = 242,
|
|
80
|
+
Operator0IsNotDefinedForTypes1And2 = 243,
|
|
81
|
+
Operator0IsNotDefinedForType1 = 244,
|
|
82
|
+
VariantMustHaveAssociatedValue = 245,
|
|
83
|
+
TranslationsCanOnlyBeDeclaredInTranslationPackage = 246,
|
|
84
|
+
UnknownTranslatedPackage0 = 247,
|
|
85
|
+
BaseCannotBeUsedInThisContext = 248,
|
|
86
|
+
OverriddenMethodNotFound = 249,
|
|
87
|
+
ObjectCannotBeUsedInThisContext = 250,
|
|
88
|
+
BaseCannotBeUsedAsAnExpressionInItself = 251,
|
|
89
|
+
InterfacePackageMustNotContainImplementation = 252,
|
|
90
|
+
InterfacePackageVariablesMustNotHaveInitializers = 253,
|
|
91
|
+
BodyIsMissing = 254,
|
|
92
|
+
AbstractTypeMembersMustNotHaveBody = 255,
|
|
93
|
+
MembersOfAspectTypeMustNotHaveBody = 256,
|
|
94
|
+
AspectTypeFieldsMustBeAbstract = 257,
|
|
95
|
+
DeclarationsMarkedWithBuiltIntoPlatformTagMustNotHaveBody = 258,
|
|
96
|
+
AbstractFieldsMustNotHaveInitializers = 259,
|
|
97
|
+
PackageIsAlreadyImported = 260,
|
|
98
|
+
OnlySubprogramsWithReturnTypeCanReturnValue = 261,
|
|
99
|
+
FunctionsUsingYieldStatementCannotReturnValue = 262,
|
|
100
|
+
YieldStatementCannotBeUsedInAnonymousFunctions = 263,
|
|
101
|
+
YieldStatementCannotBeUsedHere = 264,
|
|
102
|
+
FunctionsUsingYieldStatementMustHaveEnumerableAsReturnType = 265,
|
|
103
|
+
YieldStatementCannotBeUsedInTryStatementThatHasCatchClause = 266,
|
|
104
|
+
YieldStatementCannotBeUsedInFinallyClause = 267,
|
|
105
|
+
SubprogramMustReturnValue = 268,
|
|
106
|
+
ResultVariableCannotBeUsedInFunctionsUsingYieldStatement = 269,
|
|
107
|
+
TypeAliasReferencesItself = 270,
|
|
108
|
+
TypeParameterHasCircularConstraint = 271,
|
|
109
|
+
BaseTypeCausesInheritanceCycle = 272,
|
|
110
|
+
OnlyGenericTypesAndFunctionsCanBeSpecialized = 273,
|
|
111
|
+
Expected0TypeArguments = 274,
|
|
112
|
+
ExpectedFrom0To1TypeArguments = 275,
|
|
113
|
+
Type0IsNotAssignableToConstraint1 = 276,
|
|
114
|
+
VariableIsDeclaredButItsValueIsNeverRead = 277,
|
|
115
|
+
FunctionIsDeclaredButNotUsed = 278,
|
|
116
|
+
TypeParameterIsDeclaredButNotUsed = 279,
|
|
117
|
+
DefaultConstructorArgumentsMustBeNamed = 280,
|
|
118
|
+
IncorrectBodyOfBasicAliasTypeMethod = 281,
|
|
119
|
+
TheFollowingDeclarationsAreNotTranslated0 = 282,
|
|
120
|
+
TheFollowingDeclarationAreNotTranslated0And1More = 283,
|
|
121
|
+
OperatorFunction0MustNotHaveParameters = 284,
|
|
122
|
+
OperatorFunction0MustHaveOneParameter = 285,
|
|
123
|
+
OperatorFunction0MustHaveNoMoreThanOneParameter = 286,
|
|
124
|
+
CorrespondingBasicTypeMemberNotFound = 287,
|
|
125
|
+
AsyncFunctionCanOnlyBeCalledFromFunctionMarkedWithAsyncModifier = 288,
|
|
126
|
+
TagNotFound = 289,
|
|
127
|
+
TypeOrFunctionNameExpected = 290,
|
|
128
|
+
PackageNameOrAliasExpected = 291,
|
|
129
|
+
ExpressionCanBeNull = 292,
|
|
130
|
+
TargetVariableExpressionInTheAssignmentStatementCannotContainQuestionOperator = 293,
|
|
131
|
+
UnreachableCode = 294,
|
|
132
|
+
RecursionOccurredWhileCalculatingTheTypeOfTheExpression = 295,
|
|
133
|
+
RecursionOccurredWhileInferringTheTypeOfTheVariable = 296,
|
|
134
|
+
ScopeAlreadyContainsDeclarationWithTheSameName = 297,
|
|
135
|
+
ScopeAlreadyContainsFunctionWithTheSameNameAndParameterTypes = 298,
|
|
136
|
+
ParameterName0ConflictsWithAutomaticallyGeneratedVariableName = 299,
|
|
137
|
+
PackageAlreadyContainsDeclarationWithTheSameName = 300,
|
|
138
|
+
PackageAlreadyContainsFunctionWithTheSameNameAndParameterTypes = 301,
|
|
139
|
+
PackageAlreadyContainsTypeWithTheSameNameAndSameOrIntersectingTypeParameterCount = 302,
|
|
140
|
+
PackageAliasWithTheSameNameAlreadyExits = 303,
|
|
141
|
+
TypeAlreadyContainsDeclarationWithTheSameName = 304,
|
|
142
|
+
TypeAlreadyContainsMethodWithTheSameNameAndParameterTypes = 305,
|
|
143
|
+
TypeAlreadyContainsConstructorWithTheSameParameterTypes = 306,
|
|
144
|
+
TypeAlreadyContainsOperatorFunctionWithTheSameParameterTypes = 307,
|
|
145
|
+
TypeAlreadyContainsIndexerWithTheSameParameterTypes = 308,
|
|
146
|
+
TypeCanHaveOnlyOneDestructor = 309,
|
|
147
|
+
TypeCanHaveOnlyOneDereferenceOperator = 310,
|
|
148
|
+
VariableIsUsedBeforeItsDeclaration = 311,
|
|
149
|
+
VariableMayNotHasBeenAssignedBeforeUsage = 312,
|
|
150
|
+
NotAllCodePathsReturnAValueAndResultLocalVariableMayNotHasBeenAssigned = 313,
|
|
151
|
+
WriteFunctionHasNoCorrespondingReadFunction = 314,
|
|
152
|
+
TypeCannotHaveMultipleBaseObjectTypes = 315,
|
|
153
|
+
TypeThatIsNotMarkedAsBasicCannotBeUsedAsBaseType = 316,
|
|
154
|
+
PlainObjectTypeCannotBeUsedAsBaseType = 317,
|
|
155
|
+
ThisTypeIsAlreadyListedInBaseTypeList = 318,
|
|
156
|
+
OnlyObjectAndAspectTypesCanBeUsedAsBaseTypes = 319,
|
|
157
|
+
PlainObjectTypeCanHaveOnlyAspectsAsBaseTypes = 320,
|
|
158
|
+
AspectTypeCanHaveOnlyAspectsAsBaseTypes = 321,
|
|
159
|
+
ModifierListAlreadyContains0Modifier = 322,
|
|
160
|
+
ModifierListOfOuterDeclarationGroupAlreadyContains0Modifier = 323,
|
|
161
|
+
_0ModifierIsNotAllowedHere = 324,
|
|
162
|
+
DeclarationCannotBePlacedInGroupHaving0Modifier = 325,
|
|
163
|
+
PackageConstructorDeclarationCannotHaveModifiers = 326,
|
|
164
|
+
PackageEntryPointDeclarationCannotHaveModifiers = 327,
|
|
165
|
+
TranslationsCannotHaveModifiers = 328,
|
|
166
|
+
AbstractModifierCanOnlyBeUsedInAbstractObjectTypes = 329,
|
|
167
|
+
BasicModifierCanOnlyBeUsedInObjectTypesAspectTypesAndTypeAliases = 330,
|
|
168
|
+
OverrideModifierCanOnlyBeUsedInObjectAndAspectTypes = 331,
|
|
169
|
+
_0ModifierCannotBeUsedWith1Modifier = 332,
|
|
170
|
+
VariantDeclarationCannotHaveHiddenModifier = 333,
|
|
171
|
+
BasicModifierCanOnlyBeAppliedToObjectTypes = 334,
|
|
172
|
+
AbstractModifierCanOnlyBeAppliedToObjectTypes = 335,
|
|
173
|
+
NotBasicObjectTypesCannotHaveBasicMembers = 336,
|
|
174
|
+
BasicModifierCannotBeAppliedToAspectTypeFields = 337,
|
|
175
|
+
WriteFunctionMustHaveTheSameModifiersAsReadFunction = 338,
|
|
176
|
+
WriteFunctionMustHaveTheSameOrMoreRestrictiveHidingLevelThenReadFunction = 339,
|
|
177
|
+
DeclarationConflictsWithBaseTypeMember0 = 340,
|
|
178
|
+
DeclarationConflictsWithBaseTypeMember0AddOverrideModifier = 341,
|
|
179
|
+
DeclarationConflictsWithBaseTypeMember0ThisMemberCannotBeOverridden = 342,
|
|
180
|
+
DeclarationConflictsWithBaseTypeMember0ToOverrideTypeMustBeAssignableTo1 = 343,
|
|
181
|
+
DeclarationConflictsWithBaseTypeMember0ToOverrideReturnTypeMustBeAssignableTo1 = 344,
|
|
182
|
+
OverridingMemberMustHaveTheSameHidingLevelAsBaseMember0 = 345,
|
|
183
|
+
OverridingMethodMustBeAsyncBecauseBaseMethod0IsAsync = 346,
|
|
184
|
+
OverridingMethodMustNotBeAsyncBecauseBaseMethod0IsNotAsync = 347,
|
|
185
|
+
OverridingFieldMustNotBeConstOrHaveWriteFunctionToMatchBaseField0 = 348,
|
|
186
|
+
OverridingMemberMustHaveWriteFunctionToMatchBaseMember0 = 349,
|
|
187
|
+
TypeDoesNotImplementMember0 = 350,
|
|
188
|
+
TypeDoesNotImplementMember0ImplicitImplementationTypeMismatch1 = 351,
|
|
189
|
+
TypeDoesNotImplementMember0ImplicitImplementation1IsAsync = 352,
|
|
190
|
+
TypeDoesNotImplementMember0ImplicitImplementation1IsNotAsync = 353,
|
|
191
|
+
TypeDoesNotImplementMember0ImplicitImplementation1IsNotWriteable = 354,
|
|
192
|
+
TypeDoesNotImplementMember0ImplicitImplementation1WriteFunctionIsHidden = 355,
|
|
193
|
+
CannotAccessAbstractMemberOfBaseType = 356,
|
|
194
|
+
TheFollowingBaseTypeMembersConflictAndMustBeOverridden0 = 357,
|
|
195
|
+
TheFollowingBaseTypeMembersConflictBecauseTheyHaveTheSameOriginalName0AndMustBeOverridden1 = 358,
|
|
196
|
+
TheFirstStatementOfConstructorBlockMustBeEitherBaseOrOwnConstructorCall = 359,
|
|
197
|
+
ThisCallCausesOwnConstructorCallCycle = 360,
|
|
198
|
+
OwnConstructorCallMustBeTheFirstStatementOfConstructorBlock = 361,
|
|
199
|
+
BaseConstructorCallMustBeTheFirstStatementOfConstructorBlock = 362,
|
|
200
|
+
Field0HasNoInitializerAndMayNotBeAssignedInConstructor = 363,
|
|
201
|
+
Field0HasNoInitializerAndMayNotBeAssignedInPackageConstructor = 364,
|
|
202
|
+
Variable0HasNoInitializerAndMayNotBeAssignedInPackageConstructor = 365,
|
|
203
|
+
ExpressionOfType0CanNotBeUsedInForLoopBecauseNotEnumerableAndNoMethod1 = 366,
|
|
204
|
+
ForExpressionToBeUsedInForLoopMethod0MustReturnEnumeratorType = 367,
|
|
205
|
+
CannotInferTypeArguments = 368,
|
|
206
|
+
CanNotInferReturnTypeAddExplicitReturnTypeSpecifier = 369,
|
|
207
|
+
ConstantVariablesBustBeInitialized = 370,
|
|
208
|
+
VariableTypeIsNotSpecified = 371,
|
|
209
|
+
CannotInferTypeOfFunctionLiteralAddTypeSpecifierForParameter = 372,
|
|
210
|
+
TypeParameterDefaultCanReferenceOnlyPreviouslyDeclaredTypeParameters = 373,
|
|
211
|
+
RequiredTypeParametersCannotFollowTypeParametersWithDefaults = 374,
|
|
209
212
|
CannotFindTsLibDirectoryBaseSearchPaths0 = 401,
|
|
210
213
|
SourceFile0IsNotPartOfThePackageAndWontBeLoaded = 402,
|
|
211
214
|
ProgramWithoutMainPackageCannotBeCompiled = 403,
|
|
@@ -4,9 +4,9 @@ export declare class DiagnosticData {
|
|
|
4
4
|
readonly code: DiagnosticCode;
|
|
5
5
|
readonly kind: DiagnosticKind;
|
|
6
6
|
readonly flags: DiagnosticFlags;
|
|
7
|
-
private
|
|
8
|
-
private
|
|
9
|
-
private
|
|
7
|
+
private messageFormat;
|
|
8
|
+
private formatArguments;
|
|
9
|
+
private message_;
|
|
10
10
|
get message(): string;
|
|
11
11
|
constructor(code: DiagnosticCode, formatMessage: string | undefined, formatArguments: readonly DisplayableOrPrimitive[] | undefined, kind: DiagnosticKind, flags: DiagnosticFlags);
|
|
12
12
|
static withCode(code: DiagnosticCode, formatArguments?: readonly DisplayableOrPrimitive[], kind?: DiagnosticKind, flags?: DiagnosticFlags): DiagnosticData;
|
|
@@ -11,9 +11,9 @@ export interface RangeDiagnosticAcceptor {
|
|
|
11
11
|
addDiagnostic(diagnostic: RangeDiagnostic): void;
|
|
12
12
|
}
|
|
13
13
|
export declare class RangeDiagnosticConverter implements RangeDiagnosticAcceptor {
|
|
14
|
-
private readonly
|
|
15
|
-
private readonly
|
|
16
|
-
constructor(
|
|
14
|
+
private readonly file;
|
|
15
|
+
private readonly diagnosticAcceptor;
|
|
16
|
+
constructor(file: TextFile, diagnosticAcceptor: DiagnosticAcceptor | undefined);
|
|
17
17
|
static convert(diagnostic: RangeDiagnostic, file: TextFile): Diagnostic;
|
|
18
18
|
addDiagnostic(diagnostic: RangeDiagnostic): void;
|
|
19
19
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as ir from './ir/index.js';
|
|
2
2
|
export declare function debugStack(): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
|
|
3
3
|
export declare class DebugStack {
|
|
4
|
-
private readonly
|
|
5
|
-
constructor(
|
|
4
|
+
private readonly stack;
|
|
5
|
+
constructor(stack?: ir.Node[]);
|
|
6
6
|
push(node: ir.Node): void;
|
|
7
7
|
pop(): void;
|
|
8
8
|
toString(): string;
|
|
@@ -7,10 +7,10 @@ export declare class Emitter {
|
|
|
7
7
|
static readonly LaunchFileName = "launch.mjs";
|
|
8
8
|
static readonly IndexFileName = "index.mjs";
|
|
9
9
|
readonly targetPlatform = PlatformKind.JavaScript;
|
|
10
|
-
private readonly
|
|
11
|
-
private readonly
|
|
12
|
-
private readonly
|
|
13
|
-
private readonly
|
|
10
|
+
private readonly analyzer;
|
|
11
|
+
private readonly options;
|
|
12
|
+
private readonly entityMap;
|
|
13
|
+
private readonly ectx;
|
|
14
14
|
constructor(analyzer: Analyzer, options: EmitOptions | undefined);
|
|
15
15
|
emitToFileSystem(outputUri: Uri, outputAcceptor: OutputAcceptor, cancellationToken?: CancellationToken | undefined): Promise<void>;
|
|
16
16
|
emitToString(cancellationToken?: CancellationToken | undefined): Promise<string>;
|
|
@@ -34,7 +34,7 @@ export declare class EmitterPackage {
|
|
|
34
34
|
outputUri: Uri;
|
|
35
35
|
packageLevelNames: ReadonlySet<string>;
|
|
36
36
|
entityNameOverrides: ReadonlyMap<NamedEntity, string> | undefined;
|
|
37
|
-
private
|
|
37
|
+
private referencedPackageMembers;
|
|
38
38
|
constructor(ir: ir.Package, entity: PackageEntity);
|
|
39
39
|
getReferencedPackageMembers(): ReferencedPackageMembers;
|
|
40
40
|
}
|
|
@@ -8,10 +8,10 @@ export declare class EmitterContext {
|
|
|
8
8
|
readonly entityMap: EntityMap;
|
|
9
9
|
readonly type: TypeUtils;
|
|
10
10
|
readonly standardTypes: StandardTypes;
|
|
11
|
-
private readonly
|
|
12
|
-
private readonly
|
|
13
|
-
private readonly
|
|
14
|
-
private readonly
|
|
11
|
+
private readonly integerTypeEntity_;
|
|
12
|
+
private readonly jsObjectType_;
|
|
13
|
+
private readonly jsSymbolType_;
|
|
14
|
+
private readonly originalPlatformJavaScriptPackage_;
|
|
15
15
|
get integerTypeEntity(): TypeOrExtensionEntity;
|
|
16
16
|
get originalPlatformJavaScriptPackage(): analyzerEntities.PackageEntity;
|
|
17
17
|
get jsObjectType(): TypeOrExtensionEntity;
|
|
@@ -26,26 +26,26 @@ export declare class EmitterContext {
|
|
|
26
26
|
enumerateAllOverriddenMembers<T extends TypeMemberEntity>(entity: T): Iterable<T>;
|
|
27
27
|
}
|
|
28
28
|
declare class TypeUtils {
|
|
29
|
-
private readonly
|
|
30
|
-
constructor(
|
|
29
|
+
private readonly ectx;
|
|
30
|
+
constructor(ectx: EmitterContext);
|
|
31
31
|
ofExpression(expression: Expression): Type;
|
|
32
32
|
private getTypeOfComputedAccess;
|
|
33
33
|
}
|
|
34
34
|
declare class StandardTypes {
|
|
35
|
-
private readonly
|
|
36
|
-
private readonly
|
|
37
|
-
private
|
|
38
|
-
private
|
|
39
|
-
private
|
|
40
|
-
private
|
|
41
|
-
private
|
|
42
|
-
private
|
|
43
|
-
private
|
|
44
|
-
private
|
|
45
|
-
private
|
|
46
|
-
private
|
|
47
|
-
private
|
|
48
|
-
private
|
|
35
|
+
private readonly analyzer;
|
|
36
|
+
private readonly entityMap;
|
|
37
|
+
private null_;
|
|
38
|
+
private yesNo_;
|
|
39
|
+
private refObject_;
|
|
40
|
+
private plainObject_;
|
|
41
|
+
private number_;
|
|
42
|
+
private integer_;
|
|
43
|
+
private text_;
|
|
44
|
+
private char_;
|
|
45
|
+
private array_;
|
|
46
|
+
private func_;
|
|
47
|
+
private textTemplate_;
|
|
48
|
+
private reference_;
|
|
49
49
|
get nullType(): Type;
|
|
50
50
|
get yesNo(): Type;
|
|
51
51
|
get refObject(): Type;
|
|
@@ -58,6 +58,6 @@ declare class StandardTypes {
|
|
|
58
58
|
get func(): Type;
|
|
59
59
|
get textTemplate(): Type;
|
|
60
60
|
get reference(): Type;
|
|
61
|
-
constructor(
|
|
61
|
+
constructor(analyzer: Analyzer, entityMap: EntityMap);
|
|
62
62
|
}
|
|
63
63
|
export {};
|
|
@@ -9,13 +9,13 @@ import * as emitterEntities from './Entities.js';
|
|
|
9
9
|
* - заменяет имя сущности на НастоящееИмя, если указан соответствующий тег.
|
|
10
10
|
*/
|
|
11
11
|
export declare class EntityMap {
|
|
12
|
-
private readonly
|
|
13
|
-
private readonly
|
|
14
|
-
private readonly
|
|
15
|
-
private readonly
|
|
16
|
-
private readonly
|
|
17
|
-
private readonly
|
|
18
|
-
private readonly
|
|
12
|
+
private readonly analyzer;
|
|
13
|
+
private readonly targetPlatform;
|
|
14
|
+
private readonly variables;
|
|
15
|
+
private readonly functions;
|
|
16
|
+
private readonly typeOrExtensions;
|
|
17
|
+
private readonly packages;
|
|
18
|
+
private readonly linkedPackages;
|
|
19
19
|
constructor(analyzer: Analyzer, targetPlatform: PlatformKind);
|
|
20
20
|
getVariableEntity(entity: analyzerEntities.VariableEntity): emitterEntities.VariableEntity;
|
|
21
21
|
getFunctionEntity(entity: analyzerEntities.FunctionEntity): emitterEntities.FunctionEntity;
|
|
@@ -30,7 +30,7 @@ export declare class EntityMap {
|
|
|
30
30
|
getFunctionTypeEntity(entity: analyzerEntities.FunctionTypeEntity): emitterEntities.TypeOrExtensionEntity;
|
|
31
31
|
getAliasTypeEntity(entity: analyzerEntities.AliasTypeEntity): emitterEntities.TypeOrExtensionEntity;
|
|
32
32
|
getTypeExtensionEntity(entity: analyzerEntities.TypeExtensionEntity): emitterEntities.TypeOrExtensionEntity;
|
|
33
|
-
getTypeOrExtensionEntity(entity: analyzerEntities.
|
|
33
|
+
getTypeOrExtensionEntity(entity: analyzerEntities.TypeOrExtensionEntity): emitterEntities.TypeOrExtensionEntity;
|
|
34
34
|
getPackageEntity(entity: analyzerEntities.PackageEntity): emitterEntities.PackageEntity;
|
|
35
35
|
getType(type: analyzerTypes.Type): emitterEntities.Type;
|
|
36
36
|
enumerateAllPackageEntities(): Iterable<emitterEntities.PackageEntity>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { EmitterPackage } from './Emitter.js';
|
|
2
2
|
import { EmitterContext } from './EmitterContext.js';
|
|
3
3
|
export declare class GeneralLowering {
|
|
4
|
-
private readonly
|
|
5
|
-
private readonly
|
|
4
|
+
private readonly ectx;
|
|
5
|
+
private readonly packages;
|
|
6
6
|
constructor(ectx: EmitterContext, packages: readonly EmitterPackage[]);
|
|
7
7
|
lower(): void;
|
|
8
8
|
}
|
|
@@ -5,16 +5,16 @@ import * as tree from '../tree/index.js';
|
|
|
5
5
|
import { EntityMap } from './EntityMap.js';
|
|
6
6
|
import * as ir from './ir/index.js';
|
|
7
7
|
export declare class IrBuilder {
|
|
8
|
-
private readonly
|
|
9
|
-
private readonly
|
|
10
|
-
private readonly
|
|
11
|
-
private readonly
|
|
12
|
-
private readonly
|
|
13
|
-
private
|
|
14
|
-
private
|
|
15
|
-
private
|
|
16
|
-
private
|
|
17
|
-
private
|
|
8
|
+
private readonly analyzer;
|
|
9
|
+
private readonly entityMap;
|
|
10
|
+
private readonly declarationUsageInfoOfAllPackages;
|
|
11
|
+
private readonly typesCreatedFromAnonymousTypes;
|
|
12
|
+
private readonly textTemplateToTextMethod_;
|
|
13
|
+
private sourceFile;
|
|
14
|
+
private declarationsUsageInfoOfSourceFile;
|
|
15
|
+
private declarationsUsageInfoOfPackageSourceFiles;
|
|
16
|
+
private id;
|
|
17
|
+
private currentLoopLabel;
|
|
18
18
|
private get textTemplateToTextMethod();
|
|
19
19
|
constructor(analyzer: Analyzer, entityMap: EntityMap, declarationUsageInfoOfAllPackages: ReadonlyMap<tree.SourceFile, DeclarationsUsageMap>);
|
|
20
20
|
build(pkg: SourcePackage): ir.Package;
|
|
@@ -25,10 +25,10 @@ export declare namespace ImportEmitMode {
|
|
|
25
25
|
}
|
|
26
26
|
export declare class IrToJs {
|
|
27
27
|
static readonly customImportFunctionName = "_artelImport";
|
|
28
|
-
protected readonly
|
|
29
|
-
private
|
|
30
|
-
private
|
|
31
|
-
private
|
|
28
|
+
protected readonly debugStack: DebugStack;
|
|
29
|
+
private importMode;
|
|
30
|
+
private entityNameOverrides;
|
|
31
|
+
private attachSourceLocation;
|
|
32
32
|
constructor(options?: IrToJsOptions);
|
|
33
33
|
convert(pkg: ir.Package): js.File;
|
|
34
34
|
private convertPackage;
|
|
@@ -42,7 +42,7 @@ export declare class IrToJs {
|
|
|
42
42
|
private createDynamicImport;
|
|
43
43
|
private convertJsNamespaceDestructuringStatement;
|
|
44
44
|
private convertPackageFunctionDeclaration;
|
|
45
|
-
private
|
|
45
|
+
private convertParameters;
|
|
46
46
|
private convertPackageTypeDeclaration;
|
|
47
47
|
private convertPackageVariableDeclaration;
|
|
48
48
|
private convertPackageVariantTypeDeclaration;
|
|
@@ -3,9 +3,9 @@ import { VariableEntity } from './Entities.js';
|
|
|
3
3
|
import * as ir from './ir/index.js';
|
|
4
4
|
export declare class Transformer {
|
|
5
5
|
readonly config: TransformationConfig;
|
|
6
|
-
protected readonly
|
|
7
|
-
private
|
|
8
|
-
private
|
|
6
|
+
protected readonly debugStack: DebugStack;
|
|
7
|
+
private hoistedLocalVariables;
|
|
8
|
+
private transformedDeclaration_;
|
|
9
9
|
get transformedDeclaration(): ir.Declaration | undefined;
|
|
10
10
|
constructor(config: TransformationConfig);
|
|
11
11
|
transform(pkg: ir.Package): void;
|
|
@@ -29,7 +29,7 @@ export declare class Transformer {
|
|
|
29
29
|
transformIfStatementChildren(statement: ir.IfStatement): void;
|
|
30
30
|
transformNestedFunctionDeclarationStatementChildren(statement: ir.NestedFunctionDeclarationStatement): void;
|
|
31
31
|
transformNestedFunctionDeclaration(declaration: ir.NestedFunctionDeclaration): ir.NestedFunctionDeclaration;
|
|
32
|
-
|
|
32
|
+
transformParameterDeclaration(declaration: ir.ParameterDeclaration): ir.ParameterDeclaration;
|
|
33
33
|
transformNodeWithGeneralTransformationResult<T>(node: T, transform: (node: T) => NodeTransformationResult<T> | undefined): {
|
|
34
34
|
transformedNode: T;
|
|
35
35
|
action: TransformationContinuationAction;
|
|
@@ -208,7 +208,7 @@ export interface TransformationConfig {
|
|
|
208
208
|
transformFieldSetterDeclaration?(declaration: ir.FieldSetterDeclaration): NodeTransformationResult<ir.FieldSetterDeclaration>;
|
|
209
209
|
transformNestedFunctionDeclaration?(declaration: ir.NestedFunctionDeclaration): NodeTransformationResult<ir.NestedFunctionDeclaration>;
|
|
210
210
|
transformLocalVariableDeclaration?(declaration: ir.LocalVariableDeclaration): NodeTransformationResult<ir.LocalVariableDeclaration>;
|
|
211
|
-
|
|
211
|
+
transformParameterDeclaration?(declaration: ir.ParameterDeclaration): NodeTransformationResult<ir.ParameterDeclaration>;
|
|
212
212
|
transformCaseClause?(declaration: ir.CaseClause): NodeTransformationResult<ir.CaseClause>;
|
|
213
213
|
transformVariantDeclaration?(declaration: ir.VariantDeclaration): NodeTransformationResult<ir.VariantDeclaration>;
|
|
214
214
|
transformArguments?(declaration: ir.Arguments): NodeTransformationResult<ir.Arguments>;
|