Changeset 873ffb7 for src/SynTree/ReferenceToType.cc
- Timestamp:
- Jul 16, 2016, 9:19:33 AM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 20340c2, 7a2c5391
- Parents:
- cb2e8ce (diff), 5d125e4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/ReferenceToType.cc
rcb2e8ce r873ffb7 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Mar 2 17:28:51201613 // Update Count : 512 // Last Modified On : Wed Jul 13 18:03:30 2016 13 // Update Count : 9 14 14 // 15 15 … … 69 69 } 70 70 71 void StructInstType::print( std::ostream &os, int indent ) const { 72 using std::endl; 73 74 if ( baseStruct == NULL ) ReferenceToType::print( os, indent ); 75 else { 76 Type::print( os, indent ); 77 os << "instance of " << typeString() << " " << name << " with body " << baseStruct->has_body() << " "; 78 if ( ! parameters.empty() ) { 79 os << endl << std::string( indent, ' ' ) << "with parameters" << endl; 80 printAll( parameters, os, indent+2 ); 81 } // if 82 } // if 83 } 84 71 85 std::string UnionInstType::typeString() const { return "union"; } 72 86 … … 79 93 assert( baseUnion ); 80 94 doLookup( baseUnion->get_members(), baseUnion->get_parameters(), parameters, name, foundDecls ); 95 } 96 97 void UnionInstType::print( std::ostream &os, int indent ) const { 98 using std::endl; 99 100 if ( baseUnion == NULL ) ReferenceToType::print( os, indent ); 101 else { 102 Type::print( os, indent ); 103 os << "instance of " << typeString() << " " << name << " with body " << baseUnion->has_body() << " "; 104 if ( ! parameters.empty() ) { 105 os << endl << std::string( indent, ' ' ) << "with parameters" << endl; 106 printAll( parameters, os, indent+2 ); 107 } // if 108 } // if 81 109 } 82 110
Note:
See TracChangeset
for help on using the changeset viewer.