@@ -191,6 +191,10 @@ export class EnumeratorAST extends AST {
191
191
getExpression ( ) : ExpressionAST | undefined {
192
192
return AST . from < ExpressionAST > ( cxx . getASTSlot ( this . getHandle ( ) , 3 ) , this . parser ) ;
193
193
}
194
+ getIdentifier ( ) : string | undefined {
195
+ const slot = cxx . getASTSlot ( this . getHandle ( ) , 4 ) ;
196
+ return cxx . getIdentifierValue ( slot ) ;
197
+ }
194
198
}
195
199
196
200
export class DeclaratorAST extends AST {
@@ -239,6 +243,9 @@ export class BaseSpecifierAST extends AST {
239
243
getName ( ) : NameAST | undefined {
240
244
return AST . from < NameAST > ( cxx . getASTSlot ( this . getHandle ( ) , 1 ) , this . parser ) ;
241
245
}
246
+ getIsVirtual ( ) : boolean {
247
+ return cxx . getASTSlot ( this . getHandle ( ) , 2 ) !== 0 ;
248
+ }
242
249
}
243
250
244
251
export class BaseClauseAST extends AST {
@@ -312,6 +319,9 @@ export class ParameterDeclarationClauseAST extends AST {
312
319
getEllipsisToken ( ) : Token | undefined {
313
320
return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 2 ) , this . parser ) ;
314
321
}
322
+ getIsVariadic ( ) : boolean {
323
+ return cxx . getASTSlot ( this . getHandle ( ) , 3 ) !== 0 ;
324
+ }
315
325
}
316
326
317
327
export class ParametersAndQualifiersAST extends AST {
@@ -605,6 +615,10 @@ export class DesignatorAST extends AST {
605
615
getIdentifierToken ( ) : Token | undefined {
606
616
return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 1 ) , this . parser ) ;
607
617
}
618
+ getIdentifier ( ) : string | undefined {
619
+ const slot = cxx . getASTSlot ( this . getHandle ( ) , 2 ) ;
620
+ return cxx . getIdentifierValue ( slot ) ;
621
+ }
608
622
}
609
623
610
624
export class NewPlacementAST extends AST {
@@ -697,6 +711,10 @@ export class CharLiteralExpressionAST extends ExpressionAST {
697
711
getLiteralToken ( ) : Token | undefined {
698
712
return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 0 ) , this . parser ) ;
699
713
}
714
+ getLiteral ( ) : string | undefined {
715
+ const slot = cxx . getASTSlot ( this . getHandle ( ) , 1 ) ;
716
+ return cxx . getLiteralValue ( slot ) ;
717
+ }
700
718
}
701
719
702
720
export class BoolLiteralExpressionAST extends ExpressionAST {
@@ -706,6 +724,9 @@ export class BoolLiteralExpressionAST extends ExpressionAST {
706
724
getLiteralToken ( ) : Token | undefined {
707
725
return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 0 ) , this . parser ) ;
708
726
}
727
+ getIsTrue ( ) : boolean {
728
+ return cxx . getASTSlot ( this . getHandle ( ) , 1 ) !== 0 ;
729
+ }
709
730
}
710
731
711
732
export class IntLiteralExpressionAST extends ExpressionAST {
@@ -715,6 +736,10 @@ export class IntLiteralExpressionAST extends ExpressionAST {
715
736
getLiteralToken ( ) : Token | undefined {
716
737
return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 0 ) , this . parser ) ;
717
738
}
739
+ getLiteral ( ) : string | undefined {
740
+ const slot = cxx . getASTSlot ( this . getHandle ( ) , 1 ) ;
741
+ return cxx . getLiteralValue ( slot ) ;
742
+ }
718
743
}
719
744
720
745
export class FloatLiteralExpressionAST extends ExpressionAST {
@@ -724,6 +749,10 @@ export class FloatLiteralExpressionAST extends ExpressionAST {
724
749
getLiteralToken ( ) : Token | undefined {
725
750
return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 0 ) , this . parser ) ;
726
751
}
752
+ getLiteral ( ) : string | undefined {
753
+ const slot = cxx . getASTSlot ( this . getHandle ( ) , 1 ) ;
754
+ return cxx . getLiteralValue ( slot ) ;
755
+ }
727
756
}
728
757
729
758
export class NullptrLiteralExpressionAST extends ExpressionAST {
@@ -742,6 +771,10 @@ export class StringLiteralExpressionAST extends ExpressionAST {
742
771
getLiteralToken ( ) : Token | undefined {
743
772
return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 0 ) , this . parser ) ;
744
773
}
774
+ getLiteral ( ) : string | undefined {
775
+ const slot = cxx . getASTSlot ( this . getHandle ( ) , 1 ) ;
776
+ return cxx . getLiteralValue ( slot ) ;
777
+ }
745
778
}
746
779
747
780
export class UserDefinedStringLiteralExpressionAST extends ExpressionAST {
@@ -751,6 +784,10 @@ export class UserDefinedStringLiteralExpressionAST extends ExpressionAST {
751
784
getLiteralToken ( ) : Token | undefined {
752
785
return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 0 ) , this . parser ) ;
753
786
}
787
+ getLiteral ( ) : string | undefined {
788
+ const slot = cxx . getASTSlot ( this . getHandle ( ) , 1 ) ;
789
+ return cxx . getLiteralValue ( slot ) ;
790
+ }
754
791
}
755
792
756
793
export class IdExpressionAST extends ExpressionAST {
@@ -945,6 +982,10 @@ export class SizeofPackExpressionAST extends ExpressionAST {
945
982
getRparenToken ( ) : Token | undefined {
946
983
return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 4 ) , this . parser ) ;
947
984
}
985
+ getIdentifier ( ) : string | undefined {
986
+ const slot = cxx . getASTSlot ( this . getHandle ( ) , 5 ) ;
987
+ return cxx . getIdentifierValue ( slot ) ;
988
+ }
948
989
}
949
990
950
991
export class TypeidExpressionAST extends ExpressionAST {
@@ -1542,6 +1583,10 @@ export class SimpleLambdaCaptureAST extends LambdaCaptureAST {
1542
1583
getEllipsisToken ( ) : Token | undefined {
1543
1584
return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 1 ) , this . parser ) ;
1544
1585
}
1586
+ getIdentifier ( ) : string | undefined {
1587
+ const slot = cxx . getASTSlot ( this . getHandle ( ) , 2 ) ;
1588
+ return cxx . getIdentifierValue ( slot ) ;
1589
+ }
1545
1590
}
1546
1591
1547
1592
export class RefLambdaCaptureAST extends LambdaCaptureAST {
@@ -1557,6 +1602,10 @@ export class RefLambdaCaptureAST extends LambdaCaptureAST {
1557
1602
getEllipsisToken ( ) : Token | undefined {
1558
1603
return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 2 ) , this . parser ) ;
1559
1604
}
1605
+ getIdentifier ( ) : string | undefined {
1606
+ const slot = cxx . getASTSlot ( this . getHandle ( ) , 3 ) ;
1607
+ return cxx . getIdentifierValue ( slot ) ;
1608
+ }
1560
1609
}
1561
1610
1562
1611
export class RefInitLambdaCaptureAST extends LambdaCaptureAST {
@@ -1575,6 +1624,10 @@ export class RefInitLambdaCaptureAST extends LambdaCaptureAST {
1575
1624
getInitializer ( ) : ExpressionAST | undefined {
1576
1625
return AST . from < ExpressionAST > ( cxx . getASTSlot ( this . getHandle ( ) , 3 ) , this . parser ) ;
1577
1626
}
1627
+ getIdentifier ( ) : string | undefined {
1628
+ const slot = cxx . getASTSlot ( this . getHandle ( ) , 4 ) ;
1629
+ return cxx . getIdentifierValue ( slot ) ;
1630
+ }
1578
1631
}
1579
1632
1580
1633
export class InitLambdaCaptureAST extends LambdaCaptureAST {
@@ -1590,6 +1643,10 @@ export class InitLambdaCaptureAST extends LambdaCaptureAST {
1590
1643
getInitializer ( ) : ExpressionAST | undefined {
1591
1644
return AST . from < ExpressionAST > ( cxx . getASTSlot ( this . getHandle ( ) , 2 ) , this . parser ) ;
1592
1645
}
1646
+ getIdentifier ( ) : string | undefined {
1647
+ const slot = cxx . getASTSlot ( this . getHandle ( ) , 3 ) ;
1648
+ return cxx . getIdentifierValue ( slot ) ;
1649
+ }
1593
1650
}
1594
1651
1595
1652
export class NewParenInitializerAST extends NewInitializerAST {
@@ -1752,6 +1809,10 @@ export class LabeledStatementAST extends StatementAST {
1752
1809
getStatement ( ) : StatementAST | undefined {
1753
1810
return AST . from < StatementAST > ( cxx . getASTSlot ( this . getHandle ( ) , 2 ) , this . parser ) ;
1754
1811
}
1812
+ getIdentifier ( ) : string | undefined {
1813
+ const slot = cxx . getASTSlot ( this . getHandle ( ) , 3 ) ;
1814
+ return cxx . getIdentifierValue ( slot ) ;
1815
+ }
1755
1816
}
1756
1817
1757
1818
export class CaseStatementAST extends StatementAST {
@@ -2030,6 +2091,10 @@ export class GotoStatementAST extends StatementAST {
2030
2091
getSemicolonToken ( ) : Token | undefined {
2031
2092
return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 2 ) , this . parser ) ;
2032
2093
}
2094
+ getIdentifier ( ) : string | undefined {
2095
+ const slot = cxx . getASTSlot ( this . getHandle ( ) , 3 ) ;
2096
+ return cxx . getIdentifierValue ( slot ) ;
2097
+ }
2033
2098
}
2034
2099
2035
2100
export class CoroutineReturnStatementAST extends StatementAST {
@@ -2161,6 +2226,10 @@ export class AliasDeclarationAST extends DeclarationAST {
2161
2226
getSemicolonToken ( ) : Token | undefined {
2162
2227
return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 5 ) , this . parser ) ;
2163
2228
}
2229
+ getIdentifier ( ) : string | undefined {
2230
+ const slot = cxx . getASTSlot ( this . getHandle ( ) , 6 ) ;
2231
+ return cxx . getIdentifierValue ( slot ) ;
2232
+ }
2164
2233
}
2165
2234
2166
2235
export class SimpleDeclarationAST extends DeclarationAST {
@@ -2245,11 +2314,15 @@ export class StaticAssertDeclarationAST extends DeclarationAST {
2245
2314
getLiteralToken ( ) : Token | undefined {
2246
2315
return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 4 ) , this . parser ) ;
2247
2316
}
2317
+ getLiteral ( ) : string | undefined {
2318
+ const slot = cxx . getASTSlot ( this . getHandle ( ) , 5 ) ;
2319
+ return cxx . getLiteralValue ( slot ) ;
2320
+ }
2248
2321
getRparenToken ( ) : Token | undefined {
2249
- return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 5 ) , this . parser ) ;
2322
+ return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 6 ) , this . parser ) ;
2250
2323
}
2251
2324
getSemicolonToken ( ) : Token | undefined {
2252
- return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 6 ) , this . parser ) ;
2325
+ return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 7 ) , this . parser ) ;
2253
2326
}
2254
2327
}
2255
2328
@@ -2318,6 +2391,13 @@ export class NestedNamespaceSpecifierAST extends DeclarationAST {
2318
2391
getScopeToken ( ) : Token | undefined {
2319
2392
return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 2 ) , this . parser ) ;
2320
2393
}
2394
+ getNamespaceName ( ) : string | undefined {
2395
+ const slot = cxx . getASTSlot ( this . getHandle ( ) , 3 ) ;
2396
+ return cxx . getIdentifierValue ( slot ) ;
2397
+ }
2398
+ getIsInline ( ) : boolean {
2399
+ return cxx . getASTSlot ( this . getHandle ( ) , 4 ) !== 0 ;
2400
+ }
2321
2401
}
2322
2402
2323
2403
export class NamespaceDefinitionAST extends DeclarationAST {
@@ -2359,6 +2439,13 @@ export class NamespaceDefinitionAST extends DeclarationAST {
2359
2439
getRbraceToken ( ) : Token | undefined {
2360
2440
return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 8 ) , this . parser ) ;
2361
2441
}
2442
+ getNamespaceName ( ) : string | undefined {
2443
+ const slot = cxx . getASTSlot ( this . getHandle ( ) , 9 ) ;
2444
+ return cxx . getIdentifierValue ( slot ) ;
2445
+ }
2446
+ getIsInline ( ) : boolean {
2447
+ return cxx . getASTSlot ( this . getHandle ( ) , 10 ) !== 0 ;
2448
+ }
2362
2449
}
2363
2450
2364
2451
export class NamespaceAliasDefinitionAST extends DeclarationAST {
@@ -2383,6 +2470,10 @@ export class NamespaceAliasDefinitionAST extends DeclarationAST {
2383
2470
getSemicolonToken ( ) : Token | undefined {
2384
2471
return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 5 ) , this . parser ) ;
2385
2472
}
2473
+ getIdentifier ( ) : string | undefined {
2474
+ const slot = cxx . getASTSlot ( this . getHandle ( ) , 6 ) ;
2475
+ return cxx . getIdentifierValue ( slot ) ;
2476
+ }
2386
2477
}
2387
2478
2388
2479
export class UsingDirectiveAST extends DeclarationAST {
@@ -2467,6 +2558,10 @@ export class AsmDeclarationAST extends DeclarationAST {
2467
2558
getSemicolonToken ( ) : Token | undefined {
2468
2559
return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 5 ) , this . parser ) ;
2469
2560
}
2561
+ getLiteral ( ) : string | undefined {
2562
+ const slot = cxx . getASTSlot ( this . getHandle ( ) , 6 ) ;
2563
+ return cxx . getLiteralValue ( slot ) ;
2564
+ }
2470
2565
}
2471
2566
2472
2567
export class ExportDeclarationAST extends DeclarationAST {
@@ -2566,6 +2661,10 @@ export class TypenameTypeParameterAST extends DeclarationAST {
2566
2661
getTypeId ( ) : TypeIdAST | undefined {
2567
2662
return AST . from < TypeIdAST > ( cxx . getASTSlot ( this . getHandle ( ) , 4 ) , this . parser ) ;
2568
2663
}
2664
+ getIdentifier ( ) : string | undefined {
2665
+ const slot = cxx . getASTSlot ( this . getHandle ( ) , 5 ) ;
2666
+ return cxx . getIdentifierValue ( slot ) ;
2667
+ }
2569
2668
}
2570
2669
2571
2670
export class TemplateTypeParameterAST extends DeclarationAST {
@@ -2601,6 +2700,10 @@ export class TemplateTypeParameterAST extends DeclarationAST {
2601
2700
getName ( ) : NameAST | undefined {
2602
2701
return AST . from < NameAST > ( cxx . getASTSlot ( this . getHandle ( ) , 8 ) , this . parser ) ;
2603
2702
}
2703
+ getIdentifier ( ) : string | undefined {
2704
+ const slot = cxx . getASTSlot ( this . getHandle ( ) , 9 ) ;
2705
+ return cxx . getIdentifierValue ( slot ) ;
2706
+ }
2604
2707
}
2605
2708
2606
2709
export class TemplatePackTypeParameterAST extends DeclarationAST {
@@ -2630,6 +2733,10 @@ export class TemplatePackTypeParameterAST extends DeclarationAST {
2630
2733
getIdentifierToken ( ) : Token | undefined {
2631
2734
return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 6 ) , this . parser ) ;
2632
2735
}
2736
+ getIdentifier ( ) : string | undefined {
2737
+ const slot = cxx . getASTSlot ( this . getHandle ( ) , 7 ) ;
2738
+ return cxx . getIdentifierValue ( slot ) ;
2739
+ }
2633
2740
}
2634
2741
2635
2742
export class DeductionGuideAST extends DeclarationAST {
@@ -2660,6 +2767,10 @@ export class DeductionGuideAST extends DeclarationAST {
2660
2767
getSemicolonToken ( ) : Token | undefined {
2661
2768
return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 7 ) , this . parser ) ;
2662
2769
}
2770
+ getIdentifier ( ) : string | undefined {
2771
+ const slot = cxx . getASTSlot ( this . getHandle ( ) , 8 ) ;
2772
+ return cxx . getIdentifierValue ( slot ) ;
2773
+ }
2663
2774
}
2664
2775
2665
2776
export class ExplicitInstantiationAST extends DeclarationAST {
@@ -2723,6 +2834,10 @@ export class LinkageSpecificationAST extends DeclarationAST {
2723
2834
getRbraceToken ( ) : Token | undefined {
2724
2835
return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 4 ) , this . parser ) ;
2725
2836
}
2837
+ getStringLiteral ( ) : string | undefined {
2838
+ const slot = cxx . getASTSlot ( this . getHandle ( ) , 5 ) ;
2839
+ return cxx . getLiteralValue ( slot ) ;
2840
+ }
2726
2841
}
2727
2842
2728
2843
export class SimpleNameAST extends NameAST {
@@ -2732,6 +2847,10 @@ export class SimpleNameAST extends NameAST {
2732
2847
getIdentifierToken ( ) : Token | undefined {
2733
2848
return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 0 ) , this . parser ) ;
2734
2849
}
2850
+ getIdentifier ( ) : string | undefined {
2851
+ const slot = cxx . getASTSlot ( this . getHandle ( ) , 1 ) ;
2852
+ return cxx . getIdentifierValue ( slot ) ;
2853
+ }
2735
2854
}
2736
2855
2737
2856
export class DestructorNameAST extends NameAST {
@@ -3212,6 +3331,9 @@ export class ClassSpecifierAST extends SpecifierAST {
3212
3331
getRbraceToken ( ) : Token | undefined {
3213
3332
return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 7 ) , this . parser ) ;
3214
3333
}
3334
+ getIsFinal ( ) : boolean {
3335
+ return cxx . getASTSlot ( this . getHandle ( ) , 8 ) !== 0 ;
3336
+ }
3215
3337
}
3216
3338
3217
3339
export class TypenameSpecifierAST extends SpecifierAST {
@@ -3242,6 +3364,10 @@ export class BitfieldDeclaratorAST extends CoreDeclaratorAST {
3242
3364
getSizeExpression ( ) : ExpressionAST | undefined {
3243
3365
return AST . from < ExpressionAST > ( cxx . getASTSlot ( this . getHandle ( ) , 2 ) , this . parser ) ;
3244
3366
}
3367
+ getIdentifier ( ) : string | undefined {
3368
+ const slot = cxx . getASTSlot ( this . getHandle ( ) , 3 ) ;
3369
+ return cxx . getIdentifierValue ( slot ) ;
3370
+ }
3245
3371
}
3246
3372
3247
3373
export class ParameterPackAST extends CoreDeclaratorAST {
@@ -3350,6 +3476,15 @@ export class FunctionDeclaratorAST extends DeclaratorModifierAST {
3350
3476
getTrailingReturnType ( ) : TrailingReturnTypeAST | undefined {
3351
3477
return AST . from < TrailingReturnTypeAST > ( cxx . getASTSlot ( this . getHandle ( ) , 1 ) , this . parser ) ;
3352
3478
}
3479
+ getIsFinal ( ) : boolean {
3480
+ return cxx . getASTSlot ( this . getHandle ( ) , 2 ) !== 0 ;
3481
+ }
3482
+ getIsOverride ( ) : boolean {
3483
+ return cxx . getASTSlot ( this . getHandle ( ) , 3 ) !== 0 ;
3484
+ }
3485
+ getIsPure ( ) : boolean {
3486
+ return cxx . getASTSlot ( this . getHandle ( ) , 4 ) !== 0 ;
3487
+ }
3353
3488
}
3354
3489
3355
3490
export class ArrayDeclaratorAST extends DeclaratorModifierAST {
@@ -3456,6 +3591,10 @@ export class AsmAttributeAST extends AttributeSpecifierAST {
3456
3591
getRparenToken ( ) : Token | undefined {
3457
3592
return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 3 ) , this . parser ) ;
3458
3593
}
3594
+ getLiteral ( ) : string | undefined {
3595
+ const slot = cxx . getASTSlot ( this . getHandle ( ) , 4 ) ;
3596
+ return cxx . getLiteralValue ( slot ) ;
3597
+ }
3459
3598
}
3460
3599
3461
3600
export class ScopedAttributeTokenAST extends AttributeTokenAST {
0 commit comments