| 221 | } |
| 222 | |
| 223 | static 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 | |
| 237 | static json changeConfigurationParams( const json& settings ) { |
| 238 | json ret; |
no test coverage detected