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

Function getError

test/libsolidity/SolidityParser.cpp:80–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80Error getError(std::string const& _source)
81{
82 ErrorList errors;
83 try
84 {
85 parseText(_source, errors);
86 }
87 catch (FatalError const& /*_exception*/)
88 {
89 // no-op
90 }
91 Error const* error = Error::containsErrorOfType(errors, Error::Type::ParserError);
92 BOOST_REQUIRE(error);
93 return *error;
94}
95
96void checkFunctionNatspec(
97 FunctionDefinition const* _function,

Callers

nothing calls this directly

Calls 1

parseTextFunction · 0.85

Tested by

no test coverage detected