@artel/artc 0.6.25239 → 0.6.25241
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 +4 -2
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +55 -55
- package/build/{chunk-3VRPBHJN.js → chunk-ENLQDHWB.js} +1270 -406
- package/build/{chunk-TPCKKHPK.js → chunk-KGHWT7H3.js} +1 -1
- package/build/{chunk-UOGTFZ6X.js → chunk-LXGGIHYX.js} +2 -2
- package/build/types/analysis/Analyzer.d.ts +19 -6
- package/build/types/analysis/DiagnosticCollector.d.ts +2 -1
- package/build/types/analysis/ModifierValidator.d.ts +2 -2
- package/build/types/analysis/TypeMemberImplementationChecker.d.ts +21 -0
- package/build/types/analysis/semantic-context/SemanticContextBasedEntityHidingMatcher.d.ts +9 -8
- package/build/types/common/SearchName.d.ts +1 -0
- package/build/types/diagnostic/DiagnosticCode.d.ts +23 -16
- package/build/types/emitter/Entities.d.ts +2 -0
- package/build/types/emitter/EntityMap.d.ts +2 -0
- package/build/types/entities/AliasTypeEntity.d.ts +2 -1
- package/build/types/entities/BaseEntityHidingMatcher.d.ts +11 -0
- package/build/types/entities/EntityHidingMatcherWithinTypeEntity.d.ts +10 -0
- package/build/types/entities/FunctionTypeEntity.d.ts +5 -3
- package/build/types/entities/PackageEntity.d.ts +3 -1
- package/build/types/entities/StructuredTypeEntity.d.ts +5 -3
- package/build/types/entities/TypeEntity.d.ts +2 -1
- package/build/types/entities/TypeExtensionEntity.d.ts +3 -1
- package/build/types/entities/TypeParameterEntity.d.ts +5 -2
- package/build/types/entities/VariantTypeEntity.d.ts +3 -1
- package/build/types/entities/index.d.ts +15 -3
- package/build/types/ts-interop/Entities.d.ts +15 -3
- package/build/types/ts-interop/TsInteropContext.d.ts +4 -2
- package/build/types/types/TypeMembers.d.ts +8 -1
- package/package.json +2 -2
- package/build/types/analysis/TypeMemberImplementationValidator.d.ts +0 -13
@@ -1,12 +1,12 @@
|
|
1
1
|
import ts from 'typescript';
|
2
2
|
import { Tag } from '../analysis/Tags.js';
|
3
|
-
import { Lazy, Name, PackageLocale } from '../common/index.js';
|
3
|
+
import { Lazy, Name, PackageDialect, PackageLocale } from '../common/index.js';
|
4
4
|
import type { PackageEntity } from '../entities/PackageEntity.js';
|
5
5
|
import { PackageEntityDefinition } from '../entities/PackageEntity.js';
|
6
6
|
import { OriginalPackageMembers } from '../entities/PackageMembers.js';
|
7
7
|
import { OriginalTypeEntityMembers } from '../entities/TypeEntityMembers.js';
|
8
|
-
import type { EntityContainingTypeParameter, EntityContainingValueParameter, EntityOwningGetter, TypeEntityWithMembers, VariantTypeEntity } from '../entities/index.js';
|
9
|
-
import { AliasTypeEntity, AliasTypeEntityDefinition, AliasedType, AnonymousFunctionTypeEntity, AnonymousStructuredTypeEntity, BaseAspectTypes, BaseObjectType, ConstructorEntity, ConstructorEntityDefinition, DefaultConstructorEntityInfo, EntityHidingLevel, EntityKind, EntityNaming, EntityOwningSetter, FunctionEntityDefinition, GetterEntity, GetterEntityDefinition, IndexerEntity, IndexerEntityDefinition, InterfacePackageEntityInfo, MethodEntity,
|
8
|
+
import type { EntityContainingTypeParameter, EntityContainingValueParameter, EntityContext, EntityOwningGetter, TypeEntityWithMembers, VariantTypeEntity } from '../entities/index.js';
|
9
|
+
import { AliasTypeEntity, AliasTypeEntityDefinition, AliasedType, AnonymousFunctionTypeEntity, AnonymousStructuredTypeEntity, BaseAspectTypes, BaseObjectType, ConstructorEntity, ConstructorEntityDefinition, DefaultConstructorEntityInfo, EntityHidingLevel, EntityKind, EntityNaming, EntityOwningSetter, FieldEntity, FunctionEntityDefinition, FunctionTypeEntityDefinition, GetterEntity, GetterEntityDefinition, IndexerEntity, IndexerEntityDefinition, InterfacePackageEntityInfo, MethodEntity, PackageFunctionEntity, PackageFunctionTypeEntity, PackageStructuredTypeEntity, PackageVariableEntity, PackageVariantTypeEntity, ParameterVariableEntity, ParameterVariableEntityContainer, SetterEntity, SetterEntityDefinition, SpecialVariableEntityInfo, StructuredTypeEntityDefinition, SubstitutionApplicationMode, TypeEntityKind, TypeMemberEntityContainer, TypeParameterConstraint, TypeParameterEntity, TypeParameterEntityDefinition, VariableEntityDefinition, VariantTypeEntityDefinition } from '../entities/index.js';
|
10
10
|
import { JavaScriptImplementationConfig, PackageName, PlatformKind, ProgramPackage } from '../project/index.js';
|
11
11
|
import * as tree from '../tree/index.js';
|
12
12
|
import * as types from '../types/index.js';
|
@@ -21,6 +21,7 @@ export declare class TsPackageEntity implements PackageEntity {
|
|
21
21
|
constructor(_tsctx: TsInteropContext, name: PackageName, locale: PackageLocale, contents: Lazy<TsPackageContents>, interfacePackageInfo: InterfacePackageEntityInfo);
|
22
22
|
getName(): PackageName;
|
23
23
|
getLocale(): PackageLocale;
|
24
|
+
getDialect(): PackageDialect;
|
24
25
|
getMembers(): OriginalPackageMembers;
|
25
26
|
isInterface(): InterfacePackageEntityInfo | undefined;
|
26
27
|
getImplementedInterfacePackage(): PackageEntity | undefined;
|
@@ -36,6 +37,7 @@ export declare class SourcePackageLoadedFromDtsEntity implements PackageEntity {
|
|
36
37
|
constructor(tsctx: TsInteropContext, sourcePackage: ProgramPackage, implementationConfig: JavaScriptImplementationConfig, contents: Lazy<TsPackageContents>);
|
37
38
|
getName(): PackageName;
|
38
39
|
getLocale(): PackageLocale;
|
40
|
+
getDialect(): PackageDialect;
|
39
41
|
getMembers(): OriginalPackageMembers;
|
40
42
|
isInterface(): InterfacePackageEntityInfo | undefined;
|
41
43
|
getImplementedInterfacePackage(): PackageEntity | undefined;
|
@@ -166,6 +168,7 @@ export declare class TsGlobalClassOrInterfaceEntity implements PackageStructured
|
|
166
168
|
isHidden(): EntityHidingLevel | undefined;
|
167
169
|
getTags(): readonly Tag[];
|
168
170
|
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
171
|
+
getContext(): EntityContext;
|
169
172
|
private getDeclaration;
|
170
173
|
private isClassOrInterfaceAndVariableMerge;
|
171
174
|
}
|
@@ -197,6 +200,7 @@ export declare class SourceAndTsGlobalClassOrInterfaceMergeEntity implements Pac
|
|
197
200
|
isHidden(): EntityHidingLevel | undefined;
|
198
201
|
getTags(): readonly Tag[];
|
199
202
|
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
203
|
+
getContext(): EntityContext;
|
200
204
|
}
|
201
205
|
export declare class TsTypeLiteralEntity implements AnonymousStructuredTypeEntity {
|
202
206
|
private readonly _tsctx;
|
@@ -225,6 +229,7 @@ export declare class TsTypeLiteralEntity implements AnonymousStructuredTypeEntit
|
|
225
229
|
getTags(): readonly Tag[];
|
226
230
|
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
227
231
|
getContainingPackage(): PackageEntity;
|
232
|
+
getContext(): EntityContext;
|
228
233
|
}
|
229
234
|
export declare class TsNamedTypeLiteralEntity implements PackageStructuredTypeEntity {
|
230
235
|
private readonly _tsctx;
|
@@ -259,6 +264,7 @@ export declare class TsNamedTypeLiteralEntity implements PackageStructuredTypeEn
|
|
259
264
|
isHidden(): EntityHidingLevel | undefined;
|
260
265
|
getTags(): readonly Tag[];
|
261
266
|
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
267
|
+
getContext(): EntityContext;
|
262
268
|
}
|
263
269
|
export declare class SourceAndTsNamedTypeLiteralMergeEntity implements PackageStructuredTypeEntity {
|
264
270
|
private readonly _tsctx;
|
@@ -288,6 +294,7 @@ export declare class SourceAndTsNamedTypeLiteralMergeEntity implements PackageSt
|
|
288
294
|
isHidden(): EntityHidingLevel | undefined;
|
289
295
|
getTags(): readonly Tag[];
|
290
296
|
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
297
|
+
getContext(): EntityContext;
|
291
298
|
}
|
292
299
|
export declare class TsPropertyEntity implements FieldEntity {
|
293
300
|
private readonly _tsctx;
|
@@ -476,6 +483,7 @@ export declare class TsTypeParameterEntity implements TypeParameterEntity {
|
|
476
483
|
getContainingEntity(): EntityContainingTypeParameter;
|
477
484
|
isHidden(): EntityHidingLevel | undefined;
|
478
485
|
getTags(): readonly Tag[];
|
486
|
+
getContext(): EntityContext;
|
479
487
|
private getDeclaration;
|
480
488
|
}
|
481
489
|
export declare class TsIndexSignatureEntity implements IndexerEntity {
|
@@ -560,6 +568,7 @@ export declare class TsEnumEntity implements PackageVariantTypeEntity {
|
|
560
568
|
getTags(): readonly Tag[];
|
561
569
|
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
562
570
|
getBaseObjectType(): BaseObjectType;
|
571
|
+
getContext(): EntityContext;
|
563
572
|
}
|
564
573
|
export declare class TsEnumMemberEntity implements FieldEntity {
|
565
574
|
private readonly _tsctx;
|
@@ -606,6 +615,7 @@ export declare class TsTypeAliasEntity implements AliasTypeEntity {
|
|
606
615
|
isHidden(): EntityHidingLevel | undefined;
|
607
616
|
getTags(): readonly Tag[];
|
608
617
|
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
618
|
+
getContext(): EntityContext;
|
609
619
|
private getDeclaration;
|
610
620
|
}
|
611
621
|
export declare class TsAnonymousFunctionTypeEntity implements AnonymousFunctionTypeEntity {
|
@@ -634,6 +644,7 @@ export declare class TsAnonymousFunctionTypeEntity implements AnonymousFunctionT
|
|
634
644
|
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
635
645
|
getContainingPackage(): PackageEntity;
|
636
646
|
getBaseObjectType(): BaseObjectType;
|
647
|
+
getContext(): EntityContext;
|
637
648
|
}
|
638
649
|
/**
|
639
650
|
* Представляет объявления следующего вида:
|
@@ -678,4 +689,5 @@ export declare class TsNamedFunctionTypeEntity implements PackageFunctionTypeEnt
|
|
678
689
|
getTags(): readonly Tag[];
|
679
690
|
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
680
691
|
getBaseObjectType(): BaseObjectType;
|
692
|
+
getContext(): EntityContext;
|
681
693
|
}
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import ts from 'typescript';
|
2
2
|
import { Analyzer } from '../analysis/index.js';
|
3
3
|
import { Tag } from '../analysis/Tags.js';
|
4
|
-
import { Name, PackageLocale } from '../common/index.js';
|
5
|
-
import { EntityHidingLevel, EntityKind, InterfacePackageEntityInfo, TypeEntity, TypeEntityWithMembers } from '../entities/index.js';
|
4
|
+
import { Name, PackageDialect, PackageLocale } from '../common/index.js';
|
5
|
+
import { EntityContext, EntityHidingLevel, EntityKind, InterfacePackageEntityInfo, TypeEntity, TypeEntityWithMembers } from '../entities/index.js';
|
6
6
|
import { PackageEntity, PackageEntityDefinition } from '../entities/PackageEntity.js';
|
7
7
|
import { OriginalPackageMembers } from '../entities/PackageMembers.js';
|
8
8
|
import { JavaScriptImplementationConfig, PackageName, PlatformKind, ProgramPackage } from '../project/index.js';
|
@@ -34,6 +34,7 @@ export declare class TsInteropContext {
|
|
34
34
|
ifTypeCanBeExpressedByFunctionTypeThenCallSignature(symbol: ts.Symbol): ts.Symbol | undefined;
|
35
35
|
getName(original: string, ownerKind: 'type' | 'variable' | 'method'): Name;
|
36
36
|
createDefaultExportTag(): Tag;
|
37
|
+
createTypeEntityContext(entity: TypeEntity): EntityContext;
|
37
38
|
private getPackagesCreationResult;
|
38
39
|
private createPackages;
|
39
40
|
private collectSubModulesInFilesRecursively;
|
@@ -171,6 +172,7 @@ declare class TsPackageEntityForSymbolsWithUnknownOrigin implements PackageEntit
|
|
171
172
|
readonly kind = EntityKind.Package;
|
172
173
|
getName(): PackageName;
|
173
174
|
getLocale(): PackageLocale;
|
175
|
+
getDialect(): PackageDialect;
|
174
176
|
getMembers(): OriginalPackageMembers;
|
175
177
|
isInterface(): InterfacePackageEntityInfo | undefined;
|
176
178
|
getImplementedInterfacePackage(): PackageEntity | undefined;
|
@@ -27,6 +27,7 @@ export declare class Method implements ITypeMember {
|
|
27
27
|
isAsync(): boolean;
|
28
28
|
isHidden(): EntityHidingLevel | undefined;
|
29
29
|
isStatic(): boolean;
|
30
|
+
isOverride(): boolean;
|
30
31
|
applySubstitutions(substitutions: Substitutions): Method;
|
31
32
|
getTypeParametersArity(): number;
|
32
33
|
equals(other: TypeMember): boolean;
|
@@ -56,6 +57,7 @@ export declare class Field implements ITypeMember {
|
|
56
57
|
isConstant(): boolean;
|
57
58
|
isHidden(): EntityHidingLevel | undefined;
|
58
59
|
isStatic(): boolean;
|
60
|
+
isOverride(): boolean;
|
59
61
|
isVariant(): boolean;
|
60
62
|
applySubstitutions(substitutions: Substitutions): Field;
|
61
63
|
equals(other: TypeMember): boolean;
|
@@ -78,22 +80,25 @@ export declare class Operator implements ITypeMember {
|
|
78
80
|
getSignatureType(): FunctionType;
|
79
81
|
isHidden(): EntityHidingLevel | undefined;
|
80
82
|
isStatic(): boolean;
|
83
|
+
isOverride(): boolean;
|
81
84
|
applySubstitutions(substitutions: Substitutions): Operator;
|
82
85
|
equals(other: TypeMember): boolean;
|
83
86
|
}
|
84
87
|
export declare class Constructor implements ITypeMember {
|
88
|
+
private readonly _analyzer;
|
85
89
|
private readonly _entity;
|
86
90
|
private readonly _substitutions;
|
87
91
|
readonly kind = "constructor";
|
88
92
|
private readonly _valueParameters;
|
89
93
|
get debuggerDisplay(): string;
|
90
|
-
constructor(_entity: ConstructorEntity, _substitutions: Substitutions);
|
94
|
+
constructor(_analyzer: Analyzer, _entity: ConstructorEntity, _substitutions: Substitutions);
|
91
95
|
getValueParameters(): readonly ValueParameter[];
|
92
96
|
getEntity(): ConstructorEntity;
|
93
97
|
getSubstitutions(): Substitutions;
|
94
98
|
isHidden(): EntityHidingLevel | undefined;
|
95
99
|
isStatic(): boolean;
|
96
100
|
applySubstitutions(substitutions: Substitutions): TypeMember;
|
101
|
+
getConstructedType(): Type;
|
97
102
|
equals(other: TypeMember): boolean;
|
98
103
|
toString(): string;
|
99
104
|
}
|
@@ -126,6 +131,7 @@ export declare class Indexer implements ITypeMember {
|
|
126
131
|
getSubstitutions(): Substitutions;
|
127
132
|
isHidden(): EntityHidingLevel | undefined;
|
128
133
|
isStatic(): boolean;
|
134
|
+
isOverride(): boolean;
|
129
135
|
applySubstitutions(substitutions: Substitutions): Indexer;
|
130
136
|
equals(other: TypeMember): boolean;
|
131
137
|
toString(): string;
|
@@ -141,6 +147,7 @@ export declare class DereferenceOperator implements ITypeMember {
|
|
141
147
|
getSubstitutions(): Substitutions;
|
142
148
|
isHidden(): EntityHidingLevel | undefined;
|
143
149
|
isStatic(): boolean;
|
150
|
+
isOverride(): boolean;
|
144
151
|
applySubstitutions(substitutions: Substitutions): DereferenceOperator;
|
145
152
|
equals(other: TypeMember): boolean;
|
146
153
|
toString(): string;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@artel/artc",
|
3
|
-
"version": "0.6.
|
3
|
+
"version": "0.6.25241",
|
4
4
|
"description": "Артель Компилятор | Artel Compiler",
|
5
5
|
"author": "Nezaboodka Team <contact@nezaboodka.com>",
|
6
6
|
"license": "LGPL-3.0-or-later",
|
@@ -41,7 +41,7 @@
|
|
41
41
|
"@babel/types": "7.27.3",
|
42
42
|
"@vscode/l10n": "0.0.18",
|
43
43
|
"jsonc-parser": "3.3.1",
|
44
|
-
"reactronic": "^0.93.
|
44
|
+
"reactronic": "^0.93.25026",
|
45
45
|
"typescript": "5.8.2",
|
46
46
|
"vscode-json-languageservice": "5.4.2",
|
47
47
|
"vscode-languageserver": "9.0.1",
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { DiagnosticAcceptor } from '../diagnostic/Diagnostic.js';
|
2
|
-
import { TypeEntityWithMembers } from '../entities/index.js';
|
3
|
-
import { DisplayService } from '../services/DisplayService.js';
|
4
|
-
import { Analyzer } from './Analyzer.js';
|
5
|
-
export declare class TypeMemberImplementationValidator {
|
6
|
-
private readonly _analyzer;
|
7
|
-
private readonly _typeEntity;
|
8
|
-
private readonly _displayService;
|
9
|
-
private readonly _diagnostics;
|
10
|
-
constructor(_analyzer: Analyzer, _typeEntity: TypeEntityWithMembers, _displayService: DisplayService, _diagnostics: DiagnosticAcceptor);
|
11
|
-
validate(): void;
|
12
|
-
private getDiagnosticLocation;
|
13
|
-
}
|