@artel/artc 0.6.25280 → 0.6.25282

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 (86) hide show
  1. package/build/Cli.js +3 -3
  2. package/build/api/Api.js +16 -10
  3. package/build/api/ApiNodeJS.js +3 -3
  4. package/build/api/ApiServices.js +315 -219
  5. package/build/{chunk-YIFO3FBO.js → chunk-3DN3M64Y.js} +3 -3
  6. package/build/{chunk-W3UL6UED.js → chunk-DURHSZYF.js} +5 -4
  7. package/build/{chunk-LLI2DYRX.js → chunk-VVFLEWSA.js} +3236 -3331
  8. package/build/types/analysis/AccessedFunction.d.ts +4 -0
  9. package/build/types/analysis/AnalyzedTranslationPackage.d.ts +3 -3
  10. package/build/types/analysis/Analyzer.d.ts +35 -48
  11. package/build/types/analysis/AutotypeCallExpressionMeaning.d.ts +5 -5
  12. package/build/types/analysis/BaseExpressionMeaning.d.ts +8 -18
  13. package/build/types/analysis/CallExpressionMeaning.d.ts +4 -9
  14. package/build/types/analysis/DereferenceExpressionMeaning.d.ts +3 -4
  15. package/build/types/analysis/IdentifierExpressionMeaning.d.ts +8 -16
  16. package/build/types/analysis/IndexedAccessExpressionMeaning.d.ts +4 -8
  17. package/build/types/analysis/MemberAccessExpressionMeaning.d.ts +8 -16
  18. package/build/types/analysis/NamedTypeResolver.d.ts +4 -4
  19. package/build/types/analysis/NamedTypeSpecifierResolver.d.ts +4 -4
  20. package/build/types/analysis/NodeTypeUtils.d.ts +1 -1
  21. package/build/types/analysis/ObjectExpressionMeaning.d.ts +4 -9
  22. package/build/types/analysis/{PackageMemberNameConflictsValidator.d.ts → PackageMemberConflictsValidator.d.ts} +8 -4
  23. package/build/types/analysis/ResolvedTextTranslationPackage.d.ts +9 -0
  24. package/build/types/analysis/SourceFileAnalyzer.d.ts +1 -0
  25. package/build/types/analysis/SourcePackageDependencyGraph.d.ts +4 -0
  26. package/build/types/analysis/SubstitutedFunction.d.ts +3 -0
  27. package/build/types/analysis/TagMeaning.d.ts +4 -4
  28. package/build/types/analysis/UserDefinableBinaryOperatorResolver.d.ts +4 -3
  29. package/build/types/analysis/UserDefinableUnaryOperatorResolver.d.ts +4 -3
  30. package/build/types/analysis/Utils.d.ts +1 -0
  31. package/build/types/analysis/semantic-context/SemanticContextBase.d.ts +1 -1
  32. package/build/types/analysis/semantic-context/SourceFileSemanticContext.d.ts +8 -4
  33. package/build/types/api/Api.d.ts +4 -5
  34. package/build/types/common/ArrayUtils.d.ts +3 -1
  35. package/build/types/common/Displayable.d.ts +4 -4
  36. package/build/types/common/FormatString.d.ts +1 -1
  37. package/build/types/common/index.d.ts +3 -0
  38. package/build/types/diagnostic/DiagnosticCode.d.ts +238 -238
  39. package/build/types/diagnostic/DiagnosticData.d.ts +2 -2
  40. package/build/types/emitter/IrBuilder.d.ts +3 -1
  41. package/build/types/emitter/IrFactory.d.ts +2 -2
  42. package/build/types/emitter/Transformer.d.ts +3 -3
  43. package/build/types/emitter/ir/Nodes.d.ts +6 -6
  44. package/build/types/emitter/ir/types.d.ts +2 -2
  45. package/build/types/entities/Entity.d.ts +1 -1
  46. package/build/types/entities/EntityLocalizationContext.d.ts +2 -1
  47. package/build/types/entities/PackageEntityMembers.d.ts +22 -0
  48. package/build/types/entities/index.d.ts +1 -1
  49. package/build/types/entities/interfaces/PackageEntity.d.ts +1 -2
  50. package/build/types/entities/interfaces/TextTranslationEntity.d.ts +2 -1
  51. package/build/types/entities/interfaces/VariableEntity.d.ts +1 -1
  52. package/build/types/entities/source/SourcePackageEntity.d.ts +1 -2
  53. package/build/types/entities/source/SourceTextTranslationEntity.d.ts +2 -1
  54. package/build/types/entities/source/SourceTypeExtensionEntity.d.ts +4 -0
  55. package/build/types/entities/source/SourceVariableEntity.d.ts +2 -2
  56. package/build/types/entities/translated/TranslatedPackageEntity.d.ts +2 -3
  57. package/build/types/project/PackageContent.d.ts +1 -1
  58. package/build/types/project/SourcePackage.d.ts +3 -1
  59. package/build/types/project/configuration/ConfigurationConverter.d.ts +1 -1
  60. package/build/types/project/configuration/types/PackageConfigurationEn.d.ts +4 -4
  61. package/build/types/project/configuration/types/PackageConfigurationRu.d.ts +4 -4
  62. package/build/types/services/AddBlockToScriptService.d.ts +17 -0
  63. package/build/types/services/CustomRequests.d.ts +11 -2
  64. package/build/types/services/DisplayService.d.ts +1 -2
  65. package/build/types/services/EvaluatableExpressionService.d.ts +1 -1
  66. package/build/types/services/LanguageServer.d.ts +3 -1
  67. package/build/types/services/SourceFileItemsService.d.ts +1 -1
  68. package/build/types/tree/NodeKind.d.ts +1 -1
  69. package/build/types/tree/Nodes.d.ts +6 -6
  70. package/build/types/tree/SyntaxFactory.d.ts +1 -1
  71. package/build/types/tree/SyntaxToCode.d.ts +1 -1
  72. package/build/types/tree/Token.d.ts +4 -3
  73. package/build/types/tree/TokenKind.d.ts +58 -60
  74. package/build/types/types/AliasType.d.ts +1 -1
  75. package/build/types/types/FunctionType.d.ts +2 -2
  76. package/build/types/types/IntersectionType.d.ts +1 -1
  77. package/build/types/types/ParameterType.d.ts +1 -1
  78. package/build/types/types/Substitutions.d.ts +1 -1
  79. package/build/types/types/Type.d.ts +1 -4
  80. package/build/types/types/TypeMembers.d.ts +8 -8
  81. package/build/types/types/UnionType.d.ts +1 -1
  82. package/build/types/types/VariantType.d.ts +1 -1
  83. package/package.json +1 -1
  84. package/build/types/analysis/AnalyzedTextTranslationPackage.d.ts +0 -20
  85. package/build/types/analysis/SourceFileMembers.d.ts +0 -22
  86. package/build/types/entities/PackageMembers.d.ts +0 -15
@@ -1,6 +1,6 @@
1
1
  import { Analyzer } from '../analysis/index.js';
2
2
  import { FunctionTypeEntity, TypeParameterEntity } from '../entities/index.js';
3
- import { IType, Substitutions, Type, Parameter } from './index.js';
3
+ import { IType, Parameter, Substitutions, Type } from './index.js';
4
4
  export declare class FunctionType implements IType {
5
5
  private readonly analyzer;
6
6
  private readonly entity;
@@ -13,7 +13,7 @@ export declare class FunctionType implements IType {
13
13
  getTypeParameters(): readonly TypeParameterEntity[];
14
14
  getSubstitutions(): Substitutions;
15
15
  applySubstitutions(substitutions: Substitutions): FunctionType;
16
- equals(other: Type): boolean;
16
+ equals(other: Type, considerLocale?: boolean): boolean;
17
17
  getEntity(): FunctionTypeEntity;
18
18
  isAsync(): boolean;
19
19
  getReturnType(): Type;
@@ -11,7 +11,7 @@ export declare class IntersectionType implements IType {
11
11
  get unaliasedFlattenedTypes(): readonly Type[];
12
12
  get debuggerDisplay(): string;
13
13
  constructor(analyzer: Analyzer, originalTypes: readonly Type[]);
14
- equals(other: Type): boolean;
14
+ equals(other: Type, considerLocale?: boolean): boolean;
15
15
  getSubstitutions(): Substitutions;
16
16
  applySubstitutions(substitutions: Substitutions): Type;
17
17
  getEntity(): TypeEntity | undefined;
@@ -17,7 +17,7 @@ export declare class ParameterType implements IType {
17
17
  getSubstitutions(): Substitutions;
18
18
  getEntity(): TypeParameterEntity;
19
19
  applySubstitutions(substitutions: Substitutions): Type;
20
- equals(other: Type): boolean;
20
+ equals(other: Type, considerLocale?: boolean): boolean;
21
21
  getBaseObjectTypeOrAliasedType(): Type | undefined;
22
22
  toString(): string;
23
23
  }
@@ -28,6 +28,6 @@ export declare class Substitutions {
28
28
  getTypes(): Iterable<Type>;
29
29
  substituteTypes(substitutions: Substitutions): Substitutions;
30
30
  substituteTypesAndMerge(substitutions: Substitutions): Substitutions;
31
- equals(other: Substitutions): boolean;
31
+ equals(other: Substitutions, considerLocale?: boolean): boolean;
32
32
  }
33
33
  export type SubstitutionMap = ReadonlyMap<TypeParameterEntity, Type>;
@@ -12,10 +12,7 @@ export interface IType {
12
12
  readonly isNullType: boolean;
13
13
  getSubstitutions(): Substitutions;
14
14
  applySubstitutions(substitutions: Substitutions): Type;
15
- /**
16
- * Сравнивает типы без учёта языка.
17
- */
18
- equals(other: Type): boolean;
15
+ equals(other: Type, considerLocale: boolean): boolean;
19
16
  getEntity(): TypeEntity | undefined;
20
17
  getBaseObjectTypeOrAliasedType(): Type | undefined;
21
18
  }
@@ -30,7 +30,7 @@ export declare class Method implements ITypeMember {
30
30
  isOverride(): boolean;
31
31
  applySubstitutions(substitutions: Substitutions): Method;
32
32
  getTypeParametersArity(): number;
33
- equals(other: TypeMember): boolean;
33
+ equals(other: TypeMember, considerLocale?: boolean): boolean;
34
34
  toString(): string;
35
35
  }
36
36
  export declare class Parameter {
@@ -60,7 +60,7 @@ export declare class Field implements ITypeMember {
60
60
  isOverride(): boolean;
61
61
  isVariant(): boolean;
62
62
  applySubstitutions(substitutions: Substitutions): Field;
63
- equals(other: TypeMember): boolean;
63
+ equals(other: TypeMember, considerLocale?: boolean): boolean;
64
64
  toString(): string;
65
65
  }
66
66
  export declare class Operator implements ITypeMember {
@@ -82,7 +82,7 @@ export declare class Operator implements ITypeMember {
82
82
  isStatic(): boolean;
83
83
  isOverride(): boolean;
84
84
  applySubstitutions(substitutions: Substitutions): Operator;
85
- equals(other: TypeMember): boolean;
85
+ equals(other: TypeMember, considerLocale?: boolean): boolean;
86
86
  toString(): string;
87
87
  }
88
88
  export declare class Constructor implements ITypeMember {
@@ -100,7 +100,7 @@ export declare class Constructor implements ITypeMember {
100
100
  isStatic(): boolean;
101
101
  applySubstitutions(substitutions: Substitutions): TypeMember;
102
102
  getConstructedType(): Type;
103
- equals(other: TypeMember): boolean;
103
+ equals(other: TypeMember, considerLocale?: boolean): boolean;
104
104
  toString(): string;
105
105
  }
106
106
  export declare class Destructor implements ITypeMember {
@@ -116,7 +116,7 @@ export declare class Destructor implements ITypeMember {
116
116
  isHidden(): EntityHidingLevel | undefined;
117
117
  isStatic(): boolean;
118
118
  applySubstitutions(substitutions: Substitutions): Destructor;
119
- equals(other: TypeMember): boolean;
119
+ equals(other: TypeMember, considerLocale?: boolean): boolean;
120
120
  toString(): string;
121
121
  }
122
122
  export declare class Indexer implements ITypeMember {
@@ -134,7 +134,7 @@ export declare class Indexer implements ITypeMember {
134
134
  isStatic(): boolean;
135
135
  isOverride(): boolean;
136
136
  applySubstitutions(substitutions: Substitutions): Indexer;
137
- equals(other: TypeMember): boolean;
137
+ equals(other: TypeMember, considerLocale?: boolean): boolean;
138
138
  toString(): string;
139
139
  }
140
140
  export declare class DereferenceOperator implements ITypeMember {
@@ -150,13 +150,13 @@ export declare class DereferenceOperator implements ITypeMember {
150
150
  isStatic(): boolean;
151
151
  isOverride(): boolean;
152
152
  applySubstitutions(substitutions: Substitutions): DereferenceOperator;
153
- equals(other: TypeMember): boolean;
153
+ equals(other: TypeMember, considerLocale?: boolean): boolean;
154
154
  toString(): string;
155
155
  }
156
156
  export interface ITypeMember {
157
157
  isHidden(): EntityHidingLevel | undefined;
158
158
  isStatic(): boolean;
159
159
  getSubstitutions(): Substitutions;
160
- equals(other: TypeMember): boolean;
160
+ equals(other: TypeMember, considerLocale: boolean): boolean;
161
161
  applySubstitutions(substitutions: Substitutions): TypeMember;
162
162
  }
@@ -11,7 +11,7 @@ export declare class UnionType implements IType {
11
11
  get unaliasedFlattenedTypes(): readonly Type[];
12
12
  get debuggerDisplay(): string;
13
13
  constructor(analyzer: Analyzer, originalTypes: readonly Type[]);
14
- equals(other: Type): boolean;
14
+ equals(other: Type, considerLocale?: boolean): boolean;
15
15
  getSubstitutions(): Substitutions;
16
16
  applySubstitutions(substitutions: Substitutions): Type;
17
17
  getEntity(): TypeEntity | undefined;
@@ -12,7 +12,7 @@ export declare class VariantType implements IType {
12
12
  getSubstitutions(): Substitutions;
13
13
  applySubstitutions(substitutions: Substitutions): Type;
14
14
  getEntity(): VariantTypeEntity;
15
- equals(other: Type): boolean;
15
+ equals(other: Type, considerLocale?: boolean): boolean;
16
16
  getUnderlyingType(): Type;
17
17
  getBaseType(): Type | undefined;
18
18
  getBaseObjectTypeOrAliasedType(): Type | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artel/artc",
3
- "version": "0.6.25280",
3
+ "version": "0.6.25282",
4
4
  "description": "Артель Компилятор | Artel Compiler",
5
5
  "author": "Nezaboodka Team <contact@nezaboodka.com>",
6
6
  "license": "LGPL-3.0-or-later",
@@ -1,20 +0,0 @@
1
- import { PackageEntity, TextTranslationEntity } from '../entities/index.js';
2
- import { PackageName, TextTranslationPackage } from '../project/index.js';
3
- import { Analyzer } from './Analyzer.js';
4
- import { TextKey } from './TextIdentity.js';
5
- export declare class AnalyzedTextTranslationPackage {
6
- private readonly analyzer;
7
- private readonly package_;
8
- private readonly targetPackage;
9
- private readonly entitiesByTextKey;
10
- constructor(analyzer: Analyzer, package_: TextTranslationPackage, targetPackage: PackageEntity);
11
- isPrimary(): boolean;
12
- getTargetPackage(): PackageEntity;
13
- getDefinition(): TextTranslationPackage;
14
- getTargetPackageName(): PackageName;
15
- getTranslationLocale(): string;
16
- getEntitiesByTextKey(textKey: TextKey): readonly TextTranslationEntity[] | undefined;
17
- private createEntitiesByTextKey;
18
- private textTranslationDeclarations;
19
- private translationsDeclarations;
20
- }
@@ -1,22 +0,0 @@
1
- import { Name } from '../common/index.js';
2
- import { DiagnosticAcceptor } from '../diagnostic/Diagnostic.js';
3
- import { PackageAliasEntity, PackageFunctionEntity, PackageTypeEntity, PackageVariableEntity, TypeExtensionEntity } from '../entities/index.js';
4
- import { Analyzer } from './Analyzer.js';
5
- export declare class SourceFileMembers {
6
- private static readonly emptyNamedMembers;
7
- private static readonly emptyPackageAliases;
8
- private readonly analyzer;
9
- private readonly namedMembers;
10
- private readonly typeExtensions;
11
- private readonly declarationsByName_;
12
- get declarationsByName(): ReadonlyMap<string, readonly NamedSourceFileMemberEntity[]>;
13
- constructor(analyzer: Analyzer, namedMembers: readonly NamedSourceFileMemberEntity[], typeExtensions: readonly TypeExtensionEntity[]);
14
- getNamedDeclarations(): readonly NamedSourceFileMemberEntity[];
15
- getNamedDeclarationsByName(name: Name): readonly NamedSourceFileMemberEntity[];
16
- getPackageAliases(): readonly PackageAliasEntity[];
17
- getPackageAliasesByName(name: Name): readonly PackageAliasEntity[];
18
- getTypeExtensions(): readonly TypeExtensionEntity[];
19
- validateNameConflicts(diagnostics: DiagnosticAcceptor): void;
20
- private getDiagnosticLocation;
21
- }
22
- export type NamedSourceFileMemberEntity = PackageTypeEntity | PackageVariableEntity | PackageFunctionEntity | PackageAliasEntity;
@@ -1,15 +0,0 @@
1
- import { Name } from '../common/index.js';
2
- import { NamedPackageMemberEntity, PackageMemberEntity, TypeEntity, TypeExtensionEntity } from '../entities/index.js';
3
- export declare class PackageEntityMembers {
4
- private readonly namedMembers;
5
- private readonly typeExtensions;
6
- private static readonly emptyNamedMembers;
7
- private readonly membersByNameKey_;
8
- private get membersByNameKey();
9
- constructor(namedMembers: readonly NamedPackageMemberEntity[], typeExtensions: readonly TypeExtensionEntity[]);
10
- getNamedMembers(): readonly NamedPackageMemberEntity[];
11
- getNamedMembersByName(name: Name): readonly NamedPackageMemberEntity[];
12
- getTypeExtensions(): readonly TypeExtensionEntity[];
13
- getTypeExtensionsByType(type: TypeEntity): readonly TypeExtensionEntity[];
14
- getAll(): readonly PackageMemberEntity[];
15
- }