| 322 | } |
| 323 | |
| 324 | FunctionType 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 | |
| 333 | ModifierType const* OverrideProxy::modifierType() const |
| 334 | { |
no test coverage detected