@@ -3854,6 +3854,58 @@ export class UserDefinedStringLiteralExpressionAST extends ExpressionAST {
38543854 }
38553855}
38563856
3857+ /**
3858+ * ObjectLiteralExpressionAST node.
3859+ */
3860+ export class ObjectLiteralExpressionAST extends ExpressionAST {
3861+ /**
3862+ * Traverse this node using the given visitor.
3863+ * @param visitor the visitor.
3864+ * @param context the context.
3865+ * @returns the result of the visit.
3866+ */
3867+ accept < Context , Result > (
3868+ visitor : ASTVisitor < Context , Result > ,
3869+ context : Context ,
3870+ ) : Result {
3871+ return visitor . visitObjectLiteralExpression ( this , context ) ;
3872+ }
3873+
3874+ /**
3875+ * Returns the location of the lparen token in this node
3876+ */
3877+ getLparenToken ( ) : Token | undefined {
3878+ return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 0 ) , this . parser ) ;
3879+ }
3880+
3881+ /**
3882+ * Returns the typeId of this node
3883+ */
3884+ getTypeId ( ) : TypeIdAST | undefined {
3885+ return AST . from < TypeIdAST > (
3886+ cxx . getASTSlot ( this . getHandle ( ) , 1 ) ,
3887+ this . parser ,
3888+ ) ;
3889+ }
3890+
3891+ /**
3892+ * Returns the location of the rparen token in this node
3893+ */
3894+ getRparenToken ( ) : Token | undefined {
3895+ return Token . from ( cxx . getASTSlot ( this . getHandle ( ) , 2 ) , this . parser ) ;
3896+ }
3897+
3898+ /**
3899+ * Returns the bracedInitList of this node
3900+ */
3901+ getBracedInitList ( ) : BracedInitListAST | undefined {
3902+ return AST . from < BracedInitListAST > (
3903+ cxx . getASTSlot ( this . getHandle ( ) , 3 ) ,
3904+ this . parser ,
3905+ ) ;
3906+ }
3907+ }
3908+
38573909/**
38583910 * ThisExpressionAST node.
38593911 */
@@ -12976,6 +13028,7 @@ const AST_CONSTRUCTORS: Array<
1297613028 NullptrLiteralExpressionAST ,
1297713029 StringLiteralExpressionAST ,
1297813030 UserDefinedStringLiteralExpressionAST ,
13031+ ObjectLiteralExpressionAST ,
1297913032 ThisExpressionAST ,
1298013033 NestedStatementExpressionAST ,
1298113034 NestedExpressionAST ,
0 commit comments