Changes in src/AST/Convert.cpp [ff3b0249:1387ea0]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Convert.cpp
rff3b0249 r1387ea0 9 9 // Author : Thierry Delisle 10 10 // Created On : Thu May 09 15::37::05 2019 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Wed Feb 2 13:19:22 202213 // Update Count : 4111 // Last Modified By : Andrew Beach 12 // Last Modified On : Wed Jul 14 16:15:00 2021 13 // Update Count : 37 14 14 // 15 15 … … 393 393 auto stmt = new IfStmt( 394 394 get<Expression>().accept1( node->cond ), 395 get<Statement>().accept1( node->then ),396 get<Statement>().accept1( node->else _),395 get<Statement>().accept1( node->thenPart ), 396 get<Statement>().accept1( node->elsePart ), 397 397 get<Statement>().acceptL( node->inits ) 398 398 ); … … 419 419 } 420 420 421 const ast::Stmt * visit( const ast::While DoStmt * node ) override final {421 const ast::Stmt * visit( const ast::WhileStmt * node ) override final { 422 422 if ( inCache( node ) ) return nullptr; 423 423 auto inits = get<Statement>().acceptL( node->inits ); 424 auto stmt = new While DoStmt(424 auto stmt = new WhileStmt( 425 425 get<Expression>().accept1( node->cond ), 426 426 get<Statement>().accept1( node->body ), 427 get<Statement>().accept1( node->else_ ),428 427 inits, 429 428 node->isDoWhile … … 438 437 get<Expression>().accept1( node->cond ), 439 438 get<Expression>().accept1( node->inc ), 440 get<Statement>().accept1( node->body ), 441 get<Statement>().accept1( node->else_ ) 439 get<Statement>().accept1( node->body ) 442 440 ); 443 441 return stmtPostamble( stmt, node ); … … 1874 1872 old->location, 1875 1873 GET_ACCEPT_1(condition, Expr), 1876 GET_ACCEPT_1(then , Stmt),1877 GET_ACCEPT_1(else _, Stmt),1874 GET_ACCEPT_1(thenPart, Stmt), 1875 GET_ACCEPT_1(elsePart, Stmt), 1878 1876 GET_ACCEPT_V(initialization, Stmt), 1879 1877 GET_LABELS_V(old->labels) … … 1904 1902 } 1905 1903 1906 virtual void visit( const While DoStmt * old ) override final {1904 virtual void visit( const WhileStmt * old ) override final { 1907 1905 if ( inCache( old ) ) return; 1908 this->node = new ast::While DoStmt(1906 this->node = new ast::WhileStmt( 1909 1907 old->location, 1910 1908 GET_ACCEPT_1(condition, Expr), 1911 1909 GET_ACCEPT_1(body, Stmt), 1912 GET_ACCEPT_1(else_, Stmt),1913 1910 GET_ACCEPT_V(initialization, Stmt), 1914 1911 old->isDoWhile, … … 1926 1923 GET_ACCEPT_1(increment, Expr), 1927 1924 GET_ACCEPT_1(body, Stmt), 1928 GET_ACCEPT_1(else_, Stmt),1929 1925 GET_LABELS_V(old->labels) 1930 1926 );
Note:
See TracChangeset
for help on using the changeset viewer.