nixd
Loading...
Searching...
No Matches
Namespaces | Functions
Convert.h File Reference

Convert between LSP and nixf types. More...

#include "nixf/Basic/Diagnostic.h"
#include "nixf/Basic/Range.h"
#include "lspserver/Protocol.h"

Go to the source code of this file.

Namespaces

namespace  nixd
 

Functions

lspserver::Position nixd::toLSPPosition (llvm::StringRef Code, const nixf::LexerCursor &P)
 
nixf::Position nixd::toNixfPosition (const lspserver::Position &P)
 
nixf::PositionRange nixd::toNixfRange (const lspserver::Range &P)
 
lspserver::Range nixd::toLSPRange (llvm::StringRef Code, const nixf::LexerCursorRange &R)
 
int nixd::getLSPSeverity (nixf::Diagnostic::DiagnosticKind Kind)
 
llvm::SmallVector< lspserver::DiagnosticTag, 1 > nixd::toLSPTags (const std::vector< nixf::DiagnosticTag > &Tags)
 

Detailed Description

Convert between LSP and nixf types.

Definition in file Convert.h.