MCPcopy Create free account
hub / github.com/Icinga/icinga2 / FillCurrentTarget

Method FillCurrentTarget

lib/base/json.cpp:522–536  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

520}
521
522inline
523void JsonSax::FillCurrentTarget(Value value)
524{
525 if (m_Stack.empty()) {
526 m_Root = value;
527 } else {
528 auto& node (m_Stack.back());
529
530 if (node.m_Dictionary) {
531 node.m_Dictionary->Set(node.m_CurrentKey, value);
532 } else {
533 node.m_Array->Add(value);
534 }
535 }
536}
537
538void JsonSax::CheckDepthLimit() const
539{

Callers

nothing calls this directly

Calls 3

emptyMethod · 0.45
SetMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected