MCPcopy Create free account
hub / github.com/argotorg/solidity / toJson

Method toJson

libsolidity/lsp/HandlerBase.cpp:46–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46Json HandlerBase::toJson(SourceLocation const& _location) const
47{
48 solAssert(_location.sourceName);
49 Json item;
50 item["uri"] = fileRepository().sourceUnitNameToUri(*_location.sourceName);
51 item["range"] = toRange(_location);
52 return item;
53}
54
55std::pair<std::string, LineColumn> HandlerBase::extractSourceUnitNameAndLineColumn(Json const& _args) const
56{

Callers 1

compileSolidityMethod · 0.45

Calls 1

sourceUnitNameToUriMethod · 0.80

Tested by

no test coverage detected