mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Apply suggestions from code review
Co-authored-by: matheusaaguiar <95899911+matheusaaguiar@users.noreply.github.com>
This commit is contained in:
parent
5c85818f50
commit
f5f3eaacb9
@ -117,9 +117,9 @@ KnowledgeBase::VariableOffset KnowledgeBase::explore(YulString _var)
|
|||||||
|
|
||||||
optional<KnowledgeBase::VariableOffset> KnowledgeBase::explore(Expression const& _value)
|
optional<KnowledgeBase::VariableOffset> KnowledgeBase::explore(Expression const& _value)
|
||||||
{
|
{
|
||||||
if (Literal const* literal = std::get_if<Literal>(&_value))
|
if (Literal const* literal = get_if<Literal>(&_value))
|
||||||
return VariableOffset{YulString{}, valueOfLiteral(*literal)};
|
return VariableOffset{YulString{}, valueOfLiteral(*literal)};
|
||||||
else if (Identifier const* identifier = std::get_if<Identifier>(&_value))
|
else if (Identifier const* identifier = get_if<Identifier>(&_value))
|
||||||
return explore(identifier->name);
|
return explore(identifier->name);
|
||||||
else if (FunctionCall const* f = get_if<FunctionCall>(&_value))
|
else if (FunctionCall const* f = get_if<FunctionCall>(&_value))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user