@@ -9698,6 +9698,31 @@ export class VolatileQualifierAST extends SpecifierAST {
96989698 }
96999699}
97009700
9701+ /**
9702+ * AtomicQualifierAST node.
9703+ */
9704+ export class AtomicQualifierAST extends SpecifierAST {
9705+ /**
9706+ * Traverse this node using the given visitor.
9707+ * @param visitor the visitor.
9708+ * @param context the context.
9709+ * @returns the result of the visit.
9710+ */
9711+ accept < Context , Result > (
9712+ visitor : ASTVisitor < Context , Result > ,
9713+ context : Context ,
9714+ ) : Result {
9715+ return visitor . visitAtomicQualifier ( this , context ) ;
9716+ }
9717+
9718+ /**
9719+ * Returns the location of the atomic token in this node
9720+ */
9721+ getAtomicToken ( ) : Token | undefined {
9722+ return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 0 ) , this . parser ) ;
9723+ }
9724+ }
9725+
97019726/**
97029727 * RestrictQualifierAST node.
97039728 */
@@ -10728,12 +10753,38 @@ export class ArrayDeclaratorChunkAST extends DeclaratorChunkAST {
1072810753 return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 0 ) , this . parser ) ;
1072910754 }
1073010755
10756+ /**
10757+ * Returns the typeQualifierList of this node
10758+ */
10759+ getTypeQualifierList ( ) : Iterable < SpecifierAST | undefined > {
10760+ let it = cxx . getASTSlot ( this . getHandle ( ) , 0 ) ;
10761+ let value : SpecifierAST | undefined ;
10762+ let done = false ;
10763+ const p = this . parser ;
10764+ function advance ( ) {
10765+ done = it === 0 ;
10766+ if ( done ) return ;
10767+ const ast = cxx . getListValue ( it ) ;
10768+ value = AST . from < SpecifierAST > ( ast , p ) ;
10769+ it = cxx . getListNext ( it ) ;
10770+ }
10771+ function next ( ) {
10772+ advance ( ) ;
10773+ return { done, value } ;
10774+ }
10775+ return {
10776+ [ Symbol . iterator ] ( ) {
10777+ return { next } ;
10778+ } ,
10779+ } ;
10780+ }
10781+
1073110782 /**
1073210783 * Returns the expression of this node
1073310784 */
1073410785 getExpression ( ) : ExpressionAST | undefined {
1073510786 return AST . from < ExpressionAST > (
10736- cxx . getASTSlot ( this . getHandle ( ) , 1 ) ,
10787+ cxx . getASTSlot ( this . getHandle ( ) , 2 ) ,
1073710788 this . parser ,
1073810789 ) ;
1073910790 }
@@ -10742,7 +10793,7 @@ export class ArrayDeclaratorChunkAST extends DeclaratorChunkAST {
1074210793 * Returns the location of the rbracket token in this node
1074310794 */
1074410795 getRbracketToken ( ) : Token | undefined {
10745- return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 2 ) , this . parser ) ;
10796+ return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 3 ) , this . parser ) ;
1074610797 }
1074710798
1074810799 /**
@@ -13144,6 +13195,7 @@ const AST_CONSTRUCTORS: Array<
1314413195 PlaceholderTypeSpecifierAST ,
1314513196 ConstQualifierAST ,
1314613197 VolatileQualifierAST ,
13198+ AtomicQualifierAST ,
1314713199 RestrictQualifierAST ,
1314813200 EnumSpecifierAST ,
1314913201 ClassSpecifierAST ,
0 commit comments