Lines Matching refs:JOS
259 static void abbreviate(const Value &V, OStream &JOS) { in abbreviate() argument
262 JOS.rawValue(V.getAsArray()->empty() ? "[]" : "[ ... ]"); in abbreviate()
265 JOS.rawValue(V.getAsObject()->empty() ? "{}" : "{ ... }"); in abbreviate()
270 JOS.value(V); in abbreviate()
274 JOS.value(Truncated); in abbreviate()
279 JOS.value(V); in abbreviate()
285 static void abbreviateChildren(const Value &V, OStream &JOS) { in abbreviateChildren() argument
288 JOS.array([&] { in abbreviateChildren()
290 abbreviate(I, JOS); in abbreviateChildren()
294 JOS.object([&] { in abbreviateChildren()
296 JOS.attributeBegin(KV->first); in abbreviateChildren()
297 abbreviate(KV->second, JOS); in abbreviateChildren()
298 JOS.attributeEnd(); in abbreviateChildren()
303 JOS.value(V); in abbreviateChildren()
308 OStream JOS(OS, /*IndentSize=*/2); in printErrorContext() local
320 JOS.comment(Comment); in printErrorContext()
321 abbreviateChildren(V, JOS); in printErrorContext()
332 JOS.object([&] { in printErrorContext()
334 JOS.attributeBegin(KV->first); in printErrorContext()
338 abbreviate(KV->second, JOS); in printErrorContext()
339 JOS.attributeEnd(); in printErrorContext()
347 JOS.array([&] { in printErrorContext()
353 abbreviate(V, JOS); in printErrorContext()