mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Added additional functions for UserDefinedValueType
This is a safety check, when the custom types get extended in the future.
This commit is contained in:
parent
137c890039
commit
7faaa94c6e
@ -1121,6 +1121,25 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
bool containsNestedMapping() const override
|
||||
{
|
||||
solAssert(nameable(), "Called for a non nameable type.");
|
||||
solAssert(!underlyingType().containsNestedMapping(), "");
|
||||
return false;
|
||||
}
|
||||
|
||||
bool hasSimpleZeroValueInMemory() const override
|
||||
{
|
||||
solAssert(underlyingType().hasSimpleZeroValueInMemory(), "");
|
||||
return true;
|
||||
}
|
||||
|
||||
bool dataStoredIn(DataLocation _loc) const override
|
||||
{
|
||||
solAssert(!underlyingType().dataStoredIn(_loc), "");
|
||||
return false;
|
||||
}
|
||||
|
||||
std::string toString(bool _short) const override;
|
||||
std::string canonicalName() const override { solAssert(false, ""); }
|
||||
std::string signatureInExternalFunction(bool) const override { solAssert(false, ""); }
|
||||
|
Loading…
Reference in New Issue
Block a user