@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.
Files changed (108) hide show
  1. package/build/Cli.js +3 -3
  2. package/build/api/Api.js +12 -50
  3. package/build/api/ApiNodeJS.js +3 -3
  4. package/build/api/ApiServices.js +1056 -1060
  5. package/build/{chunk-6RYP5SET.js → chunk-FI6LW2RD.js} +5 -4
  6. package/build/{chunk-TJG64G2K.js → chunk-SK7ZBC3X.js} +16737 -15766
  7. package/build/{chunk-O7AXOZXA.js → chunk-TQDMVKTN.js} +13 -5
  8. package/build/types/analysis/AnalyzedTranslationPackage.d.ts +4 -26
  9. package/build/types/analysis/Analyzer.d.ts +162 -200
  10. package/build/types/analysis/{CallArgumentToParameterMatchResult.d.ts → ArgumentToParameterMatchResult.d.ts} +6 -7
  11. package/build/types/analysis/{CallArgumentsToParametersMatcher.d.ts → ArgumentsToParametersMatcher.d.ts} +14 -14
  12. package/build/types/analysis/ConstructorOverloadResolver.d.ts +1 -1
  13. package/build/types/analysis/DereferenceExpressionMeaning.d.ts +3 -3
  14. package/build/types/analysis/DiagnosticCollector.d.ts +3 -0
  15. package/build/types/analysis/FindModifier.d.ts +2 -0
  16. package/build/types/analysis/IdentifierExpressionMeaning.d.ts +14 -12
  17. package/build/types/analysis/IndexedAccessExpressionMeaning.d.ts +12 -7
  18. package/build/types/analysis/LocalizationContext.d.ts +4 -5
  19. package/build/types/analysis/Lookup.d.ts +8 -7
  20. package/build/types/analysis/ModifierFlags.d.ts +16 -0
  21. package/build/types/analysis/NamedTypeSpecifierResolver.d.ts +0 -1
  22. package/build/types/analysis/NodeTypeUtils.d.ts +1 -0
  23. package/build/types/analysis/OperationOverloadResolver.d.ts +2 -2
  24. package/build/types/analysis/OverloadResolver.d.ts +4 -4
  25. package/build/types/analysis/PackageMemberLookup.d.ts +5 -6
  26. package/build/types/analysis/PropertyAccessExpressionMeaning.d.ts +18 -16
  27. package/build/types/analysis/Scope.d.ts +21 -116
  28. package/build/types/analysis/SemanticContext.d.ts +16 -6
  29. package/build/types/analysis/SemanticContextBuilder.d.ts +1 -1
  30. package/build/types/analysis/SourceFileMembers.d.ts +12 -89
  31. package/build/types/analysis/TagMeaning.d.ts +57 -9
  32. package/build/types/analysis/Tags.d.ts +2 -2
  33. package/build/types/analysis/TypeMemberLookup.d.ts +15 -15
  34. package/build/types/analysis/TypeOverloadResolver.d.ts +1 -1
  35. package/build/types/analysis/WellKnownDeclarations.d.ts +1 -0
  36. package/build/types/analysis/index.d.ts +1 -1
  37. package/build/types/api/Api.d.ts +2 -6
  38. package/build/types/diagnostic/DiagnosticCode.d.ts +111 -103
  39. package/build/types/emitter/{EmitterGeneratedDeclarationKind.d.ts → EmitPhaseName.d.ts} +1 -44
  40. package/build/types/emitter/EmitterContext.d.ts +13 -1
  41. package/build/types/emitter/Entities.d.ts +58 -16
  42. package/build/types/emitter/EntityMap.d.ts +1 -3
  43. package/build/types/emitter/IrBuilder.d.ts +6 -2
  44. package/build/types/emitter/IrToJs.d.ts +5 -5
  45. package/build/types/emitter/Transformer.d.ts +20 -13
  46. package/build/types/emitter/ir/EmitOptions.d.ts +163 -0
  47. package/build/types/emitter/ir/Nodes.d.ts +213 -185
  48. package/build/types/emitter/ir/index.d.ts +1 -2
  49. package/build/types/emitter/ir/types.d.ts +4 -3
  50. package/build/types/entities/AliasTypeEntity.d.ts +9 -5
  51. package/build/types/entities/ConstructorEntity.d.ts +2 -0
  52. package/build/types/entities/DereferenceOperatorEntity.d.ts +9 -0
  53. package/build/types/entities/DestructorEntity.d.ts +2 -0
  54. package/build/types/entities/GetterEntity.d.ts +8 -0
  55. package/build/types/entities/IndexerEntity.d.ts +9 -0
  56. package/build/types/entities/MethodEntity.d.ts +9 -5
  57. package/build/types/entities/MethodTypeEntity.d.ts +18 -5
  58. package/build/types/entities/OperatorEntity.d.ts +5 -3
  59. package/build/types/entities/PackageEntity.d.ts +3 -3
  60. package/build/types/entities/PackageMembers.d.ts +4 -90
  61. package/build/types/entities/SetterEntity.d.ts +8 -0
  62. package/build/types/entities/StructuredTypeEntity.d.ts +22 -9
  63. package/build/types/entities/TypeEntity.d.ts +15 -0
  64. package/build/types/entities/TypeExtensionEntity.d.ts +2 -0
  65. package/build/types/entities/TypeParameterEntity.d.ts +12 -7
  66. package/build/types/entities/VariableEntity.d.ts +50 -41
  67. package/build/types/entities/VariantTypeEntity.d.ts +18 -11
  68. package/build/types/entities/index.d.ts +17 -25
  69. package/build/types/executor/Compiler.d.ts +1 -0
  70. package/build/types/executor/NodeCompiler.d.ts +1 -0
  71. package/build/types/parser/CharacterCodes.d.ts +8 -0
  72. package/build/types/parser/ReservedIdentifierDictionary.d.ts +1 -2
  73. package/build/types/parser/Scanner.d.ts +0 -6
  74. package/build/types/parser/UnescapeText.d.ts +1 -1
  75. package/build/types/project/FileSystemTree.d.ts +2 -2
  76. package/build/types/services/CompletionService.d.ts +4 -1
  77. package/build/types/services/DisplayService.d.ts +218 -163
  78. package/build/types/services/NodeSemanticInfo.d.ts +7 -5
  79. package/build/types/services/signature-help/SignatureWithValueParameters.d.ts +8 -24
  80. package/build/types/services/signature-help/TypeParameterSignatureHelpProvider.d.ts +1 -0
  81. package/build/types/services/source-generation/EntityToSyntax.d.ts +1 -1
  82. package/build/types/services/source-generation/SourceGenerationService.d.ts +2 -2
  83. package/build/types/services/workspace/ClientTrackedSourceFiles.d.ts +5 -5
  84. package/build/types/services/workspace/CompilationController.d.ts +3 -3
  85. package/build/types/services/workspace/FileSystemTreeProviderBasedOnWatchedFileSystem.d.ts +4 -4
  86. package/build/types/services/workspace/ManuallyUpdatedFileSystemTreeProvider.d.ts +4 -4
  87. package/build/types/services/workspace/Workspace.d.ts +3 -3
  88. package/build/types/services/workspace/WorkspaceFiles.d.ts +7 -7
  89. package/build/types/tree/KeywordKind.d.ts +37 -37
  90. package/build/types/tree/NodeKind.d.ts +37 -39
  91. package/build/types/tree/green/Nodes.d.ts +57 -80
  92. package/build/types/tree/green/SyntaxFactory.d.ts +4 -5
  93. package/build/types/tree/green/SyntaxToCode.d.ts +1 -2
  94. package/build/types/tree/red/Nodes.d.ts +65 -93
  95. package/build/types/ts-interop/Entities.d.ts +77 -34
  96. package/build/types/ts-interop/TsPackageMembersCreator.d.ts +0 -1
  97. package/build/types/types/MethodType.d.ts +2 -2
  98. package/build/types/types/TypeMembers.d.ts +9 -0
  99. package/build/types/types/VariantType.d.ts +2 -2
  100. package/package.json +2 -2
  101. package/build/types/analysis/DereferencedVariableAccess.d.ts +0 -14
  102. package/build/types/analysis/IndexedAccess.d.ts +0 -14
  103. package/build/types/analysis/VariableAccess.d.ts +0 -14
  104. package/build/types/analysis/VariantLookup.d.ts +0 -20
  105. package/build/types/emitter/ir/LoweringOptions.d.ts +0 -34
  106. package/build/types/emitter/ir/LoweringState.d.ts +0 -25
  107. package/build/types/entities/VariantEntity.d.ts +0 -31
  108. 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/CallArgumentToParameterMatchResult.js';
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, VariantEntity, VariantTypeEntity } from '../entities/index.js';
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 ofMaybeConstructorCall;
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 | VariantEntity | VariantTypeEntity | MethodEntity | TypeParameterEntity | MethodTypeEntity | StructuredTypeEntity | PackageAliasEntity | AliasTypeEntity;
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 | VariantEntity | VariantTypeEntity | MethodEntity | TypeParameterEntity | MethodTypeEntity | StructuredTypeEntity | AliasTypeEntity;
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 { MethodEntity, ParameterVariableEntity } from '../../entities/index.js';
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 createValueArgumentsFromListElement;
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 = MethodEntitySignature | TypeMethodSignature | SubstitutedMethodSignature | MethodTypeSignature | ConstructorSignature | IndexerSignature;
55
- export declare class MethodEntitySignature implements ISignature {
56
- readonly kind = "method-entity";
57
- readonly method: WithLocalization<MethodEntity>;
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<MethodEntity>);
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 { ObservableObject } from 'reactronic';
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 ObservableObject {
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 { ObservableMap, ObservableObject } from 'reactronic';
1
+ import { TriggeringMap, TriggeringObject } from 'reactronic';
2
2
  import { Uri } from '../../common/index.js';
3
- export declare class ClientTrackedSourceFiles extends ObservableObject implements ReadonlyClientTrackedSourceFiles {
4
- readonly items: ObservableMap<string, ClientTrackedSourceFile>;
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: ObservableMap<string, ReadonlyClientTrackedSourceFile>;
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 ObservableObject {
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, ObservableObject } from 'reactronic';
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 ObservableObject {
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 ObservableObject {
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 { ObservableArray, ObservableMap, ObservableObject } from 'reactronic';
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 ObservableObject implements FileSystemTreeProvider {
7
+ export declare class FileSystemTreeProviderBasedOnWatchedFileSystem extends TriggeringObject implements FileSystemTreeProvider {
8
8
  readonly fileSystemTree: fsTree.FileSystemTree;
9
- readonly loadedWorkspaceFolderByUri: ObservableMap<string, fsTree.Directory>;
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: ObservableArray<Uri>, trackedSourceFiles: ReadonlyClientTrackedSourceFiles): void;
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 { ObservableArray, ObservableMap, ObservableObject } from 'reactronic';
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 ObservableObject implements FileSystemTreeProvider {
7
+ export declare class ManuallyUpdatedFileSystemTreeProvider extends TriggeringObject implements FileSystemTreeProvider {
8
8
  readonly fileSystemTree: fsTree.FileSystemTree;
9
- readonly loadedWorkspaceFolderByUri: ObservableMap<string, fsTree.Directory>;
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: ObservableArray<Uri>, trackedSourceFiles: ReadonlyClientTrackedSourceFiles): void;
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 { ObservableMap, ObservableObject } from 'reactronic';
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 ObservableObject {
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(): ObservableMap<string, fsTree.Directory>;
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 { ObservableArray, ObservableMap, ObservableObject } from 'reactronic';
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 ObservableObject {
5
+ export declare class WorkspaceFiles extends TriggeringObject {
6
6
  readonly trackedSourceFiles: ClientTrackedSourceFiles;
7
- readonly workspaceFolderUris: ObservableArray<Uri>;
8
- readonly workspaceFolderWithArtelProjectByUri: ObservableMap<string, fsTree.Directory>;
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(): ObservableMap<string, fsTree.Directory>;
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: ObservableMap<string, fsTree.Directory>;
28
+ readonly loadedWorkspaceFolderByUri: TriggeringMap<string, fsTree.Directory>;
29
29
  /**
30
30
  * Должен быть вызван до вызова всех остальных методов.
31
31
  */
32
- initialize(workspaceFolderUris: ObservableArray<Uri>, trackedSourceFiles: ReadonlyClientTrackedSourceFiles): void;
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
- From = 8,
11
- Else = 9,
12
- ElseIf = 10,
13
- Function = 11,
14
- If = 12,
15
- Is = 13,
16
- Return = 14,
17
- Type = 15,
18
- Basic = 16,
19
- Import = 17,
20
- Error = 18,
21
- Finally = 19,
22
- And = 20,
23
- Or = 21,
24
- Xor = 22,
25
- While = 23,
26
- Loop = 24,
27
- RepeatWhile = 25,
28
- Yield = 26,
29
- When = 27,
30
- Creation = 28,
31
- OnError = 29,
32
- BreakLoop = 30,
33
- ContinueLoop = 31,
34
- For = 32,
35
- Const = 33,
36
- Hidden = 34,
37
- Abstract = 35,
38
- Redefinable = 36,
39
- Redefined = 37,
40
- Async = 38,
41
- Static = 39,
42
- As = 40,
43
- Not = 41,
44
- Switch = 42,
45
- Case = 43,
46
- Await = 44,
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
- CallArgumentList = 68,
70
+ ArgumentList = 68,
71
71
  CallExpression = 69,
72
72
  AutotypeCallExpression = 70,
73
- IndexedAccessArgumentList = 71,
74
- IndexedAccessExpression = 72,
75
- InvalidExpression = 73,
76
- IsExpression = 74,
77
- MethodLiteral = 75,
78
- ParenthesizedExpression = 76,
79
- WhenTernaryExpression = 77,
80
- PrefixUnaryExpression = 78,
81
- PropertyAccessExpression = 79,
82
- ReferenceExpression = 80,
83
- DereferenceExpression = 81,
84
- TextTemplateLiteral = 82,
85
- TextTemplateSpanList = 83,
86
- TextTemplateSpan = 84,
87
- TokenExpression = 85,
88
- KeywordExpression = 86,
89
- ObjectExpression = 87,
90
- BaseExpression = 88,
91
- IdentifierExpression = 89,
92
- GenericSpecializationExpression = 90,
93
- DefaultMatchExpression = 91,
94
- AssignmentStatement = 92,
95
- StatementList = 93,
96
- StatementBlock = 94,
97
- BreakLoopStatement = 95,
98
- ContinueLoopStatement = 96,
99
- DisposeStatement = 97,
100
- RunStatementClauseList = 98,
101
- RunStatement = 99,
102
- OnErrorClause = 100,
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
- CallArgument = 143,
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
- SetterParameterClause = 150,
153
- SetterParameterDeclaration = 151,
154
- TypeArgumentClause = 152,
155
- TypeArgumentList = 153,
156
- TypeParameterClause = 154,
157
- TypeParameterList = 155,
158
- TypeAnnotation = 156
152
+ TypeArgumentClause = 150,
153
+ TypeArgumentList = 151,
154
+ TypeParameterClause = 152,
155
+ TypeParameterList = 153,
156
+ TypeAnnotation = 154
159
157
  }