diff options
author | chriseth <chris@ethereum.org> | 2018-08-07 01:02:07 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-07 01:02:07 +0800 |
commit | d33e5683f51dc9d85b4493abbf6f03f6ab7b8ff2 (patch) | |
tree | d2d4aa88a2bb88b8dc40694d27630383b4179f46 /libsolidity/ast/AST.cpp | |
parent | 0449b6446ebdafa18079277954b2ddc8cc1fc05c (diff) | |
parent | bd75d4268bd29b21cd92e557b7b126b33776ccea (diff) | |
download | dexon-solidity-d33e5683f51dc9d85b4493abbf6f03f6ab7b8ff2.tar.gz dexon-solidity-d33e5683f51dc9d85b4493abbf6f03f6ab7b8ff2.tar.zst dexon-solidity-d33e5683f51dc9d85b4493abbf6f03f6ab7b8ff2.zip |
Merge pull request #4557 from ethereum/ast-function-fqdn
Properly show constructor/fallback in FunctionDefinition.fullyQualfiedName
Diffstat (limited to 'libsolidity/ast/AST.cpp')
-rw-r--r-- | libsolidity/ast/AST.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/libsolidity/ast/AST.cpp b/libsolidity/ast/AST.cpp index 7719d080..7c3869a8 100644 --- a/libsolidity/ast/AST.cpp +++ b/libsolidity/ast/AST.cpp @@ -347,15 +347,6 @@ 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) |