@artel/artc 0.6.25229 → 0.6.25231
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 +6 -4
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +50 -50
- package/build/{chunk-4UBNOTKC.js → chunk-BG2YEIQO.js} +2 -2
- package/build/{chunk-6YPLDA76.js → chunk-S7CAJWX2.js} +2372 -943
- package/build/{chunk-2FHW6RUS.js → chunk-VQ5GGKF7.js} +1 -1
- package/build/types/analysis/Analyzer.d.ts +51 -11
- package/build/types/analysis/BaseExpressionMeaning.d.ts +1 -1
- package/build/types/analysis/DiagnosticCollector.d.ts +1 -1
- package/build/types/analysis/FindModifier.d.ts +1 -0
- package/build/types/analysis/{OperationOverloadResolver.d.ts → FunctionOverloadResolver.d.ts} +2 -0
- package/build/types/analysis/IdentifierExpressionMeaning.d.ts +2 -2
- package/build/types/analysis/MemberAccessExpressionMeaning.d.ts +5 -5
- package/build/types/analysis/ModifierFlags.d.ts +7 -2
- package/build/types/analysis/ModifierValidator.d.ts +83 -0
- package/build/types/analysis/PackageMemberNameConflictsValidator.d.ts +2 -3
- package/build/types/analysis/TypeMemberConflictsValidator.d.ts +22 -0
- package/build/types/analysis/control-flow/NarrowableReference.d.ts +4 -4
- package/build/types/analysis/control-flow/Nodes.d.ts +1 -1
- package/build/types/analysis/semantic-context/Declarations.d.ts +2 -2
- package/build/types/analysis/semantic-context/SemanticContextValidatingNameConflicts.d.ts +0 -1
- package/build/types/common/ArrayUtils.d.ts +8 -0
- package/build/types/common/index.d.ts +1 -0
- package/build/types/diagnostic/DiagnosticCode.d.ts +57 -29
- package/build/types/emitter/Entities.d.ts +3 -3
- package/build/types/entities/AliasTypeEntity.d.ts +1 -1
- package/build/types/entities/ConstructorEntity.d.ts +8 -8
- package/build/types/entities/DereferenceOperatorEntity.d.ts +10 -7
- package/build/types/entities/DestructorEntity.d.ts +3 -3
- package/build/types/entities/FunctionEntity.d.ts +14 -14
- package/build/types/entities/FunctionTypeEntity.d.ts +1 -1
- package/build/types/entities/GetterEntity.d.ts +4 -4
- package/build/types/entities/IndexerEntity.d.ts +11 -8
- package/build/types/entities/OperatorEntity.d.ts +7 -7
- package/build/types/entities/SetterEntity.d.ts +4 -4
- package/build/types/entities/StructuredTypeEntity.d.ts +14 -14
- package/build/types/entities/TypeExtensionEntity.d.ts +1 -1
- package/build/types/entities/VariableEntity.d.ts +32 -28
- package/build/types/entities/VariantTypeEntity.d.ts +1 -1
- package/build/types/entities/index.d.ts +29 -0
- package/build/types/project/SourcePackage.d.ts +7 -7
- package/build/types/services/DisplayService.d.ts +2 -2
- package/build/types/services/NodeSemanticInfo.d.ts +4 -4
- package/build/types/tree/KeywordKind.d.ts +1 -1
- package/build/types/tree/green/Nodes.d.ts +3 -3
- package/build/types/tree/red/Nodes.d.ts +2 -2
- package/build/types/ts-interop/Entities.d.ts +29 -29
- package/build/types/ts-interop/TsTypeMembersCreator.d.ts +1 -1
- package/build/types/types/StructuredType.d.ts +2 -0
- package/build/types/types/TypeMembers.d.ts +5 -5
- package/package.json +4 -4
@@ -4,7 +4,7 @@ import { Analyzer } from '../analysis/index.js';
|
|
4
4
|
import { ConstructorDeclaration } from '../tree/index.js';
|
5
5
|
import * as types from '../types/index.js';
|
6
6
|
import type { TypeEntityWithMembers } from './index.js';
|
7
|
-
import { DefinitionKind, EntityHidingLevel, EntityKind, ParameterVariableEntity, TypeMemberEntityContainer
|
7
|
+
import { DefinitionKind, EntityHidingLevel, EntityKind, FieldEntity, ParameterVariableEntity, TypeMemberEntityContainer } from './index.js';
|
8
8
|
export interface ConstructorEntity {
|
9
9
|
readonly kind: EntityKind.Constructor;
|
10
10
|
getValueParameters(): readonly ParameterVariableEntity[];
|
@@ -12,7 +12,7 @@ export interface ConstructorEntity {
|
|
12
12
|
getContainer(): TypeMemberEntityContainer;
|
13
13
|
isDefault(): DefaultConstructorEntityInfo | undefined;
|
14
14
|
isHidden(): EntityHidingLevel | undefined;
|
15
|
-
|
15
|
+
markedAbstract(): boolean;
|
16
16
|
getTags(): readonly Tag[];
|
17
17
|
}
|
18
18
|
export declare class DefaultConstructorEntityInfo {
|
@@ -45,7 +45,7 @@ export declare class ConstructorDeclarationEntity implements ConstructorEntity {
|
|
45
45
|
private readonly _node;
|
46
46
|
readonly kind = EntityKind.Constructor;
|
47
47
|
private readonly _valueParameters;
|
48
|
-
private
|
48
|
+
private _modifierFlags;
|
49
49
|
private get modifierFlags();
|
50
50
|
constructor(_analyzer: Analyzer, _node: ConstructorDeclaration);
|
51
51
|
getValueParameters(): readonly ParameterVariableEntity[];
|
@@ -53,7 +53,7 @@ export declare class ConstructorDeclarationEntity implements ConstructorEntity {
|
|
53
53
|
getContainer(): TypeMemberEntityContainer;
|
54
54
|
isDefault(): DefaultConstructorEntityInfo | undefined;
|
55
55
|
isHidden(): EntityHidingLevel | undefined;
|
56
|
-
|
56
|
+
markedAbstract(): boolean;
|
57
57
|
getTags(): readonly Tag[];
|
58
58
|
}
|
59
59
|
export declare class IntrinsicConstructorEntity implements ConstructorEntity {
|
@@ -61,15 +61,15 @@ export declare class IntrinsicConstructorEntity implements ConstructorEntity {
|
|
61
61
|
private readonly _containingEntity;
|
62
62
|
private readonly _isDefault;
|
63
63
|
private readonly _isHidden;
|
64
|
-
private readonly
|
64
|
+
private readonly _markedAbstract;
|
65
65
|
readonly kind = EntityKind.Constructor;
|
66
|
-
constructor(_valueParameters: readonly ParameterVariableEntity[], _containingEntity: TypeEntityWithMembers, _isDefault: DefaultConstructorEntityInfo | undefined, _isHidden: EntityHidingLevel | undefined,
|
66
|
+
constructor(_valueParameters: readonly ParameterVariableEntity[], _containingEntity: TypeEntityWithMembers, _isDefault: DefaultConstructorEntityInfo | undefined, _isHidden: EntityHidingLevel | undefined, _markedAbstract: boolean);
|
67
67
|
getValueParameters(): readonly ParameterVariableEntity[];
|
68
68
|
getDefinition(): ConstructorEntityDefinition;
|
69
69
|
getContainer(): TypeMemberEntityContainer;
|
70
70
|
isDefault(): DefaultConstructorEntityInfo | undefined;
|
71
71
|
isHidden(): EntityHidingLevel | undefined;
|
72
|
-
|
72
|
+
markedAbstract(): boolean;
|
73
73
|
getTags(): readonly Tag[];
|
74
74
|
}
|
75
75
|
export declare class DefaultConstructorEntity implements ConstructorEntity {
|
@@ -85,7 +85,7 @@ export declare class DefaultConstructorEntity implements ConstructorEntity {
|
|
85
85
|
getContainer(): TypeMemberEntityContainer;
|
86
86
|
isDefault(): DefaultConstructorEntityInfo | undefined;
|
87
87
|
isHidden(): EntityHidingLevel | undefined;
|
88
|
-
|
88
|
+
markedAbstract(): boolean;
|
89
89
|
getTags(): readonly Tag[];
|
90
90
|
private getParametersInfo;
|
91
91
|
private createOrderedParametersForBaseConstructor;
|
@@ -12,11 +12,12 @@ export interface DereferenceOperatorEntity {
|
|
12
12
|
getContainer(): TypeMemberEntityContainer;
|
13
13
|
isStatic(): boolean;
|
14
14
|
isHidden(): EntityHidingLevel | undefined;
|
15
|
-
|
16
|
-
|
17
|
-
|
15
|
+
isOverride(): boolean;
|
16
|
+
markedBasic(): boolean;
|
17
|
+
markedAbstract(): boolean;
|
18
18
|
getTags(): readonly Tag[];
|
19
19
|
getOverriddenMembers(): readonly types.DereferenceOperator[];
|
20
|
+
ensureAllDiagnosticsReported?(): void;
|
20
21
|
}
|
21
22
|
export type DereferenceOperatorEntityDefinition = {
|
22
23
|
kind: DefinitionKind.Source;
|
@@ -31,7 +32,8 @@ export declare class DereferenceOperatorDeclarationEntity implements Dereference
|
|
31
32
|
private readonly _setterDeclaration;
|
32
33
|
private readonly _getterOrSetterDeclaration;
|
33
34
|
private readonly _overriddenMembers;
|
34
|
-
private
|
35
|
+
private _modifierFlags;
|
36
|
+
private _hasReportedAllDiagnostics;
|
35
37
|
private get modifierFlags();
|
36
38
|
constructor(analyzer: Analyzer, getterDeclaration: DereferencedVariableGetterDeclaration | undefined, setterDeclaration: DereferencedVariableSetterDeclaration | undefined);
|
37
39
|
getType(): types.Type;
|
@@ -41,9 +43,10 @@ export declare class DereferenceOperatorDeclarationEntity implements Dereference
|
|
41
43
|
getContainer(): TypeMemberEntityContainer;
|
42
44
|
isStatic(): boolean;
|
43
45
|
isHidden(): EntityHidingLevel | undefined;
|
44
|
-
|
45
|
-
|
46
|
-
|
46
|
+
markedBasic(): boolean;
|
47
|
+
isOverride(): boolean;
|
48
|
+
markedAbstract(): boolean;
|
47
49
|
getTags(): readonly Tag[];
|
48
50
|
getOverriddenMembers(): readonly types.DereferenceOperator[];
|
51
|
+
ensureAllDiagnosticsReported(): void;
|
49
52
|
}
|
@@ -8,7 +8,7 @@ export interface DestructorEntity {
|
|
8
8
|
getContainer(): TypeMemberEntityContainer;
|
9
9
|
getDefinition(): DestructorEntityDefinition;
|
10
10
|
isHidden(): EntityHidingLevel | undefined;
|
11
|
-
|
11
|
+
markedAbstract(): boolean;
|
12
12
|
getTags(): readonly Tag[];
|
13
13
|
}
|
14
14
|
type DestructorEntityDefinition = {
|
@@ -20,14 +20,14 @@ export declare class DestructorDeclarationEntity implements DestructorEntity {
|
|
20
20
|
private readonly _node;
|
21
21
|
readonly kind = EntityKind.Destructor;
|
22
22
|
private readonly _valueParameters;
|
23
|
-
private
|
23
|
+
private _modifierFlags;
|
24
24
|
private get modifierFlags();
|
25
25
|
constructor(_analyzer: Analyzer, _node: DestructorDeclaration);
|
26
26
|
getValueParameters(): readonly ParameterVariableEntity[];
|
27
27
|
getContainer(): TypeMemberEntityContainer;
|
28
28
|
getDefinition(): DestructorEntityDefinition;
|
29
29
|
isHidden(): EntityHidingLevel | undefined;
|
30
|
-
|
30
|
+
markedAbstract(): boolean;
|
31
31
|
getTags(): readonly Tag[];
|
32
32
|
}
|
33
33
|
export {};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Tag } from '../analysis/Tags.js';
|
2
2
|
import { Analyzer } from '../analysis/index.js';
|
3
3
|
import { Name } from '../common/index.js';
|
4
|
-
import { NestedFunctionDeclaration, PackageFunctionDeclaration
|
4
|
+
import { MethodDeclaration, NestedFunctionDeclaration, PackageFunctionDeclaration } from '../tree/index.js';
|
5
5
|
import * as types from '../types/index.js';
|
6
6
|
import type { PackageEntity } from './index.js';
|
7
7
|
import { DefinitionKind, Entity, EntityHidingLevel, EntityKind, ParameterVariableEntity, SubstitutionApplicationMode, TypeMemberEntityContainer, TypeParameterEntity } from './index.js';
|
@@ -14,9 +14,9 @@ export interface MethodEntity extends IFunctionEntity {
|
|
14
14
|
readonly subkind: 'method';
|
15
15
|
getContainer(): TypeMemberEntityContainer;
|
16
16
|
isStatic(): boolean;
|
17
|
-
|
18
|
-
|
19
|
-
|
17
|
+
isOverride(): boolean;
|
18
|
+
markedBasic(): boolean;
|
19
|
+
markedAbstract(): boolean;
|
20
20
|
isModifyingOwningPlainObject(): boolean;
|
21
21
|
isFunctionTypeInvokeMethod(): boolean;
|
22
22
|
getOverriddenMembers(): readonly types.Method[];
|
@@ -53,7 +53,7 @@ export declare class PackageFunctionDeclarationEntity implements PackageFunction
|
|
53
53
|
readonly subkind = "package";
|
54
54
|
private readonly _typeParameters;
|
55
55
|
private readonly _valueParameters;
|
56
|
-
private
|
56
|
+
private _modifierFlags;
|
57
57
|
private get modifierFlags();
|
58
58
|
constructor(_analyzer: Analyzer, _node: PackageFunctionDeclaration);
|
59
59
|
getName(): Name;
|
@@ -76,7 +76,7 @@ export declare class MethodDeclarationEntity implements MethodEntity {
|
|
76
76
|
private readonly _typeParameters;
|
77
77
|
private readonly _valueParameters;
|
78
78
|
private readonly _overriddenMember;
|
79
|
-
private
|
79
|
+
private _modifierFlags;
|
80
80
|
private get modifierFlags();
|
81
81
|
constructor(_analyzer: Analyzer, _node: MethodDeclaration);
|
82
82
|
getName(): Name;
|
@@ -91,9 +91,9 @@ export declare class MethodDeclarationEntity implements MethodEntity {
|
|
91
91
|
isFunctionTypeInvokeMethod(): boolean;
|
92
92
|
getContainer(): TypeMemberEntityContainer;
|
93
93
|
isStatic(): boolean;
|
94
|
-
|
95
|
-
|
96
|
-
|
94
|
+
markedBasic(): boolean;
|
95
|
+
isOverride(): boolean;
|
96
|
+
markedAbstract(): boolean;
|
97
97
|
isModifyingOwningPlainObject(): boolean;
|
98
98
|
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
99
99
|
getOverriddenMembers(): readonly types.Method[];
|
@@ -154,13 +154,13 @@ export declare class IntrinsicMethodEntity implements MethodEntity {
|
|
154
154
|
private readonly _container;
|
155
155
|
private readonly _isStatic;
|
156
156
|
private readonly _isBasic;
|
157
|
-
private readonly
|
157
|
+
private readonly _isOverride;
|
158
158
|
private readonly _isAbstract;
|
159
159
|
private readonly _isModifyingOwningPlainObject;
|
160
160
|
private readonly _overriddenMembers;
|
161
161
|
readonly kind = EntityKind.Function;
|
162
162
|
readonly subkind = "method";
|
163
|
-
constructor(_name: Name, _typeParameters: readonly TypeParameterEntity[], _valueParameters: readonly ParameterVariableEntity[], _returnType: types.Type, _isAsync: boolean, _isHidden: EntityHidingLevel | undefined, _tags: readonly Tag[], _isFunctionTypeInvokeMethod: boolean, _container: TypeMemberEntityContainer, _isStatic: boolean, _isBasic: boolean,
|
163
|
+
constructor(_name: Name, _typeParameters: readonly TypeParameterEntity[], _valueParameters: readonly ParameterVariableEntity[], _returnType: types.Type, _isAsync: boolean, _isHidden: EntityHidingLevel | undefined, _tags: readonly Tag[], _isFunctionTypeInvokeMethod: boolean, _container: TypeMemberEntityContainer, _isStatic: boolean, _isBasic: boolean, _isOverride: boolean, _isAbstract: boolean, _isModifyingOwningPlainObject: boolean, _overriddenMembers: readonly types.Method[]);
|
164
164
|
getName(): Name;
|
165
165
|
getTypeParameters(): readonly TypeParameterEntity[];
|
166
166
|
getValueParameters(): readonly ParameterVariableEntity[];
|
@@ -173,9 +173,9 @@ export declare class IntrinsicMethodEntity implements MethodEntity {
|
|
173
173
|
isFunctionTypeInvokeMethod(): boolean;
|
174
174
|
getContainer(): TypeMemberEntityContainer;
|
175
175
|
isStatic(): boolean;
|
176
|
-
|
177
|
-
|
178
|
-
|
176
|
+
markedBasic(): boolean;
|
177
|
+
isOverride(): boolean;
|
178
|
+
markedAbstract(): boolean;
|
179
179
|
isModifyingOwningPlainObject(): boolean;
|
180
180
|
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
181
181
|
getOverriddenMembers(): readonly types.Method[];
|
@@ -54,7 +54,7 @@ export declare class PackageFunctionTypeDeclarationEntity implements PackageFunc
|
|
54
54
|
private readonly _valueParameters;
|
55
55
|
private readonly _members;
|
56
56
|
private readonly _baseObjectType;
|
57
|
-
private
|
57
|
+
private _modifierFlags;
|
58
58
|
private get modifierFlags();
|
59
59
|
constructor(_analyzer: Analyzer, _node: PackageFunctionTypeDeclaration);
|
60
60
|
getNaming(): EntityNaming;
|
@@ -26,7 +26,7 @@ export declare class PackageVariableGetterDeclarationEntity implements GetterEnt
|
|
26
26
|
private readonly _analyzer;
|
27
27
|
private readonly _node;
|
28
28
|
readonly kind = EntityKind.Getter;
|
29
|
-
private
|
29
|
+
private _modifierFlags;
|
30
30
|
private get modifierFlags();
|
31
31
|
constructor(_analyzer: Analyzer, _node: PackageVariableGetterDeclaration);
|
32
32
|
getReturnType(): types.Type;
|
@@ -40,7 +40,7 @@ export declare class FieldGetterDeclarationEntity implements GetterEntity {
|
|
40
40
|
private readonly _analyzer;
|
41
41
|
private readonly _node;
|
42
42
|
readonly kind = EntityKind.Getter;
|
43
|
-
private
|
43
|
+
private _modifierFlags;
|
44
44
|
private get modifierFlags();
|
45
45
|
constructor(_analyzer: Analyzer, _node: FieldGetterDeclaration);
|
46
46
|
getReturnType(): types.Type;
|
@@ -54,7 +54,7 @@ export declare class IndexedElementGetterDeclarationEntity implements GetterEnti
|
|
54
54
|
private readonly _analyzer;
|
55
55
|
private readonly _node;
|
56
56
|
readonly kind = EntityKind.Getter;
|
57
|
-
private
|
57
|
+
private _modifierFlags;
|
58
58
|
private get modifierFlags();
|
59
59
|
constructor(_analyzer: Analyzer, _node: IndexedElementGetterDeclaration);
|
60
60
|
getReturnType(): types.Type;
|
@@ -68,7 +68,7 @@ export declare class DereferencedVariableGetterDeclarationEntity implements Gett
|
|
68
68
|
private readonly _analyzer;
|
69
69
|
private readonly _node;
|
70
70
|
readonly kind = EntityKind.Getter;
|
71
|
-
private
|
71
|
+
private _modifierFlags;
|
72
72
|
private get modifierFlags();
|
73
73
|
constructor(_analyzer: Analyzer, _node: DereferencedVariableGetterDeclaration);
|
74
74
|
getReturnType(): types.Type;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Analyzer } from '../analysis/index.js';
|
2
2
|
import { Tag } from '../analysis/Tags.js';
|
3
|
-
import {
|
3
|
+
import { IndexedElementGetterDeclaration, IndexedElementSetterDeclaration, ParameterDeclaration } from '../tree/index.js';
|
4
4
|
import * as types from '../types/index.js';
|
5
5
|
import { DefinitionKind, EntityHidingLevel, EntityKind, GetterEntity, ParameterVariableEntity, SetterEntity, TypeMemberEntityContainer } from './index.js';
|
6
6
|
export interface IndexerEntity {
|
@@ -13,11 +13,12 @@ export interface IndexerEntity {
|
|
13
13
|
getContainer(): TypeMemberEntityContainer;
|
14
14
|
isStatic(): boolean;
|
15
15
|
isHidden(): EntityHidingLevel | undefined;
|
16
|
-
|
17
|
-
|
18
|
-
|
16
|
+
isOverride(): boolean;
|
17
|
+
markedBasic(): boolean;
|
18
|
+
markedAbstract(): boolean;
|
19
19
|
getTags(): readonly Tag[];
|
20
20
|
getOverriddenMembers(): readonly types.Indexer[];
|
21
|
+
ensureAllDiagnosticsReported?(): void;
|
21
22
|
}
|
22
23
|
export type IndexerEntityDefinition = {
|
23
24
|
kind: DefinitionKind.Source;
|
@@ -38,7 +39,8 @@ export declare class IndexerDeclarationEntity implements SourceIndexerEntity {
|
|
38
39
|
private readonly _getterOrSetterDeclaration;
|
39
40
|
private readonly _parameters;
|
40
41
|
private readonly _overriddenMembers;
|
41
|
-
private
|
42
|
+
private _modifierFlags;
|
43
|
+
private _hasReportedAllDiagnostics;
|
42
44
|
private get parameters();
|
43
45
|
private get modifierFlags();
|
44
46
|
constructor(analyzer: Analyzer, getterDeclaration: IndexedElementGetterDeclaration | undefined, setterDeclaration: IndexedElementSetterDeclaration | undefined);
|
@@ -51,10 +53,11 @@ export declare class IndexerDeclarationEntity implements SourceIndexerEntity {
|
|
51
53
|
getContainer(): TypeMemberEntityContainer;
|
52
54
|
isStatic(): boolean;
|
53
55
|
isHidden(): EntityHidingLevel | undefined;
|
54
|
-
|
55
|
-
|
56
|
-
|
56
|
+
markedBasic(): boolean;
|
57
|
+
isOverride(): boolean;
|
58
|
+
markedAbstract(): boolean;
|
57
59
|
getTags(): readonly Tag[];
|
58
60
|
getOverriddenMembers(): readonly types.Indexer[];
|
61
|
+
ensureAllDiagnosticsReported(): void;
|
59
62
|
private createParameters;
|
60
63
|
}
|
@@ -11,9 +11,9 @@ export interface OperatorEntity {
|
|
11
11
|
getDefinition(): OperatorDefinition;
|
12
12
|
getContainer(): TypeMemberEntityContainer;
|
13
13
|
isStatic(): boolean;
|
14
|
-
|
15
|
-
|
16
|
-
|
14
|
+
isOverride(): boolean;
|
15
|
+
markedBasic(): boolean;
|
16
|
+
markedAbstract(): boolean;
|
17
17
|
isHidden(): EntityHidingLevel | undefined;
|
18
18
|
getTags(): readonly Tag[];
|
19
19
|
getOverriddenMembers(): readonly types.Operator[];
|
@@ -29,7 +29,7 @@ export declare class OperatorDeclarationEntity implements OperatorEntity {
|
|
29
29
|
private readonly _operatorKind;
|
30
30
|
private readonly _valueParameters;
|
31
31
|
private readonly _overriddenMembers;
|
32
|
-
private
|
32
|
+
private _modifierFlags;
|
33
33
|
private get modifierFlags();
|
34
34
|
constructor(_analyzer: Analyzer, _node: tree.OperatorDeclaration);
|
35
35
|
getOperatorKind(): OperatorKind;
|
@@ -38,9 +38,9 @@ export declare class OperatorDeclarationEntity implements OperatorEntity {
|
|
38
38
|
getDefinition(): OperatorDefinition;
|
39
39
|
getContainer(): TypeMemberEntityContainer;
|
40
40
|
isStatic(): boolean;
|
41
|
-
|
42
|
-
|
43
|
-
|
41
|
+
markedBasic(): boolean;
|
42
|
+
isOverride(): boolean;
|
43
|
+
markedAbstract(): boolean;
|
44
44
|
isHidden(): EntityHidingLevel | undefined;
|
45
45
|
getTags(): readonly Tag[];
|
46
46
|
getOverriddenMembers(): readonly types.Operator[];
|
@@ -24,7 +24,7 @@ export declare class PackageVariableSetterDeclarationEntity implements SetterEnt
|
|
24
24
|
private readonly _analyzer;
|
25
25
|
private readonly _node;
|
26
26
|
readonly kind = EntityKind.Setter;
|
27
|
-
private
|
27
|
+
private _modifierFlags;
|
28
28
|
private get modifierFlags();
|
29
29
|
constructor(_analyzer: Analyzer, _node: PackageVariableSetterDeclaration);
|
30
30
|
getDefinition(): SetterEntityDefinition;
|
@@ -37,7 +37,7 @@ export declare class FieldSetterDeclarationEntity implements SetterEntity {
|
|
37
37
|
private readonly _analyzer;
|
38
38
|
private readonly _node;
|
39
39
|
readonly kind = EntityKind.Setter;
|
40
|
-
private
|
40
|
+
private _modifierFlags;
|
41
41
|
private get modifierFlags();
|
42
42
|
constructor(_analyzer: Analyzer, _node: FieldSetterDeclaration);
|
43
43
|
getDefinition(): SetterEntityDefinition;
|
@@ -50,7 +50,7 @@ export declare class IndexedElementSetterDeclarationEntity implements SetterEnti
|
|
50
50
|
private readonly _analyzer;
|
51
51
|
private readonly _node;
|
52
52
|
readonly kind = EntityKind.Setter;
|
53
|
-
private
|
53
|
+
private _modifierFlags;
|
54
54
|
private get modifierFlags();
|
55
55
|
constructor(_analyzer: Analyzer, _node: IndexedElementSetterDeclaration);
|
56
56
|
getDefinition(): SetterEntityDefinition;
|
@@ -63,7 +63,7 @@ export declare class DereferencedVariableSetterDeclarationEntity implements Sett
|
|
63
63
|
private readonly _analyzer;
|
64
64
|
private readonly _node;
|
65
65
|
readonly kind = EntityKind.Setter;
|
66
|
-
private
|
66
|
+
private _modifierFlags;
|
67
67
|
private get modifierFlags();
|
68
68
|
constructor(_analyzer: Analyzer, _node: DereferencedVariableSetterDeclaration);
|
69
69
|
getDefinition(): SetterEntityDefinition;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Tag } from '../analysis/Tags.js';
|
2
2
|
import { Analyzer } from '../analysis/index.js';
|
3
3
|
import { Name } from '../common/index.js';
|
4
|
-
import
|
4
|
+
import * as tree from '../tree/index.js';
|
5
5
|
import * as types from '../types/index.js';
|
6
6
|
import { EntityNaming } from './EntityNaming.js';
|
7
7
|
import { NamedTypeMemberEntity, OriginalTypeEntityMembers } from './TypeEntityMembers.js';
|
@@ -24,7 +24,7 @@ interface IStructuredTypeEntity extends ITypeEntity {
|
|
24
24
|
getTypeParameters(): readonly TypeParameterEntity[];
|
25
25
|
getMembers(): OriginalTypeEntityMembers;
|
26
26
|
getDefinition(): StructuredTypeEntityDefinition;
|
27
|
-
|
27
|
+
markedBasic(): boolean;
|
28
28
|
isAbstract(): boolean;
|
29
29
|
isAspect(): boolean;
|
30
30
|
isRefObject(): boolean;
|
@@ -50,7 +50,7 @@ export type StructuredTypeEntityDefinition = {
|
|
50
50
|
} | {
|
51
51
|
kind: DefinitionKind.TypeScript;
|
52
52
|
};
|
53
|
-
type StructuredTypeEntityDefinitionNode = PackageStructuredTypeDeclaration | AnonymousStructuredTypeDeclaration;
|
53
|
+
type StructuredTypeEntityDefinitionNode = tree.PackageStructuredTypeDeclaration | tree.AnonymousStructuredTypeDeclaration;
|
54
54
|
/**
|
55
55
|
* Класс позволяет работать с базовым объектным типом, исключая циклы наследования.
|
56
56
|
*
|
@@ -122,14 +122,14 @@ export declare class PackageStructuredTypeDeclarationEntity implements PackageSt
|
|
122
122
|
private readonly _analyzer;
|
123
123
|
private readonly _node;
|
124
124
|
private readonly _data;
|
125
|
-
constructor(analyzer: Analyzer, node: PackageStructuredTypeDeclaration);
|
125
|
+
constructor(analyzer: Analyzer, node: tree.PackageStructuredTypeDeclaration);
|
126
126
|
getNaming(): EntityNaming;
|
127
127
|
getName(): Name;
|
128
128
|
getContainingPackage(): PackageEntity;
|
129
129
|
getTypeParameters(): readonly TypeParameterEntity[];
|
130
130
|
getMembers(): OriginalTypeEntityMembers;
|
131
131
|
getDefinition(): StructuredTypeEntityDefinition;
|
132
|
-
|
132
|
+
markedBasic(): boolean;
|
133
133
|
isAbstract(): boolean;
|
134
134
|
isAspect(): boolean;
|
135
135
|
isRefObject(): boolean;
|
@@ -146,19 +146,18 @@ export declare class SourcePackageStructuredTypeDeclarationData {
|
|
146
146
|
private readonly _node;
|
147
147
|
private readonly _entity;
|
148
148
|
private readonly _typeParameters;
|
149
|
-
private readonly
|
150
|
-
private readonly _baseAspectTypes;
|
149
|
+
private readonly _baseTypes;
|
151
150
|
private readonly _members;
|
152
|
-
private
|
151
|
+
private _modifierFlags;
|
153
152
|
private get modifierFlags();
|
154
|
-
constructor(analyzer: Analyzer, node: PackageStructuredTypeDeclaration, entity: PackageStructuredTypeEntity);
|
153
|
+
constructor(analyzer: Analyzer, node: tree.PackageStructuredTypeDeclaration, entity: PackageStructuredTypeEntity);
|
155
154
|
getNaming(): EntityNaming;
|
156
155
|
getName(): Name;
|
157
156
|
getContainingPackage(): PackageEntity;
|
158
157
|
getTypeParameters(): readonly TypeParameterEntity[];
|
159
158
|
getMembers(): OriginalTypeEntityMembers;
|
160
159
|
getDefinition(): StructuredTypeEntityDefinition;
|
161
|
-
|
160
|
+
markedBasic(): boolean;
|
162
161
|
isAbstract(): boolean;
|
163
162
|
isAspect(): boolean;
|
164
163
|
isRefObject(): boolean;
|
@@ -169,6 +168,7 @@ export declare class SourcePackageStructuredTypeDeclarationData {
|
|
169
168
|
isHidden(): EntityHidingLevel | undefined;
|
170
169
|
getTags(): readonly Tag[];
|
171
170
|
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
171
|
+
private getBaseTypes;
|
172
172
|
}
|
173
173
|
export declare class AnonymousStructuredTypeDeclarationEntity implements AnonymousStructuredTypeEntity {
|
174
174
|
private readonly _analyzer;
|
@@ -176,15 +176,14 @@ export declare class AnonymousStructuredTypeDeclarationEntity implements Anonymo
|
|
176
176
|
readonly kind = EntityKind.Type;
|
177
177
|
readonly typeEntityKind = TypeEntityKind.Structured;
|
178
178
|
readonly subkind = "anonymous";
|
179
|
-
private readonly
|
180
|
-
private readonly _baseAspectTypes;
|
179
|
+
private readonly _baseTypes;
|
181
180
|
private readonly _members;
|
182
|
-
constructor(_analyzer: Analyzer, _node: AnonymousStructuredTypeDeclaration);
|
181
|
+
constructor(_analyzer: Analyzer, _node: tree.AnonymousStructuredTypeDeclaration);
|
183
182
|
getNaming(): EntityNaming;
|
184
183
|
getTypeParameters(): readonly TypeParameterEntity[];
|
185
184
|
getMembers(): OriginalTypeEntityMembers;
|
186
185
|
getDefinition(): StructuredTypeEntityDefinition;
|
187
|
-
|
186
|
+
markedBasic(): boolean;
|
188
187
|
isAbstract(): boolean;
|
189
188
|
isAspect(): boolean;
|
190
189
|
isRefObject(): boolean;
|
@@ -196,6 +195,7 @@ export declare class AnonymousStructuredTypeDeclarationEntity implements Anonymo
|
|
196
195
|
getTags(): readonly Tag[];
|
197
196
|
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
198
197
|
getContainingPackage(): PackageEntity;
|
198
|
+
private getBaseTypes;
|
199
199
|
}
|
200
200
|
export declare class UnfinishedIntrinsicPackageStructuredTypeEntity {
|
201
201
|
private readonly _unfinishedValue;
|
@@ -21,7 +21,7 @@ export declare class SourceTypeExtensionEntity implements TypeExtensionEntity {
|
|
21
21
|
private readonly _analyzer;
|
22
22
|
private readonly _node;
|
23
23
|
private readonly _members;
|
24
|
-
private
|
24
|
+
private _modifierFlags;
|
25
25
|
private get modifierFlags();
|
26
26
|
constructor(analyzer: Analyzer, node: TypeExtensionDeclaration);
|
27
27
|
getMembers(): OriginalTypeEntityMembers;
|
@@ -15,10 +15,10 @@ export interface FieldEntity extends IVariableEntity {
|
|
15
15
|
readonly subkind: 'field';
|
16
16
|
getContainer(): TypeMemberEntityContainer;
|
17
17
|
isStatic(): boolean;
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
getOverriddenMembers(): readonly types.
|
18
|
+
isOverride(): boolean;
|
19
|
+
markedBasic(): boolean;
|
20
|
+
markedAbstract(): boolean;
|
21
|
+
getOverriddenMembers(): readonly types.Field[];
|
22
22
|
isVariant(): boolean;
|
23
23
|
}
|
24
24
|
export interface ParameterVariableEntity extends IVariableEntity {
|
@@ -109,7 +109,7 @@ export declare class PackageVariableDeclarationEntity implements PackageVariable
|
|
109
109
|
readonly kind = EntityKind.Variable;
|
110
110
|
readonly subkind = "package";
|
111
111
|
private readonly _typeInferrer;
|
112
|
-
private
|
112
|
+
private _modifierFlags;
|
113
113
|
private _hasReportedAllDiagnostics;
|
114
114
|
private get modifierFlags();
|
115
115
|
constructor(_analyzer: Analyzer, _node: tree.PackageVariableDeclaration);
|
@@ -132,7 +132,8 @@ export declare class ComputedPackageVariableDeclarationEntity implements Package
|
|
132
132
|
private readonly _getterDeclaration;
|
133
133
|
private readonly _setterDeclaration;
|
134
134
|
private readonly _getterOrSetterDeclaration;
|
135
|
-
private
|
135
|
+
private _modifierFlags;
|
136
|
+
private _hasReportedAllDiagnostics;
|
136
137
|
private get modifierFlags();
|
137
138
|
constructor(analyzer: Analyzer, getterDeclaration: tree.PackageVariableGetterDeclaration | undefined, setterDeclaration: tree.PackageVariableSetterDeclaration | undefined);
|
138
139
|
getName(): Name;
|
@@ -145,6 +146,7 @@ export declare class ComputedPackageVariableDeclarationEntity implements Package
|
|
145
146
|
getSetter(): SetterEntity | undefined;
|
146
147
|
isSpecial(): SpecialVariableEntityInfo | undefined;
|
147
148
|
getTags(): readonly Tag[];
|
149
|
+
ensureAllDiagnosticsReported(): void;
|
148
150
|
}
|
149
151
|
export declare class FieldDeclarationEntity implements FieldEntity {
|
150
152
|
readonly kind = EntityKind.Variable;
|
@@ -153,7 +155,7 @@ export declare class FieldDeclarationEntity implements FieldEntity {
|
|
153
155
|
private readonly _node;
|
154
156
|
private readonly _typeInferrer;
|
155
157
|
private readonly _overriddenMembers;
|
156
|
-
private
|
158
|
+
private _modifierFlags;
|
157
159
|
private _hasReportedAllDiagnostics;
|
158
160
|
private get modifierFlags();
|
159
161
|
constructor(analyzer: Analyzer, node: tree.FieldDeclaration);
|
@@ -168,10 +170,10 @@ export declare class FieldDeclarationEntity implements FieldEntity {
|
|
168
170
|
getTags(): readonly Tag[];
|
169
171
|
getContainer(): TypeMemberEntityContainer;
|
170
172
|
isStatic(): boolean;
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
getOverriddenMembers(): readonly types.
|
173
|
+
markedBasic(): boolean;
|
174
|
+
isOverride(): boolean;
|
175
|
+
markedAbstract(): boolean;
|
176
|
+
getOverriddenMembers(): readonly types.Field[];
|
175
177
|
isVariant(): boolean;
|
176
178
|
ensureAllDiagnosticsReported(): void;
|
177
179
|
}
|
@@ -183,7 +185,8 @@ export declare class ComputedFieldDeclarationEntity implements FieldEntity {
|
|
183
185
|
private readonly _setterDeclaration;
|
184
186
|
private readonly _getterOrSetterDeclaration;
|
185
187
|
private readonly _overriddenMembers;
|
186
|
-
private
|
188
|
+
private _modifierFlags;
|
189
|
+
private _hasReportedAllDiagnostics;
|
187
190
|
private get modifierFlags();
|
188
191
|
constructor(analyzer: Analyzer, getterDeclaration: tree.FieldGetterDeclaration | undefined, setterDeclaration: tree.FieldSetterDeclaration | undefined);
|
189
192
|
getName(): Name;
|
@@ -192,16 +195,17 @@ export declare class ComputedFieldDeclarationEntity implements FieldEntity {
|
|
192
195
|
isHidden(): EntityHidingLevel | undefined;
|
193
196
|
isConstant(): boolean;
|
194
197
|
isStatic(): boolean;
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
+
markedBasic(): boolean;
|
199
|
+
isOverride(): boolean;
|
200
|
+
markedAbstract(): boolean;
|
198
201
|
getDefinition(): VariableEntityDefinition;
|
199
202
|
getGetter(): GetterEntity | undefined;
|
200
203
|
getSetter(): SetterEntity | undefined;
|
201
204
|
isSpecial(): SpecialVariableEntityInfo | undefined;
|
202
205
|
getTags(): readonly Tag[];
|
203
|
-
getOverriddenMembers(): readonly types.
|
206
|
+
getOverriddenMembers(): readonly types.Field[];
|
204
207
|
isVariant(): boolean;
|
208
|
+
ensureAllDiagnosticsReported(): void;
|
205
209
|
}
|
206
210
|
export declare class VariantDeclarationEntity implements FieldEntity {
|
207
211
|
readonly kind = EntityKind.Variable;
|
@@ -222,10 +226,10 @@ export declare class VariantDeclarationEntity implements FieldEntity {
|
|
222
226
|
getTags(): readonly Tag[];
|
223
227
|
getContainer(): TypeMemberEntityContainer;
|
224
228
|
isStatic(): boolean;
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
getOverriddenMembers(): readonly types.
|
229
|
+
markedBasic(): boolean;
|
230
|
+
isOverride(): boolean;
|
231
|
+
markedAbstract(): boolean;
|
232
|
+
getOverriddenMembers(): readonly types.Field[];
|
229
233
|
isVariant(): boolean;
|
230
234
|
}
|
231
235
|
export declare class LocalVariableDeclarationEntity implements LocalVariableEntity {
|
@@ -383,9 +387,9 @@ export declare class IntrinsicFieldEntity implements FieldEntity {
|
|
383
387
|
private readonly _type;
|
384
388
|
private readonly _container;
|
385
389
|
private readonly _isStatic;
|
386
|
-
private readonly
|
387
|
-
private readonly
|
388
|
-
private readonly
|
390
|
+
private readonly _markedBasic;
|
391
|
+
private readonly _isOverride;
|
392
|
+
private readonly _markedAbstract;
|
389
393
|
private readonly _isSpecial;
|
390
394
|
private readonly _isHidden;
|
391
395
|
private readonly _getter;
|
@@ -393,7 +397,7 @@ export declare class IntrinsicFieldEntity implements FieldEntity {
|
|
393
397
|
private readonly _overriddenMembers;
|
394
398
|
readonly kind = EntityKind.Variable;
|
395
399
|
readonly subkind = "field";
|
396
|
-
constructor(_name: Name, _type: types.Type, _container: TypeMemberEntityContainer, _isStatic: boolean,
|
400
|
+
constructor(_name: Name, _type: types.Type, _container: TypeMemberEntityContainer, _isStatic: boolean, _markedBasic: boolean, _isOverride: boolean, _markedAbstract: boolean, _isSpecial: SpecialVariableEntityInfo | undefined, _isHidden: EntityHidingLevel | undefined, _getter: GetterEntity | undefined, _setter: SetterEntity | undefined, _overriddenMembers: readonly types.Field[]);
|
397
401
|
getName(): Name;
|
398
402
|
getType(): types.Type;
|
399
403
|
getDefinition(): VariableEntityDefinition;
|
@@ -405,10 +409,10 @@ export declare class IntrinsicFieldEntity implements FieldEntity {
|
|
405
409
|
getTags(): readonly Tag[];
|
406
410
|
getContainer(): TypeMemberEntityContainer;
|
407
411
|
isStatic(): boolean;
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
getOverriddenMembers(): readonly types.
|
412
|
+
markedBasic(): boolean;
|
413
|
+
isOverride(): boolean;
|
414
|
+
markedAbstract(): boolean;
|
415
|
+
getOverriddenMembers(): readonly types.Field[];
|
412
416
|
isVariant(): boolean;
|
413
417
|
}
|
414
418
|
export declare class IntrinsicParameterVariableEntity implements ParameterVariableEntity {
|
@@ -49,7 +49,7 @@ export declare class PackageVariantTypeDeclarationEntity implements PackageVaria
|
|
49
49
|
private readonly _members;
|
50
50
|
private readonly _underlyingType;
|
51
51
|
private readonly _baseObjectType;
|
52
|
-
private
|
52
|
+
private _modifierFlags;
|
53
53
|
private get modifierFlags();
|
54
54
|
constructor(_analyzer: Analyzer, _node: PackageVariantTypeDeclaration);
|
55
55
|
getNaming(): EntityNaming;
|