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

Function parsePosition

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

Source from the content-addressed store, hash-verified

194}
195
196static TextPosition parsePosition( const json& m ) {
197 auto line = m[MEMBER_LINE].get<int>();
198 auto column = m[MEMBER_CHARACTER].get<int>();
199 return { line, column };
200}
201
202static TextRange parseRange( const json& range ) {
203 auto startpos = parsePosition( range[MEMBER_START] );

Callers 4

parseRangeFunction · 0.85
getLSPLocationFromJSONFunction · 0.85
parseRangeMethod · 0.85
processMessageMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected