@artel/artc 0.6.25283 → 0.6.25285

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 (97) hide show
  1. package/build/Cli.js +3 -3
  2. package/build/api/Api.js +26 -14
  3. package/build/api/ApiNodeJS.js +3 -3
  4. package/build/api/ApiServices.js +828 -700
  5. package/build/{chunk-2Q4QKW7T.js → chunk-IQ4WP3GU.js} +20378 -18371
  6. package/build/{chunk-MJ2ZVHII.js → chunk-NYUW7OAM.js} +1 -1
  7. package/build/{chunk-7RAZAZE6.js → chunk-YQATIDSS.js} +2 -2
  8. package/build/types/analysis/AccessibilityCheck.d.ts +20 -0
  9. package/build/types/analysis/Analyzer.d.ts +16 -8
  10. package/build/types/analysis/BaseMemberConflictsValidator.d.ts +2 -4
  11. package/build/types/analysis/ConstructorCallResolver.d.ts +3 -4
  12. package/build/types/analysis/MemberAccessExpressionMeaning.d.ts +2 -1
  13. package/build/types/analysis/ModifierValidator.d.ts +17 -15
  14. package/build/types/analysis/NodeTypeUtils.d.ts +3 -3
  15. package/build/types/analysis/PackageMemberLookup.d.ts +11 -4
  16. package/build/types/analysis/ReachabilityChecker.d.ts +27 -0
  17. package/build/types/analysis/ReductionSourceMemberFinder.d.ts +20 -0
  18. package/build/types/analysis/ReservedNameDictionary.d.ts +14 -0
  19. package/build/types/analysis/SourceFileAnalyzer.d.ts +3 -0
  20. package/build/types/analysis/TypeArgumentInferrer.d.ts +1 -0
  21. package/build/types/analysis/TypeMemberLookup.d.ts +36 -22
  22. package/build/types/analysis/Utils.d.ts +2 -0
  23. package/build/types/analysis/WellKnownDeclarations.d.ts +11 -7
  24. package/build/types/analysis/control-flow/GraphBuilder.d.ts +4 -1
  25. package/build/types/analysis/semantic-context/FieldWithInitializerSemanticContext.d.ts +4 -2
  26. package/build/types/analysis/semantic-context/SemanticContextBase.d.ts +6 -5
  27. package/build/types/analysis/semantic-context/SemanticContextValidatingNameConflicts.d.ts +2 -2
  28. package/build/types/analysis/semantic-context/SemanticContextWithParent.d.ts +2 -0
  29. package/build/types/analysis/semantic-context/SourceFileSemanticContext.d.ts +9 -4
  30. package/build/types/analysis/semantic-context/SubprogramBodyAndParametersSemanticContext.d.ts +5 -5
  31. package/build/types/analysis/semantic-context/SubprogramSemanticContext.d.ts +2 -2
  32. package/build/types/analysis/semantic-context/TypeSemanticContext.d.ts +14 -11
  33. package/build/types/api/Api.d.ts +1 -1
  34. package/build/types/common/LocalizationHelper.d.ts +2 -2
  35. package/build/types/common/index.d.ts +0 -1
  36. package/build/types/diagnostic/DiagnosticCode.d.ts +154 -141
  37. package/build/types/emitter/Entities.d.ts +5 -4
  38. package/build/types/emitter/EntityMap.d.ts +4 -0
  39. package/build/types/emitter/IrBuilder.d.ts +1 -0
  40. package/build/types/entities/Entity.d.ts +9 -6
  41. package/build/types/entities/EntityHiding.d.ts +1 -4
  42. package/build/types/entities/EntityLocalizationContext.d.ts +3 -2
  43. package/build/types/entities/TypeEntity.d.ts +4 -3
  44. package/build/types/entities/index.d.ts +0 -2
  45. package/build/types/entities/interfaces/AliasTypeEntity.d.ts +2 -2
  46. package/build/types/entities/interfaces/ConstructorEntity.d.ts +3 -1
  47. package/build/types/entities/interfaces/DereferenceOperatorEntity.d.ts +2 -1
  48. package/build/types/entities/interfaces/DestructorEntity.d.ts +4 -1
  49. package/build/types/entities/interfaces/FunctionEntity.d.ts +3 -1
  50. package/build/types/entities/interfaces/IndexerEntity.d.ts +2 -1
  51. package/build/types/entities/interfaces/OperatorEntity.d.ts +3 -1
  52. package/build/types/entities/interfaces/ReducedTypeEntity.d.ts +99 -0
  53. package/build/types/entities/interfaces/TypeParameterEntity.d.ts +2 -2
  54. package/build/types/entities/interfaces/VariableEntity.d.ts +2 -1
  55. package/build/types/entities/interfaces/index.d.ts +1 -0
  56. package/build/types/entities/intrinsic/IntrinsicConstructorEntity.d.ts +3 -1
  57. package/build/types/entities/intrinsic/IntrinsicFunctionEntity.d.ts +2 -1
  58. package/build/types/entities/intrinsic/IntrinsicVariableEntity.d.ts +2 -1
  59. package/build/types/entities/source/SourceConstructorEntity.d.ts +6 -2
  60. package/build/types/entities/source/SourceDereferenceOperatorEntity.d.ts +3 -1
  61. package/build/types/entities/source/SourceDestructorEntity.d.ts +6 -1
  62. package/build/types/entities/source/SourceFunctionEntity.d.ts +5 -1
  63. package/build/types/entities/source/SourceIndexerEntity.d.ts +3 -1
  64. package/build/types/entities/source/SourceOperatorEntity.d.ts +5 -1
  65. package/build/types/entities/source/SourceReducedTypeEntity.d.ts +44 -0
  66. package/build/types/entities/source/SourceVariableEntity.d.ts +7 -1
  67. package/build/types/entities/source/index.d.ts +1 -0
  68. package/build/types/entities/translated/TranslatedConstructorEntity.d.ts +9 -4
  69. package/build/types/entities/translated/TranslatedDereferenceOperatorEntity.d.ts +3 -1
  70. package/build/types/entities/translated/TranslatedDestructorEntity.d.ts +4 -1
  71. package/build/types/entities/translated/TranslatedFunctionEntity.d.ts +3 -1
  72. package/build/types/entities/translated/TranslatedIndexerEntity.d.ts +3 -1
  73. package/build/types/entities/translated/TranslatedOperatorEntity.d.ts +3 -1
  74. package/build/types/entities/translated/TranslatedReducedTypeEntity.d.ts +59 -0
  75. package/build/types/entities/translated/TranslatedVariableEntity.d.ts +3 -1
  76. package/build/types/entities/translated/index.d.ts +1 -0
  77. package/build/types/project/SourceFile.d.ts +3 -1
  78. package/build/types/services/CompletionService.d.ts +5 -4
  79. package/build/types/services/DisplayService.d.ts +70 -3
  80. package/build/types/services/TranslationService.d.ts +1 -1
  81. package/build/types/services/source-generation/EntityToSyntax.d.ts +4 -0
  82. package/build/types/tree/KeywordKind.d.ts +57 -56
  83. package/build/types/tree/NodeKind.d.ts +142 -140
  84. package/build/types/tree/Nodes.d.ts +51 -11
  85. package/build/types/tree/SyntaxFactory.d.ts +2 -0
  86. package/build/types/tree/SyntaxToCode.d.ts +1 -0
  87. package/build/types/ts-interop/Entities.d.ts +10 -1
  88. package/build/types/ts-interop/TsPackageMembersCreator.d.ts +1 -1
  89. package/build/types/types/ReducedType.d.ts +24 -0
  90. package/build/types/types/Type.d.ts +2 -1
  91. package/build/types/types/TypeFactory.d.ts +3 -2
  92. package/build/types/types/index.d.ts +1 -0
  93. package/package.json +1 -1
  94. package/build/types/analysis/semantic-context/SemanticContextBasedEntityHidingMatcher.d.ts +0 -14
  95. package/build/types/entities/BaseEntityHidingMatcher.d.ts +0 -11
  96. package/build/types/entities/EntityHidingMatcherWithinTypeEntity.d.ts +0 -10
  97. package/build/types/parser/ReservedIdentifierDictionary.d.ts +0 -11
@@ -58,7 +58,7 @@ export declare class TsPackageMembersCreator {
58
58
  private createReplacementSourceEntities;
59
59
  private getSourceEntity;
60
60
  }
61
- export type NamedPackageMemberDeclaration = tree.PackageAliasTypeDeclaration | tree.PackageFunctionDeclaration | tree.PackageFunctionTypeDeclaration | tree.PackageStructuredTypeDeclaration | tree.PackageVariableDeclaration | tree.PackageVariableGetterDeclaration | tree.PackageVariableSetterDeclaration | tree.PackageVariantTypeDeclaration;
61
+ export type NamedPackageMemberDeclaration = tree.PackageAliasTypeDeclaration | tree.PackageReducedTypeDeclaration | tree.PackageFunctionDeclaration | tree.PackageFunctionTypeDeclaration | tree.PackageStructuredTypeDeclaration | tree.PackageVariableDeclaration | tree.PackageVariableGetterDeclaration | tree.PackageVariableSetterDeclaration | tree.PackageVariantTypeDeclaration;
62
62
  export declare class TsPackageMembersCreationResult {
63
63
  readonly members: PackageEntityMembers;
64
64
  readonly typeEntityBySymbol: ReadonlyMap<ts.Symbol, TypeEntity>;
@@ -0,0 +1,24 @@
1
+ import { Analyzer } from '../analysis/index.js';
2
+ import { ReducedTypeEntity, TypeParameterEntity } from '../entities/index.js';
3
+ import { IType, Substitutions, Type } from './index.js';
4
+ export declare class ReducedType implements IType {
5
+ private readonly analyzer;
6
+ private readonly entity;
7
+ private readonly substitutions;
8
+ readonly kind = "reduced";
9
+ private readonly reductionSource;
10
+ private readonly baseObjectType;
11
+ private readonly baseAspectTypes;
12
+ get isNullType(): boolean;
13
+ get debuggerDisplay(): string;
14
+ constructor(analyzer: Analyzer, entity: ReducedTypeEntity, substitutions: Substitutions);
15
+ getReductionSource(): Type;
16
+ getBaseObjectType(): Type | undefined;
17
+ getBaseAspectTypes(): readonly Type[];
18
+ getTypeParameters(): readonly TypeParameterEntity[];
19
+ getSubstitutions(): Substitutions;
20
+ applySubstitutions(substitutions: Substitutions): Type;
21
+ equals(other: Type, considerLocale?: boolean): boolean;
22
+ getEntity(): ReducedTypeEntity;
23
+ toString(): string;
24
+ }
@@ -3,13 +3,14 @@ import { AliasType } from './AliasType.js';
3
3
  import { FunctionType } from './FunctionType.js';
4
4
  import { IntersectionType } from './IntersectionType.js';
5
5
  import { ParameterType } from './ParameterType.js';
6
+ import { ReducedType } from './ReducedType.js';
6
7
  import { StructuredType } from './StructuredType.js';
7
8
  import { Substitutions } from './Substitutions.js';
8
9
  import { SubstitutionStubType } from './SubstitutionStubType.js';
9
10
  import { UnionType } from './UnionType.js';
10
11
  import { UnresolvedType } from './UnresolvedType.js';
11
12
  import { VariantType } from './VariantType.js';
12
- export type Type = StructuredType | VariantType | FunctionType | AliasType | UnresolvedType | ParameterType | UnionType | IntersectionType | SubstitutionStubType;
13
+ export type Type = StructuredType | VariantType | FunctionType | AliasType | UnresolvedType | ParameterType | UnionType | IntersectionType | SubstitutionStubType | ReducedType;
13
14
  export interface IType {
14
15
  readonly isNullType: boolean;
15
16
  getSubstitutions(): Substitutions;
@@ -1,6 +1,6 @@
1
1
  import { Analyzer } from '../analysis/index.js';
2
- import { AliasTypeEntity, FunctionTypeEntity, StructuredTypeEntity, TypeParameterEntity, VariantTypeEntity } from '../entities/index.js';
3
- import { AliasType, FunctionType, ParameterType, StructuredType, Substitutions, SubstitutionStubType, Type, UnresolvedType, VariantType } from './index.js';
2
+ import { AliasTypeEntity, FunctionTypeEntity, ReducedTypeEntity, StructuredTypeEntity, TypeParameterEntity, VariantTypeEntity } from '../entities/index.js';
3
+ import { AliasType, FunctionType, ParameterType, ReducedType, StructuredType, Substitutions, SubstitutionStubType, Type, UnresolvedType, VariantType } from './index.js';
4
4
  export declare class TypeFactory {
5
5
  readonly analyzer: Analyzer;
6
6
  constructor(analyzer: Analyzer);
@@ -9,6 +9,7 @@ export declare class TypeFactory {
9
9
  getVariantType(entity: VariantTypeEntity, substitutions: Substitutions): VariantType;
10
10
  getFunctionType(entity: FunctionTypeEntity, substitutions: Substitutions): FunctionType;
11
11
  getAliasType(entity: AliasTypeEntity, substitutions: Substitutions): AliasType;
12
+ getReducedType(entity: ReducedTypeEntity, substitutions: Substitutions): ReducedType;
12
13
  getUnionType(types: readonly Type[], reduce?: boolean): Type;
13
14
  getIntersectionType(types: readonly Type[], reduce?: boolean): Type;
14
15
  getUnresolvedType(): UnresolvedType;
@@ -2,6 +2,7 @@ export * from './AliasType.js';
2
2
  export * from './FunctionType.js';
3
3
  export * from './IntersectionType.js';
4
4
  export * from './ParameterType.js';
5
+ export * from './ReducedType.js';
5
6
  export * from './StandardTypes.js';
6
7
  export * from './StructuredType.js';
7
8
  export * from './Substitutions.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artel/artc",
3
- "version": "0.6.25283",
3
+ "version": "0.6.25285",
4
4
  "description": "Артель Компилятор | Artel Compiler",
5
5
  "author": "Nezaboodka Team <contact@nezaboodka.com>",
6
6
  "license": "LGPL-3.0-or-later",
@@ -1,14 +0,0 @@
1
- import { BaseEntityHidingMatcher, PackageEntity } from '../../entities/index.js';
2
- import { TypeEntity } from '../../entities/TypeEntity.js';
3
- import { SourceFile } from '../../project/SourceFile.js';
4
- import { SemanticContext } from './SemanticContext.js';
5
- export declare class SemanticContextBasedEntityHidingMatcher extends BaseEntityHidingMatcher {
6
- private readonly semanticContext;
7
- private readonly typeEntity_;
8
- private sourceFile_;
9
- private package_;
10
- protected get sourceFile(): SourceFile;
11
- protected get package(): PackageEntity;
12
- protected get typeEntity(): TypeEntity | undefined;
13
- constructor(semanticContext: SemanticContext);
14
- }
@@ -1,11 +0,0 @@
1
- import { SourceFile } from '../project/SourceFile.js';
2
- import { EntityHidingLevel, IEntityHidingMatcher } from './EntityHiding.js';
3
- import { PackageEntity } from './interfaces/PackageEntity.js';
4
- import { TypeEntity } from './TypeEntity.js';
5
- export declare abstract class BaseEntityHidingMatcher implements IEntityHidingMatcher {
6
- protected abstract typeEntity: TypeEntity | undefined;
7
- protected abstract sourceFile: SourceFile | undefined;
8
- protected abstract package: PackageEntity;
9
- matches(hiding: EntityHidingLevel | undefined): boolean;
10
- private isDerivedFromOrEquals;
11
- }
@@ -1,10 +0,0 @@
1
- import { SourceFile } from '../project/SourceFile.js';
2
- import { BaseEntityHidingMatcher } from './BaseEntityHidingMatcher.js';
3
- import { PackageEntity, TypeEntity } from './index.js';
4
- export declare class EntityHidingMatcherWithinTypeEntity extends BaseEntityHidingMatcher {
5
- private readonly typeEntity_;
6
- protected sourceFile: SourceFile | undefined;
7
- protected get typeEntity(): TypeEntity | undefined;
8
- protected get package(): PackageEntity;
9
- constructor(typeEntity_: TypeEntity);
10
- }
@@ -1,11 +0,0 @@
1
- import { PackageLocale } from '../common/index.js';
2
- export declare const enum ReservedIdentifierKind {
3
- Result = 0,
4
- Value = 1
5
- }
6
- export declare const reservedIdentifiersByLocale: {
7
- [T in PackageLocale]: {
8
- [T in ReservedIdentifierKind]: string;
9
- };
10
- };
11
- export declare const reservedIdentifiersKindByValue: { [T in PackageLocale]: ReadonlyMap<string, ReservedIdentifierKind>; };