Changeset a32b204 for translator/SynTree/ReferenceToType.cc
- Timestamp:
- May 17, 2015, 1:19:35 PM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
- Children:
- 0dd3a2f
- Parents:
- b87a5ed
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
translator/SynTree/ReferenceToType.cc
rb87a5ed ra32b204 39 39 Type::print( os, indent ); 40 40 os << "instance of " << typeString() << " " << name << " "; 41 if ( !parameters.empty() ) {41 if ( ! parameters.empty() ) { 42 42 os << endl << std::string( indent, ' ' ) << "with parameters" << endl; 43 43 printAll( parameters, os, indent+2 ); … … 51 51 { 52 52 std::list< Declaration* > found; 53 for ( std::list< Declaration* >::const_iterator i = members.begin(); i != members.end(); ++i ) {54 if ( (*i)->get_name() == name ) {53 for ( std::list< Declaration* >::const_iterator i = members.begin(); i != members.end(); ++i ) { 54 if ( (*i)->get_name() == name ) { 55 55 found.push_back( *i ); 56 56 } … … 118 118 Type::print( os, indent ); 119 119 os << "instance of " << typeString() << " " << get_name() << " (" << ( isFtype ? "" : "not" ) << " a function type) "; 120 if ( !parameters.empty() ) {120 if ( ! parameters.empty() ) { 121 121 os << endl << std::string( indent, ' ' ) << "with parameters" << endl; 122 122 printAll( parameters, os, indent+2 );
Note: See TracChangeset
for help on using the changeset viewer.