Changeset 3b0bc16 for src/AST/Convert.cpp
- Timestamp:
- Feb 1, 2022, 8:22:12 PM (3 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, master, pthread-emulation, qualifiedEnum
- Children:
- fde0a58
- Parents:
- 729c991
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Convert.cpp
r729c991 r3b0bc16 9 9 // Author : Thierry Delisle 10 10 // Created On : Thu May 09 15::37::05 2019 11 // Last Modified By : Andrew Beach12 // Last Modified On : Wed Jul 14 16:15:00 202113 // Update Count : 3 711 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Feb 1 16:27:15 2022 13 // Update Count : 39 14 14 // 15 15 … … 393 393 auto stmt = new IfStmt( 394 394 get<Expression>().accept1( node->cond ), 395 get<Statement>().accept1( node->then Part),396 get<Statement>().accept1( node->else Part),395 get<Statement>().accept1( node->then ), 396 get<Statement>().accept1( node->else_ ), 397 397 get<Statement>().acceptL( node->inits ) 398 398 ); … … 419 419 } 420 420 421 const ast::Stmt * visit( const ast::While Stmt * node ) override final {421 const ast::Stmt * visit( const ast::WhileDoStmt * node ) override final { 422 422 if ( inCache( node ) ) return nullptr; 423 423 auto inits = get<Statement>().acceptL( node->inits ); 424 auto stmt = new While Stmt(424 auto stmt = new WhileDoStmt( 425 425 get<Expression>().accept1( node->cond ), 426 426 get<Statement>().accept1( node->body ), … … 1872 1872 old->location, 1873 1873 GET_ACCEPT_1(condition, Expr), 1874 GET_ACCEPT_1(then Part, Stmt),1875 GET_ACCEPT_1(else Part, Stmt),1874 GET_ACCEPT_1(then, Stmt), 1875 GET_ACCEPT_1(else_, Stmt), 1876 1876 GET_ACCEPT_V(initialization, Stmt), 1877 1877 GET_LABELS_V(old->labels) … … 1902 1902 } 1903 1903 1904 virtual void visit( const While Stmt * old ) override final {1904 virtual void visit( const WhileDoStmt * old ) override final { 1905 1905 if ( inCache( old ) ) return; 1906 this->node = new ast::While Stmt(1906 this->node = new ast::WhileDoStmt( 1907 1907 old->location, 1908 1908 GET_ACCEPT_1(condition, Expr),
Note: See TracChangeset
for help on using the changeset viewer.