std::string show(const RegionDesc::GuardedLocation& guardedLoc) { return folly::format( "{} :: {} ({})", show(guardedLoc.location), guardedLoc.type.toString(), typeCategoryName(guardedLoc.category) ).str(); }
std::string GuardConstraint::toString() const { std::string ret = "<" + typeCategoryName(category); if (category == DataTypeSpecialized) { if (wantArrayKind()) ret += ",ArrayKind"; if (wantClass()) { folly::toAppend("Cls:", desiredClass()->name()->data(), &ret); } } if (weak) ret += ",weak"; return ret + '>'; }