Lines Matching defs:JOS
257 // We interleave writes to OS and JOS, exploiting the lack of extra buffering.
259 static void abbreviate(const Value &V, OStream &JOS) {
262 JOS.rawValue(V.getAsArray()->empty() ? "[]" : "[ ... ]");
265 JOS.rawValue(V.getAsObject()->empty() ? "{}" : "{ ... }");
270 JOS.value(V);
274 JOS.value(Truncated);
279 JOS.value(V);
285 static void abbreviateChildren(const Value &V, OStream &JOS) {
288 JOS.array([&] {
290 abbreviate(I, JOS);
294 JOS.object([&] {
296 JOS.attributeBegin(KV->first);
297 abbreviate(KV->second, JOS);
298 JOS.attributeEnd();
303 JOS.value(V);
308 OStream JOS(OS, /*IndentSize=*/2);
320 JOS.comment(Comment);
321 abbreviateChildren(V, JOS);
332 JOS.object([&] {
334 JOS.attributeBegin(KV->first);
338 abbreviate(KV->second, JOS);
339 JOS.attributeEnd();
347 JOS.array([&] {
353 abbreviate(V, JOS);