@artel/artc 0.6.25217 → 0.6.25219

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/build/Cli.js +3 -3
  2. package/build/api/Api.js +16 -66
  3. package/build/api/ApiNodeJS.js +3 -3
  4. package/build/api/ApiServices.js +930 -888
  5. package/build/{chunk-HN3XZZQX.js → chunk-AIY75NR5.js} +5 -4
  6. package/build/{chunk-TXAEJ2GI.js → chunk-IYSH7MAQ.js} +10562 -10629
  7. package/build/{chunk-CMPXXHBQ.js → chunk-QLTGS2V2.js} +13 -5
  8. package/build/types/analysis/AnalyzedTranslationPackage.d.ts +4 -26
  9. package/build/types/analysis/Analyzer.d.ts +27 -69
  10. package/build/types/analysis/{CallArgumentToParameterMatchResult.d.ts → ArgumentToParameterMatchResult.d.ts} +7 -7
  11. package/build/types/analysis/{CallArgumentsToParametersMatcher.d.ts → ArgumentsToParametersMatcher.d.ts} +14 -14
  12. package/build/types/analysis/ConstructorOverloadResolver.d.ts +1 -1
  13. package/build/types/analysis/DereferenceExpressionMeaning.d.ts +3 -3
  14. package/build/types/analysis/DiagnosticCollector.d.ts +2 -0
  15. package/build/types/analysis/FindModifier.d.ts +2 -0
  16. package/build/types/analysis/IdentifierExpressionMeaning.d.ts +14 -12
  17. package/build/types/analysis/LocalizationContext.d.ts +4 -5
  18. package/build/types/analysis/Lookup.d.ts +8 -7
  19. package/build/types/analysis/ModifierFlags.d.ts +16 -0
  20. package/build/types/analysis/NamedTypeSpecifierResolver.d.ts +0 -1
  21. package/build/types/analysis/NodeTypeUtils.d.ts +1 -0
  22. package/build/types/analysis/OperationOverloadResolver.d.ts +2 -2
  23. package/build/types/analysis/OverloadResolver.d.ts +4 -4
  24. package/build/types/analysis/PackageMemberLookup.d.ts +5 -6
  25. package/build/types/analysis/PropertyAccessExpressionMeaning.d.ts +18 -16
  26. package/build/types/analysis/Scope.d.ts +21 -116
  27. package/build/types/analysis/SemanticContext.d.ts +23 -13
  28. package/build/types/analysis/SemanticContextBuilder.d.ts +1 -1
  29. package/build/types/analysis/SourceFileMembers.d.ts +12 -99
  30. package/build/types/analysis/TagMeaning.d.ts +57 -9
  31. package/build/types/analysis/Tags.d.ts +18 -6
  32. package/build/types/analysis/TypeMemberLookup.d.ts +15 -15
  33. package/build/types/analysis/TypeOverloadResolver.d.ts +1 -1
  34. package/build/types/analysis/Utils.d.ts +4 -3
  35. package/build/types/analysis/WellKnownDeclarations.d.ts +1 -0
  36. package/build/types/analysis/index.d.ts +1 -1
  37. package/build/types/api/Api.d.ts +2 -6
  38. package/build/types/diagnostic/DiagnosticCode.d.ts +21 -17
  39. package/build/types/emitter/{EmitterGeneratedDeclarationKind.d.ts → EmitPhaseName.d.ts} +1 -44
  40. package/build/types/emitter/EmitterContext.d.ts +4 -1
  41. package/build/types/emitter/Entities.d.ts +52 -16
  42. package/build/types/emitter/EntityMap.d.ts +1 -3
  43. package/build/types/emitter/IrBuilder.d.ts +6 -2
  44. package/build/types/emitter/IrToJs.d.ts +6 -5
  45. package/build/types/emitter/Transformer.d.ts +20 -12
  46. package/build/types/emitter/ir/EmitOptions.d.ts +163 -0
  47. package/build/types/emitter/ir/Nodes.d.ts +215 -179
  48. package/build/types/emitter/ir/index.d.ts +1 -2
  49. package/build/types/emitter/ir/types.d.ts +4 -4
  50. package/build/types/entities/AliasTypeEntity.d.ts +8 -4
  51. package/build/types/entities/ConstructorEntity.d.ts +2 -0
  52. package/build/types/entities/DereferenceOperatorEntity.d.ts +5 -3
  53. package/build/types/entities/DestructorEntity.d.ts +2 -0
  54. package/build/types/entities/GetterEntity.d.ts +8 -0
  55. package/build/types/entities/IndexerEntity.d.ts +5 -3
  56. package/build/types/entities/MethodEntity.d.ts +9 -5
  57. package/build/types/entities/MethodTypeEntity.d.ts +10 -5
  58. package/build/types/entities/OperatorEntity.d.ts +5 -3
  59. package/build/types/entities/PackageEntity.d.ts +3 -3
  60. package/build/types/entities/PackageMembers.d.ts +4 -90
  61. package/build/types/entities/SetterEntity.d.ts +8 -0
  62. package/build/types/entities/StructuredTypeEntity.d.ts +11 -6
  63. package/build/types/entities/TypeEntity.d.ts +15 -0
  64. package/build/types/entities/TypeExtensionEntity.d.ts +2 -0
  65. package/build/types/entities/TypeParameterEntity.d.ts +11 -6
  66. package/build/types/entities/VariableEntity.d.ts +50 -41
  67. package/build/types/entities/VariantTypeEntity.d.ts +10 -11
  68. package/build/types/entities/index.d.ts +17 -25
  69. package/build/types/executor/Compiler.d.ts +1 -0
  70. package/build/types/executor/NodeCompiler.d.ts +1 -0
  71. package/build/types/parser/CharacterCodes.d.ts +8 -0
  72. package/build/types/parser/ReservedIdentifierDictionary.d.ts +1 -2
  73. package/build/types/project/FileSystemTree.d.ts +2 -2
  74. package/build/types/services/CompletionService.d.ts +4 -1
  75. package/build/types/services/DisplayService.d.ts +18 -2
  76. package/build/types/services/NodeSemanticInfo.d.ts +7 -5
  77. package/build/types/services/signature-help/SignatureWithValueParameters.d.ts +7 -21
  78. package/build/types/services/signature-help/TypeParameterSignatureHelpProvider.d.ts +1 -0
  79. package/build/types/services/source-generation/EntityToSyntax.d.ts +1 -1
  80. package/build/types/services/source-generation/SourceGenerationService.d.ts +2 -2
  81. package/build/types/services/workspace/ClientTrackedSourceFiles.d.ts +5 -5
  82. package/build/types/services/workspace/CompilationController.d.ts +3 -3
  83. package/build/types/services/workspace/FileSystemTreeProviderBasedOnWatchedFileSystem.d.ts +4 -4
  84. package/build/types/services/workspace/ManuallyUpdatedFileSystemTreeProvider.d.ts +4 -4
  85. package/build/types/services/workspace/Workspace.d.ts +3 -3
  86. package/build/types/services/workspace/WorkspaceFiles.d.ts +7 -7
  87. package/build/types/tree/KeywordKind.d.ts +37 -37
  88. package/build/types/tree/NodeKind.d.ts +10 -12
  89. package/build/types/tree/green/Nodes.d.ts +57 -84
  90. package/build/types/tree/green/SyntaxFactory.d.ts +4 -5
  91. package/build/types/tree/green/SyntaxToCode.d.ts +1 -2
  92. package/build/types/tree/red/Nodes.d.ts +67 -97
  93. package/build/types/ts-interop/Entities.d.ts +51 -28
  94. package/build/types/ts-interop/TsPackageMembersCreator.d.ts +0 -1
  95. package/build/types/types/TypeMembers.d.ts +9 -0
  96. package/package.json +2 -2
  97. package/build/types/analysis/DereferencedVariableAccess.d.ts +0 -14
  98. package/build/types/analysis/IndexedAccess.d.ts +0 -14
  99. package/build/types/analysis/VariableAccess.d.ts +0 -14
  100. package/build/types/analysis/VariantLookup.d.ts +0 -20
  101. package/build/types/emitter/ir/LoweringOptions.d.ts +0 -36
  102. package/build/types/emitter/ir/LoweringState.d.ts +0 -49
  103. package/build/types/entities/VariantEntity.d.ts +0 -31
  104. package/build/types/entities/Variants.d.ts +0 -10
@@ -1,9 +1,8 @@
1
- import { AccessKind, Name } from '../../common/index.js';
2
- import { MethodEntity, Type, TypeOrExtensionEntity, VariableEntity } from '../Entities.js';
1
+ import { AccessKind } from '../../common/index.js';
2
+ import { MethodEntity, NamedEntity, Type, TypeOrExtensionEntity, VariableEntity } from '../Entities.js';
3
3
  import { AccessedMethod, AccessedVariable } from './AccessedEntities.js';
4
4
  import { ComputedAccess } from './ComputedAccess.js';
5
- import { AssignmentLoweringOptions, DeclarationWithInitializerLoweringOptions, MethodAccessLoweringOptions, TextTemplateLiteralLoweringOptions } from './LoweringOptions.js';
6
- import { CallExpressionLoweringState, ConstructorCallExpressionLoweringState, PackageVariableDeclarationLoweringState, TypeMethodDeclarationLoweringState } from './LoweringState.js';
5
+ import { AssignmentEmitOptions, CallExpressionEmitOptions, ConstructorCallExpressionEmitOptions, DeclarationWithInitializerEmitOptions, MethodAccessExpressionEmitOptions, PackageVariableDeclarationEmitOptions, TextTemplateLiteralEmitOptions, TypeMethodDeclarationEmitOptions, TypeVariableAccessExpressionEmitOptions, TypeVariableDeclarationEmitOptions } from './EmitOptions.js';
7
6
  import { SourceLocation } from './SourceLocation.js';
8
7
  import { Expression, LValueExpression, PackageMemberDeclaration, Statement, TypeMemberDeclaration } from './types.js';
9
8
  export declare class ArrayLiteral {
@@ -35,9 +34,9 @@ export declare class AssignmentExpression {
35
34
  right: Expression;
36
35
  operator: AccessedMethod | undefined;
37
36
  sourceLocation: SourceLocation | undefined;
38
- loweringOptions: AssignmentLoweringOptions;
37
+ options: AssignmentEmitOptions;
39
38
  readonly kind = NodeKind.AssignmentExpression;
40
- constructor(left: LValueExpression, operatorKind: AssignmentOperatorKind, right: Expression, operator: AccessedMethod | undefined, sourceLocation: SourceLocation | undefined, loweringOptions?: AssignmentLoweringOptions);
39
+ constructor(left: LValueExpression, operatorKind: AssignmentOperatorKind, right: Expression, operator: AccessedMethod | undefined, sourceLocation: SourceLocation | undefined, options?: AssignmentEmitOptions);
41
40
  clone(): AssignmentExpression;
42
41
  }
43
42
  export declare class AssignmentStatement {
@@ -46,9 +45,9 @@ export declare class AssignmentStatement {
46
45
  right: Expression;
47
46
  operator: AccessedMethod | undefined;
48
47
  sourceLocation: SourceLocation | undefined;
49
- loweringOptions: AssignmentLoweringOptions;
48
+ options: AssignmentEmitOptions;
50
49
  readonly kind = NodeKind.AssignmentStatement;
51
- constructor(left: LValueExpression, operatorKind: AssignmentOperatorKind, right: Expression, operator: AccessedMethod | undefined, sourceLocation: SourceLocation | undefined, loweringOptions?: AssignmentLoweringOptions);
50
+ constructor(left: LValueExpression, operatorKind: AssignmentOperatorKind, right: Expression, operator: AccessedMethod | undefined, sourceLocation: SourceLocation | undefined, options?: AssignmentEmitOptions);
52
51
  clone(): AssignmentStatement;
53
52
  }
54
53
  export declare class AssumptionExpression {
@@ -61,10 +60,10 @@ export declare class AssumptionExpression {
61
60
  export declare class BaseConstructorCallExpression {
62
61
  entity: MethodEntity;
63
62
  containingTypeOfConstructor: TypeOrExtensionEntity;
64
- callArguments: CallArguments;
63
+ args: Arguments;
65
64
  sourceLocation: SourceLocation | undefined;
66
65
  readonly kind = NodeKind.BaseConstructorCallExpression;
67
- constructor(entity: MethodEntity, containingTypeOfConstructor: TypeOrExtensionEntity, callArguments: CallArguments, sourceLocation: SourceLocation | undefined);
66
+ constructor(entity: MethodEntity, containingTypeOfConstructor: TypeOrExtensionEntity, args: Arguments, sourceLocation: SourceLocation | undefined);
68
67
  clone(): BaseConstructorCallExpression;
69
68
  }
70
69
  export declare class BaseExpression {
@@ -105,43 +104,48 @@ export declare class BreakLoopStatement {
105
104
  constructor(label: string, sourceLocation: SourceLocation | undefined);
106
105
  clone(): BreakLoopStatement;
107
106
  }
108
- export declare class CallArgument {
107
+ export declare class Argument {
109
108
  expression: Expression;
110
- readonly targetParameter: TargetParameter;
111
- readonly kind = NodeKind.CallArgument;
112
- constructor(expression: Expression, targetParameter: TargetParameter);
113
- clone(): CallArgument;
109
+ targetParameter: TargetParameter;
110
+ sourceLocation: SourceLocation | undefined;
111
+ readonly kind = NodeKind.Argument;
112
+ constructor(expression: Expression, targetParameter: TargetParameter, sourceLocation: SourceLocation | undefined);
113
+ clone(): Argument;
114
114
  }
115
115
  export declare class TargetParameter {
116
116
  readonly entity: VariableEntity;
117
117
  readonly type: Type;
118
118
  constructor(entity: VariableEntity, type: Type);
119
119
  }
120
- export type CallArguments = UnorderedCallArguments | OrderedCallArguments;
121
- export declare class UnorderedCallArguments {
122
- readonly values: readonly CallArgument[];
123
- readonly targetParameters: readonly VariableEntity[];
124
- readonly kind = "unordered";
125
- constructor(values: readonly CallArgument[], targetParameters: readonly VariableEntity[]);
126
- clone(): UnorderedCallArguments;
120
+ export type Arguments = UnorderedArguments | OrderedArguments;
121
+ export declare class UnorderedArguments {
122
+ values: readonly Argument[];
123
+ targetParameters: readonly VariableEntity[];
124
+ sourceLocation: SourceLocation | undefined;
125
+ readonly kind = NodeKind.Arguments;
126
+ readonly areOrdered = false;
127
+ constructor(values: readonly Argument[], targetParameters: readonly VariableEntity[], sourceLocation: SourceLocation | undefined);
128
+ clone(): UnorderedArguments;
127
129
  }
128
- export declare class OrderedCallArguments {
130
+ export declare class OrderedArguments {
129
131
  values: readonly Expression[];
130
132
  isLastArgumentSpreading: boolean;
131
- readonly kind = "ordered";
132
- constructor(values: readonly Expression[], isLastArgumentSpreading: boolean);
133
- clone(): OrderedCallArguments;
133
+ sourceLocation: SourceLocation | undefined;
134
+ readonly kind = NodeKind.Arguments;
135
+ readonly areOrdered = true;
136
+ constructor(values: readonly Expression[], isLastArgumentSpreading: boolean, sourceLocation?: SourceLocation | undefined);
137
+ clone(): OrderedArguments;
134
138
  }
135
139
  export declare class CallExpression {
136
140
  expression: Expression;
137
- isOptionalChaining: boolean;
138
- callArguments: CallArguments;
141
+ isOptionalAccess: boolean;
142
+ args: Arguments;
139
143
  isAsyncMethodCall: boolean;
140
144
  returnType: Type;
141
145
  sourceLocation: SourceLocation | undefined;
142
- loweringState: CallExpressionLoweringState;
146
+ options: CallExpressionEmitOptions;
143
147
  readonly kind = NodeKind.CallExpression;
144
- constructor(expression: Expression, isOptionalChaining: boolean, callArguments: CallArguments, isAsyncMethodCall: boolean, returnType: Type, sourceLocation: SourceLocation | undefined, loweringState?: CallExpressionLoweringState);
148
+ constructor(expression: Expression, isOptionalAccess: boolean, args: Arguments, isAsyncMethodCall: boolean, returnType: Type, sourceLocation: SourceLocation | undefined, options?: CallExpressionEmitOptions);
145
149
  clone(): CallExpression;
146
150
  }
147
151
  export declare class CharLiteral {
@@ -162,12 +166,12 @@ export declare class ConstructorCallExpression {
162
166
  entity: MethodEntity;
163
167
  containingTypeOfConstructor: TypeOrExtensionEntity;
164
168
  typeAccess: TypeAccessExpression;
165
- callArguments: CallArguments;
169
+ args: Arguments;
166
170
  returnType: Type;
167
171
  sourceLocation: SourceLocation | undefined;
168
- loweringState: ConstructorCallExpressionLoweringState;
172
+ options: ConstructorCallExpressionEmitOptions;
169
173
  readonly kind = NodeKind.ConstructorCallExpression;
170
- constructor(entity: MethodEntity, containingTypeOfConstructor: TypeOrExtensionEntity, typeAccess: TypeAccessExpression, callArguments: CallArguments, returnType: Type, sourceLocation: SourceLocation | undefined, loweringState?: ConstructorCallExpressionLoweringState);
174
+ constructor(entity: MethodEntity, containingTypeOfConstructor: TypeOrExtensionEntity, typeAccess: TypeAccessExpression, args: Arguments, returnType: Type, sourceLocation: SourceLocation | undefined, options?: ConstructorCallExpressionEmitOptions);
171
175
  clone(): ConstructorCallExpression;
172
176
  }
173
177
  export declare class ContinueLoopStatement {
@@ -179,11 +183,11 @@ export declare class ContinueLoopStatement {
179
183
  }
180
184
  export declare class DereferenceExpression {
181
185
  expression: Expression;
182
- isOptionalChaining: boolean;
186
+ isOptionalAccess: boolean;
183
187
  access: ComputedAccess;
184
188
  sourceLocation: SourceLocation | undefined;
185
189
  readonly kind = NodeKind.DereferenceExpression;
186
- constructor(expression: Expression, isOptionalChaining: boolean, access: ComputedAccess, sourceLocation: SourceLocation | undefined);
190
+ constructor(expression: Expression, isOptionalAccess: boolean, access: ComputedAccess, sourceLocation: SourceLocation | undefined);
187
191
  clone(): DereferenceExpression;
188
192
  }
189
193
  export declare class DisposeStatement {
@@ -243,12 +247,12 @@ export declare class IfStatement {
243
247
  }
244
248
  export declare class IndexedAccessExpression {
245
249
  expression: Expression;
246
- isOptionalChaining: boolean;
247
- args: CallArguments;
250
+ isOptionalAccess: boolean;
251
+ args: Arguments;
248
252
  access: ComputedAccess;
249
253
  sourceLocation: SourceLocation | undefined;
250
254
  readonly kind = NodeKind.IndexedAccessExpression;
251
- constructor(expression: Expression, isOptionalChaining: boolean, args: CallArguments, access: ComputedAccess, sourceLocation: SourceLocation | undefined);
255
+ constructor(expression: Expression, isOptionalAccess: boolean, args: Arguments, access: ComputedAccess, sourceLocation: SourceLocation | undefined);
252
256
  clone(): IndexedAccessExpression;
253
257
  }
254
258
  export declare class InlineJsExpression {
@@ -319,12 +323,12 @@ export declare class JsImportSpecifier {
319
323
  }
320
324
  export declare class JsIndexedAccessExpression {
321
325
  expression: Expression;
322
- isOptionalChaining: boolean;
326
+ isOptionalAccess: boolean;
323
327
  argument: Expression;
324
328
  type: Type;
325
329
  sourceLocation: SourceLocation | undefined;
326
330
  readonly kind = NodeKind.JsIndexedAccessExpression;
327
- constructor(expression: Expression, isOptionalChaining: boolean, argument: Expression, type: Type, sourceLocation: SourceLocation | undefined);
331
+ constructor(expression: Expression, isOptionalAccess: boolean, argument: Expression, type: Type, sourceLocation: SourceLocation | undefined);
328
332
  clone(): JsIndexedAccessExpression;
329
333
  }
330
334
  export declare class JsInstanceOfExpression {
@@ -351,22 +355,34 @@ export declare class JsObjectLiteral {
351
355
  constructor(properties: readonly JsObjectLiteralProperty[], sourceLocation: SourceLocation | undefined);
352
356
  clone(): JsObjectLiteral;
353
357
  }
354
- export declare class JsObjectLiteralProperty {
358
+ export type JsObjectLiteralProperty = NamedJsObjectLiteralProperty | SpreadJsObjectLiteralProperty;
359
+ export declare class NamedJsObjectLiteralProperty {
355
360
  name: string;
356
361
  value: Expression;
357
362
  sourceLocation: SourceLocation | undefined;
358
- readonly kind = NodeKind.JsObjectLiteralProperty;
363
+ readonly kind = NodeKind.NamedJsObjectLiteralProperty;
359
364
  constructor(name: string, value: Expression, sourceLocation: SourceLocation | undefined);
360
- clone(): JsObjectLiteralProperty;
365
+ clone(): NamedJsObjectLiteralProperty;
366
+ }
367
+ /**
368
+ * @example
369
+ * { ...expression }
370
+ */
371
+ export declare class SpreadJsObjectLiteralProperty {
372
+ expression: Expression;
373
+ sourceLocation: SourceLocation | undefined;
374
+ readonly kind = NodeKind.SpreadJsObjectLiteralProperty;
375
+ constructor(expression: Expression, sourceLocation: SourceLocation | undefined);
376
+ clone(): SpreadJsObjectLiteralProperty;
361
377
  }
362
378
  export declare class JsPropertyAccessExpression {
363
379
  expression: Expression;
364
- isOptionalChaining: boolean;
380
+ isOptionalAccess: boolean;
365
381
  name: string;
366
382
  type: Type;
367
383
  sourceLocation: SourceLocation | undefined;
368
384
  readonly kind = NodeKind.JsPropertyAccessExpression;
369
- constructor(expression: Expression, isOptionalChaining: boolean, name: string, type: Type, sourceLocation: SourceLocation | undefined);
385
+ constructor(expression: Expression, isOptionalAccess: boolean, name: string, type: Type, sourceLocation: SourceLocation | undefined);
370
386
  clone(): JsPropertyAccessExpression;
371
387
  }
372
388
  export declare class JsTypeOfExpression {
@@ -380,9 +396,9 @@ export declare class LocalVariableDeclaration {
380
396
  entity: VariableEntity;
381
397
  initializer: Expression | undefined;
382
398
  sourceLocation: SourceLocation | undefined;
383
- loweringOptions: DeclarationWithInitializerLoweringOptions;
399
+ options: DeclarationWithInitializerEmitOptions;
384
400
  readonly kind = NodeKind.LocalVariableDeclaration;
385
- constructor(entity: VariableEntity, initializer: Expression | undefined, sourceLocation: SourceLocation | undefined, loweringOptions?: DeclarationWithInitializerLoweringOptions);
401
+ constructor(entity: VariableEntity, initializer: Expression | undefined, sourceLocation: SourceLocation | undefined, options?: DeclarationWithInitializerEmitOptions);
386
402
  clone(): LocalVariableDeclaration;
387
403
  }
388
404
  export declare class LocalVariableDeclarationStatement {
@@ -411,9 +427,9 @@ export declare class MethodAccessExpression {
411
427
  method: AccessedMethod;
412
428
  isCallee: boolean;
413
429
  sourceLocation: SourceLocation | undefined;
414
- loweringOptions: MethodAccessLoweringOptions;
430
+ options: MethodAccessExpressionEmitOptions;
415
431
  readonly kind = NodeKind.MethodAccessExpression;
416
- constructor(method: AccessedMethod, isCallee: boolean, sourceLocation: SourceLocation | undefined, loweringOptions?: MethodAccessLoweringOptions);
432
+ constructor(method: AccessedMethod, isCallee: boolean, sourceLocation: SourceLocation | undefined, options?: MethodAccessExpressionEmitOptions);
417
433
  clone(): MethodAccessExpression;
418
434
  }
419
435
  export declare class MethodLiteral {
@@ -477,21 +493,21 @@ export declare class NumericLiteral {
477
493
  constructor(value: number, sourceLocation: SourceLocation | undefined);
478
494
  clone(): NumericLiteral;
479
495
  }
480
- export declare class OnErrorClause {
496
+ export declare class CatchClause {
481
497
  errorVariableEntity: VariableEntity | undefined;
482
498
  body: BlockStatement;
483
499
  sourceLocation: SourceLocation | undefined;
484
- readonly kind = NodeKind.OnErrorClause;
500
+ readonly kind = NodeKind.CatchClause;
485
501
  constructor(errorVariableEntity: VariableEntity | undefined, body: BlockStatement, sourceLocation: SourceLocation | undefined);
486
- clone(): OnErrorClause;
502
+ clone(): CatchClause;
487
503
  }
488
504
  export declare class OwnConstructorCallExpression {
489
505
  entity: MethodEntity;
490
506
  containingTypeOfConstructor: TypeOrExtensionEntity;
491
- callArguments: CallArguments;
507
+ args: Arguments;
492
508
  sourceLocation: SourceLocation | undefined;
493
509
  readonly kind = NodeKind.OwnConstructorCallExpression;
494
- constructor(entity: MethodEntity, containingTypeOfConstructor: TypeOrExtensionEntity, callArguments: CallArguments, sourceLocation: SourceLocation | undefined);
510
+ constructor(entity: MethodEntity, containingTypeOfConstructor: TypeOrExtensionEntity, args: Arguments, sourceLocation: SourceLocation | undefined);
495
511
  clone(): OwnConstructorCallExpression;
496
512
  }
497
513
  export declare class PackageMethodDeclaration {
@@ -499,20 +515,20 @@ export declare class PackageMethodDeclaration {
499
515
  valueParameters: readonly ValueParameterDeclaration[];
500
516
  body: BlockStatement;
501
517
  entity: MethodEntity;
502
- paramLocalVariableEntity: VariableEntity | undefined;
503
518
  isGenerator: boolean;
504
519
  sourceLocation: SourceLocation | undefined;
505
520
  readonly kind = NodeKind.PackageMethodDeclaration;
506
- constructor(modifiers: Modifiers, valueParameters: readonly ValueParameterDeclaration[], body: BlockStatement, entity: MethodEntity, paramLocalVariableEntity: VariableEntity | undefined, isGenerator: boolean, sourceLocation: SourceLocation | undefined);
521
+ constructor(modifiers: Modifiers, valueParameters: readonly ValueParameterDeclaration[], body: BlockStatement, entity: MethodEntity, isGenerator: boolean, sourceLocation: SourceLocation | undefined);
507
522
  clone(): PackageMethodDeclaration;
508
523
  }
509
524
  export declare class PackageTypeDeclaration {
525
+ decorators: readonly Decorator[];
510
526
  modifiers: Modifiers;
511
527
  members: readonly TypeMemberDeclaration[];
512
528
  entity: TypeOrExtensionEntity;
513
529
  sourceLocation: SourceLocation | undefined;
514
530
  readonly kind = NodeKind.PackageTypeDeclaration;
515
- constructor(modifiers: Modifiers, members: readonly TypeMemberDeclaration[], entity: TypeOrExtensionEntity, sourceLocation: SourceLocation | undefined);
531
+ constructor(decorators: readonly Decorator[], modifiers: Modifiers, members: readonly TypeMemberDeclaration[], entity: TypeOrExtensionEntity, sourceLocation: SourceLocation | undefined);
516
532
  clone(): PackageTypeDeclaration;
517
533
  }
518
534
  export declare class PackageVariableDeclaration {
@@ -520,9 +536,9 @@ export declare class PackageVariableDeclaration {
520
536
  initializer: Expression | undefined;
521
537
  entity: VariableEntity;
522
538
  sourceLocation: SourceLocation | undefined;
523
- loweringState: PackageVariableDeclarationLoweringState;
539
+ options: PackageVariableDeclarationEmitOptions;
524
540
  readonly kind = NodeKind.PackageVariableDeclaration;
525
- constructor(modifiers: Modifiers, initializer: Expression | undefined, entity: VariableEntity, sourceLocation: SourceLocation | undefined, loweringState?: PackageVariableDeclarationLoweringState);
541
+ constructor(modifiers: Modifiers, initializer: Expression | undefined, entity: VariableEntity, sourceLocation: SourceLocation | undefined, options?: PackageVariableDeclarationEmitOptions);
526
542
  clone(): PackageVariableDeclaration;
527
543
  }
528
544
  export declare class PackageVariableGetterDeclaration {
@@ -538,11 +554,10 @@ export declare class PackageVariableSetterDeclaration {
538
554
  entity: MethodEntity;
539
555
  variableEntity: VariableEntity;
540
556
  body: BlockStatement;
541
- paramLocalVariableEntity: VariableEntity | undefined;
542
557
  valueLocalVariableEntity: VariableEntity;
543
558
  sourceLocation: SourceLocation | undefined;
544
559
  readonly kind = NodeKind.PackageVariableSetterDeclaration;
545
- constructor(entity: MethodEntity, variableEntity: VariableEntity, body: BlockStatement, paramLocalVariableEntity: VariableEntity | undefined, valueLocalVariableEntity: VariableEntity, sourceLocation: SourceLocation | undefined);
560
+ constructor(entity: MethodEntity, variableEntity: VariableEntity, body: BlockStatement, valueLocalVariableEntity: VariableEntity, sourceLocation: SourceLocation | undefined);
546
561
  clone(): PackageVariableSetterDeclaration;
547
562
  }
548
563
  export declare class PackageVariantTypeDeclaration {
@@ -567,6 +582,13 @@ export declare class VariantDeclaration {
567
582
  constructor(value: Expression | undefined, entity: VariableEntity, sourceLocation: SourceLocation | undefined);
568
583
  clone(): VariantDeclaration;
569
584
  }
585
+ export declare class Decorator {
586
+ expression: Expression;
587
+ sourceLocation: SourceLocation | undefined;
588
+ readonly kind = NodeKind.Decorator;
589
+ constructor(expression: Expression, sourceLocation: SourceLocation | undefined);
590
+ clone(): Decorator;
591
+ }
570
592
  export declare class PrefixUnaryExpression {
571
593
  operatorKind: PrefixUnaryExpressionOperatorKind;
572
594
  expression: Expression;
@@ -592,13 +614,20 @@ export declare class ReturnStatement {
592
614
  }
593
615
  export declare class RunStatement {
594
616
  body: BlockStatement;
595
- onErrorClauses: readonly OnErrorClause[];
596
- finallyClause: FinallyClause | undefined;
597
617
  sourceLocation: SourceLocation | undefined;
598
618
  readonly kind = NodeKind.RunStatement;
599
- constructor(body: BlockStatement, onErrorClauses: readonly OnErrorClause[], finallyClause: FinallyClause | undefined, sourceLocation: SourceLocation | undefined);
619
+ constructor(body: BlockStatement, sourceLocation: SourceLocation | undefined);
600
620
  clone(): RunStatement;
601
621
  }
622
+ export declare class TryStatement {
623
+ body: BlockStatement;
624
+ catchClause: CatchClause | undefined;
625
+ finallyClause: FinallyClause | undefined;
626
+ sourceLocation: SourceLocation | undefined;
627
+ readonly kind = NodeKind.TryStatement;
628
+ constructor(body: BlockStatement, catchClause: CatchClause | undefined, finallyClause: FinallyClause | undefined, sourceLocation: SourceLocation | undefined);
629
+ clone(): TryStatement;
630
+ }
602
631
  export declare class Package {
603
632
  leadingStatements: readonly Statement[];
604
633
  declarations: readonly PackageMemberDeclaration[];
@@ -624,14 +653,6 @@ export declare class CaseClause {
624
653
  constructor(expressions: readonly Expression[], body: BlockStatement);
625
654
  clone(): CaseClause;
626
655
  }
627
- export declare class Tag {
628
- name: Name;
629
- callArguments: readonly CallArgument[];
630
- sourceLocation: SourceLocation | undefined;
631
- readonly kind = NodeKind.Tag;
632
- constructor(name: Name, callArguments: readonly CallArgument[], sourceLocation: SourceLocation | undefined);
633
- clone(): Tag;
634
- }
635
656
  export declare class TernaryExpression {
636
657
  condition: Expression;
637
658
  firstExpression: Expression;
@@ -649,12 +670,24 @@ export declare class TextLiteral {
649
670
  constructor(value: string, sourceLocation: SourceLocation | undefined);
650
671
  clone(): TextLiteral;
651
672
  }
673
+ /**
674
+ * Узел предназначен для генерации строки, состоящей из имени сущности.
675
+ * Поскольку имена сущностей могут меняться в процессе трансформаций, для этих целей нельзя использовать обычный
676
+ * литерал текста.
677
+ */
678
+ export declare class TextWithEntityName {
679
+ readonly entity: NamedEntity;
680
+ sourceLocation: SourceLocation | undefined;
681
+ readonly kind = NodeKind.TextWithEntityName;
682
+ constructor(entity: NamedEntity, sourceLocation: SourceLocation | undefined);
683
+ clone(): TextWithEntityName;
684
+ }
652
685
  export declare class TextTemplateLiteral {
653
686
  elements: readonly (string | Expression)[];
654
687
  sourceLocation: SourceLocation | undefined;
655
- loweringOptions: TextTemplateLiteralLoweringOptions;
688
+ options: TextTemplateLiteralEmitOptions;
656
689
  readonly kind = NodeKind.TextTemplateLiteral;
657
- constructor(elements: readonly (string | Expression)[], sourceLocation: SourceLocation | undefined, loweringOptions?: TextTemplateLiteralLoweringOptions);
690
+ constructor(elements: readonly (string | Expression)[], sourceLocation: SourceLocation | undefined, options?: TextTemplateLiteralEmitOptions);
658
691
  clone(): TextTemplateLiteral;
659
692
  }
660
693
  export declare class ThisExpression {
@@ -664,16 +697,6 @@ export declare class ThisExpression {
664
697
  constructor(type: Type, sourceLocation: SourceLocation | undefined);
665
698
  clone(): ThisExpression;
666
699
  }
667
- export declare class TryCatchFinallyStatement {
668
- body: BlockStatement;
669
- errorParameter: VariableEntity | undefined;
670
- catchClauseBody: BlockStatement | undefined;
671
- finallyClauseBody: BlockStatement | undefined;
672
- sourceLocation: SourceLocation | undefined;
673
- readonly kind = NodeKind.TryCatchFinallyStatement;
674
- constructor(body: BlockStatement, errorParameter: VariableEntity | undefined, catchClauseBody: BlockStatement | undefined, finallyClauseBody: BlockStatement | undefined, sourceLocation: SourceLocation | undefined);
675
- clone(): TryCatchFinallyStatement;
676
- }
677
700
  export declare class TypeAccessExpression {
678
701
  entity: TypeOrExtensionEntity;
679
702
  sourceLocation: SourceLocation | undefined;
@@ -682,79 +705,83 @@ export declare class TypeAccessExpression {
682
705
  clone(): TypeAccessExpression;
683
706
  }
684
707
  export declare class TypeConstructorDeclaration {
708
+ decorators: readonly Decorator[];
685
709
  valueParameters: readonly ValueParameterDeclaration[];
686
710
  body: BlockStatement;
687
711
  entity: MethodEntity;
688
712
  sourceLocation: SourceLocation | undefined;
689
713
  readonly kind = NodeKind.TypeConstructorDeclaration;
690
- constructor(valueParameters: readonly ValueParameterDeclaration[], body: BlockStatement, entity: MethodEntity, sourceLocation: SourceLocation | undefined);
714
+ constructor(decorators: readonly Decorator[], valueParameters: readonly ValueParameterDeclaration[], body: BlockStatement, entity: MethodEntity, sourceLocation: SourceLocation | undefined);
691
715
  clone(): TypeConstructorDeclaration;
692
716
  }
693
717
  export declare class TypeDereferencedVariableGetterDeclaration {
694
718
  entity: MethodEntity;
719
+ decorators: readonly Decorator[];
695
720
  modifiers: Modifiers;
696
721
  body: BlockStatement;
697
722
  sourceLocation: SourceLocation | undefined;
698
723
  readonly kind = NodeKind.TypeDereferencedVariableGetterDeclaration;
699
- constructor(entity: MethodEntity, modifiers: Modifiers, body: BlockStatement, sourceLocation: SourceLocation | undefined);
724
+ constructor(entity: MethodEntity, decorators: readonly Decorator[], modifiers: Modifiers, body: BlockStatement, sourceLocation: SourceLocation | undefined);
700
725
  clone(): TypeDereferencedVariableGetterDeclaration;
701
726
  }
702
727
  export declare class TypeDereferencedVariableSetterDeclaration {
703
728
  entity: MethodEntity;
729
+ decorators: readonly Decorator[];
704
730
  modifiers: Modifiers;
705
731
  body: BlockStatement;
706
- paramLocalVariableEntity: VariableEntity;
707
732
  valueLocalVariableEntity: VariableEntity;
708
733
  sourceLocation: SourceLocation | undefined;
709
734
  readonly kind = NodeKind.TypeDereferencedVariableSetterDeclaration;
710
- constructor(entity: MethodEntity, modifiers: Modifiers, body: BlockStatement, paramLocalVariableEntity: VariableEntity, valueLocalVariableEntity: VariableEntity, sourceLocation: SourceLocation | undefined);
735
+ constructor(entity: MethodEntity, decorators: readonly Decorator[], modifiers: Modifiers, body: BlockStatement, valueLocalVariableEntity: VariableEntity, sourceLocation: SourceLocation | undefined);
711
736
  clone(): TypeDereferencedVariableSetterDeclaration;
712
737
  }
713
738
  export declare class TypeDestructorDeclaration {
739
+ decorators: readonly Decorator[];
714
740
  valueParameters: readonly ValueParameterDeclaration[];
715
741
  body: BlockStatement;
716
742
  entity: MethodEntity;
717
743
  sourceLocation: SourceLocation | undefined;
718
744
  readonly kind = NodeKind.TypeDestructorDeclaration;
719
- constructor(valueParameters: readonly ValueParameterDeclaration[], body: BlockStatement, entity: MethodEntity, sourceLocation: SourceLocation | undefined);
745
+ constructor(decorators: readonly Decorator[], valueParameters: readonly ValueParameterDeclaration[], body: BlockStatement, entity: MethodEntity, sourceLocation: SourceLocation | undefined);
720
746
  clone(): TypeDestructorDeclaration;
721
747
  }
722
748
  export declare class TypeIndexedGetterDeclaration {
723
749
  entity: MethodEntity;
750
+ decorators: readonly Decorator[];
724
751
  modifiers: Modifiers;
725
752
  valueParameters: readonly ValueParameterDeclaration[];
726
753
  body: BlockStatement;
727
- paramLocalVariableEntity: VariableEntity;
728
754
  sourceLocation: SourceLocation | undefined;
729
755
  readonly kind = NodeKind.TypeIndexedGetterDeclaration;
730
- constructor(entity: MethodEntity, modifiers: Modifiers, valueParameters: readonly ValueParameterDeclaration[], body: BlockStatement, paramLocalVariableEntity: VariableEntity, sourceLocation: SourceLocation | undefined);
756
+ constructor(entity: MethodEntity, decorators: readonly Decorator[], modifiers: Modifiers, valueParameters: readonly ValueParameterDeclaration[], body: BlockStatement, sourceLocation: SourceLocation | undefined);
731
757
  clone(): TypeIndexedGetterDeclaration;
732
758
  }
733
759
  export declare class TypeIndexedSetterDeclaration {
734
760
  entity: MethodEntity;
761
+ decorators: readonly Decorator[];
735
762
  modifiers: Modifiers;
736
763
  valueParameters: readonly ValueParameterDeclaration[];
737
764
  body: BlockStatement;
738
- paramLocalVariableEntity: VariableEntity;
739
765
  valueLocalVariableEntity: VariableEntity;
740
766
  sourceLocation: SourceLocation | undefined;
741
767
  readonly kind = NodeKind.TypeIndexedSetterDeclaration;
742
- constructor(entity: MethodEntity, modifiers: Modifiers, valueParameters: readonly ValueParameterDeclaration[], body: BlockStatement, paramLocalVariableEntity: VariableEntity, valueLocalVariableEntity: VariableEntity, sourceLocation: SourceLocation | undefined);
768
+ constructor(entity: MethodEntity, decorators: readonly Decorator[], modifiers: Modifiers, valueParameters: readonly ValueParameterDeclaration[], body: BlockStatement, valueLocalVariableEntity: VariableEntity, sourceLocation: SourceLocation | undefined);
743
769
  clone(): TypeIndexedSetterDeclaration;
744
770
  }
745
771
  export declare class TypeMethodAccessExpression {
746
772
  expression: Expression;
747
- isOptionalChaining: boolean;
773
+ isOptionalAccess: boolean;
748
774
  method: AccessedMethod;
749
775
  isCallee: boolean;
750
776
  ifComputedThenKey: Expression | undefined;
751
777
  sourceLocation: SourceLocation | undefined;
752
- loweringOptions: MethodAccessLoweringOptions;
778
+ options: MethodAccessExpressionEmitOptions;
753
779
  readonly kind = NodeKind.TypeMethodAccessExpression;
754
- constructor(expression: Expression, isOptionalChaining: boolean, method: AccessedMethod, isCallee: boolean, ifComputedThenKey: Expression | undefined, sourceLocation: SourceLocation | undefined, loweringOptions?: MethodAccessLoweringOptions);
780
+ constructor(expression: Expression, isOptionalAccess: boolean, method: AccessedMethod, isCallee: boolean, ifComputedThenKey: Expression | undefined, sourceLocation: SourceLocation | undefined, options?: MethodAccessExpressionEmitOptions);
755
781
  clone(): TypeMethodAccessExpression;
756
782
  }
757
783
  export declare class TypeMethodDeclaration {
784
+ decorators: readonly Decorator[];
758
785
  modifiers: Modifiers;
759
786
  valueParameters: readonly ValueParameterDeclaration[];
760
787
  body: BlockStatement;
@@ -762,52 +789,66 @@ export declare class TypeMethodDeclaration {
762
789
  isGenerator: boolean;
763
790
  ifComputedThenKey: Expression | undefined;
764
791
  sourceLocation: SourceLocation | undefined;
765
- loweringState: TypeMethodDeclarationLoweringState;
792
+ options: TypeMethodDeclarationEmitOptions;
766
793
  readonly kind = NodeKind.TypeMethodDeclaration;
767
- constructor(modifiers: Modifiers, valueParameters: readonly ValueParameterDeclaration[], body: BlockStatement, entity: MethodEntity, isGenerator: boolean, ifComputedThenKey: Expression | undefined, sourceLocation: SourceLocation | undefined, loweringState?: TypeMethodDeclarationLoweringState);
794
+ constructor(decorators: readonly Decorator[], modifiers: Modifiers, valueParameters: readonly ValueParameterDeclaration[], body: BlockStatement, entity: MethodEntity, isGenerator: boolean, ifComputedThenKey: Expression | undefined, sourceLocation: SourceLocation | undefined, options?: TypeMethodDeclarationEmitOptions);
768
795
  clone(): TypeMethodDeclaration;
769
796
  }
770
797
  export declare class TypeVariableAccessExpression {
771
798
  expression: Expression;
772
- isOptionalChaining: boolean;
799
+ isOptionalAccess: boolean;
773
800
  variable: AccessedVariable;
774
801
  accessKind: AccessKind;
802
+ ifComputedThenKey: Expression | undefined;
775
803
  sourceLocation: SourceLocation | undefined;
804
+ options: TypeVariableAccessExpressionEmitOptions;
776
805
  readonly kind = NodeKind.TypeVariableAccessExpression;
777
- constructor(expression: Expression, isOptionalChaining: boolean, variable: AccessedVariable, accessKind: AccessKind, sourceLocation: SourceLocation | undefined);
778
- static get(expression: Expression, isOptionalChaining: boolean, variable: AccessedVariable | VariableEntity, sourceLocation?: SourceLocation): TypeVariableAccessExpression;
779
- static set(expression: Expression, isOptionalChaining: boolean, variable: AccessedVariable | VariableEntity, sourceLocation?: SourceLocation): TypeVariableAccessExpression;
806
+ constructor(expression: Expression, isOptionalAccess: boolean, variable: AccessedVariable, accessKind: AccessKind, ifComputedThenKey: Expression | undefined, sourceLocation: SourceLocation | undefined, options?: TypeVariableAccessExpressionEmitOptions);
807
+ static get(expression: Expression, isOptionalAccess: boolean, variable: AccessedVariable | VariableEntity, ifComputedThenKey?: Expression, sourceLocation?: SourceLocation): TypeVariableAccessExpression;
808
+ static set(expression: Expression, isOptionalAccess: boolean, variable: AccessedVariable | VariableEntity, ifComputedThenKey?: Expression, sourceLocation?: SourceLocation): TypeVariableAccessExpression;
780
809
  clone(): TypeVariableAccessExpression;
781
810
  }
782
811
  export declare class TypeVariableDeclaration {
812
+ decorators: readonly Decorator[];
783
813
  modifiers: Modifiers;
784
814
  initializer: Expression | undefined;
785
815
  entity: VariableEntity;
816
+ ifComputedThenKey: Expression | undefined;
786
817
  sourceLocation: SourceLocation | undefined;
818
+ options: TypeVariableDeclarationEmitOptions;
787
819
  readonly kind = NodeKind.TypeVariableDeclaration;
788
- constructor(modifiers: Modifiers, initializer: Expression | undefined, entity: VariableEntity, sourceLocation: SourceLocation | undefined);
820
+ constructor(decorators: readonly Decorator[], modifiers: Modifiers, initializer: Expression | undefined, entity: VariableEntity, ifComputedThenKey: Expression | undefined, sourceLocation: SourceLocation | undefined, options?: TypeVariableDeclarationEmitOptions);
789
821
  clone(): TypeVariableDeclaration;
790
822
  }
823
+ export declare class ComputedTypeVariableDeclaration {
824
+ entity: VariableEntity;
825
+ modifiers: Modifiers;
826
+ getter: TypeVariableGetterDeclaration;
827
+ setter: TypeVariableSetterDeclaration | undefined;
828
+ ifComputedThenKey: Expression | undefined;
829
+ sourceLocation: SourceLocation | undefined;
830
+ options: TypeVariableDeclarationEmitOptions;
831
+ readonly kind = NodeKind.ComputedTypeVariableDeclaration;
832
+ constructor(entity: VariableEntity, modifiers: Modifiers, getter: TypeVariableGetterDeclaration, setter: TypeVariableSetterDeclaration | undefined, ifComputedThenKey: Expression | undefined, sourceLocation: SourceLocation | undefined, options?: TypeVariableDeclarationEmitOptions);
833
+ clone(): ComputedTypeVariableDeclaration;
834
+ }
791
835
  export declare class TypeVariableGetterDeclaration {
792
836
  entity: MethodEntity;
793
- variableEntity: VariableEntity;
794
- modifiers: Modifiers;
837
+ decorators: readonly Decorator[];
795
838
  body: BlockStatement;
796
839
  sourceLocation: SourceLocation | undefined;
797
840
  readonly kind = NodeKind.TypeVariableGetterDeclaration;
798
- constructor(entity: MethodEntity, variableEntity: VariableEntity, modifiers: Modifiers, body: BlockStatement, sourceLocation: SourceLocation | undefined);
841
+ constructor(entity: MethodEntity, decorators: readonly Decorator[], body: BlockStatement, sourceLocation: SourceLocation | undefined);
799
842
  clone(): TypeVariableGetterDeclaration;
800
843
  }
801
844
  export declare class TypeVariableSetterDeclaration {
802
845
  entity: MethodEntity;
803
- variableEntity: VariableEntity;
804
- modifiers: Modifiers;
846
+ decorators: readonly Decorator[];
805
847
  body: BlockStatement;
806
- paramLocalVariableEntity: VariableEntity | undefined;
807
848
  valueLocalVariableEntity: VariableEntity;
808
849
  sourceLocation: SourceLocation | undefined;
809
850
  readonly kind = NodeKind.TypeVariableSetterDeclaration;
810
- constructor(entity: MethodEntity, variableEntity: VariableEntity, modifiers: Modifiers, body: BlockStatement, paramLocalVariableEntity: VariableEntity | undefined, valueLocalVariableEntity: VariableEntity, sourceLocation: SourceLocation | undefined);
851
+ constructor(entity: MethodEntity, decorators: readonly Decorator[], body: BlockStatement, valueLocalVariableEntity: VariableEntity, sourceLocation: SourceLocation | undefined);
811
852
  clone(): TypeVariableSetterDeclaration;
812
853
  }
813
854
  export declare class ValueParameterDeclaration {
@@ -836,14 +877,6 @@ export declare class VariableAccessExpression {
836
877
  static set(variable: AccessedVariable | VariableEntity): VariableAccessExpression;
837
878
  clone(): VariableAccessExpression;
838
879
  }
839
- export declare class VariantAccessExpression {
840
- typeAccess: TypeAccessExpression;
841
- entity: VariableEntity;
842
- sourceLocation: SourceLocation | undefined;
843
- readonly kind = NodeKind.VariantAccessExpression;
844
- constructor(typeAccess: TypeAccessExpression, entity: VariableEntity, sourceLocation: SourceLocation | undefined);
845
- clone(): VariantAccessExpression;
846
- }
847
880
  export declare class WhileStatement {
848
881
  label: string | undefined;
849
882
  condition: Expression;
@@ -869,36 +902,36 @@ export declare const enum NodeKind {
869
902
  BlockStatement = 5,
870
903
  BooleanLiteral = 6,
871
904
  BreakLoopStatement = 7,
872
- CallArgument = 8,
905
+ Argument = 8,
873
906
  CallExpression = 9,
874
907
  CaseClause = 10,
875
908
  CharLiteral = 11,
876
909
  ContinueLoopStatement = 12,
877
910
  DisposeStatement = 13,
878
911
  RunStatement = 14,
879
- NoneLiteral = 15,
880
- EmptyStatement = 16,
881
- ErrorStatement = 17,
882
- ExpressionStatement = 18,
883
- FinallyClause = 19,
884
- ForStatement = 20,
885
- PackageMethodDeclaration = 21,
886
- PackageTypeDeclaration = 22,
887
- PackageVariableDeclaration = 23,
888
- PackageVariableGetterDeclaration = 24,
889
- PackageVariableSetterDeclaration = 25,
890
- PackageVariantTypeDeclaration = 26,
891
- IfStatement = 27,
892
- IndexedAccessExpression = 28,
893
- IntegerLiteral = 29,
894
- IsExpression = 30,
895
- NestedMethodDeclaration = 31,
896
- NestedMethodDeclarationStatement = 32,
897
- LocalVariableDeclaration = 33,
898
- LocalVariableDeclarationStatement = 34,
899
- NotExpression = 35,
912
+ TryStatement = 15,
913
+ NoneLiteral = 16,
914
+ EmptyStatement = 17,
915
+ ErrorStatement = 18,
916
+ ExpressionStatement = 19,
917
+ FinallyClause = 20,
918
+ ForStatement = 21,
919
+ PackageMethodDeclaration = 22,
920
+ PackageTypeDeclaration = 23,
921
+ PackageVariableDeclaration = 24,
922
+ PackageVariableGetterDeclaration = 25,
923
+ PackageVariableSetterDeclaration = 26,
924
+ PackageVariantTypeDeclaration = 27,
925
+ IfStatement = 28,
926
+ IndexedAccessExpression = 29,
927
+ IntegerLiteral = 30,
928
+ IsExpression = 31,
929
+ NestedMethodDeclaration = 32,
930
+ NestedMethodDeclarationStatement = 33,
931
+ LocalVariableDeclaration = 34,
932
+ LocalVariableDeclarationStatement = 35,
900
933
  NumericLiteral = 36,
901
- OnErrorClause = 37,
934
+ CatchClause = 37,
902
935
  MethodLiteral = 38,
903
936
  PrefixUnaryExpression = 39,
904
937
  MeasureLiteral = 40,
@@ -917,44 +950,47 @@ export declare const enum NodeKind {
917
950
  TypeVariableGetterDeclaration = 53,
918
951
  TypeVariableSetterDeclaration = 54,
919
952
  SwitchStatement = 55,
920
- Tag = 56,
921
- TernaryExpression = 57,
922
- ThisExpression = 58,
923
- ValueParameterDeclaration = 59,
924
- VariantDeclaration = 60,
925
- WhileStatement = 61,
926
- YieldStatement = 62,
927
- ArrayLiteral = 63,
928
- TypeAccessExpression = 64,
929
- VariableAccessExpression = 65,
930
- MethodAccessExpression = 66,
931
- ImplicitVariantAccessExpression = 67,
932
- VariantAccessExpression = 68,
933
- TypeVariableAccessExpression = 69,
934
- TypeMethodAccessExpression = 70,
935
- ConstructorCallExpression = 71,
936
- TryCatchFinallyStatement = 72,
937
- InlineJsExpression = 73,
938
- AssignmentExpression = 74,
939
- CommaExpression = 75,
940
- BaseConstructorCallExpression = 76,
941
- JsImportSpecifier = 77,
942
- JsIndexedAccessExpression = 78,
943
- EsModuleImportDirectiveStatement = 79,
944
- CjsModuleImportDirectiveStatement = 80,
945
- JsObjectLiteral = 81,
946
- JsObjectLiteralProperty = 82,
947
- JsPropertyAccessExpression = 83,
948
- JsFunctionLiteral = 84,
949
- JsTypeOfExpression = 85,
950
- JsInstanceOfExpression = 86,
951
- JsIdentifierExpression = 87,
952
- DereferenceExpression = 88,
953
- BaseExpression = 89,
954
- OwnConstructorCallExpression = 90,
955
- TypeDereferencedVariableGetterDeclaration = 91,
956
- TypeDereferencedVariableSetterDeclaration = 92,
957
- JsNamespaceDestructuringStatement = 93
953
+ TernaryExpression = 56,
954
+ ThisExpression = 57,
955
+ ValueParameterDeclaration = 58,
956
+ VariantDeclaration = 59,
957
+ WhileStatement = 60,
958
+ YieldStatement = 61,
959
+ ArrayLiteral = 62,
960
+ TypeAccessExpression = 63,
961
+ VariableAccessExpression = 64,
962
+ MethodAccessExpression = 65,
963
+ ImplicitVariantAccessExpression = 66,
964
+ VariantAccessExpression = 67,
965
+ TypeVariableAccessExpression = 68,
966
+ TypeMethodAccessExpression = 69,
967
+ ConstructorCallExpression = 70,
968
+ InlineJsExpression = 71,
969
+ AssignmentExpression = 72,
970
+ CommaExpression = 73,
971
+ BaseConstructorCallExpression = 74,
972
+ JsImportSpecifier = 75,
973
+ JsIndexedAccessExpression = 76,
974
+ EsModuleImportDirectiveStatement = 77,
975
+ CjsModuleImportDirectiveStatement = 78,
976
+ JsObjectLiteral = 79,
977
+ NamedJsObjectLiteralProperty = 80,
978
+ SpreadJsObjectLiteralProperty = 81,
979
+ JsPropertyAccessExpression = 82,
980
+ JsFunctionLiteral = 83,
981
+ JsTypeOfExpression = 84,
982
+ JsInstanceOfExpression = 85,
983
+ JsIdentifierExpression = 86,
984
+ DereferenceExpression = 87,
985
+ BaseExpression = 88,
986
+ OwnConstructorCallExpression = 89,
987
+ TypeDereferencedVariableGetterDeclaration = 90,
988
+ TypeDereferencedVariableSetterDeclaration = 91,
989
+ JsNamespaceDestructuringStatement = 92,
990
+ ComputedTypeVariableDeclaration = 93,
991
+ TextWithEntityName = 94,
992
+ Arguments = 95,
993
+ Decorator = 96
958
994
  }
959
995
  export declare const enum AssignmentOperatorKind {
960
996
  Equals = 0,