mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Remove scanner from compiler stack.
This commit is contained in:
committed by
Christian Parpart
parent
af18b8afc2
commit
ffc5cfd9a5
@@ -74,7 +74,8 @@ pair<shared_ptr<Object>, shared_ptr<yul::AsmAnalysisInfo>> yul::test::parse(
|
||||
)
|
||||
{
|
||||
ErrorReporter errorReporter(_errors);
|
||||
shared_ptr<Scanner> scanner = make_shared<Scanner>(CharStream(_source, ""));
|
||||
CharStream stream(_source, "");
|
||||
shared_ptr<Scanner> scanner = make_shared<Scanner>(stream);
|
||||
shared_ptr<Object> parserResult = yul::ObjectParser(errorReporter, _dialect).parse(scanner, false);
|
||||
if (!parserResult)
|
||||
return {};
|
||||
|
||||
Reference in New Issue
Block a user