Changes in src/AST/Print.cpp [400b8be:4559b34]
- File:
-
- 1 edited
-
src/AST/Print.cpp (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Print.cpp
r400b8be r4559b34 210 210 } 211 211 212 auto ptrToEnum = dynamic_cast<const ast::EnumDecl *>(node); 213 if ( ! short_mode && ptrToEnum && ptrToEnum->base ) { 214 os << endl << indent << ".. with (enum) base" << endl; 215 ++indent; 216 ptrToEnum->base->accept( *this ); 217 --indent; 218 } 219 212 220 os << endl; 213 221 } … … 589 597 590 598 ++indent; 591 for ( const ast:: CaseClause * stmt : node->cases ) {599 for ( const ast::Stmt * stmt : node->stmts ) { 592 600 stmt->accept( *this ); 593 601 } … … 597 605 } 598 606 599 virtual const ast:: CaseClause * visit( const ast::CaseClause* node ) override final {607 virtual const ast::Stmt * visit( const ast::CaseStmt * node ) override final { 600 608 if ( node->isDefault() ) { 601 609 os << indent << "Default "; … … 679 687 680 688 os << indent-1 << "... and handlers:" << endl; 681 for ( const ast::Catch Clause* stmt : node->handlers ) {689 for ( const ast::CatchStmt * stmt : node->handlers ) { 682 690 os << indent; 683 691 stmt->accept( *this ); … … 693 701 } 694 702 695 virtual const ast:: CatchClause * visit( const ast::CatchClause* node ) override final {703 virtual const ast::Stmt * visit( const ast::CatchStmt * node ) override final { 696 704 os << "Catch "; 697 705 switch ( node->kind ) { … … 718 726 } 719 727 720 virtual const ast:: FinallyClause * visit( const ast::FinallyClause* node ) override final {728 virtual const ast::Stmt * visit( const ast::FinallyStmt * node ) override final { 721 729 os << "Finally Statement" << endl; 722 730 os << indent << "... with block:" << endl;
Note:
See TracChangeset
for help on using the changeset viewer.