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
42c92cf342
commit
3b99f598ca
@ -145,7 +145,11 @@ set<YulString> Object::qualifiedDataNames() const
|
|||||||
return qualifiedNames;
|
return qualifiedNames;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Object::traverseObjectTree(Object const* _object, YulString _qualifiedName, std::function<bool(Object const*)> _visitor)
|
void Object::traverseObjectTree(
|
||||||
|
Object const* _object,
|
||||||
|
YulString _qualifiedName,
|
||||||
|
std::function<bool(Object const*)> const& _visitor
|
||||||
|
)
|
||||||
{
|
{
|
||||||
yulAssert(!_qualifiedName.empty(), "");
|
yulAssert(!_qualifiedName.empty(), "");
|
||||||
|
|
||||||
|
@ -122,7 +122,7 @@ public:
|
|||||||
static void traverseObjectTree(
|
static void traverseObjectTree(
|
||||||
Object const* _object,
|
Object const* _object,
|
||||||
YulString _qualifiedName,
|
YulString _qualifiedName,
|
||||||
std::function<bool(Object const*)> _visitor
|
std::function<bool(Object const*)> const& _visitor
|
||||||
);
|
);
|
||||||
|
|
||||||
/// sub id for object if it is subobject of another object, max value if it is not subobject
|
/// sub id for object if it is subobject of another object, max value if it is not subobject
|
||||||
|
Loading…
Reference in New Issue
Block a user