MCPcopy Create free account
hub / github.com/aardappel/treesheets / StructToString

Method StructToString

lobster/src/vmdata.cpp:382–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

380}
381
382void VM::StructToString(ostringstream &ss, PrintPrefs &pp, const TypeInfo &ti, const Value *elems) {
383 ss << ReverseLookupType(ti.structidx);
384 if (pp.indent) ss << ' ';
385 VectorOrObjectToString(*this, ss, pp, '{', '}', ti.len, 1, elems, false,
386 [&](intp i) -> const TypeInfo & {
387 return GetTypeInfo(ti.GetElemOrParent(i));
388 }
389 );
390}
391
392} // namespace lobster

Callers 1

VectorOrObjectToStringFunction · 0.45

Calls 2

VectorOrObjectToStringFunction · 0.85
GetElemOrParentMethod · 0.80

Tested by

no test coverage detected