Changeset 4a9ccc3 for src/SynTree/ReferenceToType.cc
- Timestamp:
- Jan 24, 2017, 3:56:33 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- ad6343e
- Parents:
- 0bfaf80
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/ReferenceToType.cc
r0bfaf80 r4a9ccc3 64 64 } 65 65 66 bool StructInstType::isComplete() const { return baseStruct->has_body(); } 67 66 68 void StructInstType::lookup( const std::string &name, std::list< Declaration* > &foundDecls ) const { 67 69 assert( baseStruct ); … … 90 92 } 91 93 94 bool UnionInstType::isComplete() const { return baseUnion->has_body(); } 95 92 96 void UnionInstType::lookup( const std::string &name, std::list< Declaration* > &foundDecls ) const { 93 97 assert( baseUnion ); … … 111 115 std::string EnumInstType::typeString() const { return "enum"; } 112 116 113 std::string TraitInstType::typeString() const { return " context"; }117 std::string TraitInstType::typeString() const { return "trait"; } 114 118 115 119 TraitInstType::TraitInstType( const TraitInstType &other ) : Parent( other ) { … … 120 124 deleteAll( members ); 121 125 } 126 127 bool TraitInstType::isComplete() const { assert( false ); } 122 128 123 129 TypeInstType::TypeInstType( const Type::Qualifiers &tq, const std::string &name, TypeDecl *baseType ) : Parent( tq, name ) { … … 143 149 std::string TypeInstType::typeString() const { return "type"; } 144 150 151 bool TypeInstType::isComplete() const { return baseType->isComplete(); } 152 145 153 void TypeInstType::print( std::ostream &os, int indent ) const { 146 154 using std::endl;
Note: See TracChangeset
for help on using the changeset viewer.