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

Function compilerStateToString

test/libsolidity/ASTJSONTest.cpp:54–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52std::string const sourceDelimiter("==== Source: ");
53
54std::string compilerStateToString(CompilerStack::State _state)
55{
56 switch (_state)
57 {
58 case CompilerStack::State::Empty: return "Empty";
59 case CompilerStack::State::SourcesSet: return "SourcesSet";
60 case CompilerStack::State::Parsed: return "Parsed";
61 case CompilerStack::State::ParsedAndImported: return "ParsedAndImported";
62 case CompilerStack::State::AnalysisSuccessful: return "AnalysisSuccessful";
63 case CompilerStack::State::CompilationSuccessful: return "CompilationSuccessful";
64 }
65 soltestAssert(false, "Unexpected value of state parameter");
66}
67
68CompilerStack::State stringToCompilerState(const std::string& _state)
69{

Callers 2

stringToCompilerStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected