@artel/artc 0.6.25259 → 0.6.25261
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/Cli.js +3 -3
- package/build/api/Api.js +28 -20
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +1266 -1217
- package/build/{chunk-HE4MTX63.js → chunk-66RH6JKB.js} +14377 -13458
- package/build/{chunk-VQI5PLBW.js → chunk-7OS2G5WZ.js} +1 -1
- package/build/{chunk-GVYF4DV5.js → chunk-UWQKBRAT.js} +11 -11
- package/build/types/analysis/AccessedFunction.d.ts +11 -11
- package/build/types/analysis/AnalyzedTranslationPackage.d.ts +28 -28
- package/build/types/analysis/Analyzer.d.ts +184 -168
- package/build/types/analysis/ArgumentToParameterMatchResult.d.ts +9 -9
- package/build/types/analysis/ArgumentsToParametersMatcher.d.ts +8 -8
- package/build/types/analysis/AssignmentChecker.d.ts +4 -4
- package/build/types/analysis/AutotypeCallExpressionMeaning.d.ts +8 -6
- package/build/types/analysis/BaseExpressionMeaning.d.ts +5 -5
- package/build/types/analysis/BaseMemberConflictsValidator.d.ts +7 -7
- package/build/types/analysis/CallExpressionMeaning.d.ts +4 -6
- package/build/types/analysis/ConstructorCallResolver.d.ts +1 -1
- package/build/types/analysis/DeclarationsUsageCounter.d.ts +5 -5
- package/build/types/analysis/DereferenceExpressionMeaning.d.ts +4 -4
- package/build/types/analysis/DiagnosticArgumentFactory.d.ts +2 -2
- package/build/types/analysis/DiagnosticCollector.d.ts +11 -9
- package/build/types/analysis/DisplayableEntity.d.ts +30 -30
- package/build/types/analysis/IdentifierExpressionMeaning.d.ts +7 -7
- package/build/types/analysis/ImportedPackageNameTree.d.ts +1 -1
- package/build/types/analysis/IndexedAccessExpressionMeaning.d.ts +4 -4
- package/build/types/analysis/InstanceFieldsInitializationValidator.d.ts +6 -6
- package/build/types/analysis/MemberAccessExpressionMeaning.d.ts +7 -7
- package/build/types/analysis/ModifierValidator.d.ts +3 -3
- package/build/types/analysis/NamedTypeResolver.d.ts +3 -3
- package/build/types/analysis/NamedTypeSpecifierResolver.d.ts +3 -3
- package/build/types/analysis/NodeTypeUtils.d.ts +1 -1
- package/build/types/analysis/ObjectExpressionMeaning.d.ts +2 -2
- package/build/types/analysis/OverloadResolver.d.ts +13 -13
- package/build/types/analysis/OwnAndBaseConstructorCallsChecker.d.ts +5 -5
- package/build/types/analysis/PackageAndStaticVariablesInitializationValidator.d.ts +5 -5
- package/build/types/analysis/PackageMemberLookup.d.ts +2 -2
- package/build/types/analysis/PackageMemberNameConflictsValidator.d.ts +7 -7
- package/build/types/analysis/ReturnTypeInferrer.d.ts +4 -4
- package/build/types/analysis/SourceFileMembers.d.ts +6 -6
- package/build/types/analysis/SourcePackageDependencyGraph.d.ts +3 -3
- package/build/types/analysis/SubstitutedFunction.d.ts +8 -8
- package/build/types/analysis/TagMeaning.d.ts +4 -4
- package/build/types/analysis/Tags.d.ts +8 -7
- package/build/types/analysis/{Localization.d.ts → Translation.d.ts} +1 -23
- package/build/types/analysis/TypeArgumentInferrer.d.ts +9 -9
- package/build/types/analysis/TypeInferrer.d.ts +4 -4
- package/build/types/analysis/TypeMemberConflictsValidator.d.ts +4 -4
- package/build/types/analysis/TypeMemberImplementationChecker.d.ts +3 -3
- package/build/types/analysis/TypeMemberLookup.d.ts +7 -7
- package/build/types/analysis/TypeNarrower.d.ts +7 -7
- package/build/types/analysis/UserDefinableBinaryOperatorResolver.d.ts +6 -6
- package/build/types/analysis/UserDefinableUnaryOperatorResolver.d.ts +3 -3
- package/build/types/analysis/Utils.d.ts +1 -2
- package/build/types/analysis/WellKnownDeclarations.d.ts +32 -32
- package/build/types/analysis/control-flow/GraphBuilder.d.ts +11 -11
- package/build/types/analysis/control-flow/NarrowableReference.d.ts +10 -10
- package/build/types/analysis/semantic-context/Declarations.d.ts +0 -24
- package/build/types/analysis/semantic-context/FieldWithInitializerSemanticContext.d.ts +2 -2
- package/build/types/analysis/semantic-context/SemanticContextBase.d.ts +23 -22
- package/build/types/analysis/semantic-context/SemanticContextBasedEntityHidingMatcher.d.ts +4 -4
- package/build/types/analysis/semantic-context/SemanticContextBuilder.d.ts +25 -25
- package/build/types/analysis/semantic-context/SemanticContextValidatingNameConflicts.d.ts +9 -9
- package/build/types/analysis/semantic-context/SourceFileSemanticContext.d.ts +8 -8
- package/build/types/analysis/semantic-context/SubprogramSemanticContext.d.ts +27 -27
- package/build/types/analysis/semantic-context/TypeSemanticContext.d.ts +9 -9
- package/build/types/api/Api.d.ts +2 -2
- package/build/types/common/Cached.d.ts +3 -3
- package/build/types/common/CancellationToken.d.ts +2 -2
- package/build/types/common/Delayed.d.ts +2 -2
- package/build/types/common/Displayable.d.ts +3 -3
- package/build/types/common/HelperPhrases.d.ts +2 -1
- package/build/types/common/Interner.d.ts +1 -1
- package/build/types/common/Lazy.d.ts +3 -3
- package/build/types/common/Option.d.ts +2 -2
- package/build/types/common/PerformanceMeasurement.d.ts +2 -2
- package/build/types/common/Query.d.ts +15 -0
- package/build/types/common/ThrottledCancellationToken.d.ts +6 -6
- package/build/types/common/TreeQuery.d.ts +2 -5
- package/build/types/diagnostic/DiagnosticCode.d.ts +142 -139
- package/build/types/diagnostic/DiagnosticData.d.ts +3 -3
- package/build/types/diagnostic/RangeDiagnostic.d.ts +3 -3
- package/build/types/emitter/DebugStack.d.ts +2 -2
- package/build/types/emitter/Emitter.d.ts +5 -5
- package/build/types/emitter/EmitterContext.d.ts +21 -21
- package/build/types/emitter/EntityMap.d.ts +8 -8
- package/build/types/emitter/GeneralLowering.d.ts +2 -2
- package/build/types/emitter/IrBuilder.d.ts +10 -10
- package/build/types/emitter/IrToJs.d.ts +5 -5
- package/build/types/emitter/Transformer.d.ts +5 -5
- package/build/types/emitter/ir/EmitOptions.d.ts +27 -13
- package/build/types/emitter/ir/Nodes.d.ts +28 -27
- package/build/types/emitter/ir/types.d.ts +2 -2
- package/build/types/entities/AliasTypeEntity.d.ts +15 -12
- package/build/types/entities/AliasedType.d.ts +2 -2
- package/build/types/entities/BaseAspectTypes.d.ts +31 -0
- package/build/types/entities/BaseEntityHidingMatcher.d.ts +1 -1
- package/build/types/entities/BaseObjectType.d.ts +31 -0
- package/build/types/entities/ConstructorEntity.d.ts +51 -38
- package/build/types/entities/DereferenceOperatorEntity.d.ts +19 -13
- package/build/types/entities/DestructorEntity.d.ts +21 -14
- package/build/types/entities/EntityHidingMatcherWithinTypeEntity.d.ts +2 -2
- package/build/types/entities/EntityLocalizationContext.d.ts +10 -10
- package/build/types/entities/FunctionEntity.d.ts +86 -70
- package/build/types/entities/FunctionTypeEntity.d.ts +37 -31
- package/build/types/entities/GetterEntity.d.ts +51 -30
- package/build/types/entities/IEntity.d.ts +12 -0
- package/build/types/entities/IndexerEntity.d.ts +24 -24
- package/build/types/entities/LocalizableTextEntity.d.ts +26 -21
- package/build/types/entities/OperatorEntity.d.ts +23 -16
- package/build/types/entities/PackageAliasEntity.d.ts +15 -9
- package/build/types/entities/PackageEntity.d.ts +15 -10
- package/build/types/entities/PackageMembers.d.ts +5 -5
- package/build/types/entities/SetterEntity.d.ts +50 -29
- package/build/types/entities/StructuredTypeEntity.d.ts +76 -115
- package/build/types/entities/TypeEntity.d.ts +2 -1
- package/build/types/entities/TypeEntityMembers.d.ts +11 -11
- package/build/types/entities/TypeExtensionEntity.d.ts +13 -8
- package/build/types/entities/TypeParameterEntity.d.ts +28 -21
- package/build/types/entities/VariableEntity.d.ts +236 -179
- package/build/types/entities/VariantTypeEntity.d.ts +28 -22
- package/build/types/entities/index.d.ts +5 -1
- package/build/types/entities/translated/TranslatedAliasTypeEntity.d.ts +18 -16
- package/build/types/entities/translated/TranslatedConstructorEntity.d.ts +15 -11
- package/build/types/entities/translated/TranslatedDereferenceOperatorEntity.d.ts +16 -12
- package/build/types/entities/translated/TranslatedDestructorEntity.d.ts +15 -11
- package/build/types/entities/translated/TranslatedFunctionEntity.d.ts +32 -27
- package/build/types/entities/translated/TranslatedFunctionTypeEntity.d.ts +33 -29
- package/build/types/entities/translated/TranslatedGetterEntity.d.ts +12 -8
- package/build/types/entities/translated/TranslatedIndexerEntity.d.ts +19 -15
- package/build/types/entities/translated/TranslatedOperatorEntity.d.ts +18 -14
- package/build/types/entities/translated/TranslatedPackageEntity.d.ts +10 -7
- package/build/types/entities/translated/TranslatedSetterEntity.d.ts +11 -7
- package/build/types/entities/translated/TranslatedStructuredTypeEntity.d.ts +41 -39
- package/build/types/entities/translated/TranslatedTypeExtensionEntity.d.ts +12 -9
- package/build/types/entities/translated/TranslatedTypeParameterEntity.d.ts +19 -16
- package/build/types/entities/translated/TranslatedVariableEntity.d.ts +44 -36
- package/build/types/entities/translated/TranslatedVariantTypeEntity.d.ts +28 -24
- package/build/types/executor/NodeCompiler.d.ts +3 -3
- package/build/types/executor/PhysicalTypeScriptLibrariesProvider.d.ts +2 -2
- package/build/types/parser/Parser.d.ts +1 -1
- package/build/types/parser/TriviaInterner.d.ts +3 -3
- package/build/types/project/Compilation.d.ts +3 -3
- package/build/types/project/CompilationLoader.d.ts +5 -5
- package/build/types/project/FileSystemTree.d.ts +6 -6
- package/build/types/project/SourceFile.d.ts +2 -2
- package/build/types/project/SourcePackage.d.ts +1 -1
- package/build/types/project/TextFile.d.ts +1 -1
- package/build/types/project/configuration/ConfigurationConverter.d.ts +1 -1
- package/build/types/project/configuration/ConfigurationFileParser.d.ts +1 -1
- package/build/types/services/AssignFieldService.d.ts +10 -0
- package/build/types/services/CodeActionsService.d.ts +1 -1
- package/build/types/services/CompletionService.d.ts +8 -8
- package/build/types/services/CustomCommand.d.ts +13 -7
- package/build/types/services/DefinitionService.d.ts +1 -1
- package/build/types/services/DisplayService.d.ts +76 -80
- package/build/types/services/DocumentHighlightsService.d.ts +1 -1
- package/build/types/services/HoverService.d.ts +3 -3
- package/build/types/services/LanguageServer.d.ts +32 -32
- package/build/types/services/NodeSemanticInfo.d.ts +9 -9
- package/build/types/services/ProjectItemsService.d.ts +1 -1
- package/build/types/services/RenameService.d.ts +1 -1
- package/build/types/services/SemanticTokensService.d.ts +1 -1
- package/build/types/services/SourceFileItemsService.d.ts +1 -1
- package/build/types/services/TranslationService.d.ts +1 -1
- package/build/types/services/signature-help/{ValueParametersSignatureHelpProvider.d.ts → ParametersSignatureHelpProvider.d.ts} +6 -6
- package/build/types/services/signature-help/{SignatureWithValueParameters.d.ts → SignatureWithParameters.d.ts} +34 -34
- package/build/types/services/signature-help/TypeParameterSignatureHelpProvider.d.ts +4 -4
- package/build/types/services/source-generation/EntityToSyntax.d.ts +4 -4
- package/build/types/services/source-generation/SourceGenerationService.d.ts +5 -5
- package/build/types/services/workspace/CompilationController.d.ts +22 -22
- package/build/types/services/workspace/FileSystemTreeProviderBasedOnWatchedFileSystem.d.ts +13 -13
- package/build/types/services/workspace/ManuallyUpdatedFileSystemTreeProvider.d.ts +4 -4
- package/build/types/services/workspace/Workspace.d.ts +7 -7
- package/build/types/services/workspace/WorkspaceFiles.d.ts +1 -1
- package/build/types/tree/BaseNode.d.ts +12 -3
- package/build/types/tree/NodeKind.d.ts +56 -57
- package/build/types/tree/Nodes.d.ts +18 -20
- package/build/types/tree/SyntaxToCode.d.ts +11 -11
- package/build/types/ts-interop/Entities.d.ts +326 -263
- package/build/types/ts-interop/TsInteropContext.d.ts +16 -14
- package/build/types/ts-interop/TsPackageContents.d.ts +16 -16
- package/build/types/ts-interop/TsPackageMembersCreator.d.ts +10 -10
- package/build/types/ts-interop/TsProgramLoader.d.ts +7 -7
- package/build/types/ts-interop/TsTypeMembersCreator.d.ts +9 -9
- package/build/types/types/AliasType.d.ts +6 -5
- package/build/types/types/FunctionType.d.ts +8 -7
- package/build/types/types/IntersectionType.d.ts +3 -2
- package/build/types/types/ParameterType.d.ts +5 -4
- package/build/types/types/StandardTypes.d.ts +21 -21
- package/build/types/types/StructuredType.d.ts +9 -10
- package/build/types/types/Substitutions.d.ts +1 -1
- package/build/types/types/Type.d.ts +1 -0
- package/build/types/types/TypeMembers.d.ts +42 -42
- package/build/types/types/UnionType.d.ts +3 -2
- package/build/types/types/UnresolvedType.d.ts +3 -2
- package/build/types/types/VariantType.d.ts +5 -4
- package/package.json +1 -1
- package/build/types/entities/TypeMemberContainer.d.ts +0 -23
- package/build/types/services/AddPropertyAssignmentService.d.ts +0 -8
|
@@ -3,17 +3,19 @@ import { AutotypeCallExpression } from '../tree/index.js';
|
|
|
3
3
|
import * as types from '../types/index.js';
|
|
4
4
|
import { Analyzer, ExpressionAnalysisOptions } from './index.js';
|
|
5
5
|
export declare class Resolver {
|
|
6
|
-
private readonly
|
|
7
|
-
private readonly
|
|
8
|
-
private readonly
|
|
9
|
-
constructor(
|
|
6
|
+
private readonly analyzer;
|
|
7
|
+
private readonly node;
|
|
8
|
+
private readonly analysisOptions;
|
|
9
|
+
constructor(analyzer: Analyzer, node: AutotypeCallExpression, analysisOptions: ExpressionAnalysisOptions | undefined);
|
|
10
10
|
resolve(): ResolutionResult;
|
|
11
|
+
private isAutotypeExpressionInValidPosition;
|
|
11
12
|
}
|
|
12
13
|
export declare class ResolutionResult {
|
|
13
14
|
readonly meaning: Meaning;
|
|
14
15
|
readonly diagnostics?: readonly Diagnostic[] | undefined;
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
readonly dependsOnTargetType: boolean;
|
|
17
|
+
constructor(meaning: Meaning, diagnostics?: readonly Diagnostic[] | undefined, dependsOnTargetType?: boolean);
|
|
18
|
+
static unresolved(diagnostics: readonly Diagnostic[] | undefined, dependsOnTargetType?: boolean): ResolutionResult;
|
|
17
19
|
}
|
|
18
20
|
export type Meaning = Meaning_constructorCall | Meaning_unresolved;
|
|
19
21
|
declare class Meaning_constructorCall {
|
|
@@ -4,8 +4,8 @@ import * as types from '../types/index.js';
|
|
|
4
4
|
import { AccessedFunction } from './AccessedFunction.js';
|
|
5
5
|
import { Analyzer } from './Analyzer.js';
|
|
6
6
|
export declare class FirstStageResolver {
|
|
7
|
-
private readonly
|
|
8
|
-
private readonly
|
|
7
|
+
private readonly analyzer;
|
|
8
|
+
private readonly node;
|
|
9
9
|
constructor(analyzer: Analyzer, node: tree.BaseExpression);
|
|
10
10
|
resolve(): FirstStageResolutionsResult;
|
|
11
11
|
private resolveBaseConstructorOrMethodAccess;
|
|
@@ -27,9 +27,9 @@ export declare class FirstStageResolver {
|
|
|
27
27
|
* реализации по умолчанию члена базового аспекта.
|
|
28
28
|
*/
|
|
29
29
|
export declare class SecondStageResolver {
|
|
30
|
-
private readonly
|
|
31
|
-
private readonly
|
|
32
|
-
private readonly
|
|
30
|
+
private readonly analyzer;
|
|
31
|
+
private readonly node;
|
|
32
|
+
private readonly firstStageResolutionResult;
|
|
33
33
|
constructor(analyzer: Analyzer, node: tree.BaseExpression, firstStageResolutionResult: FirstStageResolutionsResult);
|
|
34
34
|
resolve(): ResolutionResult;
|
|
35
35
|
private resolveOverriddenMethodAccess;
|
|
@@ -4,13 +4,13 @@ import { Node } from '../tree/index.js';
|
|
|
4
4
|
import { Analyzer } from './Analyzer.js';
|
|
5
5
|
import { DiagnosticArgumentFactory } from './DiagnosticArgumentFactory.js';
|
|
6
6
|
export declare class BaseMemberConflictsValidator {
|
|
7
|
-
private readonly
|
|
8
|
-
private readonly
|
|
9
|
-
private readonly
|
|
10
|
-
private readonly
|
|
11
|
-
private readonly
|
|
12
|
-
private readonly
|
|
13
|
-
constructor(
|
|
7
|
+
private readonly analyzer;
|
|
8
|
+
private readonly typeEntity;
|
|
9
|
+
private readonly hidingMatcher;
|
|
10
|
+
private readonly diagnosticArgumentFactory;
|
|
11
|
+
private readonly diagnostics;
|
|
12
|
+
private readonly nodeForDiagnostic;
|
|
13
|
+
constructor(analyzer: Analyzer, typeEntity: TypeEntityWithMembers, hidingMatcher: IEntityHidingMatcher, diagnosticArgumentFactory: DiagnosticArgumentFactory, diagnostics: DiagnosticAcceptor, nodeForDiagnostic: Node);
|
|
14
14
|
validate(): void;
|
|
15
15
|
private getAllNotShadowedNotOverriddenMembers;
|
|
16
16
|
private validateMemberConflicts;
|
|
@@ -5,11 +5,10 @@ import * as types from '../types/index.js';
|
|
|
5
5
|
import { AccessedFunction, NotSubstitutedAccessedFunction } from './AccessedFunction.js';
|
|
6
6
|
import { Analyzer, ExpressionAnalysisOptions } from './index.js';
|
|
7
7
|
export declare class Resolver {
|
|
8
|
-
private readonly
|
|
9
|
-
private readonly
|
|
10
|
-
private readonly
|
|
11
|
-
constructor(
|
|
12
|
-
private get callee();
|
|
8
|
+
private readonly analyzer;
|
|
9
|
+
private readonly node;
|
|
10
|
+
private readonly analysisOptions;
|
|
11
|
+
constructor(analyzer: Analyzer, node: tree.CallExpression, analysisOptions: ExpressionAnalysisOptions | undefined);
|
|
13
12
|
resolve(): ResolutionResult;
|
|
14
13
|
private checkExpressionDenotesType;
|
|
15
14
|
private checkExpressionDenotesFunction;
|
|
@@ -18,7 +17,6 @@ export declare class Resolver {
|
|
|
18
17
|
private resolveOperatorCallExpression;
|
|
19
18
|
private resolveConstructorCallExpression;
|
|
20
19
|
private resolveObjectFunctionCallExpression;
|
|
21
|
-
private getNodeForDiagnostics;
|
|
22
20
|
}
|
|
23
21
|
export declare class ResolutionResult {
|
|
24
22
|
readonly meaning: Meaning;
|
|
@@ -16,7 +16,7 @@ export declare class ResolutionResult {
|
|
|
16
16
|
readonly typeEntity: NamedTypeEntity | undefined;
|
|
17
17
|
readonly type: types.Type | undefined;
|
|
18
18
|
readonly singleNotSuitableSubstitutedCandidate: types.Constructor | undefined;
|
|
19
|
-
private static
|
|
19
|
+
private static empty_;
|
|
20
20
|
static get empty(): ResolutionResult;
|
|
21
21
|
constructor(candidates: readonly types.Constructor[], suitableConstructors: readonly types.Constructor[], typeEntity: NamedTypeEntity | undefined, type: types.Type | undefined, singleNotSuitableSubstitutedCandidate: types.Constructor | undefined);
|
|
22
22
|
}
|
|
@@ -3,16 +3,16 @@ import { Entity, NamedEntity } from '../entities/index.js';
|
|
|
3
3
|
import * as tree from '../tree/index.js';
|
|
4
4
|
import { Analyzer } from './Analyzer.js';
|
|
5
5
|
export declare class DeclarationsUsageCounter {
|
|
6
|
-
private readonly
|
|
7
|
-
private readonly
|
|
8
|
-
private readonly
|
|
6
|
+
private readonly analyzer;
|
|
7
|
+
private readonly sourceFile;
|
|
8
|
+
private readonly usageInfoByEntity;
|
|
9
9
|
constructor(analyzer: Analyzer, sourceFile: tree.SourceFile);
|
|
10
10
|
count(cancellationToken?: CancellationToken | undefined): Promise<DeclarationsUsageMap>;
|
|
11
11
|
private recordUsage;
|
|
12
12
|
}
|
|
13
13
|
export declare class DeclarationsUsageMap {
|
|
14
|
-
private readonly
|
|
15
|
-
constructor(
|
|
14
|
+
private readonly usageCountByEntity;
|
|
15
|
+
constructor(usageCountByEntity: ReadonlyMap<Entity, DeclarationUsageInfo>);
|
|
16
16
|
getUsageInfo(entity: NamedEntity): DeclarationUsageInfo;
|
|
17
17
|
}
|
|
18
18
|
export interface DeclarationUsageInfo {
|
|
@@ -4,11 +4,11 @@ import { DereferenceExpression } 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
|
-
private readonly
|
|
8
|
-
private readonly
|
|
9
|
-
private readonly
|
|
7
|
+
private readonly analyzer;
|
|
8
|
+
private readonly node;
|
|
9
|
+
private readonly semanticContext_;
|
|
10
10
|
private get semanticContext();
|
|
11
|
-
constructor(
|
|
11
|
+
constructor(analyzer: Analyzer, node: DereferenceExpression);
|
|
12
12
|
resolve(): Meaning;
|
|
13
13
|
private convertSyntacticAccessKind;
|
|
14
14
|
}
|
|
@@ -9,8 +9,8 @@ import { PackageNameTreeNode } from './ImportedPackageNameTree.js';
|
|
|
9
9
|
export declare class DiagnosticArgumentFactory {
|
|
10
10
|
readonly locale: PackageLocale;
|
|
11
11
|
readonly dialect: PackageDialect;
|
|
12
|
-
private readonly
|
|
13
|
-
private readonly
|
|
12
|
+
private readonly analyzer;
|
|
13
|
+
private readonly contextualSourceFile;
|
|
14
14
|
constructor(analyzer: Analyzer, locale: PackageLocale, dialect: PackageDialect, sourceFile: SourceFile | undefined);
|
|
15
15
|
createDisplayableEntity(entity: Entity): DisplayableEntity;
|
|
16
16
|
createDisplayableAccessedFunction(accessedFunction: AccessedFunction): DisplayableAccessedFunction;
|
|
@@ -4,21 +4,23 @@ import * as project from '../project/index.js';
|
|
|
4
4
|
import { Analyzer } from './index.js';
|
|
5
5
|
export declare class DiagnosticCollector {
|
|
6
6
|
static readonly CancellationTokenThrottleTime = 50;
|
|
7
|
-
private readonly
|
|
8
|
-
private readonly
|
|
9
|
-
private readonly
|
|
10
|
-
private readonly
|
|
11
|
-
private readonly
|
|
12
|
-
private readonly
|
|
13
|
-
private
|
|
14
|
-
private readonly
|
|
15
|
-
private readonly
|
|
7
|
+
private readonly analyzer;
|
|
8
|
+
private readonly sourceFile;
|
|
9
|
+
private readonly diagnosticArgumentFactory;
|
|
10
|
+
private readonly translationPackage_;
|
|
11
|
+
private readonly diagnostics;
|
|
12
|
+
private readonly diagnosticAcceptor;
|
|
13
|
+
private namedDeclarationsUsageMap;
|
|
14
|
+
private readonly modifierValidator;
|
|
15
|
+
private readonly standardTypes_;
|
|
16
16
|
private get translationPackage();
|
|
17
17
|
private get isInterfacePackageFile();
|
|
18
18
|
private get standardTypes();
|
|
19
19
|
constructor(analyzer: Analyzer, sourceFile: project.SourceFile);
|
|
20
20
|
collect(cancellationToken?: CancellationToken | undefined): Promise<Diagnostic[]>;
|
|
21
21
|
private collectNodeDiagnostics;
|
|
22
|
+
private checkTypeParameterList;
|
|
23
|
+
private checkTypeParameterDeclaration;
|
|
22
24
|
private checkFunctionLiteral;
|
|
23
25
|
private checkFunctionBlockLiteral;
|
|
24
26
|
private checkDereferenceExpression;
|
|
@@ -6,47 +6,47 @@ import { AccessedFunction } from './AccessedFunction.js';
|
|
|
6
6
|
import { Analyzer } from './Analyzer.js';
|
|
7
7
|
import { PackageNameTreeNode } from './ImportedPackageNameTree.js';
|
|
8
8
|
export declare class DisplayableEntity implements Displayable {
|
|
9
|
-
private readonly
|
|
10
|
-
private readonly
|
|
11
|
-
private readonly
|
|
12
|
-
private readonly
|
|
13
|
-
private readonly
|
|
14
|
-
constructor(
|
|
9
|
+
private readonly analyzer;
|
|
10
|
+
private readonly entity;
|
|
11
|
+
private readonly locale;
|
|
12
|
+
private readonly dialect;
|
|
13
|
+
private readonly contextualSourceFile;
|
|
14
|
+
constructor(analyzer: Analyzer, entity: Entity, locale: PackageLocale, dialect: PackageDialect, contextualSourceFile: SourceFile | undefined);
|
|
15
15
|
getDisplayText(): string;
|
|
16
16
|
}
|
|
17
17
|
export declare class DisplayableAccessedFunction implements Displayable {
|
|
18
|
-
private readonly
|
|
19
|
-
private readonly
|
|
20
|
-
private readonly
|
|
21
|
-
private readonly
|
|
22
|
-
private readonly
|
|
23
|
-
constructor(
|
|
18
|
+
private readonly analyzer;
|
|
19
|
+
private readonly accessedFunction;
|
|
20
|
+
private readonly locale;
|
|
21
|
+
private readonly dialect;
|
|
22
|
+
private readonly contextualSourceFile;
|
|
23
|
+
constructor(analyzer: Analyzer, accessedFunction: AccessedFunction, locale: PackageLocale, dialect: PackageDialect, contextualSourceFile: SourceFile | undefined);
|
|
24
24
|
getDisplayText(): string;
|
|
25
25
|
}
|
|
26
26
|
export declare class DisplayableTypeMember implements Displayable {
|
|
27
|
-
private readonly
|
|
28
|
-
private readonly
|
|
29
|
-
private readonly
|
|
30
|
-
private readonly
|
|
31
|
-
private readonly
|
|
32
|
-
constructor(
|
|
27
|
+
private readonly analyzer;
|
|
28
|
+
private readonly member;
|
|
29
|
+
private readonly locale;
|
|
30
|
+
private readonly dialect;
|
|
31
|
+
private readonly contextualSourceFile;
|
|
32
|
+
constructor(analyzer: Analyzer, member: types.TypeMember, locale: PackageLocale, dialect: PackageDialect, contextualSourceFile: SourceFile | undefined);
|
|
33
33
|
getDisplayText(): string;
|
|
34
34
|
}
|
|
35
35
|
export declare class DisplayablePackageNameTreeNode implements Displayable {
|
|
36
|
-
private readonly
|
|
37
|
-
private readonly
|
|
38
|
-
private readonly
|
|
39
|
-
private readonly
|
|
40
|
-
private readonly
|
|
41
|
-
constructor(
|
|
36
|
+
private readonly analyzer;
|
|
37
|
+
private readonly node;
|
|
38
|
+
private readonly locale;
|
|
39
|
+
private readonly dialect;
|
|
40
|
+
private readonly contextualSourceFile;
|
|
41
|
+
constructor(analyzer: Analyzer, node: PackageNameTreeNode, locale: PackageLocale, dialect: PackageDialect, contextualSourceFile: SourceFile | undefined);
|
|
42
42
|
getDisplayText(): string;
|
|
43
43
|
}
|
|
44
44
|
export declare class DisplayableType implements Displayable {
|
|
45
|
-
private readonly
|
|
46
|
-
private readonly
|
|
47
|
-
private readonly
|
|
48
|
-
private readonly
|
|
49
|
-
private readonly
|
|
50
|
-
constructor(
|
|
45
|
+
private readonly analyzer;
|
|
46
|
+
private readonly type;
|
|
47
|
+
private readonly locale;
|
|
48
|
+
private readonly dialect;
|
|
49
|
+
private readonly contextualSourceFile;
|
|
50
|
+
constructor(analyzer: Analyzer, type: types.Type, locale: PackageLocale, dialect: PackageDialect, contextualSourceFile: SourceFile | undefined);
|
|
51
51
|
getDisplayText(): string;
|
|
52
52
|
}
|
|
@@ -9,9 +9,9 @@ import { PackageNameTreeNode } from './ImportedPackageNameTree.js';
|
|
|
9
9
|
import { Analyzer, ExpressionAnalysisOptions } from './index.js';
|
|
10
10
|
import { NamedDeclaration } from './semantic-context/index.js';
|
|
11
11
|
export declare class FirstStageResolver {
|
|
12
|
-
private readonly
|
|
13
|
-
private readonly
|
|
14
|
-
private readonly
|
|
12
|
+
private readonly semanticContext_;
|
|
13
|
+
private readonly analyzer;
|
|
14
|
+
private readonly node;
|
|
15
15
|
private get semanticContext();
|
|
16
16
|
constructor(analyzer: Analyzer, node: tree.IdentifierExpression);
|
|
17
17
|
resolve(): FirstStageResolutionResult;
|
|
@@ -21,10 +21,10 @@ export declare class FirstStageResolver {
|
|
|
21
21
|
private convertSyntacticAccessKind;
|
|
22
22
|
}
|
|
23
23
|
export declare class SecondStageResolver {
|
|
24
|
-
private readonly
|
|
25
|
-
private readonly
|
|
26
|
-
private readonly
|
|
27
|
-
private readonly
|
|
24
|
+
private readonly analyzer;
|
|
25
|
+
private readonly node;
|
|
26
|
+
private readonly firstStageResolutionResult;
|
|
27
|
+
private readonly analysisOptions;
|
|
28
28
|
constructor(analyzer: Analyzer, node: tree.IdentifierExpression, firstStageResolutionResult: FirstStageResolutionResult, analysisOptions: ExpressionAnalysisOptions | undefined);
|
|
29
29
|
resolve(): ResolutionResult;
|
|
30
30
|
private resolveTypeAccessAtCalleePosition;
|
|
@@ -2,7 +2,7 @@ import { Name } from '../common/index.js';
|
|
|
2
2
|
import { PackageEntity } from '../entities/PackageEntity.js';
|
|
3
3
|
import { PackageImportInfo } from './Analyzer.js';
|
|
4
4
|
export declare class ImportedPackageNameTree {
|
|
5
|
-
private readonly
|
|
5
|
+
private readonly rootNodes_;
|
|
6
6
|
get rootNodes(): ReadonlyMap<string, PackageNameTreeNode>;
|
|
7
7
|
constructor(owningPackage: PackageEntity, packageImportInfos: readonly PackageImportInfo[]);
|
|
8
8
|
private add;
|
|
@@ -4,11 +4,11 @@ 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
|
-
private readonly
|
|
8
|
-
private readonly
|
|
9
|
-
private readonly
|
|
7
|
+
private readonly analyzer;
|
|
8
|
+
private readonly node;
|
|
9
|
+
private readonly semanticContext_;
|
|
10
10
|
private get semanticContext();
|
|
11
|
-
constructor(
|
|
11
|
+
constructor(analyzer: Analyzer, node: IndexedAccessExpression);
|
|
12
12
|
resolve(): ResolutionResult;
|
|
13
13
|
private getArgumentsRangeWithBrackets;
|
|
14
14
|
private convertSyntacticAccessKind;
|
|
@@ -3,13 +3,13 @@ import { Analyzer } from './Analyzer.js';
|
|
|
3
3
|
import { DeclarationsUsageMap } from './DeclarationsUsageCounter.js';
|
|
4
4
|
import { TypeWithMembersDeclaration } from './NodeTypeUtils.js';
|
|
5
5
|
export declare class InstanceFieldsInitializationValidator {
|
|
6
|
-
private readonly
|
|
7
|
-
private readonly
|
|
8
|
-
private readonly
|
|
9
|
-
private readonly
|
|
10
|
-
private readonly
|
|
6
|
+
private readonly analyzer;
|
|
7
|
+
private readonly typeDeclaration;
|
|
8
|
+
private readonly declarationsUsageCountResult;
|
|
9
|
+
private readonly diagnostics;
|
|
10
|
+
private readonly semanticContext_;
|
|
11
11
|
private get semanticContext();
|
|
12
|
-
constructor(
|
|
12
|
+
constructor(analyzer: Analyzer, typeDeclaration: TypeWithMembersDeclaration, declarationsUsageCountResult: DeclarationsUsageMap, diagnostics: DiagnosticAcceptor);
|
|
13
13
|
validate(): void;
|
|
14
14
|
private getFieldsThatNeedToBeInitializedInConstructor;
|
|
15
15
|
private checkDefaultConstructorInitializesAllFields;
|
|
@@ -8,9 +8,9 @@ import * as callExpressionMeaning from './CallExpressionMeaning.js';
|
|
|
8
8
|
import { PackageNameTreeNode } from './ImportedPackageNameTree.js';
|
|
9
9
|
import { Analyzer, ExpressionAnalysisOptions } from './index.js';
|
|
10
10
|
export declare class FirstStageResolver {
|
|
11
|
-
private readonly
|
|
12
|
-
private readonly
|
|
13
|
-
private readonly
|
|
11
|
+
private readonly semanticContext_;
|
|
12
|
+
private readonly analyzer;
|
|
13
|
+
private readonly node;
|
|
14
14
|
private get memberName();
|
|
15
15
|
private get semanticContext();
|
|
16
16
|
private get receiver();
|
|
@@ -26,10 +26,10 @@ export declare class FirstStageResolver {
|
|
|
26
26
|
private convertSyntacticAccessKind;
|
|
27
27
|
}
|
|
28
28
|
export declare class SecondStageResolver {
|
|
29
|
-
private readonly
|
|
30
|
-
private readonly
|
|
31
|
-
private readonly
|
|
32
|
-
private readonly
|
|
29
|
+
private readonly analyzer;
|
|
30
|
+
private readonly node;
|
|
31
|
+
private readonly firstStageResolutionResult;
|
|
32
|
+
private readonly analysisOptions;
|
|
33
33
|
constructor(analyzer: Analyzer, node: tree.MemberAccessExpression, firstStageResolutionResult: FirstStageResolutionResult, analysisOptions: ExpressionAnalysisOptions | undefined);
|
|
34
34
|
resolve(): ResolutionResult;
|
|
35
35
|
private resolveTypeAccessAtCalleePosition;
|
|
@@ -30,8 +30,8 @@ export declare enum DeclarationWithTypeMembersKind {
|
|
|
30
30
|
TypeExtension = 5
|
|
31
31
|
}
|
|
32
32
|
export declare class ModifierValidator {
|
|
33
|
-
private readonly
|
|
34
|
-
private readonly
|
|
33
|
+
private readonly analyzer;
|
|
34
|
+
private readonly diagnostics;
|
|
35
35
|
static readonly allowedPackageMemberHidingModifiers: number;
|
|
36
36
|
static readonly allowedPackageMemberModifiers: number;
|
|
37
37
|
static readonly allowedModifiersByPackageMemberDeclarationKind: {
|
|
@@ -43,7 +43,7 @@ export declare class ModifierValidator {
|
|
|
43
43
|
[T in TypeMemberDeclarationKind]: ModifierFlags;
|
|
44
44
|
};
|
|
45
45
|
private effectiveModifiers;
|
|
46
|
-
constructor(
|
|
46
|
+
constructor(analyzer: Analyzer, diagnostics: DiagnosticAcceptor);
|
|
47
47
|
static validatePackageVariableAccessorsHaveConsistentModifiers(analyzer: Analyzer, getterModifiers: ModifierFlags, setterModifiers: ModifierFlags, nodeForDiagnostic: tree.Node, diagnostics: DiagnosticAcceptor): void;
|
|
48
48
|
static validateFieldAccessorsHaveConsistentModifiers(analyzer: Analyzer, getterModifiers: ModifierFlags, setterModifiers: ModifierFlags, nodeForDiagnostic: tree.Node, diagnostics: DiagnosticAcceptor): void;
|
|
49
49
|
static validateIndexedElementAccessorsHaveConsistentModifiers(analyzer: Analyzer, getterModifiers: ModifierFlags, setterModifiers: ModifierFlags, nodeForDiagnostic: tree.Node, diagnostics: DiagnosticAcceptor): void;
|
|
@@ -5,9 +5,9 @@ import { Analyzer } from './Analyzer.js';
|
|
|
5
5
|
import { PackageNameTreeNode } from './ImportedPackageNameTree.js';
|
|
6
6
|
import { EntityOrPackageNameTreeNode } from './Utils.js';
|
|
7
7
|
export declare class NamedTypeResolver {
|
|
8
|
-
private readonly
|
|
9
|
-
private readonly
|
|
10
|
-
private readonly
|
|
8
|
+
private readonly analyzer;
|
|
9
|
+
private readonly node;
|
|
10
|
+
private readonly semanticContext_;
|
|
11
11
|
private get semanticContext();
|
|
12
12
|
constructor(analyzer: Analyzer, node: QualifiedName);
|
|
13
13
|
resolve(): NamedTypeResolutionResult;
|
|
@@ -5,9 +5,9 @@ import { Analyzer } from './Analyzer.js';
|
|
|
5
5
|
import { ResolvedQualifier } from './NamedTypeResolver.js';
|
|
6
6
|
import { EntityOrPackageNameTreeNode } from './Utils.js';
|
|
7
7
|
export declare class NamedTypeSpecifierResolver {
|
|
8
|
-
private readonly
|
|
9
|
-
private readonly
|
|
10
|
-
constructor(
|
|
8
|
+
private readonly analyzer;
|
|
9
|
+
private readonly node;
|
|
10
|
+
constructor(analyzer: Analyzer, node: NamedTypeSpecifier);
|
|
11
11
|
resolve(): NamedTypeSpecifierResolutionResult;
|
|
12
12
|
}
|
|
13
13
|
export declare class NamedTypeSpecifierResolutionResult {
|
|
@@ -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.
|
|
27
|
+
export type VariableDeclaration = tree.ForStatementVariableDeclaration | tree.PackageVariableDeclaration | tree.LocalVariableDeclaration | tree.ParameterDeclaration | tree.FieldDeclaration | tree.VariantDeclaration;
|
|
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;
|
|
@@ -8,8 +8,8 @@ import { Analyzer } from './Analyzer.js';
|
|
|
8
8
|
* 2. объект - в любом выражении в контексте типа.
|
|
9
9
|
*/
|
|
10
10
|
export declare class Resolver {
|
|
11
|
-
private readonly
|
|
12
|
-
private readonly
|
|
11
|
+
private readonly analyzer;
|
|
12
|
+
private readonly node;
|
|
13
13
|
constructor(analyzer: Analyzer, node: tree.ObjectExpression);
|
|
14
14
|
resolve(): ResolutionResult;
|
|
15
15
|
private resolveOwnConstructorAccess;
|
|
@@ -8,15 +8,15 @@ import * as matcher from './ArgumentsToParametersMatcher.js';
|
|
|
8
8
|
import { DiagnosticArgumentFactory } from './DiagnosticArgumentFactory.js';
|
|
9
9
|
import * as inferrer from './TypeArgumentInferrer.js';
|
|
10
10
|
export declare class OverloadResolver<TSignature extends ISignature<TParameter>, TParameter extends ISignatureParameter, TArgument extends Argument> {
|
|
11
|
-
private readonly
|
|
12
|
-
private readonly
|
|
13
|
-
private readonly
|
|
14
|
-
private readonly
|
|
15
|
-
private readonly
|
|
16
|
-
private readonly
|
|
17
|
-
private readonly
|
|
18
|
-
private readonly
|
|
19
|
-
constructor(
|
|
11
|
+
private readonly analyzer;
|
|
12
|
+
private readonly mode;
|
|
13
|
+
private readonly signatures;
|
|
14
|
+
private readonly arguments_;
|
|
15
|
+
private readonly analysisOptions;
|
|
16
|
+
private readonly dataForTypeArgumentInference;
|
|
17
|
+
private readonly diagnostics;
|
|
18
|
+
private readonly nodesForDiagnostic;
|
|
19
|
+
constructor(analyzer: Analyzer, mode: ResolutionMode, signatures: readonly TSignature[], arguments_: readonly TArgument[], analysisOptions: ExpressionAnalysisOptions, dataForTypeArgumentInference: DataForTypeArgumentInference | undefined, diagnostics: DiagnosticAcceptorWithArgumentFactory | undefined, nodesForDiagnostic: NodesForDiagnostic | undefined);
|
|
20
20
|
resolveOverload(): ProcessedSignature<TSignature, TParameter, TArgument>[];
|
|
21
21
|
private areArgumentTypesAssignableToParameterTypes;
|
|
22
22
|
private tryChooseBestSignature;
|
|
@@ -55,7 +55,7 @@ export declare class IntrinsicArgument implements matcher.IArgument, inferrer.In
|
|
|
55
55
|
get name(): Name | undefined;
|
|
56
56
|
constructor(type: types.Type);
|
|
57
57
|
getDiagnosticLocation(): DiagnosticLocation | undefined;
|
|
58
|
-
getType(
|
|
58
|
+
getType(analysisOptions_: ExpressionAnalysisOptions | undefined): types.Type;
|
|
59
59
|
}
|
|
60
60
|
interface IArgument {
|
|
61
61
|
getType(analysisOptions: ExpressionAnalysisOptions | undefined): types.Type;
|
|
@@ -64,18 +64,18 @@ export declare class SourceNodeArgument implements SourceArgument {
|
|
|
64
64
|
readonly kind = "source";
|
|
65
65
|
readonly node: tree.Argument;
|
|
66
66
|
readonly name: Name | undefined;
|
|
67
|
-
private readonly
|
|
67
|
+
private readonly analyzer;
|
|
68
68
|
get expression(): tree.Expression;
|
|
69
69
|
constructor(analyzer: Analyzer, node: tree.Argument);
|
|
70
70
|
getDiagnosticLocation(): DiagnosticLocation;
|
|
71
71
|
getType(analysisOptions: ExpressionAnalysisOptions | undefined): types.Type;
|
|
72
72
|
}
|
|
73
73
|
export declare class SourceExpressionArgument implements SourceArgument {
|
|
74
|
-
private readonly
|
|
74
|
+
private readonly analyzer;
|
|
75
75
|
readonly expression: tree.Expression;
|
|
76
76
|
readonly kind = "source";
|
|
77
77
|
get name(): Name | undefined;
|
|
78
|
-
constructor(
|
|
78
|
+
constructor(analyzer: Analyzer, expression: tree.Expression);
|
|
79
79
|
getDiagnosticLocation(): DiagnosticLocation;
|
|
80
80
|
getType(analysisOptions: ExpressionAnalysisOptions | undefined): types.Type;
|
|
81
81
|
}
|
|
@@ -5,11 +5,11 @@ import * as types from '../types/index.js';
|
|
|
5
5
|
import { Analyzer } from './Analyzer.js';
|
|
6
6
|
import { SemanticContext } from './semantic-context/SemanticContext.js';
|
|
7
7
|
export declare class OwnAndBaseConstructorCallsChecker {
|
|
8
|
-
private readonly
|
|
9
|
-
private readonly
|
|
10
|
-
private readonly
|
|
11
|
-
private readonly
|
|
12
|
-
constructor(
|
|
8
|
+
private readonly analyzer;
|
|
9
|
+
private readonly constructorDeclarations;
|
|
10
|
+
private readonly typeEntity;
|
|
11
|
+
private readonly semanticContext;
|
|
12
|
+
constructor(analyzer: Analyzer, constructorDeclarations: readonly tree.ConstructorDeclaration[], typeEntity: TypeEntityWithMembers, semanticContext: SemanticContext);
|
|
13
13
|
check(): OwnAndBaseConstructorCallsCheckResult;
|
|
14
14
|
private addOwnConstructorCallOrReportCycleDiagnostic;
|
|
15
15
|
private getUnaliasedBaseObjectType;
|
|
@@ -3,11 +3,11 @@ import { SourcePackage } from '../project/SourcePackage.js';
|
|
|
3
3
|
import { Analyzer } from './Analyzer.js';
|
|
4
4
|
import { DeclarationsUsageMap } from './DeclarationsUsageCounter.js';
|
|
5
5
|
export declare class PackageAndStaticVariablesInitializationValidator {
|
|
6
|
-
private readonly
|
|
7
|
-
private readonly
|
|
8
|
-
private readonly
|
|
9
|
-
private readonly
|
|
10
|
-
constructor(
|
|
6
|
+
private readonly analyzer;
|
|
7
|
+
private readonly package_;
|
|
8
|
+
private readonly declarationsUsageMapList;
|
|
9
|
+
private readonly diagnostics;
|
|
10
|
+
constructor(analyzer: Analyzer, package_: SourcePackage, declarationsUsageMapList: readonly DeclarationsUsageMap[], diagnostics: DiagnosticAcceptor);
|
|
11
11
|
validate(): void;
|
|
12
12
|
private getVariablesThatNeedToBeInitializedInConstructor;
|
|
13
13
|
private collectStaticFieldsThatNeedToBeInitializedInConstructor;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Name } from '../common/index.js';
|
|
2
2
|
import { IEntityHidingMatcher, NamedPackageMemberEntity, PackageEntity, TypeEntity, TypeExtensionEntity } from '../entities/index.js';
|
|
3
3
|
export declare class PackageMemberLookup {
|
|
4
|
-
private readonly
|
|
5
|
-
constructor(
|
|
4
|
+
private readonly package_;
|
|
5
|
+
constructor(package_: PackageEntity);
|
|
6
6
|
getNamedMembers(hidingMatcher?: IEntityHidingMatcher): readonly NamedPackageMemberEntity[];
|
|
7
7
|
getNamedMembersByName(name: Name, hidingMatcher?: IEntityHidingMatcher): readonly NamedPackageMemberEntity[];
|
|
8
8
|
getTypeExtensions(type: TypeEntity, hidingMatcher?: IEntityHidingMatcher): readonly TypeExtensionEntity[];
|
|
@@ -3,10 +3,10 @@ import { PackageEntityMembers } from '../entities/PackageMembers.js';
|
|
|
3
3
|
import { ProgramPackage } from '../project/SourcePackage.js';
|
|
4
4
|
import { Analyzer } from './Analyzer.js';
|
|
5
5
|
export declare class PackageMemberNameConflictsValidator {
|
|
6
|
-
private readonly
|
|
7
|
-
private readonly
|
|
8
|
-
private readonly
|
|
9
|
-
constructor(
|
|
6
|
+
private readonly analyzer;
|
|
7
|
+
private readonly members;
|
|
8
|
+
private readonly diagnostics;
|
|
9
|
+
constructor(analyzer: Analyzer, members: PackageEntityMembers);
|
|
10
10
|
validate(): readonly Diagnostic[];
|
|
11
11
|
private validateFunctionNameConflicts;
|
|
12
12
|
private validateTypeNameConflicts;
|
|
@@ -16,8 +16,8 @@ export declare class PackageMemberNameConflictsValidator {
|
|
|
16
16
|
private getDiagnosticLocation;
|
|
17
17
|
}
|
|
18
18
|
export declare class SourcePackageMemberConflictsValidator {
|
|
19
|
-
private readonly
|
|
20
|
-
private readonly
|
|
21
|
-
constructor(
|
|
19
|
+
private readonly analyzer;
|
|
20
|
+
private readonly package_;
|
|
21
|
+
constructor(analyzer: Analyzer, package_: ProgramPackage);
|
|
22
22
|
validate(): readonly Diagnostic[];
|
|
23
23
|
}
|
|
@@ -3,10 +3,10 @@ import * as tree from '../tree/index.js';
|
|
|
3
3
|
import { LocalVariableEntity } from '../entities/VariableEntity.js';
|
|
4
4
|
import * as types from '../types/index.js';
|
|
5
5
|
export declare class ReturnTypeInferrer {
|
|
6
|
-
private readonly
|
|
7
|
-
private readonly
|
|
8
|
-
private readonly
|
|
9
|
-
constructor(
|
|
6
|
+
private readonly analyzer;
|
|
7
|
+
private readonly block;
|
|
8
|
+
private readonly resultVariable;
|
|
9
|
+
constructor(analyzer: Analyzer, block: tree.FunctionBlock, resultVariable: LocalVariableEntity);
|
|
10
10
|
infer(): types.Type;
|
|
11
11
|
private checkResultVariableIsUsedAndCollectReturnedTypes;
|
|
12
12
|
private getTypeOfResultVariableAtTheEndOfSubprogram;
|
|
@@ -3,12 +3,12 @@ import { DiagnosticAcceptor } from '../diagnostic/Diagnostic.js';
|
|
|
3
3
|
import { PackageAliasEntity, PackageFunctionEntity, PackageTypeEntity, PackageVariableEntity, TypeExtensionEntity } from '../entities/index.js';
|
|
4
4
|
import { Analyzer } from './Analyzer.js';
|
|
5
5
|
export declare class SourceFileMembers {
|
|
6
|
-
private static readonly
|
|
7
|
-
private static readonly
|
|
8
|
-
private readonly
|
|
9
|
-
private readonly
|
|
10
|
-
private readonly
|
|
11
|
-
private readonly
|
|
6
|
+
private static readonly emptyNamedMembers;
|
|
7
|
+
private static readonly emptyPackageAliases;
|
|
8
|
+
private readonly analyzer;
|
|
9
|
+
private readonly namedMembers;
|
|
10
|
+
private readonly typeExtensions;
|
|
11
|
+
private readonly declarationsByName_;
|
|
12
12
|
get declarationsByName(): ReadonlyMap<string, readonly NamedSourceFileMemberEntity[]>;
|
|
13
13
|
constructor(analyzer: Analyzer, namedMembers: readonly NamedSourceFileMemberEntity[], typeExtensions: readonly TypeExtensionEntity[]);
|
|
14
14
|
getNamedDeclarations(): readonly NamedSourceFileMemberEntity[];
|