| 228 | |
| 229 | template <class JsonStream> |
| 230 | void ComplexValueWriter<JsonStream>::CollectionValueToJSON( |
| 231 | const CollectionValue& collection_value, PrimitiveType collection_type, |
| 232 | const TupleDescriptor* item_tuple_desc) { |
| 233 | if (collection_type == PrimitiveType::TYPE_MAP) { |
| 234 | MapValueToJSON(collection_value, item_tuple_desc); |
| 235 | } else { |
| 236 | DCHECK_EQ(collection_type, PrimitiveType::TYPE_ARRAY); |
| 237 | ArrayValueToJSON(collection_value, item_tuple_desc); |
| 238 | } |
| 239 | } |
| 240 | |
| 241 | template <class JsonStream> |
| 242 | void ComplexValueWriter<JsonStream>::StructValToJSON(const StructVal& struct_val, |
no outgoing calls
no test coverage detected