Changes in src/AST/Print.cpp [3d9d017:cf3da24]
- File:
-
- 1 edited
-
src/AST/Print.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Print.cpp
r3d9d017 rcf3da24 934 934 } 935 935 936 virtual const ast::Stmt * visit( const ast::CoforStmt * node ) override final {937 os << "Cofor Statement" << endl;938 939 if ( ! node->inits.empty() ) {940 os << indent << "... initialization:" << endl;941 ++indent;942 for ( const ast::Stmt * stmt : node->inits ) {943 os << indent+1;944 safe_print( stmt );945 }946 --indent;947 }948 949 if ( node->cond ) {950 os << indent << "... condition:" << endl;951 ++indent;952 os << indent;953 node->cond->accept( *this );954 --indent;955 }956 957 if ( node->inc ) {958 os << indent << "... increment:" << endl;959 ++indent;960 os << indent;961 node->inc->accept( *this );962 --indent;963 }964 965 if ( node->body ) {966 os << indent << "... with body:" << endl;967 ++indent;968 os << indent;969 node->body->accept( *this );970 --indent;971 }972 os << endl;973 print( node->labels );974 975 return node;976 }977 978 936 virtual const ast::Expr * visit( const ast::ApplicationExpr * node ) override final { 979 937 ++indent;
Note:
See TracChangeset
for help on using the changeset viewer.