Changes in src/SynTree/Type.cc [d67cdb7:50377a4]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Type.cc
rd67cdb7 r50377a4 75 75 Type * type; 76 76 ReferenceType * ref; 77 for ( type = this; (ref = dynamic_cast<ReferenceType *>( type )); type = ref-> get_base());77 for ( type = this; (ref = dynamic_cast<ReferenceType *>( type )); type = ref->base ); 78 78 return type; 79 79 } … … 81 81 int Type::referenceDepth() const { return 0; } 82 82 83 void Type::print( std::ostream &os, intindent ) const {83 void Type::print( std::ostream &os, Indenter indent ) const { 84 84 if ( ! forall.empty() ) { 85 85 os << "forall" << std::endl; 86 printAll( forall, os, indent + 4);87 os << std::string( indent+2, ' ' );86 printAll( forall, os, indent+1 ); 87 os << ++indent; 88 88 } // if 89 89 90 90 if ( ! attributes.empty() ) { 91 os << endl << string( indent+2, ' ' ) <<"with attributes" << endl;92 printAll( attributes, os, indent+ 4);91 os << "with attributes" << endl; 92 printAll( attributes, os, indent+1 ); 93 93 } // if 94 94
Note: See TracChangeset
for help on using the changeset viewer.