|
@ -376,6 +376,7 @@ public: |
|
|
explicit ReferenceType(DataLocation _location): m_location(_location) {} |
|
|
explicit ReferenceType(DataLocation _location): m_location(_location) {} |
|
|
DataLocation location() const { return m_location; } |
|
|
DataLocation location() const { return m_location; } |
|
|
|
|
|
|
|
|
|
|
|
virtual TypePointer unaryOperatorResult(Token::Value _operator) const override; |
|
|
virtual unsigned memoryHeadSize() const override { return 32; } |
|
|
virtual unsigned memoryHeadSize() const override { return 32; } |
|
|
|
|
|
|
|
|
/// @returns a copy of this type with location (recursively) changed to @a _location,
|
|
|
/// @returns a copy of this type with location (recursively) changed to @a _location,
|
|
@ -444,7 +445,6 @@ public: |
|
|
{} |
|
|
{} |
|
|
|
|
|
|
|
|
virtual bool isImplicitlyConvertibleTo(Type const& _convertTo) const override; |
|
|
virtual bool isImplicitlyConvertibleTo(Type const& _convertTo) const override; |
|
|
virtual TypePointer unaryOperatorResult(Token::Value _operator) const override; |
|
|
|
|
|
virtual bool operator==(const Type& _other) const override; |
|
|
virtual bool operator==(const Type& _other) const override; |
|
|
virtual unsigned getCalldataEncodedSize(bool _padded) const override; |
|
|
virtual unsigned getCalldataEncodedSize(bool _padded) const override; |
|
|
virtual bool isDynamicallySized() const override { return m_hasDynamicLength; } |
|
|
virtual bool isDynamicallySized() const override { return m_hasDynamicLength; } |
|
@ -545,7 +545,6 @@ public: |
|
|
//@todo only storage until we have non-storage structs
|
|
|
//@todo only storage until we have non-storage structs
|
|
|
ReferenceType(DataLocation::Storage), m_struct(_struct) {} |
|
|
ReferenceType(DataLocation::Storage), m_struct(_struct) {} |
|
|
virtual bool isImplicitlyConvertibleTo(const Type& _convertTo) const override; |
|
|
virtual bool isImplicitlyConvertibleTo(const Type& _convertTo) const override; |
|
|
virtual TypePointer unaryOperatorResult(Token::Value _operator) const override; |
|
|
|
|
|
virtual bool operator==(Type const& _other) const override; |
|
|
virtual bool operator==(Type const& _other) const override; |
|
|
virtual unsigned getCalldataEncodedSize(bool _padded) const override; |
|
|
virtual unsigned getCalldataEncodedSize(bool _padded) const override; |
|
|
virtual u256 getStorageSize() const override; |
|
|
virtual u256 getStorageSize() const override; |
|
|