Documentation
¶
Overview ¶
Package lsp provides a Language Server Protocol (LSP) server for the mapping DSL used in the UAST framework.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DocumentStore ¶
type DocumentStore struct {
// contains filtered or unexported fields
}
DocumentStore is a thread-safe store for document contents keyed by URI.
func NewDocumentStore ¶
func NewDocumentStore() *DocumentStore
NewDocumentStore creates a new empty DocumentStore.
func (*DocumentStore) Delete ¶
func (ds *DocumentStore) Delete(uri string)
Delete removes document content by URI.
func (*DocumentStore) Get ¶
func (ds *DocumentStore) Get(uri string) (string, bool)
Get retrieves document content by URI.
func (*DocumentStore) Set ¶
func (ds *DocumentStore) Set(uri, content string)
Set stores document content for the given URI.
Click to show internal directories.
Click to hide internal directories.