mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Apply suggestions
This commit is contained in:
parent
ce6abc6e42
commit
e61843428a
@ -98,10 +98,7 @@ public:
|
|||||||
ObjectParser parser(errorReporter, m_dialect);
|
ObjectParser parser(errorReporter, m_dialect);
|
||||||
|
|
||||||
auto scanner = make_shared<Scanner>(charStream);
|
auto scanner = make_shared<Scanner>(charStream);
|
||||||
|
m_inputIsCodeBlock = (scanner->currentToken() == Token::LBrace);
|
||||||
if (!m_inputIsCodeBlock && scanner->currentToken() == Token::LBrace)
|
|
||||||
m_inputIsCodeBlock = true;
|
|
||||||
|
|
||||||
m_object = parser.parse(scanner, false);
|
m_object = parser.parse(scanner, false);
|
||||||
|
|
||||||
if (!m_object || !errorReporter.errors().empty())
|
if (!m_object || !errorReporter.errors().empty())
|
||||||
@ -349,7 +346,6 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
resetNameDispenser();
|
resetNameDispenser();
|
||||||
runCodeAnalyzer(errorReporter);
|
|
||||||
}
|
}
|
||||||
catch (...)
|
catch (...)
|
||||||
{
|
{
|
||||||
@ -381,7 +377,7 @@ int main(int argc, char** argv)
|
|||||||
po::options_description options(
|
po::options_description options(
|
||||||
R"(yulopti, yul optimizer exploration tool.
|
R"(yulopti, yul optimizer exploration tool.
|
||||||
Usage: yulopti [Options] <file>
|
Usage: yulopti [Options] <file>
|
||||||
Reads <file> containing a either a yul object or a yul code block and applies optimizer steps to it,
|
Reads <file> containing either a yul object or a yul code block and applies optimizer steps to it,
|
||||||
interactively read from stdin.
|
interactively read from stdin.
|
||||||
In non-interactive mode a list of steps has to be provided.
|
In non-interactive mode a list of steps has to be provided.
|
||||||
If <file> is -, yul code is read from stdin and run non-interactively.
|
If <file> is -, yul code is read from stdin and run non-interactively.
|
||||||
|
Loading…
Reference in New Issue
Block a user