mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
TypeProvider: storageType() to make all parameters explicit
This commit is contained in:
parent
bf43eebea9
commit
a2a3b007f3
@ -182,7 +182,7 @@ void ReferencesResolver::endVisit(UserDefinedTypeName const& _typeName)
|
||||
_typeName.annotation().referencedDeclaration = declaration;
|
||||
|
||||
if (StructDefinition const* structDef = dynamic_cast<StructDefinition const*>(declaration))
|
||||
_typeName.annotation().type = TypeProvider::structType(*structDef);
|
||||
_typeName.annotation().type = TypeProvider::structType(*structDef, DataLocation::Storage);
|
||||
else if (EnumDefinition const* enumDef = dynamic_cast<EnumDefinition const*>(declaration))
|
||||
_typeName.annotation().type = TypeProvider::enumType(*enumDef);
|
||||
else if (ContractDefinition const* contract = dynamic_cast<ContractDefinition const*>(declaration))
|
||||
|
@ -266,7 +266,7 @@ TypeNameAnnotation& TypeName::annotation() const
|
||||
|
||||
TypePointer StructDefinition::type() const
|
||||
{
|
||||
return TypeProvider::typeType(TypeProvider::structType(*this));
|
||||
return TypeProvider::typeType(TypeProvider::structType(*this, DataLocation::Storage));
|
||||
}
|
||||
|
||||
TypeDeclarationAnnotation& StructDefinition::annotation() const
|
||||
|
@ -173,7 +173,7 @@ public:
|
||||
|
||||
static TypeType const* typeType(Type const* _actualType);
|
||||
|
||||
static StructType const* structType(StructDefinition const& _struct, DataLocation _location = DataLocation::Storage);
|
||||
static StructType const* structType(StructDefinition const& _struct, DataLocation _location);
|
||||
|
||||
static ModifierType const* modifierType(ModifierDefinition const& _modifierDef);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user