Lines Matching refs:JOS
258 void abbreviate(const Value &V, OStream &JOS) { in abbreviate() argument
261 JOS.rawValue(V.getAsArray()->empty() ? "[]" : "[ ... ]"); in abbreviate()
264 JOS.rawValue(V.getAsObject()->empty() ? "{}" : "{ ... }"); in abbreviate()
269 JOS.value(V); in abbreviate()
273 JOS.value(Truncated); in abbreviate()
278 JOS.value(V); in abbreviate()
284 void abbreviateChildren(const Value &V, OStream &JOS) { in abbreviateChildren() argument
287 JOS.array([&] { in abbreviateChildren()
289 abbreviate(I, JOS); in abbreviateChildren()
293 JOS.object([&] { in abbreviateChildren()
295 JOS.attributeBegin(KV->first); in abbreviateChildren()
296 abbreviate(KV->second, JOS); in abbreviateChildren()
297 JOS.attributeEnd(); in abbreviateChildren()
302 JOS.value(V); in abbreviateChildren()
309 OStream JOS(OS, /*IndentSize=*/2); in printErrorContext() local
321 JOS.comment(Comment); in printErrorContext()
322 abbreviateChildren(V, JOS); in printErrorContext()
333 JOS.object([&] { in printErrorContext()
335 JOS.attributeBegin(KV->first); in printErrorContext()
339 abbreviate(KV->second, JOS); in printErrorContext()
340 JOS.attributeEnd(); in printErrorContext()
348 JOS.array([&] { in printErrorContext()
354 abbreviate(V, JOS); in printErrorContext()