示例#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());
}
示例#2
0
文件: class-util.cpp 项目: 2bj/hhvm
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());
}
示例#3
0
bool is_collection(res::Class cls) {
  auto const name = cls.name();
  return collections::isTypeName(name);
}