Lines Matching refs:JOS
254 void abbreviate(const Value &V, OStream &JOS) { in abbreviate() argument
257 JOS.rawValue(V.getAsArray()->empty() ? "[]" : "[ ... ]"); in abbreviate()
260 JOS.rawValue(V.getAsObject()->empty() ? "{}" : "{ ... }"); in abbreviate()
265 JOS.value(V); in abbreviate()
269 JOS.value(Truncated); in abbreviate()
274 JOS.value(V); in abbreviate()
280 void abbreviateChildren(const Value &V, OStream &JOS) { in abbreviateChildren() argument
283 JOS.array([&] { in abbreviateChildren()
285 abbreviate(I, JOS); in abbreviateChildren()
289 JOS.object([&] { in abbreviateChildren()
291 JOS.attributeBegin(KV->first); in abbreviateChildren()
292 abbreviate(KV->second, JOS); in abbreviateChildren()
293 JOS.attributeEnd(); in abbreviateChildren()
298 JOS.value(V); in abbreviateChildren()
305 OStream JOS(OS, /*IndentSize=*/2); in printErrorContext() local
317 JOS.comment(Comment); in printErrorContext()
318 abbreviateChildren(V, JOS); in printErrorContext()
329 JOS.object([&] { in printErrorContext()
331 JOS.attributeBegin(KV->first); in printErrorContext()
335 abbreviate(KV->second, JOS); in printErrorContext()
336 JOS.attributeEnd(); in printErrorContext()
344 JOS.array([&] { in printErrorContext()
350 abbreviate(V, JOS); in printErrorContext()