@artel/artc 0.6.25216 → 0.6.25218
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 +12 -50
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +1056 -1060
- package/build/{chunk-6RYP5SET.js → chunk-FI6LW2RD.js} +5 -4
- package/build/{chunk-TJG64G2K.js → chunk-SK7ZBC3X.js} +16737 -15766
- package/build/{chunk-O7AXOZXA.js → chunk-TQDMVKTN.js} +13 -5
- package/build/types/analysis/AnalyzedTranslationPackage.d.ts +4 -26
- package/build/types/analysis/Analyzer.d.ts +162 -200
- package/build/types/analysis/{CallArgumentToParameterMatchResult.d.ts → ArgumentToParameterMatchResult.d.ts} +6 -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 +3 -0
- package/build/types/analysis/FindModifier.d.ts +2 -0
- package/build/types/analysis/IdentifierExpressionMeaning.d.ts +14 -12
- package/build/types/analysis/IndexedAccessExpressionMeaning.d.ts +12 -7
- 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 +16 -6
- package/build/types/analysis/SemanticContextBuilder.d.ts +1 -1
- package/build/types/analysis/SourceFileMembers.d.ts +12 -89
- package/build/types/analysis/TagMeaning.d.ts +57 -9
- package/build/types/analysis/Tags.d.ts +2 -2
- package/build/types/analysis/TypeMemberLookup.d.ts +15 -15
- package/build/types/analysis/TypeOverloadResolver.d.ts +1 -1
- 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 +111 -103
- package/build/types/emitter/{EmitterGeneratedDeclarationKind.d.ts → EmitPhaseName.d.ts} +1 -44
- package/build/types/emitter/EmitterContext.d.ts +13 -1
- package/build/types/emitter/Entities.d.ts +58 -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 +5 -5
- package/build/types/emitter/Transformer.d.ts +20 -13
- package/build/types/emitter/ir/EmitOptions.d.ts +163 -0
- package/build/types/emitter/ir/Nodes.d.ts +213 -185
- package/build/types/emitter/ir/index.d.ts +1 -2
- package/build/types/emitter/ir/types.d.ts +4 -3
- package/build/types/entities/AliasTypeEntity.d.ts +9 -5
- package/build/types/entities/ConstructorEntity.d.ts +2 -0
- package/build/types/entities/DereferenceOperatorEntity.d.ts +9 -0
- 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 +9 -0
- package/build/types/entities/MethodEntity.d.ts +9 -5
- package/build/types/entities/MethodTypeEntity.d.ts +18 -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 +22 -9
- 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 +12 -7
- package/build/types/entities/VariableEntity.d.ts +50 -41
- package/build/types/entities/VariantTypeEntity.d.ts +18 -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/parser/Scanner.d.ts +0 -6
- package/build/types/parser/UnescapeText.d.ts +1 -1
- 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 +218 -163
- package/build/types/services/NodeSemanticInfo.d.ts +7 -5
- package/build/types/services/signature-help/SignatureWithValueParameters.d.ts +8 -24
- 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 +37 -39
- package/build/types/tree/green/Nodes.d.ts +57 -80
- 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 +65 -93
- package/build/types/ts-interop/Entities.d.ts +77 -34
- package/build/types/ts-interop/TsPackageMembersCreator.d.ts +0 -1
- package/build/types/types/MethodType.d.ts +2 -2
- package/build/types/types/TypeMembers.d.ts +9 -0
- package/build/types/types/VariantType.d.ts +2 -2
- 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 -34
- package/build/types/emitter/ir/LoweringState.d.ts +0 -25
- package/build/types/entities/VariantEntity.d.ts +0 -31
- package/build/types/entities/Variants.d.ts +0 -10
@@ -1,10 +1,10 @@
|
|
1
1
|
import { AccessedMethod } from '../analysis/AccessedMethod.js';
|
2
|
-
import { MatchResultValueParameter } from '../analysis/
|
2
|
+
import { MatchResultValueParameter } from '../analysis/ArgumentToParameterMatchResult.js';
|
3
3
|
import { Translation, WithLocalization } from '../analysis/Localization.js';
|
4
4
|
import { TypeIndexedAccessorDeclaration } from '../analysis/NodeTypeUtils.js';
|
5
5
|
import { Analyzer } from '../analysis/index.js';
|
6
6
|
import { AccessKind, ReadonlyNonEmptyArray } from '../common/index.js';
|
7
|
-
import { AliasTypeEntity, Entity, MethodEntity, MethodTypeEntity, PackageAliasEntity, PackageEntity, StructuredTypeEntity, TypeParameterEntity, VariableEntity,
|
7
|
+
import { AliasTypeEntity, Entity, MethodEntity, MethodTypeEntity, PackageAliasEntity, PackageEntity, StructuredTypeEntity, TypeParameterEntity, VariableEntity, VariantTypeEntity } from '../entities/index.js';
|
8
8
|
import * as tree from '../tree/index.js';
|
9
9
|
import * as types from '../types/index.js';
|
10
10
|
import { TokenOrKeyword } from './TreeUtils.js';
|
@@ -14,6 +14,8 @@ export declare class NodeSemanticInfoService {
|
|
14
14
|
static ofNonKeywordIdentifier(analyzer: Analyzer, node: tree.Identifier, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
15
15
|
static ofProperty(analyzer: Analyzer, node: tree.PropertyAccessExpression, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
16
16
|
static ofQualifiedNameQualifier(analyzer: Analyzer, node: tree.QualifiedName, qualifier: tree.Identifier, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
17
|
+
static ofNamedTypeSpecifierNameQualifier(analyzer: Analyzer, node: tree.NamedTypeSpecifier, qualifier: tree.Identifier, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
18
|
+
static ofTagNameQualifier(analyzer: Analyzer, node: tree.Tag, qualifier: tree.Identifier, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
17
19
|
static ofIdentifierExpression(analyzer: Analyzer, node: tree.IdentifierExpression, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
18
20
|
static ofTypeConstructorDeclaration(analyzer: Analyzer, node: tree.TypeConstructorDeclaration): NodeSemanticInfo;
|
19
21
|
static ofTypeIndexerDeclaration(analyzer: Analyzer, node: TypeIndexedAccessorDeclaration): NodeSemanticInfo;
|
@@ -27,7 +29,7 @@ export declare class NodeSemanticInfoService {
|
|
27
29
|
static ofObjectExpression(analyzer: Analyzer, node: tree.ObjectExpression, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
28
30
|
static ofBaseExpression(analyzer: Analyzer, node: tree.BaseExpression, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
29
31
|
private static ofPackageNameSegmentAccess;
|
30
|
-
private static
|
32
|
+
private static ofMaybeConstructorCallExpression;
|
31
33
|
private static getBetterReferenceTargetsOrPreserve;
|
32
34
|
private static getBetterReferenceTarget;
|
33
35
|
private static getContainingTranslationPackage;
|
@@ -58,7 +60,7 @@ export declare class EntityReferenceTarget {
|
|
58
60
|
readonly kind = "entity";
|
59
61
|
constructor(entity: ReferencedEntity, accessKind: AccessKind);
|
60
62
|
}
|
61
|
-
export type ReferencedEntity = VariableEntity |
|
63
|
+
export type ReferencedEntity = VariableEntity | VariantTypeEntity | MethodEntity | TypeParameterEntity | MethodTypeEntity | StructuredTypeEntity | PackageAliasEntity | AliasTypeEntity;
|
62
64
|
export declare class TypeVariableReferenceTarget {
|
63
65
|
readonly variable: types.Variable;
|
64
66
|
readonly accessKind: AccessKind;
|
@@ -123,7 +125,7 @@ export declare class NameTranslationNodeSemanticInfo {
|
|
123
125
|
get firstTarget(): TranslationTargetEntity;
|
124
126
|
constructor(targets: ReadonlyNonEmptyArray<TranslationTargetEntity>, isAmbiguous: boolean, translation: Translation);
|
125
127
|
}
|
126
|
-
type TranslationTargetEntity = VariableEntity |
|
128
|
+
type TranslationTargetEntity = VariableEntity | VariantTypeEntity | MethodEntity | TypeParameterEntity | MethodTypeEntity | StructuredTypeEntity | AliasTypeEntity;
|
127
129
|
export declare class DefaultSwitchMatchNodeSemanticInfo {
|
128
130
|
readonly type: types.Type;
|
129
131
|
readonly kind = "default-switch-match";
|
@@ -1,18 +1,16 @@
|
|
1
|
+
import { AccessedMethod } from '../../analysis/AccessedMethod.js';
|
1
2
|
import { Localization, WithLocalization } from '../../analysis/Localization.js';
|
2
|
-
import { SubstitutedMethod } from '../../analysis/SubstitutedMethod.js';
|
3
3
|
import { Analyzer } from '../../analysis/index.js';
|
4
4
|
import { Name } from '../../common/index.js';
|
5
|
-
import {
|
5
|
+
import { ParameterVariableEntity } from '../../entities/index.js';
|
6
6
|
import * as tree from '../../tree/index.js';
|
7
7
|
import * as types from '../../types/index.js';
|
8
8
|
export declare class ValueArgumentFactory {
|
9
|
-
private static createValueArgumentFromCallArgument;
|
10
|
-
private static createValueArgumentFromIndexerArgument;
|
11
9
|
static createValueArgumentsOfCallExpression(node: tree.CallExpression): ValueArgument[];
|
12
10
|
static createValueArgumentsOfAutotypeCallExpression(node: tree.AutotypeCallExpression): ValueArgument[];
|
13
11
|
static createValueArgumentsOfIndexedAccessExpression(node: tree.IndexedAccessExpression): ValueArgument[];
|
14
12
|
static createValueArgumentsOfTag(node: tree.Tag): ValueArgument[];
|
15
|
-
private static
|
13
|
+
private static createValueArgumentsFromList;
|
16
14
|
}
|
17
15
|
export declare class SignatureForNode {
|
18
16
|
static getSignaturesForNode(analyzer: Analyzer, node: NodeWithValueArguments): SignaturesWithSingleSuitable | undefined;
|
@@ -51,26 +49,12 @@ export declare class MatchedSignature {
|
|
51
49
|
readonly matchResult: SimplifiedArgumentToParameterMatchResult;
|
52
50
|
constructor(value: Signature, matchResult: SimplifiedArgumentToParameterMatchResult);
|
53
51
|
}
|
54
|
-
export type Signature =
|
55
|
-
export declare class
|
56
|
-
readonly kind = "method
|
57
|
-
readonly method: WithLocalization<
|
52
|
+
export type Signature = AccessedMethodSignature | MethodTypeSignature | ConstructorSignature | IndexerSignature;
|
53
|
+
export declare class AccessedMethodSignature implements ISignature {
|
54
|
+
readonly kind = "accessed-method";
|
55
|
+
readonly method: WithLocalization<AccessedMethod>;
|
58
56
|
private readonly _valueParameters;
|
59
|
-
constructor(method: WithLocalization<
|
60
|
-
getValueParameters(): readonly ValueParameter[];
|
61
|
-
}
|
62
|
-
export declare class TypeMethodSignature implements ISignature {
|
63
|
-
readonly kind = "type-method";
|
64
|
-
readonly method: WithLocalization<types.Method>;
|
65
|
-
private readonly _valueParameters;
|
66
|
-
constructor(method: WithLocalization<types.Method>);
|
67
|
-
getValueParameters(): readonly ValueParameter[];
|
68
|
-
}
|
69
|
-
export declare class SubstitutedMethodSignature implements ISignature {
|
70
|
-
readonly kind = "substituted-method";
|
71
|
-
readonly method: WithLocalization<SubstitutedMethod>;
|
72
|
-
private readonly _valueParameters;
|
73
|
-
constructor(method: WithLocalization<SubstitutedMethod>);
|
57
|
+
constructor(method: WithLocalization<AccessedMethod>);
|
74
58
|
getValueParameters(): readonly ValueParameter[];
|
75
59
|
}
|
76
60
|
export declare class MethodTypeSignature implements ISignature {
|
@@ -14,6 +14,7 @@ export declare class TypeParameterSignatureHelpProvider {
|
|
14
14
|
private countArguments;
|
15
15
|
private getSignaturesForNode;
|
16
16
|
private getSignaturesForNamedTypeSpecifier;
|
17
|
+
private getSignaturesForTag;
|
17
18
|
private getSignaturesForGenericSpecializationExpression;
|
18
19
|
private getSignatureForSubstitutedMethod;
|
19
20
|
private getSignatureForNamedType;
|
@@ -10,6 +10,7 @@ export declare class EntityToSyntax {
|
|
10
10
|
convert(): tree.SourceFile;
|
11
11
|
private convertPackage;
|
12
12
|
private convertNamedPackageMember;
|
13
|
+
private convertPackageType;
|
13
14
|
private convertPackageVariable;
|
14
15
|
private convertPackageMethod;
|
15
16
|
private convertPackageStructuredType;
|
@@ -22,7 +23,6 @@ export declare class EntityToSyntax {
|
|
22
23
|
private convertTypeConstructor;
|
23
24
|
private convertTypeDestructor;
|
24
25
|
private convertTypeIndexer;
|
25
|
-
private convertVariants;
|
26
26
|
private convertVariant;
|
27
27
|
private createStructuredTypeDeclarationBody;
|
28
28
|
private createAliasTypeDeclarationBody;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { TriggeringObject } from 'reactronic';
|
2
2
|
import { Analyzer } from '../../analysis/Analyzer.js';
|
3
3
|
import { LocalizationContext } from '../../analysis/LocalizationContext.js';
|
4
4
|
import { CancellationToken } from '../../common/index.js';
|
@@ -7,7 +7,7 @@ import { PackageContent } from '../../project/PackageContent.js';
|
|
7
7
|
import { TypeScriptLibrariesProvider } from '../../ts-interop/TsLibrariesProvider.js';
|
8
8
|
import { SourceLocation } from '../Types.js';
|
9
9
|
import { CompilationController, ReadonlyClientTrackedSourceFiles } from '../workspace/index.js';
|
10
|
-
export declare class SourceGenerationService extends
|
10
|
+
export declare class SourceGenerationService extends TriggeringObject {
|
11
11
|
private readonly _trackedSourceFiles;
|
12
12
|
private readonly _tsLibrariesProvider;
|
13
13
|
private readonly _standardPackageContentsProviders;
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import {
|
1
|
+
import { TriggeringMap, TriggeringObject } from 'reactronic';
|
2
2
|
import { Uri } from '../../common/index.js';
|
3
|
-
export declare class ClientTrackedSourceFiles extends
|
4
|
-
readonly items:
|
3
|
+
export declare class ClientTrackedSourceFiles extends TriggeringObject implements ReadonlyClientTrackedSourceFiles {
|
4
|
+
readonly items: TriggeringMap<string, ClientTrackedSourceFile>;
|
5
5
|
get unsaved(): Map<string, ClientTrackedSourceFile>;
|
6
6
|
track(uri: Uri, text: string, version: number): ClientTrackedSourceFile | undefined;
|
7
7
|
update(uri: Uri, text: string, version: number): ClientTrackedSourceFile | undefined;
|
@@ -13,11 +13,11 @@ export declare class ClientTrackedSourceFiles extends ObservableObject implement
|
|
13
13
|
dispose(): void;
|
14
14
|
}
|
15
15
|
export interface ReadonlyClientTrackedSourceFiles {
|
16
|
-
readonly items:
|
16
|
+
readonly items: TriggeringMap<string, ReadonlyClientTrackedSourceFile>;
|
17
17
|
readonly unsaved: Map<string, ReadonlyClientTrackedSourceFile>;
|
18
18
|
createItemsSnapshot(): Map<string, ClientTrackedSourceFileSnapshot>;
|
19
19
|
}
|
20
|
-
export declare class ClientTrackedSourceFile extends
|
20
|
+
export declare class ClientTrackedSourceFile extends TriggeringObject {
|
21
21
|
readonly uri: Uri;
|
22
22
|
text: string;
|
23
23
|
version: number;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Indicator,
|
1
|
+
import { Indicator, TriggeringObject } from 'reactronic';
|
2
2
|
import { Analyzer, TsInteropInputs } from '../../analysis/index.js';
|
3
3
|
import { CancellationToken, Uri } from '../../common/index.js';
|
4
4
|
import { Diagnostic } from '../../diagnostic/Diagnostic.js';
|
@@ -6,7 +6,7 @@ import { ConvertedConfiguration, ProgramPackageConfiguration, SourceFile, fsTree
|
|
6
6
|
import { PackageContent } from '../../project/PackageContent.js';
|
7
7
|
import { TypeScriptLibrariesProvider } from '../../ts-interop/TsLibrariesProvider.js';
|
8
8
|
import { ReadonlyClientTrackedSourceFiles } from './ClientTrackedSourceFiles.js';
|
9
|
-
export declare class CompilationController extends
|
9
|
+
export declare class CompilationController extends TriggeringObject {
|
10
10
|
readonly mainCompilationReloadIndicator: Indicator;
|
11
11
|
readonly configurationControllersUpdateIndictor: Indicator;
|
12
12
|
private readonly _mainAnalyzerChangedIndicator;
|
@@ -100,7 +100,7 @@ export declare class DiagnosticsCollectionSummary {
|
|
100
100
|
readonly hasErrors: boolean;
|
101
101
|
constructor(hasErrors: boolean);
|
102
102
|
}
|
103
|
-
declare class ConfigurationController extends
|
103
|
+
declare class ConfigurationController extends TriggeringObject {
|
104
104
|
readonly packageUri: Uri;
|
105
105
|
readonly processingIndicator: Indicator;
|
106
106
|
readonly rootDirectory: fsTree.Directory;
|
@@ -1,12 +1,12 @@
|
|
1
|
-
import {
|
1
|
+
import { TriggeringArray, TriggeringMap, TriggeringObject } from 'reactronic';
|
2
2
|
import { CancellationToken, Uri } from '../../common/index.js';
|
3
3
|
import * as fsTree from '../../project/FileSystemTree.js';
|
4
4
|
import { ReadonlyClientTrackedSourceFiles } from './ClientTrackedSourceFiles.js';
|
5
5
|
import { FileSystemTreeProvider } from './WorkspaceFiles.js';
|
6
6
|
import type { WorkspaceFileSystem } from './WorkspaceFileSystem.js';
|
7
|
-
export declare class FileSystemTreeProviderBasedOnWatchedFileSystem extends
|
7
|
+
export declare class FileSystemTreeProviderBasedOnWatchedFileSystem extends TriggeringObject implements FileSystemTreeProvider {
|
8
8
|
readonly fileSystemTree: fsTree.FileSystemTree;
|
9
|
-
readonly loadedWorkspaceFolderByUri:
|
9
|
+
readonly loadedWorkspaceFolderByUri: TriggeringMap<string, fsTree.Directory>;
|
10
10
|
private readonly _fileSystem;
|
11
11
|
private readonly _notificationsPublisher;
|
12
12
|
private readonly _listener;
|
@@ -24,7 +24,7 @@ export declare class FileSystemTreeProviderBasedOnWatchedFileSystem extends Obse
|
|
24
24
|
private readonly _lastCheckedTrackedSourceFileInfoVersionByUri;
|
25
25
|
private readonly _loadedDirectoryUris;
|
26
26
|
constructor(fileSystem: WorkspaceFileSystem, notificationsPublisher: FileSystemUpdateNotificationsPublisher, namesOfDirectoriesToIgnore?: string[], additionalUrisOfDirectoriesToLoad?: readonly Uri[]);
|
27
|
-
initialize(workspaceFolderUris:
|
27
|
+
initialize(workspaceFolderUris: TriggeringArray<Uri>, trackedSourceFiles: ReadonlyClientTrackedSourceFiles): void;
|
28
28
|
waitLoaded(cancellationToken: CancellationToken | undefined): Promise<void>;
|
29
29
|
dispose(): void;
|
30
30
|
protected onTrackedSourceFilesUpdated(): void;
|
@@ -1,17 +1,17 @@
|
|
1
|
-
import {
|
1
|
+
import { TriggeringArray, TriggeringMap, TriggeringObject } from 'reactronic';
|
2
2
|
import { CancellationToken } from '../../common/CancellationToken.js';
|
3
3
|
import { Uri } from '../../common/Uri.js';
|
4
4
|
import * as fsTree from '../../project/FileSystemTree.js';
|
5
5
|
import { ReadonlyClientTrackedSourceFiles } from './ClientTrackedSourceFiles.js';
|
6
6
|
import { FileSystemTreeProvider } from './WorkspaceFiles.js';
|
7
|
-
export declare class ManuallyUpdatedFileSystemTreeProvider extends
|
7
|
+
export declare class ManuallyUpdatedFileSystemTreeProvider extends TriggeringObject implements FileSystemTreeProvider {
|
8
8
|
readonly fileSystemTree: fsTree.FileSystemTree;
|
9
|
-
readonly loadedWorkspaceFolderByUri:
|
9
|
+
readonly loadedWorkspaceFolderByUri: TriggeringMap<string, fsTree.Directory>;
|
10
10
|
private _workspaceFolderUris;
|
11
11
|
private _trackedSourceFiles;
|
12
12
|
private readonly _lastCheckedTrackedSourceFileInfoByUri;
|
13
13
|
private readonly _manuallyCreatedSourceFileTextByUri;
|
14
|
-
initialize(workspaceFolderUris:
|
14
|
+
initialize(workspaceFolderUris: TriggeringArray<Uri>, trackedSourceFiles: ReadonlyClientTrackedSourceFiles): void;
|
15
15
|
waitLoaded(_cancellationToken: CancellationToken | undefined): Promise<void>;
|
16
16
|
dispose(): void;
|
17
17
|
createOrUpdateSourceFile(uri: Uri, text: string): void;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { TriggeringMap, TriggeringObject } from 'reactronic';
|
2
2
|
import { Analyzer } from '../../analysis/index.js';
|
3
3
|
import { CancellationToken, Uri } from '../../common/index.js';
|
4
4
|
import * as fsTree from '../../project/FileSystemTree.js';
|
@@ -8,7 +8,7 @@ import { TypeScriptLibrariesProvider } from '../../ts-interop/TsLibrariesProvide
|
|
8
8
|
import { ReadonlyClientTrackedSourceFiles } from './ClientTrackedSourceFiles.js';
|
9
9
|
import { CompilationController, DiagnosticsCollectedInBackgroundHandler, RawPackageConfigurationsChangedHandler } from './CompilationController.js';
|
10
10
|
import { FileSystemTreeProvider } from './WorkspaceFiles.js';
|
11
|
-
export declare class Workspace extends
|
11
|
+
export declare class Workspace extends TriggeringObject {
|
12
12
|
isReadyToAcceptWorkspaceDiagnostics: boolean;
|
13
13
|
private readonly _config;
|
14
14
|
private readonly _compilationControllers;
|
@@ -19,7 +19,7 @@ export declare class Workspace extends ObservableObject {
|
|
19
19
|
private readonly _tsInteropInputsCache;
|
20
20
|
get compilationControllers(): readonly CompilationController[];
|
21
21
|
get trackedSourceFiles(): ReadonlyClientTrackedSourceFiles;
|
22
|
-
get loadedWorkspaceFolderByUri():
|
22
|
+
get loadedWorkspaceFolderByUri(): TriggeringMap<string, fsTree.Directory>;
|
23
23
|
get workspaceFolderUris(): readonly Uri[];
|
24
24
|
private get compilationControllerByUri();
|
25
25
|
private constructor();
|
@@ -1,15 +1,15 @@
|
|
1
|
-
import {
|
1
|
+
import { TriggeringArray, TriggeringMap, TriggeringObject } from 'reactronic';
|
2
2
|
import { CancellationToken, Uri } from '../../common/index.js';
|
3
3
|
import * as fsTree from '../../project/FileSystemTree.js';
|
4
4
|
import { ClientTrackedSourceFiles, ReadonlyClientTrackedSourceFiles } from './ClientTrackedSourceFiles.js';
|
5
|
-
export declare class WorkspaceFiles extends
|
5
|
+
export declare class WorkspaceFiles extends TriggeringObject {
|
6
6
|
readonly trackedSourceFiles: ClientTrackedSourceFiles;
|
7
|
-
readonly workspaceFolderUris:
|
8
|
-
readonly workspaceFolderWithArtelProjectByUri:
|
7
|
+
readonly workspaceFolderUris: TriggeringArray<Uri>;
|
8
|
+
readonly workspaceFolderWithArtelProjectByUri: TriggeringMap<string, fsTree.Directory>;
|
9
9
|
private readonly _fileSystemTreeProvider;
|
10
10
|
get fileSystemTree(): fsTree.ReadonlyFileSystemTree;
|
11
11
|
get isMissingConfigurationDirectoryAllowed(): boolean;
|
12
|
-
get loadedWorkspaceFolderByUri():
|
12
|
+
get loadedWorkspaceFolderByUri(): TriggeringMap<string, fsTree.Directory>;
|
13
13
|
constructor(fileSystemTreeProvider: FileSystemTreeProvider);
|
14
14
|
addWorkspaceFolders(uris: readonly Uri[]): void;
|
15
15
|
removeWorkspaceFolders(uris: readonly Uri[]): void;
|
@@ -25,11 +25,11 @@ export declare class WorkspaceFiles extends ObservableObject {
|
|
25
25
|
}
|
26
26
|
export interface FileSystemTreeProvider {
|
27
27
|
readonly fileSystemTree: fsTree.ReadonlyFileSystemTree;
|
28
|
-
readonly loadedWorkspaceFolderByUri:
|
28
|
+
readonly loadedWorkspaceFolderByUri: TriggeringMap<string, fsTree.Directory>;
|
29
29
|
/**
|
30
30
|
* Должен быть вызван до вызова всех остальных методов.
|
31
31
|
*/
|
32
|
-
initialize(workspaceFolderUris:
|
32
|
+
initialize(workspaceFolderUris: TriggeringArray<Uri>, trackedSourceFiles: ReadonlyClientTrackedSourceFiles): void;
|
33
33
|
waitLoaded(cancellationToken: CancellationToken | undefined): Promise<void>;
|
34
34
|
dispose(): void;
|
35
35
|
}
|
@@ -7,43 +7,43 @@ export declare enum KeywordKind {
|
|
7
7
|
PlainObject = 5,
|
8
8
|
Variant = 6,
|
9
9
|
Run = 7,
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
10
|
+
Try = 8,
|
11
|
+
From = 9,
|
12
|
+
Else = 10,
|
13
|
+
ElseIf = 11,
|
14
|
+
Function = 12,
|
15
|
+
If = 13,
|
16
|
+
Is = 14,
|
17
|
+
Return = 15,
|
18
|
+
Type = 16,
|
19
|
+
Basic = 17,
|
20
|
+
Import = 18,
|
21
|
+
Error = 19,
|
22
|
+
Finally = 20,
|
23
|
+
And = 21,
|
24
|
+
Or = 22,
|
25
|
+
Xor = 23,
|
26
|
+
While = 24,
|
27
|
+
Loop = 25,
|
28
|
+
RepeatWhile = 26,
|
29
|
+
Yield = 27,
|
30
|
+
When = 28,
|
31
|
+
Creation = 29,
|
32
|
+
Catch = 30,
|
33
|
+
BreakLoop = 31,
|
34
|
+
ContinueLoop = 32,
|
35
|
+
For = 33,
|
36
|
+
Const = 34,
|
37
|
+
Hidden = 35,
|
38
|
+
Abstract = 36,
|
39
|
+
Redefinable = 37,
|
40
|
+
Redefined = 38,
|
41
|
+
Async = 39,
|
42
|
+
Static = 40,
|
43
|
+
As = 41,
|
44
|
+
Not = 42,
|
45
|
+
Switch = 43,
|
46
|
+
Case = 44,
|
47
47
|
Dispose = 45,
|
48
48
|
Destruction = 46,
|
49
49
|
InHierarchy = 47,
|
@@ -67,39 +67,39 @@ export declare enum NodeKind {
|
|
67
67
|
AsExpression = 65,
|
68
68
|
BinaryExpression = 66,
|
69
69
|
MethodBlockLiteral = 67,
|
70
|
-
|
70
|
+
ArgumentList = 68,
|
71
71
|
CallExpression = 69,
|
72
72
|
AutotypeCallExpression = 70,
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
73
|
+
IndexedAccessExpression = 71,
|
74
|
+
InvalidExpression = 72,
|
75
|
+
IsExpression = 73,
|
76
|
+
MethodLiteral = 74,
|
77
|
+
ParenthesizedExpression = 75,
|
78
|
+
WhenTernaryExpression = 76,
|
79
|
+
PrefixUnaryExpression = 77,
|
80
|
+
PropertyAccessExpression = 78,
|
81
|
+
ReferenceExpression = 79,
|
82
|
+
DereferenceExpression = 80,
|
83
|
+
TextTemplateLiteral = 81,
|
84
|
+
TextTemplateSpanList = 82,
|
85
|
+
TextTemplateSpan = 83,
|
86
|
+
TokenExpression = 84,
|
87
|
+
KeywordExpression = 85,
|
88
|
+
ObjectExpression = 86,
|
89
|
+
BaseExpression = 87,
|
90
|
+
IdentifierExpression = 88,
|
91
|
+
GenericSpecializationExpression = 89,
|
92
|
+
DefaultMatchExpression = 90,
|
93
|
+
AssignmentStatement = 91,
|
94
|
+
StatementList = 92,
|
95
|
+
StatementBlock = 93,
|
96
|
+
BreakLoopStatement = 94,
|
97
|
+
ContinueLoopStatement = 95,
|
98
|
+
DisposeStatement = 96,
|
99
|
+
RunStatementClauseList = 97,
|
100
|
+
RunStatement = 98,
|
101
|
+
TryStatement = 99,
|
102
|
+
CatchClause = 100,
|
103
103
|
ErrorVariableDeclaration = 101,
|
104
104
|
FinallyClause = 102,
|
105
105
|
EmptyStatement = 103,
|
@@ -142,18 +142,16 @@ export declare enum NodeKind {
|
|
142
142
|
VariantDeclaration = 140,
|
143
143
|
TypeParameterDeclaration = 141,
|
144
144
|
ParameterDeclaration = 142,
|
145
|
-
|
145
|
+
Argument = 143,
|
146
146
|
TagList = 144,
|
147
147
|
Tag = 145,
|
148
148
|
ModifierList = 146,
|
149
149
|
Modifier = 147,
|
150
150
|
ParameterClause = 148,
|
151
151
|
ParameterList = 149,
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
TypeParameterList = 155,
|
158
|
-
TypeAnnotation = 156
|
152
|
+
TypeArgumentClause = 150,
|
153
|
+
TypeArgumentList = 151,
|
154
|
+
TypeParameterClause = 152,
|
155
|
+
TypeParameterList = 153,
|
156
|
+
TypeAnnotation = 154
|
159
157
|
}
|