Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/AggregateDecl.cc

    r50377a4 rea6332d  
    4141}
    4242
    43 void AggregateDecl::print( std::ostream &os, Indenter indent ) const {
     43void AggregateDecl::print( std::ostream &os, int indent ) const {
    4444        using std::string;
    4545        using std::endl;
    4646
    47         os << typeString() << " " << name << ":";
     47        os << typeString() << " " << get_name() << ":";
    4848        if ( get_linkage() != LinkageSpec::Cforall ) {
    49                 os << " " << LinkageSpec::linkageName( linkage );
     49                os << " " << LinkageSpec::linkageName( get_linkage() );
    5050        } // if
    51         os << " with body " << has_body();
     51        os << " with body " << has_body() << endl;
    5252
    5353        if ( ! parameters.empty() ) {
    54                 os << endl << indent << "... with parameters" << endl;
    55                 printAll( parameters, os, indent+1 );
     54                os << endl << string( indent+2, ' ' ) << "with parameters" << endl;
     55                printAll( parameters, os, indent+4 );
    5656        } // if
    5757        if ( ! members.empty() ) {
    58                 os << endl << indent << "... with members" << endl;
    59                 printAll( members, os, indent+1 );
     58                os << endl << string( indent+2, ' ' ) << "with members" << endl;
     59                printAll( members, os, indent+4 );
    6060        } // if
    6161        if ( ! attributes.empty() ) {
    62                 os << endl << indent << "... with attributes" << endl;
    63                 printAll( attributes, os, indent+1 );
     62                os << endl << string( indent+2, ' ' ) << "with attributes" << endl;
     63                printAll( attributes, os, indent+4 );
    6464        } // if
    65         os << endl;
    6665}
    6766
    68 void AggregateDecl::printShort( std::ostream &os, Indenter indent ) const {
     67void AggregateDecl::printShort( std::ostream &os, int indent ) const {
    6968        using std::string;
    7069        using std::endl;
    7170
    72         os << typeString() << " " << name << " with body " << has_body() << endl;
     71        os << typeString() << " " << get_name();
     72        os << string( indent+2, ' ' ) << "with body " << has_body() << endl;
    7373
    7474        if ( ! parameters.empty() ) {
    75                 os << indent << "... with parameters" << endl;
    76                 printAll( parameters, os, indent+1 );
     75                os << endl << string( indent+2, ' ' ) << "with parameters" << endl;
     76                printAll( parameters, os, indent+4 );
    7777        } // if
    7878}
Note: See TracChangeset for help on using the changeset viewer.