MCPcopy Create free account
hub / github.com/couchbase/fleece / writePath

Method writePath

Fleece/Core/JSONDelta.cc:90–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88
89
90 void JSONDelta::writePath(pathItem *path) {
91 if (!path)
92 return;
93 writePath(path->parent);
94 path->parent = nullptr;
95 if (!path->isOpen) {
96 _encoder->beginDictionary();
97 path->isOpen = true;
98 }
99 _encoder->writeKey(path->key);
100 }
101
102
103 // Main encoder function. Called recursively, traversing the hierarchy.

Callers

nothing calls this directly

Calls 2

beginDictionaryMethod · 0.45
writeKeyMethod · 0.45

Tested by

no test coverage detected