@artel/artc 0.6.25259 → 0.6.25261

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-HE4MTX63.js → chunk-66RH6JKB.js} +14377 -13458
  6. package/build/{chunk-VQI5PLBW.js → chunk-7OS2G5WZ.js} +1 -1
  7. package/build/{chunk-GVYF4DV5.js → chunk-UWQKBRAT.js} +11 -11
  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,5 +1,5 @@
1
1
  export declare class AssignmentEmitOptions {
2
- private _flags;
2
+ private flags;
3
3
  constructor(flags?: AssignmentEmitOptionsFlags);
4
4
  constructor(incrementReferenceCountIfRequired: boolean, decrementReferenceCountIfRequired: boolean, performCopyIfRequired: boolean);
5
5
  static default(): AssignmentEmitOptions;
@@ -21,7 +21,7 @@ declare enum AssignmentEmitOptionsFlags {
21
21
  DecrementReferenceCountIfRequired = 4
22
22
  }
23
23
  export declare class DeclarationWithInitializerEmitOptions {
24
- private _flags;
24
+ private flags;
25
25
  constructor(flags?: DeclarationWithInitializerEmitOptionsFlags);
26
26
  constructor(incrementReferenceCountIfRequired: boolean);
27
27
  static default(): DeclarationWithInitializerEmitOptions;
@@ -35,7 +35,7 @@ declare enum DeclarationWithInitializerEmitOptionsFlags {
35
35
  IncrementReferenceCountIfRequired = 1
36
36
  }
37
37
  export declare class FunctionAccessExpressionEmitOptions {
38
- private _flags;
38
+ private flags;
39
39
  constructor(flags?: FunctionAccessExpressionEmitOptionsFlags);
40
40
  constructor(bindIfNotCallee: boolean, forceUseNonComputedName?: boolean);
41
41
  static default(): FunctionAccessExpressionEmitOptions;
@@ -53,7 +53,7 @@ declare enum FunctionAccessExpressionEmitOptionsFlags {
53
53
  ForceUseNonComputedName = 2
54
54
  }
55
55
  export declare class FieldAccessExpressionEmitOptions {
56
- private _flags;
56
+ private flags;
57
57
  constructor(flags?: FieldAccessExpressionEmitOptionsFlags);
58
58
  constructor(forceUseNonComputedName: boolean);
59
59
  static default(): FieldAccessExpressionEmitOptions;
@@ -67,7 +67,7 @@ declare enum FieldAccessExpressionEmitOptionsFlags {
67
67
  ForceUseNonComputedName = 1
68
68
  }
69
69
  export declare class TextTemplateEmitOptions {
70
- private _flags;
70
+ private flags;
71
71
  constructor(flags?: TextTemplateEmitOptionsFlags);
72
72
  constructor(createTextTemplateInstance: boolean);
73
73
  static default(): TextTemplateEmitOptions;
@@ -81,7 +81,7 @@ declare enum TextTemplateEmitOptionsFlags {
81
81
  CreateTextTemplateInstance = 1
82
82
  }
83
83
  export declare class CallExpressionEmitOptions {
84
- private _flags;
84
+ private flags;
85
85
  constructor(flags?: CallExpressionEmitOptionsFlags);
86
86
  constructor(isAliasOrExtensionMethodCallLowered: boolean);
87
87
  static default(): CallExpressionEmitOptions;
@@ -95,7 +95,7 @@ declare const enum CallExpressionEmitOptionsFlags {
95
95
  AliasOrExtensionMethodCallLowered = 1
96
96
  }
97
97
  export declare class ConstructorCallExpressionEmitOptions {
98
- private _flags;
98
+ private flags;
99
99
  constructor(flags?: ConstructorCallExpressionEmitOptionsFlags);
100
100
  constructor(isPlainObjectConstructorCallLowered: boolean);
101
101
  static default(): ConstructorCallExpressionEmitOptions;
@@ -109,7 +109,7 @@ declare const enum ConstructorCallExpressionEmitOptionsFlags {
109
109
  PlainObjectConstructorCallLowered = 1
110
110
  }
111
111
  export declare class MethodDeclarationEmitOptions {
112
- private _flags;
112
+ private flags;
113
113
  constructor(flags?: MethodDeclarationEmitOptionsFlags);
114
114
  constructor();
115
115
  static default(): MethodDeclarationEmitOptions;
@@ -119,7 +119,7 @@ declare const enum MethodDeclarationEmitOptionsFlags {
119
119
  None = 0
120
120
  }
121
121
  export declare class FieldDeclarationEmitOptions {
122
- private _flags;
122
+ private flags;
123
123
  constructor(flags?: FieldDeclarationEmitOptionsFlags);
124
124
  constructor();
125
125
  static default(): FieldDeclarationEmitOptions;
@@ -129,7 +129,7 @@ declare const enum FieldDeclarationEmitOptionsFlags {
129
129
  None = 0
130
130
  }
131
131
  export declare class FieldAccessorDeclarationEmitOptions {
132
- private _flags;
132
+ private flags;
133
133
  constructor(flags?: FieldAccessorDeclarationEmitOptionsFlags);
134
134
  constructor(forceUseNonComputedName: boolean);
135
135
  static default(): FieldAccessorDeclarationEmitOptions;
@@ -143,7 +143,7 @@ declare const enum FieldAccessorDeclarationEmitOptionsFlags {
143
143
  ForceUseNonComputedName = 1
144
144
  }
145
145
  export declare class PackageVariableDeclarationEmitOptions {
146
- private _flags;
146
+ private flags;
147
147
  constructor(flags?: PackageVariableDeclarationEmitOptionsFlags);
148
148
  constructor(shouldBePlacedBeforeOtherDeclarations: boolean, shouldNotMoveInitializerToConstructor: boolean);
149
149
  static default(): PackageVariableDeclarationEmitOptions;
@@ -161,7 +161,7 @@ declare const enum PackageVariableDeclarationEmitOptionsFlags {
161
161
  ShouldNotMoveInitializerToConstructor = 2
162
162
  }
163
163
  export declare class ErrorStatementEmitOptions {
164
- private _flags;
164
+ private flags;
165
165
  constructor(flags?: ErrorStatementEmitOptionsFlags);
166
166
  constructor(wrapExpressionInError: boolean);
167
167
  static default(): ErrorStatementEmitOptions;
@@ -175,7 +175,7 @@ declare const enum ErrorStatementEmitOptionsFlags {
175
175
  WrapExpressionInError = 1
176
176
  }
177
177
  export declare class ForStatementEmitOptions {
178
- private _flags;
178
+ private flags;
179
179
  constructor(flags?: ForStatementEmitOptionsFlags);
180
180
  constructor(addExplicitCallOfEnumeratorMethodIfRequired: boolean);
181
181
  static default(): ForStatementEmitOptions;
@@ -188,4 +188,18 @@ declare const enum ForStatementEmitOptionsFlags {
188
188
  None = 0,
189
189
  AddExplicitCallOfEnumeratorMethodIfRequired = 1
190
190
  }
191
+ export declare class FunctionLiteralEmitOptions {
192
+ private flags;
193
+ constructor(flags?: FunctionLiteralEmitOptionsFlags);
194
+ constructor(hasAttachedSyntaxNodePath: boolean);
195
+ static default(): FunctionLiteralEmitOptions;
196
+ get hasAttachedSyntaxNodePath(): boolean;
197
+ set hasAttachedSyntaxNodePath(value: boolean);
198
+ setHasAttachedSyntaxNodePath(value: boolean): this;
199
+ clone(): FunctionLiteralEmitOptions;
200
+ }
201
+ declare enum FunctionLiteralEmitOptionsFlags {
202
+ None = 0,
203
+ HasAttachedSyntaxNodePath = 1
204
+ }
191
205
  export {};
@@ -2,7 +2,7 @@ import { AccessKind } from '../../common/index.js';
2
2
  import { FunctionEntity, NamedEntity, Type, TypeOrExtensionEntity, VariableEntity } from '../Entities.js';
3
3
  import { AccessedFunction, AccessedVariable } from './AccessedEntities.js';
4
4
  import { ComputedAccess } from './ComputedAccess.js';
5
- import { AssignmentEmitOptions, CallExpressionEmitOptions, ConstructorCallExpressionEmitOptions, DeclarationWithInitializerEmitOptions, ErrorStatementEmitOptions, FieldAccessExpressionEmitOptions, FieldDeclarationEmitOptions, ForStatementEmitOptions, FunctionAccessExpressionEmitOptions, MethodDeclarationEmitOptions, PackageVariableDeclarationEmitOptions, TextTemplateEmitOptions } from './EmitOptions.js';
5
+ import { AssignmentEmitOptions, CallExpressionEmitOptions, ConstructorCallExpressionEmitOptions, DeclarationWithInitializerEmitOptions, ErrorStatementEmitOptions, FieldAccessExpressionEmitOptions, FieldDeclarationEmitOptions, ForStatementEmitOptions, FunctionAccessExpressionEmitOptions, FunctionLiteralEmitOptions, MethodDeclarationEmitOptions, PackageVariableDeclarationEmitOptions, TextTemplateEmitOptions } from './EmitOptions.js';
6
6
  import { SourceLocation } from './SourceLocation.js';
7
7
  import { Expression, LValueExpression, PackageMemberDeclaration, Statement, TypeMemberDeclaration } from './types.js';
8
8
  export declare class Package {
@@ -17,13 +17,13 @@ export declare class Package {
17
17
  }
18
18
  export declare class PackageFunctionDeclaration {
19
19
  modifiers: Modifiers;
20
- valueParameters: readonly ValueParameterDeclaration[];
20
+ parameters: readonly ParameterDeclaration[];
21
21
  body: BlockStatement;
22
22
  entity: FunctionEntity;
23
23
  isGenerator: boolean;
24
24
  sourceLocation: SourceLocation | undefined;
25
25
  readonly kind = NodeKind.PackageFunctionDeclaration;
26
- constructor(modifiers: Modifiers, valueParameters: readonly ValueParameterDeclaration[], body: BlockStatement, entity: FunctionEntity, isGenerator: boolean, sourceLocation: SourceLocation | undefined);
26
+ constructor(modifiers: Modifiers, parameters: readonly ParameterDeclaration[], body: BlockStatement, entity: FunctionEntity, isGenerator: boolean, sourceLocation: SourceLocation | undefined);
27
27
  clone(): PackageFunctionDeclaration;
28
28
  }
29
29
  export declare class PackageTypeDeclaration {
@@ -324,7 +324,7 @@ export declare class FinallyClause {
324
324
  }
325
325
  export declare class ForStatement {
326
326
  label: string | undefined;
327
- enumerationVariableEntity: VariableEntity;
327
+ elementVariableEntity: VariableEntity;
328
328
  indexVariableEntity: VariableEntity | undefined;
329
329
  enumeratedExpression: Expression;
330
330
  body: BlockStatement;
@@ -332,7 +332,7 @@ export declare class ForStatement {
332
332
  sourceLocation: SourceLocation | undefined;
333
333
  options: ForStatementEmitOptions;
334
334
  readonly kind = NodeKind.ForStatement;
335
- constructor(label: string | undefined, enumerationVariableEntity: VariableEntity, indexVariableEntity: VariableEntity | undefined, enumeratedExpression: Expression, body: BlockStatement, ifExpressionIsNotEnumerableThenEnumeratorMethod: AccessedFunction | undefined, sourceLocation: SourceLocation | undefined, options?: ForStatementEmitOptions);
335
+ constructor(label: string | undefined, elementVariableEntity: VariableEntity, indexVariableEntity: VariableEntity | undefined, enumeratedExpression: Expression, body: BlockStatement, ifExpressionIsNotEnumerableThenEnumeratorMethod: AccessedFunction | undefined, sourceLocation: SourceLocation | undefined, options?: ForStatementEmitOptions);
336
336
  clone(): ForStatement;
337
337
  }
338
338
  export declare class IfStatement {
@@ -378,13 +378,13 @@ export declare class IsExpression {
378
378
  clone(): IsExpression;
379
379
  }
380
380
  export declare class JsFunctionLiteral {
381
- valueParameters: readonly ValueParameterDeclaration[];
381
+ parameters: readonly ParameterDeclaration[];
382
382
  body: BlockStatement;
383
383
  isAsync: boolean;
384
384
  isGenerator: boolean;
385
385
  sourceLocation: SourceLocation | undefined;
386
386
  readonly kind = NodeKind.JsFunctionLiteral;
387
- constructor(valueParameters: readonly ValueParameterDeclaration[], body: BlockStatement, isAsync: boolean, isGenerator: boolean, sourceLocation: SourceLocation | undefined);
387
+ constructor(parameters: readonly ParameterDeclaration[], body: BlockStatement, isAsync: boolean, isGenerator: boolean, sourceLocation: SourceLocation | undefined);
388
388
  clone(): JsFunctionLiteral;
389
389
  }
390
390
  export declare class JsIdentifierExpression {
@@ -469,11 +469,11 @@ export declare class ValueJsObjectLiteralProperty {
469
469
  }
470
470
  export declare class FunctionJsObjectLiteralProperty {
471
471
  key: JsObjectLiteralPropertyKey;
472
- valueParameters: readonly ValueParameterDeclaration[];
472
+ parameters: readonly ParameterDeclaration[];
473
473
  body: BlockStatement;
474
474
  sourceLocation: SourceLocation | undefined;
475
475
  readonly kind = NodeKind.FunctionJsObjectLiteralProperty;
476
- constructor(key: JsObjectLiteralPropertyKey, valueParameters: readonly ValueParameterDeclaration[], body: BlockStatement, sourceLocation: SourceLocation | undefined);
476
+ constructor(key: JsObjectLiteralPropertyKey, parameters: readonly ParameterDeclaration[], body: BlockStatement, sourceLocation: SourceLocation | undefined);
477
477
  clone(): FunctionJsObjectLiteralProperty;
478
478
  }
479
479
  /**
@@ -545,13 +545,14 @@ export declare class FunctionAccessExpression {
545
545
  clone(): FunctionAccessExpression;
546
546
  }
547
547
  export declare class FunctionLiteral {
548
- valueParameters: readonly ValueParameterDeclaration[];
548
+ parameters: readonly ParameterDeclaration[];
549
549
  body: BlockStatement;
550
550
  isAsync: boolean;
551
551
  returnType: Type;
552
552
  sourceLocation: SourceLocation | undefined;
553
+ options: FunctionLiteralEmitOptions;
553
554
  readonly kind = NodeKind.FunctionLiteral;
554
- constructor(valueParameters: readonly ValueParameterDeclaration[], body: BlockStatement, isAsync: boolean, returnType: Type, sourceLocation: SourceLocation | undefined);
555
+ constructor(parameters: readonly ParameterDeclaration[], body: BlockStatement, isAsync: boolean, returnType: Type, sourceLocation: SourceLocation | undefined, options?: FunctionLiteralEmitOptions);
555
556
  clone(): FunctionLiteral;
556
557
  }
557
558
  export declare class Modifiers {
@@ -575,14 +576,14 @@ export declare const enum ModifierFlag {
575
576
  Async = 4
576
577
  }
577
578
  export declare class NestedFunctionDeclaration {
578
- valueParameters: readonly ValueParameterDeclaration[];
579
+ parameters: readonly ParameterDeclaration[];
579
580
  body: BlockStatement;
580
581
  entity: FunctionEntity;
581
582
  isAsync: boolean;
582
583
  isGenerator: boolean;
583
584
  sourceLocation: SourceLocation | undefined;
584
585
  readonly kind = NodeKind.NestedFunctionDeclaration;
585
- constructor(valueParameters: readonly ValueParameterDeclaration[], body: BlockStatement, entity: FunctionEntity, isAsync: boolean, isGenerator: boolean, sourceLocation: SourceLocation | undefined);
586
+ constructor(parameters: readonly ParameterDeclaration[], body: BlockStatement, entity: FunctionEntity, isAsync: boolean, isGenerator: boolean, sourceLocation: SourceLocation | undefined);
586
587
  clone(): NestedFunctionDeclaration;
587
588
  }
588
589
  export declare class NestedFunctionDeclarationStatement {
@@ -745,12 +746,12 @@ export declare class TypeAccessExpression {
745
746
  }
746
747
  export declare class ConstructorDeclaration {
747
748
  decorators: readonly Decorator[];
748
- valueParameters: readonly ValueParameterDeclaration[];
749
+ parameters: readonly ParameterDeclaration[];
749
750
  body: BlockStatement;
750
751
  entity: FunctionEntity;
751
752
  sourceLocation: SourceLocation | undefined;
752
753
  readonly kind = NodeKind.ConstructorDeclaration;
753
- constructor(decorators: readonly Decorator[], valueParameters: readonly ValueParameterDeclaration[], body: BlockStatement, entity: FunctionEntity, sourceLocation: SourceLocation | undefined);
754
+ constructor(decorators: readonly Decorator[], parameters: readonly ParameterDeclaration[], body: BlockStatement, entity: FunctionEntity, sourceLocation: SourceLocation | undefined);
754
755
  clone(): ConstructorDeclaration;
755
756
  }
756
757
  export declare class DereferencedVariableGetterDeclaration {
@@ -776,35 +777,35 @@ export declare class DereferencedVariableSetterDeclaration {
776
777
  }
777
778
  export declare class DestructorDeclaration {
778
779
  decorators: readonly Decorator[];
779
- valueParameters: readonly ValueParameterDeclaration[];
780
+ parameters: readonly ParameterDeclaration[];
780
781
  body: BlockStatement;
781
782
  entity: FunctionEntity;
782
783
  sourceLocation: SourceLocation | undefined;
783
784
  readonly kind = NodeKind.DestructorDeclaration;
784
- constructor(decorators: readonly Decorator[], valueParameters: readonly ValueParameterDeclaration[], body: BlockStatement, entity: FunctionEntity, sourceLocation: SourceLocation | undefined);
785
+ constructor(decorators: readonly Decorator[], parameters: readonly ParameterDeclaration[], body: BlockStatement, entity: FunctionEntity, sourceLocation: SourceLocation | undefined);
785
786
  clone(): DestructorDeclaration;
786
787
  }
787
788
  export declare class IndexedElementGetterDeclaration {
788
789
  entity: FunctionEntity;
789
790
  decorators: readonly Decorator[];
790
791
  modifiers: Modifiers;
791
- valueParameters: readonly ValueParameterDeclaration[];
792
+ parameters: readonly ParameterDeclaration[];
792
793
  body: BlockStatement;
793
794
  sourceLocation: SourceLocation | undefined;
794
795
  readonly kind = NodeKind.IndexedElementGetterDeclaration;
795
- constructor(entity: FunctionEntity, decorators: readonly Decorator[], modifiers: Modifiers, valueParameters: readonly ValueParameterDeclaration[], body: BlockStatement, sourceLocation: SourceLocation | undefined);
796
+ constructor(entity: FunctionEntity, decorators: readonly Decorator[], modifiers: Modifiers, parameters: readonly ParameterDeclaration[], body: BlockStatement, sourceLocation: SourceLocation | undefined);
796
797
  clone(): IndexedElementGetterDeclaration;
797
798
  }
798
799
  export declare class IndexedElementSetterDeclaration {
799
800
  entity: FunctionEntity;
800
801
  decorators: readonly Decorator[];
801
802
  modifiers: Modifiers;
802
- valueParameters: readonly ValueParameterDeclaration[];
803
+ parameters: readonly ParameterDeclaration[];
803
804
  body: BlockStatement;
804
805
  valueLocalVariableEntity: VariableEntity;
805
806
  sourceLocation: SourceLocation | undefined;
806
807
  readonly kind = NodeKind.IndexedElementSetterDeclaration;
807
- constructor(entity: FunctionEntity, decorators: readonly Decorator[], modifiers: Modifiers, valueParameters: readonly ValueParameterDeclaration[], body: BlockStatement, valueLocalVariableEntity: VariableEntity, sourceLocation: SourceLocation | undefined);
808
+ constructor(entity: FunctionEntity, decorators: readonly Decorator[], modifiers: Modifiers, parameters: readonly ParameterDeclaration[], body: BlockStatement, valueLocalVariableEntity: VariableEntity, sourceLocation: SourceLocation | undefined);
808
809
  clone(): IndexedElementSetterDeclaration;
809
810
  }
810
811
  export declare class MethodAccessExpression {
@@ -822,7 +823,7 @@ export declare class MethodAccessExpression {
822
823
  export declare class MethodDeclaration {
823
824
  decorators: readonly Decorator[];
824
825
  modifiers: Modifiers;
825
- valueParameters: readonly ValueParameterDeclaration[];
826
+ parameters: readonly ParameterDeclaration[];
826
827
  body: BlockStatement;
827
828
  entity: FunctionEntity;
828
829
  isGenerator: boolean;
@@ -830,7 +831,7 @@ export declare class MethodDeclaration {
830
831
  sourceLocation: SourceLocation | undefined;
831
832
  options: MethodDeclarationEmitOptions;
832
833
  readonly kind = NodeKind.MethodDeclaration;
833
- constructor(decorators: readonly Decorator[], modifiers: Modifiers, valueParameters: readonly ValueParameterDeclaration[], body: BlockStatement, entity: FunctionEntity, isGenerator: boolean, ifComputedThenKey: Expression | undefined, sourceLocation: SourceLocation | undefined, options?: MethodDeclarationEmitOptions);
834
+ constructor(decorators: readonly Decorator[], modifiers: Modifiers, parameters: readonly ParameterDeclaration[], body: BlockStatement, entity: FunctionEntity, isGenerator: boolean, ifComputedThenKey: Expression | undefined, sourceLocation: SourceLocation | undefined, options?: MethodDeclarationEmitOptions);
834
835
  clone(): MethodDeclaration;
835
836
  }
836
837
  export declare class FieldAccessExpression {
@@ -890,7 +891,7 @@ export declare class FieldSetterDeclaration {
890
891
  constructor(entity: FunctionEntity, decorators: readonly Decorator[], body: BlockStatement, valueLocalVariableEntity: VariableEntity, sourceLocation: SourceLocation | undefined);
891
892
  clone(): FieldSetterDeclaration;
892
893
  }
893
- export declare class ValueParameterDeclaration {
894
+ export declare class ParameterDeclaration {
894
895
  entity: VariableEntity;
895
896
  defaultValue: Expression | undefined;
896
897
  /**
@@ -898,13 +899,13 @@ export declare class ValueParameterDeclaration {
898
899
  */
899
900
  isRest: boolean;
900
901
  sourceLocation: SourceLocation | undefined;
901
- readonly kind = NodeKind.ValueParameterDeclaration;
902
+ readonly kind = NodeKind.ParameterDeclaration;
902
903
  constructor(entity: VariableEntity, defaultValue: Expression | undefined,
903
904
  /**
904
905
  * ...param
905
906
  */
906
907
  isRest: boolean, sourceLocation: SourceLocation | undefined);
907
- clone(): ValueParameterDeclaration;
908
+ clone(): ParameterDeclaration;
908
909
  }
909
910
  export declare class VariableAccessExpression {
910
911
  variable: AccessedVariable;
@@ -1011,7 +1012,7 @@ export declare const enum NodeKind {
1011
1012
  SwitchStatement = 58,
1012
1013
  TernaryExpression = 59,
1013
1014
  ThisExpression = 60,
1014
- ValueParameterDeclaration = 61,
1015
+ ParameterDeclaration = 61,
1015
1016
  VariantDeclaration = 62,
1016
1017
  WhileStatement = 63,
1017
1018
  YieldStatement = 64,
@@ -1,6 +1,6 @@
1
1
  import * as ir from './Nodes.js';
2
- export type Node = ir.ArrayLiteral | ir.AsExpression | ir.AssertionExpression | ir.AssumptionExpression | ir.AssignmentExpression | ir.AssignmentStatement | ir.BaseConstructorCallExpression | ir.BinaryExpression | ir.BlockStatement | ir.BooleanLiteral | ir.BreakLoopStatement | ir.CallExpression | ir.CharLiteral | ir.CommaExpression | ir.ConstructorCallExpression | ir.ContinueLoopStatement | ir.DisposeStatement | ir.RunStatement | ir.TryStatement | ir.NullLiteral | ir.EmptyStatement | ir.ErrorStatement | ir.ImportantStatement | ir.ExpressionStatement | ir.FinallyClause | ir.ForStatement | ir.PackageFunctionDeclaration | ir.PackageTypeDeclaration | ir.PackageVariableDeclaration | ir.PackageVariableGetterDeclaration | ir.PackageVariableSetterDeclaration | ir.PackageVariantTypeDeclaration | ir.IfStatement | ir.IndexedAccessExpression | ir.InlineJsExpression | ir.MethodAccessExpression | ir.FieldAccessExpression | ir.IntegerLiteral | ir.IsExpression | ir.JsIndexedAccessExpression | ir.NestedFunctionDeclaration | ir.NestedFunctionDeclarationStatement | ir.LocalVariableDeclaration | ir.LocalVariableDeclarationStatement | ir.NumericLiteral | ir.CatchClause | ir.FunctionAccessExpression | ir.FunctionLiteral | ir.PrefixUnaryExpression | ir.MeasureLiteral | ir.ReferenceExpression | ir.LoopStatement | ir.Package | ir.ReturnStatement | ir.TextLiteral | ir.LocalizableTextLiteral | ir.TextTemplateLiteral | ir.LocalizableTextTemplateLiteral | ir.ConstructorDeclaration | ir.DestructorDeclaration | ir.IndexedElementGetterDeclaration | ir.IndexedElementSetterDeclaration | ir.MethodDeclaration | ir.FieldDeclaration | ir.ComputedFieldDeclaration | ir.FieldGetterDeclaration | ir.FieldSetterDeclaration | ir.SwitchStatement | ir.TernaryExpression | ir.ThisExpression | ir.TypeAccessExpression | ir.ValueParameterDeclaration | ir.VariableAccessExpression | ir.VariantDeclaration | ir.WhileStatement | ir.YieldStatement | ir.JsObjectLiteral | ir.ValueJsObjectLiteralProperty | ir.FunctionJsObjectLiteralProperty | ir.SpreadJsObjectLiteralProperty | ir.JsPropertyAccessExpression | ir.JsFunctionLiteral | ir.JsTypeOfExpression | ir.JsInstanceOfExpression | ir.JsIdentifierExpression | ir.DereferenceExpression | ir.BaseExpression | ir.OwnConstructorCallExpression | ir.EsModuleImportDirectiveStatement | ir.CjsModuleImportDirectiveStatement | ir.JsNamespaceDestructuringStatement | ir.DereferencedVariableGetterDeclaration | ir.DereferencedVariableSetterDeclaration | ir.TextWithEntityName | ir.Argument | ir.Arguments | ir.Decorator | ir.TextTranslationDeclaration | ir.TranslationTextTemplate;
3
- export type Declaration = ir.PackageFunctionDeclaration | ir.PackageTypeDeclaration | ir.PackageVariableDeclaration | ir.PackageVariableGetterDeclaration | ir.PackageVariableSetterDeclaration | ir.PackageVariantTypeDeclaration | ir.NestedFunctionDeclaration | ir.LocalVariableDeclaration | ir.ConstructorDeclaration | ir.DestructorDeclaration | ir.IndexedElementGetterDeclaration | ir.IndexedElementSetterDeclaration | ir.MethodDeclaration | ir.FieldDeclaration | ir.FieldGetterDeclaration | ir.FieldSetterDeclaration | ir.ValueParameterDeclaration | ir.VariantDeclaration | ir.DereferencedVariableGetterDeclaration | ir.DereferencedVariableSetterDeclaration | ir.TextTranslationDeclaration | ir.TranslationTextTemplate;
2
+ export type Node = ir.ArrayLiteral | ir.AsExpression | ir.AssertionExpression | ir.AssumptionExpression | ir.AssignmentExpression | ir.AssignmentStatement | ir.BaseConstructorCallExpression | ir.BinaryExpression | ir.BlockStatement | ir.BooleanLiteral | ir.BreakLoopStatement | ir.CallExpression | ir.CharLiteral | ir.CommaExpression | ir.ConstructorCallExpression | ir.ContinueLoopStatement | ir.DisposeStatement | ir.RunStatement | ir.TryStatement | ir.NullLiteral | ir.EmptyStatement | ir.ErrorStatement | ir.ImportantStatement | ir.ExpressionStatement | ir.FinallyClause | ir.ForStatement | ir.PackageFunctionDeclaration | ir.PackageTypeDeclaration | ir.PackageVariableDeclaration | ir.PackageVariableGetterDeclaration | ir.PackageVariableSetterDeclaration | ir.PackageVariantTypeDeclaration | ir.IfStatement | ir.IndexedAccessExpression | ir.InlineJsExpression | ir.MethodAccessExpression | ir.FieldAccessExpression | ir.IntegerLiteral | ir.IsExpression | ir.JsIndexedAccessExpression | ir.NestedFunctionDeclaration | ir.NestedFunctionDeclarationStatement | ir.LocalVariableDeclaration | ir.LocalVariableDeclarationStatement | ir.NumericLiteral | ir.CatchClause | ir.FunctionAccessExpression | ir.FunctionLiteral | ir.PrefixUnaryExpression | ir.MeasureLiteral | ir.ReferenceExpression | ir.LoopStatement | ir.Package | ir.ReturnStatement | ir.TextLiteral | ir.LocalizableTextLiteral | ir.TextTemplateLiteral | ir.LocalizableTextTemplateLiteral | ir.ConstructorDeclaration | ir.DestructorDeclaration | ir.IndexedElementGetterDeclaration | ir.IndexedElementSetterDeclaration | ir.MethodDeclaration | ir.FieldDeclaration | ir.ComputedFieldDeclaration | ir.FieldGetterDeclaration | ir.FieldSetterDeclaration | ir.SwitchStatement | ir.TernaryExpression | ir.ThisExpression | ir.TypeAccessExpression | ir.ParameterDeclaration | ir.VariableAccessExpression | ir.VariantDeclaration | ir.WhileStatement | ir.YieldStatement | ir.JsObjectLiteral | ir.ValueJsObjectLiteralProperty | ir.FunctionJsObjectLiteralProperty | ir.SpreadJsObjectLiteralProperty | ir.JsPropertyAccessExpression | ir.JsFunctionLiteral | ir.JsTypeOfExpression | ir.JsInstanceOfExpression | ir.JsIdentifierExpression | ir.DereferenceExpression | ir.BaseExpression | ir.OwnConstructorCallExpression | ir.EsModuleImportDirectiveStatement | ir.CjsModuleImportDirectiveStatement | ir.JsNamespaceDestructuringStatement | ir.DereferencedVariableGetterDeclaration | ir.DereferencedVariableSetterDeclaration | ir.TextWithEntityName | ir.Argument | ir.Arguments | ir.Decorator | ir.TextTranslationDeclaration | ir.TranslationTextTemplate;
3
+ export type Declaration = ir.PackageFunctionDeclaration | ir.PackageTypeDeclaration | ir.PackageVariableDeclaration | ir.PackageVariableGetterDeclaration | ir.PackageVariableSetterDeclaration | ir.PackageVariantTypeDeclaration | ir.NestedFunctionDeclaration | ir.LocalVariableDeclaration | ir.ConstructorDeclaration | ir.DestructorDeclaration | ir.IndexedElementGetterDeclaration | ir.IndexedElementSetterDeclaration | ir.MethodDeclaration | ir.FieldDeclaration | ir.FieldGetterDeclaration | ir.FieldSetterDeclaration | ir.ParameterDeclaration | ir.VariantDeclaration | ir.DereferencedVariableGetterDeclaration | ir.DereferencedVariableSetterDeclaration | ir.TextTranslationDeclaration | ir.TranslationTextTemplate;
4
4
  export type Statement = ir.AssignmentStatement | ir.BlockStatement | ir.BreakLoopStatement | ir.ContinueLoopStatement | ir.DisposeStatement | ir.RunStatement | ir.TryStatement | ir.EmptyStatement | ir.ErrorStatement | ir.ImportantStatement | ir.ExpressionStatement | ir.ForStatement | ir.IfStatement | ir.NestedFunctionDeclarationStatement | ir.LocalVariableDeclarationStatement | ir.LoopStatement | ir.ReturnStatement | ir.SwitchStatement | ir.WhileStatement | ir.YieldStatement | ir.EsModuleImportDirectiveStatement | ir.CjsModuleImportDirectiveStatement | ir.JsNamespaceDestructuringStatement;
5
5
  export type Expression = ir.ArrayLiteral | ir.AsExpression | ir.AssertionExpression | ir.AssumptionExpression | ir.AssignmentExpression | ir.BinaryExpression | ir.BooleanLiteral | ir.CallExpression | ir.CharLiteral | ir.CommaExpression | ir.ConstructorCallExpression | ir.NullLiteral | ir.IndexedAccessExpression | ir.InlineJsExpression | ir.MethodAccessExpression | ir.FieldAccessExpression | ir.IntegerLiteral | ir.IsExpression | ir.NumericLiteral | ir.FunctionAccessExpression | ir.FunctionLiteral | ir.PrefixUnaryExpression | ir.MeasureLiteral | ir.ReferenceExpression | ir.DereferenceExpression | ir.TextLiteral | ir.LocalizableTextLiteral | ir.TextWithEntityName | ir.TextTemplateLiteral | ir.LocalizableTextTemplateLiteral | ir.TernaryExpression | ir.ThisExpression | ir.TypeAccessExpression | ir.VariableAccessExpression | ir.BaseConstructorCallExpression | ir.JsIndexedAccessExpression | ir.JsObjectLiteral | ir.JsPropertyAccessExpression | ir.JsFunctionLiteral | ir.JsTypeOfExpression | ir.JsInstanceOfExpression | ir.JsIdentifierExpression | ir.BaseExpression | ir.OwnConstructorCallExpression;
6
6
  export type TypeMemberDeclaration = ir.FieldDeclaration | ir.ComputedFieldDeclaration | ir.MethodDeclaration | ir.ConstructorDeclaration | ir.DestructorDeclaration | ir.IndexedElementGetterDeclaration | ir.IndexedElementSetterDeclaration | ir.DereferencedVariableGetterDeclaration | ir.DereferencedVariableSetterDeclaration;
@@ -1,7 +1,7 @@
1
- import { Localization } from '../analysis/Localization.js';
2
1
  import { Tag } from '../analysis/Tags.js';
2
+ import { Translation } from '../analysis/Translation.js';
3
3
  import { Analyzer } from '../analysis/index.js';
4
- import { Name } from '../common/index.js';
4
+ import { Name, PackageDialect, PackageLocale } from '../common/index.js';
5
5
  import { PackageAliasTypeDeclaration } from '../tree/index.js';
6
6
  import { TypeEntityMembers } from './TypeEntityMembers.js';
7
7
  import { AliasedType, DefinitionKind, EntityContext, EntityHidingLevel, EntityKind, ITypeEntity, PackageEntity, SubstitutionApplicationMode, TypeEntityKind, TypeParameterEntity } from './index.js';
@@ -21,7 +21,7 @@ export interface AliasTypeEntity extends ITypeEntity {
21
21
  isHidden(): EntityHidingLevel | undefined;
22
22
  getTags(): readonly Tag[];
23
23
  getSubstitutionApplicationMode(): SubstitutionApplicationMode;
24
- getLocalization(): Localization;
24
+ getTranslation(): Translation | undefined;
25
25
  getOriginalEntity(): AliasTypeEntity;
26
26
  }
27
27
  export type AliasTypeEntityDefinition = {
@@ -31,17 +31,18 @@ export type AliasTypeEntityDefinition = {
31
31
  kind: DefinitionKind.TypeScript;
32
32
  };
33
33
  export declare class PackageAliasTypeDeclarationEntity implements AliasTypeEntity {
34
- private readonly _analyzer;
35
- private readonly _node;
34
+ private readonly analyzer;
35
+ private readonly node;
36
36
  readonly kind = EntityKind.Type;
37
37
  readonly typeEntityKind = TypeEntityKind.Alias;
38
- private readonly _name;
39
- private readonly _aliasedType;
40
- private readonly _typeParameters;
41
- private readonly _members;
42
- private _modifierFlags;
38
+ private readonly name;
39
+ private readonly aliasedType;
40
+ private readonly typeParameters;
41
+ private readonly members;
42
+ private readonly hiding;
43
+ private modifierFlags_;
43
44
  private get modifierFlags();
44
- constructor(_analyzer: Analyzer, _node: PackageAliasTypeDeclaration);
45
+ constructor(analyzer: Analyzer, node: PackageAliasTypeDeclaration);
45
46
  getName(): Name;
46
47
  getContainingPackage(): PackageEntity;
47
48
  getAliasedType(): AliasedType;
@@ -53,6 +54,8 @@ export declare class PackageAliasTypeDeclarationEntity implements AliasTypeEntit
53
54
  getTags(): readonly Tag[];
54
55
  getSubstitutionApplicationMode(): SubstitutionApplicationMode;
55
56
  getContext(): EntityContext;
56
- getLocalization(): Localization;
57
+ getTranslation(): Translation | undefined;
58
+ getLocale(): PackageLocale;
59
+ getDialect(): PackageDialect;
57
60
  getOriginalEntity(): AliasTypeEntity;
58
61
  }
@@ -36,8 +36,8 @@ export declare class OriginalAliasedType extends AliasedType {
36
36
  * Правая часть тождественного типа, указанная пользователем.
37
37
  */
38
38
  readonly declared: types.Type;
39
- private readonly _analyzer;
40
- private _state;
39
+ private readonly analyzer;
40
+ private state;
41
41
  /**
42
42
  * Правая часть тождественного типа, указанная пользователем, либо тип `unresolved`,
43
43
  * если указанный тип приводит к циклу.
@@ -0,0 +1,31 @@
1
+ import * as types from '../types/index.js';
2
+ import { CycleFreeBaseAspectTypesResolutionResult } from './StructuredTypeEntity.js';
3
+ /**
4
+ * Класс позволяет работать с базовыми аспектными типами, исключая циклы наследования.
5
+ *
6
+ * Пример цикла наследования:
7
+ * ```artel
8
+ * тип А = аспект Б { }
9
+ * тип Б = аспект А { }
10
+ * ```
11
+ *
12
+ * Для типа `А` в поле `declared` будет указан тип `Б`, а в поле `cycleFree` - `undefined`.
13
+ */
14
+ export declare abstract class BaseAspectTypes {
15
+ /**
16
+ * Базовые аспектные типы, указанные пользователем.
17
+ */
18
+ abstract readonly declared: readonly types.Type[];
19
+ /**
20
+ * Базовые аспектные типы, указанные пользователем, которые не приводят к циклу.
21
+ */
22
+ abstract readonly cycleFree: readonly types.Type[];
23
+ /**
24
+ * Приводит ли хотя бы один базовый аспектный тип, указанный пользователем, к циклу?
25
+ */
26
+ abstract readonly causesCycle: boolean;
27
+ /**
28
+ * @param circularityTrackingStack Если элементом массива является `false`, тип не создаёт цикл, если `true` - создаёт.
29
+ */
30
+ abstract resolveBaseAspectTypes(circularityTrackingStack: boolean[]): CycleFreeBaseAspectTypesResolutionResult;
31
+ }
@@ -7,5 +7,5 @@ export declare abstract class BaseEntityHidingMatcher implements IEntityHidingMa
7
7
  protected abstract sourceFile: SourceFile | undefined;
8
8
  protected abstract package: PackageEntity;
9
9
  matches(hiding: EntityHidingLevel | undefined): boolean;
10
- private collectBaseTypesRecursively;
10
+ private isDerivedFromOrEquals;
11
11
  }
@@ -0,0 +1,31 @@
1
+ import * as types from '../types/index.js';
2
+ import { CycleFreeBaseObjectTypeResolutionResult } from './StructuredTypeEntity.js';
3
+ /**
4
+ * Класс позволяет работать с базовым объектным типом, исключая циклы наследования.
5
+ *
6
+ * Пример цикла наследования:
7
+ * ```artel
8
+ * тип А = объект Б { }
9
+ * тип Б = объект А { }
10
+ * ```
11
+ *
12
+ * Для типа `А` в поле `declared` будет указан тип `Б`, а в поле `cycleFree` - `undefined`.
13
+ */
14
+ export declare abstract class BaseObjectType {
15
+ /**
16
+ * Базовый объектный тип, указанный пользователем (либо базовый тип по умолчанию).
17
+ */
18
+ abstract readonly declared: types.Type | undefined;
19
+ /**
20
+ * Базовый объектный тип, указанный пользователем, либо `undefined`, если указанный тип приводит к циклу.
21
+ */
22
+ abstract readonly cycleFree: types.Type | undefined;
23
+ /**
24
+ * Приводит ли указанный базовый объектный тип к циклу?
25
+ */
26
+ abstract readonly causesCycle: boolean;
27
+ /**
28
+ * @param circularityTrackingStack Если элементом массива является `false`, тип не создаёт цикл, если `true` - создаёт.
29
+ */
30
+ abstract resolveBaseObjectType(circularityTrackingStack: boolean[]): CycleFreeBaseObjectTypeResolutionResult;
31
+ }