@@ -5153,6 +5153,72 @@ export class BuiltinBitCastExpressionAST extends ExpressionAST {
51535153 }
51545154}
51555155
5156+ /**
5157+ * BuiltinOffsetofExpressionAST node.
5158+ */
5159+ export class BuiltinOffsetofExpressionAST extends ExpressionAST {
5160+ /**
5161+ * Traverse this node using the given visitor.
5162+ * @param visitor the visitor.
5163+ * @param context the context.
5164+ * @returns the result of the visit.
5165+ */
5166+ accept < Context , Result > (
5167+ visitor : ASTVisitor < Context , Result > ,
5168+ context : Context ,
5169+ ) : Result {
5170+ return visitor . visitBuiltinOffsetofExpression ( this , context ) ;
5171+ }
5172+
5173+ /**
5174+ * Returns the location of the offsetof token in this node
5175+ */
5176+ getOffsetofToken ( ) : Token | undefined {
5177+ return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 0 ) , this . parser ) ;
5178+ }
5179+
5180+ /**
5181+ * Returns the location of the lparen token in this node
5182+ */
5183+ getLparenToken ( ) : Token | undefined {
5184+ return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 1 ) , this . parser ) ;
5185+ }
5186+
5187+ /**
5188+ * Returns the typeId of this node
5189+ */
5190+ getTypeId ( ) : TypeIdAST | undefined {
5191+ return AST . from < TypeIdAST > (
5192+ cxx . getASTSlot ( this . getHandle ( ) , 2 ) ,
5193+ this . parser ,
5194+ ) ;
5195+ }
5196+
5197+ /**
5198+ * Returns the location of the comma token in this node
5199+ */
5200+ getCommaToken ( ) : Token | undefined {
5201+ return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 3 ) , this . parser ) ;
5202+ }
5203+
5204+ /**
5205+ * Returns the expression of this node
5206+ */
5207+ getExpression ( ) : ExpressionAST | undefined {
5208+ return AST . from < ExpressionAST > (
5209+ cxx . getASTSlot ( this . getHandle ( ) , 4 ) ,
5210+ this . parser ,
5211+ ) ;
5212+ }
5213+
5214+ /**
5215+ * Returns the location of the rparen token in this node
5216+ */
5217+ getRparenToken ( ) : Token | undefined {
5218+ return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 5 ) , this . parser ) ;
5219+ }
5220+ }
5221+
51565222/**
51575223 * TypeidExpressionAST node.
51585224 */
@@ -12703,6 +12769,7 @@ const AST_CONSTRUCTORS: Array<
1270312769 PostIncrExpressionAST ,
1270412770 CppCastExpressionAST ,
1270512771 BuiltinBitCastExpressionAST ,
12772+ BuiltinOffsetofExpressionAST ,
1270612773 TypeidExpressionAST ,
1270712774 TypeidOfTypeExpressionAST ,
1270812775 SpliceExpressionAST ,
0 commit comments