@artel/artc 0.6.25258 → 0.6.25260

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 (200) hide show
  1. package/build/Cli.js +3 -3
  2. package/build/api/Api.js +28 -20
  3. package/build/api/ApiNodeJS.js +3 -3
  4. package/build/api/ApiServices.js +1266 -1217
  5. package/build/{chunk-642CVYPB.js → chunk-7FERF2MU.js} +11 -11
  6. package/build/{chunk-QAOTQQD7.js → chunk-RIIOVQBM.js} +14371 -13456
  7. package/build/{chunk-B5Z42ZT6.js → chunk-ZNXSVPQT.js} +1 -1
  8. package/build/types/analysis/AccessedFunction.d.ts +11 -11
  9. package/build/types/analysis/AnalyzedTranslationPackage.d.ts +28 -28
  10. package/build/types/analysis/Analyzer.d.ts +184 -168
  11. package/build/types/analysis/ArgumentToParameterMatchResult.d.ts +9 -9
  12. package/build/types/analysis/ArgumentsToParametersMatcher.d.ts +8 -8
  13. package/build/types/analysis/AssignmentChecker.d.ts +4 -4
  14. package/build/types/analysis/AutotypeCallExpressionMeaning.d.ts +8 -6
  15. package/build/types/analysis/BaseExpressionMeaning.d.ts +5 -5
  16. package/build/types/analysis/BaseMemberConflictsValidator.d.ts +7 -7
  17. package/build/types/analysis/CallExpressionMeaning.d.ts +4 -6
  18. package/build/types/analysis/ConstructorCallResolver.d.ts +1 -1
  19. package/build/types/analysis/DeclarationsUsageCounter.d.ts +5 -5
  20. package/build/types/analysis/DereferenceExpressionMeaning.d.ts +4 -4
  21. package/build/types/analysis/DiagnosticArgumentFactory.d.ts +2 -2
  22. package/build/types/analysis/DiagnosticCollector.d.ts +11 -9
  23. package/build/types/analysis/DisplayableEntity.d.ts +30 -30
  24. package/build/types/analysis/IdentifierExpressionMeaning.d.ts +7 -7
  25. package/build/types/analysis/ImportedPackageNameTree.d.ts +1 -1
  26. package/build/types/analysis/IndexedAccessExpressionMeaning.d.ts +4 -4
  27. package/build/types/analysis/InstanceFieldsInitializationValidator.d.ts +6 -6
  28. package/build/types/analysis/MemberAccessExpressionMeaning.d.ts +7 -7
  29. package/build/types/analysis/ModifierValidator.d.ts +3 -3
  30. package/build/types/analysis/NamedTypeResolver.d.ts +3 -3
  31. package/build/types/analysis/NamedTypeSpecifierResolver.d.ts +3 -3
  32. package/build/types/analysis/NodeTypeUtils.d.ts +1 -1
  33. package/build/types/analysis/ObjectExpressionMeaning.d.ts +2 -2
  34. package/build/types/analysis/OverloadResolver.d.ts +13 -13
  35. package/build/types/analysis/OwnAndBaseConstructorCallsChecker.d.ts +5 -5
  36. package/build/types/analysis/PackageAndStaticVariablesInitializationValidator.d.ts +5 -5
  37. package/build/types/analysis/PackageMemberLookup.d.ts +2 -2
  38. package/build/types/analysis/PackageMemberNameConflictsValidator.d.ts +7 -7
  39. package/build/types/analysis/ReturnTypeInferrer.d.ts +4 -4
  40. package/build/types/analysis/SourceFileMembers.d.ts +6 -6
  41. package/build/types/analysis/SourcePackageDependencyGraph.d.ts +3 -3
  42. package/build/types/analysis/SubstitutedFunction.d.ts +8 -8
  43. package/build/types/analysis/TagMeaning.d.ts +4 -4
  44. package/build/types/analysis/Tags.d.ts +8 -7
  45. package/build/types/analysis/{Localization.d.ts → Translation.d.ts} +1 -23
  46. package/build/types/analysis/TypeArgumentInferrer.d.ts +9 -9
  47. package/build/types/analysis/TypeInferrer.d.ts +4 -4
  48. package/build/types/analysis/TypeMemberConflictsValidator.d.ts +4 -4
  49. package/build/types/analysis/TypeMemberImplementationChecker.d.ts +3 -3
  50. package/build/types/analysis/TypeMemberLookup.d.ts +7 -7
  51. package/build/types/analysis/TypeNarrower.d.ts +7 -7
  52. package/build/types/analysis/UserDefinableBinaryOperatorResolver.d.ts +6 -6
  53. package/build/types/analysis/UserDefinableUnaryOperatorResolver.d.ts +3 -3
  54. package/build/types/analysis/Utils.d.ts +1 -2
  55. package/build/types/analysis/WellKnownDeclarations.d.ts +32 -32
  56. package/build/types/analysis/control-flow/GraphBuilder.d.ts +11 -11
  57. package/build/types/analysis/control-flow/NarrowableReference.d.ts +10 -10
  58. package/build/types/analysis/semantic-context/Declarations.d.ts +0 -24
  59. package/build/types/analysis/semantic-context/FieldWithInitializerSemanticContext.d.ts +2 -2
  60. package/build/types/analysis/semantic-context/SemanticContextBase.d.ts +23 -22
  61. package/build/types/analysis/semantic-context/SemanticContextBasedEntityHidingMatcher.d.ts +4 -4
  62. package/build/types/analysis/semantic-context/SemanticContextBuilder.d.ts +25 -25
  63. package/build/types/analysis/semantic-context/SemanticContextValidatingNameConflicts.d.ts +9 -9
  64. package/build/types/analysis/semantic-context/SourceFileSemanticContext.d.ts +8 -8
  65. package/build/types/analysis/semantic-context/SubprogramSemanticContext.d.ts +27 -27
  66. package/build/types/analysis/semantic-context/TypeSemanticContext.d.ts +9 -9
  67. package/build/types/api/Api.d.ts +2 -2
  68. package/build/types/common/Cached.d.ts +3 -3
  69. package/build/types/common/CancellationToken.d.ts +2 -2
  70. package/build/types/common/Delayed.d.ts +2 -2
  71. package/build/types/common/Displayable.d.ts +3 -3
  72. package/build/types/common/HelperPhrases.d.ts +2 -1
  73. package/build/types/common/Interner.d.ts +1 -1
  74. package/build/types/common/Lazy.d.ts +3 -3
  75. package/build/types/common/Option.d.ts +2 -2
  76. package/build/types/common/PerformanceMeasurement.d.ts +2 -2
  77. package/build/types/common/Query.d.ts +15 -0
  78. package/build/types/common/ThrottledCancellationToken.d.ts +6 -6
  79. package/build/types/common/TreeQuery.d.ts +2 -5
  80. package/build/types/diagnostic/DiagnosticCode.d.ts +142 -139
  81. package/build/types/diagnostic/DiagnosticData.d.ts +3 -3
  82. package/build/types/diagnostic/RangeDiagnostic.d.ts +3 -3
  83. package/build/types/emitter/DebugStack.d.ts +2 -2
  84. package/build/types/emitter/Emitter.d.ts +5 -5
  85. package/build/types/emitter/EmitterContext.d.ts +21 -21
  86. package/build/types/emitter/EntityMap.d.ts +8 -8
  87. package/build/types/emitter/GeneralLowering.d.ts +2 -2
  88. package/build/types/emitter/IrBuilder.d.ts +10 -10
  89. package/build/types/emitter/IrToJs.d.ts +5 -5
  90. package/build/types/emitter/Transformer.d.ts +5 -5
  91. package/build/types/emitter/ir/EmitOptions.d.ts +27 -13
  92. package/build/types/emitter/ir/Nodes.d.ts +28 -27
  93. package/build/types/emitter/ir/types.d.ts +2 -2
  94. package/build/types/entities/AliasTypeEntity.d.ts +15 -12
  95. package/build/types/entities/AliasedType.d.ts +2 -2
  96. package/build/types/entities/BaseAspectTypes.d.ts +31 -0
  97. package/build/types/entities/BaseEntityHidingMatcher.d.ts +1 -1
  98. package/build/types/entities/BaseObjectType.d.ts +31 -0
  99. package/build/types/entities/ConstructorEntity.d.ts +51 -38
  100. package/build/types/entities/DereferenceOperatorEntity.d.ts +19 -13
  101. package/build/types/entities/DestructorEntity.d.ts +21 -14
  102. package/build/types/entities/EntityHidingMatcherWithinTypeEntity.d.ts +2 -2
  103. package/build/types/entities/EntityLocalizationContext.d.ts +10 -10
  104. package/build/types/entities/FunctionEntity.d.ts +86 -70
  105. package/build/types/entities/FunctionTypeEntity.d.ts +37 -31
  106. package/build/types/entities/GetterEntity.d.ts +51 -30
  107. package/build/types/entities/IEntity.d.ts +12 -0
  108. package/build/types/entities/IndexerEntity.d.ts +24 -24
  109. package/build/types/entities/LocalizableTextEntity.d.ts +26 -21
  110. package/build/types/entities/OperatorEntity.d.ts +23 -16
  111. package/build/types/entities/PackageAliasEntity.d.ts +15 -9
  112. package/build/types/entities/PackageEntity.d.ts +15 -10
  113. package/build/types/entities/PackageMembers.d.ts +5 -5
  114. package/build/types/entities/SetterEntity.d.ts +50 -29
  115. package/build/types/entities/StructuredTypeEntity.d.ts +76 -115
  116. package/build/types/entities/TypeEntity.d.ts +2 -1
  117. package/build/types/entities/TypeEntityMembers.d.ts +11 -11
  118. package/build/types/entities/TypeExtensionEntity.d.ts +13 -8
  119. package/build/types/entities/TypeParameterEntity.d.ts +28 -21
  120. package/build/types/entities/VariableEntity.d.ts +236 -179
  121. package/build/types/entities/VariantTypeEntity.d.ts +28 -22
  122. package/build/types/entities/index.d.ts +5 -1
  123. package/build/types/entities/translated/TranslatedAliasTypeEntity.d.ts +18 -16
  124. package/build/types/entities/translated/TranslatedConstructorEntity.d.ts +15 -11
  125. package/build/types/entities/translated/TranslatedDereferenceOperatorEntity.d.ts +16 -12
  126. package/build/types/entities/translated/TranslatedDestructorEntity.d.ts +15 -11
  127. package/build/types/entities/translated/TranslatedFunctionEntity.d.ts +32 -27
  128. package/build/types/entities/translated/TranslatedFunctionTypeEntity.d.ts +33 -29
  129. package/build/types/entities/translated/TranslatedGetterEntity.d.ts +12 -8
  130. package/build/types/entities/translated/TranslatedIndexerEntity.d.ts +19 -15
  131. package/build/types/entities/translated/TranslatedOperatorEntity.d.ts +18 -14
  132. package/build/types/entities/translated/TranslatedPackageEntity.d.ts +10 -7
  133. package/build/types/entities/translated/TranslatedSetterEntity.d.ts +11 -7
  134. package/build/types/entities/translated/TranslatedStructuredTypeEntity.d.ts +41 -39
  135. package/build/types/entities/translated/TranslatedTypeExtensionEntity.d.ts +12 -9
  136. package/build/types/entities/translated/TranslatedTypeParameterEntity.d.ts +19 -16
  137. package/build/types/entities/translated/TranslatedVariableEntity.d.ts +44 -36
  138. package/build/types/entities/translated/TranslatedVariantTypeEntity.d.ts +28 -24
  139. package/build/types/executor/NodeCompiler.d.ts +3 -3
  140. package/build/types/executor/PhysicalTypeScriptLibrariesProvider.d.ts +2 -2
  141. package/build/types/parser/Parser.d.ts +1 -1
  142. package/build/types/parser/TriviaInterner.d.ts +3 -3
  143. package/build/types/project/Compilation.d.ts +3 -3
  144. package/build/types/project/CompilationLoader.d.ts +5 -5
  145. package/build/types/project/FileSystemTree.d.ts +6 -6
  146. package/build/types/project/SourceFile.d.ts +2 -2
  147. package/build/types/project/SourcePackage.d.ts +1 -1
  148. package/build/types/project/TextFile.d.ts +1 -1
  149. package/build/types/project/configuration/ConfigurationConverter.d.ts +1 -1
  150. package/build/types/project/configuration/ConfigurationFileParser.d.ts +1 -1
  151. package/build/types/services/AssignFieldService.d.ts +10 -0
  152. package/build/types/services/CodeActionsService.d.ts +1 -1
  153. package/build/types/services/CompletionService.d.ts +8 -8
  154. package/build/types/services/CustomCommand.d.ts +13 -7
  155. package/build/types/services/DefinitionService.d.ts +1 -1
  156. package/build/types/services/DisplayService.d.ts +76 -80
  157. package/build/types/services/DocumentHighlightsService.d.ts +1 -1
  158. package/build/types/services/HoverService.d.ts +3 -3
  159. package/build/types/services/LanguageServer.d.ts +32 -32
  160. package/build/types/services/NodeSemanticInfo.d.ts +9 -9
  161. package/build/types/services/ProjectItemsService.d.ts +1 -1
  162. package/build/types/services/RenameService.d.ts +1 -1
  163. package/build/types/services/SemanticTokensService.d.ts +1 -1
  164. package/build/types/services/SourceFileItemsService.d.ts +1 -1
  165. package/build/types/services/TranslationService.d.ts +1 -1
  166. package/build/types/services/signature-help/{ValueParametersSignatureHelpProvider.d.ts → ParametersSignatureHelpProvider.d.ts} +6 -6
  167. package/build/types/services/signature-help/{SignatureWithValueParameters.d.ts → SignatureWithParameters.d.ts} +34 -34
  168. package/build/types/services/signature-help/TypeParameterSignatureHelpProvider.d.ts +4 -4
  169. package/build/types/services/source-generation/EntityToSyntax.d.ts +4 -4
  170. package/build/types/services/source-generation/SourceGenerationService.d.ts +5 -5
  171. package/build/types/services/workspace/CompilationController.d.ts +22 -22
  172. package/build/types/services/workspace/FileSystemTreeProviderBasedOnWatchedFileSystem.d.ts +13 -13
  173. package/build/types/services/workspace/ManuallyUpdatedFileSystemTreeProvider.d.ts +4 -4
  174. package/build/types/services/workspace/Workspace.d.ts +7 -7
  175. package/build/types/services/workspace/WorkspaceFiles.d.ts +1 -1
  176. package/build/types/tree/BaseNode.d.ts +12 -3
  177. package/build/types/tree/NodeKind.d.ts +56 -57
  178. package/build/types/tree/Nodes.d.ts +18 -20
  179. package/build/types/tree/SyntaxToCode.d.ts +11 -11
  180. package/build/types/ts-interop/Entities.d.ts +326 -263
  181. package/build/types/ts-interop/TsInteropContext.d.ts +16 -14
  182. package/build/types/ts-interop/TsPackageContents.d.ts +16 -16
  183. package/build/types/ts-interop/TsPackageMembersCreator.d.ts +10 -10
  184. package/build/types/ts-interop/TsProgramLoader.d.ts +7 -7
  185. package/build/types/ts-interop/TsTypeMembersCreator.d.ts +9 -9
  186. package/build/types/types/AliasType.d.ts +6 -5
  187. package/build/types/types/FunctionType.d.ts +8 -7
  188. package/build/types/types/IntersectionType.d.ts +3 -2
  189. package/build/types/types/ParameterType.d.ts +5 -4
  190. package/build/types/types/StandardTypes.d.ts +21 -21
  191. package/build/types/types/StructuredType.d.ts +9 -10
  192. package/build/types/types/Substitutions.d.ts +1 -1
  193. package/build/types/types/Type.d.ts +1 -0
  194. package/build/types/types/TypeMembers.d.ts +42 -42
  195. package/build/types/types/UnionType.d.ts +3 -2
  196. package/build/types/types/UnresolvedType.d.ts +3 -2
  197. package/build/types/types/VariantType.d.ts +5 -4
  198. package/package.json +1 -1
  199. package/build/types/entities/TypeMemberContainer.d.ts +0 -23
  200. package/build/types/services/AddPropertyAssignmentService.d.ts +0 -8
@@ -1,7 +1,7 @@
1
1
  import ts from 'typescript';
2
2
  import { Analyzer, WellKnownDeclarations } from '../analysis/index.js';
3
- import { Localization } from '../analysis/Localization.js';
4
3
  import { Tag } from '../analysis/Tags.js';
4
+ import { Translation } from '../analysis/Translation.js';
5
5
  import { Name, PackageDialect, PackageLocale } from '../common/index.js';
6
6
  import { EntityContext, EntityHidingLevel, EntityKind, InterfacePackageEntityInfo, TypeEntity, TypeEntityWithMembers } from '../entities/index.js';
7
7
  import { PackageEntity, PackageEntityDefinition } from '../entities/PackageEntity.js';
@@ -18,11 +18,11 @@ export declare class TsInteropContext {
18
18
  readonly tsProgramState: TsProgramState;
19
19
  readonly type: TypeContext;
20
20
  readonly packageForSymbolsWithUnknownOrigin: TsPackageEntityForSymbolsWithUnknownOrigin;
21
- private readonly _config;
22
- private readonly _packagesCreationResult;
23
- private readonly _defaultExportTag;
24
- private _wellKnownDeclarations;
25
- private _standardTypes;
21
+ private readonly config;
22
+ private readonly packagesCreationResult;
23
+ private readonly defaultExportTag;
24
+ private wellKnownDeclarations_;
25
+ private standardTypes_;
26
26
  get tsProgram(): ts.Program;
27
27
  get tsChecker(): ts.TypeChecker;
28
28
  get packageContentsByEntity(): ReadonlyMap<PackageEntity, TsPackageContents>;
@@ -39,11 +39,11 @@ export declare class TsInteropContext {
39
39
  getEntityOfSourcePackageLoadedFromDts(sourcePackage: ProgramPackage): SourcePackageLoadedFromDtsEntity | undefined;
40
40
  isSignatureAsync(node: ts.SignatureDeclaration): boolean;
41
41
  getSignatureReturnType(node: ts.SignatureDeclaration, replaceWithPromisedTypeIfPromise: boolean): types.Type;
42
- getTypeMemberHiding(node: ts.Declaration | undefined, containingType: TypeEntity): EntityHidingLevel | undefined;
42
+ createTypeMemberHiding(node: ts.Declaration | undefined, containingType: TypeEntity): EntityHidingLevel | undefined;
43
43
  onPackageMembersCreated(pkg: PackageEntity, creationResult: TsPackageMembersCreationResult): void;
44
44
  onTypeMembersCreated(type: TypeEntityWithMembers, creationResult: TsTypeMembersCreationResult): void;
45
45
  ifTypeCanBeExpressedByFunctionTypeThenCallSignature(symbol: ts.Symbol): ts.Symbol | undefined;
46
- getName(original: string, ownerKind: 'type' | 'variable' | 'method'): Name;
46
+ createName(original: string, ownerKind: 'type' | 'variable' | 'method'): Name;
47
47
  createDefaultExportTag(): Tag;
48
48
  createTypeEntityContext(entity: TypeEntity): EntityContext;
49
49
  private getPackagesCreationResult;
@@ -95,10 +95,10 @@ export declare namespace ResolvedJavaScriptImplementation {
95
95
  * родительский символ. Поэтому параметры создаются не лениво, а в момент создания содержащий их сущностей.
96
96
  */
97
97
  declare class TypeContext {
98
- private readonly _tsctx;
99
- private readonly _typeEntities;
100
- private readonly _packagesWithCreatedMembers;
101
- private readonly _esSymbolType;
98
+ private readonly tsctx;
99
+ private readonly typeEntities;
100
+ private readonly packagesWithCreatedMembers;
101
+ private readonly esSymbolType_;
102
102
  private get checker();
103
103
  private get refObjectOrNull();
104
104
  private get esSymbolType();
@@ -158,7 +158,7 @@ export declare class TsProgramState {
158
158
  readonly setSymbol: ts.Symbol | undefined;
159
159
  readonly readonlySetSymbol: ts.Symbol | undefined;
160
160
  readonly esSymbolSymbol: ts.Symbol | undefined;
161
- private readonly _referencedFilesByFileWithReference;
161
+ private readonly referencedFilesByFileWithReference_;
162
162
  get referencedFilesByFileWithReference(): ReadonlyMap<ts.Path, readonly TsFileReferenceInfo[]>;
163
163
  constructor(program: ts.Program);
164
164
  private createReferencedFilesByFileWithReference;
@@ -188,7 +188,9 @@ declare class TsPackageEntityForSymbolsWithUnknownOrigin implements PackageEntit
188
188
  getImplementedInterfacePackage(): PackageEntity | undefined;
189
189
  getSupportedPlatforms(): readonly PlatformKind[];
190
190
  getDefinition(): PackageEntityDefinition;
191
- getLocalization(): Localization;
191
+ getContainingPackage(): PackageEntity;
192
+ getTranslation(): Translation | undefined;
192
193
  getOriginalEntity(): PackageEntity;
194
+ getTags(): readonly Tag[];
193
195
  }
194
196
  export {};
@@ -5,14 +5,14 @@ import { ProgramPackage } from '../project/SourcePackage.js';
5
5
  import { TsInteropContext } from './TsInteropContext.js';
6
6
  import { TsPackageMembersCreationResult } from './TsPackageMembersCreator.js';
7
7
  export declare class TsPackageContents {
8
- private readonly _tsctx;
9
- private readonly _symbols;
10
- private readonly _packageEntity;
11
- private readonly _sourcePackageToMergeWith;
8
+ private readonly tsctx;
9
+ private readonly symbols;
10
+ private readonly packageEntity;
11
+ private readonly sourcePackageToMergeWith;
12
12
  readonly kind = "module";
13
- private readonly _membersCreationResult;
14
- private readonly _tsSymbols;
15
- constructor(_tsctx: TsInteropContext, _symbols: TsPackageSymbols, _packageEntity: PackageEntity, _sourcePackageToMergeWith: ProgramPackage | undefined);
13
+ private readonly membersCreationResult;
14
+ private readonly tsSymbols;
15
+ constructor(tsctx: TsInteropContext, symbols: TsPackageSymbols, packageEntity: PackageEntity, sourcePackageToMergeWith: ProgramPackage | undefined);
16
16
  getMembers(): PackageEntityMembers;
17
17
  containsGlobalSymbol(symbol: ts.Symbol): boolean;
18
18
  getMembersCreationResult(): TsPackageMembersCreationResult;
@@ -24,18 +24,18 @@ export declare namespace TsPackageSymbols {
24
24
  * https://www.typescriptlang.org/docs/handbook/declaration-files/library-structures.html#modular-libraries
25
25
  */
26
26
  export class Module implements ITsPackageSymbols {
27
- private readonly _tsctx;
27
+ private readonly tsctx;
28
28
  /**
29
29
  * (symbol.flags & ts.SymbolFlags.ValueModule) !== 0
30
30
  */
31
- private readonly _symbol;
31
+ private readonly symbol;
32
32
  readonly kind = "module";
33
- private readonly _items;
34
- constructor(_tsctx: TsInteropContext,
33
+ private readonly items;
34
+ constructor(tsctx: TsInteropContext,
35
35
  /**
36
36
  * (symbol.flags & ts.SymbolFlags.ValueModule) !== 0
37
37
  */
38
- _symbol: ts.Symbol);
38
+ symbol: ts.Symbol);
39
39
  getItems(): readonly SymbolFromTs[];
40
40
  }
41
41
  /**
@@ -45,11 +45,11 @@ export declare namespace TsPackageSymbols {
45
45
  * https://www.typescriptlang.org/docs/handbook/declaration-files/library-structures.html#global-libraries
46
46
  */
47
47
  export class GlobalLibrary implements ITsPackageSymbols {
48
- private readonly _tsctx;
49
- private readonly _sourceFiles;
48
+ private readonly tsctx;
49
+ private readonly sourceFiles;
50
50
  readonly kind = "global-library";
51
- private readonly _items;
52
- constructor(_tsctx: TsInteropContext, _sourceFiles: readonly ts.SourceFile[]);
51
+ private readonly items;
52
+ constructor(tsctx: TsInteropContext, sourceFiles: readonly ts.SourceFile[]);
53
53
  getItems(): readonly SymbolFromTs[];
54
54
  }
55
55
  interface ITsPackageSymbols {
@@ -6,16 +6,16 @@ import * as tree from '../tree/index.js';
6
6
  import { TsInteropContext } from './TsInteropContext.js';
7
7
  import { SymbolFromTs } from './TsPackageContents.js';
8
8
  export declare class TsPackageMembersCreator {
9
- private readonly _tsctx;
10
- private readonly _symbols;
11
- private readonly _packageEntity;
12
- private readonly _sourcePackageToMergeWith;
13
- private readonly _forceMembersAreHiddenInPackage;
14
- private readonly _typeEntityBySymbol;
15
- private readonly _owningNamedSymbolByTypeLiteralSymbol;
16
- private readonly _namedDeclarationsByName;
17
- private readonly _packageMemberEntityByNode;
18
- constructor(_tsctx: TsInteropContext, _symbols: Iterable<SymbolFromTs>, _packageEntity: PackageEntity, _sourcePackageToMergeWith: SourcePackage | undefined, _forceMembersAreHiddenInPackage?: boolean);
9
+ private readonly tsctx;
10
+ private readonly symbols;
11
+ private readonly packageEntity;
12
+ private readonly sourcePackageToMergeWith;
13
+ private readonly forceMembersAreHiddenInPackage;
14
+ private readonly typeEntityBySymbol;
15
+ private readonly owningNamedSymbolByTypeLiteralSymbol;
16
+ private readonly namedDeclarationsByName;
17
+ private readonly packageMemberEntityByNode;
18
+ constructor(tsctx: TsInteropContext, symbols: Iterable<SymbolFromTs>, packageEntity: PackageEntity, sourcePackageToMergeWith: SourcePackage | undefined, forceMembersAreHiddenInPackage?: boolean);
19
19
  create(): TsPackageMembersCreationResult;
20
20
  private createAndRegisterPackageMemberEntity;
21
21
  /**
@@ -2,13 +2,13 @@ import ts from 'typescript';
2
2
  import { Uri } from '../common/index.js';
3
3
  import { TypeScriptLibrariesProvider } from './TsLibrariesProvider.js';
4
4
  export declare class TsProgramLoader {
5
- private readonly _librariesProvider;
6
- private readonly _rootDirectoryUri;
7
- private readonly _standardLibraryFileNames;
8
- private readonly _npmPackageNames;
9
- private readonly _moduleNames;
10
- private readonly _oldProgram?;
11
- constructor(_librariesProvider: TypeScriptLibrariesProvider, _rootDirectoryUri: Uri, _standardLibraryFileNames: readonly string[], _npmPackageNames: readonly string[], _moduleNames: readonly string[], _oldProgram?: ts.Program | undefined);
5
+ private readonly librariesProvider;
6
+ private readonly rootDirectoryUri;
7
+ private readonly standardLibraryFileNames;
8
+ private readonly npmPackageNames;
9
+ private readonly moduleNames;
10
+ private readonly oldProgram?;
11
+ constructor(librariesProvider: TypeScriptLibrariesProvider, rootDirectoryUri: Uri, standardLibraryFileNames: readonly string[], npmPackageNames: readonly string[], moduleNames: readonly string[], oldProgram?: ts.Program | undefined);
12
12
  load(): TsProgramLoadResult;
13
13
  private createFileWithLibraryImportsText;
14
14
  private createCompilerHost;
@@ -3,15 +3,15 @@ import { TypeEntityWithMembers, TypeParameterEntity } from '../entities/index.js
3
3
  import { TypeEntityMembers } from '../entities/TypeEntityMembers.js';
4
4
  import { TsInteropContext } from './TsInteropContext.js';
5
5
  export declare class TsTypeMembersCreator {
6
- private readonly _tsctx;
7
- private readonly _symbols;
8
- private readonly _symbolsToForceStatic;
9
- private readonly _typeSymbolDeclarations;
10
- private readonly _typeEntity;
11
- private readonly _symbolToTakeDefaultClassConstructorsFrom;
12
- private readonly _membersOfTypeToMergeWith;
13
- private readonly _typeParameterBySymbol;
14
- constructor(_tsctx: TsInteropContext, _symbols: Iterable<ts.Symbol>, _symbolsToForceStatic: Iterable<ts.Symbol> | undefined, _typeSymbolDeclarations: readonly ts.Declaration[] | undefined, _typeEntity: TypeEntityWithMembers, _symbolToTakeDefaultClassConstructorsFrom: ts.Symbol | undefined, _membersOfTypeToMergeWith: TypeEntityMembers | undefined);
6
+ private readonly tsctx;
7
+ private readonly symbols;
8
+ private readonly symbolsToForceStatic;
9
+ private readonly typeSymbolDeclarations;
10
+ private readonly typeEntity;
11
+ private readonly symbolToTakeDefaultClassConstructorsFrom;
12
+ private readonly membersOfTypeToMergeWith;
13
+ private readonly typeParameterBySymbol;
14
+ constructor(tsctx: TsInteropContext, symbols: Iterable<ts.Symbol>, symbolsToForceStatic: Iterable<ts.Symbol> | undefined, typeSymbolDeclarations: readonly ts.Declaration[] | undefined, typeEntity: TypeEntityWithMembers, symbolToTakeDefaultClassConstructorsFrom: ts.Symbol | undefined, membersOfTypeToMergeWith: TypeEntityMembers | undefined);
15
15
  create(): TsTypeMembersCreationResult;
16
16
  private createTypeMemberEntity;
17
17
  /**
@@ -2,13 +2,14 @@ import { Analyzer } from '../analysis/index.js';
2
2
  import { AliasTypeEntity, TypeParameterEntity } from '../entities/index.js';
3
3
  import { IType, Substitutions, Type } from './index.js';
4
4
  export declare class AliasType implements IType {
5
- private readonly _analyzer;
6
- private readonly _entity;
7
- private readonly _substitutions;
5
+ private readonly analyzer;
6
+ private readonly entity;
7
+ private readonly substitutions;
8
8
  readonly kind = "alias";
9
- private readonly _aliasedType;
9
+ private readonly aliasedType;
10
+ get isNullType(): boolean;
10
11
  get debuggerDisplay(): string;
11
- constructor(_analyzer: Analyzer, _entity: AliasTypeEntity, _substitutions: Substitutions);
12
+ constructor(analyzer: Analyzer, entity: AliasTypeEntity, substitutions: Substitutions);
12
13
  getAliasedType(): Type;
13
14
  getTypeParameters(): readonly TypeParameterEntity[];
14
15
  getSubstitutions(): Substitutions;
@@ -1,14 +1,15 @@
1
1
  import { Analyzer } from '../analysis/index.js';
2
2
  import { FunctionTypeEntity, TypeParameterEntity } from '../entities/index.js';
3
- import { IType, Substitutions, Type, ValueParameter } from './index.js';
3
+ import { IType, Substitutions, Type, Parameter } from './index.js';
4
4
  export declare class FunctionType implements IType {
5
- private readonly _analyzer;
6
- private readonly _entity;
7
- private readonly _substitutions;
5
+ private readonly analyzer;
6
+ private readonly entity;
7
+ private readonly substitutions;
8
8
  readonly kind = "function";
9
- private readonly _valueParameters;
9
+ private readonly parameters;
10
+ get isNullType(): boolean;
10
11
  get debuggerDisplay(): string;
11
- constructor(_analyzer: Analyzer, _entity: FunctionTypeEntity, _substitutions: Substitutions);
12
+ constructor(analyzer: Analyzer, entity: FunctionTypeEntity, substitutions: Substitutions);
12
13
  getTypeParameters(): readonly TypeParameterEntity[];
13
14
  getSubstitutions(): Substitutions;
14
15
  applySubstitutions(substitutions: Substitutions): FunctionType;
@@ -16,7 +17,7 @@ export declare class FunctionType implements IType {
16
17
  getEntity(): FunctionTypeEntity;
17
18
  isAsync(): boolean;
18
19
  getReturnType(): Type;
19
- getValueParameters(): readonly ValueParameter[];
20
+ getParameters(): readonly Parameter[];
20
21
  getBaseType(): Type | undefined;
21
22
  getBaseObjectTypeOrAliasedType(): Type | undefined;
22
23
  toString(): string;
@@ -5,8 +5,9 @@ import { IType, Type } from './index.js';
5
5
  export declare class IntersectionType implements IType {
6
6
  readonly kind = "intersection";
7
7
  readonly originalTypes: readonly Type[];
8
- private readonly _analyzer;
9
- private readonly _unaliasedFlattenedTypes;
8
+ private readonly analyzer;
9
+ private readonly unaliasedFlattenedTypes_;
10
+ get isNullType(): boolean;
10
11
  get unaliasedFlattenedTypes(): readonly Type[];
11
12
  get debuggerDisplay(): string;
12
13
  constructor(analyzer: Analyzer, originalTypes: readonly Type[]);
@@ -2,17 +2,18 @@ import { Analyzer } from '../analysis/index.js';
2
2
  import { TypeParameterEntity } from '../entities/index.js';
3
3
  import { IType, Substitutions, Type } from './index.js';
4
4
  export declare class ParameterType implements IType {
5
- private readonly _analyzer;
6
- private readonly _entity;
5
+ private readonly analyzer;
6
+ private readonly entity;
7
7
  readonly isNullExcluded: boolean;
8
8
  readonly kind = "parameter";
9
- private readonly _constraint;
9
+ private readonly constraint_;
10
+ get isNullType(): boolean;
10
11
  /**
11
12
  * Ограничение параметра типа с учётом флага {@link isNullExcluded}.
12
13
  */
13
14
  get constraint(): Type | undefined;
14
15
  get debuggerDisplay(): string;
15
- constructor(_analyzer: Analyzer, _entity: TypeParameterEntity, isNullExcluded: boolean);
16
+ constructor(analyzer: Analyzer, entity: TypeParameterEntity, isNullExcluded: boolean);
16
17
  getSubstitutions(): Substitutions;
17
18
  getEntity(): TypeParameterEntity;
18
19
  applySubstitutions(substitutions: Substitutions): Type;
@@ -1,27 +1,27 @@
1
1
  import { Analyzer, WellKnownDeclarations } from '../analysis/index.js';
2
2
  import { StructuredType, UnresolvedType } from './index.js';
3
3
  export declare class StandardTypes {
4
- private readonly _analyzer;
5
- private readonly _wellKnownDeclarations;
6
- private _refObject;
7
- private _plainObject;
8
- private _number;
9
- private _integer;
10
- private _text;
11
- private _textTemplate;
12
- private _char;
13
- private _unresolved;
14
- private _yesNo;
15
- private _null;
16
- private _measure;
17
- private _enumerator;
18
- private _enumerable;
19
- private _array;
20
- private _reference;
21
- private _task;
22
- private _error;
23
- private _func;
24
- constructor(_analyzer: Analyzer, _wellKnownDeclarations: WellKnownDeclarations);
4
+ private readonly analyzer;
5
+ private readonly wellKnownDeclarations;
6
+ private refObject_;
7
+ private plainObject_;
8
+ private number_;
9
+ private integer_;
10
+ private text_;
11
+ private textTemplate_;
12
+ private char_;
13
+ private unresolved_;
14
+ private yesNo_;
15
+ private null_;
16
+ private measure_;
17
+ private enumerator_;
18
+ private enumerable_;
19
+ private array_;
20
+ private reference_;
21
+ private task_;
22
+ private error_;
23
+ private func_;
24
+ constructor(analyzer: Analyzer, wellKnownDeclarations: WellKnownDeclarations);
25
25
  get refObject(): StructuredType;
26
26
  get plainObject(): StructuredType;
27
27
  get number(): StructuredType;
@@ -1,21 +1,20 @@
1
1
  import { Analyzer } from '../analysis/index.js';
2
- import { StructuredTypeEntity, TypeParameterEntity } from '../entities/index.js';
2
+ import { StructuredTypeEntity, StructuredTypeKind, TypeParameterEntity } from '../entities/index.js';
3
3
  import { IType, Substitutions, Type } from './index.js';
4
4
  export declare class StructuredType implements IType {
5
- private readonly _analyzer;
6
- private readonly _entity;
7
- private readonly _substitutions;
5
+ private readonly analyzer;
6
+ private readonly entity;
7
+ private readonly substitutions;
8
8
  readonly kind = "structured";
9
- private readonly _baseObjectType;
10
- private readonly _baseAspectTypes;
9
+ private readonly baseObjectType;
10
+ private readonly baseAspectTypes;
11
+ get isNullType(): boolean;
11
12
  get debuggerDisplay(): string;
12
- constructor(_analyzer: Analyzer, _entity: StructuredTypeEntity, _substitutions: Substitutions);
13
+ constructor(analyzer: Analyzer, entity: StructuredTypeEntity, substitutions: Substitutions);
13
14
  getSubstitutions(): Substitutions;
14
15
  getTypeParameters(): readonly TypeParameterEntity[];
15
16
  applySubstitutions(substitutions: Substitutions): StructuredType;
16
- isAspect(): boolean;
17
- isRefObject(): boolean;
18
- isPlainObject(): boolean;
17
+ getStructuredTypeKind(): StructuredTypeKind;
19
18
  markedBasic(): boolean;
20
19
  isAbstract(): boolean;
21
20
  equals(other: Type): boolean;
@@ -2,7 +2,7 @@ import { Analyzer } from '../analysis/index.js';
2
2
  import { TypeParameterEntity } from '../entities/index.js';
3
3
  import { Type } from './index.js';
4
4
  export declare class Substitutions {
5
- private static _empty;
5
+ private static empty_;
6
6
  /**
7
7
  * Ключом `SubstitutionMap` всегда является параметр на языке оригинала.
8
8
  */
@@ -9,6 +9,7 @@ import { VariantType } from './VariantType.js';
9
9
  import { Substitutions, UnionType } from './index.js';
10
10
  export type Type = StructuredType | VariantType | FunctionType | AliasType | UnresolvedType | ParameterType | UnionType | IntersectionType;
11
11
  export interface IType {
12
+ readonly isNullType: boolean;
12
13
  getSubstitutions(): Substitutions;
13
14
  applySubstitutions(substitutions: Substitutions): Type;
14
15
  /**
@@ -1,6 +1,6 @@
1
1
  import { Analyzer } from '../analysis/index.js';
2
2
  import { Name } from '../common/index.js';
3
- import { ConstructorEntity, DereferenceOperatorEntity, DestructorEntity, EntityHidingLevel, FieldEntity, IndexerEntity, MethodEntity, OperatorEntity, OperatorKind, ParameterVariableEntity, TypeParameterEntity } from '../entities/index.js';
3
+ import { ConstructorEntity, DereferenceOperatorEntity, DestructorEntity, EntityHidingLevel, FieldEntity, IndexerEntity, MethodEntity, OperatorEntity, OperatorKind, ParameterEntity, TypeParameterEntity } from '../entities/index.js';
4
4
  import { FunctionType } from './FunctionType.js';
5
5
  import { Substitutions } from './Substitutions.js';
6
6
  import { Type } from './Type.js';
@@ -9,17 +9,17 @@ export type NamedTypeMember = Field | Method;
9
9
  export declare function isNamedTypeMember(member: TypeMember): member is NamedTypeMember;
10
10
  export type AnonymousTypeMember = Exclude<TypeMember, NamedTypeMember>;
11
11
  export declare class Method implements ITypeMember {
12
- private readonly _analyzer;
13
- private readonly _entity;
14
- private readonly _substitutions;
12
+ private readonly analyzer;
13
+ private readonly entity;
14
+ private readonly substitutions;
15
15
  readonly kind = "method";
16
- private readonly _valueParameters;
17
- private readonly _signatureType;
16
+ private readonly parameters;
17
+ private readonly signatureType;
18
18
  get debuggerDisplay(): string;
19
- constructor(_analyzer: Analyzer, _entity: MethodEntity, _substitutions: Substitutions);
19
+ constructor(analyzer: Analyzer, entity: MethodEntity, substitutions: Substitutions);
20
20
  getName(): Name;
21
21
  getTypeParameters(): readonly TypeParameterEntity[];
22
- getValueParameters(): readonly ValueParameter[];
22
+ getParameters(): readonly Parameter[];
23
23
  getReturnType(): Type;
24
24
  getEntity(): MethodEntity;
25
25
  getSubstitutions(): Substitutions;
@@ -33,23 +33,23 @@ export declare class Method implements ITypeMember {
33
33
  equals(other: TypeMember): boolean;
34
34
  toString(): string;
35
35
  }
36
- export declare class ValueParameter {
37
- private readonly _entity;
38
- private readonly _substitutions;
39
- constructor(_entity: ParameterVariableEntity, _substitutions: Substitutions);
36
+ export declare class Parameter {
37
+ private readonly entity;
38
+ private readonly substitutions;
39
+ constructor(entity: ParameterEntity, substitutions: Substitutions);
40
40
  getName(): Name;
41
41
  getType(): Type;
42
- getEntity(): ParameterVariableEntity;
42
+ getEntity(): ParameterEntity;
43
43
  getSubstitutions(): Substitutions;
44
44
  isOptional(): boolean;
45
45
  isVariadic(): boolean;
46
46
  }
47
47
  export declare class Field implements ITypeMember {
48
- private readonly _entity;
49
- private readonly _substitutions;
48
+ private readonly entity;
49
+ private readonly substitutions;
50
50
  readonly kind = "field";
51
51
  get debuggerDisplay(): string;
52
- constructor(_entity: FieldEntity, _substitutions: Substitutions);
52
+ constructor(entity: FieldEntity, substitutions: Substitutions);
53
53
  getName(): Name;
54
54
  getType(): Type;
55
55
  getEntity(): FieldEntity;
@@ -64,16 +64,16 @@ export declare class Field implements ITypeMember {
64
64
  toString(): string;
65
65
  }
66
66
  export declare class Operator implements ITypeMember {
67
- private readonly _analyzer;
68
- private readonly _entity;
69
- private readonly _substitutions;
67
+ private readonly analyzer;
68
+ private readonly entity;
69
+ private readonly substitutions;
70
70
  readonly kind = "operator";
71
- private readonly _valueParameters;
72
- private readonly _signatureEntity;
71
+ private readonly parameters;
72
+ private readonly signatureEntity;
73
73
  get debuggerDisplay(): string;
74
- constructor(_analyzer: Analyzer, _entity: OperatorEntity, _substitutions: Substitutions);
74
+ constructor(analyzer: Analyzer, entity: OperatorEntity, substitutions: Substitutions);
75
75
  getOperatorKind(): OperatorKind;
76
- getValueParameters(): readonly ValueParameter[];
76
+ getParameters(): readonly Parameter[];
77
77
  getReturnType(): Type;
78
78
  getEntity(): OperatorEntity;
79
79
  getSubstitutions(): Substitutions;
@@ -86,14 +86,14 @@ export declare class Operator implements ITypeMember {
86
86
  toString(): string;
87
87
  }
88
88
  export declare class Constructor implements ITypeMember {
89
- private readonly _analyzer;
90
- private readonly _entity;
91
- private readonly _substitutions;
89
+ private readonly analyzer;
90
+ private readonly entity;
91
+ private readonly substitutions;
92
92
  readonly kind = "constructor";
93
- private readonly _valueParameters;
93
+ private readonly parameters;
94
94
  get debuggerDisplay(): string;
95
- constructor(_analyzer: Analyzer, _entity: ConstructorEntity, _substitutions: Substitutions);
96
- getValueParameters(): readonly ValueParameter[];
95
+ constructor(analyzer: Analyzer, entity: ConstructorEntity, substitutions: Substitutions);
96
+ getParameters(): readonly Parameter[];
97
97
  getEntity(): ConstructorEntity;
98
98
  getSubstitutions(): Substitutions;
99
99
  isHidden(): EntityHidingLevel | undefined;
@@ -104,13 +104,13 @@ export declare class Constructor implements ITypeMember {
104
104
  toString(): string;
105
105
  }
106
106
  export declare class Destructor implements ITypeMember {
107
- private readonly _entity;
108
- private readonly _substitutions;
107
+ private readonly entity;
108
+ private readonly substitutions;
109
109
  readonly kind = "destructor";
110
- private readonly _valueParameters;
110
+ private readonly parameters;
111
111
  get debuggerDisplay(): string;
112
- constructor(_entity: DestructorEntity, _substitutions: Substitutions);
113
- getValueParameters(): readonly ValueParameter[];
112
+ constructor(entity: DestructorEntity, substitutions: Substitutions);
113
+ getParameters(): readonly Parameter[];
114
114
  getEntity(): DestructorEntity;
115
115
  getSubstitutions(): Substitutions;
116
116
  isHidden(): EntityHidingLevel | undefined;
@@ -120,13 +120,13 @@ export declare class Destructor implements ITypeMember {
120
120
  toString(): string;
121
121
  }
122
122
  export declare class Indexer implements ITypeMember {
123
- private readonly _entity;
124
- private readonly _substitutions;
123
+ private readonly entity;
124
+ private readonly substitutions;
125
125
  readonly kind = "indexer";
126
- private readonly _valueParameters;
126
+ private readonly parameters;
127
127
  get debuggerDisplay(): string;
128
- constructor(_entity: IndexerEntity, _substitutions: Substitutions);
129
- getValueParameters(): readonly ValueParameter[];
128
+ constructor(entity: IndexerEntity, substitutions: Substitutions);
129
+ getParameters(): readonly Parameter[];
130
130
  getType(): Type;
131
131
  getEntity(): IndexerEntity;
132
132
  getSubstitutions(): Substitutions;
@@ -138,11 +138,11 @@ export declare class Indexer implements ITypeMember {
138
138
  toString(): string;
139
139
  }
140
140
  export declare class DereferenceOperator implements ITypeMember {
141
- private readonly _entity;
142
- private readonly _substitutions;
141
+ private readonly entity;
142
+ private readonly substitutions;
143
143
  readonly kind = "dereference-operator";
144
144
  get debuggerDisplay(): string;
145
- constructor(_entity: DereferenceOperatorEntity, _substitutions: Substitutions);
145
+ constructor(entity: DereferenceOperatorEntity, substitutions: Substitutions);
146
146
  getType(): Type;
147
147
  getEntity(): DereferenceOperatorEntity;
148
148
  getSubstitutions(): Substitutions;
@@ -5,8 +5,9 @@ import { IType, Type } from './index.js';
5
5
  export declare class UnionType implements IType {
6
6
  readonly kind = "union";
7
7
  readonly originalTypes: readonly Type[];
8
- private readonly _analyzer;
9
- private readonly _unaliasedFlattenedTypes;
8
+ private readonly analyzer;
9
+ private readonly unaliasedFlattenedTypes_;
10
+ get isNullType(): boolean;
10
11
  get unaliasedFlattenedTypes(): readonly Type[];
11
12
  get debuggerDisplay(): string;
12
13
  constructor(analyzer: Analyzer, originalTypes: readonly Type[]);
@@ -3,10 +3,11 @@ import { TypeEntity } from '../entities/index.js';
3
3
  import { Substitutions } from './Substitutions.js';
4
4
  import { IType, Type } from './Type.js';
5
5
  export declare class UnresolvedType implements IType {
6
- private readonly _analyzer;
6
+ private readonly analyzer;
7
7
  readonly kind = "unresolved";
8
+ get isNullType(): boolean;
8
9
  get debuggerDisplay(): string;
9
- constructor(_analyzer: Analyzer);
10
+ constructor(analyzer: Analyzer);
10
11
  equals(other: Type): boolean;
11
12
  getSubstitutions(): Substitutions;
12
13
  applySubstitutions(_substitutions: Substitutions): Type;
@@ -2,12 +2,13 @@ import { Analyzer } from '../analysis/index.js';
2
2
  import { VariantTypeEntity } from '../entities/index.js';
3
3
  import { IType, Substitutions, Type } from './index.js';
4
4
  export declare class VariantType implements IType {
5
- private readonly _analyzer;
6
- private readonly _entity;
7
- private readonly _substitutions;
5
+ private readonly analyzer;
6
+ private readonly entity;
7
+ private readonly substitutions;
8
8
  readonly kind = "variant";
9
+ get isNullType(): boolean;
9
10
  get debuggerDisplay(): string;
10
- constructor(_analyzer: Analyzer, _entity: VariantTypeEntity, _substitutions: Substitutions);
11
+ constructor(analyzer: Analyzer, entity: VariantTypeEntity, substitutions: Substitutions);
11
12
  getSubstitutions(): Substitutions;
12
13
  applySubstitutions(substitutions: Substitutions): Type;
13
14
  getEntity(): VariantTypeEntity;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artel/artc",
3
- "version": "0.6.25258",
3
+ "version": "0.6.25260",
4
4
  "description": "Артель Компилятор | Artel Compiler",
5
5
  "author": "Nezaboodka Team <contact@nezaboodka.com>",
6
6
  "license": "LGPL-3.0-or-later",