MCPcopy Create free account
hub / github.com/argotorg/solidity / isVisibleAsUnqualifiedName

Method isVisibleAsUnqualifiedName

libsolidity/ast/AST.cpp:685–695  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

683}
684
685bool Declaration::isVisibleAsUnqualifiedName() const
686{
687 if (!scope())
688 return true;
689 if (isStructMember() || isEnumValue() || isEventOrErrorParameter())
690 return false;
691 if (auto const* functionDefinition = dynamic_cast<FunctionDefinition const*>(scope()))
692 if (!functionDefinition->isImplemented())
693 return false; // parameter of a function without body
694 return true;
695}
696
697DeclarationAnnotation& Declaration::annotation() const
698{

Callers 1

registerDeclarationMethod · 0.80

Calls 1

isImplementedMethod · 0.80

Tested by

no test coverage detected