@artel/artc 0.6.25217 → 0.6.25219
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 +16 -66
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +930 -888
- package/build/{chunk-HN3XZZQX.js → chunk-AIY75NR5.js} +5 -4
- package/build/{chunk-TXAEJ2GI.js → chunk-IYSH7MAQ.js} +10562 -10629
- package/build/{chunk-CMPXXHBQ.js → chunk-QLTGS2V2.js} +13 -5
- package/build/types/analysis/AnalyzedTranslationPackage.d.ts +4 -26
- package/build/types/analysis/Analyzer.d.ts +27 -69
- package/build/types/analysis/{CallArgumentToParameterMatchResult.d.ts → ArgumentToParameterMatchResult.d.ts} +7 -7
- package/build/types/analysis/{CallArgumentsToParametersMatcher.d.ts → ArgumentsToParametersMatcher.d.ts} +14 -14
- package/build/types/analysis/ConstructorOverloadResolver.d.ts +1 -1
- package/build/types/analysis/DereferenceExpressionMeaning.d.ts +3 -3
- package/build/types/analysis/DiagnosticCollector.d.ts +2 -0
- package/build/types/analysis/FindModifier.d.ts +2 -0
- package/build/types/analysis/IdentifierExpressionMeaning.d.ts +14 -12
- package/build/types/analysis/LocalizationContext.d.ts +4 -5
- package/build/types/analysis/Lookup.d.ts +8 -7
- package/build/types/analysis/ModifierFlags.d.ts +16 -0
- package/build/types/analysis/NamedTypeSpecifierResolver.d.ts +0 -1
- package/build/types/analysis/NodeTypeUtils.d.ts +1 -0
- package/build/types/analysis/OperationOverloadResolver.d.ts +2 -2
- package/build/types/analysis/OverloadResolver.d.ts +4 -4
- package/build/types/analysis/PackageMemberLookup.d.ts +5 -6
- package/build/types/analysis/PropertyAccessExpressionMeaning.d.ts +18 -16
- package/build/types/analysis/Scope.d.ts +21 -116
- package/build/types/analysis/SemanticContext.d.ts +23 -13
- package/build/types/analysis/SemanticContextBuilder.d.ts +1 -1
- package/build/types/analysis/SourceFileMembers.d.ts +12 -99
- package/build/types/analysis/TagMeaning.d.ts +57 -9
- package/build/types/analysis/Tags.d.ts +18 -6
- package/build/types/analysis/TypeMemberLookup.d.ts +15 -15
- package/build/types/analysis/TypeOverloadResolver.d.ts +1 -1
- package/build/types/analysis/Utils.d.ts +4 -3
- package/build/types/analysis/WellKnownDeclarations.d.ts +1 -0
- package/build/types/analysis/index.d.ts +1 -1
- package/build/types/api/Api.d.ts +2 -6
- package/build/types/diagnostic/DiagnosticCode.d.ts +21 -17
- package/build/types/emitter/{EmitterGeneratedDeclarationKind.d.ts → EmitPhaseName.d.ts} +1 -44
- package/build/types/emitter/EmitterContext.d.ts +4 -1
- package/build/types/emitter/Entities.d.ts +52 -16
- package/build/types/emitter/EntityMap.d.ts +1 -3
- package/build/types/emitter/IrBuilder.d.ts +6 -2
- package/build/types/emitter/IrToJs.d.ts +6 -5
- package/build/types/emitter/Transformer.d.ts +20 -12
- package/build/types/emitter/ir/EmitOptions.d.ts +163 -0
- package/build/types/emitter/ir/Nodes.d.ts +215 -179
- package/build/types/emitter/ir/index.d.ts +1 -2
- package/build/types/emitter/ir/types.d.ts +4 -4
- package/build/types/entities/AliasTypeEntity.d.ts +8 -4
- package/build/types/entities/ConstructorEntity.d.ts +2 -0
- package/build/types/entities/DereferenceOperatorEntity.d.ts +5 -3
- package/build/types/entities/DestructorEntity.d.ts +2 -0
- package/build/types/entities/GetterEntity.d.ts +8 -0
- package/build/types/entities/IndexerEntity.d.ts +5 -3
- package/build/types/entities/MethodEntity.d.ts +9 -5
- package/build/types/entities/MethodTypeEntity.d.ts +10 -5
- package/build/types/entities/OperatorEntity.d.ts +5 -3
- package/build/types/entities/PackageEntity.d.ts +3 -3
- package/build/types/entities/PackageMembers.d.ts +4 -90
- package/build/types/entities/SetterEntity.d.ts +8 -0
- package/build/types/entities/StructuredTypeEntity.d.ts +11 -6
- package/build/types/entities/TypeEntity.d.ts +15 -0
- package/build/types/entities/TypeExtensionEntity.d.ts +2 -0
- package/build/types/entities/TypeParameterEntity.d.ts +11 -6
- package/build/types/entities/VariableEntity.d.ts +50 -41
- package/build/types/entities/VariantTypeEntity.d.ts +10 -11
- package/build/types/entities/index.d.ts +17 -25
- package/build/types/executor/Compiler.d.ts +1 -0
- package/build/types/executor/NodeCompiler.d.ts +1 -0
- package/build/types/parser/CharacterCodes.d.ts +8 -0
- package/build/types/parser/ReservedIdentifierDictionary.d.ts +1 -2
- package/build/types/project/FileSystemTree.d.ts +2 -2
- package/build/types/services/CompletionService.d.ts +4 -1
- package/build/types/services/DisplayService.d.ts +18 -2
- package/build/types/services/NodeSemanticInfo.d.ts +7 -5
- package/build/types/services/signature-help/SignatureWithValueParameters.d.ts +7 -21
- package/build/types/services/signature-help/TypeParameterSignatureHelpProvider.d.ts +1 -0
- package/build/types/services/source-generation/EntityToSyntax.d.ts +1 -1
- package/build/types/services/source-generation/SourceGenerationService.d.ts +2 -2
- package/build/types/services/workspace/ClientTrackedSourceFiles.d.ts +5 -5
- package/build/types/services/workspace/CompilationController.d.ts +3 -3
- package/build/types/services/workspace/FileSystemTreeProviderBasedOnWatchedFileSystem.d.ts +4 -4
- package/build/types/services/workspace/ManuallyUpdatedFileSystemTreeProvider.d.ts +4 -4
- package/build/types/services/workspace/Workspace.d.ts +3 -3
- package/build/types/services/workspace/WorkspaceFiles.d.ts +7 -7
- package/build/types/tree/KeywordKind.d.ts +37 -37
- package/build/types/tree/NodeKind.d.ts +10 -12
- package/build/types/tree/green/Nodes.d.ts +57 -84
- package/build/types/tree/green/SyntaxFactory.d.ts +4 -5
- package/build/types/tree/green/SyntaxToCode.d.ts +1 -2
- package/build/types/tree/red/Nodes.d.ts +67 -97
- package/build/types/ts-interop/Entities.d.ts +51 -28
- package/build/types/ts-interop/TsPackageMembersCreator.d.ts +0 -1
- package/build/types/types/TypeMembers.d.ts +9 -0
- package/package.json +2 -2
- package/build/types/analysis/DereferencedVariableAccess.d.ts +0 -14
- package/build/types/analysis/IndexedAccess.d.ts +0 -14
- package/build/types/analysis/VariableAccess.d.ts +0 -14
- package/build/types/analysis/VariantLookup.d.ts +0 -20
- package/build/types/emitter/ir/LoweringOptions.d.ts +0 -36
- package/build/types/emitter/ir/LoweringState.d.ts +0 -49
- package/build/types/entities/VariantEntity.d.ts +0 -31
- package/build/types/entities/Variants.d.ts +0 -10
@@ -1,6 +1,6 @@
|
|
1
1
|
import {
|
2
2
|
Compiler
|
3
|
-
} from "./chunk-
|
3
|
+
} from "./chunk-AIY75NR5.js";
|
4
4
|
import {
|
5
5
|
ArtelVersion,
|
6
6
|
Cached,
|
@@ -14,7 +14,7 @@ import {
|
|
14
14
|
__async,
|
15
15
|
performanceMeasurementStageNames,
|
16
16
|
performanceMeasurementStages
|
17
|
-
} from "./chunk-
|
17
|
+
} from "./chunk-IYSH7MAQ.js";
|
18
18
|
|
19
19
|
// source/executor/FileSystemUri.ts
|
20
20
|
import { platform } from "os";
|
@@ -216,7 +216,7 @@ var NodeCompiler = class {
|
|
216
216
|
const standardLibraryUri = yield this.findStandardTypeScriptLibrary(nodeModulesSearchPaths, defaultTsLibraryPath);
|
217
217
|
if (standardLibraryUri === void 0) {
|
218
218
|
const diagnostic = new Diagnostic(DiagnosticData.withCode(
|
219
|
-
|
219
|
+
117 /* CanNotFindTsLibDirectoryBaseSearchPaths0 */,
|
220
220
|
[nodeModulesSearchPaths.map((p) => `'${p}'`).join(", ")]
|
221
221
|
), void 0);
|
222
222
|
diagnostics?.addDiagnostic(diagnostic);
|
@@ -231,7 +231,8 @@ var NodeCompiler = class {
|
|
231
231
|
const loadCompilationOptions = {
|
232
232
|
workspaceUri: options?.workspacePath !== void 0 ? FileSystemUri.pathToUri(options.workspacePath) : void 0,
|
233
233
|
builtInsStandardPackagesUri: options?.builtInsStandardPackagesPath !== void 0 ? FileSystemUri.pathToUri(options.builtInsStandardPackagesPath) : void 0,
|
234
|
-
userStandardPackagesUri: options?.userStandardPackagesPath !== void 0 ? FileSystemUri.pathToUri(options.userStandardPackagesPath) : void 0
|
234
|
+
userStandardPackagesUri: options?.userStandardPackagesPath !== void 0 ? FileSystemUri.pathToUri(options.userStandardPackagesPath) : void 0,
|
235
|
+
enableLogging: options?.enableLogging
|
235
236
|
};
|
236
237
|
return yield Compiler.loadCompilation(
|
237
238
|
projectUri,
|
@@ -391,7 +392,8 @@ var CommandLineCompiler = class {
|
|
391
392
|
loadCompilationOptions: {
|
392
393
|
workspacePath: parsedArguments.workspacePath,
|
393
394
|
userStandardPackagesPath: parsedArguments.standardPackagesPath,
|
394
|
-
builtInsStandardPackagesPath: parsedArguments.builtInStandardPackagesPath
|
395
|
+
builtInsStandardPackagesPath: parsedArguments.builtInStandardPackagesPath,
|
396
|
+
enableLogging: parsedArguments.enableLogging
|
395
397
|
},
|
396
398
|
outputPath: parsedArguments.outputPath,
|
397
399
|
diagnostics,
|
@@ -466,6 +468,7 @@ var ArgumentsParser = class {
|
|
466
468
|
projectPath: void 0,
|
467
469
|
outputPath: void 0,
|
468
470
|
noWarnings: false,
|
471
|
+
enableLogging: false,
|
469
472
|
measurePerformance: false,
|
470
473
|
defaultTsLibraryPath: void 0,
|
471
474
|
workspacePath: void 0,
|
@@ -582,6 +585,11 @@ var ArgumentsParser = class {
|
|
582
585
|
result.noWarnings = true;
|
583
586
|
break;
|
584
587
|
}
|
588
|
+
case "--\u0432\u043A\u043B\u044E\u0447\u0438\u0442\u044C-\u0436\u0443\u0440\u043D\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044E":
|
589
|
+
case "--enable-logging": {
|
590
|
+
result.enableLogging = true;
|
591
|
+
break;
|
592
|
+
}
|
585
593
|
case "--\u0437\u0430\u043C\u0435\u0440\u0438\u0442\u044C-\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C":
|
586
594
|
case "--measure-performance": {
|
587
595
|
result.measurePerformance = true;
|
@@ -1,11 +1,9 @@
|
|
1
1
|
import { Name, PackageLocale } from '../common/index.js';
|
2
2
|
import { Diagnostic } from '../diagnostic/Diagnostic.js';
|
3
3
|
import { PackageEntity } from '../entities/PackageEntity.js';
|
4
|
-
import { NamedMember, NamedPackageMemberEntity } from '../entities/PackageMembers.js';
|
5
4
|
import { NamedTypeMemberEntity } from '../entities/TypeEntityMembers.js';
|
6
5
|
import { PackageVariableEntity, ParameterVariableEntity, TypeVariableEntity } from '../entities/VariableEntity.js';
|
7
|
-
import {
|
8
|
-
import { AliasTypeEntity, ConstructorEntity, DestructorEntity, IndexerEntity, MethodEntity, MethodTypeEntity, OperatorEntity, PackageMethodEntity, PackageMethodTypeEntity, PackageTypeEntity, PackageVariantTypeEntity, StructuredTypeEntity, TypeMethodEntity, TypeParameterEntity, VariantTypeEntity } from '../entities/index.js';
|
6
|
+
import { AliasTypeEntity, ConstructorEntity, DestructorEntity, IndexerEntity, MethodEntity, MethodTypeEntity, NamedPackageMemberEntity, OperatorEntity, PackageMethodEntity, PackageMethodTypeEntity, PackageTypeEntity, StructuredTypeEntity, TypeMethodEntity, TypeParameterEntity, VariantTypeEntity } from '../entities/index.js';
|
9
7
|
import { PackageName, TranslationPackage } from '../project/index.js';
|
10
8
|
import * as tree from '../tree/index.js';
|
11
9
|
import { Analyzer } from './Analyzer.js';
|
@@ -17,7 +15,6 @@ export declare class AnalyzedTranslationPackage {
|
|
17
15
|
private readonly _translatedPackage;
|
18
16
|
private readonly _members;
|
19
17
|
private readonly _translatedTypeEntityMembers;
|
20
|
-
private readonly _translatedVariants;
|
21
18
|
private readonly _methodSignatureTranslations;
|
22
19
|
private readonly _operatorSignatureTranslations;
|
23
20
|
private readonly _methodTypeSignatureTranslations;
|
@@ -31,7 +28,6 @@ export declare class AnalyzedTranslationPackage {
|
|
31
28
|
getTranslationLocale(): PackageLocale;
|
32
29
|
getMembers(): TranslatedPackageMembers;
|
33
30
|
getTypeEntityMembers(typeEntity: PackageTypeEntity): TranslatedTypeEntityMembers | undefined;
|
34
|
-
getVariants(typeEntity: PackageVariantTypeEntity): TranslatedVariants | undefined;
|
35
31
|
getPackageVariableTranslationTarget(node: tree.PackageVariableTranslation): GetSingleTranslationTargetResult<PackageVariableEntity>;
|
36
32
|
getPackageMethodTranslationTargets(node: tree.PackageMethodTranslation): GetMultipleTranslationTargetsResult<PackageMethodEntity>;
|
37
33
|
getMethodTypeTranslationTarget(node: tree.MethodTypeTranslation): GetSingleTranslationTargetResult<PackageMethodTypeEntity>;
|
@@ -39,7 +35,7 @@ export declare class AnalyzedTranslationPackage {
|
|
39
35
|
/**
|
40
36
|
* В случае, когда имя переменной экземпляра совпадает с именем статической переменной, перевод будет иметь две цели.
|
41
37
|
*/
|
42
|
-
getTypeVariableOrVariantTranslationTargets(node: tree.TypeVariableOrVariantTranslation): GetMultipleTranslationTargetsResult<TypeVariableEntity
|
38
|
+
getTypeVariableOrVariantTranslationTargets(node: tree.TypeVariableOrVariantTranslation): GetMultipleTranslationTargetsResult<TypeVariableEntity>;
|
43
39
|
getTypeMethodTranslationTargets(node: tree.TypeMethodTranslation): GetMultipleTranslationTargetsResult<TypeMethodEntity>;
|
44
40
|
getConstructorTranslationTargets(node: tree.ConstructorTranslation): GetMultipleTranslationTargetsResult<ConstructorEntity>;
|
45
41
|
getIndexerTranslationTargets(node: tree.IndexerTranslation): GetMultipleTranslationTargetsResult<IndexerEntity>;
|
@@ -55,7 +51,6 @@ export declare class AnalyzedTranslationPackage {
|
|
55
51
|
getEntityName(entity: NamedEntity): Name | undefined;
|
56
52
|
private createPackageMembers;
|
57
53
|
private createTypeEntityMembers;
|
58
|
-
private createVariants;
|
59
54
|
private createTranslatedSubprogramSignatureFromPackageMethodTranslation;
|
60
55
|
private createTranslatedSubprogramSignatureFromTypeMethodTranslation;
|
61
56
|
private createTranslatedSubprogramSignatureFromMethodTypeTranslation;
|
@@ -78,9 +73,9 @@ export declare class TranslatedPackageMembers {
|
|
78
73
|
getMemberName(entity: NamedPackageMemberEntity): Name | undefined;
|
79
74
|
}
|
80
75
|
export declare class TranslatedNamedPackageMember {
|
81
|
-
readonly value:
|
76
|
+
readonly value: NamedPackageMemberEntity;
|
82
77
|
readonly name: LocalizedName.Translated;
|
83
|
-
constructor(value:
|
78
|
+
constructor(value: NamedPackageMemberEntity, name: LocalizedName.Translated);
|
84
79
|
}
|
85
80
|
export declare class TranslatedTypeEntityMembers {
|
86
81
|
private readonly _namedMembers;
|
@@ -99,23 +94,6 @@ export declare class TranslatedNamedTypeEntityMember {
|
|
99
94
|
readonly name: LocalizedName.Translated;
|
100
95
|
constructor(value: NamedTypeMemberEntity, name: LocalizedName.Translated);
|
101
96
|
}
|
102
|
-
export declare class TranslatedVariants {
|
103
|
-
private readonly _variants;
|
104
|
-
readonly translationPackage: AnalyzedTranslationPackage;
|
105
|
-
private readonly _variantsByNameKey;
|
106
|
-
private readonly _nameByEntity;
|
107
|
-
private get variantsByNameKey();
|
108
|
-
private get nameByEntity();
|
109
|
-
constructor(_variants: readonly TranslatedVariant[], translationPackage: AnalyzedTranslationPackage);
|
110
|
-
get(): readonly TranslatedVariant[];
|
111
|
-
getByName(name: Name): readonly TranslatedVariant[];
|
112
|
-
getName(entity: VariantEntity): Name | undefined;
|
113
|
-
}
|
114
|
-
export declare class TranslatedVariant {
|
115
|
-
readonly value: VariantEntity;
|
116
|
-
readonly name: LocalizedName.Translated;
|
117
|
-
constructor(value: VariantEntity, name: LocalizedName.Translated);
|
118
|
-
}
|
119
97
|
export type LocalizedSubprogramSignature = LocalizedSubprogramSignature.Original | LocalizedSubprogramSignature.Translated;
|
120
98
|
export declare namespace LocalizedSubprogramSignature {
|
121
99
|
export class Original implements ILocalizedSubprogramSignature {
|
@@ -4,7 +4,7 @@ import { Diagnostic, DiagnosticAcceptor, DiagnosticLocation } from '../diagnosti
|
|
4
4
|
import { DiagnosticCode } from '../diagnostic/DiagnosticCode.js';
|
5
5
|
import { DiagnosticFlags, DiagnosticKind } from '../diagnostic/DiagnosticData.js';
|
6
6
|
import { BinaryOperatorKind } from '../entities/OperatorKind.js';
|
7
|
-
import
|
7
|
+
import { OriginalPackageMembers } from '../entities/PackageMembers.js';
|
8
8
|
import { NamedTypeMemberEntity } from '../entities/TypeEntityMembers.js';
|
9
9
|
import * as e from '../entities/index.js';
|
10
10
|
import { ReservedIdentifierKind } from '../parser/ReservedIdentifierDictionary.js';
|
@@ -16,9 +16,9 @@ import * as types from '../types/index.js';
|
|
16
16
|
import { TypeFactory } from '../types/index.js';
|
17
17
|
import { AccessedMethod } from './AccessedMethod.js';
|
18
18
|
import { AnalyzedTranslationPackage } from './AnalyzedTranslationPackage.js';
|
19
|
+
import { ArgumentToParameterMatchResult, MatchResultValueParameter } from './ArgumentToParameterMatchResult.js';
|
19
20
|
import * as autotypeCallExpressionMeaning from './AutotypeCallExpressionMeaning.js';
|
20
21
|
import * as baseExpressionMeaning from './BaseExpressionMeaning.js';
|
21
|
-
import { CallArgumentToParameterMatchResult, MatchResultValueParameter } from './CallArgumentToParameterMatchResult.js';
|
22
22
|
import * as callExpressionMeaning from './CallExpressionMeaning.js';
|
23
23
|
import * as constructorOverloadResolver from './ConstructorOverloadResolver.js';
|
24
24
|
import { DeclarationsUsageCountResult } from './DeclarationsUsageCounter.js';
|
@@ -29,6 +29,7 @@ import { ImportedPackageNameTree, PackageNameTreeNode } from './ImportedPackageN
|
|
29
29
|
import * as indexedAccessExpressionMeaning from './IndexedAccessExpressionMeaning.js';
|
30
30
|
import { WithLocalization } from './Localization.js';
|
31
31
|
import { LocalizationContext } from './LocalizationContext.js';
|
32
|
+
import { ModifierFlags } from './ModifierFlags.js';
|
32
33
|
import { NamedTypeSpecifierResolutionResult } from './NamedTypeSpecifierResolver.js';
|
33
34
|
import { GetterDeclaration, MethodTypeDeclaration, PackageVariableAccessorDeclaration, SetterDeclaration, StructuredTypeDeclaration, TypeDereferencedVariableAccessorDeclaration, TypeIndexedAccessorDeclaration, TypeVariableAccessorDeclaration, VariantTypeDeclaration } from './NodeTypeUtils.js';
|
34
35
|
import * as objectExpressionMeaning from './ObjectExpressionMeaning.js';
|
@@ -36,7 +37,7 @@ import * as operationOverloadResolver from './OperationOverloadResolver.js';
|
|
36
37
|
import * as propertyAccessExpressionResolution from './PropertyAccessExpressionMeaning.js';
|
37
38
|
import * as scope from './Scope.js';
|
38
39
|
import { SemanticContextBuilder } from './SemanticContextBuilder.js';
|
39
|
-
import
|
40
|
+
import { SourceFileMembers as ActualSourceFileMembers } from './SourceFileMembers.js';
|
40
41
|
import * as tagMeaning from './TagMeaning.js';
|
41
42
|
import * as tags from './Tags.js';
|
42
43
|
import { TargetTypeHint } from './TargetTypeHint.js';
|
@@ -57,12 +58,10 @@ export declare class Analyzer {
|
|
57
58
|
readonly returnType: ReturnType;
|
58
59
|
readonly entity: Entity;
|
59
60
|
readonly resultLocalVariableEntity: ResultLocalVariableEntity;
|
60
|
-
readonly paramLocalVariableEntity: ParamLocalVariableEntity;
|
61
61
|
readonly valueLocalVariableEntity: ValueLocalVariableEntity;
|
62
|
-
readonly destructuredParameterLocalVariableEntities: DestructuredParameterLocalVariableEntities;
|
63
62
|
readonly scope: Scope;
|
64
63
|
readonly semanticContext: SemanticContextBuilder;
|
65
|
-
readonly
|
64
|
+
readonly argumentToParameterMatchResult: ArgumentToParameterMatchResult;
|
66
65
|
readonly defaultConstructors: DefaultConstructors;
|
67
66
|
readonly overriddenMember: OverriddenMember;
|
68
67
|
readonly tags: Tags;
|
@@ -80,7 +79,7 @@ export declare class Analyzer {
|
|
80
79
|
private readonly _dereferenceExpressionMeanings;
|
81
80
|
private readonly _autotypeCallExpressionMeanings;
|
82
81
|
private readonly _identifierExpressionResolutionResults;
|
83
|
-
private readonly
|
82
|
+
private readonly _tagResolutionResults;
|
84
83
|
private readonly _objectExpressionMeanings;
|
85
84
|
private readonly _baseExpressionMeanings;
|
86
85
|
private readonly _namedTypeSpecifierResolutionResults;
|
@@ -111,23 +110,22 @@ export declare class Analyzer {
|
|
111
110
|
getTypeMemberEntityContainer(node: tree.TypeMemberDeclaration): e.TypeMemberEntityContainer;
|
112
111
|
getTargetTypeOfExpression(node: tree.Expression, hint?: TargetTypeHint): types.Type | undefined;
|
113
112
|
getUnambiguousTargetMethodType(targetType: types.Type | undefined): types.MethodType | undefined;
|
114
|
-
getUnambiguousTargetVariantType(targetType: types.Type | undefined): types.VariantType | undefined;
|
115
113
|
getUnambiguousTargetArrayType(targetType: types.Type | undefined): types.Type | undefined;
|
116
114
|
getEnumeratorElementType(node: tree.Node): types.Type | undefined;
|
117
|
-
resolveMethodOverloadByCallExpression<TCandidate extends operationOverloadResolver.ICandidate<TValueParameter>, TValueParameter extends operationOverloadResolver.IValueParameter>(candidates:
|
118
|
-
resolveMethodOverloadByTargetType<TCandidate extends operationOverloadResolver.ICandidate<TValueParameter>, TValueParameter extends operationOverloadResolver.IValueParameter>(candidates:
|
119
|
-
resolveConstructorOverload<TCandidate extends constructorOverloadResolver.ICandidate<TValueParameter>, TValueParameter extends constructorOverloadResolver.IValueParameter>(candidates:
|
120
|
-
resolveTypeOverloadByArgumentCount<TCandidate extends typeOverloadResolver.ICandidate>(candidates:
|
115
|
+
resolveMethodOverloadByCallExpression<TCandidate extends operationOverloadResolver.ICandidate<TValueParameter>, TValueParameter extends operationOverloadResolver.IValueParameter>(candidates: readonly TCandidate[], node: tree.CallExpression): readonly TCandidate[];
|
116
|
+
resolveMethodOverloadByTargetType<TCandidate extends operationOverloadResolver.ICandidate<TValueParameter>, TValueParameter extends operationOverloadResolver.IValueParameter>(candidates: readonly TCandidate[], targetType: types.MethodType): readonly TCandidate[];
|
117
|
+
resolveConstructorOverload<TCandidate extends constructorOverloadResolver.ICandidate<TValueParameter>, TValueParameter extends constructorOverloadResolver.IValueParameter>(candidates: readonly TCandidate[], args: readonly tree.Argument[]): readonly TCandidate[];
|
118
|
+
resolveTypeOverloadByArgumentCount<TCandidate extends typeOverloadResolver.ICandidate>(candidates: readonly TCandidate[], argumentCount: number): readonly TCandidate[];
|
121
119
|
resolvePropertyAccessExpression(node: tree.PropertyAccessExpression, targetTypeHint?: TargetTypeHint): propertyAccessExpressionResolution.ResolutionResult;
|
122
120
|
enumeratePackageImports(packageImportDirectives: Iterable<tree.PackageImportDirective>): Iterable<tree.PackageImport>;
|
123
|
-
getSourceFileMembers(node: tree.SourceFile):
|
121
|
+
getSourceFileMembers(node: tree.SourceFile): ActualSourceFileMembers;
|
124
122
|
getCallExpressionMeaning(node: tree.CallExpression): callExpressionMeaning.Meaning;
|
125
|
-
getRespectiveParameter(node: tree.
|
123
|
+
getRespectiveParameter(node: tree.Argument): MatchResultValueParameter | undefined;
|
126
124
|
resolveIndexedAccessExpression(node: tree.IndexedAccessExpression): indexedAccessExpressionMeaning.ResolutionResult;
|
127
125
|
getDereferenceExpressionMeaning(node: tree.DereferenceExpression): dereferenceExpressionMeaning.Meaning;
|
128
126
|
getAutotypeCallExpressionMeaning(node: tree.AutotypeCallExpression, targetTypeHint?: TargetTypeHint): autotypeCallExpressionMeaning.Meaning;
|
129
127
|
resolveIdentifierExpression(node: tree.IdentifierExpression, targetTypeHint?: TargetTypeHint): identifierExpressionResolution.ResolutionResult;
|
130
|
-
|
128
|
+
resolveTag(node: tree.Tag): tagMeaning.ResolutionResult;
|
131
129
|
getObjectExpressionMeaning(node: tree.ObjectExpression): objectExpressionMeaning.Meaning;
|
132
130
|
getBaseExpressionMeaning(node: tree.BaseExpression): baseExpressionMeaning.Meaning;
|
133
131
|
checkExpressionOptionalChaining(node: tree.Expression): boolean;
|
@@ -213,11 +211,11 @@ export declare class Analyzer {
|
|
213
211
|
getCommonObjectAndAspectTypesOfUnion(_unionType: types.UnionType): readonly types.StructuredType[];
|
214
212
|
getLinkedMultiPlatformPackagesByPlatform(entity: e.PackageEntity): ReadonlyMap<PlatformKind, LinkedMultiPlatformPackage> | undefined;
|
215
213
|
getLinkedMultiPlatformPackage(entity: e.PackageEntity, platform: PlatformKind): LinkedMultiPlatformPackage | undefined;
|
216
|
-
createPackageMembers(pkg: SourcePackage):
|
214
|
+
createPackageMembers(pkg: SourcePackage): OriginalPackageMembers;
|
217
215
|
instantiateType(entity: e.TypeEntity, typeArguments?: readonly types.Type[]): types.Type;
|
218
216
|
instantiateTypeByIdentitySubstitution(entity: e.TypeEntity): types.Type;
|
219
|
-
createPackageMemberHiding(node: tree.PackageMemberDeclaration): e.EntityHidingLevel | undefined;
|
220
|
-
createTypeMemberHiding(node: tree.TypeMemberDeclaration): e.EntityHidingLevel | undefined;
|
217
|
+
createPackageMemberHiding(node: tree.PackageMemberDeclaration, modifierFlags: ModifierFlags): e.EntityHidingLevel | undefined;
|
218
|
+
createTypeMemberHiding(node: tree.TypeMemberDeclaration, modifierFlags: ModifierFlags): e.EntityHidingLevel | undefined;
|
221
219
|
getDeclarationsUsageCount(sourceFile: tree.SourceFile, cancellationToken: CancellationToken | undefined): Promise<DeclarationsUsageCountResult>;
|
222
220
|
isExpressionImplicitlyReturnedFromSubprogram(node: tree.ExpressionStatement): boolean;
|
223
221
|
createBackingPackageVariables(declaredMembers: readonly (e.NamedPackageMemberEntity | e.PackageAliasEntity)[], pkg: e.PackageEntity): e.PackageVariableEntity[];
|
@@ -339,7 +337,6 @@ declare class Entity {
|
|
339
337
|
private readonly _destructorEntities;
|
340
338
|
private readonly _getterEntities;
|
341
339
|
private readonly _setterEntities;
|
342
|
-
private readonly _variantEntities;
|
343
340
|
private readonly _typeExtensionEntities;
|
344
341
|
private readonly _packageAliasEntities;
|
345
342
|
constructor(_analyzer: Analyzer);
|
@@ -352,7 +349,6 @@ declare class Entity {
|
|
352
349
|
ofEnumerationVariableDeclaration(node: tree.EnumerationVariableDeclaration): e.LocalVariableEntity;
|
353
350
|
ofErrorVariableDeclaration(node: tree.ErrorVariableDeclaration): e.LocalVariableEntity;
|
354
351
|
ofParameterDeclaration(node: tree.ParameterDeclaration): e.ParameterVariableEntity;
|
355
|
-
ofSetterParameterDeclaration(node: tree.SetterParameterDeclaration): e.ParameterVariableEntity;
|
356
352
|
ofTypeParameterDeclaration(node: tree.TypeParameterDeclaration): e.TypeParameterEntity;
|
357
353
|
ofTypeIndexerDeclaration(node: TypeIndexedAccessorDeclaration): e.SourceIndexerEntity;
|
358
354
|
ofTypeDereferenceOperatorDeclaration(node: TypeDereferencedVariableAccessorDeclaration): e.DereferenceOperatorEntity;
|
@@ -382,7 +378,7 @@ declare class Entity {
|
|
382
378
|
ofSetterDeclaration(node: SetterDeclaration): e.SetterEntity;
|
383
379
|
ofTypeConstructorDeclaration(node: tree.TypeConstructorDeclaration): e.ConstructorEntity;
|
384
380
|
ofTypeDestructorDeclaration(node: tree.TypeDestructorDeclaration): e.DestructorEntity;
|
385
|
-
ofVariantDeclaration(node: tree.VariantDeclaration): e.
|
381
|
+
ofVariantDeclaration(node: tree.VariantDeclaration): e.TypeVariableEntity;
|
386
382
|
ofTypeExtensionDeclaration(node: tree.TypeExtensionDeclaration): e.TypeExtensionEntity;
|
387
383
|
ofPackageImport(node: tree.PackageImport): e.PackageAliasEntity;
|
388
384
|
private getContainingPackageLoadedFromDts;
|
@@ -407,47 +403,14 @@ declare class ResultLocalVariableEntity {
|
|
407
403
|
ofTypeDereferencedVariableGetterDeclaration(node: tree.TypeDereferencedVariableGetterDeclaration): e.LocalVariableEntity;
|
408
404
|
private createResultLocalVariableEntity;
|
409
405
|
}
|
410
|
-
declare class
|
406
|
+
declare class ValueLocalVariableEntity {
|
411
407
|
private readonly _analyzer;
|
412
|
-
private readonly _optionalEntities;
|
413
408
|
private readonly _entities;
|
414
409
|
constructor(_analyzer: Analyzer);
|
415
|
-
ofTypeIndexedGetterDeclaration(node: tree.TypeIndexedGetterDeclaration): e.VariableEntity;
|
416
410
|
ofPackageVariableSetterDeclaration(node: tree.PackageVariableSetterDeclaration): e.VariableEntity;
|
417
411
|
ofTypeVariableSetterDeclaration(node: tree.TypeVariableSetterDeclaration): e.VariableEntity;
|
418
412
|
ofTypeIndexedSetterDeclaration(node: tree.TypeIndexedSetterDeclaration): e.VariableEntity;
|
419
413
|
ofTypeDereferencedVariableSetterDeclaration(node: tree.TypeDereferencedVariableSetterDeclaration): e.VariableEntity;
|
420
|
-
ofPackageMethodDeclaration(node: tree.PackageMethodDeclaration): e.VariableEntity | undefined;
|
421
|
-
ofTypeMethodDeclaration(node: tree.TypeMethodDeclaration): e.VariableEntity | undefined;
|
422
|
-
ofNestedMethodDeclaration(node: tree.NestedMethodDeclaration): e.VariableEntity | undefined;
|
423
|
-
ofMethodLiteral(node: tree.MethodLiteral): e.VariableEntity | undefined;
|
424
|
-
ofMethodBlockLiteral(node: tree.MethodBlockLiteral): e.VariableEntity | undefined;
|
425
|
-
ofOperatorDeclaration(node: tree.OperatorDeclaration): e.VariableEntity | undefined;
|
426
|
-
ofTypeConstructorDeclaration(node: tree.TypeConstructorDeclaration): e.VariableEntity | undefined;
|
427
|
-
private createParamLocalVariableEntity;
|
428
|
-
private createAccessorParamLocalVariableEntity;
|
429
|
-
}
|
430
|
-
declare class ValueLocalVariableEntity {
|
431
|
-
private readonly _analyzer;
|
432
|
-
private readonly _entities;
|
433
|
-
constructor(_analyzer: Analyzer);
|
434
|
-
ofPackageVariableSetterDeclaration(node: tree.PackageVariableSetterDeclaration): e.VariableEntity | undefined;
|
435
|
-
ofTypeVariableSetterDeclaration(node: tree.TypeVariableSetterDeclaration): e.VariableEntity | undefined;
|
436
|
-
ofTypeIndexedSetterDeclaration(node: tree.TypeIndexedSetterDeclaration): e.VariableEntity | undefined;
|
437
|
-
ofTypeDereferencedVariableSetterDeclaration(node: tree.TypeDereferencedVariableSetterDeclaration): e.VariableEntity | undefined;
|
438
|
-
}
|
439
|
-
declare class DestructuredParameterLocalVariableEntities {
|
440
|
-
private readonly _analyzer;
|
441
|
-
private readonly _entities;
|
442
|
-
constructor(_analyzer: Analyzer);
|
443
|
-
ofMethodBlockLiteral(node: tree.MethodBlockLiteral): readonly e.VariableEntity[];
|
444
|
-
ofPackageMethodDeclaration(node: tree.PackageMethodDeclaration): readonly e.VariableEntity[];
|
445
|
-
ofTypeMethodDeclaration(node: tree.TypeMethodDeclaration): readonly e.VariableEntity[];
|
446
|
-
ofOperatorDeclaration(node: tree.OperatorDeclaration): readonly e.VariableEntity[];
|
447
|
-
ofMethodLiteral(node: tree.MethodLiteral): readonly e.VariableEntity[];
|
448
|
-
ofNestedMethodDeclaration(node: tree.NestedMethodDeclaration): readonly e.VariableEntity[];
|
449
|
-
ofTypeConstructorDeclaration(node: tree.TypeConstructorDeclaration): readonly e.VariableEntity[];
|
450
|
-
private createVariableEntitiesBasedOnValueParameters;
|
451
414
|
}
|
452
415
|
declare class Scope {
|
453
416
|
private readonly _analyzer;
|
@@ -462,7 +425,7 @@ declare class Scope {
|
|
462
425
|
private readonly _methodLiteralScopes;
|
463
426
|
private readonly _statementBlockScopes;
|
464
427
|
private readonly _forEachStatementScopes;
|
465
|
-
private readonly
|
428
|
+
private readonly _catchClauseScopes;
|
466
429
|
private readonly _packageStructuredTypeDeclarationTypeParametersScopes;
|
467
430
|
private readonly _structuredTypeDeclarationBodyScopes;
|
468
431
|
private readonly _packageMethodTypeDeclarationTypeParametersScopes;
|
@@ -476,7 +439,6 @@ declare class Scope {
|
|
476
439
|
private readonly _structuredTypeDestructorDeclarationScopes;
|
477
440
|
private readonly _typeIndexedAccessorDeclarationParametersScopes;
|
478
441
|
private readonly _typeExtensionDeclarationScopes;
|
479
|
-
private readonly _setterParameterClauseScopes;
|
480
442
|
constructor(_analyzer: Analyzer);
|
481
443
|
ofSourceFile(node: tree.SourceFile): scope.IScope;
|
482
444
|
ofMethodBlockLiteral(node: tree.MethodBlockLiteral): scope.IScope;
|
@@ -489,7 +451,7 @@ declare class Scope {
|
|
489
451
|
ofMethodLiteral(node: tree.MethodLiteral): scope.IScope;
|
490
452
|
ofStatementBlock(node: tree.StatementBlock): scope.IScope;
|
491
453
|
ofForStatement(node: tree.ForStatement): scope.IScope;
|
492
|
-
|
454
|
+
ofCatchClause(node: tree.CatchClause): scope.IScope;
|
493
455
|
ofPackageStructuredTypeDeclarationTypeParameters(node: tree.PackageStructuredTypeDeclaration): scope.IScope;
|
494
456
|
ofStructuredTypeDeclarationBody(node: tree.StructuredTypeDeclarationBody): scope.IScope;
|
495
457
|
ofPackageMethodTypeDeclarationTypeParameters(node: tree.PackageMethodTypeDeclaration): scope.IScope;
|
@@ -503,7 +465,6 @@ declare class Scope {
|
|
503
465
|
ofTypeDestructorDeclaration(node: tree.TypeDestructorDeclaration): scope.IScope;
|
504
466
|
ofTypeIndexedAccessorDeclarationParameters(node: TypeIndexedAccessorDeclaration): scope.IScope;
|
505
467
|
ofTypeExtensionDeclaration(node: tree.TypeExtensionDeclaration): scope.IScope;
|
506
|
-
ofSetterParameterClause(node: tree.SetterParameterClause): scope.IScope;
|
507
468
|
}
|
508
469
|
declare class DefaultConstructors {
|
509
470
|
private readonly _analyzer;
|
@@ -516,11 +477,11 @@ declare class DefaultConstructors {
|
|
516
477
|
declare class OverriddenMember {
|
517
478
|
private readonly _analyzer;
|
518
479
|
constructor(_analyzer: Analyzer);
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
480
|
+
getOverriddenVariables(node: tree.TypeVariableDeclaration | TypeVariableAccessorDeclaration): types.Variable[];
|
481
|
+
getOverriddenMethods(node: tree.TypeMethodDeclaration): types.Method[];
|
482
|
+
getOverriddenOperators(node: tree.OperatorDeclaration): types.Operator[];
|
483
|
+
getOverriddenIndexers(node: TypeIndexedAccessorDeclaration): types.Indexer[];
|
484
|
+
getOverriddenDereferenceOperators(node: TypeDereferencedVariableAccessorDeclaration): types.DereferenceOperator[];
|
524
485
|
private findOverriddenVariableInType;
|
525
486
|
private findOverriddenMethodInType;
|
526
487
|
private findOverriddenOperatorInType;
|
@@ -535,6 +496,7 @@ declare class OverriddenMember {
|
|
535
496
|
private enumerateTypesForOverriddenMemberLookup;
|
536
497
|
private entityCanOverride;
|
537
498
|
private entityCanBeOverridden;
|
499
|
+
private addTypeMemberIfUnique;
|
538
500
|
}
|
539
501
|
declare class Tags {
|
540
502
|
readonly _analyzer: Analyzer;
|
@@ -542,7 +504,7 @@ declare class Tags {
|
|
542
504
|
constructor(_analyzer: Analyzer);
|
543
505
|
ofTagList(tagList: tree.TagList): readonly tags.Tag[];
|
544
506
|
private createTags;
|
545
|
-
private
|
507
|
+
private argumentToTagArgument;
|
546
508
|
}
|
547
509
|
declare class LinkedEntity {
|
548
510
|
private readonly _analyzer;
|
@@ -559,7 +521,6 @@ declare class LinkedEntity {
|
|
559
521
|
ofConstructor(entity: e.ConstructorEntity, platform: PlatformKind): e.ConstructorEntity | undefined;
|
560
522
|
ofIndexer(entity: e.IndexerEntity, platform: PlatformKind): e.IndexerEntity | undefined;
|
561
523
|
ofDereferenceOperator(entity: e.DereferenceOperatorEntity, platform: PlatformKind): e.DereferenceOperatorEntity | undefined;
|
562
|
-
ofVariant(entity: e.VariantEntity, platform: PlatformKind): e.VariantEntity | undefined;
|
563
524
|
ofGetter(entity: e.GetterEntity, platform: PlatformKind): e.GetterEntity | undefined;
|
564
525
|
ofSetter(entity: e.SetterEntity, platform: PlatformKind): e.SetterEntity | undefined;
|
565
526
|
}
|
@@ -592,9 +553,7 @@ export declare class LinkedTypeWithMembers {
|
|
592
553
|
readonly targetType: e.TypeEntityWithMembers;
|
593
554
|
readonly linkedPackage: LinkedMultiPlatformPackage;
|
594
555
|
private readonly _memberLookup;
|
595
|
-
private readonly _variantLookup;
|
596
556
|
private get memberLookup();
|
597
|
-
private get variantLookup();
|
598
557
|
constructor(analyzer: Analyzer, externalType: e.TypeEntityWithMembers, targetType: e.TypeEntityWithMembers, linkedPackage: LinkedMultiPlatformPackage);
|
599
558
|
getLinkedVariable(entity: e.TypeVariableEntity): e.TypeVariableEntity | undefined;
|
600
559
|
getLinkedMethod(entity: e.TypeMethodEntity): e.TypeMethodEntity | undefined;
|
@@ -602,7 +561,6 @@ export declare class LinkedTypeWithMembers {
|
|
602
561
|
getLinkedConstructor(entity: e.ConstructorEntity): e.ConstructorEntity | undefined;
|
603
562
|
getLinkedIndexer(entity: e.IndexerEntity): e.IndexerEntity | undefined;
|
604
563
|
getLinkedDereferenceOperator(entity: e.DereferenceOperatorEntity): e.DereferenceOperatorEntity | undefined;
|
605
|
-
getLinkedVariant(entity: e.VariantEntity): e.VariantEntity | undefined;
|
606
564
|
}
|
607
565
|
declare class OwningPlainObjectModificationCheck {
|
608
566
|
private _analyzer;
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { Diagnostic } from '../diagnostic/Diagnostic.js';
|
2
|
-
import {
|
3
|
-
import {
|
2
|
+
import { ParameterVariableEntity } from '../entities/index.js';
|
3
|
+
import { Argument, AutotypeCallExpression, CallExpression, IndexedAccessExpression, Tag } from '../tree/index.js';
|
4
4
|
import * as types from '../types/index.js';
|
5
5
|
import { LocalizedName } from './Localization.js';
|
6
6
|
import { Analyzer } from './index.js';
|
7
|
-
export declare class
|
7
|
+
export declare class ArgumentToParameterMatchResult {
|
8
8
|
private readonly _analyzer;
|
9
9
|
private readonly _matchResults;
|
10
10
|
constructor(_analyzer: Analyzer);
|
@@ -16,14 +16,14 @@ export declare class CallArgumentToParameterMatchResult {
|
|
16
16
|
private convertParameter;
|
17
17
|
}
|
18
18
|
export declare class MatchResult {
|
19
|
-
readonly
|
19
|
+
readonly parameterByArgument: ReadonlyMap<Argument, MatchResultValueParameter>;
|
20
20
|
readonly unmatchedParameters: readonly MatchResultValueParameter[];
|
21
21
|
readonly diagnostics: readonly Diagnostic[];
|
22
|
-
constructor(
|
22
|
+
constructor(parameterByArgument: ReadonlyMap<Argument, MatchResultValueParameter>, unmatchedParameters: readonly MatchResultValueParameter[], diagnostics: readonly Diagnostic[]);
|
23
23
|
}
|
24
24
|
export declare class MatchResultValueParameter {
|
25
|
-
readonly entity:
|
25
|
+
readonly entity: ParameterVariableEntity;
|
26
26
|
readonly type: types.Type;
|
27
27
|
readonly name: LocalizedName;
|
28
|
-
constructor(entity:
|
28
|
+
constructor(entity: ParameterVariableEntity, type: types.Type, name: LocalizedName);
|
29
29
|
}
|
@@ -3,23 +3,23 @@ import { Diagnostic, DiagnosticLocation } from '../diagnostic/Diagnostic.js';
|
|
3
3
|
import * as tree from '../tree/index.js';
|
4
4
|
import * as types from '../types/index.js';
|
5
5
|
import { Analyzer } from './index.js';
|
6
|
-
export declare class
|
6
|
+
export declare class ArgumentToParameterMatcher<TSignature extends ISignature<TParameter>, TParameter extends ISignatureParameter, TArgument extends IArgument> {
|
7
7
|
private readonly _analyzer;
|
8
8
|
private readonly _signature;
|
9
|
-
private readonly
|
10
|
-
constructor(_analyzer: Analyzer, _signature: TSignature,
|
11
|
-
match(): MatchResult<TParameter,
|
12
|
-
private
|
13
|
-
private
|
14
|
-
private
|
9
|
+
private readonly _arguments;
|
10
|
+
constructor(_analyzer: Analyzer, _signature: TSignature, _arguments: readonly TArgument[]);
|
11
|
+
match(): MatchResult<TParameter, TArgument>;
|
12
|
+
private matchArgumentsToParameters;
|
13
|
+
private addArgumentDiagnostic;
|
14
|
+
private getArgumentType;
|
15
15
|
}
|
16
|
-
export declare class MatchResult<TParameter extends ISignatureParameter,
|
17
|
-
readonly mapping: ReadonlyMap<
|
16
|
+
export declare class MatchResult<TParameter extends ISignatureParameter, TArgument extends IArgument> {
|
17
|
+
readonly mapping: ReadonlyMap<TArgument, TParameter>;
|
18
18
|
readonly unmatchedRequiredParameters: readonly TParameter[];
|
19
19
|
readonly argumentArrangementDiagnostics: readonly Diagnostic[];
|
20
20
|
readonly hasTypeAssignabilityErrors: boolean;
|
21
21
|
get isMatching(): boolean;
|
22
|
-
constructor(mapping: ReadonlyMap<
|
22
|
+
constructor(mapping: ReadonlyMap<TArgument, TParameter>, unmatchedRequiredParameters: readonly TParameter[], argumentArrangementDiagnostics: readonly Diagnostic[], hasTypeAssignabilityErrors: boolean);
|
23
23
|
}
|
24
24
|
export interface ISignature<TParameter extends ISignatureParameter> {
|
25
25
|
getParameters(): readonly TParameter[];
|
@@ -29,15 +29,15 @@ export interface ISignatureParameter {
|
|
29
29
|
getType(): types.Type;
|
30
30
|
isOptional(): boolean;
|
31
31
|
}
|
32
|
-
export interface
|
32
|
+
export interface IArgument {
|
33
33
|
getExpression(): tree.Expression;
|
34
34
|
getName(): Name | undefined;
|
35
35
|
getDiagnosticLocation(): DiagnosticLocation | undefined;
|
36
36
|
}
|
37
|
-
export declare class
|
37
|
+
export declare class SourceArgument implements IArgument {
|
38
38
|
private readonly _analyzer;
|
39
|
-
readonly node: tree.
|
40
|
-
constructor(_analyzer: Analyzer, node: tree.
|
39
|
+
readonly node: tree.Argument;
|
40
|
+
constructor(_analyzer: Analyzer, node: tree.Argument);
|
41
41
|
getExpression(): tree.Expression;
|
42
42
|
getName(): Name | undefined;
|
43
43
|
getDiagnosticLocation(): DiagnosticLocation;
|
@@ -7,7 +7,7 @@ import { LocalizedName } from './Localization.js';
|
|
7
7
|
export declare class Resolver<TCandidate extends ICandidate<TValueParameter>, TValueParameter extends IValueParameter> {
|
8
8
|
private readonly _analyzer;
|
9
9
|
constructor(_analyzer: Analyzer);
|
10
|
-
resolve(candidates:
|
10
|
+
resolve(candidates: readonly TCandidate[], args: readonly tree.Argument[]): readonly TCandidate[];
|
11
11
|
}
|
12
12
|
export interface ICandidate<TValueParameter extends IValueParameter> {
|
13
13
|
getValueParameters(): readonly TValueParameter[];
|
@@ -1,7 +1,7 @@
|
|
1
|
+
import { AccessKind } from '../common/index.js';
|
1
2
|
import { Diagnostic } from '../diagnostic/Diagnostic.js';
|
2
3
|
import { DereferenceExpression } from '../tree/index.js';
|
3
4
|
import * as types from '../types/index.js';
|
4
|
-
import * as dereferencedVariableAccess from './DereferencedVariableAccess.js';
|
5
5
|
import { FoundAnonymousDeclaration } from './FoundDeclaration.js';
|
6
6
|
import { Analyzer } from './index.js';
|
7
7
|
export declare class Resolver {
|
@@ -16,9 +16,9 @@ export declare class Resolver {
|
|
16
16
|
export type Meaning = Meaning_resolved | Meaning_unresolved;
|
17
17
|
declare class Meaning_resolved {
|
18
18
|
readonly operator: FoundAnonymousDeclaration<types.DereferenceOperator>;
|
19
|
-
readonly
|
19
|
+
readonly accessKind: AccessKind;
|
20
20
|
readonly kind = "resolved";
|
21
|
-
constructor(operator: FoundAnonymousDeclaration<types.DereferenceOperator>,
|
21
|
+
constructor(operator: FoundAnonymousDeclaration<types.DereferenceOperator>, accessKind: AccessKind);
|
22
22
|
}
|
23
23
|
declare class Meaning_unresolved {
|
24
24
|
readonly diagnostic: Diagnostic | undefined;
|
@@ -18,6 +18,7 @@ export declare class DiagnosticCollector {
|
|
18
18
|
constructor(analyzer: Analyzer, sourceFile: project.SourceFile, cancellationToken: CancellationToken | undefined);
|
19
19
|
collect(): Promise<Diagnostic[]>;
|
20
20
|
private collectNodeDiagnostics;
|
21
|
+
private checkCallExpression;
|
21
22
|
private addNotTranslatedPackageMembersDiagnostics;
|
22
23
|
private collectNotTranslatedPackageMembers;
|
23
24
|
private addNotTranslatedTypeMembersDiagnostics;
|
@@ -30,6 +31,7 @@ export declare class DiagnosticCollector {
|
|
30
31
|
private checkTypeConstructorDeclaration;
|
31
32
|
private checkTypeMethodDeclaration;
|
32
33
|
private checkOperatorDeclaration;
|
34
|
+
private checkTypeVariableDeclaration;
|
33
35
|
private checkTypeVariableGetterDeclaration;
|
34
36
|
private checkTypeVariableSetterDeclaration;
|
35
37
|
private checkTypeIndexedGetterDeclaration;
|
@@ -1,4 +1,6 @@
|
|
1
1
|
import * as tree from '../tree/index.js';
|
2
|
+
import { ModifierFlags } from './ModifierFlags.js';
|
2
3
|
type NodeWithModifiers = tree.PackageMemberDeclaration | tree.TypeMemberDeclaration;
|
3
4
|
export declare function findModifier(node: NodeWithModifiers, modifierKeywordKind: tree.ModifierKeywordKind): tree.Modifier | undefined;
|
5
|
+
export declare function createDeclaredModifierFlags(node: NodeWithModifiers): ModifierFlags;
|
4
6
|
export {};
|
@@ -1,13 +1,12 @@
|
|
1
|
-
import { Name } from '../common/index.js';
|
1
|
+
import { AccessKind, Name } from '../common/index.js';
|
2
2
|
import { Diagnostic } from '../diagnostic/Diagnostic.js';
|
3
|
-
import { NamedTypeEntity, PackageAliasEntity, VariableEntity
|
3
|
+
import { NamedTypeEntity, PackageAliasEntity, VariableEntity } from '../entities/index.js';
|
4
4
|
import * as tree from '../tree/index.js';
|
5
5
|
import * as types from '../types/index.js';
|
6
6
|
import { AccessedMethod } from './AccessedMethod.js';
|
7
7
|
import { FoundAnonymousDeclaration, FoundNamedDeclaration } from './FoundDeclaration.js';
|
8
8
|
import { PackageNameTreeNode } from './ImportedPackageNameTree.js';
|
9
9
|
import * as scope from './Scope.js';
|
10
|
-
import * as variableAccess from './VariableAccess.js';
|
11
10
|
import { Analyzer, TargetTypeHint } from './index.js';
|
12
11
|
export declare class Resolver {
|
13
12
|
private readonly _semanticContext;
|
@@ -25,19 +24,22 @@ export declare class Resolver {
|
|
25
24
|
export declare class ResolutionResult {
|
26
25
|
readonly meaning: Meaning;
|
27
26
|
readonly diagnostic?: Diagnostic | undefined;
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
27
|
+
/**
|
28
|
+
* Может ли измениться результат, если посчитать его с другим целевым типом?
|
29
|
+
*/
|
30
|
+
readonly dependsOnTargetType: boolean;
|
31
|
+
constructor(meaning: Meaning, diagnostic?: Diagnostic | undefined,
|
32
|
+
/**
|
33
|
+
* Может ли измениться результат, если посчитать его с другим целевым типом?
|
34
|
+
*/
|
35
|
+
dependsOnTargetType?: boolean);
|
35
36
|
}
|
37
|
+
export type Meaning = Meaning_variableAccess | Meaning_methodAccess | Meaning_operatorAccess | Meaning_packageNameSegmentAccess | Meaning_packageAliasAccess | Meaning_typeAccess | Meaning_mixedAmbiguousAccess | Meaning_unresolved;
|
36
38
|
declare class Meaning_variableAccess {
|
37
39
|
readonly variable: FoundNamedDeclaration<AccessedVariable>;
|
38
|
-
readonly
|
40
|
+
readonly accessKind: AccessKind;
|
39
41
|
readonly kind = "variable-access";
|
40
|
-
constructor(variable: FoundNamedDeclaration<AccessedVariable>,
|
42
|
+
constructor(variable: FoundNamedDeclaration<AccessedVariable>, accessKind: AccessKind);
|
41
43
|
}
|
42
44
|
declare class Meaning_methodAccess {
|
43
45
|
readonly candidates: readonly FoundNamedDeclaration<AccessedMethod>[];
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import {
|
2
|
-
import { AliasTypeEntity, MethodEntity, PackageAliasEntity, PackageEntity, PackageMethodTypeEntity, PackageStructuredTypeEntity, PackageVariantTypeEntity, TypeEntity, TypeParameterEntity, VariableEntity
|
3
|
-
import { AnalyzedTranslationPackage, TranslatedTypeEntityMembers
|
1
|
+
import { Name, PackageLocale } from '../common/index.js';
|
2
|
+
import { AliasTypeEntity, MethodEntity, PackageAliasEntity, PackageEntity, PackageMethodTypeEntity, PackageStructuredTypeEntity, PackageVariantTypeEntity, TypeEntity, TypeParameterEntity, VariableEntity } from '../entities/index.js';
|
3
|
+
import { AnalyzedTranslationPackage, TranslatedTypeEntityMembers } from './AnalyzedTranslationPackage.js';
|
4
4
|
export declare class LocalizationContext {
|
5
5
|
readonly originalLocale: PackageLocale;
|
6
6
|
private readonly _translationPackageByTranslated;
|
@@ -9,7 +9,6 @@ export declare class LocalizationContext {
|
|
9
9
|
getTranslationPackage(packageEntity: PackageEntity): AnalyzedTranslationPackage | undefined;
|
10
10
|
getTranslationLocale(packageEntity: PackageEntity): PackageLocale;
|
11
11
|
getTranslatedTypeEntityMembers(typeEntity: TypeEntity): TranslatedTypeEntityMembers | undefined;
|
12
|
-
getTranslatedVariants(typeEntity: VariantTypeEntity): TranslatedVariants | undefined;
|
13
12
|
getEntityName(entity: NamedEntity): Name;
|
14
13
|
}
|
15
|
-
export type NamedEntity = VariableEntity |
|
14
|
+
export type NamedEntity = VariableEntity | PackageVariantTypeEntity | MethodEntity | TypeParameterEntity | PackageMethodTypeEntity | PackageStructuredTypeEntity | PackageAliasEntity | AliasTypeEntity;
|