| 349 | |
| 350 | template <typename T> |
| 351 | void WriteName(const std::string& typeclass, const T& type) { |
| 352 | writer_->Key("name"); |
| 353 | writer_->String(typeclass); |
| 354 | WriteTypeMetadata(type); |
| 355 | } |
| 356 | |
| 357 | template <typename T> |
| 358 | Status WritePrimitive(const std::string& typeclass, const T& type) { |