@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.
- package/build/Cli.js +3 -3
- package/build/api/Api.js +2 -2
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +9 -4
- package/build/{chunk-QPMUNY52.js → chunk-A24SR6QN.js} +2 -2
- package/build/{chunk-PONDNA47.js → chunk-A5H2QLXZ.js} +14321 -14577
- package/build/{chunk-PWOY5UD5.js → chunk-REZSITUH.js} +1 -1
- package/build/types/analysis/TagMeaning.d.ts +2 -1
- package/build/types/analysis/Tags.d.ts +6 -2
- package/build/types/analysis/Utils.d.ts +3 -2
- package/build/types/emitter/Emitter.d.ts +0 -1
- package/build/types/emitter/EmitterContext.d.ts +2 -2
- package/build/types/emitter/ErrorBoundary.d.ts +3 -3
- package/build/types/emitter/IrFactory.d.ts +51 -36
- package/build/types/emitter/IrToJs.d.ts +0 -1
- package/build/types/emitter/Transformer.d.ts +0 -2
- package/build/types/emitter/ir/Nodes.d.ts +109 -95
- package/build/types/emitter/ir/types.d.ts +2 -2
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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,
|
|
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,
|
|
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
|
-
|
|
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,
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
853
|
-
|
|
854
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
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.
|
|
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.
|
|
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;
|