Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Print.cpp

    r59c8dff r16afb2a  
    175175                }
    176176
     177                auto ptrToEnum = dynamic_cast<const ast::EnumDecl *>(node);
     178                if ( ! short_mode && ptrToEnum && ptrToEnum->base ) {
     179                        os << endl << indent << "... with base type" << endl;
     180                        ++indent;
     181                        os << indent;
     182                        ptrToEnum->base->accept( *this );
     183                        --indent;
     184                }
     185
    177186                os << " " << (node->body ? "with" : "without") << " body";
    178187
     
    198207                }
    199208
    200                 auto ptrToEnum = dynamic_cast<const ast::EnumDecl *>(node);
    201                 if ( ! short_mode && ptrToEnum && ptrToEnum->base ) {
    202                         os << endl << indent << ".. with (enum) base" << endl;
    203                         ++indent;
    204                         ptrToEnum->base->accept( *this );
    205                         --indent;
    206                 }
     209
    207210
    208211                os << endl;
Note: See TracChangeset for help on using the changeset viewer.