| 180 | } |
| 181 | |
| 182 | CallableDeclaration const* DocStringAnalyser::resolveInheritDoc( |
| 183 | std::set<CallableDeclaration const*> const& _baseFuncs, |
| 184 | StructurallyDocumented const& _node, |
| 185 | StructurallyDocumentedAnnotation& _annotation |
| 186 | ) |
| 187 | { |
| 188 | if (_annotation.inheritdocReference == nullptr) |
| 189 | return nullptr; |
| 190 | |
| 191 | if (auto const callable = findBaseCallable(_baseFuncs, _annotation.inheritdocReference->id())) |
| 192 | return callable; |
| 193 | |
| 194 | m_errorReporter.docstringParsingError( |
| 195 | 4682_error, |
| 196 | _node.documentation()->location(), |
| 197 | "Documentation tag @inheritdoc references contract \"" + |
| 198 | _annotation.inheritdocReference->name() + |
| 199 | "\", but the contract does not contain a function that is overridden by this function." |
| 200 | ); |
| 201 | |
| 202 | return nullptr; |
| 203 | } |
nothing calls this directly
no test coverage detected