@artel/artc 0.6.25281 → 0.6.25283
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 +18 -16
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +1182 -979
- package/build/{chunk-TIWNEKIS.js → chunk-2Q4QKW7T.js} +9266 -8683
- package/build/{chunk-7OXU5662.js → chunk-7RAZAZE6.js} +3 -3
- package/build/{chunk-NVHCHE3R.js → chunk-MJ2ZVHII.js} +3 -3
- package/build/types/analysis/AccessedFunction.d.ts +4 -0
- package/build/types/analysis/Analyzer.d.ts +68 -109
- package/build/types/analysis/AutotypeCallExpressionMeaning.d.ts +5 -5
- package/build/types/analysis/BaseExpressionMeaning.d.ts +8 -18
- package/build/types/analysis/CallExpressionMeaning.d.ts +4 -9
- package/build/types/analysis/DereferenceExpressionMeaning.d.ts +3 -4
- package/build/types/analysis/IdentifierExpressionMeaning.d.ts +8 -16
- package/build/types/analysis/IndexedAccessExpressionMeaning.d.ts +4 -8
- package/build/types/analysis/MemberAccessExpressionMeaning.d.ts +8 -16
- package/build/types/analysis/NamedTypeResolver.d.ts +4 -4
- package/build/types/analysis/NamedTypeSpecifierResolver.d.ts +4 -4
- package/build/types/analysis/NodeTypeUtils.d.ts +1 -1
- package/build/types/analysis/ObjectExpressionMeaning.d.ts +4 -9
- package/build/types/analysis/PackageMemberConflictsValidator.d.ts +1 -1
- package/build/types/analysis/ResolvedImplementationPackage.d.ts +48 -0
- package/build/types/analysis/SourceFileAnalyzer.d.ts +1 -0
- package/build/types/analysis/SubstitutedFunction.d.ts +3 -0
- package/build/types/analysis/TagMeaning.d.ts +4 -4
- package/build/types/analysis/UserDefinableBinaryOperatorResolver.d.ts +4 -3
- package/build/types/analysis/UserDefinableUnaryOperatorResolver.d.ts +4 -3
- package/build/types/analysis/Utils.d.ts +1 -0
- package/build/types/analysis/semantic-context/FieldWithInitializerSemanticContext.d.ts +4 -5
- package/build/types/analysis/semantic-context/SemanticContextBase.d.ts +4 -4
- package/build/types/analysis/semantic-context/SemanticContextValidatingNameConflicts.d.ts +4 -5
- package/build/types/analysis/semantic-context/SourceFileSemanticContext.d.ts +11 -7
- package/build/types/analysis/semantic-context/SubprogramSemanticContext.d.ts +4 -5
- package/build/types/analysis/semantic-context/TypeSemanticContext.d.ts +8 -8
- package/build/types/api/Api.d.ts +4 -5
- package/build/types/common/ArrayUtils.d.ts +3 -1
- package/build/types/common/Displayable.d.ts +4 -4
- package/build/types/common/FormatString.d.ts +1 -1
- package/build/types/common/HelperPhrases.d.ts +2 -1
- package/build/types/common/LocalizationHelper.d.ts +6 -4
- package/build/types/common/index.d.ts +3 -0
- package/build/types/diagnostic/DiagnosticCode.d.ts +248 -238
- package/build/types/diagnostic/DiagnosticData.d.ts +2 -2
- package/build/types/emitter/EntityMap.d.ts +1 -1
- package/build/types/emitter/IrBuilder.d.ts +3 -1
- package/build/types/emitter/IrFactory.d.ts +2 -2
- package/build/types/emitter/Transformer.d.ts +3 -3
- package/build/types/emitter/ir/Nodes.d.ts +17 -8
- package/build/types/emitter/ir/types.d.ts +2 -2
- package/build/types/entities/Entity.d.ts +0 -12
- package/build/types/entities/EntityLocalizationContext.d.ts +1 -2
- package/build/types/entities/IEntity.d.ts +2 -1
- package/build/types/entities/OperatorKind.d.ts +6 -3
- package/build/types/entities/{PackageMembers.d.ts → PackageEntityMembers.d.ts} +1 -1
- package/build/types/entities/TypeEntity.d.ts +4 -4
- package/build/types/entities/index.d.ts +1 -1
- package/build/types/entities/interfaces/AliasTypeEntity.d.ts +3 -8
- package/build/types/entities/interfaces/ConstructorEntity.d.ts +0 -4
- package/build/types/entities/interfaces/DereferenceOperatorEntity.d.ts +0 -4
- package/build/types/entities/interfaces/DestructorEntity.d.ts +0 -4
- package/build/types/entities/interfaces/FunctionEntity.d.ts +1 -8
- package/build/types/entities/interfaces/FunctionTypeEntity.d.ts +0 -8
- package/build/types/entities/interfaces/GetterEntity.d.ts +0 -4
- package/build/types/entities/interfaces/IndexerEntity.d.ts +0 -4
- package/build/types/entities/interfaces/OperatorEntity.d.ts +0 -4
- package/build/types/entities/interfaces/PackageAliasEntity.d.ts +0 -5
- package/build/types/entities/interfaces/PackageEntity.d.ts +2 -11
- package/build/types/entities/interfaces/SetterEntity.d.ts +0 -4
- package/build/types/entities/interfaces/StructuredTypeEntity.d.ts +0 -8
- package/build/types/entities/interfaces/TextTranslationEntity.d.ts +1 -0
- package/build/types/entities/interfaces/TypeExtensionEntity.d.ts +1 -7
- package/build/types/entities/interfaces/TypeParameterEntity.d.ts +0 -2
- package/build/types/entities/interfaces/VariableEntity.d.ts +2 -12
- package/build/types/entities/interfaces/VariantTypeEntity.d.ts +1 -8
- package/build/types/entities/intrinsic/IntrinsicFunctionTypeEntity.d.ts +3 -3
- package/build/types/entities/intrinsic/IntrinsicStructuredTypeEntity.d.ts +3 -3
- package/build/types/entities/intrinsic/IntrinsicTypeParameterEntity.d.ts +2 -4
- package/build/types/entities/source/SourceAliasTypeEntity.d.ts +1 -2
- package/build/types/entities/source/SourceFunctionTypeEntity.d.ts +1 -3
- package/build/types/entities/source/SourcePackageEntity.d.ts +1 -2
- package/build/types/entities/source/SourceStructuredTypeEntity.d.ts +1 -3
- package/build/types/entities/source/SourceTextTranslationEntity.d.ts +1 -0
- package/build/types/entities/source/SourceTypeExtensionEntity.d.ts +1 -2
- package/build/types/entities/source/SourceTypeParameterEntity.d.ts +1 -2
- package/build/types/entities/source/SourceVariableEntity.d.ts +2 -2
- package/build/types/entities/source/SourceVariantTypeEntity.d.ts +1 -3
- package/build/types/entities/translated/TranslatedAliasTypeEntity.d.ts +1 -3
- package/build/types/entities/translated/TranslatedFunctionTypeEntity.d.ts +1 -5
- package/build/types/entities/translated/TranslatedPackageEntity.d.ts +2 -3
- package/build/types/entities/translated/TranslatedStructuredTypeEntity.d.ts +1 -5
- package/build/types/entities/translated/TranslatedTypeExtensionEntity.d.ts +1 -3
- package/build/types/entities/translated/TranslatedTypeParameterEntity.d.ts +1 -3
- package/build/types/entities/translated/TranslatedVariantTypeEntity.d.ts +1 -5
- package/build/types/parser/KeywordDictionary.d.ts +10 -2
- package/build/types/parser/TokenKind.d.ts +46 -44
- package/build/types/services/CustomRequests.d.ts +24 -4
- package/build/types/services/DisplayService.d.ts +10 -3
- package/build/types/services/LanguageServer.d.ts +4 -3
- package/build/types/services/ScriptEditingService.d.ts +25 -0
- package/build/types/services/SourceFileItemsService.d.ts +1 -1
- package/build/types/services/Types.d.ts +6 -0
- package/build/types/services/source-generation/EntityToSyntax.d.ts +12 -0
- package/build/types/tree/BaseNode.d.ts +56 -2
- package/build/types/tree/KeywordFlags.d.ts +28 -0
- package/build/types/tree/KeywordKind.d.ts +3 -1
- package/build/types/tree/NodeKind.d.ts +1 -1
- package/build/types/tree/Nodes.d.ts +10 -24
- package/build/types/tree/NodesDebug.d.ts +9 -0
- package/build/types/tree/OperatorKind.d.ts +6 -3
- package/build/types/tree/SyntaxFactory.d.ts +31 -29
- package/build/types/tree/SyntaxToCode.d.ts +4 -1
- package/build/types/tree/TokenFlags.d.ts +15 -0
- package/build/types/tree/TokenKind.d.ts +63 -51
- package/build/types/tree/Utils.d.ts +2 -2
- package/build/types/tree/index.d.ts +2 -1
- package/build/types/ts-interop/Entities.d.ts +1 -11
- package/build/types/ts-interop/TsInteropContext.d.ts +1 -2
- package/build/types/types/AliasType.d.ts +1 -2
- package/build/types/types/FunctionType.d.ts +2 -3
- package/build/types/types/IntersectionType.d.ts +1 -2
- package/build/types/types/ParameterType.d.ts +1 -2
- package/build/types/types/StructuredType.d.ts +1 -2
- package/build/types/types/SubstitutionStubType.d.ts +21 -0
- package/build/types/types/Substitutions.d.ts +1 -1
- package/build/types/types/Type.d.ts +5 -7
- package/build/types/types/TypeFactory.d.ts +2 -1
- package/build/types/types/TypeMembers.d.ts +8 -8
- package/build/types/types/UnionType.d.ts +1 -2
- package/build/types/types/UnresolvedType.d.ts +0 -1
- package/build/types/types/VariantType.d.ts +1 -2
- package/build/types/types/index.d.ts +2 -1
- package/package.json +1 -1
- package/build/types/analysis/SourceFileMembers.d.ts +0 -29
- package/build/types/services/AssignFieldService.d.ts +0 -10
- package/build/types/services/DeleteBlockFromScriptService.d.ts +0 -6
- package/build/types/tree/Token.d.ts +0 -57
- /package/build/types/services/{ProjectItemsService.d.ts → WorkspaceItemsService.d.ts} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AccessKind, Name } from '../common/index.js';
|
|
2
|
-
import {
|
|
2
|
+
import { DiagnosticAcceptor } from '../diagnostic/Diagnostic.js';
|
|
3
3
|
import { NamedTypeEntity, PackageAliasEntity, VariableEntity } from '../entities/index.js';
|
|
4
4
|
import * as tree from '../tree/index.js';
|
|
5
5
|
import * as types from '../types/index.js';
|
|
@@ -12,9 +12,10 @@ export declare class FirstStageResolver {
|
|
|
12
12
|
private readonly semanticContext_;
|
|
13
13
|
private readonly analyzer;
|
|
14
14
|
private readonly node;
|
|
15
|
+
private readonly diagnostics;
|
|
15
16
|
private get semanticContext();
|
|
16
|
-
constructor(analyzer: Analyzer, node: tree.IdentifierExpression);
|
|
17
|
-
resolve():
|
|
17
|
+
constructor(analyzer: Analyzer, node: tree.IdentifierExpression, diagnostics: DiagnosticAcceptor | undefined);
|
|
18
|
+
resolve(): MeaningStage1;
|
|
18
19
|
private tryResolveOperatorAccessMeaning;
|
|
19
20
|
private resolveTypeAccess;
|
|
20
21
|
private createNotSubstitutedAccessedFunction;
|
|
@@ -23,20 +24,16 @@ export declare class FirstStageResolver {
|
|
|
23
24
|
export declare class SecondStageResolver {
|
|
24
25
|
private readonly analyzer;
|
|
25
26
|
private readonly node;
|
|
26
|
-
private readonly
|
|
27
|
+
private readonly firstStageMeaning;
|
|
27
28
|
private readonly analysisOptions;
|
|
28
|
-
|
|
29
|
-
|
|
29
|
+
private readonly diagnostics;
|
|
30
|
+
constructor(analyzer: Analyzer, node: tree.IdentifierExpression, firstStageMeaning: MeaningStage1, analysisOptions: ExpressionAnalysisOptions | undefined, diagnostics: DiagnosticAcceptor | undefined);
|
|
31
|
+
resolve(): Meaning;
|
|
30
32
|
private resolveTypeAccessAtCalleePosition;
|
|
31
33
|
private resolveFunctionAccess;
|
|
32
34
|
private resolveOperatorAccess;
|
|
33
35
|
private resolveNotCalledFunctionsAccess;
|
|
34
36
|
}
|
|
35
|
-
export declare class ResolutionResult {
|
|
36
|
-
readonly meaning: Meaning;
|
|
37
|
-
readonly diagnostics: readonly Diagnostic[] | undefined;
|
|
38
|
-
constructor(meaning: Meaning, diagnostics?: Diagnostic | readonly Diagnostic[]);
|
|
39
|
-
}
|
|
40
37
|
export type Meaning = Meaning_variableAccess | Meaning_functionAccess | Meaning_operatorAccess | Meaning_packageNameSegmentAccess | Meaning_packageAliasAccess | Meaning_typeAccess | Meaning_constructorAccess | Meaning_mixedAmbiguousAccess | Meaning_unresolved;
|
|
41
38
|
declare class Meaning_variableAccess {
|
|
42
39
|
readonly variable: AccessedVariable;
|
|
@@ -92,11 +89,6 @@ declare class Meaning_mixedAmbiguousAccess {
|
|
|
92
89
|
declare class Meaning_unresolved {
|
|
93
90
|
readonly kind = "unresolved";
|
|
94
91
|
}
|
|
95
|
-
export declare class FirstStageResolutionResult {
|
|
96
|
-
readonly meaning: MeaningStage1;
|
|
97
|
-
readonly diagnostics: readonly Diagnostic[] | undefined;
|
|
98
|
-
constructor(meaning: MeaningStage1, diagnostics?: Diagnostic | readonly Diagnostic[]);
|
|
99
|
-
}
|
|
100
92
|
export type MeaningStage1 = Meaning_variableAccess | MeaningStage1_functionAccess | MeaningStage1_operatorAccess | Meaning_packageNameSegmentAccess | Meaning_packageAliasAccess | MeaningStage1_typeAccessAtCalleePosition | Meaning_typeAccess | Meaning_mixedAmbiguousAccess | Meaning_unresolved;
|
|
101
93
|
declare class MeaningStage1_typeAccessAtCalleePosition {
|
|
102
94
|
readonly types: readonly NamedTypeEntity[];
|
|
@@ -1,23 +1,19 @@
|
|
|
1
1
|
import { AccessKind } from '../common/index.js';
|
|
2
|
-
import {
|
|
2
|
+
import { DiagnosticAcceptor } from '../diagnostic/Diagnostic.js';
|
|
3
3
|
import { IndexedAccessExpression } from '../tree/index.js';
|
|
4
4
|
import * as types from '../types/index.js';
|
|
5
5
|
import { Analyzer } from './index.js';
|
|
6
6
|
export declare class Resolver {
|
|
7
7
|
private readonly analyzer;
|
|
8
8
|
private readonly node;
|
|
9
|
+
private readonly diagnostics;
|
|
9
10
|
private readonly semanticContext_;
|
|
10
11
|
private get semanticContext();
|
|
11
|
-
constructor(analyzer: Analyzer, node: IndexedAccessExpression);
|
|
12
|
-
resolve():
|
|
12
|
+
constructor(analyzer: Analyzer, node: IndexedAccessExpression, diagnostics: DiagnosticAcceptor | undefined);
|
|
13
|
+
resolve(): Meaning;
|
|
13
14
|
private getArgumentsRangeWithBrackets;
|
|
14
15
|
private convertSyntacticAccessKind;
|
|
15
16
|
}
|
|
16
|
-
export declare class ResolutionResult {
|
|
17
|
-
readonly meaning: Meaning;
|
|
18
|
-
readonly diagnostics?: readonly Diagnostic[] | undefined;
|
|
19
|
-
constructor(meaning: Meaning, diagnostics?: readonly Diagnostic[] | undefined);
|
|
20
|
-
}
|
|
21
17
|
export type Meaning = Meaning_resolved | Meaning_unresolved;
|
|
22
18
|
declare class Meaning_resolved {
|
|
23
19
|
readonly candidates: readonly types.Indexer[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AccessKind } from '../common/index.js';
|
|
2
|
-
import {
|
|
2
|
+
import { DiagnosticAcceptor } from '../diagnostic/Diagnostic.js';
|
|
3
3
|
import { Entity, PackageTypeEntity, PackageVariableEntity } from '../entities/index.js';
|
|
4
4
|
import * as tree from '../tree/index.js';
|
|
5
5
|
import * as types from '../types/index.js';
|
|
@@ -11,11 +11,12 @@ export declare class FirstStageResolver {
|
|
|
11
11
|
private readonly semanticContext_;
|
|
12
12
|
private readonly analyzer;
|
|
13
13
|
private readonly node;
|
|
14
|
+
private readonly diagnostics;
|
|
14
15
|
private get memberName();
|
|
15
16
|
private get semanticContext();
|
|
16
17
|
private get receiver();
|
|
17
|
-
constructor(analyzer: Analyzer, node: tree.MemberAccessExpression);
|
|
18
|
-
resolve():
|
|
18
|
+
constructor(analyzer: Analyzer, node: tree.MemberAccessExpression, diagnostics: DiagnosticAcceptor | undefined);
|
|
19
|
+
resolve(): MeaningStage1;
|
|
19
20
|
private resolvePackageAliasMemberAccessMeaning;
|
|
20
21
|
private resolvePackageMemberAccessMeaning;
|
|
21
22
|
private resolveTypeAccess;
|
|
@@ -28,10 +29,11 @@ export declare class FirstStageResolver {
|
|
|
28
29
|
export declare class SecondStageResolver {
|
|
29
30
|
private readonly analyzer;
|
|
30
31
|
private readonly node;
|
|
31
|
-
private readonly
|
|
32
|
+
private readonly firstStageMeaning;
|
|
32
33
|
private readonly analysisOptions;
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
private readonly diagnostics;
|
|
35
|
+
constructor(analyzer: Analyzer, node: tree.MemberAccessExpression, firstStageMeaning: MeaningStage1, analysisOptions: ExpressionAnalysisOptions | undefined, diagnostics: DiagnosticAcceptor | undefined);
|
|
36
|
+
resolve(): Meaning;
|
|
35
37
|
private resolveTypeAccessAtCalleePosition;
|
|
36
38
|
private resolvePackageFunctionAccess;
|
|
37
39
|
private resolveStaticMethodAccess;
|
|
@@ -39,11 +41,6 @@ export declare class SecondStageResolver {
|
|
|
39
41
|
private resolveNotCalledFunctionsAccess;
|
|
40
42
|
private resolveOperatorAccess;
|
|
41
43
|
}
|
|
42
|
-
export declare class ResolutionResult {
|
|
43
|
-
readonly meaning: Meaning;
|
|
44
|
-
readonly diagnostics: readonly Diagnostic[] | undefined;
|
|
45
|
-
constructor(meaning: Meaning, diagnostics?: Diagnostic | readonly Diagnostic[]);
|
|
46
|
-
}
|
|
47
44
|
export type Meaning = Meaning_packageVariableAccess | Meaning_packageFunctionAccess | Meaning_packageTypeAccess | Meaning_constructorAccess | Meaning_packageNameSegmentAccess | Meaning_staticFieldAccess | Meaning_staticMethodAccess | Meaning_instanceFieldAccess | Meaning_instanceMethodAccess | Meaning_operatorAccess | Meaning_mixedAmbiguousAccess | Meaning_unresolved;
|
|
48
45
|
declare class Meaning_packageVariableAccess {
|
|
49
46
|
readonly variable: PackageVariableEntity;
|
|
@@ -126,11 +123,6 @@ declare class Meaning_mixedAmbiguousAccess {
|
|
|
126
123
|
declare class Meaning_unresolved {
|
|
127
124
|
readonly kind = "unresolved";
|
|
128
125
|
}
|
|
129
|
-
export declare class FirstStageResolutionResult {
|
|
130
|
-
readonly meaning: MeaningStage1;
|
|
131
|
-
readonly diagnostics: readonly Diagnostic[] | undefined;
|
|
132
|
-
constructor(meaning: MeaningStage1, diagnostics?: Diagnostic | readonly Diagnostic[]);
|
|
133
|
-
}
|
|
134
126
|
export type MeaningStage1 = Meaning_packageVariableAccess | MeaningStage1_packageFunctionAccess | Meaning_packageTypeAccess | MeaningStage1_typeAccessAtCalleePosition | Meaning_packageNameSegmentAccess | Meaning_staticFieldAccess | MeaningStage1_staticMethodAccess | Meaning_instanceFieldAccess | MeaningStage1_instanceMethodAccess | MeaningStage1_operatorAccess | Meaning_mixedAmbiguousAccess | Meaning_unresolved;
|
|
135
127
|
declare class MeaningStage1_typeAccessAtCalleePosition {
|
|
136
128
|
readonly types: readonly PackageTypeEntity[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DiagnosticAcceptor } from '../diagnostic/Diagnostic.js';
|
|
2
2
|
import { NamedTypeEntity, PackageAliasEntity } from '../entities/index.js';
|
|
3
3
|
import { QualifiedName } from '../tree/index.js';
|
|
4
4
|
import { Analyzer } from './Analyzer.js';
|
|
@@ -7,9 +7,10 @@ import { EntityOrPackageNameTreeNode } from './Utils.js';
|
|
|
7
7
|
export declare class NamedTypeResolver {
|
|
8
8
|
private readonly analyzer;
|
|
9
9
|
private readonly node;
|
|
10
|
+
private readonly diagnostics;
|
|
10
11
|
private readonly semanticContext_;
|
|
11
12
|
private get semanticContext();
|
|
12
|
-
constructor(analyzer: Analyzer, node: QualifiedName);
|
|
13
|
+
constructor(analyzer: Analyzer, node: QualifiedName, diagnostics: DiagnosticAcceptor | undefined);
|
|
13
14
|
resolve(): NamedTypeResolutionResult;
|
|
14
15
|
private lookupTypeOrContainerWithTypes;
|
|
15
16
|
private findTypesOrContainersWithTypesInResolvedQualifier;
|
|
@@ -21,9 +22,8 @@ export declare class NamedTypeResolver {
|
|
|
21
22
|
export declare class NamedTypeResolutionResult {
|
|
22
23
|
readonly types: readonly NamedTypeEntity[];
|
|
23
24
|
readonly resolvedQualifiers: readonly ResolvedQualifier[];
|
|
24
|
-
readonly diagnostics: readonly Diagnostic[];
|
|
25
25
|
readonly ambiguousDeclarations: readonly EntityOrPackageNameTreeNode[] | undefined;
|
|
26
|
-
constructor(types: readonly NamedTypeEntity[], resolvedQualifiers: readonly ResolvedQualifier[],
|
|
26
|
+
constructor(types: readonly NamedTypeEntity[], resolvedQualifiers: readonly ResolvedQualifier[], ambiguousDeclarations: readonly EntityOrPackageNameTreeNode[] | undefined);
|
|
27
27
|
}
|
|
28
28
|
export type ResolvedQualifier = ResolvedQualifier_packageNameSegment | ResolvedQualifier_packageAlias | ResolvedQualifier_type;
|
|
29
29
|
export declare class ResolvedQualifier_packageNameSegment {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DiagnosticAcceptor } from '../diagnostic/Diagnostic.js';
|
|
2
2
|
import { NamedTypeSpecifier } from '../tree/index.js';
|
|
3
3
|
import * as types from '../types/index.js';
|
|
4
4
|
import { Analyzer } from './Analyzer.js';
|
|
@@ -7,13 +7,13 @@ import { EntityOrPackageNameTreeNode } from './Utils.js';
|
|
|
7
7
|
export declare class NamedTypeSpecifierResolver {
|
|
8
8
|
private readonly analyzer;
|
|
9
9
|
private readonly node;
|
|
10
|
-
|
|
10
|
+
private readonly diagnostics;
|
|
11
|
+
constructor(analyzer: Analyzer, node: NamedTypeSpecifier, diagnostics: DiagnosticAcceptor | undefined);
|
|
11
12
|
resolve(): NamedTypeSpecifierResolutionResult;
|
|
12
13
|
}
|
|
13
14
|
export declare class NamedTypeSpecifierResolutionResult {
|
|
14
15
|
readonly type: types.Type | undefined;
|
|
15
16
|
readonly resolvedQualifiers: readonly ResolvedQualifier[];
|
|
16
|
-
readonly diagnostics: readonly Diagnostic[];
|
|
17
17
|
readonly ambiguousDeclarations: readonly EntityOrPackageNameTreeNode[] | undefined;
|
|
18
|
-
constructor(type: types.Type | undefined, resolvedQualifiers: readonly ResolvedQualifier[],
|
|
18
|
+
constructor(type: types.Type | undefined, resolvedQualifiers: readonly ResolvedQualifier[], ambiguousDeclarations: readonly EntityOrPackageNameTreeNode[] | undefined);
|
|
19
19
|
}
|
|
@@ -24,7 +24,7 @@ export type FunctionDeclaration = tree.PackageFunctionDeclaration | tree.NestedF
|
|
|
24
24
|
export type TypeDeclaration = StructuredTypeDeclaration | VariantTypeDeclaration | FunctionTypeDeclaration | tree.PackageAliasTypeDeclaration | tree.TypeParameterDeclaration;
|
|
25
25
|
export type NamedTypeDeclaration = tree.PackageStructuredTypeDeclaration | tree.PackageVariantTypeDeclaration | tree.PackageFunctionTypeDeclaration | tree.PackageAliasTypeDeclaration | tree.TypeParameterDeclaration;
|
|
26
26
|
export type TypeWithMembersDeclaration = StructuredTypeDeclaration | VariantTypeDeclaration | tree.PackageAliasTypeDeclaration;
|
|
27
|
-
export type VariableDeclaration = tree.ForStatementVariableDeclaration | tree.PackageVariableDeclaration | tree.LocalVariableDeclaration | tree.ParameterDeclaration | tree.FieldDeclaration | tree.
|
|
27
|
+
export type VariableDeclaration = tree.ForStatementVariableDeclaration | tree.PackageVariableDeclaration | tree.LocalVariableDeclaration | tree.ParameterDeclaration | tree.FieldDeclaration | tree.VariantValueDeclaration;
|
|
28
28
|
export type GetterDeclaration = tree.PackageVariableGetterDeclaration | tree.FieldGetterDeclaration | tree.IndexedElementGetterDeclaration | tree.DereferencedVariableGetterDeclaration;
|
|
29
29
|
export type SetterDeclaration = tree.PackageVariableSetterDeclaration | tree.FieldSetterDeclaration | tree.IndexedElementSetterDeclaration | tree.DereferencedVariableSetterDeclaration;
|
|
30
30
|
export type PackageVariableAccessorDeclaration = tree.PackageVariableGetterDeclaration | tree.PackageVariableSetterDeclaration;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DiagnosticAcceptor } from '../diagnostic/Diagnostic.js';
|
|
2
2
|
import * as tree from '../tree/index.js';
|
|
3
3
|
import * as types from '../types/index.js';
|
|
4
4
|
import { Analyzer } from './Analyzer.js';
|
|
@@ -10,19 +10,14 @@ import { Analyzer } from './Analyzer.js';
|
|
|
10
10
|
export declare class Resolver {
|
|
11
11
|
private readonly analyzer;
|
|
12
12
|
private readonly node;
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
private readonly diagnostics;
|
|
14
|
+
constructor(analyzer: Analyzer, node: tree.ObjectExpression, diagnostics: DiagnosticAcceptor | undefined);
|
|
15
|
+
resolve(): Meaning;
|
|
15
16
|
private resolveOwnConstructorAccess;
|
|
16
17
|
private resolveContextAccess;
|
|
17
18
|
private invalidContextDiagnostic;
|
|
18
19
|
private findContainingConstructor;
|
|
19
20
|
}
|
|
20
|
-
export declare class ResolutionResult {
|
|
21
|
-
readonly meaning: Meaning;
|
|
22
|
-
readonly diagnostics?: readonly Diagnostic[] | undefined;
|
|
23
|
-
constructor(meaning: Meaning, diagnostics?: readonly Diagnostic[] | undefined);
|
|
24
|
-
static unresolved(diagnostics?: readonly Diagnostic[]): ResolutionResult;
|
|
25
|
-
}
|
|
26
21
|
export type Meaning = Meaning_ownConstructorAccess | Meaning_objectAccess | Meaning_unresolved;
|
|
27
22
|
declare class Meaning_ownConstructorAccess {
|
|
28
23
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Diagnostic } from '../diagnostic/Diagnostic.js';
|
|
2
|
-
import { PackageEntityMembers } from '../entities/
|
|
2
|
+
import { PackageEntityMembers } from '../entities/index.js';
|
|
3
3
|
import { ProgramOrTextTranslationPackage } from '../project/SourcePackage.js';
|
|
4
4
|
import { Analyzer } from './Analyzer.js';
|
|
5
5
|
export declare class PackageMemberConflictsValidator {
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { ConstructorEntity, DereferenceOperatorEntity, DestructorEntity, FieldEntity, IndexerEntity, MethodEntity, OperatorEntity, PackageEntity, PackageFunctionEntity, PackageTypeEntity, PackageVariableEntity, TypeEntity } from '../entities/index.js';
|
|
2
|
+
import { PlatformKind } from '../project/index.js';
|
|
3
|
+
import { Analyzer } from './Analyzer.js';
|
|
4
|
+
export declare class ResolvedImplementationPackage {
|
|
5
|
+
private readonly analyzer;
|
|
6
|
+
readonly interfacePackage: PackageEntity;
|
|
7
|
+
readonly implementationPackage: PackageEntity;
|
|
8
|
+
readonly targetPlatform: PlatformKind;
|
|
9
|
+
private static signatureComparisonOptions_;
|
|
10
|
+
private static get signatureComparisonOptions();
|
|
11
|
+
private implementationPackageMembers_;
|
|
12
|
+
private readonly diagnostics;
|
|
13
|
+
private readonly variableImplementations;
|
|
14
|
+
private readonly functionImplementations;
|
|
15
|
+
private readonly typeImplementations;
|
|
16
|
+
private readonly typeMemberImplementations;
|
|
17
|
+
private hasReportedAllDiagnostics;
|
|
18
|
+
private get implementationPackageMembers();
|
|
19
|
+
constructor(analyzer: Analyzer, interfacePackage: PackageEntity, implementationPackage: PackageEntity, targetPlatform: PlatformKind);
|
|
20
|
+
ensureAllDiagnosticReported(): void;
|
|
21
|
+
getPackageVariableImplementation(entity: PackageVariableEntity): PackageVariableEntity | undefined;
|
|
22
|
+
getPackageFunctionImplementation(entity: PackageFunctionEntity): PackageFunctionEntity | undefined;
|
|
23
|
+
getPackageTypeImplementation(entity: PackageTypeEntity): PackageTypeEntity | undefined;
|
|
24
|
+
getFieldImplementation(entity: FieldEntity): FieldEntity | undefined;
|
|
25
|
+
getMethodImplementation(entity: MethodEntity): MethodEntity | undefined;
|
|
26
|
+
getOperatorImplementation(entity: OperatorEntity): OperatorEntity | undefined;
|
|
27
|
+
getConstructorImplementation(entity: ConstructorEntity): ConstructorEntity | undefined;
|
|
28
|
+
getDestructorImplementation(entity: DestructorEntity): DestructorEntity | undefined;
|
|
29
|
+
getIndexerImplementation(entity: IndexerEntity): IndexerEntity | undefined;
|
|
30
|
+
getDereferenceOperatorImplementation(entity: DereferenceOperatorEntity): DereferenceOperatorEntity | undefined;
|
|
31
|
+
static isTypeThatDoesNotRequireImplementation(entity: TypeEntity): boolean;
|
|
32
|
+
private getTypeMemberImplementations;
|
|
33
|
+
private findFieldImplementation;
|
|
34
|
+
private findMethodImplementation;
|
|
35
|
+
private findOperatorImplementation;
|
|
36
|
+
private findConstructorImplementation;
|
|
37
|
+
private findDestructorImplementation;
|
|
38
|
+
private findIndexerImplementation;
|
|
39
|
+
private findDereferenceOperatorImplementation;
|
|
40
|
+
private checkImplementationTypeMemberBasicModifier;
|
|
41
|
+
private checkImplementationTypeMemberAbstractModifier;
|
|
42
|
+
private areEqualFunctions;
|
|
43
|
+
private areEqualTypeMembersWithoutTypeParameters;
|
|
44
|
+
private areEqualTypes;
|
|
45
|
+
private areEqualSubstitutions;
|
|
46
|
+
private reportPackageDoesNotContainImplementationDiagnostic;
|
|
47
|
+
private reportTypeDoesNotContainImplementationDiagnostic;
|
|
48
|
+
}
|
|
@@ -20,6 +20,7 @@ export declare class SubstitutedFunction_entity implements ISubstitutedFunction
|
|
|
20
20
|
getParameters(): readonly AccessedFunctionParameter[];
|
|
21
21
|
getReturnType(): types.Type;
|
|
22
22
|
isAsync(): boolean;
|
|
23
|
+
equals(other: SubstitutedFunction, considerLocale?: boolean): boolean;
|
|
23
24
|
}
|
|
24
25
|
export declare class SubstitutedFunction_typeMember implements ISubstitutedFunction {
|
|
25
26
|
readonly method: types.Method;
|
|
@@ -37,6 +38,7 @@ export declare class SubstitutedFunction_typeMember implements ISubstitutedFunct
|
|
|
37
38
|
getParameters(): readonly AccessedFunctionParameter[];
|
|
38
39
|
getReturnType(): types.Type;
|
|
39
40
|
isAsync(): boolean;
|
|
41
|
+
equals(other: SubstitutedFunction, considerLocale?: boolean): boolean;
|
|
40
42
|
}
|
|
41
43
|
interface ISubstitutedFunction {
|
|
42
44
|
getEntity(): NamedFunctionEntity;
|
|
@@ -47,5 +49,6 @@ interface ISubstitutedFunction {
|
|
|
47
49
|
getParameters(): readonly AccessedFunctionParameter[];
|
|
48
50
|
getReturnType(): types.Type;
|
|
49
51
|
isAsync(): boolean;
|
|
52
|
+
equals(other: SubstitutedFunction, considerLocale: boolean): boolean;
|
|
50
53
|
}
|
|
51
54
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DiagnosticAcceptor } from '../diagnostic/Diagnostic.js';
|
|
2
2
|
import { NamedTypeEntity, PackageAliasEntity } from '../entities/index.js';
|
|
3
3
|
import { Tag } from '../tree/index.js';
|
|
4
4
|
import * as types from '../types/index.js';
|
|
@@ -9,9 +9,10 @@ import { EntityOrPackageNameTreeNode } from './Utils.js';
|
|
|
9
9
|
export declare class Resolver {
|
|
10
10
|
private readonly analyzer;
|
|
11
11
|
private readonly node;
|
|
12
|
+
private readonly diagnostics;
|
|
12
13
|
private readonly semanticContext_;
|
|
13
14
|
private get semanticContext();
|
|
14
|
-
constructor(analyzer: Analyzer, node: Tag);
|
|
15
|
+
constructor(analyzer: Analyzer, node: Tag, diagnostics: DiagnosticAcceptor | undefined);
|
|
15
16
|
resolve(): ResolutionResult;
|
|
16
17
|
private resolveNameInScope;
|
|
17
18
|
private resolveNameInPackage;
|
|
@@ -21,9 +22,8 @@ export declare class Resolver {
|
|
|
21
22
|
export declare class ResolutionResult {
|
|
22
23
|
readonly meaning: Meaning;
|
|
23
24
|
readonly resolvedQualifiers: readonly ResolvedQualifier[];
|
|
24
|
-
readonly diagnostics?: readonly Diagnostic[];
|
|
25
25
|
readonly ambiguousDeclarations?: readonly EntityOrPackageNameTreeNode[];
|
|
26
|
-
constructor(meaning: Meaning, resolvedQualifiers: readonly ResolvedQualifier[],
|
|
26
|
+
constructor(meaning: Meaning, resolvedQualifiers: readonly ResolvedQualifier[], ambiguousDeclarations?: readonly EntityOrPackageNameTreeNode[]);
|
|
27
27
|
}
|
|
28
28
|
export type Meaning = Meaning_tagType | Meaning_tagFunction | Meaning_unresolved;
|
|
29
29
|
declare class Meaning_tagType {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DiagnosticAcceptor } from '../diagnostic/Diagnostic.js';
|
|
2
2
|
import { BinaryOperatorKind } from '../entities/OperatorKind.js';
|
|
3
3
|
import * as tree from '../tree/index.js';
|
|
4
4
|
import * as types from '../types/index.js';
|
|
@@ -26,7 +26,8 @@ export declare class UserDefinableBinaryOperatorResolver {
|
|
|
26
26
|
private readonly right;
|
|
27
27
|
private readonly operatorKind;
|
|
28
28
|
private readonly operatorNodeForDiagnostic;
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
private readonly diagnostics;
|
|
30
|
+
constructor(analyzer: Analyzer, left: tree.Expression, right: tree.Expression, operatorKind: BinaryOperatorKind, operatorNodeForDiagnostic: tree.Node, diagnostics: DiagnosticAcceptor | undefined);
|
|
31
|
+
resolve(): types.Operator | undefined;
|
|
31
32
|
private chooseSuitableOperators;
|
|
32
33
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DiagnosticAcceptor } from '../diagnostic/Diagnostic.js';
|
|
2
2
|
import * as tree from '../tree/index.js';
|
|
3
3
|
import * as types from '../types/index.js';
|
|
4
4
|
import { Analyzer } from './index.js';
|
|
@@ -16,7 +16,8 @@ import { Analyzer } from './index.js';
|
|
|
16
16
|
export declare class UserDefinableUnaryOperatorResolver {
|
|
17
17
|
private readonly analyzer;
|
|
18
18
|
private readonly node;
|
|
19
|
+
private readonly diagnostics;
|
|
19
20
|
private get operatorKind();
|
|
20
|
-
constructor(analyzer: Analyzer, node: tree.PrefixUnaryExpression);
|
|
21
|
-
resolve():
|
|
21
|
+
constructor(analyzer: Analyzer, node: tree.PrefixUnaryExpression, diagnostics: DiagnosticAcceptor | undefined);
|
|
22
|
+
resolve(): types.Operator | undefined;
|
|
22
23
|
}
|
|
@@ -15,6 +15,7 @@ export declare function findTag(tagTypeEntity: TypeEntity, tags: readonly Tag[])
|
|
|
15
15
|
export declare function findTag(tagFunctionEntity: FunctionEntity, tags: readonly Tag[]): TagFunction | undefined;
|
|
16
16
|
export declare function findTag(tagEntity: TypeEntity | FunctionEntity, tags: readonly Tag[]): TagType | TagFunction | undefined;
|
|
17
17
|
export declare function getRequiredTypeParameterCount(typeParameters: readonly TypeParameterEntity[]): number;
|
|
18
|
+
export declare function flattenPackageImportDirectiveList(list: tree.PackageImportDirectiveList): Iterable<tree.PackageImport>;
|
|
18
19
|
export declare function flattenPackageMemberDeclarationList(list: tree.PackageMemberDeclarationList): Iterable<Exclude<tree.PackageMemberDeclaration, tree.PackageMemberGroupDeclaration>>;
|
|
19
20
|
export declare function flattenTypeMemberDeclarationList(list: tree.TypeMemberDeclarationList): Iterable<Exclude<tree.TypeMemberDeclaration, tree.TypeMemberGroupDeclaration>>;
|
|
20
21
|
export declare function isComputedVariableEntity(entity: VariableEntity): boolean;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Name } from '../../common/index.js';
|
|
2
|
-
import { IEntityHidingMatcher } from '../../entities/EntityHiding.js';
|
|
3
2
|
import * as tree from '../../tree/index.js';
|
|
4
3
|
import { Analyzer } from '../Analyzer.js';
|
|
5
4
|
import { NamedDeclaration, TypeOrContainerWithTypes } from './Declarations.js';
|
|
@@ -14,8 +13,8 @@ export declare class FieldWithInitializerSemanticContext extends SemanticContext
|
|
|
14
13
|
private readonly node;
|
|
15
14
|
constructor(analyzer: Analyzer, node: tree.FieldDeclaration, outer: SemanticContextContainingTypeMember);
|
|
16
15
|
isStatic(): boolean;
|
|
17
|
-
getOwnTypesOrContainersWithTypes(
|
|
18
|
-
getOwnTypesOrContainersWithTypesByName(_name: Name,
|
|
19
|
-
getOwnNamedDeclarations(
|
|
20
|
-
getOwnNamedDeclarationsByName(_name: Name,
|
|
16
|
+
getOwnTypesOrContainersWithTypes(_initialContext: SemanticContext): readonly TypeOrContainerWithTypes[];
|
|
17
|
+
getOwnTypesOrContainersWithTypesByName(_name: Name, _initialContext: SemanticContext): readonly TypeOrContainerWithTypes[];
|
|
18
|
+
getOwnNamedDeclarations(_initialContext: SemanticContext, _noInstanceMembers?: boolean): readonly NamedDeclaration[];
|
|
19
|
+
getOwnNamedDeclarationsByName(_name: Name, _initialContext: SemanticContext, _noInstanceMembers?: boolean): readonly NamedDeclaration[];
|
|
21
20
|
}
|
|
@@ -22,10 +22,10 @@ export declare abstract class SemanticContextBase {
|
|
|
22
22
|
abstract getContainingTypeOrTypeExtension(): TypeOrTypeExtension | undefined;
|
|
23
23
|
abstract getTryStatementContext(): TryStatementContextKind | undefined;
|
|
24
24
|
abstract isStatic(): boolean;
|
|
25
|
-
abstract getOwnTypesOrContainersWithTypes(
|
|
26
|
-
abstract getOwnTypesOrContainersWithTypesByName(name: Name,
|
|
27
|
-
abstract getOwnNamedDeclarations(
|
|
28
|
-
abstract getOwnNamedDeclarationsByName(name: Name,
|
|
25
|
+
abstract getOwnTypesOrContainersWithTypes(initialContext: SemanticContext): readonly TypeOrContainerWithTypes[];
|
|
26
|
+
abstract getOwnTypesOrContainersWithTypesByName(name: Name, initialContext: SemanticContext): readonly TypeOrContainerWithTypes[];
|
|
27
|
+
abstract getOwnNamedDeclarations(initialContext: SemanticContext, noInstanceMembers?: boolean): readonly NamedDeclaration[];
|
|
28
|
+
abstract getOwnNamedDeclarationsByName(name: Name, initialContext: SemanticContext, noInstanceMembers?: boolean): readonly NamedDeclaration[];
|
|
29
29
|
getContainingSourceFile(): SourceFile;
|
|
30
30
|
getContainingPackage(): PackageEntity;
|
|
31
31
|
getHidingMatcher(): IEntityHidingMatcher;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Name } from '../../common/index.js';
|
|
2
2
|
import { DiagnosticAcceptor } from '../../diagnostic/Diagnostic.js';
|
|
3
|
-
import { IEntityHidingMatcher } from '../../entities/EntityHiding.js';
|
|
4
3
|
import { LocalVariableEntity, NestedFunctionEntity, ParameterEntity, TypeParameterEntity } from '../../entities/index.js';
|
|
5
4
|
import * as tree from '../../tree/index.js';
|
|
6
5
|
import { Analyzer } from '../Analyzer.js';
|
|
@@ -28,10 +27,10 @@ export declare abstract class SemanticContextValidatingNameConflictsBase extends
|
|
|
28
27
|
constructor(analyzer: Analyzer);
|
|
29
28
|
protected abstract createMemberEntities(): readonly MemberOfSemanticContextValidatingNameConflicts[];
|
|
30
29
|
protected abstract createMemberEntitiesForTypeLookup(): readonly MemberOfSemanticContextValidatingNameConflictsForTypeLookup[];
|
|
31
|
-
getOwnTypesOrContainersWithTypes(
|
|
32
|
-
getOwnTypesOrContainersWithTypesByName(name: Name,
|
|
33
|
-
getOwnNamedDeclarations(
|
|
34
|
-
getOwnNamedDeclarationsByName(name: Name,
|
|
30
|
+
getOwnTypesOrContainersWithTypes(_initialContext: SemanticContext): readonly TypeOrContainerWithTypes[];
|
|
31
|
+
getOwnTypesOrContainersWithTypesByName(name: Name, _initialContext: SemanticContext): readonly TypeOrContainerWithTypes[];
|
|
32
|
+
getOwnNamedDeclarations(_initialContext: SemanticContext, _noInstanceMembers?: boolean): readonly NamedDeclaration[];
|
|
33
|
+
getOwnNamedDeclarationsByName(name: Name, _initialContext: SemanticContext, _noInstanceMembers?: boolean): readonly NamedDeclaration[];
|
|
35
34
|
validateNameConflicts(diagnostics: DiagnosticAcceptor): void;
|
|
36
35
|
private getMemberEntityDictionary;
|
|
37
36
|
private validateNestedFunctionsConflicts;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Name } from '../../common/index.js';
|
|
2
|
+
import { DiagnosticAcceptor } from '../../diagnostic/Diagnostic.js';
|
|
2
3
|
import { IEntityHidingMatcher } from '../../entities/EntityHiding.js';
|
|
3
4
|
import { PackageEntity, TextTranslationEntity, TypeEntity, TypeExtensionEntity } from '../../entities/index.js';
|
|
4
5
|
import { SourceFile } from '../../project/SourceFile.js';
|
|
@@ -15,14 +16,16 @@ export declare class SourceFileSemanticContext extends SemanticContextBase {
|
|
|
15
16
|
protected asContext: SemanticContext;
|
|
16
17
|
private readonly analyzer;
|
|
17
18
|
private readonly sourceFile;
|
|
18
|
-
private readonly sourceFileMembers;
|
|
19
19
|
private readonly containingPackageMemberLookup;
|
|
20
20
|
private readonly importedPackageMemberLookups;
|
|
21
|
+
private readonly packageAliases;
|
|
22
|
+
private readonly packageAliasesByNameKey_;
|
|
21
23
|
private readonly packageNameSegments;
|
|
22
|
-
private readonly
|
|
24
|
+
private readonly packageNameSegmentsByNameKey_;
|
|
23
25
|
private readonly diagnosticArgumentFactory;
|
|
24
26
|
private readonly primaryTextTranslationPackage_;
|
|
25
|
-
private get
|
|
27
|
+
private get packageAliasesByNameKey();
|
|
28
|
+
private get packageNameSegmentsByNameKey();
|
|
26
29
|
private get primaryTextTranslationPackage();
|
|
27
30
|
constructor(analyzer: Analyzer, node: tree.SourceFile);
|
|
28
31
|
getContainingSubprogram(): SubprogramInfo | undefined;
|
|
@@ -32,12 +35,13 @@ export declare class SourceFileSemanticContext extends SemanticContextBase {
|
|
|
32
35
|
getTryStatementContext(): TryStatementContextKind | undefined;
|
|
33
36
|
isStatic(): boolean;
|
|
34
37
|
getDiagnosticArgumentFactory(): DiagnosticArgumentFactory;
|
|
35
|
-
getOwnTypesOrContainersWithTypes(
|
|
36
|
-
getOwnTypesOrContainersWithTypesByName(name: Name,
|
|
37
|
-
getOwnNamedDeclarations(
|
|
38
|
-
getOwnNamedDeclarationsByName(name: Name,
|
|
38
|
+
getOwnTypesOrContainersWithTypes(initialContext: SemanticContext): readonly TypeOrContainerWithTypes[];
|
|
39
|
+
getOwnTypesOrContainersWithTypesByName(name: Name, initialContext: SemanticContext): readonly TypeOrContainerWithTypes[];
|
|
40
|
+
getOwnNamedDeclarations(initialContext: SemanticContext, _noInstanceMembers?: boolean): NamedDeclaration[];
|
|
41
|
+
getOwnNamedDeclarationsByName(name: Name, initialContext: SemanticContext, _noInstanceMembers?: boolean): readonly NamedDeclaration[];
|
|
39
42
|
getOwnTypeExtensionsByType(type: TypeEntity, hidingMatcher?: IEntityHidingMatcher): TypeExtensionEntity[];
|
|
40
43
|
getTextTranslationEntityByTextKey(key: TextKey): readonly TextTranslationEntity[];
|
|
44
|
+
validateNameConflicts(diagnostics: DiagnosticAcceptor): void;
|
|
41
45
|
private convertPackageMemberToNamedDeclaration;
|
|
42
46
|
private convertPackageAliasToTypeOrContainerWithTypes;
|
|
43
47
|
private convertPackageMemberToTypeOrContainerWithTypes;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Name } from '../../common/index.js';
|
|
2
|
-
import { IEntityHidingMatcher } from '../../entities/EntityHiding.js';
|
|
3
2
|
import * as tree from '../../tree/index.js';
|
|
4
3
|
import { Analyzer } from '../Analyzer.js';
|
|
5
4
|
import { DereferencedVariableAccessorDeclaration, FieldAccessorDeclaration, FunctionDeclaration, IndexedElementAccessorDeclaration, PackageVariableAccessorDeclaration, RegularOrBlockFunctionLiteral } from '../NodeTypeUtils.js';
|
|
@@ -19,10 +18,10 @@ export declare abstract class OutermostSemanticContextOfSubprogram extends Seman
|
|
|
19
18
|
readonly kind = "outermost-of-subprogram";
|
|
20
19
|
abstract getContainingSubprogram(): SubprogramInfo;
|
|
21
20
|
getTryStatementContext(): TryStatementContextKind | undefined;
|
|
22
|
-
getOwnTypesOrContainersWithTypes(
|
|
23
|
-
getOwnTypesOrContainersWithTypesByName(_name: Name,
|
|
24
|
-
getOwnNamedDeclarations(
|
|
25
|
-
getOwnNamedDeclarationsByName(_name: Name,
|
|
21
|
+
getOwnTypesOrContainersWithTypes(_initialContext: SemanticContext): readonly TypeOrContainerWithTypes[];
|
|
22
|
+
getOwnTypesOrContainersWithTypesByName(_name: Name, _initialContext: SemanticContext): readonly TypeOrContainerWithTypes[];
|
|
23
|
+
getOwnNamedDeclarations(_initialContext: SemanticContext, _noInstanceMembers?: boolean): readonly NamedDeclaration[];
|
|
24
|
+
getOwnNamedDeclarationsByName(_name: Name, _initialContext: SemanticContext, _noInstanceMembers?: boolean): readonly NamedDeclaration[];
|
|
26
25
|
}
|
|
27
26
|
export declare class FunctionSemanticContext extends OutermostSemanticContextOfSubprogram {
|
|
28
27
|
readonly outer: SemanticContext;
|
|
@@ -28,10 +28,10 @@ export declare class OutermostSemanticContextOfType extends SemanticContextWithP
|
|
|
28
28
|
getContainingTypeOrTypeExtension(): TypeOrTypeExtension | undefined;
|
|
29
29
|
getContainingSubprogram(): SubprogramInfo | undefined;
|
|
30
30
|
isStatic(): boolean;
|
|
31
|
-
getOwnTypesOrContainersWithTypes(
|
|
32
|
-
getOwnTypesOrContainersWithTypesByName(_name: Name,
|
|
33
|
-
getOwnNamedDeclarations(
|
|
34
|
-
getOwnNamedDeclarationsByName(_name: Name,
|
|
31
|
+
getOwnTypesOrContainersWithTypes(_initialContext: SemanticContext): readonly TypeOrContainerWithTypes[];
|
|
32
|
+
getOwnTypesOrContainersWithTypesByName(_name: Name, _initialContext: SemanticContext): readonly TypeOrContainerWithTypes[];
|
|
33
|
+
getOwnNamedDeclarations(_initialContext: SemanticContext, _noInstanceMembers?: boolean): readonly NamedDeclaration[];
|
|
34
|
+
getOwnNamedDeclarationsByName(_name: Name, _initialContext: SemanticContext, _noInstanceMembers?: boolean): readonly NamedDeclaration[];
|
|
35
35
|
private getContainingType;
|
|
36
36
|
}
|
|
37
37
|
type TypeDeclarationWithTypeParameters = tree.PackageStructuredTypeDeclaration | tree.PackageVariantTypeDeclaration | tree.PackageAliasTypeDeclaration | tree.PackageFunctionTypeDeclaration;
|
|
@@ -47,10 +47,10 @@ export declare class TypeParametersOfTypeSemanticContext extends SemanticContext
|
|
|
47
47
|
}
|
|
48
48
|
declare abstract class TypeOrExtensionBodySemanticContext extends SemanticContextWithParent {
|
|
49
49
|
protected abstract memberLookup: TypeMemberLookup;
|
|
50
|
-
getOwnTypesOrContainersWithTypes(
|
|
51
|
-
getOwnTypesOrContainersWithTypesByName(_name: Name,
|
|
52
|
-
getOwnNamedDeclarations(
|
|
53
|
-
getOwnNamedDeclarationsByName(name: Name,
|
|
50
|
+
getOwnTypesOrContainersWithTypes(_initialContext: SemanticContext): readonly TypeOrContainerWithTypes[];
|
|
51
|
+
getOwnTypesOrContainersWithTypesByName(_name: Name, _initialContext: SemanticContext): readonly TypeOrContainerWithTypes[];
|
|
52
|
+
getOwnNamedDeclarations(initialContext: SemanticContext, noInstanceMembers?: boolean): NamedDeclaration[];
|
|
53
|
+
getOwnNamedDeclarationsByName(name: Name, initialContext: SemanticContext, noInstanceMembers?: boolean): readonly NamedDeclaration[];
|
|
54
54
|
getOwnOperators(noInstanceMembers?: boolean, hidingMatcher?: IEntityHidingMatcher): readonly types.Operator[];
|
|
55
55
|
getOwnOperatorsByKind(kind: OperatorKind, noInstanceMembers?: boolean, hidingMatcher?: IEntityHidingMatcher): readonly types.Operator[];
|
|
56
56
|
private convertNamedMember;
|
package/build/types/api/Api.d.ts
CHANGED
|
@@ -6,21 +6,20 @@ export type { Meaning as AutotypeCallExpressionMeaning } from '../analysis/Autot
|
|
|
6
6
|
export type { Meaning as BaseExpressionMeaning } from '../analysis/BaseExpressionMeaning.js';
|
|
7
7
|
export type { Meaning as CallExpressionMeaning } from '../analysis/CallExpressionMeaning.js';
|
|
8
8
|
export type { Meaning as DereferenceExpressionMeaning } from '../analysis/DereferenceExpressionMeaning.js';
|
|
9
|
-
export * from '../analysis/SourceFileAnalyzer.js';
|
|
10
9
|
export * from '../analysis/FindModifier.js';
|
|
11
|
-
export type { Meaning as IdentifierExpressionMeaning
|
|
10
|
+
export type { Meaning as IdentifierExpressionMeaning } from '../analysis/IdentifierExpressionMeaning.js';
|
|
12
11
|
export * from '../analysis/ImportedPackageNameTree.js';
|
|
13
12
|
export type { Meaning as IndexedAccessExpressionMeaning } from '../analysis/IndexedAccessExpressionMeaning.js';
|
|
14
|
-
export type { Meaning as MemberAccessExpressionMeaning
|
|
13
|
+
export type { Meaning as MemberAccessExpressionMeaning } from '../analysis/MemberAccessExpressionMeaning.js';
|
|
15
14
|
export * from '../analysis/NodeTypeUtils.js';
|
|
16
15
|
export type { Meaning as ObjectExpressionMeaning } from '../analysis/ObjectExpressionMeaning.js';
|
|
17
16
|
export * from '../analysis/PackageMemberLookup.js';
|
|
18
17
|
export * as semanticContext from '../analysis/semantic-context/index.js';
|
|
19
|
-
export * from '../analysis/
|
|
18
|
+
export * from '../analysis/SourceFileAnalyzer.js';
|
|
20
19
|
export * from '../analysis/SourcePackageDependencyGraph.js';
|
|
21
20
|
export * from '../analysis/SubstitutedFunction.js';
|
|
22
|
-
export type { Meaning as TagMeaning } from '../analysis/TagMeaning.js';
|
|
23
21
|
export * from '../analysis/Tag.js';
|
|
22
|
+
export type { Meaning as TagMeaning } from '../analysis/TagMeaning.js';
|
|
24
23
|
export * from '../analysis/Translation.js';
|
|
25
24
|
export * from '../analysis/TypeMemberLookup.js';
|
|
26
25
|
export * from '../analysis/Utils.js';
|
|
@@ -4,12 +4,14 @@ export declare class ArrayUtils {
|
|
|
4
4
|
*
|
|
5
5
|
* Работает быстрее, чем `array.splice(index, 1)`, и не выделяет память для массива удалённых элементов.
|
|
6
6
|
*/
|
|
7
|
-
static removeElement<T>(array: T[], index: number): void;
|
|
7
|
+
static removeElement<T>(array: T[], index: number, count?: number): void;
|
|
8
8
|
static pushElementIfUniqueComparingWithEquals<T extends WithEqualsMethod<T>>(array: T[] | undefined, element: T): boolean;
|
|
9
9
|
static pushElementsIfUniqueComparingWithEquals<T extends WithEqualsMethod<T>>(array: T[] | undefined, elements: readonly T[]): void;
|
|
10
10
|
static count<T>(array: readonly T[], cb: (v: T) => boolean): number;
|
|
11
11
|
static compareWithEqualsIgnoringOrder<T extends WithEqualsMethod<T>>(array1: readonly T[], array2: readonly T[]): boolean;
|
|
12
12
|
static compareWithComparatorIgnoringOrder<T1, T2>(array1: readonly T1[], array2: readonly T2[], comparator: (e1: T1, e2: T2) => boolean): boolean;
|
|
13
|
+
static compareWithEquals<T extends WithEqualsMethod<T>>(array1: readonly T[], array2: readonly T[]): boolean;
|
|
14
|
+
static compareWithComparator<T1, T2>(array1: readonly T1[], array2: readonly T2[], comparator: (e1: T1, e2: T2) => boolean): boolean;
|
|
13
15
|
}
|
|
14
16
|
export type WithEqualsMethod<T> = {
|
|
15
17
|
equals(t: T): boolean;
|