Changes in src/AST/Print.cpp [3b0bc16:4ec9513]
- File:
-
- 1 edited
-
src/AST/Print.cpp (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Print.cpp
r3b0bc16 r4ec9513 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:: Stmt * stmt : node->stmts ) {599 for ( const ast::CaseClause * stmt : node->cases ) { 592 600 stmt->accept( *this ); 593 601 } … … 597 605 } 598 606 599 virtual const ast:: Stmt * visit( const ast::CaseStmt* node ) override final {607 virtual const ast::CaseClause * visit( const ast::CaseClause * 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 Stmt* stmt : node->handlers ) {689 for ( const ast::CatchClause * stmt : node->handlers ) { 682 690 os << indent; 683 691 stmt->accept( *this ); … … 693 701 } 694 702 695 virtual const ast:: Stmt * visit( const ast::CatchStmt* node ) override final {703 virtual const ast::CatchClause * visit( const ast::CatchClause * node ) override final { 696 704 os << "Catch "; 697 705 switch ( node->kind ) { … … 718 726 } 719 727 720 virtual const ast:: Stmt * visit( const ast::FinallyStmt* node ) override final {728 virtual const ast::FinallyClause * visit( const ast::FinallyClause * node ) override final { 721 729 os << "Finally Statement" << endl; 722 730 os << indent << "... with block:" << endl; … … 1088 1096 virtual const ast::Expr * visit( const ast::TypeExpr * node ) override final { 1089 1097 safe_print( node->type ); 1098 postprint( node ); 1099 1100 return node; 1101 } 1102 1103 virtual const ast::Expr * visit( const ast::DimensionExpr * node ) override final { 1104 os << "Type-Sys Value: " << node->name; 1090 1105 postprint( node ); 1091 1106
Note:
See TracChangeset
for help on using the changeset viewer.