| 794 | } |
| 795 | |
| 796 | QJsonObject references(const QString &filePath, const Position &pos) |
| 797 | { |
| 798 | QJsonObject textDocument { |
| 799 | { K_URI, QUrl::fromLocalFile(filePath).toString() } |
| 800 | }; |
| 801 | |
| 802 | QJsonObject position { |
| 803 | { K_CHARACTER, pos.character }, |
| 804 | { K_LINE, pos.line } |
| 805 | }; |
| 806 | |
| 807 | QJsonObject context { |
| 808 | { K_INCLUDEDECLARATION, true } |
| 809 | }; |
| 810 | |
| 811 | QJsonObject params { |
| 812 | { K_CONTEXT, context }, |
| 813 | { K_TEXTDOCUMENT, textDocument }, |
| 814 | { K_POSITION, position } |
| 815 | }; |
| 816 | |
| 817 | return params; |
| 818 | } |
| 819 | |
| 820 | QJsonObject documentHighlight(const QString &filePath, const Position &pos) |
| 821 | { |
no test coverage detected