28 const auto doc = m_codeModelManager->openDocumentByUrl(
29 QQmlLSUtils::lspUriToQmlUrl(request->m_parameters.textDocument.uri));
30 const auto qmlFileItem = doc.snapshot.validDoc.fileObject(QQmlJS::Dom::GoTo::MostLikely);
31 QList<QLspSpecification::DocumentSymbol> results;
32 ResponseScopeGuard guard(results, request->m_response);
33 if (qmlFileItem.internalKind() != QQmlJS::Dom::DomType::QmlFile)
35 results = DocumentSymbolUtils::assembleSymbolsForQmlFile(qmlFileItem);
36 DocumentSymbolUtils::reorganizeForOutlineView(results);