MCPcopy Create free account
hub / github.com/SpartanJ/eepp / jsonString

Function jsonString

src/tools/ecode/plugins/lsp/lspclientserver.cpp:132–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132static std::string jsonString( const json& container, const std::string& member,
133 const std::string& def ) {
134 return container.is_object() && container.contains( member ) && container[member].is_string()
135 ? container.at( member ).get<std::string>()
136 : def;
137}
138
139static json textDocumentURI( const URI& document ) {
140 return json{ { MEMBER_URI, document.toString() } };

Callers 1

parseDocumentCompletionFunction · 0.85

Calls 2

atMethod · 0.80
containsMethod · 0.45

Tested by

no test coverage detected