MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / endObject

Method endObject

source/core/StarFormattedJson.cpp:519–525  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

517}
518
519void FormattedJsonBuilderStream::endObject() {
520 FormattedJson value = pop();
521 if (m_stack.size() > 0)
522 current().appendElement(ValueElement{value});
523 else
524 m_root = value;
525}
526
527void FormattedJsonBuilderStream::beginArray() {
528 FormattedJson value = FormattedJson::ofType(Json::Type::Array);

Callers 1

toJsonStreamMethod · 0.45

Calls 2

appendElementMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected