@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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import ts from 'typescript';
|
|
2
|
-
import { CancellationToken, DisplayableOrPrimitive, Name, PackageLocale, Range, WithDiagnostics } from '../common/index.js';
|
|
2
|
+
import { CancellationToken, DisplayableOrPrimitive, Name, PackageLocale, Query, Range, TypeWithMembersOrTypeExtensionDeclaration, WithDiagnostics } from '../common/index.js';
|
|
3
3
|
import { Diagnostic, DiagnosticAcceptor, DiagnosticLocation } from '../diagnostic/Diagnostic.js';
|
|
4
4
|
import { DiagnosticCode } from '../diagnostic/DiagnosticCode.js';
|
|
5
5
|
import { DiagnosticFlags, DiagnosticKind } from '../diagnostic/DiagnosticData.js';
|
|
@@ -15,7 +15,7 @@ import * as types from '../types/index.js';
|
|
|
15
15
|
import { TypeFactory } from '../types/index.js';
|
|
16
16
|
import { AccessedFunction } from './AccessedFunction.js';
|
|
17
17
|
import { AnalyzedTranslationPackage } from './AnalyzedTranslationPackage.js';
|
|
18
|
-
import { ArgumentToParameterMatchResult,
|
|
18
|
+
import { ArgumentToParameterMatchResult, MatchResultParameter } from './ArgumentToParameterMatchResult.js';
|
|
19
19
|
import * as autotypeCallExpressionMeaning from './AutotypeCallExpressionMeaning.js';
|
|
20
20
|
import * as baseExpressionMeaning from './BaseExpressionMeaning.js';
|
|
21
21
|
import * as callExpressionMeaning from './CallExpressionMeaning.js';
|
|
@@ -71,75 +71,71 @@ export declare class Analyzer {
|
|
|
71
71
|
readonly signatureComparer: SignatureComparer;
|
|
72
72
|
readonly conflictsCheck: ConflictsCheck;
|
|
73
73
|
readonly typeAssignabilityCheck: TypeAssignabilityCheck;
|
|
74
|
-
private readonly
|
|
75
|
-
private readonly
|
|
76
|
-
private readonly
|
|
77
|
-
private readonly
|
|
78
|
-
private readonly
|
|
79
|
-
private readonly
|
|
80
|
-
private readonly
|
|
81
|
-
private readonly
|
|
82
|
-
private readonly
|
|
83
|
-
private readonly
|
|
84
|
-
private readonly
|
|
85
|
-
private readonly
|
|
86
|
-
private readonly
|
|
87
|
-
private readonly
|
|
88
|
-
private readonly
|
|
89
|
-
private readonly
|
|
90
|
-
private readonly
|
|
91
|
-
private readonly
|
|
92
|
-
private readonly
|
|
93
|
-
private readonly
|
|
94
|
-
private readonly
|
|
95
|
-
private readonly
|
|
96
|
-
private readonly
|
|
97
|
-
private readonly
|
|
98
|
-
private readonly
|
|
99
|
-
private readonly
|
|
100
|
-
private readonly
|
|
101
|
-
private readonly
|
|
102
|
-
private readonly
|
|
103
|
-
private readonly
|
|
104
|
-
private readonly
|
|
105
|
-
private readonly
|
|
106
|
-
private readonly
|
|
107
|
-
private
|
|
108
|
-
private
|
|
109
|
-
private readonly
|
|
110
|
-
private readonly
|
|
111
|
-
private readonly
|
|
112
|
-
private readonly
|
|
113
|
-
private readonly
|
|
74
|
+
private readonly tsInteropInputs;
|
|
75
|
+
private readonly targetType;
|
|
76
|
+
private readonly tsInterop_;
|
|
77
|
+
private readonly memberAccessExpressionResolutionResults;
|
|
78
|
+
private readonly memberAccessExpressionResolutionResultsFirstStage;
|
|
79
|
+
private readonly sourceFileMembers;
|
|
80
|
+
private readonly callExpressionResolutionResults;
|
|
81
|
+
private readonly indexedAccessExpressionResolutionResults;
|
|
82
|
+
private readonly dereferenceExpressionMeanings;
|
|
83
|
+
private readonly autotypeCallExpressionResolutionResults;
|
|
84
|
+
private readonly identifierExpressionResolutionResults;
|
|
85
|
+
private readonly identifierExpressionResolutionResultsFirstStage;
|
|
86
|
+
private readonly tagResolutionResults;
|
|
87
|
+
private readonly objectExpressionResolutionResults;
|
|
88
|
+
private readonly baseExpressionResolutionResultsFirstStage;
|
|
89
|
+
private readonly baseExpressionResolutionResults;
|
|
90
|
+
private readonly namedTypeSpecifierResolutionResults;
|
|
91
|
+
private readonly prefixUnaryExpressionOperatorResolutionResults;
|
|
92
|
+
private readonly binaryExpressionUserDefinableOperatorResolutionResults;
|
|
93
|
+
private readonly assignmentStatementOperatorResolutionResults;
|
|
94
|
+
private readonly parametersOfFunctionBlockLiterals;
|
|
95
|
+
private readonly extendedTypes;
|
|
96
|
+
private readonly analyzedTranslationPackages;
|
|
97
|
+
private readonly linkedMultiPlatformPackagesByPlatform;
|
|
98
|
+
private readonly isFunctionGeneratorCheckResults;
|
|
99
|
+
private readonly namedDeclarationsUsageCountResults;
|
|
100
|
+
private readonly packageAndStaticVariablesInitializationDiagnostics;
|
|
101
|
+
private readonly controlFlowGraphs;
|
|
102
|
+
private readonly diagnosticsComputedLazily;
|
|
103
|
+
private readonly diagnosticsComputedLazilyAcceptor;
|
|
104
|
+
private readonly sourcePackageMemberConflictsDiagnostics;
|
|
105
|
+
private readonly notExplicitlyImplementedAbstractTypeMembers;
|
|
106
|
+
private readonly typeMemberImplementationCheckResults;
|
|
107
|
+
private originalPackageEntitiesByNameKey;
|
|
108
|
+
private packageEntitiesByNameKey;
|
|
109
|
+
private readonly localizedWellKnownDeclarations;
|
|
110
|
+
private readonly localizedStandardTypes;
|
|
111
|
+
private readonly ownAndBaseConstructorCallsCheckResults;
|
|
112
|
+
private readonly expressionCanBeUsedInForLoopCheckResults;
|
|
113
|
+
private readonly nameByIdentifierText;
|
|
114
114
|
get tsInterop(): TsInteropContext;
|
|
115
115
|
constructor(compilation: project.Compilation, tsInteropInputs: TsInteropInputs);
|
|
116
116
|
getProjectSourceFile(node: tree.SourceFile): project.SourceFile;
|
|
117
117
|
checkExpressionCanBeUsedInForLoop(node: tree.Expression): WithDiagnostics<ExpressionCanBeUsedInForLoopCheckResult>;
|
|
118
118
|
isEnumeratorMethodSignature(entity: e.MethodEntity): boolean;
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
} | undefined;
|
|
125
|
-
isTypeReference(type: types.Type): {
|
|
126
|
-
referencedType: types.Type;
|
|
127
|
-
} | undefined;
|
|
119
|
+
ifTypeEnumerableThenElementType(type: types.Type): types.Type | undefined;
|
|
120
|
+
ifTypeEnumeratorThenElementType(type: types.Type): types.Type | undefined;
|
|
121
|
+
ifTypeEnumerableOrEnumeratorThenElementType(type: types.Type): types.Type | undefined;
|
|
122
|
+
ifTypeArrayOrReadonlyArrayThenElementType(type: types.Type): types.Type | undefined;
|
|
123
|
+
ifTypeReferenceThenReferencedType(type: types.Type): types.Type | undefined;
|
|
128
124
|
isTypeAssignableTo(source: types.Type, target: types.Type): boolean;
|
|
129
125
|
getTypeAssignabilityFlags(source: types.Type, target: types.Type): TypeAssignabilityFlags;
|
|
130
|
-
|
|
126
|
+
checkBlockCallsAsyncMethods(node: tree.StatementBlock | tree.FunctionBlock): boolean;
|
|
131
127
|
getSyntacticAccessKind(node: tree.Expression): SyntacticAccessKind;
|
|
132
|
-
|
|
128
|
+
getEntityContainingTypeMemberDeclaration(node: tree.TypeMemberDeclaration): e.TypeWithMembersOrExtensionEntity;
|
|
133
129
|
getTargetTypeOfExpression(node: tree.Expression, analysisOptions?: ExpressionAnalysisOptions): types.Type | undefined;
|
|
134
130
|
getUnambiguousTargetFunctionType(targetType: types.Type | undefined): types.FunctionType | undefined;
|
|
135
131
|
getUnambiguousTargetArrayType(targetType: types.Type | undefined): types.Type | undefined;
|
|
136
|
-
|
|
132
|
+
getUnambiguousTargetReferenceType(targetType: types.Type | undefined): types.Type | undefined;
|
|
137
133
|
resolveMemberAccessExpressionFirstStage(node: tree.MemberAccessExpression): memberAccessExpressionResolution.FirstStageResolutionResult;
|
|
138
134
|
resolveMemberAccessExpression(node: tree.MemberAccessExpression, analysisOptions?: ExpressionAnalysisOptions): memberAccessExpressionResolution.ResolutionResult;
|
|
139
135
|
enumeratePackageImports(packageImportDirectives: Iterable<tree.PackageImportDirective>): Iterable<tree.PackageImport>;
|
|
140
136
|
getSourceFileMembers(node: tree.SourceFile): ActualSourceFileMembers;
|
|
141
137
|
resolveCallExpression(node: tree.CallExpression, analysisOptions?: ExpressionAnalysisOptions): callExpressionMeaning.ResolutionResult;
|
|
142
|
-
getRespectiveParameter(node: tree.Argument):
|
|
138
|
+
getRespectiveParameter(node: tree.Argument): MatchResultParameter | undefined;
|
|
143
139
|
resolveIndexedAccessExpression(node: tree.IndexedAccessExpression): indexedAccessExpressionMeaning.ResolutionResult;
|
|
144
140
|
getDereferenceExpressionMeaning(node: tree.DereferenceExpression): dereferenceExpressionMeaning.Meaning;
|
|
145
141
|
resolveAutotypeCallExpression(node: tree.AutotypeCallExpression, analysisOptions?: ExpressionAnalysisOptions): autotypeCallExpressionMeaning.ResolutionResult;
|
|
@@ -187,17 +183,13 @@ export declare class Analyzer {
|
|
|
187
183
|
getImplicitBaseTypeForVariantType(locale: PackageLocale): types.StructuredType;
|
|
188
184
|
getImplicitBaseTypeForFunctionType(locale: PackageLocale): types.StructuredType;
|
|
189
185
|
resolveNamedTypeSpecifier(node: tree.NamedTypeSpecifier): NamedTypeSpecifierResolutionResult;
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
checkExpressionDenotesOperator(expression: tree.Expression): ExpressionDenotesOperatorCheckResult | undefined;
|
|
198
|
-
checkExpressionDenotesPackageNameSegment(expression: tree.Expression): {
|
|
199
|
-
packageTreeNode: PackageNameTreeNode;
|
|
200
|
-
} | undefined;
|
|
186
|
+
getDenotedType(expression: tree.Expression): types.Type | undefined;
|
|
187
|
+
isExpressionDenotingType(expression: tree.Expression): boolean;
|
|
188
|
+
getDenotedPackageAlias(expression: tree.Expression): e.PackageAliasEntity | undefined;
|
|
189
|
+
getDenotedFunction(expression: tree.Expression): ExpressionDenotesFunctionCheckResult | undefined;
|
|
190
|
+
isExpressionDenotingFunction(expression: tree.Expression): boolean;
|
|
191
|
+
getDenotedOperator(expression: tree.Expression): ExpressionDenotesOperatorCheckResult | undefined;
|
|
192
|
+
getDenotedPackageNameTreeNode(expression: tree.Expression): PackageNameTreeNode | undefined;
|
|
201
193
|
/**
|
|
202
194
|
* Функция считается генератором, если:
|
|
203
195
|
* - Использует команду `выдать`.
|
|
@@ -260,19 +252,19 @@ export declare class Analyzer {
|
|
|
260
252
|
*/
|
|
261
253
|
isNullAssignableToType(type: types.Type): boolean;
|
|
262
254
|
excludeTypeFromUnion(initialType: types.Type, excludedType: types.Type): types.Type;
|
|
263
|
-
|
|
255
|
+
isParameterVariadic(entity: e.VariableEntity): boolean;
|
|
264
256
|
getDefaultTypeParameterConstraint(locale: PackageLocale): types.Type;
|
|
265
|
-
|
|
257
|
+
getFunctionBlockLiteralParameters(node: tree.FunctionBlockLiteral): readonly e.ParameterEntity[];
|
|
266
258
|
getExtendedType(node: tree.TypeExtensionDeclaration): WithDiagnostics<e.NamedTypeEntity>;
|
|
267
259
|
getAnalyzedTranslationPackageIfTargetResolved(package_: project.TranslationPackage): AnalyzedTranslationPackage | undefined;
|
|
268
260
|
findAnalyzedTranslationPackageForLocale(entity: e.PackageEntity, locale: PackageLocale): AnalyzedTranslationPackage | undefined;
|
|
269
261
|
getLocalizedPackageWithLocale(originalPackageEntity: e.PackageEntity, locale: PackageLocale): e.PackageEntity | undefined;
|
|
270
|
-
enumerateAnalyzedTranslationPackages():
|
|
262
|
+
enumerateAnalyzedTranslationPackages(): Query<AnalyzedTranslationPackage>;
|
|
271
263
|
getLinkedMultiPlatformPackagesByPlatform(entity: e.PackageEntity): ReadonlyMap<PlatformKind, LinkedMultiPlatformPackage> | undefined;
|
|
272
264
|
getLinkedMultiPlatformPackage(entity: e.PackageEntity, platform: PlatformKind): LinkedMultiPlatformPackage | undefined;
|
|
273
265
|
createPackageMembers(pkg: SourcePackage): PackageEntityMembers;
|
|
274
|
-
instantiateType(entity: e.TypeEntity, typeArguments
|
|
275
|
-
|
|
266
|
+
instantiateType(entity: e.TypeEntity, typeArguments: readonly types.Type[] | undefined): types.Type;
|
|
267
|
+
instantiateTypeWithSubstitutions(entity: e.TypeEntity, substitutions: types.Substitutions): types.Type;
|
|
276
268
|
instantiateTypeByIdentitySubstitution(entity: e.TypeEntity): types.Type;
|
|
277
269
|
instantiateTypeMemberByIdentitySubstitution(entity: e.FieldEntity): types.Field;
|
|
278
270
|
instantiateTypeMemberByIdentitySubstitution(entity: e.MethodEntity): types.Method;
|
|
@@ -341,6 +333,27 @@ export type BinaryExpressionOperatorClassificationResult = {
|
|
|
341
333
|
} | {
|
|
342
334
|
kind: 'not-equals';
|
|
343
335
|
};
|
|
336
|
+
export declare namespace BinaryExpressionOperatorClassificationResult {
|
|
337
|
+
const multiply: BinaryExpressionOperatorClassificationResult;
|
|
338
|
+
const greaterThan: BinaryExpressionOperatorClassificationResult;
|
|
339
|
+
const greaterThanOrEqual: BinaryExpressionOperatorClassificationResult;
|
|
340
|
+
const lessThan: BinaryExpressionOperatorClassificationResult;
|
|
341
|
+
const lessThanOrEqual: BinaryExpressionOperatorClassificationResult;
|
|
342
|
+
const subtract: BinaryExpressionOperatorClassificationResult;
|
|
343
|
+
const add: BinaryExpressionOperatorClassificationResult;
|
|
344
|
+
const divide: BinaryExpressionOperatorClassificationResult;
|
|
345
|
+
const integerDivide: BinaryExpressionOperatorClassificationResult;
|
|
346
|
+
const modulo: BinaryExpressionOperatorClassificationResult;
|
|
347
|
+
const bitwiseAnd: BinaryExpressionOperatorClassificationResult;
|
|
348
|
+
const bitwiseOr: BinaryExpressionOperatorClassificationResult;
|
|
349
|
+
const bitwiseXor: BinaryExpressionOperatorClassificationResult;
|
|
350
|
+
const and: BinaryExpressionOperatorClassificationResult;
|
|
351
|
+
const or: BinaryExpressionOperatorClassificationResult;
|
|
352
|
+
const xor: BinaryExpressionOperatorClassificationResult;
|
|
353
|
+
const equals: BinaryExpressionOperatorClassificationResult;
|
|
354
|
+
const notEquals: BinaryExpressionOperatorClassificationResult;
|
|
355
|
+
const questionQuestion: BinaryExpressionOperatorClassificationResult;
|
|
356
|
+
}
|
|
344
357
|
export declare const enum SyntacticAccessKind {
|
|
345
358
|
Get = 0,
|
|
346
359
|
Set = 1,
|
|
@@ -353,12 +366,12 @@ export declare class ExpressionCanBeUsedInForLoopCheckResult {
|
|
|
353
366
|
constructor(elementType: types.Type, ifTypeDoesNotImplementEnumerableThenEnumeratorMethod: types.Method | undefined);
|
|
354
367
|
}
|
|
355
368
|
declare class Type {
|
|
356
|
-
private readonly
|
|
357
|
-
private readonly
|
|
358
|
-
private readonly
|
|
359
|
-
private readonly
|
|
360
|
-
private readonly
|
|
361
|
-
constructor(
|
|
369
|
+
private readonly analyzer;
|
|
370
|
+
private readonly unionTypeSpecifierTypes;
|
|
371
|
+
private readonly intersectionTypeSpecifierTypes;
|
|
372
|
+
private readonly functionLiteralTypes;
|
|
373
|
+
private readonly nodesForWhichReturnTypeInferenceDiagnosticHasBeenReported;
|
|
374
|
+
constructor(analyzer: Analyzer);
|
|
362
375
|
ofExpression(node: tree.Expression, analysisOptions?: ExpressionAnalysisOptions): types.Type;
|
|
363
376
|
ofTypeSpecifier(node: tree.TypeSpecifier): types.Type;
|
|
364
377
|
ofAccessedOperator(operator: types.Operator): types.Type;
|
|
@@ -413,8 +426,8 @@ declare class Type {
|
|
|
413
426
|
private getNarrowedTypeIfNarrowableReference;
|
|
414
427
|
}
|
|
415
428
|
declare class ReturnType {
|
|
416
|
-
private readonly
|
|
417
|
-
constructor(
|
|
429
|
+
private readonly analyzer;
|
|
430
|
+
constructor(analyzer: Analyzer);
|
|
418
431
|
ofAnonymousFunctionTypeDeclaration(node: tree.AnonymousFunctionTypeDeclaration): types.Type;
|
|
419
432
|
ofFunctionBlockLiteral(node: tree.FunctionBlockLiteral): types.Type;
|
|
420
433
|
ofPackageFunctionDeclaration(node: tree.PackageFunctionDeclaration): types.Type;
|
|
@@ -430,48 +443,48 @@ declare class ReturnType {
|
|
|
430
443
|
ofFunctionDeclaration(node: FunctionDeclaration): types.Type;
|
|
431
444
|
}
|
|
432
445
|
declare class Entity {
|
|
433
|
-
private readonly
|
|
434
|
-
private readonly
|
|
435
|
-
private readonly
|
|
436
|
-
private readonly
|
|
437
|
-
private readonly
|
|
438
|
-
private readonly
|
|
439
|
-
private readonly
|
|
440
|
-
private readonly
|
|
441
|
-
private readonly
|
|
442
|
-
private readonly
|
|
443
|
-
private readonly
|
|
444
|
-
private readonly
|
|
445
|
-
private readonly
|
|
446
|
-
private readonly
|
|
447
|
-
private readonly
|
|
448
|
-
private readonly
|
|
449
|
-
private readonly
|
|
450
|
-
private readonly
|
|
451
|
-
private readonly
|
|
452
|
-
private readonly
|
|
453
|
-
private readonly
|
|
454
|
-
private readonly
|
|
455
|
-
private readonly
|
|
456
|
-
private readonly
|
|
457
|
-
private readonly
|
|
458
|
-
private readonly
|
|
459
|
-
private readonly
|
|
460
|
-
private readonly
|
|
461
|
-
private readonly
|
|
462
|
-
private readonly
|
|
463
|
-
constructor(
|
|
446
|
+
private readonly analyzer;
|
|
447
|
+
private readonly packageEntities;
|
|
448
|
+
private readonly packageVariableEntities;
|
|
449
|
+
private readonly fieldEntities;
|
|
450
|
+
private readonly parameterEntities;
|
|
451
|
+
private readonly localVariableEntities;
|
|
452
|
+
private readonly typeParameterEntities;
|
|
453
|
+
private readonly indexerEntities;
|
|
454
|
+
private readonly referenceOperatorEntities;
|
|
455
|
+
private readonly packageStructuredTypeEntities;
|
|
456
|
+
private readonly anonymousStructuredTypeEntities;
|
|
457
|
+
private readonly packageVariantTypeEntities;
|
|
458
|
+
private readonly anonymousVariantTypeEntities;
|
|
459
|
+
private readonly packageFunctionTypeEntities;
|
|
460
|
+
private readonly anonymousFunctionTypeEntities;
|
|
461
|
+
private readonly aliasTypeEntities;
|
|
462
|
+
private readonly packageFunctionEntities;
|
|
463
|
+
private readonly methodEntities;
|
|
464
|
+
private readonly nestedFunctionEntities;
|
|
465
|
+
private readonly constructorEntities;
|
|
466
|
+
private readonly operatorEntities;
|
|
467
|
+
private readonly destructorEntities;
|
|
468
|
+
private readonly getterEntities;
|
|
469
|
+
private readonly setterEntities;
|
|
470
|
+
private readonly typeExtensionEntities;
|
|
471
|
+
private readonly packageAliasEntities;
|
|
472
|
+
private readonly translationTextTemplateParameterEntities;
|
|
473
|
+
private readonly localizableSimpleTextEntities;
|
|
474
|
+
private readonly localizableTextTemplateEntities;
|
|
475
|
+
private readonly localizableTextEntitiesByPackage;
|
|
476
|
+
constructor(analyzer: Analyzer);
|
|
464
477
|
ofPackage(pkg: SourcePackage): e.PackageEntity;
|
|
465
478
|
ofPackageVariableDeclaration(node: tree.PackageVariableDeclaration): e.PackageVariableEntity;
|
|
466
479
|
ofComputedPackageVariableDeclaration(node: PackageVariableAccessorDeclaration): e.PackageVariableEntity;
|
|
467
480
|
ofFieldDeclaration(node: tree.FieldDeclaration): e.FieldEntity;
|
|
468
481
|
ofComputedFieldDeclaration(node: FieldAccessorDeclaration): e.FieldEntity;
|
|
469
482
|
ofLocalVariableDeclaration(node: tree.LocalVariableDeclaration): e.LocalVariableEntity;
|
|
470
|
-
|
|
483
|
+
ofForStatementVariableDeclaration(node: tree.ForStatementVariableDeclaration): e.LocalVariableEntity;
|
|
471
484
|
ofErrorVariableDeclaration(node: tree.ErrorVariableDeclaration): e.LocalVariableEntity;
|
|
472
|
-
ofParameterDeclaration(node: tree.ParameterDeclaration): e.
|
|
485
|
+
ofParameterDeclaration(node: tree.ParameterDeclaration): e.ParameterEntity;
|
|
473
486
|
ofTypeParameterDeclaration(node: tree.TypeParameterDeclaration): e.TypeParameterEntity;
|
|
474
|
-
ofIndexerDeclaration(node: IndexedElementAccessorDeclaration): e.
|
|
487
|
+
ofIndexerDeclaration(node: IndexedElementAccessorDeclaration): e.IndexerEntity;
|
|
475
488
|
ofDereferenceOperatorDeclaration(node: DereferencedVariableAccessorDeclaration): e.DereferenceOperatorEntity;
|
|
476
489
|
ofPackageStructuredTypeDeclaration(node: tree.PackageStructuredTypeDeclaration): e.PackageStructuredTypeEntity;
|
|
477
490
|
ofAnonymousStructuredTypeDeclaration(node: tree.AnonymousStructuredTypeDeclaration): e.AnonymousStructuredTypeEntity;
|
|
@@ -503,17 +516,19 @@ declare class Entity {
|
|
|
503
516
|
ofTypeExtensionDeclaration(node: tree.TypeExtensionDeclaration): e.TypeExtensionEntity;
|
|
504
517
|
ofPackageImport(node: tree.PackageImport): e.PackageAliasEntity;
|
|
505
518
|
ofTypeWithMembersDeclaration(node: TypeWithMembersDeclaration): e.TypeEntityWithMembers;
|
|
519
|
+
ofTypeWithMembersOrExtensionDeclaration(node: TypeWithMembersOrTypeExtensionDeclaration): e.TypeWithMembersOrExtensionEntity;
|
|
506
520
|
ofTranslationTextTemplateParameter(node: tree.TranslationTextTemplateParameter): e.TranslationTextTemplateParameterEntity;
|
|
507
521
|
private getContainingPackageLoadedFromDts;
|
|
508
522
|
private createComputedFieldEntities;
|
|
509
523
|
private createDereferenceOperatorEntities;
|
|
510
|
-
private
|
|
524
|
+
private createIndexerAndParameterEntities;
|
|
525
|
+
private createAndCacheIndexerEntityAndParameters;
|
|
511
526
|
private areIndexedElementAccessorDeclarationsEqual;
|
|
512
527
|
}
|
|
513
528
|
declare class ResultLocalVariableEntity {
|
|
514
|
-
private readonly
|
|
515
|
-
private readonly
|
|
516
|
-
constructor(
|
|
529
|
+
private readonly analyzer;
|
|
530
|
+
private readonly entities;
|
|
531
|
+
constructor(analyzer: Analyzer);
|
|
517
532
|
ofPackageFunctionDeclaration(node: tree.PackageFunctionDeclaration): e.LocalVariableEntity;
|
|
518
533
|
ofMethodDeclaration(node: tree.MethodDeclaration): e.LocalVariableEntity;
|
|
519
534
|
ofNestedFunctionDeclaration(node: tree.NestedFunctionDeclaration): e.LocalVariableEntity;
|
|
@@ -528,9 +543,9 @@ declare class ResultLocalVariableEntity {
|
|
|
528
543
|
private createResultLocalVariableEntity;
|
|
529
544
|
}
|
|
530
545
|
declare class ValueLocalVariableEntity {
|
|
531
|
-
private readonly
|
|
532
|
-
private readonly
|
|
533
|
-
constructor(
|
|
546
|
+
private readonly analyzer;
|
|
547
|
+
private readonly entities;
|
|
548
|
+
constructor(analyzer: Analyzer);
|
|
534
549
|
ofPackageVariableSetterDeclaration(node: tree.PackageVariableSetterDeclaration): e.LocalVariableEntity;
|
|
535
550
|
ofFieldSetterDeclaration(node: tree.FieldSetterDeclaration): e.LocalVariableEntity;
|
|
536
551
|
ofIndexedElementSetterDeclaration(node: tree.IndexedElementSetterDeclaration): e.LocalVariableEntity;
|
|
@@ -538,22 +553,22 @@ declare class ValueLocalVariableEntity {
|
|
|
538
553
|
private createValueLocalVariableEntity;
|
|
539
554
|
}
|
|
540
555
|
declare class OverriddenMember {
|
|
541
|
-
private readonly
|
|
542
|
-
private readonly
|
|
543
|
-
private readonly
|
|
544
|
-
private readonly
|
|
545
|
-
private readonly
|
|
546
|
-
private readonly
|
|
547
|
-
private readonly
|
|
548
|
-
private readonly
|
|
549
|
-
private readonly
|
|
550
|
-
private readonly
|
|
551
|
-
private readonly
|
|
552
|
-
private readonly
|
|
553
|
-
private readonly
|
|
554
|
-
private readonly
|
|
555
|
-
private readonly
|
|
556
|
-
constructor(
|
|
556
|
+
private readonly analyzer;
|
|
557
|
+
private readonly namedMemberFinder;
|
|
558
|
+
private readonly operatorFinder;
|
|
559
|
+
private readonly indexerFinder;
|
|
560
|
+
private readonly dereferenceOperatorFinder;
|
|
561
|
+
private readonly isField;
|
|
562
|
+
private readonly isMethod;
|
|
563
|
+
private readonly isOperator;
|
|
564
|
+
private readonly isIndexer;
|
|
565
|
+
private readonly isDereferenceOperator;
|
|
566
|
+
private readonly overriddenAndShadowedFields;
|
|
567
|
+
private readonly overriddenAndShadowedMethods;
|
|
568
|
+
private readonly overriddenAndShadowedOperators;
|
|
569
|
+
private readonly overriddenAndShadowedIndexers;
|
|
570
|
+
private readonly overriddenAndShadowedDereferenceOperators;
|
|
571
|
+
constructor(analyzer: Analyzer);
|
|
557
572
|
getOverriddenAndShadowedFields(node: tree.FieldDeclaration | FieldAccessorDeclaration): OverriddenAndShadowedMembers<types.Field, types.NamedTypeMember>;
|
|
558
573
|
getOverriddenAndShadowedMethods(node: tree.MethodDeclaration): OverriddenAndShadowedMembers<types.Method, types.NamedTypeMember>;
|
|
559
574
|
getOverriddenAndShadowedOperators(node: tree.OperatorDeclaration): OverriddenAndShadowedMembers<types.Operator>;
|
|
@@ -597,17 +612,17 @@ export type OverridableTypeMember = types.Field | types.Method | types.Operator
|
|
|
597
612
|
export declare function isOverridableTypeMember(entity: types.TypeMember): entity is OverridableTypeMember;
|
|
598
613
|
export type NodeWithTags = tree.PackageMemberDeclaration | tree.TypeMemberDeclaration | tree.ParameterDeclaration;
|
|
599
614
|
declare class Tags {
|
|
600
|
-
private readonly
|
|
601
|
-
private readonly
|
|
602
|
-
constructor(
|
|
615
|
+
private readonly analyzer;
|
|
616
|
+
private readonly tagsByNodeWithTags;
|
|
617
|
+
constructor(analyzer: Analyzer);
|
|
603
618
|
ofNodeWithTags(node: NodeWithTags): readonly tags.Tag[];
|
|
604
619
|
private createTagsOfNodeWithTags;
|
|
605
620
|
private createTagFromNode;
|
|
606
621
|
private argumentToTagArgument;
|
|
607
622
|
}
|
|
608
623
|
declare class LinkedEntity {
|
|
609
|
-
private readonly
|
|
610
|
-
constructor(
|
|
624
|
+
private readonly analyzer;
|
|
625
|
+
constructor(analyzer: Analyzer);
|
|
611
626
|
entityCanBeLinked(entity: e.Entity): boolean;
|
|
612
627
|
ofType(entity: e.TypeEntity, platform: PlatformKind): e.TypeEntity | undefined;
|
|
613
628
|
ofTypeWithMembers(entity: e.TypeEntityWithMembers, platform: PlatformKind): e.TypeEntityWithMembers | undefined;
|
|
@@ -628,9 +643,9 @@ export declare class LinkedMultiPlatformPackage {
|
|
|
628
643
|
readonly pkg: e.PackageEntity;
|
|
629
644
|
readonly implementationPackage: e.PackageEntity;
|
|
630
645
|
readonly targetPlatform: PlatformKind;
|
|
631
|
-
private readonly
|
|
632
|
-
private readonly
|
|
633
|
-
private readonly
|
|
646
|
+
private readonly memberLookup_;
|
|
647
|
+
private readonly linkedTypesWithMembers;
|
|
648
|
+
private readonly linkedParameterTypes;
|
|
634
649
|
private get memberLookup();
|
|
635
650
|
constructor(analyzer: Analyzer, pkg: e.PackageEntity, implementationPackage: e.PackageEntity, targetPlatform: PlatformKind);
|
|
636
651
|
getLinkedVariable(entity: e.PackageVariableEntity): e.PackageVariableEntity | undefined;
|
|
@@ -651,7 +666,7 @@ export declare class LinkedTypeWithMembers {
|
|
|
651
666
|
readonly externalType: e.TypeEntityWithMembers;
|
|
652
667
|
readonly targetType: e.TypeEntityWithMembers;
|
|
653
668
|
readonly linkedPackage: LinkedMultiPlatformPackage;
|
|
654
|
-
private readonly
|
|
669
|
+
private readonly memberLookup_;
|
|
655
670
|
private get memberLookup();
|
|
656
671
|
constructor(analyzer: Analyzer, externalType: e.TypeEntityWithMembers, targetType: e.TypeEntityWithMembers, linkedPackage: LinkedMultiPlatformPackage);
|
|
657
672
|
getLinkedField(entity: e.FieldEntity): e.FieldEntity | undefined;
|
|
@@ -662,17 +677,17 @@ export declare class LinkedTypeWithMembers {
|
|
|
662
677
|
getLinkedDereferenceOperator(entity: e.DereferenceOperatorEntity): e.DereferenceOperatorEntity | undefined;
|
|
663
678
|
}
|
|
664
679
|
declare class OwningPlainObjectModificationCheck {
|
|
665
|
-
private
|
|
666
|
-
private readonly
|
|
667
|
-
constructor(
|
|
680
|
+
private analyzer;
|
|
681
|
+
private readonly owningPlainObjectModificationCheckResult;
|
|
682
|
+
constructor(analyzer: Analyzer);
|
|
668
683
|
ofDeclarationBody(node: tree.FunctionBlock): boolean;
|
|
669
684
|
private checkMethodBodyModifiesPlainObject;
|
|
670
685
|
private checkReceiverModifiesPlainObjectRecursively;
|
|
671
686
|
private nodeBelongsToPlainObjectDeclaration;
|
|
672
687
|
}
|
|
673
688
|
declare class TypeAssignabilityCheck {
|
|
674
|
-
private readonly
|
|
675
|
-
constructor(
|
|
689
|
+
private readonly analyzer;
|
|
690
|
+
constructor(analyzer: Analyzer);
|
|
676
691
|
isTypeAssignableTo(source: types.Type, target: types.Type): boolean;
|
|
677
692
|
getAssignabilityFlags(source: types.Type, target: types.Type): TypeAssignabilityFlags;
|
|
678
693
|
/**
|
|
@@ -710,13 +725,13 @@ export declare enum TypeAssignabilityFlags {
|
|
|
710
725
|
Last = 16
|
|
711
726
|
}
|
|
712
727
|
declare class PackageImports {
|
|
713
|
-
private readonly
|
|
714
|
-
private readonly
|
|
715
|
-
private readonly
|
|
716
|
-
private readonly
|
|
717
|
-
private readonly
|
|
718
|
-
private readonly
|
|
719
|
-
constructor(
|
|
728
|
+
private readonly analyzer;
|
|
729
|
+
private readonly packagesAvailableForImport;
|
|
730
|
+
private readonly analyzedPackageImports;
|
|
731
|
+
private readonly importedPackages;
|
|
732
|
+
private readonly automaticallyImportedPackages;
|
|
733
|
+
private readonly importedPackageNameTrees;
|
|
734
|
+
constructor(analyzer: Analyzer);
|
|
720
735
|
analyzeExplicitPackageImports(sourceFile: project.SourceFile): AnalyzedPackageImports;
|
|
721
736
|
getPackagesAvailableForImport(pkg: project.SourcePackage): readonly e.PackageEntity[];
|
|
722
737
|
getUniqueImportedPackages(sourceFile: project.SourceFile): readonly PackageImportInfo[];
|
|
@@ -739,8 +754,8 @@ export declare class PackageImportInfo {
|
|
|
739
754
|
constructor(entity: e.PackageEntity, aliasEntity: e.PackageAliasEntity | undefined);
|
|
740
755
|
}
|
|
741
756
|
declare class TypeUtils {
|
|
742
|
-
private readonly
|
|
743
|
-
constructor(
|
|
757
|
+
private readonly analyzer;
|
|
758
|
+
constructor(analyzer: Analyzer);
|
|
744
759
|
getCommonObjectAndAspectTypesOfUnion(unionType: types.UnionType): readonly types.StructuredType[];
|
|
745
760
|
removeBaseTypesInPlace(types: types.Type[]): void;
|
|
746
761
|
removeDerivedTypesInPlace(types: types.Type[]): void;
|
|
@@ -758,9 +773,9 @@ declare class TypeUtils {
|
|
|
758
773
|
private flattenTypeParameterConstraint;
|
|
759
774
|
}
|
|
760
775
|
declare class SignatureComparer {
|
|
761
|
-
private readonly
|
|
762
|
-
private
|
|
763
|
-
constructor(
|
|
776
|
+
private readonly analyzer;
|
|
777
|
+
private readonly stubParameterTypes;
|
|
778
|
+
constructor(analyzer: Analyzer);
|
|
764
779
|
areEqualFunctionEntities(function1: e.FunctionEntity, function2: e.FunctionEntity, options: SignatureComparisonOptions): boolean;
|
|
765
780
|
/**
|
|
766
781
|
* Метод аналогичен методу {@link areEqualFunctionEntities}.
|
|
@@ -785,9 +800,9 @@ export declare enum SignatureComparisonOptions {
|
|
|
785
800
|
CheckTypeParameterCountIntersection = 4
|
|
786
801
|
}
|
|
787
802
|
declare class ConflictsCheck {
|
|
788
|
-
private readonly
|
|
789
|
-
private static readonly
|
|
790
|
-
constructor(
|
|
803
|
+
private readonly analyzer;
|
|
804
|
+
private static readonly signatureComparisonOptions;
|
|
805
|
+
constructor(analyzer: Analyzer);
|
|
791
806
|
/**
|
|
792
807
|
* Проверяет, конфликтуют ли две функции, т.е. могут ли такие функции находиться в одной области видимости.
|
|
793
808
|
* Метод не сравнивает имена.
|
|
@@ -830,9 +845,10 @@ export type TypeMemberWithoutTypeParametersInSignature = types.Constructor | typ
|
|
|
830
845
|
export declare class ExpressionDenotesFunctionCheckResult {
|
|
831
846
|
readonly candidates: readonly AccessedFunction[];
|
|
832
847
|
readonly suitableFunctions: readonly AccessedFunction[];
|
|
848
|
+
readonly singleNotSuitableSubstitutedCandidate: AccessedFunction | undefined;
|
|
833
849
|
get singleSuitableFunction(): AccessedFunction | undefined;
|
|
834
850
|
get singleFunction(): AccessedFunction | undefined;
|
|
835
|
-
constructor(candidates: readonly AccessedFunction[], suitableFunctions: readonly AccessedFunction[]);
|
|
851
|
+
constructor(candidates: readonly AccessedFunction[], suitableFunctions: readonly AccessedFunction[], singleNotSuitableSubstitutedCandidate: AccessedFunction | undefined);
|
|
836
852
|
}
|
|
837
853
|
export declare class ExpressionDenotesOperatorCheckResult {
|
|
838
854
|
readonly candidates: readonly types.Operator[];
|
|
@@ -846,10 +862,10 @@ export declare class DeclaredTypeMemberEntities {
|
|
|
846
862
|
readonly operators: readonly e.OperatorEntity[];
|
|
847
863
|
readonly constructors: readonly e.ConstructorEntity[];
|
|
848
864
|
readonly destructors: readonly e.DestructorEntity[];
|
|
849
|
-
readonly indexers: readonly e.
|
|
865
|
+
readonly indexers: readonly e.IndexerEntity[];
|
|
850
866
|
readonly dereferenceOperators: readonly e.DereferenceOperatorEntity[];
|
|
851
867
|
get namedMembers(): e.NamedTypeMemberEntity[];
|
|
852
|
-
constructor(variables: readonly e.FieldEntity[], methods: readonly e.MethodEntity[], operators: readonly e.OperatorEntity[], constructors: readonly e.ConstructorEntity[], destructors: readonly e.DestructorEntity[], indexers: readonly e.
|
|
868
|
+
constructor(variables: readonly e.FieldEntity[], methods: readonly e.MethodEntity[], operators: readonly e.OperatorEntity[], constructors: readonly e.ConstructorEntity[], destructors: readonly e.DestructorEntity[], indexers: readonly e.IndexerEntity[], dereferenceOperators: readonly e.DereferenceOperatorEntity[]);
|
|
853
869
|
}
|
|
854
870
|
export declare class ExpressionAnalysisOptions {
|
|
855
871
|
readonly targetType: types.Type | undefined;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ParameterEntity } from '../entities/index.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';
|
|
5
5
|
export declare class ArgumentToParameterMatchResult {
|
|
6
|
-
private readonly
|
|
7
|
-
private readonly
|
|
8
|
-
constructor(
|
|
6
|
+
private readonly analyzer;
|
|
7
|
+
private readonly matchResults;
|
|
8
|
+
constructor(analyzer: Analyzer);
|
|
9
9
|
ofCallExpression(node: tree.CallExpression): MatchResult | undefined;
|
|
10
10
|
ofAutotypeCallExpression(node: tree.AutotypeCallExpression): MatchResult | undefined;
|
|
11
11
|
ofTag(node: tree.Tag): MatchResult | undefined;
|
|
@@ -14,11 +14,11 @@ export declare class ArgumentToParameterMatchResult {
|
|
|
14
14
|
private convertParameter;
|
|
15
15
|
}
|
|
16
16
|
export declare class MatchResult {
|
|
17
|
-
readonly parameterByArgument: ReadonlyMap<tree.Argument,
|
|
18
|
-
constructor(parameterByArgument: ReadonlyMap<tree.Argument,
|
|
17
|
+
readonly parameterByArgument: ReadonlyMap<tree.Argument, MatchResultParameter>;
|
|
18
|
+
constructor(parameterByArgument: ReadonlyMap<tree.Argument, MatchResultParameter>);
|
|
19
19
|
}
|
|
20
|
-
export declare class
|
|
21
|
-
readonly entity:
|
|
20
|
+
export declare class MatchResultParameter {
|
|
21
|
+
readonly entity: ParameterEntity;
|
|
22
22
|
readonly type: types.Type;
|
|
23
|
-
constructor(entity:
|
|
23
|
+
constructor(entity: ParameterEntity, type: types.Type);
|
|
24
24
|
}
|
|
@@ -3,12 +3,12 @@ import { DiagnosticAcceptor, DiagnosticLocation } from '../diagnostic/Diagnostic
|
|
|
3
3
|
import * as tree from '../tree/index.js';
|
|
4
4
|
import { Analyzer } from './index.js';
|
|
5
5
|
export declare class ArgumentToParameterMatcher<TSignature extends ISignature<TParameter>, TParameter extends ISignatureParameter, TArgument extends IArgument> {
|
|
6
|
-
private readonly
|
|
7
|
-
private readonly
|
|
8
|
-
private readonly
|
|
9
|
-
private readonly
|
|
10
|
-
private readonly
|
|
11
|
-
constructor(
|
|
6
|
+
private readonly analyzer;
|
|
7
|
+
private readonly signature;
|
|
8
|
+
private readonly arguments_;
|
|
9
|
+
private readonly diagnostics;
|
|
10
|
+
private readonly nodeForUnmatchedRequiredParametersDiagnostic;
|
|
11
|
+
constructor(analyzer: Analyzer, signature: TSignature, arguments_: readonly TArgument[], diagnostics: DiagnosticAcceptor | undefined, nodeForUnmatchedRequiredParametersDiagnostic: tree.Node | undefined);
|
|
12
12
|
match(): MatchResult<TParameter, TArgument>;
|
|
13
13
|
private matchArgumentsToParameters;
|
|
14
14
|
private reportArgumentDiagnostic;
|
|
@@ -30,9 +30,9 @@ export interface IArgument {
|
|
|
30
30
|
getDiagnosticLocation(): DiagnosticLocation | undefined;
|
|
31
31
|
}
|
|
32
32
|
export declare class SourceArgument implements IArgument {
|
|
33
|
-
private readonly
|
|
33
|
+
private readonly analyzer;
|
|
34
34
|
readonly node: tree.Argument;
|
|
35
35
|
readonly name: Name | undefined;
|
|
36
|
-
constructor(
|
|
36
|
+
constructor(analyzer: Analyzer, node: tree.Argument);
|
|
37
37
|
getDiagnosticLocation(): DiagnosticLocation;
|
|
38
38
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Analyzer } from './Analyzer.js';
|
|
2
2
|
import * as controlFlow from './control-flow/index.js';
|
|
3
3
|
export declare class AssignmentChecker {
|
|
4
|
-
private readonly
|
|
5
|
-
private readonly
|
|
6
|
-
private readonly
|
|
7
|
-
private readonly
|
|
4
|
+
private readonly analyzer;
|
|
5
|
+
private readonly variableReference;
|
|
6
|
+
private readonly controlFlowNode;
|
|
7
|
+
private readonly checkResults;
|
|
8
8
|
constructor(analyzer: Analyzer, variableReference: controlFlow.NarrowableReference, controlFlowNode: controlFlow.Node);
|
|
9
9
|
checkVariableIsAssigned(): boolean;
|
|
10
10
|
private checkVariableIsAssignedAtNode;
|