mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[libsolidity] Types: eliminate redundant MagicType::metaType() (use TypeProvider instead)
This commit is contained in:
parent
a99a460c79
commit
b83097bdc6
@ -231,7 +231,7 @@ TypePointers TypeChecker::typeCheckMetaTypeFunctionAndRetrieveReturnType(Functio
|
|||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
return {MagicType::metaType(dynamic_cast<TypeType const&>(*firstArgType).actualType())};
|
return {TypeProvider::metaType(dynamic_cast<TypeType const&>(*firstArgType).actualType())};
|
||||||
}
|
}
|
||||||
|
|
||||||
void TypeChecker::endVisit(InheritanceSpecifier const& _inheritance)
|
void TypeChecker::endVisit(InheritanceSpecifier const& _inheritance)
|
||||||
|
@ -3415,11 +3415,6 @@ string ModuleType::toString(bool) const
|
|||||||
return string("module \"") + m_sourceUnit.annotation().path + string("\"");
|
return string("module \"") + m_sourceUnit.annotation().path + string("\"");
|
||||||
}
|
}
|
||||||
|
|
||||||
MagicType const* MagicType::metaType(TypePointer _type)
|
|
||||||
{
|
|
||||||
return TypeProvider::metaType(_type);
|
|
||||||
}
|
|
||||||
|
|
||||||
string MagicType::richIdentifier() const
|
string MagicType::richIdentifier() const
|
||||||
{
|
{
|
||||||
switch (m_kind)
|
switch (m_kind)
|
||||||
|
@ -1346,9 +1346,6 @@ public:
|
|||||||
|
|
||||||
Category category() const override { return Category::Magic; }
|
Category category() const override { return Category::Magic; }
|
||||||
|
|
||||||
/// Factory function for meta type
|
|
||||||
static MagicType const* metaType(TypePointer _type);
|
|
||||||
|
|
||||||
TypeResult binaryOperatorResult(Token, Type const*) const override
|
TypeResult binaryOperatorResult(Token, Type const*) const override
|
||||||
{
|
{
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
Loading…
Reference in New Issue
Block a user