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

Function findBaseCallable

libsolidity/analysis/DocStringAnalyser.cpp:97–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97CallableDeclaration const* findBaseCallable(std::set<CallableDeclaration const*> const& _baseFunctions, int64_t _contractId)
98{
99 for (CallableDeclaration const* baseFuncCandidate: _baseFunctions)
100 if (baseFuncCandidate->annotation().contract->id() == _contractId)
101 return baseFuncCandidate;
102 else if (auto callable = findBaseCallable(baseFuncCandidate->annotation().baseFunctions, _contractId))
103 return callable;
104
105 return nullptr;
106}
107
108bool parameterNamesEqual(CallableDeclaration const& _a, CallableDeclaration const& _b)
109{

Callers 1

resolveInheritDocMethod · 0.85

Calls 1

idMethod · 0.45

Tested by

no test coverage detected