mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
slightly improve a var name
This commit is contained in:
parent
66e314b7a0
commit
d8173fb158
@ -87,17 +87,17 @@ public:
|
|||||||
}.printErrorInformation(_errors);
|
}.printErrorInformation(_errors);
|
||||||
}
|
}
|
||||||
|
|
||||||
shared_ptr<Object> getSubObject(shared_ptr<Object> const& _object, string const& _path)
|
shared_ptr<Object> getSubObject(shared_ptr<Object> const& _object, string const& _qualifiedPath)
|
||||||
{
|
{
|
||||||
if (_path.empty() || _path == _object->name.str())
|
if (_qualifiedPath.empty() || _qualifiedPath == _object->name.str())
|
||||||
return _object;
|
return _object;
|
||||||
|
|
||||||
yulAssert(
|
yulAssert(
|
||||||
boost::algorithm::starts_with(_path, _object->name.str() + "."),
|
boost::algorithm::starts_with(_qualifiedPath, _object->name.str() + "."),
|
||||||
"Assembly object not found."
|
"Assembly object not found."
|
||||||
);
|
);
|
||||||
|
|
||||||
const auto subObjectPath = _path.substr(_object->name.str().length() + 1);
|
const auto subObjectPath = _qualifiedPath.substr(_object->name.str().length() + 1);
|
||||||
const auto subObjectName = subObjectPath.substr(0, subObjectPath.find_first_of('.'));
|
const auto subObjectName = subObjectPath.substr(0, subObjectPath.find_first_of('.'));
|
||||||
|
|
||||||
auto subObjectIt = find_if(
|
auto subObjectIt = find_if(
|
||||||
|
Loading…
Reference in New Issue
Block a user