@artel/artc 0.6.25221 → 0.6.25222

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.
@@ -93,65 +93,67 @@ export declare enum NodeKind {
93
93
  AssignmentStatement = 91,
94
94
  StatementList = 92,
95
95
  StatementBlock = 93,
96
- BreakLoopStatement = 94,
97
- ContinueLoopStatement = 95,
98
- DisposeStatement = 96,
99
- RunStatement = 97,
100
- TryStatement = 98,
101
- CatchClause = 99,
102
- ErrorVariableDeclaration = 100,
103
- FinallyClause = 101,
104
- EmptyStatement = 102,
105
- ErrorStatement = 103,
106
- ExpressionStatement = 104,
107
- EnumerationVariableList = 105,
108
- ForStatement = 106,
109
- IfStatement = 107,
110
- ElseIfClauseList = 108,
111
- ElseIfClause = 109,
112
- ElseClause = 110,
113
- InvalidStatement = 111,
114
- NestedMethodDeclarationStatement = 112,
115
- LocalVariableDeclarationStatement = 113,
116
- LoopStatement = 114,
117
- ReturnStatement = 115,
118
- CaseClauseList = 116,
119
- SwitchStatement = 117,
120
- MatchExpressionList = 118,
121
- CaseClause = 119,
122
- WhileStatement = 120,
123
- YieldStatement = 121,
124
- TranslationParameterList = 122,
125
- TranslationParameterClause = 123,
126
- ConstructorTranslation = 124,
127
- IndexerTranslationParameterClause = 125,
128
- IndexerTranslation = 126,
129
- TranslationTypeParameterList = 127,
130
- TranslationTypeParameterClause = 128,
131
- PackageMethodTranslation = 129,
132
- TypeMethodTranslation = 130,
133
- MethodTypeTranslation = 131,
134
- PackageImportTranslation = 132,
135
- QualifiedName = 133,
136
- PackageVariableTranslation = 134,
137
- TypeVariableOrVariantTranslation = 135,
138
- TypeMemberTranslationList = 136,
139
- TypeTranslation = 137,
140
- TextLiteralTranslation = 138,
141
- TextTemplateLiteralTranslation = 139,
142
- VariantDeclaration = 140,
143
- TypeParameterDeclaration = 141,
144
- ParameterDeclaration = 142,
145
- Argument = 143,
146
- TagList = 144,
147
- Tag = 145,
148
- ModifierList = 146,
149
- Modifier = 147,
150
- ParameterClause = 148,
151
- ParameterList = 149,
152
- TypeArgumentClause = 150,
153
- TypeArgumentList = 151,
154
- TypeParameterClause = 152,
155
- TypeParameterList = 153,
156
- TypeAnnotation = 154
96
+ FunctionBlock = 94,
97
+ BreakLoopStatement = 95,
98
+ ContinueLoopStatement = 96,
99
+ DisposeStatement = 97,
100
+ RunStatement = 98,
101
+ TryStatement = 99,
102
+ CatchClause = 100,
103
+ ErrorVariableDeclaration = 101,
104
+ FinallyClause = 102,
105
+ EmptyStatement = 103,
106
+ ErrorStatement = 104,
107
+ ImportantStatement = 105,
108
+ ExpressionStatement = 106,
109
+ EnumerationVariableList = 107,
110
+ ForStatement = 108,
111
+ IfStatement = 109,
112
+ ElseIfClauseList = 110,
113
+ ElseIfClause = 111,
114
+ ElseClause = 112,
115
+ InvalidStatement = 113,
116
+ NestedMethodDeclarationStatement = 114,
117
+ LocalVariableDeclarationStatement = 115,
118
+ LoopStatement = 116,
119
+ ReturnStatement = 117,
120
+ CaseClauseList = 118,
121
+ SwitchStatement = 119,
122
+ MatchExpressionList = 120,
123
+ CaseClause = 121,
124
+ WhileStatement = 122,
125
+ YieldStatement = 123,
126
+ TranslationParameterList = 124,
127
+ TranslationParameterClause = 125,
128
+ ConstructorTranslation = 126,
129
+ IndexerTranslationParameterClause = 127,
130
+ IndexerTranslation = 128,
131
+ TranslationTypeParameterList = 129,
132
+ TranslationTypeParameterClause = 130,
133
+ PackageMethodTranslation = 131,
134
+ TypeMethodTranslation = 132,
135
+ MethodTypeTranslation = 133,
136
+ PackageImportTranslation = 134,
137
+ QualifiedName = 135,
138
+ PackageVariableTranslation = 136,
139
+ TypeVariableOrVariantTranslation = 137,
140
+ TypeMemberTranslationList = 138,
141
+ TypeTranslation = 139,
142
+ TextLiteralTranslation = 140,
143
+ TextTemplateLiteralTranslation = 141,
144
+ VariantDeclaration = 142,
145
+ TypeParameterDeclaration = 143,
146
+ ParameterDeclaration = 144,
147
+ Argument = 145,
148
+ TagList = 146,
149
+ Tag = 147,
150
+ ModifierList = 148,
151
+ Modifier = 149,
152
+ ParameterClause = 150,
153
+ ParameterList = 151,
154
+ TypeArgumentClause = 152,
155
+ TypeArgumentList = 153,
156
+ TypeParameterClause = 154,
157
+ TypeParameterList = 155,
158
+ TypeAnnotation = 156
157
159
  }
@@ -305,14 +305,14 @@ export declare class PackageConstructorDeclaration extends BaseNode {
305
305
  TagList,
306
306
  ModifierList,
307
307
  Keyword<KeywordKind.Creation>,
308
- StatementBlock
308
+ FunctionBlock
309
309
  ];
310
310
  get tagList(): TagList;
311
311
  get modifierList(): ModifierList;
312
312
  get creationKeyword(): Keyword<KeywordKind.Creation>;
313
- get block(): StatementBlock;
313
+ get block(): FunctionBlock;
314
314
  protected get thisAsNode(): Node;
315
- constructor(tagList: TagList, modifierList: ModifierList, creationKeyword: Keyword<KeywordKind.Creation>, block: StatementBlock);
315
+ constructor(tagList: TagList, modifierList: ModifierList, creationKeyword: Keyword<KeywordKind.Creation>, block: FunctionBlock);
316
316
  toRed(rangeStart: number, parent: red.PackageMemberDeclarationParent): red.PackageConstructorDeclaration;
317
317
  }
318
318
  export declare class PackageEntryPointDeclaration extends BaseNode {
@@ -321,14 +321,14 @@ export declare class PackageEntryPointDeclaration extends BaseNode {
321
321
  TagList,
322
322
  ModifierList,
323
323
  Keyword<KeywordKind.Run>,
324
- StatementBlock
324
+ FunctionBlock
325
325
  ];
326
326
  get tagList(): TagList;
327
327
  get modifierList(): ModifierList;
328
328
  get runKeyword(): Keyword<KeywordKind.Run>;
329
- get block(): StatementBlock;
329
+ get block(): FunctionBlock;
330
330
  protected get thisAsNode(): Node;
331
- constructor(tagList: TagList, modifierList: ModifierList, runKeyword: Keyword<KeywordKind.Run>, block: StatementBlock);
331
+ constructor(tagList: TagList, modifierList: ModifierList, runKeyword: Keyword<KeywordKind.Run>, block: FunctionBlock);
332
332
  toRed(rangeStart: number, parent: red.PackageMemberDeclarationParent): red.PackageEntryPointDeclaration;
333
333
  }
334
334
  export declare class PackageMethodDeclaration extends BaseNode {
@@ -341,7 +341,7 @@ export declare class PackageMethodDeclaration extends BaseNode {
341
341
  TypeParameterClause | undefined,
342
342
  ParameterClause,
343
343
  TypeAnnotation | undefined,
344
- StatementBlock | undefined
344
+ FunctionBlock | undefined
345
345
  ];
346
346
  get tagList(): TagList;
347
347
  get modifierList(): ModifierList;
@@ -350,9 +350,9 @@ export declare class PackageMethodDeclaration extends BaseNode {
350
350
  get typeParameterClause(): TypeParameterClause | undefined;
351
351
  get parameterClause(): ParameterClause;
352
352
  get returnTypeAnnotation(): TypeAnnotation | undefined;
353
- get block(): StatementBlock | undefined;
353
+ get block(): FunctionBlock | undefined;
354
354
  protected get thisAsNode(): Node;
355
- constructor(tagList: TagList, modifierList: ModifierList, functionKeyword: Keyword<KeywordKind.Function>, name: Identifier, typeParameterClause: TypeParameterClause | undefined, parameterClause: ParameterClause, returnTypeAnnotation: TypeAnnotation | undefined, block: StatementBlock | undefined);
355
+ constructor(tagList: TagList, modifierList: ModifierList, functionKeyword: Keyword<KeywordKind.Function>, name: Identifier, typeParameterClause: TypeParameterClause | undefined, parameterClause: ParameterClause, returnTypeAnnotation: TypeAnnotation | undefined, block: FunctionBlock | undefined);
356
356
  toRed(rangeStart: number, parent: red.PackageMemberDeclarationParent): red.PackageMethodDeclaration;
357
357
  }
358
358
  export declare class PackageMethodTypeDeclaration extends BaseNode {
@@ -490,16 +490,16 @@ export declare class PackageVariableGetterDeclaration extends BaseNode {
490
490
  Keyword<KeywordKind.Get>,
491
491
  Identifier,
492
492
  TypeAnnotation,
493
- StatementBlock | undefined
493
+ FunctionBlock | undefined
494
494
  ];
495
495
  get tagList(): TagList;
496
496
  get modifierList(): ModifierList;
497
497
  get getKeyword(): Keyword<KeywordKind.Get>;
498
498
  get name(): Identifier;
499
499
  get typeAnnotation(): TypeAnnotation;
500
- get block(): StatementBlock | undefined;
500
+ get block(): FunctionBlock | undefined;
501
501
  protected get thisAsNode(): Node;
502
- constructor(tagList: TagList, modifierList: ModifierList, getKeyword: Keyword<KeywordKind.Get>, name: Identifier, typeAnnotation: TypeAnnotation, block: StatementBlock | undefined);
502
+ constructor(tagList: TagList, modifierList: ModifierList, getKeyword: Keyword<KeywordKind.Get>, name: Identifier, typeAnnotation: TypeAnnotation, block: FunctionBlock | undefined);
503
503
  toRed(rangeStart: number, parent: red.PackageMemberDeclarationParent): red.PackageVariableGetterDeclaration;
504
504
  }
505
505
  export declare class PackageVariableSetterDeclaration extends BaseNode {
@@ -509,15 +509,15 @@ export declare class PackageVariableSetterDeclaration extends BaseNode {
509
509
  ModifierList,
510
510
  Keyword<KeywordKind.Set>,
511
511
  Identifier,
512
- StatementBlock | undefined
512
+ FunctionBlock | undefined
513
513
  ];
514
514
  get tagList(): TagList;
515
515
  get modifierList(): ModifierList;
516
516
  get setKeyword(): Keyword<KeywordKind.Set>;
517
517
  get name(): Identifier;
518
- get block(): StatementBlock | undefined;
518
+ get block(): FunctionBlock | undefined;
519
519
  protected get thisAsNode(): Node;
520
- constructor(tagList: TagList, modifierList: ModifierList, setKeyword: Keyword<KeywordKind.Set>, name: Identifier, block: StatementBlock | undefined);
520
+ constructor(tagList: TagList, modifierList: ModifierList, setKeyword: Keyword<KeywordKind.Set>, name: Identifier, block: FunctionBlock | undefined);
521
521
  toRed(rangeStart: number, parent: red.PackageMemberDeclarationParent): red.PackageVariableSetterDeclaration;
522
522
  }
523
523
  export declare class PackageVariantTypeDeclaration extends BaseNode {
@@ -634,15 +634,15 @@ export declare class TypeConstructorDeclaration extends BaseNode {
634
634
  ModifierList,
635
635
  Keyword<KeywordKind.Creation>,
636
636
  ParameterClause,
637
- StatementBlock | undefined
637
+ FunctionBlock | undefined
638
638
  ];
639
639
  get tagList(): TagList;
640
640
  get modifierList(): ModifierList;
641
641
  get creationKeyword(): Keyword<KeywordKind.Creation>;
642
642
  get parameterClause(): ParameterClause;
643
- get block(): StatementBlock | undefined;
643
+ get block(): FunctionBlock | undefined;
644
644
  protected get thisAsNode(): Node;
645
- constructor(tagList: TagList, modifierList: ModifierList, creationKeyword: Keyword<KeywordKind.Creation>, parameterClause: ParameterClause, block: StatementBlock | undefined);
645
+ constructor(tagList: TagList, modifierList: ModifierList, creationKeyword: Keyword<KeywordKind.Creation>, parameterClause: ParameterClause, block: FunctionBlock | undefined);
646
646
  toRed(rangeStart: number, parent: red.TypeMemberDeclarationParent): red.TypeConstructorDeclaration;
647
647
  }
648
648
  export declare class TypeDestructorDeclaration extends BaseNode {
@@ -652,15 +652,15 @@ export declare class TypeDestructorDeclaration extends BaseNode {
652
652
  ModifierList,
653
653
  Keyword<KeywordKind.Destruction>,
654
654
  ParameterClause,
655
- StatementBlock | undefined
655
+ FunctionBlock | undefined
656
656
  ];
657
657
  get tagList(): TagList;
658
658
  get modifierList(): ModifierList;
659
659
  get destructionKeyword(): Keyword<KeywordKind.Destruction>;
660
660
  get parameterClause(): ParameterClause;
661
- get block(): StatementBlock | undefined;
661
+ get block(): FunctionBlock | undefined;
662
662
  protected get thisAsNode(): Node;
663
- constructor(tagList: TagList, modifierList: ModifierList, destructionKeyword: Keyword<KeywordKind.Destruction>, parameterClause: ParameterClause, block: StatementBlock | undefined);
663
+ constructor(tagList: TagList, modifierList: ModifierList, destructionKeyword: Keyword<KeywordKind.Destruction>, parameterClause: ParameterClause, block: FunctionBlock | undefined);
664
664
  toRed(rangeStart: number, parent: red.TypeMemberDeclarationParent): red.TypeDestructorDeclaration;
665
665
  }
666
666
  export declare class TypeIndexedGetterDeclaration extends BaseNode {
@@ -671,16 +671,16 @@ export declare class TypeIndexedGetterDeclaration extends BaseNode {
671
671
  Keyword<KeywordKind.Get>,
672
672
  TypeIndexerParameterClause,
673
673
  TypeAnnotation,
674
- StatementBlock | undefined
674
+ FunctionBlock | undefined
675
675
  ];
676
676
  get tagList(): TagList;
677
677
  get modifierList(): ModifierList;
678
678
  get getKeyword(): Keyword<KeywordKind.Get>;
679
679
  get parameterClause(): TypeIndexerParameterClause;
680
680
  get typeAnnotation(): TypeAnnotation;
681
- get block(): StatementBlock | undefined;
681
+ get block(): FunctionBlock | undefined;
682
682
  protected get thisAsNode(): Node;
683
- constructor(tagList: TagList, modifierList: ModifierList, getKeyword: Keyword<KeywordKind.Get>, parameterClause: TypeIndexerParameterClause, typeAnnotation: TypeAnnotation, block: StatementBlock | undefined);
683
+ constructor(tagList: TagList, modifierList: ModifierList, getKeyword: Keyword<KeywordKind.Get>, parameterClause: TypeIndexerParameterClause, typeAnnotation: TypeAnnotation, block: FunctionBlock | undefined);
684
684
  toRed(rangeStart: number, parent: red.TypeMemberDeclarationParent): red.TypeIndexedGetterDeclaration;
685
685
  }
686
686
  export declare class TypeIndexedSetterDeclaration extends BaseNode {
@@ -690,15 +690,15 @@ export declare class TypeIndexedSetterDeclaration extends BaseNode {
690
690
  ModifierList,
691
691
  Keyword<KeywordKind.Set>,
692
692
  TypeIndexerParameterClause,
693
- StatementBlock | undefined
693
+ FunctionBlock | undefined
694
694
  ];
695
695
  get tagList(): TagList;
696
696
  get modifierList(): ModifierList;
697
697
  get setKeyword(): Keyword<KeywordKind.Set>;
698
698
  get parameterClause(): TypeIndexerParameterClause;
699
- get block(): StatementBlock | undefined;
699
+ get block(): FunctionBlock | undefined;
700
700
  protected get thisAsNode(): Node;
701
- constructor(tagList: TagList, modifierList: ModifierList, setKeyword: Keyword<KeywordKind.Set>, parameterClause: TypeIndexerParameterClause, block: StatementBlock | undefined);
701
+ constructor(tagList: TagList, modifierList: ModifierList, setKeyword: Keyword<KeywordKind.Set>, parameterClause: TypeIndexerParameterClause, block: FunctionBlock | undefined);
702
702
  toRed(rangeStart: number, parent: red.TypeMemberDeclarationParent): red.TypeIndexedSetterDeclaration;
703
703
  }
704
704
  export declare class TypeIndexerParameterClause extends BaseNode {
@@ -723,16 +723,16 @@ export declare class TypeDereferencedVariableGetterDeclaration extends BaseNode
723
723
  Keyword<KeywordKind.Get>,
724
724
  Token<TokenKind.Caret>,
725
725
  TypeAnnotation,
726
- StatementBlock | undefined
726
+ FunctionBlock | undefined
727
727
  ];
728
728
  get tagList(): TagList;
729
729
  get modifierList(): ModifierList;
730
730
  get getKeyword(): Keyword<KeywordKind.Get>;
731
731
  get caretToken(): Token<TokenKind.Caret>;
732
732
  get typeAnnotation(): TypeAnnotation;
733
- get block(): StatementBlock | undefined;
733
+ get block(): FunctionBlock | undefined;
734
734
  protected get thisAsNode(): Node;
735
- constructor(tagList: TagList, modifierList: ModifierList, getKeyword: Keyword<KeywordKind.Get>, caretToken: Token<TokenKind.Caret>, typeAnnotation: TypeAnnotation, block: StatementBlock | undefined);
735
+ constructor(tagList: TagList, modifierList: ModifierList, getKeyword: Keyword<KeywordKind.Get>, caretToken: Token<TokenKind.Caret>, typeAnnotation: TypeAnnotation, block: FunctionBlock | undefined);
736
736
  toRed(rangeStart: number, parent: red.TypeMemberDeclarationParent): red.TypeDereferencedVariableGetterDeclaration;
737
737
  }
738
738
  export declare class TypeDereferencedVariableSetterDeclaration extends BaseNode {
@@ -742,15 +742,15 @@ export declare class TypeDereferencedVariableSetterDeclaration extends BaseNode
742
742
  ModifierList,
743
743
  Keyword<KeywordKind.Set>,
744
744
  Token<TokenKind.Caret>,
745
- StatementBlock | undefined
745
+ FunctionBlock | undefined
746
746
  ];
747
747
  get tagList(): TagList;
748
748
  get modifierList(): ModifierList;
749
749
  get setKeyword(): Keyword<KeywordKind.Set>;
750
750
  get caretToken(): Token<TokenKind.Caret>;
751
- get block(): StatementBlock | undefined;
751
+ get block(): FunctionBlock | undefined;
752
752
  protected get thisAsNode(): Node;
753
- constructor(tagList: TagList, modifierList: ModifierList, setKeyword: Keyword<KeywordKind.Set>, caretToken: Token<TokenKind.Caret>, block: StatementBlock | undefined);
753
+ constructor(tagList: TagList, modifierList: ModifierList, setKeyword: Keyword<KeywordKind.Set>, caretToken: Token<TokenKind.Caret>, block: FunctionBlock | undefined);
754
754
  toRed(rangeStart: number, parent: red.TypeMemberDeclarationParent): red.TypeDereferencedVariableSetterDeclaration;
755
755
  }
756
756
  export declare class TypeMethodDeclaration extends BaseNode {
@@ -763,7 +763,7 @@ export declare class TypeMethodDeclaration extends BaseNode {
763
763
  TypeParameterClause | undefined,
764
764
  ParameterClause,
765
765
  TypeAnnotation | undefined,
766
- StatementBlock | undefined
766
+ FunctionBlock | undefined
767
767
  ];
768
768
  get tagList(): TagList;
769
769
  get modifierList(): ModifierList;
@@ -772,9 +772,9 @@ export declare class TypeMethodDeclaration extends BaseNode {
772
772
  get typeParameterClause(): TypeParameterClause | undefined;
773
773
  get parameterClause(): ParameterClause;
774
774
  get returnTypeAnnotation(): TypeAnnotation | undefined;
775
- get block(): StatementBlock | undefined;
775
+ get block(): FunctionBlock | undefined;
776
776
  protected get thisAsNode(): Node;
777
- constructor(tagList: TagList, modifierList: ModifierList, functionKeyword: Keyword<KeywordKind.Function>, name: Identifier, typeParameterClause: TypeParameterClause | undefined, parameterClause: ParameterClause, returnTypeAnnotation: TypeAnnotation | undefined, block: StatementBlock | undefined);
777
+ constructor(tagList: TagList, modifierList: ModifierList, functionKeyword: Keyword<KeywordKind.Function>, name: Identifier, typeParameterClause: TypeParameterClause | undefined, parameterClause: ParameterClause, returnTypeAnnotation: TypeAnnotation | undefined, block: FunctionBlock | undefined);
778
778
  toRed(rangeStart: number, parent: red.TypeMemberDeclarationParent): red.TypeMethodDeclaration;
779
779
  }
780
780
  export declare class OperatorDeclaration extends BaseNode {
@@ -787,7 +787,7 @@ export declare class OperatorDeclaration extends BaseNode {
787
787
  Identifier,
788
788
  ParameterClause,
789
789
  TypeAnnotation | undefined,
790
- StatementBlock | undefined
790
+ FunctionBlock | undefined
791
791
  ];
792
792
  get tagList(): TagList;
793
793
  get modifierList(): ModifierList;
@@ -795,9 +795,9 @@ export declare class OperatorDeclaration extends BaseNode {
795
795
  get name(): Identifier;
796
796
  get parameterClause(): ParameterClause;
797
797
  get returnTypeAnnotation(): TypeAnnotation | undefined;
798
- get block(): StatementBlock | undefined;
798
+ get block(): FunctionBlock | undefined;
799
799
  protected get thisAsNode(): Node;
800
- constructor(tagList: TagList, modifierList: ModifierList, functionKeyword: Keyword<KeywordKind.Function>, name: Identifier, parameterClause: ParameterClause, returnTypeAnnotation: TypeAnnotation | undefined, block: StatementBlock | undefined, operatorKind: OperatorKind);
800
+ constructor(tagList: TagList, modifierList: ModifierList, functionKeyword: Keyword<KeywordKind.Function>, name: Identifier, parameterClause: ParameterClause, returnTypeAnnotation: TypeAnnotation | undefined, block: FunctionBlock | undefined, operatorKind: OperatorKind);
801
801
  toRed(rangeStart: number, parent: red.TypeMemberDeclarationParent): red.OperatorDeclaration;
802
802
  }
803
803
  export declare class TypeVariableDeclaration extends BaseNode {
@@ -828,16 +828,16 @@ export declare class TypeVariableGetterDeclaration extends BaseNode {
828
828
  Keyword<KeywordKind.Get>,
829
829
  Identifier,
830
830
  TypeAnnotation,
831
- StatementBlock | undefined
831
+ FunctionBlock | undefined
832
832
  ];
833
833
  get tagList(): TagList;
834
834
  get modifierList(): ModifierList;
835
835
  get getKeyword(): Keyword<KeywordKind.Get>;
836
836
  get name(): Identifier;
837
837
  get typeAnnotation(): TypeAnnotation;
838
- get block(): StatementBlock | undefined;
838
+ get block(): FunctionBlock | undefined;
839
839
  protected get thisAsNode(): Node;
840
- constructor(tagList: TagList, modifierList: ModifierList, getKeyword: Keyword<KeywordKind.Get>, name: Identifier, typeAnnotation: TypeAnnotation, block: StatementBlock | undefined);
840
+ constructor(tagList: TagList, modifierList: ModifierList, getKeyword: Keyword<KeywordKind.Get>, name: Identifier, typeAnnotation: TypeAnnotation, block: FunctionBlock | undefined);
841
841
  toRed(rangeStart: number, parent: red.TypeMemberDeclarationParent): red.TypeVariableGetterDeclaration;
842
842
  }
843
843
  export declare class TypeVariableSetterDeclaration extends BaseNode {
@@ -847,15 +847,15 @@ export declare class TypeVariableSetterDeclaration extends BaseNode {
847
847
  ModifierList,
848
848
  Keyword<KeywordKind.Set>,
849
849
  Identifier,
850
- StatementBlock | undefined
850
+ FunctionBlock | undefined
851
851
  ];
852
852
  get tagList(): TagList;
853
853
  get modifierList(): ModifierList;
854
854
  get setKeyword(): Keyword<KeywordKind.Set>;
855
855
  get name(): Identifier;
856
- get block(): StatementBlock | undefined;
856
+ get block(): FunctionBlock | undefined;
857
857
  protected get thisAsNode(): Node;
858
- constructor(tagList: TagList, modifierList: ModifierList, setKeyword: Keyword<KeywordKind.Set>, name: Identifier, block: StatementBlock | undefined);
858
+ constructor(tagList: TagList, modifierList: ModifierList, setKeyword: Keyword<KeywordKind.Set>, name: Identifier, block: FunctionBlock | undefined);
859
859
  toRed(rangeStart: number, parent: red.TypeMemberDeclarationParent): red.TypeVariableSetterDeclaration;
860
860
  }
861
861
  export declare class InvalidTypeMemberDeclaration extends BaseNode {
@@ -879,7 +879,7 @@ export declare class NestedMethodDeclaration extends BaseNode {
879
879
  TypeParameterClause | undefined,
880
880
  ParameterClause,
881
881
  TypeAnnotation | undefined,
882
- StatementBlock
882
+ FunctionBlock
883
883
  ];
884
884
  get asyncKeyword(): Keyword<KeywordKind.Async> | undefined;
885
885
  get functionKeyword(): Keyword<KeywordKind.Function>;
@@ -887,9 +887,9 @@ export declare class NestedMethodDeclaration extends BaseNode {
887
887
  get typeParameterClause(): TypeParameterClause | undefined;
888
888
  get parameterClause(): ParameterClause;
889
889
  get returnTypeAnnotation(): TypeAnnotation | undefined;
890
- get block(): StatementBlock;
890
+ get block(): FunctionBlock;
891
891
  protected get thisAsNode(): Node;
892
- constructor(asyncKeyword: Keyword<KeywordKind.Async> | undefined, functionKeyword: Keyword<KeywordKind.Function>, name: Identifier, typeParameterClause: TypeParameterClause | undefined, parameterClause: ParameterClause, returnTypeAnnotation: TypeAnnotation | undefined, block: StatementBlock);
892
+ constructor(asyncKeyword: Keyword<KeywordKind.Async> | undefined, functionKeyword: Keyword<KeywordKind.Function>, name: Identifier, typeParameterClause: TypeParameterClause | undefined, parameterClause: ParameterClause, returnTypeAnnotation: TypeAnnotation | undefined, block: FunctionBlock);
893
893
  toRed(rangeStart: number, parent: red.NestedMethodDeclarationParent): red.NestedMethodDeclaration;
894
894
  }
895
895
  export declare class LocalVariableDeclaration extends BaseNode {
@@ -1000,11 +1000,11 @@ export type BinaryExpressionOperator = Token<TokenKind.Plus> | Token<TokenKind.M
1000
1000
  export declare class MethodBlockLiteral extends BaseNode {
1001
1001
  readonly kind = NodeKind.MethodBlockLiteral;
1002
1002
  readonly children: readonly [
1003
- StatementBlock
1003
+ FunctionBlock
1004
1004
  ];
1005
- get block(): StatementBlock;
1005
+ get block(): FunctionBlock;
1006
1006
  protected get thisAsNode(): Node;
1007
- constructor(block: StatementBlock);
1007
+ constructor(block: FunctionBlock);
1008
1008
  toRed(rangeStart: number, parent: red.ExpressionParent): red.MethodBlockLiteral;
1009
1009
  }
1010
1010
  export type ArgumentListElement = Argument | Comma;
@@ -1092,15 +1092,15 @@ export declare class MethodLiteral extends BaseNode {
1092
1092
  Keyword<KeywordKind.Function>,
1093
1093
  ParameterClause,
1094
1094
  TypeAnnotation | undefined,
1095
- StatementBlock
1095
+ FunctionBlock
1096
1096
  ];
1097
1097
  get asyncKeyword(): Keyword<KeywordKind.Async> | undefined;
1098
1098
  get functionKeyword(): Keyword<KeywordKind.Function>;
1099
1099
  get parameterClause(): ParameterClause;
1100
1100
  get returnTypeAnnotation(): TypeAnnotation | undefined;
1101
- get block(): StatementBlock;
1101
+ get block(): FunctionBlock;
1102
1102
  protected get thisAsNode(): Node;
1103
- constructor(asyncKeyword: Keyword<KeywordKind.Async> | undefined, functionKeyword: Keyword<KeywordKind.Function>, parameterClause: ParameterClause, returnTypeAnnotation: TypeAnnotation | undefined, block: StatementBlock);
1103
+ constructor(asyncKeyword: Keyword<KeywordKind.Async> | undefined, functionKeyword: Keyword<KeywordKind.Function>, parameterClause: ParameterClause, returnTypeAnnotation: TypeAnnotation | undefined, block: FunctionBlock);
1104
1104
  toRed(rangeStart: number, parent: red.ExpressionParent): red.MethodLiteral;
1105
1105
  }
1106
1106
  export declare class ParenthesizedExpression extends BaseNode {
@@ -1299,7 +1299,7 @@ export declare class DefaultMatchExpression extends BaseNode {
1299
1299
  constructor(asteriskToken: Token<TokenKind.Asterisk>);
1300
1300
  toRed(rangeStart: number, parent: red.ExpressionParent): red.DefaultMatchExpression;
1301
1301
  }
1302
- export type Statement = RunStatement | TryStatement | EmptyStatement | IfStatement | ForStatement | WhileStatement | LoopStatement | ReturnStatement | ErrorStatement | LocalVariableDeclarationStatement | AssignmentStatement | YieldStatement | InvalidStatement | ExpressionStatement | SwitchStatement | BreakLoopStatement | ContinueLoopStatement | NestedMethodDeclarationStatement | DisposeStatement;
1302
+ export type Statement = RunStatement | TryStatement | EmptyStatement | IfStatement | ForStatement | WhileStatement | LoopStatement | ReturnStatement | ErrorStatement | LocalVariableDeclarationStatement | AssignmentStatement | YieldStatement | InvalidStatement | ImportantStatement | ExpressionStatement | SwitchStatement | BreakLoopStatement | ContinueLoopStatement | NestedMethodDeclarationStatement | DisposeStatement;
1303
1303
  export declare class AssignmentStatement extends BaseNode {
1304
1304
  readonly kind = NodeKind.AssignmentStatement;
1305
1305
  readonly children: readonly [
@@ -1338,6 +1338,22 @@ export declare class StatementBlock extends BaseNode {
1338
1338
  constructor(openBraceToken: Token<TokenKind.OpenBrace>, statementList: StatementList, closeBraceToken: Token<TokenKind.CloseBrace>);
1339
1339
  toRed(rangeStart: number, parent: red.StatementBlockParent): red.StatementBlock;
1340
1340
  }
1341
+ export declare class FunctionBlock extends BaseNode {
1342
+ readonly kind = NodeKind.FunctionBlock;
1343
+ readonly children: readonly [
1344
+ Token<TokenKind.OpenBrace>,
1345
+ Expression | undefined,
1346
+ StatementList | undefined,
1347
+ Token<TokenKind.CloseBrace>
1348
+ ];
1349
+ get openBraceToken(): Token<TokenKind.OpenBrace>;
1350
+ get expression(): Expression | undefined;
1351
+ get statementList(): StatementList | undefined;
1352
+ get closeBraceToken(): Token<TokenKind.CloseBrace>;
1353
+ protected get thisAsNode(): Node;
1354
+ constructor(openBraceToken: Token<TokenKind.OpenBrace>, expression: Expression | undefined, statementList: StatementList | undefined, closeBraceToken: Token<TokenKind.CloseBrace>);
1355
+ toRed(rangeStart: number, parent: red.FunctionBlockParent): red.FunctionBlock;
1356
+ }
1341
1357
  export declare class BreakLoopStatement extends BaseNode {
1342
1358
  readonly kind = NodeKind.BreakLoopStatement;
1343
1359
  readonly children: readonly [
@@ -1458,6 +1474,18 @@ export declare class ErrorStatement extends BaseNode {
1458
1474
  constructor(errorKeyword: Keyword<KeywordKind.Error>, expression: Expression | undefined);
1459
1475
  toRed(rangeStart: number, parent: red.ErrorStatementParent): red.ErrorStatement;
1460
1476
  }
1477
+ export declare class ImportantStatement extends BaseNode {
1478
+ readonly kind = NodeKind.ImportantStatement;
1479
+ readonly children: readonly [
1480
+ Keyword<KeywordKind.Important>,
1481
+ Expression
1482
+ ];
1483
+ get importantKeyword(): Keyword<KeywordKind.Important>;
1484
+ get expression(): Expression;
1485
+ protected get thisAsNode(): Node;
1486
+ constructor(importantKeyword: Keyword<KeywordKind.Important>, expression: Expression);
1487
+ toRed(rangeStart: number, parent: red.ImportantStatementParent): red.ImportantStatement;
1488
+ }
1461
1489
  export declare class ExpressionStatement extends BaseNode {
1462
1490
  readonly kind = NodeKind.ExpressionStatement;
1463
1491
  readonly children: readonly [
@@ -2157,4 +2185,4 @@ export declare class TypeAnnotation extends BaseNode {
2157
2185
  constructor(colonToken: Token<TokenKind.Colon>, typeSpecifier: TypeSpecifier);
2158
2186
  toRed(rangeStart: number, parent: red.TypeAnnotationParent): red.TypeAnnotation;
2159
2187
  }
2160
- export type Node = SourceFile | PackageMemberDeclarationList | Keyword | PackageImportDirectiveList | SinglePackageImportDirective | PackageGroupImportDirective | PackageImportList | PackageImport | PackagePath | NamedTypeSpecifier | UnionTypeSpecifier | UnionTypeSpecifierTypeList | ParenthesizedTypeSpecifier | NullableTypeSpecifier | AnonymousTypeSpecifier | InvalidTypeSpecifier | AnonymousMethodTypeDeclaration | AnonymousStructuredTypeDeclaration | AnonymousVariantTypeDeclaration | TopLevelTranslationList | TranslationsDeclaration | PackageAliasTypeDeclaration | AliasTypeDeclarationBody | PackageMemberGroupDeclaration | PackageConstructorDeclaration | PackageEntryPointDeclaration | PackageMethodDeclaration | PackageMethodTypeDeclaration | MethodTypeDeclarationBody | BaseTypeList | TypeMemberDeclarationList | TypeMemberDeclarationBlock | PackageStructuredTypeDeclaration | StructuredTypeDeclarationBody | PackageVariableDeclaration | PackageVariableGetterDeclaration | PackageVariableSetterDeclaration | PackageVariantTypeDeclaration | VariantTypeDeclarationBody | TypeExtensionDeclaration | ExtendedTypeClauseCommaList | ExtendedTypeClause | InvalidPackageMemberDeclaration | TypeMemberGroupDeclaration | TypeConstructorDeclaration | TypeDestructorDeclaration | TypeIndexedGetterDeclaration | TypeIndexedSetterDeclaration | TypeIndexerParameterClause | TypeDereferencedVariableGetterDeclaration | TypeDereferencedVariableSetterDeclaration | TypeMethodDeclaration | OperatorDeclaration | TypeVariableDeclaration | TypeVariableGetterDeclaration | TypeVariableSetterDeclaration | InvalidTypeMemberDeclaration | NestedMethodDeclaration | LocalVariableDeclaration | EnumerationVariableDeclaration | ArrayLiteral | ArrayLiteralElementList | AssertionExpression | AssumptionExpression | AsExpression | BinaryExpression | MethodBlockLiteral | ArgumentList | CallExpression | AutotypeCallExpression | IndexedAccessExpression | InvalidExpression | IsExpression | MethodLiteral | ParenthesizedExpression | WhenTernaryExpression | PrefixUnaryExpression | PropertyAccessExpression | ReferenceExpression | DereferenceExpression | TextTemplateLiteral | TextTemplateSpanList | TextTemplateSpan | TokenExpression | KeywordExpression | ObjectExpression | BaseExpression | IdentifierExpression | GenericSpecializationExpression | DefaultMatchExpression | AssignmentStatement | StatementList | StatementBlock | BreakLoopStatement | ContinueLoopStatement | DisposeStatement | RunStatement | TryStatement | CatchClause | ErrorVariableDeclaration | FinallyClause | EmptyStatement | ErrorStatement | ExpressionStatement | EnumerationVariableList | ForStatement | IfStatement | ElseIfClauseList | ElseIfClause | ElseClause | InvalidStatement | NestedMethodDeclarationStatement | LocalVariableDeclarationStatement | LoopStatement | ReturnStatement | CaseClauseList | SwitchStatement | MatchExpressionList | CaseClause | WhileStatement | YieldStatement | TranslationParameterList | TranslationParameterClause | ConstructorTranslation | IndexerTranslationParameterClause | IndexerTranslation | TranslationTypeParameterList | TranslationTypeParameterClause | PackageMethodTranslation | TypeMethodTranslation | MethodTypeTranslation | PackageImportTranslation | QualifiedName | PackageVariableTranslation | TypeVariableOrVariantTranslation | TypeMemberTranslationList | TypeTranslation | TextLiteralTranslation | TextTemplateLiteralTranslation | VariantDeclaration | TypeParameterDeclaration | ParameterDeclaration | Argument | TagList | Tag | ModifierList | Modifier | ParameterClause | ParameterList | TypeArgumentClause | TypeArgumentList | TypeParameterClause | TypeParameterList | TypeAnnotation | Token;
2188
+ export type Node = SourceFile | PackageMemberDeclarationList | Keyword | PackageImportDirectiveList | SinglePackageImportDirective | PackageGroupImportDirective | PackageImportList | PackageImport | PackagePath | NamedTypeSpecifier | UnionTypeSpecifier | UnionTypeSpecifierTypeList | ParenthesizedTypeSpecifier | NullableTypeSpecifier | AnonymousTypeSpecifier | InvalidTypeSpecifier | AnonymousMethodTypeDeclaration | AnonymousStructuredTypeDeclaration | AnonymousVariantTypeDeclaration | TopLevelTranslationList | TranslationsDeclaration | PackageAliasTypeDeclaration | AliasTypeDeclarationBody | PackageMemberGroupDeclaration | PackageConstructorDeclaration | PackageEntryPointDeclaration | PackageMethodDeclaration | PackageMethodTypeDeclaration | MethodTypeDeclarationBody | BaseTypeList | TypeMemberDeclarationList | TypeMemberDeclarationBlock | PackageStructuredTypeDeclaration | StructuredTypeDeclarationBody | PackageVariableDeclaration | PackageVariableGetterDeclaration | PackageVariableSetterDeclaration | PackageVariantTypeDeclaration | VariantTypeDeclarationBody | TypeExtensionDeclaration | ExtendedTypeClauseCommaList | ExtendedTypeClause | InvalidPackageMemberDeclaration | TypeMemberGroupDeclaration | TypeConstructorDeclaration | TypeDestructorDeclaration | TypeIndexedGetterDeclaration | TypeIndexedSetterDeclaration | TypeIndexerParameterClause | TypeDereferencedVariableGetterDeclaration | TypeDereferencedVariableSetterDeclaration | TypeMethodDeclaration | OperatorDeclaration | TypeVariableDeclaration | TypeVariableGetterDeclaration | TypeVariableSetterDeclaration | InvalidTypeMemberDeclaration | NestedMethodDeclaration | LocalVariableDeclaration | EnumerationVariableDeclaration | ArrayLiteral | ArrayLiteralElementList | AssertionExpression | AssumptionExpression | AsExpression | BinaryExpression | MethodBlockLiteral | ArgumentList | CallExpression | AutotypeCallExpression | IndexedAccessExpression | InvalidExpression | IsExpression | MethodLiteral | ParenthesizedExpression | WhenTernaryExpression | PrefixUnaryExpression | PropertyAccessExpression | ReferenceExpression | DereferenceExpression | TextTemplateLiteral | TextTemplateSpanList | TextTemplateSpan | TokenExpression | KeywordExpression | ObjectExpression | BaseExpression | IdentifierExpression | GenericSpecializationExpression | DefaultMatchExpression | AssignmentStatement | StatementList | StatementBlock | FunctionBlock | BreakLoopStatement | ContinueLoopStatement | DisposeStatement | RunStatement | TryStatement | CatchClause | ErrorVariableDeclaration | FinallyClause | EmptyStatement | ErrorStatement | ImportantStatement | ExpressionStatement | EnumerationVariableList | ForStatement | IfStatement | ElseIfClauseList | ElseIfClause | ElseClause | InvalidStatement | NestedMethodDeclarationStatement | LocalVariableDeclarationStatement | LoopStatement | ReturnStatement | CaseClauseList | SwitchStatement | MatchExpressionList | CaseClause | WhileStatement | YieldStatement | TranslationParameterList | TranslationParameterClause | ConstructorTranslation | IndexerTranslationParameterClause | IndexerTranslation | TranslationTypeParameterList | TranslationTypeParameterClause | PackageMethodTranslation | TypeMethodTranslation | MethodTypeTranslation | PackageImportTranslation | QualifiedName | PackageVariableTranslation | TypeVariableOrVariantTranslation | TypeMemberTranslationList | TypeTranslation | TextLiteralTranslation | TextTemplateLiteralTranslation | VariantDeclaration | TypeParameterDeclaration | ParameterDeclaration | Argument | TagList | Tag | ModifierList | Modifier | ParameterClause | ParameterList | TypeArgumentClause | TypeArgumentList | TypeParameterClause | TypeParameterList | TypeAnnotation | Token;
@@ -6,24 +6,24 @@ export declare class SyntaxFactory {
6
6
  static packageAliasTypeDeclaration(tags: readonly tree.Tag[], modifiers: readonly tree.Modifier[], name: string, typeParameters: readonly tree.TypeParameterDeclaration[] | undefined, body: tree.AliasTypeDeclarationBody): tree.PackageAliasTypeDeclaration;
7
7
  static aliasTypeDeclarationBody(aliasedTypeSpecifier: tree.TypeSpecifier, members: readonly tree.TypeMemberDeclaration[] | undefined): tree.AliasTypeDeclarationBody;
8
8
  static packageMemberGroupDeclaration(tags: readonly tree.Tag[], modifiers: readonly tree.Modifier[], declarations: readonly tree.PackageMemberDeclaration[]): tree.PackageMemberGroupDeclaration;
9
- static packageMethodDeclaration(tags: readonly tree.Tag[], modifiers: readonly tree.Modifier[], name: string, typeParameters: readonly tree.TypeParameterDeclaration[] | undefined, parameters: readonly tree.ParameterDeclaration[], returnTypeSpecifier: tree.TypeSpecifier | undefined, body: tree.StatementBlock | undefined): tree.PackageMethodDeclaration;
9
+ static packageMethodDeclaration(tags: readonly tree.Tag[], modifiers: readonly tree.Modifier[], name: string, typeParameters: readonly tree.TypeParameterDeclaration[] | undefined, parameters: readonly tree.ParameterDeclaration[], returnTypeSpecifier: tree.TypeSpecifier | undefined, body: tree.FunctionBlock | undefined): tree.PackageMethodDeclaration;
10
10
  static packageMethodTypeDeclaration(tags: readonly tree.Tag[], modifiers: readonly tree.Modifier[], name: string, typeParameters: readonly tree.TypeParameterDeclaration[] | undefined, body: tree.MethodTypeDeclarationBody): tree.PackageMethodTypeDeclaration;
11
11
  static methodTypeDeclarationBody(parameters: readonly tree.ParameterDeclaration[], returnTypeSpecifier: tree.TypeSpecifier | undefined): tree.MethodTypeDeclarationBody;
12
12
  static packageStructuredTypeDeclaration(tags: readonly tree.Tag[], modifiers: readonly tree.Modifier[], name: string, typeParameters: readonly tree.TypeParameterDeclaration[] | undefined, body: tree.StructuredTypeDeclarationBody): tree.PackageStructuredTypeDeclaration;
13
13
  static structuredTypeDeclarationBody(structuredTypeKind: tree.StructuredTypeKindKeyword['keywordKind'], baseTypes: readonly tree.NamedTypeSpecifier[] | undefined, members: readonly tree.TypeMemberDeclaration[]): tree.StructuredTypeDeclarationBody;
14
14
  static packageVariableDeclaration(tags: readonly tree.Tag[], modifiers: readonly tree.Modifier[], name: string, typeSpecifier: tree.TypeSpecifier | undefined, initializer?: tree.Expression): tree.PackageVariableDeclaration;
15
- static packageVariableGetterDeclaration(tags: readonly tree.Tag[], modifiers: readonly tree.Modifier[], name: string, typeSpecifier: tree.TypeSpecifier, body: tree.StatementBlock | undefined): tree.PackageVariableGetterDeclaration;
16
- static packageVariableSetterDeclaration(tags: readonly tree.Tag[], modifiers: readonly tree.Modifier[], name: string, body: tree.StatementBlock | undefined): tree.PackageVariableSetterDeclaration;
15
+ static packageVariableGetterDeclaration(tags: readonly tree.Tag[], modifiers: readonly tree.Modifier[], name: string, typeSpecifier: tree.TypeSpecifier, body: tree.FunctionBlock | undefined): tree.PackageVariableGetterDeclaration;
16
+ static packageVariableSetterDeclaration(tags: readonly tree.Tag[], modifiers: readonly tree.Modifier[], name: string, body: tree.FunctionBlock | undefined): tree.PackageVariableSetterDeclaration;
17
17
  static packageVariantTypeDeclaration(tags: readonly tree.Tag[], modifiers: readonly tree.Modifier[], name: string, typeParameters: readonly tree.TypeParameterDeclaration[] | undefined, body: tree.VariantTypeDeclarationBody): tree.PackageVariantTypeDeclaration;
18
18
  static variantTypeDeclarationBody(members: readonly tree.TypeMemberDeclaration[]): tree.VariantTypeDeclarationBody;
19
19
  static typeVariableDeclaration(tags: readonly tree.Tag[], modifiers: readonly tree.Modifier[], name: string, typeSpecifier: tree.TypeSpecifier | undefined, initializer?: tree.Expression): tree.TypeVariableDeclaration;
20
- static typeVariableGetterDeclaration(tags: readonly tree.Tag[], modifiers: readonly tree.Modifier[], name: string, typeSpecifier: tree.TypeSpecifier, body: tree.StatementBlock | undefined): tree.TypeVariableGetterDeclaration;
21
- static typeVariableSetterDeclaration(tags: readonly tree.Tag[], modifiers: readonly tree.Modifier[], name: string, body: tree.StatementBlock | undefined): tree.TypeVariableSetterDeclaration;
22
- static typeMethodDeclaration(tags: readonly tree.Tag[], modifiers: readonly tree.Modifier[], name: string, typeParameters: readonly tree.TypeParameterDeclaration[] | undefined, parameters: readonly tree.ParameterDeclaration[], returnTypeSpecifier: tree.TypeSpecifier | undefined, body: tree.StatementBlock | undefined): tree.TypeMethodDeclaration;
23
- static typeConstructorDeclaration(tags: readonly tree.Tag[], modifiers: readonly tree.Modifier[], parameters: readonly tree.ParameterDeclaration[], body: tree.StatementBlock | undefined): tree.TypeConstructorDeclaration;
24
- static typeDestructorDeclaration(tags: readonly tree.Tag[], modifiers: readonly tree.Modifier[], parameters: readonly tree.ParameterDeclaration[], body: tree.StatementBlock | undefined): tree.TypeDestructorDeclaration;
25
- static typeIndexedGetterDeclaration(tags: readonly tree.Tag[], modifiers: readonly tree.Modifier[], parameters: readonly tree.ParameterDeclaration[], typeSpecifier: tree.TypeSpecifier, body: tree.StatementBlock | undefined): tree.TypeIndexedGetterDeclaration;
26
- static typeIndexedSetterDeclaration(tags: readonly tree.Tag[], modifiers: readonly tree.Modifier[], parameters: readonly tree.ParameterDeclaration[], body: tree.StatementBlock | undefined): tree.TypeIndexedSetterDeclaration;
20
+ static typeVariableGetterDeclaration(tags: readonly tree.Tag[], modifiers: readonly tree.Modifier[], name: string, typeSpecifier: tree.TypeSpecifier, body: tree.FunctionBlock | undefined): tree.TypeVariableGetterDeclaration;
21
+ static typeVariableSetterDeclaration(tags: readonly tree.Tag[], modifiers: readonly tree.Modifier[], name: string, body: tree.FunctionBlock | undefined): tree.TypeVariableSetterDeclaration;
22
+ static typeMethodDeclaration(tags: readonly tree.Tag[], modifiers: readonly tree.Modifier[], name: string, typeParameters: readonly tree.TypeParameterDeclaration[] | undefined, parameters: readonly tree.ParameterDeclaration[], returnTypeSpecifier: tree.TypeSpecifier | undefined, body: tree.FunctionBlock | undefined): tree.TypeMethodDeclaration;
23
+ static typeConstructorDeclaration(tags: readonly tree.Tag[], modifiers: readonly tree.Modifier[], parameters: readonly tree.ParameterDeclaration[], body: tree.FunctionBlock | undefined): tree.TypeConstructorDeclaration;
24
+ static typeDestructorDeclaration(tags: readonly tree.Tag[], modifiers: readonly tree.Modifier[], parameters: readonly tree.ParameterDeclaration[], body: tree.FunctionBlock | undefined): tree.TypeDestructorDeclaration;
25
+ static typeIndexedGetterDeclaration(tags: readonly tree.Tag[], modifiers: readonly tree.Modifier[], parameters: readonly tree.ParameterDeclaration[], typeSpecifier: tree.TypeSpecifier, body: tree.FunctionBlock | undefined): tree.TypeIndexedGetterDeclaration;
26
+ static typeIndexedSetterDeclaration(tags: readonly tree.Tag[], modifiers: readonly tree.Modifier[], parameters: readonly tree.ParameterDeclaration[], body: tree.FunctionBlock | undefined): tree.TypeIndexedSetterDeclaration;
27
27
  static typeMemberGroupDeclaration(tags: readonly tree.Tag[], modifiers: readonly tree.Modifier[], members: readonly tree.TypeMemberDeclaration[]): tree.TypeMemberGroupDeclaration;
28
28
  static typeMemberDeclarationBlock(members: readonly tree.TypeMemberDeclaration[]): tree.TypeMemberDeclarationBlock;
29
29
  static variantDeclaration(tags: readonly tree.Tag[], modifiers: readonly tree.Modifier[], name: string, value?: tree.Expression): tree.VariantDeclaration;
@@ -43,6 +43,8 @@ export declare class SyntaxFactory {
43
43
  static typeArgumentClause(typeArguments: readonly tree.TypeSpecifier[]): tree.TypeArgumentClause;
44
44
  static typeAnnotation(typeSpecifier: tree.TypeSpecifier): tree.TypeAnnotation;
45
45
  static statementBlock(statements: readonly tree.Statement[]): tree.StatementBlock;
46
+ static functionExpressionBlock(expression: tree.Expression): tree.FunctionBlock;
47
+ static functionStatementBlock(statements: readonly tree.Statement[]): tree.FunctionBlock;
46
48
  static noneLiteral(): tree.KeywordExpression;
47
49
  static integerLiteral(value: number | string): tree.TokenExpression;
48
50
  static translationsDeclaration(translations: readonly tree.TopLevelTranslation[]): tree.TranslationsDeclaration;
@@ -77,6 +77,7 @@ export declare class SyntaxToCode {
77
77
  private writeExpression;
78
78
  private writeDeclarationBody;
79
79
  private writeStatementBlock;
80
+ private writeFunctionBlock;
80
81
  private writeTranslationsDeclaration;
81
82
  private writePackageImportTranslation;
82
83
  private writePackageVariableTranslation;