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

Method originalFunctionType

libsolidity/analysis/OverrideChecker.cpp:324–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

322}
323
324FunctionType const* OverrideProxy::originalFunctionType() const
325{
326 return std::visit(GenericVisitor{
327 [&](FunctionDefinition const* _item) { return TypeProvider::function(*_item); },
328 [&](VariableDeclaration const*) -> FunctionType const* { solAssert(false, "Requested specific function type of variable."); return nullptr; },
329 [&](ModifierDefinition const*) -> FunctionType const* { solAssert(false, "Requested specific function type of modifier."); return nullptr; }
330 }, m_item);
331}
332
333ModifierType const* OverrideProxy::modifierType() const
334{

Callers 1

checkOverrideMethod · 0.80

Calls 1

functionFunction · 0.85

Tested by

no test coverage detected