14#ifndef LIB_CIRCT_TOOLS_CIRCT_VERILOG_LSP_SERVER_VERILOGSERVER_H_
15#define LIB_CIRCT_TOOLS_CIRCT_VERILOG_LSP_SERVER_VERILOGSERVER_H_
17#include "llvm/ADT/StringRef.h"
18#include "llvm/Support/LSP/Protocol.h"
36struct VerilogServerOptions;
38 llvm::lsp::TextDocumentContentChangeEvent;
53 int64_t version, std::vector<Diagnostic> &diagnostics);
58 llvm::ArrayRef<TextDocumentContentChangeEvent> changes,
59 int64_t version, std::vector<Diagnostic> &diagnostics);
68 std::vector<llvm::lsp::Location> &locations);
72 std::vector<llvm::lsp::Location> &references);
76 std::unique_ptr<Impl>
impl;
This class implements all of the Verilog related functionality necessary for a language server.
std::optional< int64_t > removeDocument(const URIForFile &uri)
Remove the document with the given uri.
void updateDocument(const URIForFile &uri, llvm::ArrayRef< TextDocumentContentChangeEvent > changes, int64_t version, std::vector< Diagnostic > &diagnostics)
Update the document, with the provided version, at the given URI.
void addDocument(const URIForFile &uri, llvm::StringRef contents, int64_t version, std::vector< Diagnostic > &diagnostics)
Add the document, with the provided version, at the given URI.
std::unique_ptr< Impl > impl
void getLocationsOf(const URIForFile &uri, const llvm::lsp::Position &defPos, std::vector< llvm::lsp::Location > &locations)
Return the locations of the object pointed at by the given position.
void findReferencesOf(const URIForFile &uri, const llvm::lsp::Position &pos, std::vector< llvm::lsp::Location > &references)
Find all references of the object pointed at by the given position.
llvm::lsp::TextDocumentContentChangeEvent TextDocumentContentChangeEvent
llvm::lsp::URIForFile URIForFile
llvm::lsp::Diagnostic Diagnostic
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.