hoshi-lang
dev
Yet another programming language
Loading...
Searching...
No Matches
hover.h
Go to the documentation of this file.
1
//
2
// Hover Provider for hoshi-lang LSP
3
//
4
5
#ifndef HOSHI_LANG_LSP_HOVER_H
6
#define HOSHI_LANG_LSP_HOVER_H
7
8
#include "
protocol.h
"
9
#include "
document.h
"
10
#include <optional>
11
12
namespace
lsp
{
13
14
class
HoverProvider
{
15
public
:
16
std::optional<Hover>
provide
(
Document
*doc,
const
Position
&pos);
17
18
private
:
19
std::optional<Hover>
hoverOnSymbol
(
Document
*doc,
const
Position
&pos);
20
};
21
22
}
// namespace lsp
23
24
#endif
// HOSHI_LANG_LSP_HOVER_H
lsp::HoverProvider
Definition
hover.h:14
lsp::HoverProvider::provide
std::optional< Hover > provide(Document *doc, const Position &pos)
Definition
hover.cpp:11
lsp::HoverProvider::hoverOnSymbol
std::optional< Hover > hoverOnSymbol(Document *doc, const Position &pos)
Definition
hover.cpp:54
document.h
lsp
Definition
completion.cpp:12
protocol.h
lsp::Document
Definition
document.h:23
lsp::Position
Definition
protocol.h:25
lsp
hover.h
Generated by
1.9.8