@artel/artc 0.6.25258 → 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-642CVYPB.js → chunk-7FERF2MU.js} +11 -11
- package/build/{chunk-QAOTQQD7.js → chunk-RIIOVQBM.js} +14371 -13456
- package/build/{chunk-B5Z42ZT6.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
|
@@ -5,35 +5,35 @@ import { TypeScriptLibrariesProvider } from '../ts-interop/TsLibrariesProvider.j
|
|
|
5
5
|
import { WorkspaceFileSystem } from './workspace/index.js';
|
|
6
6
|
export declare class LanguageServer {
|
|
7
7
|
static readonly DefaultCancellationTokenThrottleTime = 50;
|
|
8
|
-
private readonly
|
|
9
|
-
private readonly
|
|
10
|
-
private readonly
|
|
11
|
-
private
|
|
12
|
-
private
|
|
13
|
-
private
|
|
14
|
-
private
|
|
15
|
-
private
|
|
16
|
-
private
|
|
17
|
-
private
|
|
18
|
-
private
|
|
19
|
-
private readonly
|
|
20
|
-
private readonly
|
|
21
|
-
private
|
|
22
|
-
private
|
|
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
|
|
32
|
-
private readonly
|
|
33
|
-
private readonly
|
|
34
|
-
private readonly
|
|
35
|
-
private readonly
|
|
36
|
-
private readonly
|
|
8
|
+
private readonly connection;
|
|
9
|
+
private readonly config;
|
|
10
|
+
private readonly disposables;
|
|
11
|
+
private clientCapabilities;
|
|
12
|
+
private workspace;
|
|
13
|
+
private isInitialized;
|
|
14
|
+
private enableRequestCancellation;
|
|
15
|
+
private sendRefreshDiagnosticsRequestDebounced;
|
|
16
|
+
private workspaceDiagnosticsPartialResultToken;
|
|
17
|
+
private fileSystemUpdateNotificationsPublisher;
|
|
18
|
+
private manuallyUpdatedFileSystemTreeProvider;
|
|
19
|
+
private readonly sourceFileItemsService;
|
|
20
|
+
private readonly workspaceItemsService;
|
|
21
|
+
private definitionService;
|
|
22
|
+
private sourceGenerationService;
|
|
23
|
+
private readonly referencesService;
|
|
24
|
+
private readonly documentHighlightService;
|
|
25
|
+
private readonly renameService;
|
|
26
|
+
private readonly hoverService;
|
|
27
|
+
private readonly evaluatableExpressionService;
|
|
28
|
+
private readonly completionService;
|
|
29
|
+
private readonly semanticTokensService;
|
|
30
|
+
private readonly semanticTokenTypeIndexBySemanticTokenKind;
|
|
31
|
+
private readonly protocolSemanticTokenModifierFlagByIndex;
|
|
32
|
+
private readonly signatureHelpService;
|
|
33
|
+
private readonly fileSystemTreeDisplayService;
|
|
34
|
+
private readonly selectionRangeService;
|
|
35
|
+
private readonly assignFieldService;
|
|
36
|
+
private readonly codeActionsService;
|
|
37
37
|
constructor(config: LanguageServerConfig);
|
|
38
38
|
start(): void;
|
|
39
39
|
dispose(): void;
|
|
@@ -60,7 +60,7 @@ export declare class LanguageServer {
|
|
|
60
60
|
private convertSourceFileItemKind;
|
|
61
61
|
private convertDiagnostic;
|
|
62
62
|
private onExecuteCommand;
|
|
63
|
-
private
|
|
63
|
+
private onAssignField;
|
|
64
64
|
private convertSourceFileEdit;
|
|
65
65
|
private convertSourceFileEditsToWorkspaceEdit;
|
|
66
66
|
private onGetNodeRange;
|
|
@@ -127,8 +127,8 @@ export interface ArtelServerInitializationOptions {
|
|
|
127
127
|
standardPackagesUri?: ls.URI;
|
|
128
128
|
}
|
|
129
129
|
export declare class ClientCancellationToken implements CancellationToken {
|
|
130
|
-
private readonly
|
|
130
|
+
private readonly token;
|
|
131
131
|
get isCancellationRequested(): boolean;
|
|
132
|
-
constructor(
|
|
132
|
+
constructor(token: ls.CancellationToken);
|
|
133
133
|
throwIfCancellationRequested(): void;
|
|
134
134
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { AccessedFunction } from '../analysis/AccessedFunction.js';
|
|
2
|
-
import {
|
|
2
|
+
import { MatchResultParameter } from '../analysis/ArgumentToParameterMatchResult.js';
|
|
3
3
|
import { PackageNameTreeNode } from '../analysis/ImportedPackageNameTree.js';
|
|
4
4
|
import { Analyzer } from '../analysis/index.js';
|
|
5
|
-
import { Translation } from '../analysis/Localization.js';
|
|
6
5
|
import { IndexedElementAccessorDeclaration } from '../analysis/NodeTypeUtils.js';
|
|
6
|
+
import { Translation } from '../analysis/Translation.js';
|
|
7
7
|
import { AccessKind, ReadonlyNonEmptyArray } from '../common/index.js';
|
|
8
8
|
import { AliasTypeEntity, Entity, FunctionEntity, FunctionTypeEntity, PackageEntity, StructuredTypeEntity, TypeParameterEntity, VariableEntity, VariantTypeEntity } from '../entities/index.js';
|
|
9
9
|
import * as tree from '../tree/index.js';
|
|
@@ -56,7 +56,7 @@ export declare class ReferenceNodeSemanticInfo {
|
|
|
56
56
|
get firstBetterTargetWithFallback(): ReferenceTarget;
|
|
57
57
|
constructor(targets: ReadonlyNonEmptyArray<ReferenceTarget>, isAmbiguous: boolean, betterTargets?: ReadonlyNonEmptyArray<ReferenceTarget> | undefined);
|
|
58
58
|
}
|
|
59
|
-
export type ReferenceTarget = EntityReferenceTarget | FieldReferenceTarget |
|
|
59
|
+
export type ReferenceTarget = EntityReferenceTarget | FieldReferenceTarget | TypeParameterReferenceTarget | ConstructorReferenceTarget | OperatorReferenceTarget | DereferenceOperatorReferenceTarget | AccessedFunctionReferenceTarget | IndexerReferenceTarget | MatchResultParameterReferenceTarget | PackageReferenceTarget | PackageNameTreeNodeReferenceTarget | TypeContextReferenceTarget;
|
|
60
60
|
export declare class EntityReferenceTarget {
|
|
61
61
|
readonly entity: Entity;
|
|
62
62
|
readonly accessKind: AccessKind;
|
|
@@ -71,11 +71,11 @@ export declare class FieldReferenceTarget {
|
|
|
71
71
|
readonly kind = "field";
|
|
72
72
|
constructor(field: types.Field, accessKind: AccessKind, narrowedType: types.Type | undefined);
|
|
73
73
|
}
|
|
74
|
-
export declare class
|
|
75
|
-
readonly parameter: types.
|
|
74
|
+
export declare class TypeParameterReferenceTarget {
|
|
75
|
+
readonly parameter: types.Parameter;
|
|
76
76
|
readonly accessKind: AccessKind;
|
|
77
77
|
readonly kind = "type-value-parameter";
|
|
78
|
-
constructor(parameter: types.
|
|
78
|
+
constructor(parameter: types.Parameter, accessKind: AccessKind);
|
|
79
79
|
}
|
|
80
80
|
export declare class ConstructorReferenceTarget {
|
|
81
81
|
readonly constructor_: types.Constructor;
|
|
@@ -98,11 +98,11 @@ export declare class OperatorReferenceTarget {
|
|
|
98
98
|
readonly kind = "operator";
|
|
99
99
|
constructor(operator: types.Operator);
|
|
100
100
|
}
|
|
101
|
-
export declare class
|
|
102
|
-
readonly parameter:
|
|
101
|
+
export declare class MatchResultParameterReferenceTarget {
|
|
102
|
+
readonly parameter: MatchResultParameter;
|
|
103
103
|
readonly accessKind: AccessKind;
|
|
104
104
|
readonly kind = "match-result-value-parameter";
|
|
105
|
-
constructor(parameter:
|
|
105
|
+
constructor(parameter: MatchResultParameter, accessKind: AccessKind);
|
|
106
106
|
}
|
|
107
107
|
export declare class PackageReferenceTarget {
|
|
108
108
|
readonly package_: PackageEntity;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Compilation } from '../project/index.js';
|
|
2
2
|
import { Item } from './SourceFileItemsService.js';
|
|
3
3
|
export declare class WorkspaceItemsService {
|
|
4
|
-
private readonly
|
|
4
|
+
private readonly sourceFileItemsService;
|
|
5
5
|
getItems(compilations: readonly Compilation[]): Item[];
|
|
6
6
|
}
|
|
@@ -2,7 +2,7 @@ import { Analyzer } from '../analysis/index.js';
|
|
|
2
2
|
import { CancellationToken, Range } from '../common/index.js';
|
|
3
3
|
import { SourceFile } from '../project/index.js';
|
|
4
4
|
export declare class RenameService {
|
|
5
|
-
private readonly
|
|
5
|
+
private readonly referencesService;
|
|
6
6
|
prepareRename(analyzer: Analyzer, sourceFile: SourceFile, offset: number): Range | undefined;
|
|
7
7
|
rename(analyzer: Analyzer, sourceFile: SourceFile, offset: number, newText: string, cancellationToken: CancellationToken | undefined): Promise<Rename[]>;
|
|
8
8
|
private canRename;
|
|
@@ -15,7 +15,7 @@ export declare class SemanticToken {
|
|
|
15
15
|
constructor(range: Range, kind: SemanticTokenKind, modifiers: SemanticTokenModifiers);
|
|
16
16
|
}
|
|
17
17
|
export declare class SemanticTokenModifiers {
|
|
18
|
-
private
|
|
18
|
+
private flags_;
|
|
19
19
|
get flags(): number;
|
|
20
20
|
makeConst(): this;
|
|
21
21
|
makeDeclaration(): this;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Range } from '../common/index.js';
|
|
2
2
|
import { SourceFile } from '../project/index.js';
|
|
3
3
|
export declare class SourceFileItemsService {
|
|
4
|
-
private
|
|
4
|
+
private sourceFile;
|
|
5
5
|
getItems(sourceFile: SourceFile): Item[];
|
|
6
6
|
private get locale();
|
|
7
7
|
private get dialect();
|
|
@@ -3,7 +3,7 @@ import { Analyzer } from '../analysis/index.js';
|
|
|
3
3
|
import { Range } from '../common/index.js';
|
|
4
4
|
import { SourceFile } from '../project/index.js';
|
|
5
5
|
export declare class TranslationService {
|
|
6
|
-
private readonly
|
|
6
|
+
private readonly translationCache;
|
|
7
7
|
constructor();
|
|
8
8
|
translateSourceFile(analyzer: Analyzer, sourceFile: SourceFile, localeText: string): Translation;
|
|
9
9
|
clearTranslationCache(): void;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Analyzer } from '../../analysis/index.js';
|
|
2
2
|
import { SourceFile } from '../../project/index.js';
|
|
3
3
|
import { SignatureHelp } from './SignatureHelpService.js';
|
|
4
|
-
export declare class
|
|
5
|
-
private readonly
|
|
6
|
-
private readonly
|
|
7
|
-
private readonly
|
|
8
|
-
private readonly
|
|
4
|
+
export declare class ParametersSignatureHelpProvider {
|
|
5
|
+
private readonly signatureContext_;
|
|
6
|
+
private readonly analyzer;
|
|
7
|
+
private readonly sourceFile;
|
|
8
|
+
private readonly offset;
|
|
9
9
|
private get signatureContext();
|
|
10
10
|
constructor(analyzer: Analyzer, sourceFile: SourceFile, offset: number);
|
|
11
11
|
provideSignatureHelp(): SignatureHelp | undefined;
|
|
12
|
-
private
|
|
12
|
+
private getNodeWithArgumentsInfoAtOffset;
|
|
13
13
|
private getArgumentIndexInList;
|
|
14
14
|
private getSignatureDisplayParts;
|
|
15
15
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { AccessedFunction } from '../../analysis/AccessedFunction.js';
|
|
2
2
|
import { Analyzer } from '../../analysis/index.js';
|
|
3
3
|
import { Name } from '../../common/index.js';
|
|
4
|
-
import {
|
|
4
|
+
import { ParameterEntity } from '../../entities/index.js';
|
|
5
5
|
import * as tree from '../../tree/index.js';
|
|
6
6
|
import * as types from '../../types/index.js';
|
|
7
|
-
export declare class
|
|
8
|
-
static
|
|
9
|
-
static
|
|
10
|
-
static
|
|
11
|
-
static
|
|
12
|
-
private static
|
|
7
|
+
export declare class ArgumentFactory {
|
|
8
|
+
static createArgumentsOfCallExpression(node: tree.CallExpression): Argument[];
|
|
9
|
+
static createArgumentsOfAutotypeCallExpression(node: tree.AutotypeCallExpression): Argument[];
|
|
10
|
+
static createArgumentsOfIndexedAccessExpression(node: tree.IndexedAccessExpression): Argument[];
|
|
11
|
+
static createArgumentsOfTag(node: tree.Tag): Argument[];
|
|
12
|
+
private static createArgumentsFromList;
|
|
13
13
|
}
|
|
14
14
|
export declare class SignatureForNode {
|
|
15
|
-
static getSignaturesForNode(analyzer: Analyzer, node:
|
|
15
|
+
static getSignaturesForNode(analyzer: Analyzer, node: NodeWithArguments): SignaturesWithSingleSuitable | undefined;
|
|
16
16
|
static getSignaturesForCallExpression(analyzer: Analyzer, node: tree.CallExpression): SignaturesWithSingleSuitable | undefined;
|
|
17
17
|
static getSignaturesForAutotypeCallExpression(analyzer: Analyzer, node: tree.AutotypeCallExpression): SignaturesWithSingleSuitable | undefined;
|
|
18
18
|
static getSignaturesForIndexedAccessExpression(analyzer: Analyzer, node: tree.IndexedAccessExpression): SignaturesWithSingleSuitable | undefined;
|
|
@@ -20,21 +20,21 @@ export declare class SignatureForNode {
|
|
|
20
20
|
private static getSignaturesOfConstructors;
|
|
21
21
|
}
|
|
22
22
|
export declare class SimplifiedArgumentToParameterMatcher {
|
|
23
|
-
static match(analyzer: Analyzer, arguments_: readonly
|
|
23
|
+
static match(analyzer: Analyzer, arguments_: readonly Argument[], signature: Signature): SimplifiedArgumentToParameterMatchResult;
|
|
24
24
|
}
|
|
25
25
|
export declare class SimplifiedArgumentToParameterMatchResult {
|
|
26
|
-
readonly arguments: readonly
|
|
27
|
-
readonly parameterByArgumentIndex: ReadonlyArray<
|
|
28
|
-
private readonly
|
|
29
|
-
get parameterByArgument(): ReadonlyMap<
|
|
30
|
-
constructor(arguments_: readonly
|
|
26
|
+
readonly arguments: readonly Argument[];
|
|
27
|
+
readonly parameterByArgumentIndex: ReadonlyArray<Parameter | undefined>;
|
|
28
|
+
private readonly parameterByArgument_;
|
|
29
|
+
get parameterByArgument(): ReadonlyMap<Argument, Parameter>;
|
|
30
|
+
constructor(arguments_: readonly Argument[], parameterByArgumentIndex: ReadonlyArray<Parameter | undefined>);
|
|
31
31
|
}
|
|
32
32
|
export declare class SimplifiedOverloadResolver {
|
|
33
|
-
static isSuitableSignature(analyzer: Analyzer, matchedSignature: MatchedSignature,
|
|
34
|
-
static getMostSuitableSignatureIndex(analyzer: Analyzer, matchedSignatures: readonly MatchedSignature[],
|
|
33
|
+
static isSuitableSignature(analyzer: Analyzer, matchedSignature: MatchedSignature, args: readonly Argument[]): boolean;
|
|
34
|
+
static getMostSuitableSignatureIndex(analyzer: Analyzer, matchedSignatures: readonly MatchedSignature[], args: readonly Argument[]): number;
|
|
35
35
|
}
|
|
36
|
-
export type
|
|
37
|
-
export declare class
|
|
36
|
+
export type NodeWithArguments = tree.CallExpression | tree.AutotypeCallExpression | tree.IndexedAccessExpression | tree.Tag;
|
|
37
|
+
export declare class Argument {
|
|
38
38
|
readonly name: string | undefined;
|
|
39
39
|
readonly expression: tree.Expression | undefined;
|
|
40
40
|
constructor(name: string | undefined, expression: tree.Expression | undefined);
|
|
@@ -53,50 +53,50 @@ export type Signature = AccessedFunctionSignature | OperatorSignature | Function
|
|
|
53
53
|
export declare class AccessedFunctionSignature implements ISignature {
|
|
54
54
|
readonly kind = "accessed-function";
|
|
55
55
|
readonly func: AccessedFunction;
|
|
56
|
-
private readonly
|
|
56
|
+
private readonly parameters;
|
|
57
57
|
constructor(func: AccessedFunction);
|
|
58
|
-
|
|
58
|
+
getParameters(): readonly Parameter[];
|
|
59
59
|
}
|
|
60
60
|
export declare class OperatorSignature implements ISignature {
|
|
61
61
|
readonly kind = "operator";
|
|
62
62
|
readonly operator: types.Operator;
|
|
63
|
-
private readonly
|
|
63
|
+
private readonly parameters;
|
|
64
64
|
constructor(operator: types.Operator);
|
|
65
|
-
|
|
65
|
+
getParameters(): readonly Parameter[];
|
|
66
66
|
}
|
|
67
67
|
export declare class FunctionTypeSignature implements ISignature {
|
|
68
68
|
readonly kind = "function-type";
|
|
69
69
|
readonly functionType: types.FunctionType;
|
|
70
|
-
private readonly
|
|
70
|
+
private readonly parameters;
|
|
71
71
|
constructor(functionType: types.FunctionType);
|
|
72
|
-
|
|
72
|
+
getParameters(): readonly Parameter[];
|
|
73
73
|
}
|
|
74
74
|
export declare class ConstructorSignature implements ISignature {
|
|
75
75
|
readonly kind = "constructor";
|
|
76
76
|
readonly constructor_: types.Constructor;
|
|
77
|
-
private readonly
|
|
77
|
+
private readonly parameters;
|
|
78
78
|
constructor(constructor_: types.Constructor);
|
|
79
|
-
|
|
79
|
+
getParameters(): readonly Parameter[];
|
|
80
80
|
}
|
|
81
81
|
export declare class IndexerSignature implements ISignature {
|
|
82
82
|
readonly kind = "indexer";
|
|
83
83
|
readonly indexer: types.Indexer;
|
|
84
|
-
private readonly
|
|
84
|
+
private readonly parameters;
|
|
85
85
|
constructor(indexer: types.Indexer);
|
|
86
|
-
|
|
86
|
+
getParameters(): readonly Parameter[];
|
|
87
87
|
}
|
|
88
88
|
interface ISignature {
|
|
89
|
-
|
|
89
|
+
getParameters(): readonly Parameter[];
|
|
90
90
|
}
|
|
91
|
-
export type
|
|
92
|
-
export declare class
|
|
91
|
+
export type Parameter = UniversalParameter;
|
|
92
|
+
export declare class UniversalParameter implements IParameter {
|
|
93
93
|
readonly type: types.Type;
|
|
94
|
-
readonly entity:
|
|
95
|
-
constructor(type: types.Type, entity:
|
|
94
|
+
readonly entity: ParameterEntity;
|
|
95
|
+
constructor(type: types.Type, entity: ParameterEntity);
|
|
96
96
|
getName(): Name;
|
|
97
97
|
getType(): types.Type;
|
|
98
98
|
}
|
|
99
|
-
interface
|
|
99
|
+
interface IParameter {
|
|
100
100
|
getName(): Name;
|
|
101
101
|
getType(): types.Type;
|
|
102
102
|
}
|
|
@@ -2,10 +2,10 @@ import { Analyzer } from '../../analysis/index.js';
|
|
|
2
2
|
import { SourceFile } from '../../project/index.js';
|
|
3
3
|
import { SignatureHelp } from './SignatureHelpService.js';
|
|
4
4
|
export declare class TypeParameterSignatureHelpProvider {
|
|
5
|
-
private readonly
|
|
6
|
-
private readonly
|
|
7
|
-
private readonly
|
|
8
|
-
private readonly
|
|
5
|
+
private readonly signatureContext_;
|
|
6
|
+
private readonly analyzer;
|
|
7
|
+
private readonly sourceFile;
|
|
8
|
+
private readonly offset;
|
|
9
9
|
private get signatureContext();
|
|
10
10
|
constructor(analyzer: Analyzer, sourceFile: SourceFile, offset: number);
|
|
11
11
|
provideSignatureHelp(): SignatureHelp | undefined;
|
|
@@ -2,8 +2,8 @@ import { Analyzer } from '../../analysis/Analyzer.js';
|
|
|
2
2
|
import { PackageEntity } from '../../entities/PackageEntity.js';
|
|
3
3
|
import * as tree from '../../tree/index.js';
|
|
4
4
|
export declare class EntityToSyntax {
|
|
5
|
-
private readonly
|
|
6
|
-
private readonly
|
|
5
|
+
private readonly analyzer;
|
|
6
|
+
private readonly entity;
|
|
7
7
|
constructor(analyzer: Analyzer, entity: PackageEntity);
|
|
8
8
|
convert(): tree.SourceFile;
|
|
9
9
|
private convertPackage;
|
|
@@ -28,8 +28,8 @@ export declare class EntityToSyntax {
|
|
|
28
28
|
private createFunctionTypeDeclarationBody;
|
|
29
29
|
private convertTypeParameters;
|
|
30
30
|
private convertTypeParameter;
|
|
31
|
-
private
|
|
32
|
-
private
|
|
31
|
+
private convertParameters;
|
|
32
|
+
private convertParameter;
|
|
33
33
|
private createHidingModifier;
|
|
34
34
|
private convertTags;
|
|
35
35
|
private getEntityName;
|
|
@@ -7,12 +7,12 @@ import { TypeScriptLibrariesProvider } from '../../ts-interop/TsLibrariesProvide
|
|
|
7
7
|
import { SourceLocation } from '../Types.js';
|
|
8
8
|
import { CompilationController, ReadonlyClientTrackedSourceFiles } from '../workspace/index.js';
|
|
9
9
|
export declare class SourceGenerationService extends ObservableObject {
|
|
10
|
-
private readonly
|
|
11
|
-
private readonly
|
|
12
|
-
private readonly
|
|
13
|
-
private readonly
|
|
10
|
+
private readonly trackedSourceFiles;
|
|
11
|
+
private readonly tsLibrariesProvider;
|
|
12
|
+
private readonly standardPackageContentsProviders;
|
|
13
|
+
private readonly generatedPackageStates;
|
|
14
14
|
get compilationControllers(): readonly CompilationController[];
|
|
15
|
-
constructor(
|
|
15
|
+
constructor(trackedSourceFiles: ReadonlyClientTrackedSourceFiles, tsLibrariesProvider: TypeScriptLibrariesProvider, standardPackageContentsProviders: (cancellationToken: CancellationToken | undefined) => Promise<readonly PackageContent[] | undefined>);
|
|
16
16
|
getDefinitionInGeneratedCode(analyzer: Analyzer, entity: Entity, cancellationToken: CancellationToken | undefined): Promise<SourceLocation[] | undefined>;
|
|
17
17
|
entityDefinitionRequiresSourceGeneration(entity: Entity): boolean;
|
|
18
18
|
protected onOpenedSourceFilesChanged(): void;
|
|
@@ -9,24 +9,24 @@ import { ReadonlyClientTrackedSourceFiles } from './ClientTrackedSourceFiles.js'
|
|
|
9
9
|
export declare class CompilationController extends ObservableObject {
|
|
10
10
|
readonly mainCompilationReloadIndicator: Indicator;
|
|
11
11
|
readonly configurationControllersUpdateIndictor: Indicator;
|
|
12
|
-
private readonly
|
|
13
|
-
private readonly
|
|
12
|
+
private readonly mainAnalyzerChangedIndicator;
|
|
13
|
+
private readonly fileSystemTree;
|
|
14
14
|
readonly config: CompilationControllerConfig;
|
|
15
15
|
isConfigurationsProcessingEnabled: boolean;
|
|
16
16
|
isDiagnosticsCollectionInBackgroundEnabled: boolean;
|
|
17
|
-
private readonly
|
|
18
|
-
private
|
|
19
|
-
private
|
|
20
|
-
private
|
|
21
|
-
private
|
|
22
|
-
private readonly
|
|
23
|
-
private
|
|
24
|
-
private
|
|
25
|
-
private
|
|
26
|
-
private
|
|
27
|
-
private
|
|
28
|
-
private
|
|
29
|
-
private
|
|
17
|
+
private readonly rootDirectory;
|
|
18
|
+
private configurationControllerByPackageUri_;
|
|
19
|
+
private mainCompilationState_?;
|
|
20
|
+
private previousCompilationLoadResult;
|
|
21
|
+
private sourceFilesForWhichDiagnosticsWereReported;
|
|
22
|
+
private readonly checkedConfigurationVersionByPackageUri;
|
|
23
|
+
private packageConfigurationsVersion;
|
|
24
|
+
private packageConfigurationsVersionDuringCompilationLoad;
|
|
25
|
+
private tsInteropInputs;
|
|
26
|
+
private tsInteropInputsKey;
|
|
27
|
+
private tsProgramLoaderInputs;
|
|
28
|
+
private state_;
|
|
29
|
+
private configurationsOfPackagesOutsideProject_;
|
|
30
30
|
get uri(): Uri;
|
|
31
31
|
get mainCompilationState(): ReadonlyCompilationState | undefined;
|
|
32
32
|
get configurationControllerByPackageUri(): ReadonlyMap<string, ConfigurationController>;
|
|
@@ -88,7 +88,7 @@ export declare class ChangedPackageConfiguration {
|
|
|
88
88
|
export declare class ReadonlyCompilationState {
|
|
89
89
|
readonly analyzer: Analyzer;
|
|
90
90
|
readonly version: number;
|
|
91
|
-
private
|
|
91
|
+
private diagnosticsCollectionSummaryByUri;
|
|
92
92
|
constructor(analyzer: Analyzer, version: number);
|
|
93
93
|
collectSourceFileDiagnosticsWithHighPriority(sourceFile: SourceFile, cancellationToken: CancellationToken | undefined): Promise<readonly Diagnostic[]>;
|
|
94
94
|
collectSourceFileDiagnosticsWithLowPriority(sourceFile: SourceFile, cancellationToken: CancellationToken | undefined): Promise<readonly Diagnostic[]>;
|
|
@@ -104,11 +104,11 @@ declare class ConfigurationController extends ObservableObject {
|
|
|
104
104
|
readonly packageUri: Uri;
|
|
105
105
|
readonly processingIndicator: Indicator;
|
|
106
106
|
readonly rootDirectory: fsTree.Directory;
|
|
107
|
-
private readonly
|
|
108
|
-
private
|
|
109
|
-
private
|
|
110
|
-
private
|
|
111
|
-
private
|
|
107
|
+
private readonly mainCompilationController;
|
|
108
|
+
private jsonConfigurationFile;
|
|
109
|
+
private convertedJsonConfigurationFileVersion;
|
|
110
|
+
private convertedConfiguration_;
|
|
111
|
+
private convertedConfigurationVersion_;
|
|
112
112
|
get convertedConfiguration(): ConvertedConfiguration | undefined;
|
|
113
113
|
get convertedConfigurationVersion(): number;
|
|
114
114
|
get hasConvertedConfiguration(): boolean;
|
|
@@ -118,7 +118,7 @@ declare class ConfigurationController extends ObservableObject {
|
|
|
118
118
|
protected processConfiguration(): Promise<void>;
|
|
119
119
|
}
|
|
120
120
|
export declare class TsInteropInputsCache {
|
|
121
|
-
private readonly
|
|
121
|
+
private readonly inputsByKey;
|
|
122
122
|
getTsInteropInputs(tsProgramLoaderInputs: TsProgramLoaderInputs, librariesProvider: TypeScriptLibrariesProvider): {
|
|
123
123
|
inputs: TsInteropInputs;
|
|
124
124
|
key: string;
|
|
@@ -7,22 +7,22 @@ import type { WorkspaceFileSystem } from './WorkspaceFileSystem.js';
|
|
|
7
7
|
export declare class FileSystemTreeProviderBasedOnWatchedFileSystem extends ObservableObject implements FileSystemTreeProvider {
|
|
8
8
|
readonly fileSystemTree: fsTree.FileSystemTree;
|
|
9
9
|
readonly loadedWorkspaceFolderByUri: ObservableMap<string, fsTree.Directory>;
|
|
10
|
-
private readonly
|
|
11
|
-
private readonly
|
|
12
|
-
private readonly
|
|
13
|
-
private
|
|
14
|
-
private
|
|
15
|
-
private
|
|
16
|
-
private
|
|
10
|
+
private readonly fileSystem;
|
|
11
|
+
private readonly notificationsPublisher;
|
|
12
|
+
private readonly listener;
|
|
13
|
+
private workspaceFolderUris;
|
|
14
|
+
private trackedSourceFiles;
|
|
15
|
+
private isInitialized;
|
|
16
|
+
private lastCheckedWorkspaceFolderUris;
|
|
17
17
|
/**
|
|
18
18
|
* Очередь используется для обработки запросов, изменяющих дерево файловой системы.
|
|
19
19
|
* Очередь позволяет избежать конкурентного редактирования, а также сохранить порядок обработки.
|
|
20
20
|
*/
|
|
21
|
-
private readonly
|
|
22
|
-
private readonly
|
|
23
|
-
private readonly
|
|
24
|
-
private readonly
|
|
25
|
-
private readonly
|
|
21
|
+
private readonly taskQueue;
|
|
22
|
+
private readonly namesOfDirectoriesToIgnore;
|
|
23
|
+
private readonly additionalUrisOfDirectoriesToLoad;
|
|
24
|
+
private readonly lastCheckedTrackedSourceFileInfoVersionByUri;
|
|
25
|
+
private readonly loadedDirectoryUris;
|
|
26
26
|
constructor(fileSystem: WorkspaceFileSystem, notificationsPublisher: FileSystemUpdateNotificationsPublisher, namesOfDirectoriesToIgnore?: string[], additionalUrisOfDirectoriesToLoad?: readonly Uri[]);
|
|
27
27
|
initialize(workspaceFolderUris: ObservableArray<Uri>, trackedSourceFiles: ReadonlyClientTrackedSourceFiles): void;
|
|
28
28
|
waitLoaded(cancellationToken: CancellationToken | undefined): Promise<void>;
|
|
@@ -51,7 +51,7 @@ export interface FileSystemUpdateNotificationsPublisher {
|
|
|
51
51
|
removeListener(listener: FileSystemUpdateNotificationsListener): void;
|
|
52
52
|
}
|
|
53
53
|
export declare class SimpleFileSystemUpdateNotificationsPublisher implements FileSystemUpdateNotificationsPublisher {
|
|
54
|
-
private readonly
|
|
54
|
+
private readonly listeners;
|
|
55
55
|
publish(notifications: readonly FileSystemUpdateNotification[]): void;
|
|
56
56
|
addListener(listener: FileSystemUpdateNotificationsListener): void;
|
|
57
57
|
removeListener(listener: FileSystemUpdateNotificationsListener): void;
|
|
@@ -7,10 +7,10 @@ import { FileSystemTreeProvider } from './WorkspaceFiles.js';
|
|
|
7
7
|
export declare class ManuallyUpdatedFileSystemTreeProvider extends ObservableObject implements FileSystemTreeProvider {
|
|
8
8
|
readonly fileSystemTree: fsTree.FileSystemTree;
|
|
9
9
|
readonly loadedWorkspaceFolderByUri: ObservableMap<string, fsTree.Directory>;
|
|
10
|
-
private
|
|
11
|
-
private
|
|
12
|
-
private readonly
|
|
13
|
-
private readonly
|
|
10
|
+
private workspaceFolderUris;
|
|
11
|
+
private trackedSourceFiles;
|
|
12
|
+
private readonly lastCheckedTrackedSourceFileInfoByUri;
|
|
13
|
+
private readonly manuallyCreatedSourceFileTextByUri;
|
|
14
14
|
initialize(workspaceFolderUris: ObservableArray<Uri>, trackedSourceFiles: ReadonlyClientTrackedSourceFiles): void;
|
|
15
15
|
waitLoaded(_cancellationToken: CancellationToken | undefined): Promise<void>;
|
|
16
16
|
dispose(): void;
|
|
@@ -10,13 +10,13 @@ import { CompilationController, DiagnosticsCollectedInBackgroundHandler, RawPack
|
|
|
10
10
|
import { FileSystemTreeProvider } from './WorkspaceFiles.js';
|
|
11
11
|
export declare class Workspace extends ObservableObject {
|
|
12
12
|
isReadyToAcceptWorkspaceDiagnostics: boolean;
|
|
13
|
-
private readonly
|
|
14
|
-
private readonly
|
|
15
|
-
private readonly
|
|
16
|
-
private
|
|
17
|
-
private readonly
|
|
18
|
-
private
|
|
19
|
-
private readonly
|
|
13
|
+
private readonly config;
|
|
14
|
+
private readonly compilationControllers_;
|
|
15
|
+
private readonly controllersWithOpenedFiles;
|
|
16
|
+
private atLeastOneFileOfCompilationHasBeenOpened;
|
|
17
|
+
private readonly files;
|
|
18
|
+
private readonly standardPackageContents;
|
|
19
|
+
private readonly tsInteropInputsCache;
|
|
20
20
|
get compilationControllers(): readonly CompilationController[];
|
|
21
21
|
get trackedSourceFiles(): ReadonlyClientTrackedSourceFiles;
|
|
22
22
|
get loadedWorkspaceFolderByUri(): ObservableMap<string, fsTree.Directory>;
|
|
@@ -6,7 +6,7 @@ export declare class WorkspaceFiles extends ObservableObject {
|
|
|
6
6
|
readonly trackedSourceFiles: ClientTrackedSourceFiles;
|
|
7
7
|
readonly workspaceFolderUris: ObservableArray<Uri>;
|
|
8
8
|
readonly workspaceFolderWithArtelProjectByUri: ObservableMap<string, fsTree.Directory>;
|
|
9
|
-
private readonly
|
|
9
|
+
private readonly fileSystemTreeProvider;
|
|
10
10
|
get fileSystemTree(): fsTree.ReadonlyFileSystemTree;
|
|
11
11
|
get isMissingConfigurationDirectoryAllowed(): boolean;
|
|
12
12
|
get loadedWorkspaceFolderByUri(): ObservableMap<string, fsTree.Directory>;
|
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
import { Range } from '../common/index.js';
|
|
2
|
-
import { Node } from './Nodes.js';
|
|
1
|
+
import { PackageDialect, PackageLocale, Range } from '../common/index.js';
|
|
2
|
+
import { Node, SourceFile } from './Nodes.js';
|
|
3
3
|
import { Token } from './Token.js';
|
|
4
4
|
export declare abstract class BaseNode {
|
|
5
5
|
protected static readonly emptyChildren_: [];
|
|
6
6
|
abstract readonly children: readonly (Node | undefined)[];
|
|
7
7
|
protected parent_: BaseNode | undefined;
|
|
8
|
+
protected sourceFile_: SourceFile | undefined;
|
|
8
9
|
protected rangeWithTrivia_: Range | undefined;
|
|
9
10
|
protected rangeWithoutTrivia_: Range | undefined;
|
|
10
11
|
protected abstract thisAsNode: Node;
|
|
11
|
-
constructor(rangeWithTrivia
|
|
12
|
+
constructor(rangeWithTrivia: Range | undefined);
|
|
12
13
|
get parent(): Node | undefined;
|
|
14
|
+
get sourceFile(): SourceFile;
|
|
15
|
+
get locale(): PackageLocale;
|
|
16
|
+
get dialect(): PackageDialect;
|
|
13
17
|
get rangeWithTrivia(): Range;
|
|
14
18
|
get rangeWithoutTrivia(): Range;
|
|
15
19
|
get debuggerDisplay(): string;
|
|
@@ -21,8 +25,13 @@ export declare abstract class BaseNode {
|
|
|
21
25
|
* Информация для оценки размера дерева при отладке.
|
|
22
26
|
*/
|
|
23
27
|
get tokenCount(): number;
|
|
28
|
+
/**
|
|
29
|
+
* Позволяет получить путь к синтаксическому узлу при отладке.
|
|
30
|
+
*/
|
|
31
|
+
get nodePath(): string;
|
|
24
32
|
findLeftmostToken(): Token | undefined;
|
|
25
33
|
findRightmostToken(): Token | undefined;
|
|
34
|
+
protected setSourceFileForChildren(): void;
|
|
26
35
|
protected setParentForChildren(): void;
|
|
27
36
|
protected getLengthWithTrivia(): number;
|
|
28
37
|
protected getStartWithTrivia(): number;
|