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