in common/util/cpp/HsVariant.h [27:46]
static Type type(const VariantType& obj) {
switch (obj.getType()) {
case HsJSON::Type::Null:
return Type::NULLT;
case HsJSON::Type::Bool:
return Type::BOOL;
case HsJSON::Type::Integral:
return Type::INT64;
case HsJSON::Type::Real:
return Type::DOUBLE;
case HsJSON::Type::String:
return Type::STRING;
case HsJSON::Type::Array:
return Type::VECTOR;
case HsJSON::Type::Object:
return Type::MAP;
default:
__builtin_unreachable();
}
}