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

Method isConstructorParameter

libsolidity/ast/AST.cpp:801–808  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

799}
800
801bool VariableDeclaration::isConstructorParameter() const
802{
803 if (!isCallableOrCatchParameter())
804 return false;
805 if (auto const* function = dynamic_cast<FunctionDefinition const*>(scope()))
806 return function->isConstructor();
807 return false;
808}
809
810bool VariableDeclaration::isLibraryFunctionParameter() const
811{

Callers 2

visitMethod · 0.80
endVisitMethod · 0.80

Calls 1

isConstructorMethod · 0.80

Tested by

no test coverage detected