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

Function parseDocumentLocation

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

Source from the content-addressed store, hash-verified

221}
222
223static std::vector<LSPLocation> parseDocumentLocation( const json& result ) {
224 std::vector<LSPLocation> ret;
225 if ( result.is_array() ) {
226 for ( const auto& def : result ) {
227 ret.push_back( parseLocation( def ) );
228 if ( ret.back().uri.empty() )
229 ret.back() = parseLocationLink( def );
230 }
231 } else if ( result.is_object() ) {
232 ret.push_back( parseLocation( result ) );
233 }
234 return ret;
235}
236
237static json changeConfigurationParams( const json& settings ) {
238 json ret;

Callers 3

goToLocationMethod · 0.85
getAndGoToLocationMethod · 0.85
documentReferencesMethod · 0.85

Calls 4

parseLocationFunction · 0.85
parseLocationLinkFunction · 0.85
push_backMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected