mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
cleanup
This commit is contained in:
parent
6c0a3bd043
commit
61ed1f1986
@ -256,9 +256,14 @@ Expression Parser::parseExpression()
|
|||||||
{
|
{
|
||||||
if (currentToken() == Token::LParen)
|
if (currentToken() == Token::LParen)
|
||||||
return parseCall(std::move(operation));
|
return parseCall(std::move(operation));
|
||||||
else if (auto const& name = std::get<Identifier>(operation).name; m_dialect.builtin(name))
|
auto identifier = std::get<Identifier>(operation);
|
||||||
fatalParserError(7104_error, "Builtin function \"" + name.str() + "\" must be called.");
|
if (m_dialect.builtin(identifier.name))
|
||||||
return std::get<Identifier>(operation);
|
fatalParserError(
|
||||||
|
7104_error,
|
||||||
|
identifier.location,
|
||||||
|
"Builtin function \"" + identifier.name.str() + "\" must be called."
|
||||||
|
);
|
||||||
|
return identifier;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user