lsp

package
v1.0.0-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2026 License: Apache-2.0, Apache-2.0 Imports: 7 Imported by: 0

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.

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server implements the mapping DSL LSP server.

func NewServer

func NewServer() *Server

NewServer creates a new mapping DSL LSP server with default handlers.

func (*Server) Run

func (srv *Server) Run()

Run starts the LSP server on stdio.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL