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

Function stringToCompilerState

test/libsolidity/ASTJSONTest.cpp:68–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68CompilerStack::State stringToCompilerState(const std::string& _state)
69{
70 for (unsigned int i = CompilerStack::State::Empty; i <= CompilerStack::State::CompilationSuccessful; ++i)
71 {
72 if (_state == compilerStateToString(CompilerStack::State(i)))
73 return CompilerStack::State(i);
74 }
75 BOOST_THROW_EXCEPTION(std::runtime_error("Unsupported compiler state (" + _state + ") in test contract file"));
76}
77
78void replaceVersionWithTag(std::string& _input)
79{

Callers 1

fillSourcesMethod · 0.85

Calls 2

compilerStateToStringFunction · 0.85
StateEnum · 0.50

Tested by

no test coverage detected