载入中...
搜索中...
未找到
#include "common/Export.h"#include "devtools/LanguageIndex.h"#include <string>#include <string_view>#include <vector>类 | |
| struct | eve::dev::lsp::FormatOptions |
| Editor formatting preferences from LSP FormattingOptions. 更多... | |
| struct | eve::dev::lsp::FoldingRange |
| One foldable region (0-based inclusive end line). 更多... | |
命名空间 | |
| namespace | eve |
| Build metadata (engine git commit, build time, third-party version). | |
| namespace | eve::dev |
| namespace | eve::dev::lsp |
函数 | |
| size_t | eve::dev::lsp::offsetAt (std::string_view source, Position position) noexcept |
| Converts an LSP position into a UTF-8 byte offset (same contract as the rest of the server). | |
| Range | eve::dev::lsp::documentRange (std::string_view source) noexcept |
| Full-document range covering every character in source. | |
| size_t | eve::dev::lsp::lastLineIndex (std::string_view source) noexcept |
| Last 0-based line index (empty source is line 0). | |
| Range | eve::dev::lsp::coveringLines (std::string_view source, size_t startLine, size_t endLineInclusive) noexcept |
Half-open LSP range covering startLine through endLine inclusive. Ends at the start of the following line when one exists. | |
| std::string | eve::dev::lsp::sliceLines (std::string_view source, size_t startLine, size_t endLineInclusive) |
Source bytes for coveringLines of the same line span. | |
| bool | eve::dev::lsp::applyIncremental (std::string &source, const Range *range, std::string_view text) |
| Applies one LSP content change. | |
| std::string | eve::dev::lsp::formatEveScript (std::string_view source, const FormatOptions &options={}) |
| Indents EveScript by braces/brackets and trims trailing whitespace. | |
| std::vector< FoldingRange > | eve::dev::lsp::foldingRanges (std::string_view source) |
| Brace, bracket, and block-comment folds that span more than one line. | |