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

Method uriToSourceUnitName

libsolidity/lsp/FileRepository.cpp:88–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88std::string FileRepository::uriToSourceUnitName(std::string const& _path) const
89{
90 lspRequire(boost::algorithm::starts_with(_path, "file://"), ErrorCode::InternalError, "URI must start with file://");
91 return stripFileUriSchemePrefix(_path);
92}
93
94void FileRepository::setSourceByUri(std::string const& _uri, std::string _source)
95{

Callers 4

compileMethod · 0.80
semanticTokensFullMethod · 0.80

Calls 1

stripFileUriSchemePrefixFunction · 0.85

Tested by

no test coverage detected