MCPcopy Create free account
hub / github.com/Kitware/CMake / field

Method field

Utilities/cmcppdap/src/nlohmann_json_serializer.cpp:132–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132bool NlohmannDeserializer::field(
133 const std::string& name,
134 const std::function<bool(dap::Deserializer*)>& cb) const {
135 if (!json->is_structured()) {
136 return false;
137 }
138 auto it = json->find(name);
139 if (it == json->end()) {
140 return cb(&NullDeserializer::instance);
141 }
142 auto obj = *it;
143 NlohmannDeserializer d(&obj);
144 return cb(&d);
145}
146
147NlohmannSerializer::NlohmannSerializer()
148 : json(new nlohmann::json()), ownsJson(true) {}

Callers

nothing calls this directly

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected