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

Method parseAndAnalyze

libyul/YulStack.cpp:75–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75bool YulStack::parseAndAnalyze(std::string const& _sourceName, std::string const& _source)
76{
77 m_errors.clear();
78 yulAssert(m_stackState == Empty);
79
80 if (!parse(_sourceName, _source))
81 return false;
82
83 yulAssert(m_stackState == Parsed);
84 yulAssert(m_parserResult, "");
85 yulAssert(m_parserResult->hasCode());
86
87 return analyzeParsed();
88}
89
90void YulStack::optimize()
91{

Callers 3

assembleYulMethod · 0.45
reparseMethod · 0.45

Calls 3

hasCodeMethod · 0.80
parseFunction · 0.50
clearMethod · 0.45

Tested by

no test coverage detected