Changes in src/AST/Print.cpp [4ec9513:3b0bc16]
- File:
-
- 1 edited
-
src/AST/Print.cpp (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Print.cpp
r4ec9513 r3b0bc16 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 220 212 os << endl; 221 213 } … … 597 589 598 590 ++indent; 599 for ( const ast:: CaseClause * stmt : node->cases ) {591 for ( const ast::Stmt * stmt : node->stmts ) { 600 592 stmt->accept( *this ); 601 593 } … … 605 597 } 606 598 607 virtual const ast:: CaseClause * visit( const ast::CaseClause* node ) override final {599 virtual const ast::Stmt * visit( const ast::CaseStmt * node ) override final { 608 600 if ( node->isDefault() ) { 609 601 os << indent << "Default "; … … 687 679 688 680 os << indent-1 << "... and handlers:" << endl; 689 for ( const ast::Catch Clause* stmt : node->handlers ) {681 for ( const ast::CatchStmt * stmt : node->handlers ) { 690 682 os << indent; 691 683 stmt->accept( *this ); … … 701 693 } 702 694 703 virtual const ast:: CatchClause * visit( const ast::CatchClause* node ) override final {695 virtual const ast::Stmt * visit( const ast::CatchStmt * node ) override final { 704 696 os << "Catch "; 705 697 switch ( node->kind ) { … … 726 718 } 727 719 728 virtual const ast:: FinallyClause * visit( const ast::FinallyClause* node ) override final {720 virtual const ast::Stmt * visit( const ast::FinallyStmt * node ) override final { 729 721 os << "Finally Statement" << endl; 730 722 os << indent << "... with block:" << endl; … … 1096 1088 virtual const ast::Expr * visit( const ast::TypeExpr * node ) override final { 1097 1089 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;1105 1090 postprint( node ); 1106 1091
Note:
See TracChangeset
for help on using the changeset viewer.