Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Print.cpp

    r4ec9513 r3b0bc16  
    210210                }
    211211
    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 
    220212                os << endl;
    221213        }
     
    597589
    598590                ++indent;
    599                 for ( const ast::CaseClause * stmt : node->cases ) {
     591                for ( const ast::Stmt * stmt : node->stmts ) {
    600592                        stmt->accept( *this );
    601593                }
     
    605597        }
    606598
    607         virtual const ast::CaseClause * visit( const ast::CaseClause * node ) override final {
     599        virtual const ast::Stmt * visit( const ast::CaseStmt * node ) override final {
    608600                if ( node->isDefault() ) {
    609601                        os << indent << "Default ";
     
    687679
    688680                os << indent-1 << "... and handlers:" << endl;
    689                 for ( const ast::CatchClause * stmt : node->handlers ) {
     681                for ( const ast::CatchStmt * stmt : node->handlers ) {
    690682                        os << indent;
    691683                        stmt->accept( *this );
     
    701693        }
    702694
    703         virtual const ast::CatchClause * visit( const ast::CatchClause * node ) override final {
     695        virtual const ast::Stmt * visit( const ast::CatchStmt * node ) override final {
    704696                os << "Catch ";
    705697                switch ( node->kind ) {
     
    726718        }
    727719
    728         virtual const ast::FinallyClause * visit( const ast::FinallyClause * node ) override final {
     720        virtual const ast::Stmt * visit( const ast::FinallyStmt * node ) override final {
    729721                os << "Finally Statement" << endl;
    730722                os << indent << "... with block:" << endl;
     
    10961088        virtual const ast::Expr * visit( const ast::TypeExpr * node ) override final {
    10971089                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;
    11051090                postprint( node );
    11061091
Note: See TracChangeset for help on using the changeset viewer.