@artel/artc 0.6.25224 → 0.6.25225

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 (84) hide show
  1. package/build/Cli.js +3 -3
  2. package/build/api/Api.js +81 -79
  3. package/build/api/ApiNodeJS.js +3 -3
  4. package/build/api/ApiServices.js +995 -1001
  5. package/build/{chunk-24QZJOMF.js → chunk-TFTCV5R5.js} +5434 -5343
  6. package/build/{chunk-62KHK23H.js → chunk-UB6LHKS5.js} +3 -3
  7. package/build/{chunk-Y6DODJCG.js → chunk-Z6TZA6SN.js} +3 -3
  8. package/build/types/analysis/AccessedFunction.d.ts +53 -0
  9. package/build/types/analysis/AnalyzedTranslationPackage.d.ts +15 -15
  10. package/build/types/analysis/Analyzer.d.ts +133 -124
  11. package/build/types/analysis/CallExpressionMeaning.d.ts +10 -10
  12. package/build/types/analysis/DiagnosticCollector.d.ts +16 -16
  13. package/build/types/analysis/EntityLocalizationHelper.d.ts +6 -6
  14. package/build/types/analysis/IdentifierExpressionMeaning.d.ts +10 -10
  15. package/build/types/analysis/LocalizationContext.d.ts +2 -2
  16. package/build/types/analysis/{PropertyAccessExpressionMeaning.d.ts → MemberAccessExpressionMeaning.d.ts} +20 -20
  17. package/build/types/analysis/NodeTypeUtils.d.ts +13 -13
  18. package/build/types/analysis/OperationOverloadResolver.d.ts +1 -1
  19. package/build/types/analysis/Scope.d.ts +15 -15
  20. package/build/types/analysis/SemanticContext.d.ts +29 -29
  21. package/build/types/analysis/SemanticContextBuilder.d.ts +22 -22
  22. package/build/types/analysis/SourceFileMembers.d.ts +2 -2
  23. package/build/types/analysis/StatementBlockScopeBuilder.d.ts +12 -12
  24. package/build/types/analysis/{SubstitutedMethod.d.ts → SubstitutedFunction.d.ts} +14 -14
  25. package/build/types/analysis/TagMeaning.d.ts +19 -19
  26. package/build/types/analysis/Tags.d.ts +6 -6
  27. package/build/types/analysis/Utils.d.ts +3 -3
  28. package/build/types/analysis/WellKnownDeclarations.d.ts +4 -4
  29. package/build/types/analysis/control-flow/NarrowableExpression.d.ts +1 -1
  30. package/build/types/api/Api.d.ts +3 -3
  31. package/build/types/diagnostic/DiagnosticCode.d.ts +130 -131
  32. package/build/types/emitter/EmitPhaseName.d.ts +8 -8
  33. package/build/types/emitter/Emitter.d.ts +4 -4
  34. package/build/types/emitter/EmitterContext.d.ts +2 -2
  35. package/build/types/emitter/Entities.d.ts +26 -25
  36. package/build/types/emitter/EntityMap.d.ts +8 -8
  37. package/build/types/emitter/IrBuilder.d.ts +18 -18
  38. package/build/types/emitter/IrToJs.d.ts +9 -9
  39. package/build/types/emitter/Transformer.d.ts +37 -37
  40. package/build/types/emitter/ir/AccessedEntities.d.ts +5 -5
  41. package/build/types/emitter/ir/ComputedAccess.d.ts +5 -5
  42. package/build/types/emitter/ir/EmitOptions.d.ts +41 -27
  43. package/build/types/emitter/ir/Nodes.d.ts +140 -139
  44. package/build/types/emitter/ir/types.d.ts +8 -8
  45. package/build/types/entities/ConstructorEntity.d.ts +9 -9
  46. package/build/types/entities/DereferenceOperatorEntity.d.ts +4 -4
  47. package/build/types/entities/DestructorEntity.d.ts +4 -4
  48. package/build/types/entities/{MethodEntity.d.ts → FunctionEntity.d.ts} +36 -36
  49. package/build/types/entities/{MethodTypeEntity.d.ts → FunctionTypeEntity.d.ts} +23 -23
  50. package/build/types/entities/GetterEntity.d.ts +9 -9
  51. package/build/types/entities/IndexerEntity.d.ts +4 -4
  52. package/build/types/entities/SetterEntity.d.ts +9 -9
  53. package/build/types/entities/TypeEntity.d.ts +3 -3
  54. package/build/types/entities/TypeEntityMembers.d.ts +3 -3
  55. package/build/types/entities/TypeParameterEntity.d.ts +2 -2
  56. package/build/types/entities/VariableEntity.d.ts +32 -32
  57. package/build/types/entities/index.d.ts +14 -14
  58. package/build/types/services/CompletionService.d.ts +8 -8
  59. package/build/types/services/DisplayService.d.ts +62 -62
  60. package/build/types/services/HoverService.d.ts +1 -1
  61. package/build/types/services/NodeSemanticInfo.d.ts +17 -17
  62. package/build/types/services/SemanticTokensService.d.ts +6 -6
  63. package/build/types/services/SourceFileItemsService.d.ts +11 -11
  64. package/build/types/services/TypeDefinitionService.d.ts +2 -2
  65. package/build/types/services/signature-help/SignatureWithValueParameters.d.ts +10 -10
  66. package/build/types/services/signature-help/TypeParameterSignatureHelpProvider.d.ts +1 -1
  67. package/build/types/services/source-generation/EntityToSyntax.d.ts +9 -9
  68. package/build/types/tree/NodeKind.d.ts +146 -148
  69. package/build/types/tree/green/Nodes.d.ts +119 -139
  70. package/build/types/tree/green/SyntaxFactory.d.ts +19 -19
  71. package/build/types/tree/green/SyntaxToCode.d.ts +20 -22
  72. package/build/types/tree/red/Nodes.d.ts +165 -189
  73. package/build/types/ts-interop/Entities.d.ts +28 -28
  74. package/build/types/ts-interop/TsInteropContext.d.ts +1 -1
  75. package/build/types/ts-interop/TsPackageMembersCreator.d.ts +1 -1
  76. package/build/types/ts-interop/TsTypeMembersCreator.d.ts +1 -1
  77. package/build/types/types/{MethodType.d.ts → FunctionType.d.ts} +6 -6
  78. package/build/types/types/StandardTypes.d.ts +2 -2
  79. package/build/types/types/Type.d.ts +2 -2
  80. package/build/types/types/TypeFactory.d.ts +6 -7
  81. package/build/types/types/TypeMembers.d.ts +8 -8
  82. package/build/types/types/index.d.ts +1 -1
  83. package/package.json +1 -1
  84. package/build/types/analysis/AccessedMethod.d.ts +0 -53
@@ -1,8 +1,8 @@
1
1
  import { AccessKind } from '../../common/index.js';
2
- import { MethodEntity, NamedEntity, Type, TypeOrExtensionEntity, VariableEntity } from '../Entities.js';
3
- import { AccessedMethod, AccessedVariable } from './AccessedEntities.js';
2
+ import { FunctionEntity, NamedEntity, Type, TypeOrExtensionEntity, VariableEntity } from '../Entities.js';
3
+ import { AccessedFunction, AccessedVariable } from './AccessedEntities.js';
4
4
  import { ComputedAccess } from './ComputedAccess.js';
5
- import { AssignmentEmitOptions, CallExpressionEmitOptions, ConstructorCallExpressionEmitOptions, DeclarationWithInitializerEmitOptions, MethodAccessExpressionEmitOptions, PackageVariableDeclarationEmitOptions, TextTemplateLiteralEmitOptions, TypeMethodDeclarationEmitOptions, TypeVariableAccessExpressionEmitOptions, TypeVariableDeclarationEmitOptions } from './EmitOptions.js';
5
+ import { AssignmentEmitOptions, CallExpressionEmitOptions, ConstructorCallExpressionEmitOptions, DeclarationWithInitializerEmitOptions, ErrorStatementEmitOptions, FieldAccessExpressionEmitOptions, FieldDeclarationEmitOptions, FunctionAccessExpressionEmitOptions, MethodDeclarationEmitOptions, PackageVariableDeclarationEmitOptions, TextTemplateLiteralEmitOptions } 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 ArrayLiteral {
@@ -32,22 +32,22 @@ export declare class AssignmentExpression {
32
32
  left: LValueExpression;
33
33
  operatorKind: AssignmentOperatorKind;
34
34
  right: Expression;
35
- operator: AccessedMethod | undefined;
35
+ operator: AccessedFunction | undefined;
36
36
  sourceLocation: SourceLocation | undefined;
37
37
  options: AssignmentEmitOptions;
38
38
  readonly kind = NodeKind.AssignmentExpression;
39
- constructor(left: LValueExpression, operatorKind: AssignmentOperatorKind, right: Expression, operator: AccessedMethod | undefined, sourceLocation: SourceLocation | undefined, options?: AssignmentEmitOptions);
39
+ constructor(left: LValueExpression, operatorKind: AssignmentOperatorKind, right: Expression, operator: AccessedFunction | undefined, sourceLocation: SourceLocation | undefined, options?: AssignmentEmitOptions);
40
40
  clone(): AssignmentExpression;
41
41
  }
42
42
  export declare class AssignmentStatement {
43
43
  left: LValueExpression;
44
44
  operatorKind: AssignmentOperatorKind;
45
45
  right: Expression;
46
- operator: AccessedMethod | undefined;
46
+ operator: AccessedFunction | undefined;
47
47
  sourceLocation: SourceLocation | undefined;
48
48
  options: AssignmentEmitOptions;
49
49
  readonly kind = NodeKind.AssignmentStatement;
50
- constructor(left: LValueExpression, operatorKind: AssignmentOperatorKind, right: Expression, operator: AccessedMethod | undefined, sourceLocation: SourceLocation | undefined, options?: AssignmentEmitOptions);
50
+ constructor(left: LValueExpression, operatorKind: AssignmentOperatorKind, right: Expression, operator: AccessedFunction | undefined, sourceLocation: SourceLocation | undefined, options?: AssignmentEmitOptions);
51
51
  clone(): AssignmentStatement;
52
52
  }
53
53
  export declare class AssumptionExpression {
@@ -58,12 +58,12 @@ export declare class AssumptionExpression {
58
58
  clone(): AssumptionExpression;
59
59
  }
60
60
  export declare class BaseConstructorCallExpression {
61
- entity: MethodEntity;
61
+ entity: FunctionEntity;
62
62
  containingTypeOfConstructor: TypeOrExtensionEntity;
63
63
  args: Arguments;
64
64
  sourceLocation: SourceLocation | undefined;
65
65
  readonly kind = NodeKind.BaseConstructorCallExpression;
66
- constructor(entity: MethodEntity, containingTypeOfConstructor: TypeOrExtensionEntity, args: Arguments, sourceLocation: SourceLocation | undefined);
66
+ constructor(entity: FunctionEntity, containingTypeOfConstructor: TypeOrExtensionEntity, args: Arguments, sourceLocation: SourceLocation | undefined);
67
67
  clone(): BaseConstructorCallExpression;
68
68
  }
69
69
  export declare class BaseExpression {
@@ -77,10 +77,10 @@ export declare class BinaryExpression {
77
77
  operatorKind: BinaryExpressionOperatorKind;
78
78
  right: Expression;
79
79
  type: Type;
80
- operator: AccessedMethod | undefined;
80
+ operator: AccessedFunction | undefined;
81
81
  sourceLocation: SourceLocation | undefined;
82
82
  readonly kind = NodeKind.BinaryExpression;
83
- constructor(left: Expression, operatorKind: BinaryExpressionOperatorKind, right: Expression, type: Type, operator: AccessedMethod | undefined, sourceLocation: SourceLocation | undefined);
83
+ constructor(left: Expression, operatorKind: BinaryExpressionOperatorKind, right: Expression, type: Type, operator: AccessedFunction | undefined, sourceLocation: SourceLocation | undefined);
84
84
  clone(): BinaryExpression;
85
85
  }
86
86
  export declare class BlockStatement {
@@ -140,12 +140,12 @@ export declare class CallExpression {
140
140
  expression: Expression;
141
141
  isOptionalAccess: boolean;
142
142
  args: Arguments;
143
- isAsyncMethodCall: boolean;
143
+ isAsyncFunctionCall: boolean;
144
144
  returnType: Type;
145
145
  sourceLocation: SourceLocation | undefined;
146
146
  options: CallExpressionEmitOptions;
147
147
  readonly kind = NodeKind.CallExpression;
148
- constructor(expression: Expression, isOptionalAccess: boolean, args: Arguments, isAsyncMethodCall: boolean, returnType: Type, sourceLocation: SourceLocation | undefined, options?: CallExpressionEmitOptions);
148
+ constructor(expression: Expression, isOptionalAccess: boolean, args: Arguments, isAsyncFunctionCall: boolean, returnType: Type, sourceLocation: SourceLocation | undefined, options?: CallExpressionEmitOptions);
149
149
  clone(): CallExpression;
150
150
  }
151
151
  export declare class CharLiteral {
@@ -163,7 +163,7 @@ export declare class CommaExpression {
163
163
  clone(): CommaExpression;
164
164
  }
165
165
  export declare class ConstructorCallExpression {
166
- entity: MethodEntity;
166
+ entity: FunctionEntity;
167
167
  containingTypeOfConstructor: TypeOrExtensionEntity;
168
168
  typeAccess: TypeAccessExpression;
169
169
  args: Arguments;
@@ -171,7 +171,7 @@ export declare class ConstructorCallExpression {
171
171
  sourceLocation: SourceLocation | undefined;
172
172
  options: ConstructorCallExpressionEmitOptions;
173
173
  readonly kind = NodeKind.ConstructorCallExpression;
174
- constructor(entity: MethodEntity, containingTypeOfConstructor: TypeOrExtensionEntity, typeAccess: TypeAccessExpression, args: Arguments, returnType: Type, sourceLocation: SourceLocation | undefined, options?: ConstructorCallExpressionEmitOptions);
174
+ constructor(entity: FunctionEntity, containingTypeOfConstructor: TypeOrExtensionEntity, typeAccess: TypeAccessExpression, args: Arguments, returnType: Type, sourceLocation: SourceLocation | undefined, options?: ConstructorCallExpressionEmitOptions);
175
175
  clone(): ConstructorCallExpression;
176
176
  }
177
177
  export declare class ContinueLoopStatement {
@@ -192,10 +192,10 @@ export declare class DereferenceExpression {
192
192
  }
193
193
  export declare class DisposeStatement {
194
194
  expression: Expression;
195
- destructorEntity: MethodEntity;
195
+ destructorEntity: FunctionEntity;
196
196
  sourceLocation: SourceLocation | undefined;
197
197
  readonly kind = NodeKind.DisposeStatement;
198
- constructor(expression: Expression, destructorEntity: MethodEntity, sourceLocation: SourceLocation | undefined);
198
+ constructor(expression: Expression, destructorEntity: FunctionEntity, sourceLocation: SourceLocation | undefined);
199
199
  clone(): DisposeStatement;
200
200
  }
201
201
  export declare class EmptyStatement {
@@ -207,8 +207,9 @@ export declare class EmptyStatement {
207
207
  export declare class ErrorStatement {
208
208
  expression: Expression;
209
209
  sourceLocation: SourceLocation | undefined;
210
+ options: ErrorStatementEmitOptions;
210
211
  readonly kind = NodeKind.ErrorStatement;
211
- constructor(expression: Expression, sourceLocation: SourceLocation | undefined);
212
+ constructor(expression: Expression, sourceLocation: SourceLocation | undefined, options?: ErrorStatementEmitOptions);
212
213
  clone(): ErrorStatement;
213
214
  }
214
215
  export declare class ImportantStatement {
@@ -430,24 +431,24 @@ export declare class MeasureLiteral {
430
431
  constructor(sourceLocation: SourceLocation | undefined);
431
432
  clone(): MeasureLiteral;
432
433
  }
433
- export declare class MethodAccessExpression {
434
- method: AccessedMethod;
434
+ export declare class FunctionAccessExpression {
435
+ func: AccessedFunction;
435
436
  isCallee: boolean;
436
437
  sourceLocation: SourceLocation | undefined;
437
- options: MethodAccessExpressionEmitOptions;
438
- readonly kind = NodeKind.MethodAccessExpression;
439
- constructor(method: AccessedMethod, isCallee: boolean, sourceLocation: SourceLocation | undefined, options?: MethodAccessExpressionEmitOptions);
440
- clone(): MethodAccessExpression;
438
+ options: FunctionAccessExpressionEmitOptions;
439
+ readonly kind = NodeKind.FunctionAccessExpression;
440
+ constructor(func: AccessedFunction, isCallee: boolean, sourceLocation: SourceLocation | undefined, options?: FunctionAccessExpressionEmitOptions);
441
+ clone(): FunctionAccessExpression;
441
442
  }
442
- export declare class MethodLiteral {
443
+ export declare class FunctionLiteral {
443
444
  valueParameters: readonly ValueParameterDeclaration[];
444
445
  body: BlockStatement;
445
446
  isAsync: boolean;
446
447
  returnType: Type;
447
448
  sourceLocation: SourceLocation | undefined;
448
- readonly kind = NodeKind.MethodLiteral;
449
+ readonly kind = NodeKind.FunctionLiteral;
449
450
  constructor(valueParameters: readonly ValueParameterDeclaration[], body: BlockStatement, isAsync: boolean, returnType: Type, sourceLocation: SourceLocation | undefined);
450
- clone(): MethodLiteral;
451
+ clone(): FunctionLiteral;
451
452
  }
452
453
  export declare class Modifiers {
453
454
  flags: ModifierFlag;
@@ -469,23 +470,23 @@ export declare const enum ModifierFlag {
469
470
  Static = 2,
470
471
  Async = 4
471
472
  }
472
- export declare class NestedMethodDeclaration {
473
+ export declare class NestedFunctionDeclaration {
473
474
  valueParameters: readonly ValueParameterDeclaration[];
474
475
  body: BlockStatement;
475
- entity: MethodEntity;
476
+ entity: FunctionEntity;
476
477
  isAsync: boolean;
477
478
  isGenerator: boolean;
478
479
  sourceLocation: SourceLocation | undefined;
479
- readonly kind = NodeKind.NestedMethodDeclaration;
480
- constructor(valueParameters: readonly ValueParameterDeclaration[], body: BlockStatement, entity: MethodEntity, isAsync: boolean, isGenerator: boolean, sourceLocation: SourceLocation | undefined);
481
- clone(): NestedMethodDeclaration;
480
+ readonly kind = NodeKind.NestedFunctionDeclaration;
481
+ constructor(valueParameters: readonly ValueParameterDeclaration[], body: BlockStatement, entity: FunctionEntity, isAsync: boolean, isGenerator: boolean, sourceLocation: SourceLocation | undefined);
482
+ clone(): NestedFunctionDeclaration;
482
483
  }
483
- export declare class NestedMethodDeclarationStatement {
484
- declaration: NestedMethodDeclaration;
484
+ export declare class NestedFunctionDeclarationStatement {
485
+ declaration: NestedFunctionDeclaration;
485
486
  sourceLocation: SourceLocation | undefined;
486
- readonly kind = NodeKind.NestedMethodDeclarationStatement;
487
- constructor(declaration: NestedMethodDeclaration, sourceLocation: SourceLocation | undefined);
488
- clone(): NestedMethodDeclarationStatement;
487
+ readonly kind = NodeKind.NestedFunctionDeclarationStatement;
488
+ constructor(declaration: NestedFunctionDeclaration, sourceLocation: SourceLocation | undefined);
489
+ clone(): NestedFunctionDeclarationStatement;
489
490
  }
490
491
  export declare class NoneLiteral {
491
492
  sourceLocation: SourceLocation | undefined;
@@ -509,24 +510,24 @@ export declare class CatchClause {
509
510
  clone(): CatchClause;
510
511
  }
511
512
  export declare class OwnConstructorCallExpression {
512
- entity: MethodEntity;
513
+ entity: FunctionEntity;
513
514
  containingTypeOfConstructor: TypeOrExtensionEntity;
514
515
  args: Arguments;
515
516
  sourceLocation: SourceLocation | undefined;
516
517
  readonly kind = NodeKind.OwnConstructorCallExpression;
517
- constructor(entity: MethodEntity, containingTypeOfConstructor: TypeOrExtensionEntity, args: Arguments, sourceLocation: SourceLocation | undefined);
518
+ constructor(entity: FunctionEntity, containingTypeOfConstructor: TypeOrExtensionEntity, args: Arguments, sourceLocation: SourceLocation | undefined);
518
519
  clone(): OwnConstructorCallExpression;
519
520
  }
520
- export declare class PackageMethodDeclaration {
521
+ export declare class PackageFunctionDeclaration {
521
522
  modifiers: Modifiers;
522
523
  valueParameters: readonly ValueParameterDeclaration[];
523
524
  body: BlockStatement;
524
- entity: MethodEntity;
525
+ entity: FunctionEntity;
525
526
  isGenerator: boolean;
526
527
  sourceLocation: SourceLocation | undefined;
527
- readonly kind = NodeKind.PackageMethodDeclaration;
528
- constructor(modifiers: Modifiers, valueParameters: readonly ValueParameterDeclaration[], body: BlockStatement, entity: MethodEntity, isGenerator: boolean, sourceLocation: SourceLocation | undefined);
529
- clone(): PackageMethodDeclaration;
528
+ readonly kind = NodeKind.PackageFunctionDeclaration;
529
+ constructor(modifiers: Modifiers, valueParameters: readonly ValueParameterDeclaration[], body: BlockStatement, entity: FunctionEntity, isGenerator: boolean, sourceLocation: SourceLocation | undefined);
530
+ clone(): PackageFunctionDeclaration;
530
531
  }
531
532
  export declare class PackageTypeDeclaration {
532
533
  decorators: readonly Decorator[];
@@ -549,22 +550,22 @@ export declare class PackageVariableDeclaration {
549
550
  clone(): PackageVariableDeclaration;
550
551
  }
551
552
  export declare class PackageVariableGetterDeclaration {
552
- entity: MethodEntity;
553
+ entity: FunctionEntity;
553
554
  variableEntity: VariableEntity;
554
555
  body: BlockStatement;
555
556
  sourceLocation: SourceLocation | undefined;
556
557
  readonly kind = NodeKind.PackageVariableGetterDeclaration;
557
- constructor(entity: MethodEntity, variableEntity: VariableEntity, body: BlockStatement, sourceLocation: SourceLocation | undefined);
558
+ constructor(entity: FunctionEntity, variableEntity: VariableEntity, body: BlockStatement, sourceLocation: SourceLocation | undefined);
558
559
  clone(): PackageVariableGetterDeclaration;
559
560
  }
560
561
  export declare class PackageVariableSetterDeclaration {
561
- entity: MethodEntity;
562
+ entity: FunctionEntity;
562
563
  variableEntity: VariableEntity;
563
564
  body: BlockStatement;
564
565
  valueLocalVariableEntity: VariableEntity;
565
566
  sourceLocation: SourceLocation | undefined;
566
567
  readonly kind = NodeKind.PackageVariableSetterDeclaration;
567
- constructor(entity: MethodEntity, variableEntity: VariableEntity, body: BlockStatement, valueLocalVariableEntity: VariableEntity, sourceLocation: SourceLocation | undefined);
568
+ constructor(entity: FunctionEntity, variableEntity: VariableEntity, body: BlockStatement, valueLocalVariableEntity: VariableEntity, sourceLocation: SourceLocation | undefined);
568
569
  clone(): PackageVariableSetterDeclaration;
569
570
  }
570
571
  export declare class PackageVariantTypeDeclaration {
@@ -599,10 +600,10 @@ export declare class Decorator {
599
600
  export declare class PrefixUnaryExpression {
600
601
  operatorKind: PrefixUnaryExpressionOperatorKind;
601
602
  expression: Expression;
602
- operator: AccessedMethod | undefined;
603
+ operator: AccessedFunction | undefined;
603
604
  sourceLocation: SourceLocation | undefined;
604
605
  readonly kind = NodeKind.PrefixUnaryExpression;
605
- constructor(operatorKind: PrefixUnaryExpressionOperatorKind, expression: Expression, operator: AccessedMethod | undefined, sourceLocation: SourceLocation | undefined);
606
+ constructor(operatorKind: PrefixUnaryExpressionOperatorKind, expression: Expression, operator: AccessedFunction | undefined, sourceLocation: SourceLocation | undefined);
606
607
  clone(): PrefixUnaryExpression;
607
608
  }
608
609
  export declare class ReferenceExpression {
@@ -711,152 +712,152 @@ export declare class TypeAccessExpression {
711
712
  constructor(entity: TypeOrExtensionEntity, sourceLocation: SourceLocation | undefined);
712
713
  clone(): TypeAccessExpression;
713
714
  }
714
- export declare class TypeConstructorDeclaration {
715
+ export declare class ConstructorDeclaration {
715
716
  decorators: readonly Decorator[];
716
717
  valueParameters: readonly ValueParameterDeclaration[];
717
718
  body: BlockStatement;
718
- entity: MethodEntity;
719
+ entity: FunctionEntity;
719
720
  sourceLocation: SourceLocation | undefined;
720
- readonly kind = NodeKind.TypeConstructorDeclaration;
721
- constructor(decorators: readonly Decorator[], valueParameters: readonly ValueParameterDeclaration[], body: BlockStatement, entity: MethodEntity, sourceLocation: SourceLocation | undefined);
722
- clone(): TypeConstructorDeclaration;
721
+ readonly kind = NodeKind.ConstructorDeclaration;
722
+ constructor(decorators: readonly Decorator[], valueParameters: readonly ValueParameterDeclaration[], body: BlockStatement, entity: FunctionEntity, sourceLocation: SourceLocation | undefined);
723
+ clone(): ConstructorDeclaration;
723
724
  }
724
- export declare class TypeDereferencedVariableGetterDeclaration {
725
- entity: MethodEntity;
725
+ export declare class DereferencedVariableGetterDeclaration {
726
+ entity: FunctionEntity;
726
727
  decorators: readonly Decorator[];
727
728
  modifiers: Modifiers;
728
729
  body: BlockStatement;
729
730
  sourceLocation: SourceLocation | undefined;
730
- readonly kind = NodeKind.TypeDereferencedVariableGetterDeclaration;
731
- constructor(entity: MethodEntity, decorators: readonly Decorator[], modifiers: Modifiers, body: BlockStatement, sourceLocation: SourceLocation | undefined);
732
- clone(): TypeDereferencedVariableGetterDeclaration;
731
+ readonly kind = NodeKind.DereferencedVariableGetterDeclaration;
732
+ constructor(entity: FunctionEntity, decorators: readonly Decorator[], modifiers: Modifiers, body: BlockStatement, sourceLocation: SourceLocation | undefined);
733
+ clone(): DereferencedVariableGetterDeclaration;
733
734
  }
734
- export declare class TypeDereferencedVariableSetterDeclaration {
735
- entity: MethodEntity;
735
+ export declare class DereferencedVariableSetterDeclaration {
736
+ entity: FunctionEntity;
736
737
  decorators: readonly Decorator[];
737
738
  modifiers: Modifiers;
738
739
  body: BlockStatement;
739
740
  valueLocalVariableEntity: VariableEntity;
740
741
  sourceLocation: SourceLocation | undefined;
741
- readonly kind = NodeKind.TypeDereferencedVariableSetterDeclaration;
742
- constructor(entity: MethodEntity, decorators: readonly Decorator[], modifiers: Modifiers, body: BlockStatement, valueLocalVariableEntity: VariableEntity, sourceLocation: SourceLocation | undefined);
743
- clone(): TypeDereferencedVariableSetterDeclaration;
742
+ readonly kind = NodeKind.DereferencedVariableSetterDeclaration;
743
+ constructor(entity: FunctionEntity, decorators: readonly Decorator[], modifiers: Modifiers, body: BlockStatement, valueLocalVariableEntity: VariableEntity, sourceLocation: SourceLocation | undefined);
744
+ clone(): DereferencedVariableSetterDeclaration;
744
745
  }
745
- export declare class TypeDestructorDeclaration {
746
+ export declare class DestructorDeclaration {
746
747
  decorators: readonly Decorator[];
747
748
  valueParameters: readonly ValueParameterDeclaration[];
748
749
  body: BlockStatement;
749
- entity: MethodEntity;
750
+ entity: FunctionEntity;
750
751
  sourceLocation: SourceLocation | undefined;
751
- readonly kind = NodeKind.TypeDestructorDeclaration;
752
- constructor(decorators: readonly Decorator[], valueParameters: readonly ValueParameterDeclaration[], body: BlockStatement, entity: MethodEntity, sourceLocation: SourceLocation | undefined);
753
- clone(): TypeDestructorDeclaration;
752
+ readonly kind = NodeKind.DestructorDeclaration;
753
+ constructor(decorators: readonly Decorator[], valueParameters: readonly ValueParameterDeclaration[], body: BlockStatement, entity: FunctionEntity, sourceLocation: SourceLocation | undefined);
754
+ clone(): DestructorDeclaration;
754
755
  }
755
- export declare class TypeIndexedGetterDeclaration {
756
- entity: MethodEntity;
756
+ export declare class IndexedElementGetterDeclaration {
757
+ entity: FunctionEntity;
757
758
  decorators: readonly Decorator[];
758
759
  modifiers: Modifiers;
759
760
  valueParameters: readonly ValueParameterDeclaration[];
760
761
  body: BlockStatement;
761
762
  sourceLocation: SourceLocation | undefined;
762
- readonly kind = NodeKind.TypeIndexedGetterDeclaration;
763
- constructor(entity: MethodEntity, decorators: readonly Decorator[], modifiers: Modifiers, valueParameters: readonly ValueParameterDeclaration[], body: BlockStatement, sourceLocation: SourceLocation | undefined);
764
- clone(): TypeIndexedGetterDeclaration;
763
+ readonly kind = NodeKind.IndexedElementGetterDeclaration;
764
+ constructor(entity: FunctionEntity, decorators: readonly Decorator[], modifiers: Modifiers, valueParameters: readonly ValueParameterDeclaration[], body: BlockStatement, sourceLocation: SourceLocation | undefined);
765
+ clone(): IndexedElementGetterDeclaration;
765
766
  }
766
- export declare class TypeIndexedSetterDeclaration {
767
- entity: MethodEntity;
767
+ export declare class IndexedElementSetterDeclaration {
768
+ entity: FunctionEntity;
768
769
  decorators: readonly Decorator[];
769
770
  modifiers: Modifiers;
770
771
  valueParameters: readonly ValueParameterDeclaration[];
771
772
  body: BlockStatement;
772
773
  valueLocalVariableEntity: VariableEntity;
773
774
  sourceLocation: SourceLocation | undefined;
774
- readonly kind = NodeKind.TypeIndexedSetterDeclaration;
775
- constructor(entity: MethodEntity, decorators: readonly Decorator[], modifiers: Modifiers, valueParameters: readonly ValueParameterDeclaration[], body: BlockStatement, valueLocalVariableEntity: VariableEntity, sourceLocation: SourceLocation | undefined);
776
- clone(): TypeIndexedSetterDeclaration;
775
+ readonly kind = NodeKind.IndexedElementSetterDeclaration;
776
+ constructor(entity: FunctionEntity, decorators: readonly Decorator[], modifiers: Modifiers, valueParameters: readonly ValueParameterDeclaration[], body: BlockStatement, valueLocalVariableEntity: VariableEntity, sourceLocation: SourceLocation | undefined);
777
+ clone(): IndexedElementSetterDeclaration;
777
778
  }
778
- export declare class TypeMethodAccessExpression {
779
+ export declare class MethodAccessExpression {
779
780
  expression: Expression;
780
781
  isOptionalAccess: boolean;
781
- method: AccessedMethod;
782
+ method: AccessedFunction;
782
783
  isCallee: boolean;
783
784
  ifComputedThenKey: Expression | undefined;
784
785
  sourceLocation: SourceLocation | undefined;
785
- options: MethodAccessExpressionEmitOptions;
786
- readonly kind = NodeKind.TypeMethodAccessExpression;
787
- constructor(expression: Expression, isOptionalAccess: boolean, method: AccessedMethod, isCallee: boolean, ifComputedThenKey: Expression | undefined, sourceLocation: SourceLocation | undefined, options?: MethodAccessExpressionEmitOptions);
788
- clone(): TypeMethodAccessExpression;
786
+ options: FunctionAccessExpressionEmitOptions;
787
+ readonly kind = NodeKind.MethodAccessExpression;
788
+ constructor(expression: Expression, isOptionalAccess: boolean, method: AccessedFunction, isCallee: boolean, ifComputedThenKey: Expression | undefined, sourceLocation: SourceLocation | undefined, options?: FunctionAccessExpressionEmitOptions);
789
+ clone(): MethodAccessExpression;
789
790
  }
790
- export declare class TypeMethodDeclaration {
791
+ export declare class MethodDeclaration {
791
792
  decorators: readonly Decorator[];
792
793
  modifiers: Modifiers;
793
794
  valueParameters: readonly ValueParameterDeclaration[];
794
795
  body: BlockStatement;
795
- entity: MethodEntity;
796
+ entity: FunctionEntity;
796
797
  isGenerator: boolean;
797
798
  ifComputedThenKey: Expression | undefined;
798
799
  sourceLocation: SourceLocation | undefined;
799
- options: TypeMethodDeclarationEmitOptions;
800
- readonly kind = NodeKind.TypeMethodDeclaration;
801
- constructor(decorators: readonly Decorator[], modifiers: Modifiers, valueParameters: readonly ValueParameterDeclaration[], body: BlockStatement, entity: MethodEntity, isGenerator: boolean, ifComputedThenKey: Expression | undefined, sourceLocation: SourceLocation | undefined, options?: TypeMethodDeclarationEmitOptions);
802
- clone(): TypeMethodDeclaration;
800
+ options: MethodDeclarationEmitOptions;
801
+ readonly kind = NodeKind.MethodDeclaration;
802
+ constructor(decorators: readonly Decorator[], modifiers: Modifiers, valueParameters: readonly ValueParameterDeclaration[], body: BlockStatement, entity: FunctionEntity, isGenerator: boolean, ifComputedThenKey: Expression | undefined, sourceLocation: SourceLocation | undefined, options?: MethodDeclarationEmitOptions);
803
+ clone(): MethodDeclaration;
803
804
  }
804
- export declare class TypeVariableAccessExpression {
805
+ export declare class FieldAccessExpression {
805
806
  expression: Expression;
806
807
  isOptionalAccess: boolean;
807
808
  variable: AccessedVariable;
808
809
  accessKind: AccessKind;
809
810
  ifComputedThenKey: Expression | undefined;
810
811
  sourceLocation: SourceLocation | undefined;
811
- options: TypeVariableAccessExpressionEmitOptions;
812
- readonly kind = NodeKind.TypeVariableAccessExpression;
813
- constructor(expression: Expression, isOptionalAccess: boolean, variable: AccessedVariable, accessKind: AccessKind, ifComputedThenKey: Expression | undefined, sourceLocation: SourceLocation | undefined, options?: TypeVariableAccessExpressionEmitOptions);
814
- static get(expression: Expression, isOptionalAccess: boolean, variable: AccessedVariable | VariableEntity, ifComputedThenKey?: Expression, sourceLocation?: SourceLocation): TypeVariableAccessExpression;
815
- static set(expression: Expression, isOptionalAccess: boolean, variable: AccessedVariable | VariableEntity, ifComputedThenKey?: Expression, sourceLocation?: SourceLocation): TypeVariableAccessExpression;
816
- clone(): TypeVariableAccessExpression;
812
+ options: FieldAccessExpressionEmitOptions;
813
+ readonly kind = NodeKind.FieldAccessExpression;
814
+ constructor(expression: Expression, isOptionalAccess: boolean, variable: AccessedVariable, accessKind: AccessKind, ifComputedThenKey: Expression | undefined, sourceLocation: SourceLocation | undefined, options?: FieldAccessExpressionEmitOptions);
815
+ static get(expression: Expression, isOptionalAccess: boolean, variable: AccessedVariable | VariableEntity, ifComputedThenKey?: Expression, sourceLocation?: SourceLocation): FieldAccessExpression;
816
+ static set(expression: Expression, isOptionalAccess: boolean, variable: AccessedVariable | VariableEntity, ifComputedThenKey?: Expression, sourceLocation?: SourceLocation): FieldAccessExpression;
817
+ clone(): FieldAccessExpression;
817
818
  }
818
- export declare class TypeVariableDeclaration {
819
+ export declare class FieldDeclaration {
819
820
  decorators: readonly Decorator[];
820
821
  modifiers: Modifiers;
821
822
  initializer: Expression | undefined;
822
823
  entity: VariableEntity;
823
824
  ifComputedThenKey: Expression | undefined;
824
825
  sourceLocation: SourceLocation | undefined;
825
- options: TypeVariableDeclarationEmitOptions;
826
- readonly kind = NodeKind.TypeVariableDeclaration;
827
- constructor(decorators: readonly Decorator[], modifiers: Modifiers, initializer: Expression | undefined, entity: VariableEntity, ifComputedThenKey: Expression | undefined, sourceLocation: SourceLocation | undefined, options?: TypeVariableDeclarationEmitOptions);
828
- clone(): TypeVariableDeclaration;
826
+ options: FieldDeclarationEmitOptions;
827
+ readonly kind = NodeKind.FieldDeclaration;
828
+ constructor(decorators: readonly Decorator[], modifiers: Modifiers, initializer: Expression | undefined, entity: VariableEntity, ifComputedThenKey: Expression | undefined, sourceLocation: SourceLocation | undefined, options?: FieldDeclarationEmitOptions);
829
+ clone(): FieldDeclaration;
829
830
  }
830
- export declare class ComputedTypeVariableDeclaration {
831
+ export declare class ComputedFieldDeclaration {
831
832
  entity: VariableEntity;
832
833
  modifiers: Modifiers;
833
- getter: TypeVariableGetterDeclaration;
834
- setter: TypeVariableSetterDeclaration | undefined;
834
+ getter: FieldGetterDeclaration;
835
+ setter: FieldSetterDeclaration | undefined;
835
836
  ifComputedThenKey: Expression | undefined;
836
837
  sourceLocation: SourceLocation | undefined;
837
- options: TypeVariableDeclarationEmitOptions;
838
- readonly kind = NodeKind.ComputedTypeVariableDeclaration;
839
- constructor(entity: VariableEntity, modifiers: Modifiers, getter: TypeVariableGetterDeclaration, setter: TypeVariableSetterDeclaration | undefined, ifComputedThenKey: Expression | undefined, sourceLocation: SourceLocation | undefined, options?: TypeVariableDeclarationEmitOptions);
840
- clone(): ComputedTypeVariableDeclaration;
838
+ options: FieldDeclarationEmitOptions;
839
+ readonly kind = NodeKind.ComputedFieldDeclaration;
840
+ constructor(entity: VariableEntity, modifiers: Modifiers, getter: FieldGetterDeclaration, setter: FieldSetterDeclaration | undefined, ifComputedThenKey: Expression | undefined, sourceLocation: SourceLocation | undefined, options?: FieldDeclarationEmitOptions);
841
+ clone(): ComputedFieldDeclaration;
841
842
  }
842
- export declare class TypeVariableGetterDeclaration {
843
- entity: MethodEntity;
843
+ export declare class FieldGetterDeclaration {
844
+ entity: FunctionEntity;
844
845
  decorators: readonly Decorator[];
845
846
  body: BlockStatement;
846
847
  sourceLocation: SourceLocation | undefined;
847
- readonly kind = NodeKind.TypeVariableGetterDeclaration;
848
- constructor(entity: MethodEntity, decorators: readonly Decorator[], body: BlockStatement, sourceLocation: SourceLocation | undefined);
849
- clone(): TypeVariableGetterDeclaration;
848
+ readonly kind = NodeKind.FieldGetterDeclaration;
849
+ constructor(entity: FunctionEntity, decorators: readonly Decorator[], body: BlockStatement, sourceLocation: SourceLocation | undefined);
850
+ clone(): FieldGetterDeclaration;
850
851
  }
851
- export declare class TypeVariableSetterDeclaration {
852
- entity: MethodEntity;
852
+ export declare class FieldSetterDeclaration {
853
+ entity: FunctionEntity;
853
854
  decorators: readonly Decorator[];
854
855
  body: BlockStatement;
855
856
  valueLocalVariableEntity: VariableEntity;
856
857
  sourceLocation: SourceLocation | undefined;
857
- readonly kind = NodeKind.TypeVariableSetterDeclaration;
858
- constructor(entity: MethodEntity, decorators: readonly Decorator[], body: BlockStatement, valueLocalVariableEntity: VariableEntity, sourceLocation: SourceLocation | undefined);
859
- clone(): TypeVariableSetterDeclaration;
858
+ readonly kind = NodeKind.FieldSetterDeclaration;
859
+ constructor(entity: FunctionEntity, decorators: readonly Decorator[], body: BlockStatement, valueLocalVariableEntity: VariableEntity, sourceLocation: SourceLocation | undefined);
860
+ clone(): FieldSetterDeclaration;
860
861
  }
861
862
  export declare class ValueParameterDeclaration {
862
863
  entity: VariableEntity;
@@ -924,7 +925,7 @@ export declare const enum NodeKind {
924
925
  ExpressionStatement = 20,
925
926
  FinallyClause = 21,
926
927
  ForStatement = 22,
927
- PackageMethodDeclaration = 23,
928
+ PackageFunctionDeclaration = 23,
928
929
  PackageTypeDeclaration = 24,
929
930
  PackageVariableDeclaration = 25,
930
931
  PackageVariableGetterDeclaration = 26,
@@ -934,13 +935,13 @@ export declare const enum NodeKind {
934
935
  IndexedAccessExpression = 30,
935
936
  IntegerLiteral = 31,
936
937
  IsExpression = 32,
937
- NestedMethodDeclaration = 33,
938
- NestedMethodDeclarationStatement = 34,
938
+ NestedFunctionDeclaration = 33,
939
+ NestedFunctionDeclarationStatement = 34,
939
940
  LocalVariableDeclaration = 35,
940
941
  LocalVariableDeclarationStatement = 36,
941
942
  NumericLiteral = 37,
942
943
  CatchClause = 38,
943
- MethodLiteral = 39,
944
+ FunctionLiteral = 39,
944
945
  PrefixUnaryExpression = 40,
945
946
  MeasureLiteral = 41,
946
947
  ReferenceExpression = 42,
@@ -949,14 +950,14 @@ export declare const enum NodeKind {
949
950
  Package = 45,
950
951
  TextLiteral = 46,
951
952
  TextTemplateLiteral = 47,
952
- TypeConstructorDeclaration = 48,
953
- TypeDestructorDeclaration = 49,
954
- TypeIndexedGetterDeclaration = 50,
955
- TypeIndexedSetterDeclaration = 51,
956
- TypeMethodDeclaration = 52,
957
- TypeVariableDeclaration = 53,
958
- TypeVariableGetterDeclaration = 54,
959
- TypeVariableSetterDeclaration = 55,
953
+ ConstructorDeclaration = 48,
954
+ DestructorDeclaration = 49,
955
+ IndexedElementGetterDeclaration = 50,
956
+ IndexedElementSetterDeclaration = 51,
957
+ MethodDeclaration = 52,
958
+ FieldDeclaration = 53,
959
+ FieldGetterDeclaration = 54,
960
+ FieldSetterDeclaration = 55,
960
961
  SwitchStatement = 56,
961
962
  TernaryExpression = 57,
962
963
  ThisExpression = 58,
@@ -967,11 +968,11 @@ export declare const enum NodeKind {
967
968
  ArrayLiteral = 63,
968
969
  TypeAccessExpression = 64,
969
970
  VariableAccessExpression = 65,
970
- MethodAccessExpression = 66,
971
+ FunctionAccessExpression = 66,
971
972
  ImplicitVariantAccessExpression = 67,
972
973
  VariantAccessExpression = 68,
973
- TypeVariableAccessExpression = 69,
974
- TypeMethodAccessExpression = 70,
974
+ FieldAccessExpression = 69,
975
+ MethodAccessExpression = 70,
975
976
  ConstructorCallExpression = 71,
976
977
  InlineJsExpression = 72,
977
978
  AssignmentExpression = 73,
@@ -992,10 +993,10 @@ export declare const enum NodeKind {
992
993
  DereferenceExpression = 88,
993
994
  BaseExpression = 89,
994
995
  OwnConstructorCallExpression = 90,
995
- TypeDereferencedVariableGetterDeclaration = 91,
996
- TypeDereferencedVariableSetterDeclaration = 92,
996
+ DereferencedVariableGetterDeclaration = 91,
997
+ DereferencedVariableSetterDeclaration = 92,
997
998
  JsNamespaceDestructuringStatement = 93,
998
- ComputedTypeVariableDeclaration = 94,
999
+ ComputedFieldDeclaration = 94,
999
1000
  TextWithEntityName = 95,
1000
1001
  Arguments = 96,
1001
1002
  Decorator = 97
@@ -1,10 +1,10 @@
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.NoneLiteral | ir.EmptyStatement | ir.ErrorStatement | ir.ImportantStatement | ir.ExpressionStatement | ir.FinallyClause | ir.ForStatement | ir.PackageMethodDeclaration | ir.PackageTypeDeclaration | ir.PackageVariableDeclaration | ir.PackageVariableGetterDeclaration | ir.PackageVariableSetterDeclaration | ir.PackageVariantTypeDeclaration | ir.IfStatement | ir.IndexedAccessExpression | ir.InlineJsExpression | ir.TypeMethodAccessExpression | ir.TypeVariableAccessExpression | ir.IntegerLiteral | ir.IsExpression | ir.JsIndexedAccessExpression | ir.NestedMethodDeclaration | ir.NestedMethodDeclarationStatement | ir.LocalVariableDeclaration | ir.LocalVariableDeclarationStatement | ir.NumericLiteral | ir.CatchClause | ir.MethodAccessExpression | ir.MethodLiteral | ir.PrefixUnaryExpression | ir.MeasureLiteral | ir.ReferenceExpression | ir.LoopStatement | ir.Package | ir.ReturnStatement | ir.TextLiteral | ir.TextTemplateLiteral | ir.TypeConstructorDeclaration | ir.TypeDestructorDeclaration | ir.TypeIndexedGetterDeclaration | ir.TypeIndexedSetterDeclaration | ir.TypeMethodDeclaration | ir.TypeVariableDeclaration | ir.ComputedTypeVariableDeclaration | ir.TypeVariableGetterDeclaration | ir.TypeVariableSetterDeclaration | ir.SwitchStatement | ir.TernaryExpression | ir.ThisExpression | ir.TypeAccessExpression | ir.ValueParameterDeclaration | ir.VariableAccessExpression | ir.VariantDeclaration | ir.WhileStatement | ir.YieldStatement | ir.JsObjectLiteral | ir.NamedJsObjectLiteralProperty | 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.TypeDereferencedVariableGetterDeclaration | ir.TypeDereferencedVariableSetterDeclaration | ir.TextWithEntityName | ir.Argument | ir.Arguments | ir.Decorator;
3
- export type Declaration = ir.PackageMethodDeclaration | ir.PackageTypeDeclaration | ir.PackageVariableDeclaration | ir.PackageVariableGetterDeclaration | ir.PackageVariableSetterDeclaration | ir.PackageVariantTypeDeclaration | ir.NestedMethodDeclaration | ir.LocalVariableDeclaration | ir.TypeConstructorDeclaration | ir.TypeDestructorDeclaration | ir.TypeIndexedGetterDeclaration | ir.TypeIndexedSetterDeclaration | ir.TypeMethodDeclaration | ir.TypeVariableDeclaration | ir.TypeVariableGetterDeclaration | ir.TypeVariableSetterDeclaration | ir.ValueParameterDeclaration | ir.VariantDeclaration | ir.TypeDereferencedVariableGetterDeclaration | ir.TypeDereferencedVariableSetterDeclaration;
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.NestedMethodDeclarationStatement | ir.LocalVariableDeclarationStatement | ir.LoopStatement | ir.ReturnStatement | ir.SwitchStatement | ir.WhileStatement | ir.YieldStatement | ir.EsModuleImportDirectiveStatement | ir.CjsModuleImportDirectiveStatement | ir.JsNamespaceDestructuringStatement;
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.NoneLiteral | ir.IndexedAccessExpression | ir.InlineJsExpression | ir.TypeMethodAccessExpression | ir.TypeVariableAccessExpression | ir.IntegerLiteral | ir.IsExpression | ir.NumericLiteral | ir.MethodAccessExpression | ir.MethodLiteral | ir.PrefixUnaryExpression | ir.MeasureLiteral | ir.ReferenceExpression | ir.DereferenceExpression | ir.TextLiteral | ir.TextWithEntityName | ir.TextTemplateLiteral | 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
- export type TypeMemberDeclaration = ir.TypeVariableDeclaration | ir.ComputedTypeVariableDeclaration | ir.TypeMethodDeclaration | ir.TypeConstructorDeclaration | ir.TypeDestructorDeclaration | ir.TypeIndexedGetterDeclaration | ir.TypeIndexedSetterDeclaration | ir.TypeDereferencedVariableGetterDeclaration | ir.TypeDereferencedVariableSetterDeclaration;
7
- export type PackageMemberDeclaration = ir.PackageMethodDeclaration | ir.PackageTypeDeclaration | ir.PackageVariableDeclaration | ir.PackageVariableGetterDeclaration | ir.PackageVariableSetterDeclaration | ir.PackageVariantTypeDeclaration;
8
- export type LocalDeclaration = ir.LocalVariableDeclaration | ir.NestedMethodDeclaration;
9
- export type LValueExpression = ir.VariableAccessExpression | ir.TypeVariableAccessExpression | ir.IndexedAccessExpression | ir.JsIndexedAccessExpression | ir.JsPropertyAccessExpression | ir.ThisExpression | ir.DereferenceExpression;
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.NoneLiteral | 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.TextTemplateLiteral | 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.NamedJsObjectLiteralProperty | 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;
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;
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
+ 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.NoneLiteral | 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.TextWithEntityName | ir.TextTemplateLiteral | 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
+ export type TypeMemberDeclaration = ir.FieldDeclaration | ir.ComputedFieldDeclaration | ir.MethodDeclaration | ir.ConstructorDeclaration | ir.DestructorDeclaration | ir.IndexedElementGetterDeclaration | ir.IndexedElementSetterDeclaration | ir.DereferencedVariableGetterDeclaration | ir.DereferencedVariableSetterDeclaration;
7
+ export type PackageMemberDeclaration = ir.PackageFunctionDeclaration | ir.PackageTypeDeclaration | ir.PackageVariableDeclaration | ir.PackageVariableGetterDeclaration | ir.PackageVariableSetterDeclaration | ir.PackageVariantTypeDeclaration;
8
+ export type LocalDeclaration = ir.LocalVariableDeclaration | ir.NestedFunctionDeclaration;
9
+ export type LValueExpression = ir.VariableAccessExpression | ir.FieldAccessExpression | ir.IndexedAccessExpression | ir.JsIndexedAccessExpression | ir.JsPropertyAccessExpression | ir.ThisExpression | ir.DereferenceExpression;
10
10
  export declare function isLValueExpression(node: Expression): node is LValueExpression;