Beispiel #1
0
bool is_collection(res::Class cls) {
  auto const name = cls.name();
  return name->isame(s_Vector.get()) ||
         name->isame(s_Map.get()) ||
         name->isame(s_StableMap.get()) ||
         name->isame(s_Set.get()) ||
         name->isame(s_FrozenVector.get()) ||
         name->isame(s_FrozenSet.get());
}
Beispiel #2
0
bool is_collection(res::Class cls) {
  auto const name = cls.name();
  return name->isame(s_Vector.get()) ||
    name->isame(s_Map.get()) ||
    name->isame(s_Set.get()) ||
    name->isame(s_Pair.get()) ||
    name->isame(s_ImmVector.get()) ||
    name->isame(s_ImmSet.get()) ||
    name->isame(s_ImmMap.get());
}
Beispiel #3
0
bool is_collection(res::Class cls) {
  auto const name = cls.name();
  return collections::isTypeName(name);
}