mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
fixup! Traverse object tree
This commit is contained in:
parent
3b99f598ca
commit
75d34815bf
@ -197,12 +197,11 @@ std::shared_ptr<Object> Object::objectAt(std::shared_ptr<Object> const& _object,
|
||||
{
|
||||
std::shared_ptr<Object> object = nullptr;
|
||||
traverseObjectTree(_object.get(), YulString(_qualifiedName), [&](Object const* _obj) -> bool {
|
||||
if (_qualifiedName.empty() || _qualifiedName == _obj->name.str())
|
||||
{
|
||||
if (!_qualifiedName.empty() && _qualifiedName != _obj->name.str())
|
||||
return false;
|
||||
|
||||
object = make_shared<Object>(*_obj);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
||||
return object;
|
||||
|
Loading…
Reference in New Issue
Block a user