Use fully qualified name of super in message

This commit is contained in:
Federico Bond
2017-08-11 22:45:25 +01:00
committed by Alex Beregszaszi
parent a5ceaac8df
commit ff5bb54e3c
3 changed files with 13 additions and 4 deletions
+9
View File
@@ -371,6 +371,15 @@ string FunctionDefinition::externalSignature() const
return FunctionType(*this).externalSignature();
}
string FunctionDefinition::fullyQualifiedName() const
{
auto const* contract = dynamic_cast<ContractDefinition const*>(scope());
solAssert(contract, "Enclosing scope of function definition was not set.");
auto fname = name().empty() ? "<fallback>" : name();
return sourceUnitName() + ":" + contract->name() + "." + fname;
}
FunctionDefinitionAnnotation& FunctionDefinition::annotation() const
{
if (!m_annotation)