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