18#ifndef LIB_CIRCT_TOOLS_CIRCT_VERILOG_LSP_SERVER_VERILOGSERVER_H_
19#define LIB_CIRCT_TOOLS_CIRCT_VERILOG_LSP_SERVER_VERILOGSERVER_H_
21#include "llvm/ADT/StringRef.h"
22#include "llvm/Support/LSP/Protocol.h"
40struct VerilogServerOptions;
42 llvm::lsp::TextDocumentContentChangeEvent;
57 int64_t version, std::vector<Diagnostic> &diagnostics);
62 llvm::ArrayRef<TextDocumentContentChangeEvent> changes,
63 int64_t version, std::vector<Diagnostic> &diagnostics);
72 std::vector<llvm::lsp::Location> &locations);
76 std::vector<llvm::lsp::Location> &references);
80 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.