mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Analysis refactoring.
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
#include <libsolidity/inlineasm/AsmParser.h>
|
||||
#include <libsolidity/inlineasm/AsmCodeGen.h>
|
||||
#include <libsolidity/inlineasm/AsmPrinter.h>
|
||||
#include <libsolidity/inlineasm/AsmAnalysis.h>
|
||||
|
||||
#include <libsolidity/parsing/Scanner.h>
|
||||
|
||||
@@ -45,8 +46,10 @@ bool InlineAssemblyStack::parse(shared_ptr<Scanner> const& _scanner)
|
||||
auto result = parser.parse(_scanner);
|
||||
if (!result)
|
||||
return false;
|
||||
|
||||
*m_parserResult = std::move(*result);
|
||||
return true;
|
||||
AsmAnalyzer::Scopes scopes;
|
||||
return (AsmAnalyzer(scopes, m_errors))(*m_parserResult);
|
||||
}
|
||||
|
||||
string InlineAssemblyStack::toString()
|
||||
|
||||
Reference in New Issue
Block a user