@artel/artc 0.6.25267 → 0.6.25269

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.
@@ -255,14 +255,14 @@ export declare class CommaExpression {
255
255
  }
256
256
  export declare class ConstructorCallExpression {
257
257
  entity: FunctionEntity;
258
- containingTypeOfConstructor: TypeOrExtensionEntity;
259
258
  typeAccess: TypeAccessExpression;
260
259
  args: Arguments;
261
260
  returnType: Type;
262
261
  sourceLocation?: SourceLocation | undefined;
263
- options: ConstructorCallExpressionEmitOptions;
264
262
  readonly kind = NodeKind.ConstructorCallExpression;
265
- constructor(entity: FunctionEntity, containingTypeOfConstructor: TypeOrExtensionEntity, typeAccess: TypeAccessExpression, args: Arguments, returnType: Type, sourceLocation?: SourceLocation | undefined, options?: ConstructorCallExpressionEmitOptions);
263
+ options: ConstructorCallExpressionEmitOptions;
264
+ constructor(entity: FunctionEntity, typeAccess: TypeAccessExpression, args: Arguments, returnType: Type, sourceLocation?: SourceLocation | undefined);
265
+ withOptions(options: ConstructorCallExpressionEmitOptions): this;
266
266
  clone(): ConstructorCallExpression;
267
267
  }
268
268
  export declare class ContinueLoopStatement {
@@ -298,9 +298,10 @@ export declare class EmptyStatement {
298
298
  export declare class ErrorStatement {
299
299
  expression: Expression;
300
300
  sourceLocation?: SourceLocation | undefined;
301
- options: ErrorStatementEmitOptions;
302
301
  readonly kind = NodeKind.ErrorStatement;
303
- constructor(expression: Expression, sourceLocation?: SourceLocation | undefined, options?: ErrorStatementEmitOptions);
302
+ options: ErrorStatementEmitOptions;
303
+ constructor(expression: Expression, sourceLocation?: SourceLocation | undefined);
304
+ withOptions(options: ErrorStatementEmitOptions): this;
304
305
  clone(): ErrorStatement;
305
306
  }
306
307
  export declare class ImportantStatement {
@@ -330,11 +331,13 @@ export declare class ForStatement {
330
331
  indexVariableEntity: VariableEntity | undefined;
331
332
  enumeratedExpression: Expression;
332
333
  body: BlockStatement;
333
- ifExpressionIsNotEnumerableThenEnumeratorMethod: AccessedFunction | undefined;
334
334
  sourceLocation?: SourceLocation | undefined;
335
- options: ForStatementEmitOptions;
336
335
  readonly kind = NodeKind.ForStatement;
337
- constructor(label: string | undefined, elementVariableEntity: VariableEntity, indexVariableEntity: VariableEntity | undefined, enumeratedExpression: Expression, body: BlockStatement, ifExpressionIsNotEnumerableThenEnumeratorMethod: AccessedFunction | undefined, sourceLocation?: SourceLocation | undefined, options?: ForStatementEmitOptions);
336
+ ifExpressionIsNotEnumerableThenEnumeratorMethod: AccessedFunction | undefined;
337
+ options: ForStatementEmitOptions;
338
+ constructor(label: string | undefined, elementVariableEntity: VariableEntity, indexVariableEntity: VariableEntity | undefined, enumeratedExpression: Expression, body: BlockStatement, sourceLocation?: SourceLocation | undefined);
339
+ withIfExpressionIsNotEnumerableThenEnumeratorMethod(value: AccessedFunction | undefined): this;
340
+ withOptions(options: ForStatementEmitOptions): this;
338
341
  clone(): ForStatement;
339
342
  }
340
343
  export declare class IfStatement {
@@ -379,16 +382,6 @@ export declare class IsExpression {
379
382
  constructor(expression: Expression, type: Type, sourceLocation?: SourceLocation | undefined);
380
383
  clone(): IsExpression;
381
384
  }
382
- export declare class JsFunctionLiteral {
383
- parameters: readonly ParameterDeclaration[];
384
- body: BlockStatement;
385
- isAsync: boolean;
386
- isGenerator: boolean;
387
- sourceLocation?: SourceLocation | undefined;
388
- readonly kind = NodeKind.JsFunctionLiteral;
389
- constructor(parameters: readonly ParameterDeclaration[], body: BlockStatement, isAsync: boolean, isGenerator: boolean, sourceLocation?: SourceLocation | undefined);
390
- clone(): JsFunctionLiteral;
391
- }
392
385
  export declare class JsIdentifierExpression {
393
386
  identifier: string;
394
387
  sourceLocation?: SourceLocation | undefined;
@@ -510,9 +503,10 @@ export declare class LocalVariableDeclaration {
510
503
  entity: VariableEntity;
511
504
  initializer: Expression | undefined;
512
505
  sourceLocation?: SourceLocation | undefined;
513
- options: DeclarationWithInitializerEmitOptions;
514
506
  readonly kind = NodeKind.LocalVariableDeclaration;
515
- constructor(entity: VariableEntity, initializer: Expression | undefined, sourceLocation?: SourceLocation | undefined, options?: DeclarationWithInitializerEmitOptions);
507
+ options: DeclarationWithInitializerEmitOptions;
508
+ constructor(entity: VariableEntity, initializer: Expression | undefined, sourceLocation?: SourceLocation | undefined);
509
+ withOptions(options: DeclarationWithInitializerEmitOptions): this;
516
510
  clone(): LocalVariableDeclaration;
517
511
  }
518
512
  export declare class LocalVariableDeclarationStatement {
@@ -520,6 +514,7 @@ export declare class LocalVariableDeclarationStatement {
520
514
  sourceLocation?: SourceLocation | undefined;
521
515
  readonly kind = NodeKind.LocalVariableDeclarationStatement;
522
516
  constructor(declaration: LocalVariableDeclaration, sourceLocation?: SourceLocation | undefined);
517
+ withOptions(options: DeclarationWithInitializerEmitOptions): this;
523
518
  clone(): LocalVariableDeclarationStatement;
524
519
  }
525
520
  export declare class LoopStatement {
@@ -541,9 +536,10 @@ export declare class FunctionAccessExpression {
541
536
  func: AccessedFunction;
542
537
  isCallee: boolean;
543
538
  sourceLocation?: SourceLocation | undefined;
544
- options: FunctionAccessExpressionEmitOptions;
545
539
  readonly kind = NodeKind.FunctionAccessExpression;
546
- constructor(func: AccessedFunction, isCallee: boolean, sourceLocation?: SourceLocation | undefined, options?: FunctionAccessExpressionEmitOptions);
540
+ options: FunctionAccessExpressionEmitOptions;
541
+ constructor(func: AccessedFunction, isCallee: boolean, sourceLocation?: SourceLocation | undefined);
542
+ withOptions(options: FunctionAccessExpressionEmitOptions): this;
547
543
  clone(): FunctionAccessExpression;
548
544
  }
549
545
  export declare class FunctionLiteral {
@@ -552,9 +548,10 @@ export declare class FunctionLiteral {
552
548
  isAsync: boolean;
553
549
  returnType: Type;
554
550
  sourceLocation?: SourceLocation | undefined;
555
- options: FunctionLiteralEmitOptions;
556
551
  readonly kind = NodeKind.FunctionLiteral;
557
- constructor(parameters: readonly ParameterDeclaration[], body: BlockStatement, isAsync: boolean, returnType: Type, sourceLocation?: SourceLocation | undefined, options?: FunctionLiteralEmitOptions);
552
+ options: FunctionLiteralEmitOptions;
553
+ constructor(parameters: readonly ParameterDeclaration[], body: BlockStatement, isAsync: boolean, returnType: Type, sourceLocation?: SourceLocation | undefined);
554
+ withOptions(options: FunctionLiteralEmitOptions): this;
558
555
  clone(): FunctionLiteral;
559
556
  }
560
557
  export declare class Modifiers {
@@ -578,14 +575,14 @@ export declare const enum ModifierFlag {
578
575
  Async = 4
579
576
  }
580
577
  export declare class NestedFunctionDeclaration {
578
+ entity: FunctionEntity;
581
579
  parameters: readonly ParameterDeclaration[];
582
580
  body: BlockStatement;
583
- entity: FunctionEntity;
584
581
  isAsync: boolean;
585
582
  isGenerator: boolean;
586
583
  sourceLocation?: SourceLocation | undefined;
587
584
  readonly kind = NodeKind.NestedFunctionDeclaration;
588
- constructor(parameters: readonly ParameterDeclaration[], body: BlockStatement, entity: FunctionEntity, isAsync: boolean, isGenerator: boolean, sourceLocation?: SourceLocation | undefined);
585
+ constructor(entity: FunctionEntity, parameters: readonly ParameterDeclaration[], body: BlockStatement, isAsync: boolean, isGenerator: boolean, sourceLocation?: SourceLocation | undefined);
589
586
  clone(): NestedFunctionDeclaration;
590
587
  }
591
588
  export declare class NestedFunctionDeclarationStatement {
@@ -618,20 +615,20 @@ export declare class CatchClause {
618
615
  }
619
616
  export declare class OwnConstructorCallExpression {
620
617
  entity: FunctionEntity;
621
- containingTypeOfConstructor: TypeOrExtensionEntity;
622
618
  args: Arguments;
623
619
  sourceLocation?: SourceLocation | undefined;
624
620
  readonly kind = NodeKind.OwnConstructorCallExpression;
625
- constructor(entity: FunctionEntity, containingTypeOfConstructor: TypeOrExtensionEntity, args: Arguments, sourceLocation?: SourceLocation | undefined);
621
+ constructor(entity: FunctionEntity, args: Arguments, sourceLocation?: SourceLocation | undefined);
626
622
  clone(): OwnConstructorCallExpression;
627
623
  }
628
624
  export declare class PrefixUnaryExpression {
629
625
  operatorKind: PrefixUnaryExpressionOperatorKind;
630
626
  expression: Expression;
631
- operator: AccessedFunction | undefined;
632
627
  sourceLocation?: SourceLocation | undefined;
633
628
  readonly kind = NodeKind.PrefixUnaryExpression;
634
- constructor(operatorKind: PrefixUnaryExpressionOperatorKind, expression: Expression, operator: AccessedFunction | undefined, sourceLocation?: SourceLocation | undefined);
629
+ operator: AccessedFunction | undefined;
630
+ constructor(operatorKind: PrefixUnaryExpressionOperatorKind, expression: Expression, sourceLocation?: SourceLocation | undefined);
631
+ withOperator(operator: AccessedFunction | undefined): this;
635
632
  clone(): PrefixUnaryExpression;
636
633
  }
637
634
  export declare class ReferenceExpression {
@@ -676,18 +673,18 @@ export declare class SwitchStatement {
676
673
  export declare class CaseClause {
677
674
  expressions: readonly Expression[];
678
675
  body: BlockStatement;
676
+ sourceLocation?: SourceLocation | undefined;
679
677
  readonly kind = NodeKind.CaseClause;
680
- constructor(expressions: readonly Expression[], body: BlockStatement);
678
+ constructor(expressions: readonly Expression[], body: BlockStatement, sourceLocation?: SourceLocation | undefined);
681
679
  clone(): CaseClause;
682
680
  }
683
681
  export declare class TernaryExpression {
684
682
  condition: Expression;
685
683
  firstExpression: Expression;
686
684
  secondExpression: Expression;
687
- type: Type;
688
685
  sourceLocation?: SourceLocation | undefined;
689
686
  readonly kind = NodeKind.TernaryExpression;
690
- constructor(condition: Expression, firstExpression: Expression, secondExpression: Expression, type: Type, sourceLocation?: SourceLocation | undefined);
687
+ constructor(condition: Expression, firstExpression: Expression, secondExpression: Expression, sourceLocation?: SourceLocation | undefined);
691
688
  clone(): TernaryExpression;
692
689
  }
693
690
  export declare class TextLiteral {
@@ -721,9 +718,10 @@ export declare class TextTemplateLiteral {
721
718
  textFragments: readonly string[];
722
719
  expressions: readonly Expression[];
723
720
  sourceLocation?: SourceLocation | undefined;
724
- options: TextTemplateEmitOptions;
725
721
  readonly kind = NodeKind.TextTemplateLiteral;
726
- constructor(textFragments: readonly string[], expressions: readonly Expression[], sourceLocation?: SourceLocation | undefined, options?: TextTemplateEmitOptions);
722
+ options: TextTemplateEmitOptions;
723
+ constructor(textFragments: readonly string[], expressions: readonly Expression[], sourceLocation?: SourceLocation | undefined);
724
+ withOptions(options: TextTemplateEmitOptions): this;
727
725
  clone(): TextTemplateLiteral;
728
726
  }
729
727
  export declare class LocalizableTextTemplateLiteral {
@@ -731,9 +729,10 @@ export declare class LocalizableTextTemplateLiteral {
731
729
  expressions: readonly Expression[];
732
730
  code: number | undefined;
733
731
  sourceLocation?: SourceLocation | undefined;
734
- options: TextTemplateEmitOptions;
735
732
  readonly kind = NodeKind.LocalizableTextTemplateLiteral;
736
- constructor(textFragments: readonly string[], expressions: readonly Expression[], code: number | undefined, sourceLocation?: SourceLocation | undefined, options?: TextTemplateEmitOptions);
733
+ options: TextTemplateEmitOptions;
734
+ constructor(textFragments: readonly string[], expressions: readonly Expression[], code: number | undefined, sourceLocation?: SourceLocation | undefined);
735
+ withOptions(options: TextTemplateEmitOptions): this;
737
736
  clone(): LocalizableTextTemplateLiteral;
738
737
  }
739
738
  export declare class ThisExpression {
@@ -751,67 +750,73 @@ export declare class TypeAccessExpression {
751
750
  clone(): TypeAccessExpression;
752
751
  }
753
752
  export declare class ConstructorDeclaration {
754
- decorators: readonly Decorator[];
753
+ entity: FunctionEntity;
755
754
  parameters: readonly ParameterDeclaration[];
756
755
  body: BlockStatement;
757
- entity: FunctionEntity;
758
756
  sourceLocation?: SourceLocation | undefined;
759
757
  readonly kind = NodeKind.ConstructorDeclaration;
760
- constructor(decorators: readonly Decorator[], parameters: readonly ParameterDeclaration[], body: BlockStatement, entity: FunctionEntity, sourceLocation?: SourceLocation | undefined);
758
+ decorators: readonly Decorator[];
759
+ constructor(entity: FunctionEntity, parameters: readonly ParameterDeclaration[], body: BlockStatement, sourceLocation?: SourceLocation | undefined);
760
+ withDecorators(decorators: readonly Decorator[]): this;
761
761
  clone(): ConstructorDeclaration;
762
762
  }
763
763
  export declare class DereferencedVariableGetterDeclaration {
764
764
  entity: FunctionEntity;
765
- decorators: readonly Decorator[];
766
765
  modifiers: Modifiers;
767
766
  body: BlockStatement;
768
767
  sourceLocation?: SourceLocation | undefined;
769
768
  readonly kind = NodeKind.DereferencedVariableGetterDeclaration;
770
- constructor(entity: FunctionEntity, decorators: readonly Decorator[], modifiers: Modifiers, body: BlockStatement, sourceLocation?: SourceLocation | undefined);
769
+ decorators: readonly Decorator[];
770
+ constructor(entity: FunctionEntity, modifiers: Modifiers, body: BlockStatement, sourceLocation?: SourceLocation | undefined);
771
+ withDecorators(decorators: readonly Decorator[]): this;
771
772
  clone(): DereferencedVariableGetterDeclaration;
772
773
  }
773
774
  export declare class DereferencedVariableSetterDeclaration {
774
775
  entity: FunctionEntity;
775
- decorators: readonly Decorator[];
776
776
  modifiers: Modifiers;
777
777
  body: BlockStatement;
778
778
  valueLocalVariableEntity: VariableEntity;
779
779
  sourceLocation?: SourceLocation | undefined;
780
780
  readonly kind = NodeKind.DereferencedVariableSetterDeclaration;
781
- constructor(entity: FunctionEntity, decorators: readonly Decorator[], modifiers: Modifiers, body: BlockStatement, valueLocalVariableEntity: VariableEntity, sourceLocation?: SourceLocation | undefined);
781
+ decorators: readonly Decorator[];
782
+ constructor(entity: FunctionEntity, modifiers: Modifiers, body: BlockStatement, valueLocalVariableEntity: VariableEntity, sourceLocation?: SourceLocation | undefined);
783
+ withDecorators(decorators: readonly Decorator[]): this;
782
784
  clone(): DereferencedVariableSetterDeclaration;
783
785
  }
784
786
  export declare class DestructorDeclaration {
785
- decorators: readonly Decorator[];
787
+ entity: FunctionEntity;
786
788
  parameters: readonly ParameterDeclaration[];
787
789
  body: BlockStatement;
788
- entity: FunctionEntity;
789
790
  sourceLocation?: SourceLocation | undefined;
790
791
  readonly kind = NodeKind.DestructorDeclaration;
791
- constructor(decorators: readonly Decorator[], parameters: readonly ParameterDeclaration[], body: BlockStatement, entity: FunctionEntity, sourceLocation?: SourceLocation | undefined);
792
+ decorators: readonly Decorator[];
793
+ constructor(entity: FunctionEntity, parameters: readonly ParameterDeclaration[], body: BlockStatement, sourceLocation?: SourceLocation | undefined);
794
+ withDecorators(decorators: readonly Decorator[]): this;
792
795
  clone(): DestructorDeclaration;
793
796
  }
794
797
  export declare class IndexedElementGetterDeclaration {
795
798
  entity: FunctionEntity;
796
- decorators: readonly Decorator[];
797
799
  modifiers: Modifiers;
798
800
  parameters: readonly ParameterDeclaration[];
799
801
  body: BlockStatement;
800
802
  sourceLocation?: SourceLocation | undefined;
801
803
  readonly kind = NodeKind.IndexedElementGetterDeclaration;
802
- constructor(entity: FunctionEntity, decorators: readonly Decorator[], modifiers: Modifiers, parameters: readonly ParameterDeclaration[], body: BlockStatement, sourceLocation?: SourceLocation | undefined);
804
+ decorators: readonly Decorator[];
805
+ constructor(entity: FunctionEntity, modifiers: Modifiers, parameters: readonly ParameterDeclaration[], body: BlockStatement, sourceLocation?: SourceLocation | undefined);
806
+ withDecorators(decorators: readonly Decorator[]): this;
803
807
  clone(): IndexedElementGetterDeclaration;
804
808
  }
805
809
  export declare class IndexedElementSetterDeclaration {
806
810
  entity: FunctionEntity;
807
- decorators: readonly Decorator[];
808
811
  modifiers: Modifiers;
809
812
  parameters: readonly ParameterDeclaration[];
810
813
  body: BlockStatement;
811
814
  valueLocalVariableEntity: VariableEntity;
812
815
  sourceLocation?: SourceLocation | undefined;
813
816
  readonly kind = NodeKind.IndexedElementSetterDeclaration;
814
- constructor(entity: FunctionEntity, decorators: readonly Decorator[], modifiers: Modifiers, parameters: readonly ParameterDeclaration[], body: BlockStatement, valueLocalVariableEntity: VariableEntity, sourceLocation?: SourceLocation | undefined);
817
+ decorators: readonly Decorator[];
818
+ constructor(entity: FunctionEntity, modifiers: Modifiers, parameters: readonly ParameterDeclaration[], body: BlockStatement, valueLocalVariableEntity: VariableEntity, sourceLocation?: SourceLocation | undefined);
819
+ withDecorators(decorators: readonly Decorator[]): this;
815
820
  clone(): IndexedElementSetterDeclaration;
816
821
  }
817
822
  export declare class MethodAccessExpression {
@@ -819,25 +824,30 @@ export declare class MethodAccessExpression {
819
824
  isOptionalAccess: boolean;
820
825
  method: AccessedFunction;
821
826
  isCallee: boolean;
822
- ifComputedThenKey: Expression | undefined;
823
827
  sourceLocation?: SourceLocation | undefined;
824
- options: FunctionAccessExpressionEmitOptions;
825
828
  readonly kind = NodeKind.MethodAccessExpression;
826
- constructor(expression: Expression, isOptionalAccess: boolean, method: AccessedFunction, isCallee: boolean, ifComputedThenKey: Expression | undefined, sourceLocation?: SourceLocation | undefined, options?: FunctionAccessExpressionEmitOptions);
829
+ ifComputedThenKey: Expression | undefined;
830
+ options: FunctionAccessExpressionEmitOptions;
831
+ constructor(expression: Expression, isOptionalAccess: boolean, method: AccessedFunction, isCallee: boolean, sourceLocation?: SourceLocation | undefined);
832
+ withIfComputedThenKey(key: Expression | undefined): this;
833
+ withOptions(options: FunctionAccessExpressionEmitOptions): this;
827
834
  clone(): MethodAccessExpression;
828
835
  }
829
836
  export declare class MethodDeclaration {
830
- decorators: readonly Decorator[];
837
+ entity: FunctionEntity;
831
838
  modifiers: Modifiers;
832
839
  parameters: readonly ParameterDeclaration[];
833
840
  body: BlockStatement;
834
- entity: FunctionEntity;
835
841
  isGenerator: boolean;
836
- ifComputedThenKey: Expression | undefined;
837
842
  sourceLocation?: SourceLocation | undefined;
838
- options: MethodDeclarationEmitOptions;
839
843
  readonly kind = NodeKind.MethodDeclaration;
840
- constructor(decorators: readonly Decorator[], modifiers: Modifiers, parameters: readonly ParameterDeclaration[], body: BlockStatement, entity: FunctionEntity, isGenerator: boolean, ifComputedThenKey: Expression | undefined, sourceLocation?: SourceLocation | undefined, options?: MethodDeclarationEmitOptions);
844
+ decorators: readonly Decorator[];
845
+ ifComputedThenKey: Expression | undefined;
846
+ options: MethodDeclarationEmitOptions;
847
+ constructor(entity: FunctionEntity, modifiers: Modifiers, parameters: readonly ParameterDeclaration[], body: BlockStatement, isGenerator: boolean, sourceLocation?: SourceLocation | undefined);
848
+ withDecorators(decorators: readonly Decorator[]): this;
849
+ withIfComputedThenKey(key: Expression | undefined): this;
850
+ withOptions(options: MethodDeclarationEmitOptions): this;
841
851
  clone(): MethodDeclaration;
842
852
  }
843
853
  export declare class FieldAccessExpression {
@@ -845,25 +855,28 @@ export declare class FieldAccessExpression {
845
855
  isOptionalAccess: boolean;
846
856
  field: AccessedVariable;
847
857
  accessKind: AccessKind;
848
- ifComputedThenKey: Expression | undefined;
849
858
  sourceLocation?: SourceLocation | undefined;
850
- options: FieldAccessExpressionEmitOptions;
851
859
  readonly kind = NodeKind.FieldAccessExpression;
852
- constructor(expression: Expression, isOptionalAccess: boolean, field: AccessedVariable, accessKind: AccessKind, ifComputedThenKey: Expression | undefined, sourceLocation?: SourceLocation | undefined, options?: FieldAccessExpressionEmitOptions);
853
- static get(expression: Expression, isOptionalAccess: boolean, field: AccessedVariable | VariableEntity, ifComputedThenKey?: Expression, sourceLocation?: SourceLocation): FieldAccessExpression;
854
- static set(expression: Expression, isOptionalAccess: boolean, field: AccessedVariable | VariableEntity, ifComputedThenKey?: Expression, sourceLocation?: SourceLocation): FieldAccessExpression;
860
+ ifComputedThenKey: Expression | undefined;
861
+ options: FieldAccessExpressionEmitOptions;
862
+ constructor(expression: Expression, isOptionalAccess: boolean, field: AccessedVariable, accessKind: AccessKind, sourceLocation?: SourceLocation | undefined);
863
+ withIfComputedThenKey(key: Expression | undefined): this;
864
+ withOptions(options: FieldAccessExpressionEmitOptions): this;
855
865
  clone(): FieldAccessExpression;
856
866
  }
857
867
  export declare class FieldDeclaration {
858
- decorators: readonly Decorator[];
868
+ entity: VariableEntity;
859
869
  modifiers: Modifiers;
860
870
  initializer: Expression | undefined;
861
- entity: VariableEntity;
862
- ifComputedThenKey: Expression | undefined;
863
871
  sourceLocation?: SourceLocation | undefined;
864
- options: FieldDeclarationEmitOptions;
865
872
  readonly kind = NodeKind.FieldDeclaration;
866
- constructor(decorators: readonly Decorator[], modifiers: Modifiers, initializer: Expression | undefined, entity: VariableEntity, ifComputedThenKey: Expression | undefined, sourceLocation?: SourceLocation | undefined, options?: FieldDeclarationEmitOptions);
873
+ decorators: readonly Decorator[];
874
+ ifComputedThenKey: Expression | undefined;
875
+ options: FieldDeclarationEmitOptions;
876
+ constructor(entity: VariableEntity, modifiers: Modifiers, initializer: Expression | undefined, sourceLocation?: SourceLocation | undefined);
877
+ withDecorators(decorators: readonly Decorator[]): this;
878
+ withIfComputedThenKey(key: Expression | undefined): this;
879
+ withOptions(options: FieldDeclarationEmitOptions): this;
867
880
  clone(): FieldDeclaration;
868
881
  }
869
882
  export declare class ComputedFieldDeclaration {
@@ -871,30 +884,34 @@ export declare class ComputedFieldDeclaration {
871
884
  modifiers: Modifiers;
872
885
  getter: FieldGetterDeclaration;
873
886
  setter: FieldSetterDeclaration | undefined;
874
- ifComputedThenKey: Expression | undefined;
875
887
  sourceLocation?: SourceLocation | undefined;
876
- options: FieldDeclarationEmitOptions;
877
888
  readonly kind = NodeKind.ComputedFieldDeclaration;
878
- constructor(entity: VariableEntity, modifiers: Modifiers, getter: FieldGetterDeclaration, setter: FieldSetterDeclaration | undefined, ifComputedThenKey: Expression | undefined, sourceLocation?: SourceLocation | undefined, options?: FieldDeclarationEmitOptions);
889
+ ifComputedThenKey: Expression | undefined;
890
+ options: FieldDeclarationEmitOptions;
891
+ constructor(entity: VariableEntity, modifiers: Modifiers, getter: FieldGetterDeclaration, setter: FieldSetterDeclaration | undefined, sourceLocation?: SourceLocation | undefined);
892
+ withIfComputedThenKey(key: Expression | undefined): this;
893
+ withOptions(options: FieldDeclarationEmitOptions): this;
879
894
  clone(): ComputedFieldDeclaration;
880
895
  }
881
896
  export declare class FieldGetterDeclaration {
882
897
  entity: FunctionEntity;
883
- decorators: readonly Decorator[];
884
898
  body: BlockStatement;
885
899
  sourceLocation?: SourceLocation | undefined;
886
900
  readonly kind = NodeKind.FieldGetterDeclaration;
887
- constructor(entity: FunctionEntity, decorators: readonly Decorator[], body: BlockStatement, sourceLocation?: SourceLocation | undefined);
901
+ decorators: readonly Decorator[];
902
+ constructor(entity: FunctionEntity, body: BlockStatement, sourceLocation?: SourceLocation | undefined);
903
+ withDecorators(decorators: readonly Decorator[]): this;
888
904
  clone(): FieldGetterDeclaration;
889
905
  }
890
906
  export declare class FieldSetterDeclaration {
891
907
  entity: FunctionEntity;
892
- decorators: readonly Decorator[];
893
908
  body: BlockStatement;
894
909
  valueLocalVariableEntity: VariableEntity;
895
910
  sourceLocation?: SourceLocation | undefined;
896
911
  readonly kind = NodeKind.FieldSetterDeclaration;
897
- constructor(entity: FunctionEntity, decorators: readonly Decorator[], body: BlockStatement, valueLocalVariableEntity: VariableEntity, sourceLocation?: SourceLocation | undefined);
912
+ decorators: readonly Decorator[];
913
+ constructor(entity: FunctionEntity, body: BlockStatement, valueLocalVariableEntity: VariableEntity, sourceLocation?: SourceLocation | undefined);
914
+ withDecorators(decorators: readonly Decorator[]): this;
898
915
  clone(): FieldSetterDeclaration;
899
916
  }
900
917
  export declare class ParameterDeclaration {
@@ -919,8 +936,6 @@ export declare class VariableAccessExpression {
919
936
  sourceLocation?: SourceLocation | undefined;
920
937
  readonly kind = NodeKind.VariableAccessExpression;
921
938
  constructor(variable: AccessedVariable, accessKind: AccessKind, sourceLocation?: SourceLocation | undefined);
922
- static get(variable: AccessedVariable | VariableEntity): VariableAccessExpression;
923
- static set(variable: AccessedVariable | VariableEntity): VariableAccessExpression;
924
939
  clone(): VariableAccessExpression;
925
940
  }
926
941
  export declare class WhileStatement {
@@ -1043,23 +1058,22 @@ export declare const enum NodeKind {
1043
1058
  FunctionJsObjectLiteralProperty = 83,
1044
1059
  SpreadJsObjectLiteralProperty = 84,
1045
1060
  JsPropertyAccessExpression = 85,
1046
- JsFunctionLiteral = 86,
1047
- JsTypeOfExpression = 87,
1048
- JsInstanceOfExpression = 88,
1049
- JsIdentifierExpression = 89,
1050
- DereferenceExpression = 90,
1051
- BaseExpression = 91,
1052
- OwnConstructorCallExpression = 92,
1053
- DereferencedVariableGetterDeclaration = 93,
1054
- DereferencedVariableSetterDeclaration = 94,
1055
- JsNamespaceDestructuringStatement = 95,
1056
- ComputedFieldDeclaration = 96,
1057
- TextWithEntityName = 97,
1058
- Arguments = 98,
1059
- Decorator = 99,
1060
- TextTranslationDeclaration = 100,
1061
- TranslationTextTemplate = 101,
1062
- TranslationTextTemplateParameter = 102
1061
+ JsTypeOfExpression = 86,
1062
+ JsInstanceOfExpression = 87,
1063
+ JsIdentifierExpression = 88,
1064
+ DereferenceExpression = 89,
1065
+ BaseExpression = 90,
1066
+ OwnConstructorCallExpression = 91,
1067
+ DereferencedVariableGetterDeclaration = 92,
1068
+ DereferencedVariableSetterDeclaration = 93,
1069
+ JsNamespaceDestructuringStatement = 94,
1070
+ ComputedFieldDeclaration = 95,
1071
+ TextWithEntityName = 96,
1072
+ Arguments = 97,
1073
+ Decorator = 98,
1074
+ TextTranslationDeclaration = 99,
1075
+ TranslationTextTemplate = 100,
1076
+ TranslationTextTemplateParameter = 101
1063
1077
  }
1064
1078
  export declare const enum AssignmentOperatorKind {
1065
1079
  Equals = 0,
@@ -1,8 +1,8 @@
1
1
  import * as ir from './Nodes.js';
2
- export type Node = ir.ArrayLiteral | ir.AsExpression | ir.AssertionExpression | ir.AssignmentExpression | ir.AssignmentStatement | ir.BaseConstructorCallExpression | ir.BinaryExpression | ir.BlockStatement | ir.BooleanLiteral | ir.BreakLoopStatement | ir.CallExpression | ir.CharLiteral | ir.CommaExpression | ir.ConstructorCallExpression | ir.ContinueLoopStatement | ir.DisposeStatement | ir.RunStatement | ir.TryStatement | ir.NullLiteral | ir.EmptyStatement | ir.ErrorStatement | ir.ImportantStatement | ir.ExpressionStatement | ir.FinallyClause | ir.ForStatement | ir.PackageFunctionDeclaration | ir.PackageTypeDeclaration | ir.PackageVariableDeclaration | ir.PackageVariableGetterDeclaration | ir.PackageVariableSetterDeclaration | ir.PackageVariantTypeDeclaration | ir.IfStatement | ir.IndexedAccessExpression | ir.InlineJsExpression | ir.MethodAccessExpression | ir.FieldAccessExpression | ir.IntegerLiteral | ir.IsExpression | ir.JsIndexedAccessExpression | ir.NestedFunctionDeclaration | ir.NestedFunctionDeclarationStatement | ir.LocalVariableDeclaration | ir.LocalVariableDeclarationStatement | ir.NumericLiteral | ir.CatchClause | ir.FunctionAccessExpression | ir.FunctionLiteral | ir.PrefixUnaryExpression | ir.MeasureLiteral | ir.ReferenceExpression | ir.LoopStatement | ir.Package | ir.ReturnStatement | ir.TextLiteral | ir.LocalizableTextLiteral | ir.TextTemplateLiteral | ir.LocalizableTextTemplateLiteral | ir.ConstructorDeclaration | ir.DestructorDeclaration | ir.IndexedElementGetterDeclaration | ir.IndexedElementSetterDeclaration | ir.MethodDeclaration | ir.FieldDeclaration | ir.ComputedFieldDeclaration | ir.FieldGetterDeclaration | ir.FieldSetterDeclaration | ir.SwitchStatement | ir.TernaryExpression | ir.ThisExpression | ir.TypeAccessExpression | ir.ParameterDeclaration | ir.VariableAccessExpression | ir.VariantDeclaration | ir.WhileStatement | ir.YieldStatement | ir.JsObjectLiteral | ir.ValueJsObjectLiteralProperty | ir.FunctionJsObjectLiteralProperty | ir.SpreadJsObjectLiteralProperty | ir.JsPropertyAccessExpression | ir.JsFunctionLiteral | ir.JsTypeOfExpression | ir.JsInstanceOfExpression | ir.JsIdentifierExpression | ir.DereferenceExpression | ir.BaseExpression | ir.OwnConstructorCallExpression | ir.EsModuleImportDirectiveStatement | ir.CjsModuleImportDirectiveStatement | ir.JsNamespaceDestructuringStatement | ir.DereferencedVariableGetterDeclaration | ir.DereferencedVariableSetterDeclaration | ir.TextWithEntityName | ir.Argument | ir.Arguments | ir.Decorator | ir.TextTranslationDeclaration | ir.TranslationTextTemplate;
2
+ export type Node = ir.ArrayLiteral | ir.AsExpression | ir.AssertionExpression | ir.AssignmentExpression | ir.AssignmentStatement | ir.BaseConstructorCallExpression | ir.BinaryExpression | ir.BlockStatement | ir.BooleanLiteral | ir.BreakLoopStatement | ir.CallExpression | ir.CharLiteral | ir.CommaExpression | ir.ConstructorCallExpression | ir.ContinueLoopStatement | ir.DisposeStatement | ir.RunStatement | ir.TryStatement | ir.NullLiteral | ir.EmptyStatement | ir.ErrorStatement | ir.ImportantStatement | ir.ExpressionStatement | ir.FinallyClause | ir.ForStatement | ir.PackageFunctionDeclaration | ir.PackageTypeDeclaration | ir.PackageVariableDeclaration | ir.PackageVariableGetterDeclaration | ir.PackageVariableSetterDeclaration | ir.PackageVariantTypeDeclaration | ir.IfStatement | ir.IndexedAccessExpression | ir.InlineJsExpression | ir.MethodAccessExpression | ir.FieldAccessExpression | ir.IntegerLiteral | ir.IsExpression | ir.JsIndexedAccessExpression | ir.NestedFunctionDeclaration | ir.NestedFunctionDeclarationStatement | ir.LocalVariableDeclaration | ir.LocalVariableDeclarationStatement | ir.NumericLiteral | ir.CatchClause | ir.FunctionAccessExpression | ir.FunctionLiteral | ir.PrefixUnaryExpression | ir.MeasureLiteral | ir.ReferenceExpression | ir.LoopStatement | ir.Package | ir.ReturnStatement | ir.TextLiteral | ir.LocalizableTextLiteral | ir.TextTemplateLiteral | ir.LocalizableTextTemplateLiteral | ir.ConstructorDeclaration | ir.DestructorDeclaration | ir.IndexedElementGetterDeclaration | ir.IndexedElementSetterDeclaration | ir.MethodDeclaration | ir.FieldDeclaration | ir.ComputedFieldDeclaration | ir.FieldGetterDeclaration | ir.FieldSetterDeclaration | ir.SwitchStatement | ir.CaseClause | ir.TernaryExpression | ir.ThisExpression | ir.TypeAccessExpression | ir.ParameterDeclaration | ir.VariableAccessExpression | ir.VariantDeclaration | ir.WhileStatement | ir.YieldStatement | ir.JsObjectLiteral | ir.ValueJsObjectLiteralProperty | ir.FunctionJsObjectLiteralProperty | ir.SpreadJsObjectLiteralProperty | ir.JsPropertyAccessExpression | ir.JsTypeOfExpression | ir.JsInstanceOfExpression | ir.JsIdentifierExpression | ir.DereferenceExpression | ir.BaseExpression | ir.OwnConstructorCallExpression | ir.EsModuleImportDirectiveStatement | ir.CjsModuleImportDirectiveStatement | ir.JsNamespaceDestructuringStatement | ir.DereferencedVariableGetterDeclaration | ir.DereferencedVariableSetterDeclaration | ir.TextWithEntityName | ir.Argument | ir.Arguments | ir.Decorator | ir.TextTranslationDeclaration | ir.TranslationTextTemplate;
3
3
  export type Declaration = ir.PackageFunctionDeclaration | ir.PackageTypeDeclaration | ir.PackageVariableDeclaration | ir.PackageVariableGetterDeclaration | ir.PackageVariableSetterDeclaration | ir.PackageVariantTypeDeclaration | ir.NestedFunctionDeclaration | ir.LocalVariableDeclaration | ir.ConstructorDeclaration | ir.DestructorDeclaration | ir.IndexedElementGetterDeclaration | ir.IndexedElementSetterDeclaration | ir.MethodDeclaration | ir.FieldDeclaration | ir.FieldGetterDeclaration | ir.FieldSetterDeclaration | ir.ParameterDeclaration | ir.VariantDeclaration | ir.DereferencedVariableGetterDeclaration | ir.DereferencedVariableSetterDeclaration | ir.TextTranslationDeclaration | ir.TranslationTextTemplate;
4
4
  export type Statement = ir.AssignmentStatement | ir.BlockStatement | ir.BreakLoopStatement | ir.ContinueLoopStatement | ir.DisposeStatement | ir.RunStatement | ir.TryStatement | ir.EmptyStatement | ir.ErrorStatement | ir.ImportantStatement | ir.ExpressionStatement | ir.ForStatement | ir.IfStatement | ir.NestedFunctionDeclarationStatement | ir.LocalVariableDeclarationStatement | ir.LoopStatement | ir.ReturnStatement | ir.SwitchStatement | ir.WhileStatement | ir.YieldStatement | ir.EsModuleImportDirectiveStatement | ir.CjsModuleImportDirectiveStatement | ir.JsNamespaceDestructuringStatement;
5
- export type Expression = ir.ArrayLiteral | ir.AsExpression | ir.AssertionExpression | ir.AssignmentExpression | ir.BinaryExpression | ir.BooleanLiteral | ir.CallExpression | ir.CharLiteral | ir.CommaExpression | ir.ConstructorCallExpression | ir.NullLiteral | ir.IndexedAccessExpression | ir.InlineJsExpression | ir.MethodAccessExpression | ir.FieldAccessExpression | ir.IntegerLiteral | ir.IsExpression | ir.NumericLiteral | ir.FunctionAccessExpression | ir.FunctionLiteral | ir.PrefixUnaryExpression | ir.MeasureLiteral | ir.ReferenceExpression | ir.DereferenceExpression | ir.TextLiteral | ir.LocalizableTextLiteral | ir.TextWithEntityName | ir.TextTemplateLiteral | ir.LocalizableTextTemplateLiteral | ir.TernaryExpression | ir.ThisExpression | ir.TypeAccessExpression | ir.VariableAccessExpression | ir.BaseConstructorCallExpression | ir.JsIndexedAccessExpression | ir.JsObjectLiteral | ir.JsPropertyAccessExpression | ir.JsFunctionLiteral | ir.JsTypeOfExpression | ir.JsInstanceOfExpression | ir.JsIdentifierExpression | ir.BaseExpression | ir.OwnConstructorCallExpression;
5
+ export type Expression = ir.ArrayLiteral | ir.AsExpression | ir.AssertionExpression | ir.AssignmentExpression | ir.BinaryExpression | ir.BooleanLiteral | ir.CallExpression | ir.CharLiteral | ir.CommaExpression | ir.ConstructorCallExpression | ir.NullLiteral | ir.IndexedAccessExpression | ir.InlineJsExpression | ir.MethodAccessExpression | ir.FieldAccessExpression | ir.IntegerLiteral | ir.IsExpression | ir.NumericLiteral | ir.FunctionAccessExpression | ir.FunctionLiteral | ir.PrefixUnaryExpression | ir.MeasureLiteral | ir.ReferenceExpression | ir.DereferenceExpression | ir.TextLiteral | ir.LocalizableTextLiteral | ir.TextWithEntityName | ir.TextTemplateLiteral | ir.LocalizableTextTemplateLiteral | ir.TernaryExpression | ir.ThisExpression | ir.TypeAccessExpression | ir.VariableAccessExpression | ir.BaseConstructorCallExpression | ir.JsIndexedAccessExpression | ir.JsObjectLiteral | ir.JsPropertyAccessExpression | ir.JsTypeOfExpression | ir.JsInstanceOfExpression | ir.JsIdentifierExpression | ir.BaseExpression | ir.OwnConstructorCallExpression;
6
6
  export type TypeMemberDeclaration = ir.FieldDeclaration | ir.ComputedFieldDeclaration | ir.MethodDeclaration | ir.ConstructorDeclaration | ir.DestructorDeclaration | ir.IndexedElementGetterDeclaration | ir.IndexedElementSetterDeclaration | ir.DereferencedVariableGetterDeclaration | ir.DereferencedVariableSetterDeclaration;
7
7
  export type PackageMemberDeclaration = ir.PackageFunctionDeclaration | ir.PackageTypeDeclaration | ir.PackageVariableDeclaration | ir.PackageVariableGetterDeclaration | ir.PackageVariableSetterDeclaration | ir.PackageVariantTypeDeclaration;
8
8
  export type LocalDeclaration = ir.LocalVariableDeclaration | ir.NestedFunctionDeclaration;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artel/artc",
3
- "version": "0.6.25267",
3
+ "version": "0.6.25269",
4
4
  "description": "Артель Компилятор | Artel Compiler",
5
5
  "author": "Nezaboodka Team <contact@nezaboodka.com>",
6
6
  "license": "LGPL-3.0-or-later",