@@ -425,6 +425,105 @@ export class TypeConstraintAST extends AST {
425
425
}
426
426
}
427
427
428
+ export class GlobalModuleFragmentAST extends AST {
429
+ accept < Context , Result > ( visitor : ASTVisitor < Context , Result > , context : Context ) : Result {
430
+ return visitor . visitGlobalModuleFragment ( this , context ) ;
431
+ }
432
+ getModuleToken ( ) : Token | undefined {
433
+ return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 0 ) , this . parser ) ;
434
+ }
435
+ getSemicolonToken ( ) : Token | undefined {
436
+ return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 1 ) , this . parser ) ;
437
+ }
438
+ * getDeclarationList ( ) : Generator < DeclarationAST | undefined > {
439
+ for ( let it = cxx . getASTSlot ( this . getHandle ( ) , 2 ) ; it ; it = cxx . getListNext ( it ) ) {
440
+ yield AST . from < DeclarationAST > ( cxx . getListValue ( it ) , this . parser ) ;
441
+ }
442
+ }
443
+ }
444
+
445
+ export class PrivateModuleFragmentAST extends AST {
446
+ accept < Context , Result > ( visitor : ASTVisitor < Context , Result > , context : Context ) : Result {
447
+ return visitor . visitPrivateModuleFragment ( this , context ) ;
448
+ }
449
+ getModuleToken ( ) : Token | undefined {
450
+ return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 0 ) , this . parser ) ;
451
+ }
452
+ getColonToken ( ) : Token | undefined {
453
+ return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 1 ) , this . parser ) ;
454
+ }
455
+ getPrivateToken ( ) : Token | undefined {
456
+ return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 2 ) , this . parser ) ;
457
+ }
458
+ getSemicolonToken ( ) : Token | undefined {
459
+ return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 3 ) , this . parser ) ;
460
+ }
461
+ * getDeclarationList ( ) : Generator < DeclarationAST | undefined > {
462
+ for ( let it = cxx . getASTSlot ( this . getHandle ( ) , 4 ) ; it ; it = cxx . getListNext ( it ) ) {
463
+ yield AST . from < DeclarationAST > ( cxx . getListValue ( it ) , this . parser ) ;
464
+ }
465
+ }
466
+ }
467
+
468
+ export class ModuleDeclarationAST extends AST {
469
+ accept < Context , Result > ( visitor : ASTVisitor < Context , Result > , context : Context ) : Result {
470
+ return visitor . visitModuleDeclaration ( this , context ) ;
471
+ }
472
+ getExportToken ( ) : Token | undefined {
473
+ return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 0 ) , this . parser ) ;
474
+ }
475
+ getModuleToken ( ) : Token | undefined {
476
+ return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 1 ) , this . parser ) ;
477
+ }
478
+ getModuleName ( ) : ModuleNameAST | undefined {
479
+ return AST . from < ModuleNameAST > ( cxx . getASTSlot ( this . getHandle ( ) , 2 ) , this . parser ) ;
480
+ }
481
+ getModulePartition ( ) : ModulePartitionAST | undefined {
482
+ return AST . from < ModulePartitionAST > ( cxx . getASTSlot ( this . getHandle ( ) , 3 ) , this . parser ) ;
483
+ }
484
+ * getAttributeList ( ) : Generator < AttributeAST | undefined > {
485
+ for ( let it = cxx . getASTSlot ( this . getHandle ( ) , 4 ) ; it ; it = cxx . getListNext ( it ) ) {
486
+ yield AST . from < AttributeAST > ( cxx . getListValue ( it ) , this . parser ) ;
487
+ }
488
+ }
489
+ getSemicolonToken ( ) : Token | undefined {
490
+ return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 5 ) , this . parser ) ;
491
+ }
492
+ }
493
+
494
+ export class ModuleNameAST extends AST {
495
+ accept < Context , Result > ( visitor : ASTVisitor < Context , Result > , context : Context ) : Result {
496
+ return visitor . visitModuleName ( this , context ) ;
497
+ }
498
+ }
499
+
500
+ export class ImportNameAST extends AST {
501
+ accept < Context , Result > ( visitor : ASTVisitor < Context , Result > , context : Context ) : Result {
502
+ return visitor . visitImportName ( this , context ) ;
503
+ }
504
+ getHeaderToken ( ) : Token | undefined {
505
+ return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 0 ) , this . parser ) ;
506
+ }
507
+ getModulePartition ( ) : ModulePartitionAST | undefined {
508
+ return AST . from < ModulePartitionAST > ( cxx . getASTSlot ( this . getHandle ( ) , 1 ) , this . parser ) ;
509
+ }
510
+ getModuleName ( ) : ModuleNameAST | undefined {
511
+ return AST . from < ModuleNameAST > ( cxx . getASTSlot ( this . getHandle ( ) , 2 ) , this . parser ) ;
512
+ }
513
+ }
514
+
515
+ export class ModulePartitionAST extends AST {
516
+ accept < Context , Result > ( visitor : ASTVisitor < Context , Result > , context : Context ) : Result {
517
+ return visitor . visitModulePartition ( this , context ) ;
518
+ }
519
+ getColonToken ( ) : Token | undefined {
520
+ return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 0 ) , this . parser ) ;
521
+ }
522
+ getModuleName ( ) : ModuleNameAST | undefined {
523
+ return AST . from < ModuleNameAST > ( cxx . getASTSlot ( this . getHandle ( ) , 1 ) , this . parser ) ;
524
+ }
525
+ }
526
+
428
527
export class SimpleRequirementAST extends RequirementAST {
429
528
accept < Context , Result > ( visitor : ASTVisitor < Context , Result > , context : Context ) : Result {
430
529
return visitor . visitSimpleRequirement ( this , context ) ;
@@ -814,6 +913,20 @@ export class ModuleUnitAST extends UnitAST {
814
913
accept < Context , Result > ( visitor : ASTVisitor < Context , Result > , context : Context ) : Result {
815
914
return visitor . visitModuleUnit ( this , context ) ;
816
915
}
916
+ getGlobalModuleFragment ( ) : GlobalModuleFragmentAST | undefined {
917
+ return AST . from < GlobalModuleFragmentAST > ( cxx . getASTSlot ( this . getHandle ( ) , 0 ) , this . parser ) ;
918
+ }
919
+ getModuleDeclaration ( ) : ModuleDeclarationAST | undefined {
920
+ return AST . from < ModuleDeclarationAST > ( cxx . getASTSlot ( this . getHandle ( ) , 1 ) , this . parser ) ;
921
+ }
922
+ * getDeclarationList ( ) : Generator < DeclarationAST | undefined > {
923
+ for ( let it = cxx . getASTSlot ( this . getHandle ( ) , 2 ) ; it ; it = cxx . getListNext ( it ) ) {
924
+ yield AST . from < DeclarationAST > ( cxx . getListValue ( it ) , this . parser ) ;
925
+ }
926
+ }
927
+ getPrivateModuleFragmentAST ( ) : PrivateModuleFragmentAST | undefined {
928
+ return AST . from < PrivateModuleFragmentAST > ( cxx . getASTSlot ( this . getHandle ( ) , 3 ) , this . parser ) ;
929
+ }
817
930
}
818
931
819
932
export class ThisExpressionAST extends ExpressionAST {
@@ -2065,12 +2178,52 @@ export class ExportDeclarationAST extends DeclarationAST {
2065
2178
accept < Context , Result > ( visitor : ASTVisitor < Context , Result > , context : Context ) : Result {
2066
2179
return visitor . visitExportDeclaration ( this , context ) ;
2067
2180
}
2181
+ getExportToken ( ) : Token | undefined {
2182
+ return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 0 ) , this . parser ) ;
2183
+ }
2184
+ getDeclaration ( ) : DeclarationAST | undefined {
2185
+ return AST . from < DeclarationAST > ( cxx . getASTSlot ( this . getHandle ( ) , 1 ) , this . parser ) ;
2186
+ }
2187
+ }
2188
+
2189
+ export class ExportCompoundDeclarationAST extends DeclarationAST {
2190
+ accept < Context , Result > ( visitor : ASTVisitor < Context , Result > , context : Context ) : Result {
2191
+ return visitor . visitExportCompoundDeclaration ( this , context ) ;
2192
+ }
2193
+ getExportToken ( ) : Token | undefined {
2194
+ return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 0 ) , this . parser ) ;
2195
+ }
2196
+ getLbraceToken ( ) : Token | undefined {
2197
+ return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 1 ) , this . parser ) ;
2198
+ }
2199
+ * getDeclarationList ( ) : Generator < DeclarationAST | undefined > {
2200
+ for ( let it = cxx . getASTSlot ( this . getHandle ( ) , 2 ) ; it ; it = cxx . getListNext ( it ) ) {
2201
+ yield AST . from < DeclarationAST > ( cxx . getListValue ( it ) , this . parser ) ;
2202
+ }
2203
+ }
2204
+ getRbraceToken ( ) : Token | undefined {
2205
+ return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 3 ) , this . parser ) ;
2206
+ }
2068
2207
}
2069
2208
2070
2209
export class ModuleImportDeclarationAST extends DeclarationAST {
2071
2210
accept < Context , Result > ( visitor : ASTVisitor < Context , Result > , context : Context ) : Result {
2072
2211
return visitor . visitModuleImportDeclaration ( this , context ) ;
2073
2212
}
2213
+ getImportToken ( ) : Token | undefined {
2214
+ return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 0 ) , this . parser ) ;
2215
+ }
2216
+ getImportName ( ) : ImportNameAST | undefined {
2217
+ return AST . from < ImportNameAST > ( cxx . getASTSlot ( this . getHandle ( ) , 1 ) , this . parser ) ;
2218
+ }
2219
+ * getAttributeList ( ) : Generator < AttributeAST | undefined > {
2220
+ for ( let it = cxx . getASTSlot ( this . getHandle ( ) , 2 ) ; it ; it = cxx . getListNext ( it ) ) {
2221
+ yield AST . from < AttributeAST > ( cxx . getListValue ( it ) , this . parser ) ;
2222
+ }
2223
+ }
2224
+ getSemicolonToken ( ) : Token | undefined {
2225
+ return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 3 ) , this . parser ) ;
2226
+ }
2074
2227
}
2075
2228
2076
2229
export class TemplateDeclarationAST extends DeclarationAST {
@@ -2906,6 +3059,12 @@ const AST_CONSTRUCTORS: Array<new (handle: number, kind: ASTKind, parser: Parser
2906
3059
CtorInitializerAST ,
2907
3060
RequirementBodyAST ,
2908
3061
TypeConstraintAST ,
3062
+ GlobalModuleFragmentAST ,
3063
+ PrivateModuleFragmentAST ,
3064
+ ModuleDeclarationAST ,
3065
+ ModuleNameAST ,
3066
+ ImportNameAST ,
3067
+ ModulePartitionAST ,
2909
3068
SimpleRequirementAST ,
2910
3069
CompoundRequirementAST ,
2911
3070
TypeRequirementAST ,
@@ -3006,6 +3165,7 @@ const AST_CONSTRUCTORS: Array<new (handle: number, kind: ASTKind, parser: Parser
3006
3165
UsingDeclarationAST ,
3007
3166
AsmDeclarationAST ,
3008
3167
ExportDeclarationAST ,
3168
+ ExportCompoundDeclarationAST ,
3009
3169
ModuleImportDeclarationAST ,
3010
3170
TemplateDeclarationAST ,
3011
3171
TypenameTypeParameterAST ,
0 commit comments