@artel/artc 0.6.25259 → 0.6.25260
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-GVYF4DV5.js → chunk-7FERF2MU.js} +11 -11
- package/build/{chunk-HE4MTX63.js → chunk-RIIOVQBM.js} +14371 -13456
- package/build/{chunk-VQI5PLBW.js → chunk-ZNXSVPQT.js} +1 -1
- 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
|
@@ -10,10 +10,11 @@ import { FunctionDeclaration, GetterDeclaration, RegularOrBlockFunctionLiteral,
|
|
|
10
10
|
import { NamedDeclaration, TypeOrContainerWithTypes } from './Declarations.js';
|
|
11
11
|
import { SemanticContext } from './SemanticContext.js';
|
|
12
12
|
export declare abstract class SemanticContextBase {
|
|
13
|
-
protected static readonly
|
|
14
|
-
protected static readonly
|
|
15
|
-
protected static readonly
|
|
16
|
-
protected static readonly
|
|
13
|
+
protected static readonly emptyTypesOrContainersWithTypes: readonly TypeOrContainerWithTypes[];
|
|
14
|
+
protected static readonly emptyNamedDeclarations: readonly NamedDeclaration[];
|
|
15
|
+
protected static readonly emptyOperators: readonly types.Operator[];
|
|
16
|
+
protected static readonly emptyTypeExtensions: readonly TypeExtensionEntity[];
|
|
17
|
+
private hidingMatcher;
|
|
17
18
|
abstract readonly outer: SemanticContext | undefined;
|
|
18
19
|
protected abstract readonly asContext: SemanticContext;
|
|
19
20
|
abstract getContainingSubprogram(): SubprogramInfo | undefined;
|
|
@@ -42,8 +43,8 @@ export type SubprogramInfo = SubprogramInfo.Function | SubprogramInfo.Operator |
|
|
|
42
43
|
export declare namespace SubprogramInfo {
|
|
43
44
|
export class Function implements ISubprogramInfo {
|
|
44
45
|
readonly kind = "function";
|
|
45
|
-
private readonly
|
|
46
|
-
private readonly
|
|
46
|
+
private readonly analyzer;
|
|
47
|
+
private readonly node;
|
|
47
48
|
constructor(analyzer: Analyzer, node: FunctionDeclaration);
|
|
48
49
|
getReturnType(): types.Type | undefined;
|
|
49
50
|
isGenerator(): boolean;
|
|
@@ -53,8 +54,8 @@ export declare namespace SubprogramInfo {
|
|
|
53
54
|
}
|
|
54
55
|
export class Operator implements ISubprogramInfo {
|
|
55
56
|
readonly kind = "operator";
|
|
56
|
-
private readonly
|
|
57
|
-
private readonly
|
|
57
|
+
private readonly analyzer;
|
|
58
|
+
private readonly node;
|
|
58
59
|
constructor(analyzer: Analyzer, node: tree.OperatorDeclaration);
|
|
59
60
|
getReturnType(): types.Type | undefined;
|
|
60
61
|
isGenerator(): boolean;
|
|
@@ -63,8 +64,8 @@ export declare namespace SubprogramInfo {
|
|
|
63
64
|
}
|
|
64
65
|
export class Constructor implements ISubprogramInfo {
|
|
65
66
|
readonly kind = "constructor";
|
|
66
|
-
private readonly
|
|
67
|
-
private readonly
|
|
67
|
+
private readonly analyzer;
|
|
68
|
+
private readonly node;
|
|
68
69
|
constructor(analyzer: Analyzer, node: tree.ConstructorDeclaration);
|
|
69
70
|
getReturnType(): types.Type | undefined;
|
|
70
71
|
isGenerator(): boolean;
|
|
@@ -74,8 +75,8 @@ export declare namespace SubprogramInfo {
|
|
|
74
75
|
}
|
|
75
76
|
export class Destructor implements ISubprogramInfo {
|
|
76
77
|
readonly kind = "destructor";
|
|
77
|
-
private readonly
|
|
78
|
-
private readonly
|
|
78
|
+
private readonly analyzer;
|
|
79
|
+
private readonly node;
|
|
79
80
|
constructor(analyzer: Analyzer, node: tree.DestructorDeclaration);
|
|
80
81
|
getReturnType(): types.Type | undefined;
|
|
81
82
|
isGenerator(): boolean;
|
|
@@ -84,8 +85,8 @@ export declare namespace SubprogramInfo {
|
|
|
84
85
|
}
|
|
85
86
|
export class Getter implements ISubprogramInfo {
|
|
86
87
|
readonly kind = "getter";
|
|
87
|
-
private readonly
|
|
88
|
-
private readonly
|
|
88
|
+
private readonly analyzer;
|
|
89
|
+
private readonly node;
|
|
89
90
|
constructor(analyzer: Analyzer, node: GetterDeclaration);
|
|
90
91
|
getReturnType(): types.Type | undefined;
|
|
91
92
|
isGenerator(): boolean;
|
|
@@ -94,8 +95,8 @@ export declare namespace SubprogramInfo {
|
|
|
94
95
|
}
|
|
95
96
|
export class Setter implements ISubprogramInfo {
|
|
96
97
|
readonly kind = "setter";
|
|
97
|
-
private readonly
|
|
98
|
-
private readonly
|
|
98
|
+
private readonly analyzer;
|
|
99
|
+
private readonly node;
|
|
99
100
|
constructor(analyzer: Analyzer, node: SetterDeclaration);
|
|
100
101
|
getReturnType(): types.Type | undefined;
|
|
101
102
|
isGenerator(): boolean;
|
|
@@ -104,8 +105,8 @@ export declare namespace SubprogramInfo {
|
|
|
104
105
|
}
|
|
105
106
|
export class PackageConstructor implements ISubprogramInfo {
|
|
106
107
|
readonly kind = "package-constructor";
|
|
107
|
-
private readonly
|
|
108
|
-
private readonly
|
|
108
|
+
private readonly analyzer;
|
|
109
|
+
private readonly node;
|
|
109
110
|
constructor(analyzer: Analyzer, node: tree.PackageConstructorDeclaration);
|
|
110
111
|
getReturnType(): types.Type | undefined;
|
|
111
112
|
isGenerator(): boolean;
|
|
@@ -115,8 +116,8 @@ export declare namespace SubprogramInfo {
|
|
|
115
116
|
}
|
|
116
117
|
export class PackageEntryPoint implements ISubprogramInfo {
|
|
117
118
|
readonly kind = "package-entry-point";
|
|
118
|
-
private readonly
|
|
119
|
-
private readonly
|
|
119
|
+
private readonly analyzer;
|
|
120
|
+
private readonly node;
|
|
120
121
|
constructor(analyzer: Analyzer, node: tree.PackageEntryPointDeclaration);
|
|
121
122
|
getReturnType(): types.Type | undefined;
|
|
122
123
|
isGenerator(): boolean;
|
|
@@ -126,8 +127,8 @@ export declare namespace SubprogramInfo {
|
|
|
126
127
|
}
|
|
127
128
|
export class FunctionLiteral implements ISubprogramInfo {
|
|
128
129
|
readonly kind = "function-literal";
|
|
129
|
-
private readonly
|
|
130
|
-
private readonly
|
|
130
|
+
private readonly analyzer;
|
|
131
|
+
private readonly node;
|
|
131
132
|
constructor(analyzer: Analyzer, node: RegularOrBlockFunctionLiteral);
|
|
132
133
|
getReturnType(): types.Type | undefined;
|
|
133
134
|
isGenerator(): boolean;
|
|
@@ -4,10 +4,10 @@ import { TypeEntity } from '../../entities/TypeEntity.js';
|
|
|
4
4
|
import { SourceFile } from '../../project/SourceFile.js';
|
|
5
5
|
import { SemanticContext } from './SemanticContext.js';
|
|
6
6
|
export declare class SemanticContextBasedEntityHidingMatcher extends BaseEntityHidingMatcher {
|
|
7
|
-
private readonly
|
|
8
|
-
private readonly
|
|
9
|
-
private
|
|
10
|
-
private
|
|
7
|
+
private readonly semanticContext;
|
|
8
|
+
private readonly typeEntity_;
|
|
9
|
+
private sourceFile_;
|
|
10
|
+
private package_;
|
|
11
11
|
protected get sourceFile(): SourceFile;
|
|
12
12
|
protected get package(): PackageEntity;
|
|
13
13
|
protected get typeEntity(): TypeEntity | undefined;
|
|
@@ -4,31 +4,31 @@ import { FunctionDeclaration, IndexedElementAccessorDeclaration, PackageTypeDecl
|
|
|
4
4
|
import { BlockSemanticContext, CatchClauseSemanticContext, ConstructorSemanticContext, DestructorSemanticContext, ForStatementSemanticContext, FunctionBlockSemanticContext, FunctionLiteralSemanticContext, FunctionSemanticContext, IndexedElementAccessorSemanticContext, OperatorSemanticContext, OutermostSemanticContextOfSubprogram, OutermostSemanticContextOfType, PackageConstructorSemanticContext, PackageEntryPointSemanticContext, ParametersOfFunctionTypeSemanticContext, SemanticContext, SemanticContextContainingTypeMember, SourceFileSemanticContext, SpecialLocalDeclarationSemanticContext, StatementBlockSemanticContext, SubprogramParameterSemanticContext, SubprogramTypeParameterSemanticContext, TypeBodySemanticContext, TypeDeclarationCreatingSemanticContext, TypeDeclarationWithMembersBody, TypeExtensionBodySemanticContext, TypeParametersOfTypeSemanticContext, VariableAccessorDeclaration, VariableAccessorSemanticContext } from '../semantic-context/index.js';
|
|
5
5
|
import { TranslationTextTemplateSemanticContext } from './TranslationTextTemplateSemanticContext.js';
|
|
6
6
|
export declare class SemanticContextBuilder {
|
|
7
|
-
private readonly
|
|
8
|
-
private readonly
|
|
9
|
-
private readonly
|
|
10
|
-
private readonly
|
|
11
|
-
private readonly
|
|
12
|
-
private readonly
|
|
13
|
-
private readonly
|
|
14
|
-
private readonly
|
|
15
|
-
private readonly
|
|
16
|
-
private readonly
|
|
17
|
-
private readonly
|
|
18
|
-
private readonly
|
|
19
|
-
private readonly
|
|
20
|
-
private readonly
|
|
21
|
-
private readonly
|
|
22
|
-
private readonly
|
|
23
|
-
private readonly
|
|
24
|
-
private readonly
|
|
25
|
-
private readonly
|
|
26
|
-
private readonly
|
|
27
|
-
private readonly
|
|
28
|
-
private readonly
|
|
29
|
-
private readonly
|
|
30
|
-
private readonly
|
|
31
|
-
private readonly
|
|
7
|
+
private readonly analyzer;
|
|
8
|
+
private readonly sourceFileContexts;
|
|
9
|
+
private readonly indexedElementAccessorContexts;
|
|
10
|
+
private readonly operatorContexts;
|
|
11
|
+
private readonly fieldWithInitializerContexts;
|
|
12
|
+
private readonly forStatementContexts;
|
|
13
|
+
private readonly catchClauseSemanticContexts;
|
|
14
|
+
private readonly destructorContexts;
|
|
15
|
+
private readonly constructorContexts;
|
|
16
|
+
private readonly functionLiteralContexts;
|
|
17
|
+
private readonly packageEntryPointContexts;
|
|
18
|
+
private readonly packageConstructorContexts;
|
|
19
|
+
private readonly variableAccessorContexts;
|
|
20
|
+
private readonly typeDeclarationTypeParameterContexts;
|
|
21
|
+
private readonly typeDeclarationBodyContexts;
|
|
22
|
+
private readonly parametersOfFunctionTypeContext;
|
|
23
|
+
private readonly statementBlockContexts;
|
|
24
|
+
private readonly functionBlockContexts;
|
|
25
|
+
private readonly specialLocalDeclarationContexts;
|
|
26
|
+
private readonly subprogramTypeParameterContexts;
|
|
27
|
+
private readonly subprogramParameterContexts;
|
|
28
|
+
private readonly outermostContextsOfFunctionDeclaration;
|
|
29
|
+
private readonly outermostContextsOfTypeDeclaration;
|
|
30
|
+
private readonly typeExtensionDeclarationBodyContexts;
|
|
31
|
+
private readonly translationTextTemplateContexts;
|
|
32
32
|
constructor(analyzer: Analyzer);
|
|
33
33
|
/**
|
|
34
34
|
* Возвращает контекст, содержащий узел. Если в качестве узла передан исходный файл,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Name } from '../../common/index.js';
|
|
2
2
|
import { DiagnosticAcceptor } from '../../diagnostic/Diagnostic.js';
|
|
3
3
|
import { IEntityHidingMatcher } from '../../entities/EntityHiding.js';
|
|
4
|
-
import { LocalVariableEntity, NestedFunctionEntity,
|
|
4
|
+
import { LocalVariableEntity, NestedFunctionEntity, ParameterEntity, TextTemplateParameterEntity, TypeParameterEntity } from '../../entities/index.js';
|
|
5
5
|
import * as tree from '../../tree/index.js';
|
|
6
6
|
import { Analyzer } from '../Analyzer.js';
|
|
7
7
|
import { NamedDeclaration, TypeOrContainerWithTypes } from './Declarations.js';
|
|
@@ -13,13 +13,13 @@ export interface NameConflictsValidator {
|
|
|
13
13
|
export declare abstract class SemanticContextValidatingNameConflictsBase extends SemanticContextWithParent implements NameConflictsValidator {
|
|
14
14
|
abstract readonly outer: SemanticContext;
|
|
15
15
|
abstract readonly node: tree.Node;
|
|
16
|
-
protected readonly
|
|
17
|
-
private readonly
|
|
18
|
-
private
|
|
19
|
-
private readonly
|
|
20
|
-
private readonly
|
|
21
|
-
private readonly
|
|
22
|
-
private readonly
|
|
16
|
+
protected readonly analyzer: Analyzer;
|
|
17
|
+
private readonly memberEntities_;
|
|
18
|
+
private memberEntitiesByNameKey;
|
|
19
|
+
private readonly namedDeclarations_;
|
|
20
|
+
private readonly typesOrContainerWithTypes_;
|
|
21
|
+
private readonly namedDeclarationsByName_;
|
|
22
|
+
private readonly typesOrContainerWithTypesByName_;
|
|
23
23
|
private get memberEntities();
|
|
24
24
|
private get namedDeclarations();
|
|
25
25
|
private get typesOrContainerWithTypes();
|
|
@@ -38,5 +38,5 @@ export declare abstract class SemanticContextValidatingNameConflictsBase extends
|
|
|
38
38
|
private createNamedDeclarations;
|
|
39
39
|
private createTypesOrContainerWithTypes;
|
|
40
40
|
}
|
|
41
|
-
export type MemberOfSemanticContextValidatingNameConflicts = LocalVariableEntity |
|
|
41
|
+
export type MemberOfSemanticContextValidatingNameConflicts = LocalVariableEntity | ParameterEntity | TextTemplateParameterEntity | NestedFunctionEntity | TypeParameterEntity;
|
|
42
42
|
export type MemberOfSemanticContextValidatingNameConflictsForTypeLookup = TypeParameterEntity;
|
|
@@ -12,14 +12,14 @@ export declare class SourceFileSemanticContext extends SemanticContextBase {
|
|
|
12
12
|
readonly kind = "source-file";
|
|
13
13
|
readonly outer: SemanticContext | undefined;
|
|
14
14
|
protected asContext: SemanticContext;
|
|
15
|
-
private readonly
|
|
16
|
-
private readonly
|
|
17
|
-
private readonly
|
|
18
|
-
private readonly
|
|
19
|
-
private readonly
|
|
20
|
-
private readonly
|
|
21
|
-
private readonly
|
|
22
|
-
private readonly
|
|
15
|
+
private readonly analyzer;
|
|
16
|
+
private readonly sourceFile;
|
|
17
|
+
private readonly sourceFileMembers;
|
|
18
|
+
private readonly containingPackageMemberLookup;
|
|
19
|
+
private readonly importedPackageMemberLookups;
|
|
20
|
+
private readonly packageNameSegments;
|
|
21
|
+
private readonly packageNameSegmentsByKey_;
|
|
22
|
+
private readonly diagnosticArgumentFactory;
|
|
23
23
|
private get packageNameSegmentsByKey();
|
|
24
24
|
constructor(analyzer: Analyzer, node: tree.SourceFile);
|
|
25
25
|
getContainingSubprogram(): SubprogramInfo | undefined;
|
|
@@ -27,9 +27,9 @@ export declare abstract class OutermostSemanticContextOfSubprogram extends Seman
|
|
|
27
27
|
export declare class FunctionSemanticContext extends OutermostSemanticContextOfSubprogram {
|
|
28
28
|
readonly outer: SemanticContext;
|
|
29
29
|
protected readonly asContext: SemanticContext;
|
|
30
|
-
private readonly
|
|
31
|
-
private readonly
|
|
32
|
-
private readonly
|
|
30
|
+
private readonly analyzer;
|
|
31
|
+
private readonly node;
|
|
32
|
+
private readonly subprogramInfo;
|
|
33
33
|
constructor(analyzer: Analyzer, node: FunctionDeclaration, outer: SemanticContext);
|
|
34
34
|
getContainingSubprogram(): SubprogramInfo;
|
|
35
35
|
isStatic(): boolean;
|
|
@@ -37,27 +37,27 @@ export declare class FunctionSemanticContext extends OutermostSemanticContextOfS
|
|
|
37
37
|
export declare class PackageConstructorSemanticContext extends OutermostSemanticContextOfSubprogram {
|
|
38
38
|
readonly outer: SourceFileSemanticContext;
|
|
39
39
|
protected readonly asContext: SemanticContext;
|
|
40
|
-
private readonly
|
|
41
|
-
private readonly
|
|
42
|
-
private readonly
|
|
40
|
+
private readonly analyzer;
|
|
41
|
+
private readonly node;
|
|
42
|
+
private readonly subprogramInfo;
|
|
43
43
|
constructor(analyzer: Analyzer, node: tree.PackageConstructorDeclaration, outer: SourceFileSemanticContext);
|
|
44
44
|
getContainingSubprogram(): SubprogramInfo;
|
|
45
45
|
}
|
|
46
46
|
export declare class PackageEntryPointSemanticContext extends OutermostSemanticContextOfSubprogram {
|
|
47
47
|
readonly outer: SourceFileSemanticContext;
|
|
48
48
|
protected readonly asContext: SemanticContext;
|
|
49
|
-
private readonly
|
|
50
|
-
private readonly
|
|
51
|
-
private readonly
|
|
49
|
+
private readonly analyzer;
|
|
50
|
+
private readonly node;
|
|
51
|
+
private readonly subprogramInfo;
|
|
52
52
|
constructor(analyzer: Analyzer, node: tree.PackageEntryPointDeclaration, outer: SourceFileSemanticContext);
|
|
53
53
|
getContainingSubprogram(): SubprogramInfo;
|
|
54
54
|
}
|
|
55
55
|
export declare class OperatorSemanticContext extends OutermostSemanticContextOfSubprogram {
|
|
56
56
|
readonly outer: SemanticContextContainingTypeMember;
|
|
57
57
|
protected readonly asContext: SemanticContext;
|
|
58
|
-
private readonly
|
|
59
|
-
private readonly
|
|
60
|
-
private readonly
|
|
58
|
+
private readonly analyzer;
|
|
59
|
+
private readonly node;
|
|
60
|
+
private readonly subprogramInfo;
|
|
61
61
|
constructor(analyzer: Analyzer, node: tree.OperatorDeclaration, outer: SemanticContextContainingTypeMember);
|
|
62
62
|
getContainingSubprogram(): SubprogramInfo;
|
|
63
63
|
isStatic(): boolean;
|
|
@@ -65,18 +65,18 @@ export declare class OperatorSemanticContext extends OutermostSemanticContextOfS
|
|
|
65
65
|
export declare class ConstructorSemanticContext extends OutermostSemanticContextOfSubprogram {
|
|
66
66
|
readonly outer: SemanticContextContainingTypeMember;
|
|
67
67
|
protected readonly asContext: SemanticContext;
|
|
68
|
-
private readonly
|
|
69
|
-
private readonly
|
|
70
|
-
private readonly
|
|
68
|
+
private readonly analyzer;
|
|
69
|
+
private readonly node;
|
|
70
|
+
private readonly subprogramInfo;
|
|
71
71
|
constructor(analyzer: Analyzer, node: tree.ConstructorDeclaration, outer: SemanticContextContainingTypeMember);
|
|
72
72
|
getContainingSubprogram(): SubprogramInfo;
|
|
73
73
|
}
|
|
74
74
|
export declare class DestructorSemanticContext extends OutermostSemanticContextOfSubprogram {
|
|
75
75
|
readonly outer: SemanticContextContainingTypeMember;
|
|
76
76
|
protected readonly asContext: SemanticContext;
|
|
77
|
-
private readonly
|
|
78
|
-
private readonly
|
|
79
|
-
private readonly
|
|
77
|
+
private readonly analyzer;
|
|
78
|
+
private readonly node;
|
|
79
|
+
private readonly subprogramInfo;
|
|
80
80
|
constructor(analyzer: Analyzer, node: tree.DestructorDeclaration, outer: SemanticContextContainingTypeMember);
|
|
81
81
|
getContainingSubprogram(): SubprogramInfo;
|
|
82
82
|
}
|
|
@@ -85,9 +85,9 @@ export type VariableAccessorDeclaration = PackageVariableAccessorDeclaration | F
|
|
|
85
85
|
export declare class VariableAccessorSemanticContext extends OutermostSemanticContextOfSubprogram {
|
|
86
86
|
readonly outer: AccessorSemanticContextParent;
|
|
87
87
|
protected readonly asContext: SemanticContext;
|
|
88
|
-
private readonly
|
|
89
|
-
private readonly
|
|
90
|
-
private readonly
|
|
88
|
+
private readonly analyzer;
|
|
89
|
+
private readonly node;
|
|
90
|
+
private readonly subprogramInfo;
|
|
91
91
|
constructor(analyzer: Analyzer, node: VariableAccessorDeclaration, outer: AccessorSemanticContextParent);
|
|
92
92
|
getContainingSubprogram(): SubprogramInfo;
|
|
93
93
|
isStatic(): boolean;
|
|
@@ -95,9 +95,9 @@ export declare class VariableAccessorSemanticContext extends OutermostSemanticCo
|
|
|
95
95
|
export declare class IndexedElementAccessorSemanticContext extends OutermostSemanticContextOfSubprogram {
|
|
96
96
|
readonly outer: AccessorSemanticContextParent;
|
|
97
97
|
protected readonly asContext: SemanticContext;
|
|
98
|
-
private readonly
|
|
99
|
-
private readonly
|
|
100
|
-
private readonly
|
|
98
|
+
private readonly analyzer;
|
|
99
|
+
private readonly node;
|
|
100
|
+
private readonly subprogramInfo;
|
|
101
101
|
constructor(analyzer: Analyzer, node: IndexedElementAccessorDeclaration, outer: AccessorSemanticContextParent);
|
|
102
102
|
getContainingSubprogram(): SubprogramInfo;
|
|
103
103
|
isStatic(): boolean;
|
|
@@ -105,9 +105,9 @@ export declare class IndexedElementAccessorSemanticContext extends OutermostSema
|
|
|
105
105
|
export declare class FunctionLiteralSemanticContext extends OutermostSemanticContextOfSubprogram {
|
|
106
106
|
readonly outer: SemanticContext;
|
|
107
107
|
protected readonly asContext: SemanticContext;
|
|
108
|
-
private readonly
|
|
109
|
-
private readonly
|
|
110
|
-
private readonly
|
|
108
|
+
private readonly analyzer;
|
|
109
|
+
private readonly node;
|
|
110
|
+
private readonly subprogramInfo;
|
|
111
111
|
constructor(analyzer: Analyzer, node: RegularOrBlockFunctionLiteral, outer: SemanticContext);
|
|
112
112
|
getContainingSubprogram(): SubprogramInfo;
|
|
113
113
|
}
|
|
@@ -22,8 +22,8 @@ export declare class OutermostSemanticContextOfType extends SemanticContextWithP
|
|
|
22
22
|
readonly kind = "outermost-of-type";
|
|
23
23
|
readonly outer: SemanticContext;
|
|
24
24
|
protected readonly asContext: SemanticContext;
|
|
25
|
-
private readonly
|
|
26
|
-
private readonly
|
|
25
|
+
private readonly analyzer;
|
|
26
|
+
private readonly node;
|
|
27
27
|
constructor(analyzer: Analyzer, node: TypeDeclarationCreatingSemanticContext, outer: SemanticContext);
|
|
28
28
|
getContainingTypeOrTypeExtension(): TypeOrTypeExtension | undefined;
|
|
29
29
|
getContainingSubprogram(): SubprogramInfo | undefined;
|
|
@@ -40,7 +40,7 @@ export declare class TypeParametersOfTypeSemanticContext extends SemanticContext
|
|
|
40
40
|
readonly outer: OutermostSemanticContextOfType;
|
|
41
41
|
readonly node: TypeDeclarationWithTypeParameters;
|
|
42
42
|
protected readonly asContext: SemanticContext;
|
|
43
|
-
private readonly
|
|
43
|
+
private readonly typeParameterClause;
|
|
44
44
|
constructor(analyzer: Analyzer, node: TypeDeclarationWithTypeParameters, typeParameterClause: tree.TypeParameterClause, outer: OutermostSemanticContextOfType);
|
|
45
45
|
protected createMemberEntities(): readonly MemberOfSemanticContextValidatingNameConflicts[];
|
|
46
46
|
protected createMemberEntitiesForTypeLookup(): readonly MemberOfSemanticContextValidatingNameConflictsForTypeLookup[];
|
|
@@ -62,9 +62,9 @@ export declare class TypeBodySemanticContext extends TypeOrExtensionBodySemantic
|
|
|
62
62
|
readonly kind = "type-body";
|
|
63
63
|
readonly outer: TypeBodySemanticContextParent;
|
|
64
64
|
protected readonly asContext: SemanticContext;
|
|
65
|
-
private readonly
|
|
66
|
-
private readonly
|
|
67
|
-
private readonly
|
|
65
|
+
private readonly analyzer;
|
|
66
|
+
private readonly node;
|
|
67
|
+
private readonly memberLookup_;
|
|
68
68
|
protected get memberLookup(): TypeMemberLookup;
|
|
69
69
|
constructor(analyzer: Analyzer, node: TypeDeclarationWithMembersBody, outer: TypeBodySemanticContextParent);
|
|
70
70
|
private getTypeEntity;
|
|
@@ -73,9 +73,9 @@ export declare class TypeExtensionBodySemanticContext extends TypeOrExtensionBod
|
|
|
73
73
|
readonly kind = "type-extension-body";
|
|
74
74
|
readonly outer: SourceFileSemanticContext;
|
|
75
75
|
protected readonly asContext: SemanticContext;
|
|
76
|
-
private readonly
|
|
77
|
-
private readonly
|
|
78
|
-
private readonly
|
|
76
|
+
private readonly analyzer;
|
|
77
|
+
private readonly node;
|
|
78
|
+
private readonly memberLookup_;
|
|
79
79
|
protected get memberLookup(): TypeMemberLookup;
|
|
80
80
|
constructor(analyzer: Analyzer, node: tree.TypeExtensionDeclaration, outer: SourceFileSemanticContext);
|
|
81
81
|
getContainingTypeOrTypeExtension(): TypeOrTypeExtension | undefined;
|
package/build/types/api/Api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from '../analysis/AccessedFunction.js';
|
|
2
2
|
export * from '../analysis/AnalyzedTranslationPackage.js';
|
|
3
3
|
export * from '../analysis/Analyzer.js';
|
|
4
|
-
export { MatchResult,
|
|
4
|
+
export { MatchResult, MatchResultParameter } from '../analysis/ArgumentToParameterMatchResult.js';
|
|
5
5
|
export type { Meaning as AutotypeCallExpressionMeaning } from '../analysis/AutotypeCallExpressionMeaning.js';
|
|
6
6
|
export type { Meaning as BaseExpressionMeaning } from '../analysis/BaseExpressionMeaning.js';
|
|
7
7
|
export type { Meaning as CallExpressionMeaning } from '../analysis/CallExpressionMeaning.js';
|
|
@@ -11,7 +11,6 @@ export * from '../analysis/FindModifier.js';
|
|
|
11
11
|
export type { Meaning as IdentifierExpressionMeaning, ResolutionResult as IdentifierExpressionResolutionResult } from '../analysis/IdentifierExpressionMeaning.js';
|
|
12
12
|
export * from '../analysis/ImportedPackageNameTree.js';
|
|
13
13
|
export type { Meaning as IndexedAccessExpressionMeaning } from '../analysis/IndexedAccessExpressionMeaning.js';
|
|
14
|
-
export * from '../analysis/Localization.js';
|
|
15
14
|
export type { Meaning as MemberAccessExpressionMeaning, ResolutionResult as MemberAccessExpressionResolutionResult } from '../analysis/MemberAccessExpressionMeaning.js';
|
|
16
15
|
export * from '../analysis/NodeTypeUtils.js';
|
|
17
16
|
export type { Meaning as ObjectExpressionMeaning } from '../analysis/ObjectExpressionMeaning.js';
|
|
@@ -22,6 +21,7 @@ export * from '../analysis/SourcePackageDependencyGraph.js';
|
|
|
22
21
|
export * from '../analysis/SubstitutedFunction.js';
|
|
23
22
|
export type { Meaning as TagMeaning } from '../analysis/TagMeaning.js';
|
|
24
23
|
export * from '../analysis/Tags.js';
|
|
24
|
+
export * from '../analysis/Translation.js';
|
|
25
25
|
export * from '../analysis/TypeMemberLookup.js';
|
|
26
26
|
export * from '../analysis/Utils.js';
|
|
27
27
|
export * from '../analysis/Visitor.js';
|
|
@@ -6,8 +6,8 @@ export declare class CancelledError extends Error {
|
|
|
6
6
|
constructor(message?: string);
|
|
7
7
|
}
|
|
8
8
|
export declare class GenericCancellationToken implements CancellationToken {
|
|
9
|
-
private readonly
|
|
9
|
+
private readonly isCancellationRequested_;
|
|
10
10
|
get isCancellationRequested(): boolean;
|
|
11
|
-
constructor(
|
|
11
|
+
constructor(isCancellationRequested_: () => boolean);
|
|
12
12
|
throwIfCancellationRequested(): void;
|
|
13
13
|
}
|
|
@@ -2,9 +2,9 @@ export interface Displayable {
|
|
|
2
2
|
getDisplayText(): string;
|
|
3
3
|
}
|
|
4
4
|
export declare class DisplayableArray implements Displayable {
|
|
5
|
-
private readonly
|
|
6
|
-
private readonly
|
|
7
|
-
constructor(
|
|
5
|
+
private readonly array;
|
|
6
|
+
private readonly separator;
|
|
7
|
+
constructor(array: readonly DisplayableOrPrimitive[], separator: string);
|
|
8
8
|
getDisplayText(): string;
|
|
9
9
|
}
|
|
10
10
|
export type DisplayableOrPrimitive = Displayable | string | number | boolean;
|
|
@@ -9,6 +9,7 @@ export declare const enum HelperPhraseKind {
|
|
|
9
9
|
Variable = 6,
|
|
10
10
|
Overloads = 7,
|
|
11
11
|
EnumeratorMethodName = 8,
|
|
12
|
-
InvokeMethodName = 9
|
|
12
|
+
InvokeMethodName = 9,
|
|
13
|
+
EmptyUnionType = 10
|
|
13
14
|
}
|
|
14
15
|
export declare function getHelperPhrase(kind: HelperPhraseKind, locale: PackageLocale): string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare class PerformanceMeasurement {
|
|
2
2
|
static isEnabled: boolean;
|
|
3
|
-
private static readonly
|
|
4
|
-
private static readonly
|
|
3
|
+
private static readonly durations;
|
|
4
|
+
private static readonly measureInfoStack;
|
|
5
5
|
static markStart(label: string | number): void;
|
|
6
6
|
static markEnd(): void;
|
|
7
7
|
static getDurationMs(label: string | number): number;
|
|
@@ -4,6 +4,20 @@ export declare abstract class Query<T> implements Iterable<T> {
|
|
|
4
4
|
static fromNullable<T>(source: Iterable<T> | undefined): Query<T>;
|
|
5
5
|
static empty<T>(): Query<T>;
|
|
6
6
|
static ofSuccessors<T>(first: T, next: (t: T) => T | undefined): Query<T>;
|
|
7
|
+
static map<T, K>(source: Iterable<T>, fn: (t: T, i: number) => K): Query<K>;
|
|
8
|
+
static toMap<T, K, V>(source: Iterable<T>, keySelector: (t: T) => K, valueSelector: (t: T) => V): Map<K, V>;
|
|
9
|
+
static toMap<T>(source: Iterable<T>): T extends readonly [infer K, infer V] ? Map<K, V> : never;
|
|
10
|
+
static filter<T, K extends T>(source: Iterable<T>, fn: (t: T) => t is K): Query<K>;
|
|
11
|
+
static filter<T>(source: Iterable<T>, fn: (t: T) => boolean): Query<T>;
|
|
12
|
+
static mapAndFilter<T, K>(source: Iterable<T>, fn: (t: T) => K | undefined): Query<K>;
|
|
13
|
+
static zip<T, TRight, TResult>(source: Iterable<T>, other: Iterable<TRight>, fn: (left: T, right: TRight) => TResult): Query<TResult>;
|
|
14
|
+
static zipLongest<T, TRight, TResult>(source: Iterable<T>, other: Iterable<TRight>, fn: (left: T | undefined, right: TRight | undefined) => TResult): Query<TResult>;
|
|
15
|
+
static all<T>(source: Iterable<T>, fn: (t: T) => boolean): boolean;
|
|
16
|
+
static any<T>(source: Iterable<T>, fn: (t: T) => boolean): boolean;
|
|
17
|
+
static groupByToMap<T, K>(source: Iterable<T>, keySelector: (t: T) => K): Map<K, T[]>;
|
|
18
|
+
static groupByToMap<T, K, V>(source: Iterable<T>, keySelector: (t: T) => K, mapFn: (t: T) => V): Map<K, V[]>;
|
|
19
|
+
static maxByValue<T>(source: Iterable<T>, valueSelector: (t: T) => number): T | undefined;
|
|
20
|
+
static minByValue<T>(source: Iterable<T>, valueSelector: (t: T) => number): T | undefined;
|
|
7
21
|
abstract [Symbol.iterator](): Iterator<T, void, undefined>;
|
|
8
22
|
map<K>(fn: (t: T, i: number) => K): Query<K>;
|
|
9
23
|
forEach(fn: (t: T) => void): void;
|
|
@@ -28,6 +42,7 @@ export declare abstract class Query<T> implements Iterable<T> {
|
|
|
28
42
|
all(fn: (t: T) => boolean): boolean;
|
|
29
43
|
any(fn: (t: T) => boolean): boolean;
|
|
30
44
|
skipWhile(fn: (t: T) => boolean): Query<T>;
|
|
45
|
+
skip(count: number): Query<T>;
|
|
31
46
|
takeWhile(fn: (t: T) => boolean): Query<T>;
|
|
32
47
|
scan<TState, K>(initial: TState, fn: (state: TState, t: T) => K | undefined): Query<K>;
|
|
33
48
|
reduce<K>(initial: K, fn: (state: K, t: T) => K): K;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { CancellationToken } from './index.js';
|
|
2
2
|
export declare class ThrottledCancellationToken {
|
|
3
|
-
private readonly
|
|
4
|
-
private readonly
|
|
5
|
-
private readonly
|
|
6
|
-
private
|
|
7
|
-
private
|
|
8
|
-
constructor(
|
|
3
|
+
private readonly token;
|
|
4
|
+
private readonly throttleTimeMs;
|
|
5
|
+
private readonly checkThrottleTimeEveryN;
|
|
6
|
+
private checkNumber;
|
|
7
|
+
private lastTimeMs;
|
|
8
|
+
constructor(token: CancellationToken, throttleTimeMs: number, checkThrottleTimeEveryN: number);
|
|
9
9
|
isThrottleTimeOver(): boolean;
|
|
10
10
|
throwIfCancellationRequestedAndReset(): void;
|
|
11
11
|
throwIfCancellationRequestedAndResetAsync(): Promise<void>;
|
|
@@ -3,17 +3,14 @@ import { TypeWithMembersDeclaration } from '../analysis/NodeTypeUtils.js';
|
|
|
3
3
|
import { PackageEntity, TypeEntity } from '../entities/index.js';
|
|
4
4
|
import { SourceFile, SourcePackage } from '../project/index.js';
|
|
5
5
|
import * as tree from '../tree/index.js';
|
|
6
|
-
import { PackageLocale } from './PackageLocale.js';
|
|
7
6
|
export declare class TreeQuery {
|
|
8
|
-
static getSourceFileNode(node: tree.Node): tree.SourceFile;
|
|
9
7
|
static getSourceFile(node: tree.Node, analyzer: Analyzer): SourceFile;
|
|
10
8
|
static getSourcePackage(node: tree.Node, analyzer: Analyzer): SourcePackage;
|
|
11
9
|
static getPackageEntity(node: tree.Node, analyzer: Analyzer): PackageEntity;
|
|
12
|
-
static getLocale(node: tree.Node, analyzer: Analyzer): PackageLocale;
|
|
13
10
|
}
|
|
14
11
|
export declare class TypeMemberQuery {
|
|
15
|
-
static getContainingDeclaration(node: tree.TypeMemberDeclaration):
|
|
12
|
+
static getContainingDeclaration(node: tree.TypeMemberDeclaration): TypeWithMembersOrTypeExtensionDeclaration;
|
|
16
13
|
static getOutermostMemberBlock(node: tree.TypeMemberDeclaration): tree.TypeMemberDeclarationBlock;
|
|
17
14
|
static getContextualTypeEntity(node: tree.TypeMemberDeclaration, analyzer: Analyzer): TypeEntity | undefined;
|
|
18
15
|
}
|
|
19
|
-
export type
|
|
16
|
+
export type TypeWithMembersOrTypeExtensionDeclaration = TypeWithMembersDeclaration | tree.TypeExtensionDeclaration;
|