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

Method lineInfo

libsolutil/Exceptions.cpp:37–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37std::string Exception::lineInfo() const
38{
39 char const* const* file = boost::get_error_info<boost::throw_file>(*this);
40 int const* line = boost::get_error_info<boost::throw_line>(*this);
41 std::string ret;
42 if (file)
43 ret += *file;
44 ret += ':';
45 if (line)
46 ret += std::to_string(*line);
47 return ret;
48}
49
50std::string const* Exception::comment() const noexcept
51{

Callers 1

compileSolidityMethod · 0.80

Calls 1

to_stringFunction · 0.50

Tested by

no test coverage detected