| 167 | } |
| 168 | |
| 169 | IDocumentation::Ptr DocumentationController::documentationForDeclaration(Declaration* decl) |
| 170 | { |
| 171 | if (!decl) |
| 172 | return {}; |
| 173 | |
| 174 | const auto documentationProviders = this->documentationProviders(); |
| 175 | for (IDocumentationProvider* doc : documentationProviders) { |
| 176 | qCDebug(SHELL) << "Documentation provider found:" << doc; |
| 177 | auto ret = doc->documentationForDeclaration(decl); |
| 178 | |
| 179 | qCDebug(SHELL) << "Documentation proposed: " << ret.data(); |
| 180 | if (ret) { |
| 181 | return ret; |
| 182 | } |
| 183 | } |
| 184 | |
| 185 | return {}; |
| 186 | } |
| 187 | |
| 188 | IDocumentation::Ptr DocumentationController::documentation(const QUrl& url) const |
| 189 | { |
no test coverage detected