| 239 | } |
| 240 | |
| 241 | uint64_t Structure::getOwnSemanticHash(HashBuilder & hb, das_set<Structure *> & dep, das_set<Annotation *> & adep) const { |
| 242 | hb.updateString(getMangledName()); |
| 243 | hb.update(fields.size()); |
| 244 | for ( auto & fld : fields ) { |
| 245 | hb.updateString(fld.name); |
| 246 | hb.update(fld.type->getOwnSemanticHash(hb, dep, adep)); |
| 247 | } |
| 248 | aliases.foreach([&](const TypeDeclPtr & atype) { |
| 249 | hb.update(atype->getOwnSemanticHash(hb, dep, adep)); |
| 250 | return true; |
| 251 | }); |
| 252 | return hb.getHash(); |
| 253 | } |
| 254 | |
| 255 | StructurePtr Structure::clone() const { |
| 256 | auto cs = new Structure(name); |
no test coverage detected