@artel/artc 0.6.25217 → 0.6.25219

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/build/Cli.js +3 -3
  2. package/build/api/Api.js +16 -66
  3. package/build/api/ApiNodeJS.js +3 -3
  4. package/build/api/ApiServices.js +930 -888
  5. package/build/{chunk-HN3XZZQX.js → chunk-AIY75NR5.js} +5 -4
  6. package/build/{chunk-TXAEJ2GI.js → chunk-IYSH7MAQ.js} +10562 -10629
  7. package/build/{chunk-CMPXXHBQ.js → chunk-QLTGS2V2.js} +13 -5
  8. package/build/types/analysis/AnalyzedTranslationPackage.d.ts +4 -26
  9. package/build/types/analysis/Analyzer.d.ts +27 -69
  10. package/build/types/analysis/{CallArgumentToParameterMatchResult.d.ts → ArgumentToParameterMatchResult.d.ts} +7 -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 +2 -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/LocalizationContext.d.ts +4 -5
  18. package/build/types/analysis/Lookup.d.ts +8 -7
  19. package/build/types/analysis/ModifierFlags.d.ts +16 -0
  20. package/build/types/analysis/NamedTypeSpecifierResolver.d.ts +0 -1
  21. package/build/types/analysis/NodeTypeUtils.d.ts +1 -0
  22. package/build/types/analysis/OperationOverloadResolver.d.ts +2 -2
  23. package/build/types/analysis/OverloadResolver.d.ts +4 -4
  24. package/build/types/analysis/PackageMemberLookup.d.ts +5 -6
  25. package/build/types/analysis/PropertyAccessExpressionMeaning.d.ts +18 -16
  26. package/build/types/analysis/Scope.d.ts +21 -116
  27. package/build/types/analysis/SemanticContext.d.ts +23 -13
  28. package/build/types/analysis/SemanticContextBuilder.d.ts +1 -1
  29. package/build/types/analysis/SourceFileMembers.d.ts +12 -99
  30. package/build/types/analysis/TagMeaning.d.ts +57 -9
  31. package/build/types/analysis/Tags.d.ts +18 -6
  32. package/build/types/analysis/TypeMemberLookup.d.ts +15 -15
  33. package/build/types/analysis/TypeOverloadResolver.d.ts +1 -1
  34. package/build/types/analysis/Utils.d.ts +4 -3
  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 +21 -17
  39. package/build/types/emitter/{EmitterGeneratedDeclarationKind.d.ts → EmitPhaseName.d.ts} +1 -44
  40. package/build/types/emitter/EmitterContext.d.ts +4 -1
  41. package/build/types/emitter/Entities.d.ts +52 -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 +6 -5
  45. package/build/types/emitter/Transformer.d.ts +20 -12
  46. package/build/types/emitter/ir/EmitOptions.d.ts +163 -0
  47. package/build/types/emitter/ir/Nodes.d.ts +215 -179
  48. package/build/types/emitter/ir/index.d.ts +1 -2
  49. package/build/types/emitter/ir/types.d.ts +4 -4
  50. package/build/types/entities/AliasTypeEntity.d.ts +8 -4
  51. package/build/types/entities/ConstructorEntity.d.ts +2 -0
  52. package/build/types/entities/DereferenceOperatorEntity.d.ts +5 -3
  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 +5 -3
  56. package/build/types/entities/MethodEntity.d.ts +9 -5
  57. package/build/types/entities/MethodTypeEntity.d.ts +10 -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 +11 -6
  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 +11 -6
  66. package/build/types/entities/VariableEntity.d.ts +50 -41
  67. package/build/types/entities/VariantTypeEntity.d.ts +10 -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/project/FileSystemTree.d.ts +2 -2
  74. package/build/types/services/CompletionService.d.ts +4 -1
  75. package/build/types/services/DisplayService.d.ts +18 -2
  76. package/build/types/services/NodeSemanticInfo.d.ts +7 -5
  77. package/build/types/services/signature-help/SignatureWithValueParameters.d.ts +7 -21
  78. package/build/types/services/signature-help/TypeParameterSignatureHelpProvider.d.ts +1 -0
  79. package/build/types/services/source-generation/EntityToSyntax.d.ts +1 -1
  80. package/build/types/services/source-generation/SourceGenerationService.d.ts +2 -2
  81. package/build/types/services/workspace/ClientTrackedSourceFiles.d.ts +5 -5
  82. package/build/types/services/workspace/CompilationController.d.ts +3 -3
  83. package/build/types/services/workspace/FileSystemTreeProviderBasedOnWatchedFileSystem.d.ts +4 -4
  84. package/build/types/services/workspace/ManuallyUpdatedFileSystemTreeProvider.d.ts +4 -4
  85. package/build/types/services/workspace/Workspace.d.ts +3 -3
  86. package/build/types/services/workspace/WorkspaceFiles.d.ts +7 -7
  87. package/build/types/tree/KeywordKind.d.ts +37 -37
  88. package/build/types/tree/NodeKind.d.ts +10 -12
  89. package/build/types/tree/green/Nodes.d.ts +57 -84
  90. package/build/types/tree/green/SyntaxFactory.d.ts +4 -5
  91. package/build/types/tree/green/SyntaxToCode.d.ts +1 -2
  92. package/build/types/tree/red/Nodes.d.ts +67 -97
  93. package/build/types/ts-interop/Entities.d.ts +51 -28
  94. package/build/types/ts-interop/TsPackageMembersCreator.d.ts +0 -1
  95. package/build/types/types/TypeMembers.d.ts +9 -0
  96. package/package.json +2 -2
  97. package/build/types/analysis/DereferencedVariableAccess.d.ts +0 -14
  98. package/build/types/analysis/IndexedAccess.d.ts +0 -14
  99. package/build/types/analysis/VariableAccess.d.ts +0 -14
  100. package/build/types/analysis/VariantLookup.d.ts +0 -20
  101. package/build/types/emitter/ir/LoweringOptions.d.ts +0 -36
  102. package/build/types/emitter/ir/LoweringState.d.ts +0 -49
  103. package/build/types/entities/VariantEntity.d.ts +0 -31
  104. package/build/types/entities/Variants.d.ts +0 -10
@@ -56,7 +56,6 @@ export declare class TsPackageMembersCreator {
56
56
  private createFunctionEntityNoReplacement;
57
57
  private registerTypeParameters;
58
58
  private getTypeDeclarationsToMergeWith;
59
- private convertPackageMemberEntityToPackageMember;
60
59
  private createReplacementSourceEntities;
61
60
  private getSourceEntity;
62
61
  }
@@ -26,6 +26,7 @@ export declare class Method implements ITypeMember {
26
26
  isStatic(): boolean;
27
27
  applySubstitutions(substitutions: Substitutions): Method;
28
28
  getTypeParametersArity(): number;
29
+ equals(other: TypeMember): boolean;
29
30
  }
30
31
  export declare class ValueParameter {
31
32
  private readonly _entity;
@@ -50,7 +51,9 @@ export declare class Variable implements ITypeMember {
50
51
  isConstant(): boolean;
51
52
  isHidden(): EntityHidingLevel | undefined;
52
53
  isStatic(): boolean;
54
+ isVariant(): boolean;
53
55
  applySubstitutions(substitutions: Substitutions): Variable;
56
+ equals(other: TypeMember): boolean;
54
57
  }
55
58
  export declare class Operator implements ITypeMember {
56
59
  private readonly _analyzer;
@@ -69,6 +72,7 @@ export declare class Operator implements ITypeMember {
69
72
  isHidden(): EntityHidingLevel | undefined;
70
73
  isStatic(): boolean;
71
74
  applySubstitutions(substitutions: Substitutions): Operator;
75
+ equals(other: TypeMember): boolean;
72
76
  }
73
77
  export declare class Constructor implements ITypeMember {
74
78
  private readonly _entity;
@@ -82,6 +86,7 @@ export declare class Constructor implements ITypeMember {
82
86
  getEntity(): ConstructorEntity;
83
87
  getSubstitutions(): Substitutions;
84
88
  isHidden(): EntityHidingLevel | undefined;
89
+ equals(other: TypeMember): boolean;
85
90
  }
86
91
  export declare class Destructor implements ITypeMember {
87
92
  private readonly _entity;
@@ -94,6 +99,7 @@ export declare class Destructor implements ITypeMember {
94
99
  getSubstitutions(): Substitutions;
95
100
  isHidden(): EntityHidingLevel | undefined;
96
101
  applySubstitutions(substitutions: Substitutions): Destructor;
102
+ equals(other: TypeMember): boolean;
97
103
  }
98
104
  export declare class Indexer implements ITypeMember {
99
105
  private readonly _entity;
@@ -107,6 +113,7 @@ export declare class Indexer implements ITypeMember {
107
113
  getSubstitutions(): Substitutions;
108
114
  isHidden(): EntityHidingLevel | undefined;
109
115
  applySubstitutions(substitutions: Substitutions): Indexer;
116
+ equals(other: TypeMember): boolean;
110
117
  }
111
118
  export declare class DereferenceOperator implements ITypeMember {
112
119
  private readonly _entity;
@@ -118,8 +125,10 @@ export declare class DereferenceOperator implements ITypeMember {
118
125
  getSubstitutions(): Substitutions;
119
126
  isHidden(): EntityHidingLevel | undefined;
120
127
  applySubstitutions(substitutions: Substitutions): DereferenceOperator;
128
+ equals(other: TypeMember): boolean;
121
129
  }
122
130
  export interface ITypeMember {
123
131
  isHidden(): EntityHidingLevel | undefined;
124
132
  getSubstitutions(): Substitutions;
133
+ equals(other: TypeMember): boolean;
125
134
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artel/artc",
3
- "version": "0.6.25217",
3
+ "version": "0.6.25219",
4
4
  "description": "Артель Компилятор | Artel Compiler",
5
5
  "author": "Nezaboodka Team <contact@nezaboodka.com>",
6
6
  "license": "LGPL-3.0-or-later",
@@ -41,7 +41,7 @@
41
41
  "@babel/types": "7.23.0",
42
42
  "@vscode/l10n": "0.0.18",
43
43
  "jsonc-parser": "3.3.1",
44
- "reactronic": "^0.92.25013",
44
+ "reactronic": "^0.93.25025",
45
45
  "typescript": "5.8.2",
46
46
  "vscode-json-languageservice": "5.4.2",
47
47
  "vscode-languageserver": "9.0.1",
@@ -1,14 +0,0 @@
1
- import { AccessKind } from '../common/index.js';
2
- import { DereferenceOperatorEntity, GetterEntity, SetterEntity } from '../entities/index.js';
3
- export type DereferencedVariableAccess = {
4
- kind: AccessKind.Get;
5
- getAccessor: GetterEntity | undefined;
6
- } | {
7
- kind: AccessKind.Set;
8
- setAccessor: SetterEntity | undefined;
9
- } | {
10
- kind: AccessKind.GetSet;
11
- getAccessor: GetterEntity | undefined;
12
- setAccessor: SetterEntity | undefined;
13
- };
14
- export declare function create(indexerEntity: DereferenceOperatorEntity, accessKind: AccessKind): DereferencedVariableAccess;
@@ -1,14 +0,0 @@
1
- import { AccessKind } from '../common/index.js';
2
- import { GetterEntity, IndexerEntity, SetterEntity } from '../entities/index.js';
3
- export type IndexedAccess = {
4
- kind: AccessKind.Get;
5
- getAccessor: GetterEntity | undefined;
6
- } | {
7
- kind: AccessKind.Set;
8
- setAccessor: SetterEntity | undefined;
9
- } | {
10
- kind: AccessKind.GetSet;
11
- getAccessor: GetterEntity | undefined;
12
- setAccessor: SetterEntity | undefined;
13
- };
14
- export declare function create(indexerEntity: IndexerEntity, accessKind: AccessKind): IndexedAccess;
@@ -1,14 +0,0 @@
1
- import { AccessKind } from '../common/index.js';
2
- import { GetterEntity, SetterEntity, VariableEntity } from '../entities/index.js';
3
- export type VariableAccess = {
4
- kind: AccessKind.Get;
5
- getAccessor: GetterEntity | undefined;
6
- } | {
7
- kind: AccessKind.Set;
8
- setAccessor: SetterEntity | undefined;
9
- } | {
10
- kind: AccessKind.GetSet;
11
- getAccessor: GetterEntity | undefined;
12
- setAccessor: SetterEntity | undefined;
13
- };
14
- export declare function create(entity: VariableEntity, accessKind: AccessKind): VariableAccess;
@@ -1,20 +0,0 @@
1
- import { PackageLocale, Query, SearchName } from '../common/index.js';
2
- import { VariantEntity } from '../entities/VariantEntity.js';
3
- import { VariantTypeEntity } from '../entities/VariantTypeEntity.js';
4
- import { FoundNamedDeclaration } from './FoundDeclaration.js';
5
- import { LocalizationContext } from './LocalizationContext.js';
6
- export declare class VariantLookup {
7
- private readonly _variantTypeEntity;
8
- private readonly _localizationContext;
9
- private readonly _searchLocale;
10
- private _translatedVariants;
11
- /**
12
- * Язык, на котором будет осуществляться поиск вариантов.
13
- */
14
- get searchLocale(): PackageLocale;
15
- private get translatedVariants();
16
- constructor(_variantTypeEntity: VariantTypeEntity, _localizationContext: LocalizationContext | undefined);
17
- get(): Query<FoundNamedDeclaration<VariantEntity>>;
18
- getByName(name: SearchName): Query<FoundNamedDeclaration<VariantEntity>>;
19
- private getLocaleOfTypeEntity;
20
- }
@@ -1,36 +0,0 @@
1
- export declare class AssignmentLoweringOptions {
2
- readonly incrementReferenceCountIfRequired: boolean;
3
- readonly performCopyIfRequired: boolean;
4
- readonly decrementReferenceCountIfRequired: boolean;
5
- constructor(incrementReferenceCountIfRequired: boolean, performCopyIfRequired: boolean, decrementReferenceCountIfRequired: boolean);
6
- setIncrementReferenceCountIfRequired(value: boolean): AssignmentLoweringOptions;
7
- setPerformCopyIfRequired(value: boolean): AssignmentLoweringOptions;
8
- setDecrementReferenceCountIfRequired(value: boolean): AssignmentLoweringOptions;
9
- }
10
- export declare class DeclarationWithInitializerLoweringOptions {
11
- readonly incrementReferenceCountIfRequired: boolean;
12
- constructor(incrementReferenceCountIfRequired: boolean);
13
- setIncrementReferenceCountIfRequired(value: boolean): DeclarationWithInitializerLoweringOptions;
14
- }
15
- export declare class CallExpressionLoweringOptions {
16
- readonly lowerModifyingMethodCallIfRequired: boolean;
17
- constructor(lowerModifyingMethodCallIfRequired: boolean);
18
- setLowerModifyingMethodCallIfRequired(value: boolean): CallExpressionLoweringOptions;
19
- }
20
- export declare class ConstructorCallExpressionLoweringOptions {
21
- readonly lowerPlainObjectConstructionIfRequired: boolean;
22
- constructor(lowerPlainObjectConstructionIfRequired: boolean);
23
- setLowerPlainObjectConstructionIfRequired(value: boolean): ConstructorCallExpressionLoweringOptions;
24
- }
25
- export declare class MethodAccessLoweringOptions {
26
- readonly bindIfNotCallee: boolean;
27
- readonly forceUseNonComputedName: boolean;
28
- constructor(bindIfNotCallee: boolean, forceUseNonComputedName: boolean);
29
- setBindIfNotCallee(value: boolean): MethodAccessLoweringOptions;
30
- setForceUseNonComputedName(value: boolean): MethodAccessLoweringOptions;
31
- }
32
- export declare class TextTemplateLiteralLoweringOptions {
33
- readonly createTextTemplateInstance: boolean;
34
- constructor(createTextTemplateInstance: boolean);
35
- setCreateTextTemplateInstance(value: boolean): TextTemplateLiteralLoweringOptions;
36
- }
@@ -1,49 +0,0 @@
1
- export declare class CallExpressionLoweringState {
2
- private flags;
3
- constructor(flags?: MethodCallExpressionLoweringFlags);
4
- get isAliasOrExtensionMethodCallLowered(): boolean;
5
- set isAliasOrExtensionMethodCallLowered(value: boolean);
6
- setIsAliasOrExtensionMethodCallLowered(value: boolean): this;
7
- clone(): CallExpressionLoweringState;
8
- }
9
- declare const enum MethodCallExpressionLoweringFlags {
10
- None = 0,
11
- AliasOrExtensionMethodCallLowered = 1
12
- }
13
- export declare class ConstructorCallExpressionLoweringState {
14
- private flags;
15
- constructor(flags?: ConstructorCallExpressionLoweringFlags);
16
- get isPlainObjectConstructorCallLowered(): boolean;
17
- set isPlainObjectConstructorCallLowered(value: boolean);
18
- setIsPlainObjectConstructorCallLowered(value: boolean): this;
19
- clone(): ConstructorCallExpressionLoweringState;
20
- }
21
- declare const enum ConstructorCallExpressionLoweringFlags {
22
- None = 0,
23
- PlainObjectConstructorCallLowered = 1
24
- }
25
- export declare class TypeMethodDeclarationLoweringState {
26
- private flags;
27
- constructor(flags?: TypeMethodDeclarationLoweringFlags);
28
- get forceUseNonComputedName(): boolean;
29
- set forceUseNonComputedName(value: boolean);
30
- setForceUseNonComputedName(value: boolean): this;
31
- clone(): TypeMethodDeclarationLoweringState;
32
- }
33
- declare const enum TypeMethodDeclarationLoweringFlags {
34
- None = 0,
35
- ForceUseNonComputedName = 1
36
- }
37
- export declare class PackageVariableDeclarationLoweringState {
38
- private flags;
39
- constructor(flags?: PackageVariableDeclarationLoweringFlags);
40
- get shouldBePlacedBeforeOtherDeclarations(): boolean;
41
- set shouldBePlacedBeforeOtherDeclarations(value: boolean);
42
- setShouldBePlacedBeforeOtherDeclarations(value: boolean): this;
43
- clone(): PackageVariableDeclarationLoweringState;
44
- }
45
- declare const enum PackageVariableDeclarationLoweringFlags {
46
- None = 0,
47
- ShouldBePlacedBeforeOtherDeclarations = 1
48
- }
49
- export {};
@@ -1,31 +0,0 @@
1
- import { Tag } from '../analysis/Tags.js';
2
- import { Analyzer } from '../analysis/index.js';
3
- import { Name } from '../common/index.js';
4
- import { VariantDeclaration } from '../tree/index.js';
5
- import { DefinitionKind, EntityHidingLevel, EntityKind, VariantTypeEntity } from './index.js';
6
- export interface VariantEntity {
7
- readonly kind: EntityKind.Variant;
8
- getName(): Name;
9
- getDefinition(): VariantEntityDefinition;
10
- getContainingEntity(): VariantTypeEntity;
11
- isHidden(): EntityHidingLevel | undefined;
12
- getTags(): readonly Tag[];
13
- }
14
- export type VariantEntityDefinition = {
15
- kind: DefinitionKind.Source;
16
- node: VariantDeclaration;
17
- } | {
18
- kind: DefinitionKind.TypeScript;
19
- };
20
- export declare class VariantDeclarationEntity implements VariantEntity {
21
- private readonly _analyzer;
22
- private readonly _node;
23
- readonly kind = EntityKind.Variant;
24
- private readonly _variantTypeDeclaration;
25
- constructor(_analyzer: Analyzer, _node: VariantDeclaration);
26
- getName(): Name;
27
- getDefinition(): VariantEntityDefinition;
28
- getContainingEntity(): VariantTypeEntity;
29
- isHidden(): EntityHidingLevel | undefined;
30
- getTags(): readonly Tag[];
31
- }
@@ -1,10 +0,0 @@
1
- import { Name } from '../common/index.js';
2
- import { VariantEntity } from './VariantEntity.js';
3
- export declare class OriginalVariants {
4
- private readonly _variants;
5
- private readonly _variantsByNameKey;
6
- private get variantsByNameKey();
7
- constructor(_variants: readonly VariantEntity[]);
8
- get(): readonly VariantEntity[];
9
- getByName(name: Name): readonly VariantEntity[];
10
- }