Changeset a32b204 for translator/SynTree/ApplicationExpr.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/ApplicationExpr.cc
rb87a5ed ra32b204 16 16 ParamEntry::operator=( const ParamEntry &other ) 17 17 { 18 if ( &other == this ) return *this;18 if ( &other == this ) return *this; 19 19 decl = other.decl; 20 20 actualType = maybeClone( other.actualType ); … … 39 39 assert( function ); 40 40 41 for ( std::list< DeclarationWithType* >::const_iterator i = function->get_returnVals().begin(); i != function->get_returnVals().end(); ++i ) {41 for ( std::list< DeclarationWithType* >::const_iterator i = function->get_returnVals().begin(); i != function->get_returnVals().end(); ++i ) { 42 42 get_results().push_back( (*i)->get_type()->clone() ); 43 43 } … … 61 61 os << std::string( indent, ' ' ) << "Application of" << std::endl; 62 62 function->print( os, indent+2 ); 63 if ( !args.empty() ) {63 if ( ! args.empty() ) { 64 64 os << std::string( indent, ' ' ) << "to arguments" << std::endl; 65 65 printAll( args, os, indent+2 ); 66 66 } 67 if ( !inferParams.empty() ) {67 if ( ! inferParams.empty() ) { 68 68 os << std::string(indent, ' ') << "with inferred parameters:" << std::endl; 69 for ( InferredParams::const_iterator i = inferParams.begin(); i != inferParams.end(); ++i ) {69 for ( InferredParams::const_iterator i = inferParams.begin(); i != inferParams.end(); ++i ) { 70 70 os << std::string(indent+2, ' '); 71 71 Declaration::declFromId( i->second.decl )->printShort( os, indent+2 );
Note: See TracChangeset
for help on using the changeset viewer.