Lines Matching refs:JOS
261 void abbreviate(const Value &V, OStream &JOS) { in abbreviate() argument
264 JOS.rawValue(V.getAsArray()->empty() ? "[]" : "[ ... ]"); in abbreviate()
267 JOS.rawValue(V.getAsObject()->empty() ? "{}" : "{ ... }"); in abbreviate()
272 JOS.value(V); in abbreviate()
276 JOS.value(Truncated); in abbreviate()
281 JOS.value(V); in abbreviate()
287 void abbreviateChildren(const Value &V, OStream &JOS) { in abbreviateChildren() argument
290 JOS.array([&] { in abbreviateChildren()
292 abbreviate(I, JOS); in abbreviateChildren()
296 JOS.object([&] { in abbreviateChildren()
298 JOS.attributeBegin(KV->first); in abbreviateChildren()
299 abbreviate(KV->second, JOS); in abbreviateChildren()
300 JOS.attributeEnd(); in abbreviateChildren()
305 JOS.value(V); in abbreviateChildren()
312 OStream JOS(OS, /*IndentSize=*/2); in printErrorContext() local
324 JOS.comment(Comment); in printErrorContext()
325 abbreviateChildren(V, JOS); in printErrorContext()
336 JOS.object([&] { in printErrorContext()
338 JOS.attributeBegin(KV->first); in printErrorContext()
342 abbreviate(KV->second, JOS); in printErrorContext()
343 JOS.attributeEnd(); in printErrorContext()
351 JOS.array([&] { in printErrorContext()
357 abbreviate(V, JOS); in printErrorContext()