Documentation
¶
Index ¶
- func CreateVar(diagnostic analysis.UnboundVariable, program parser.Program) lsp_types.TextEdit
- func NewConn(objStream jsonrpc2.MessageStream) *jsonrpc2.Conn
- func NewDocumentsStore[Doc any]() documentStore[Doc]
- func ParserToLspPosition(p parser.Position) lsp_types.Position
- func RunServer() error
- type InMemoryDocument
- type LsObjectStream
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDocumentsStore ¶ added in v0.0.11
func NewDocumentsStore[Doc any]() documentStore[Doc]
func ParserToLspPosition ¶ added in v0.0.16
Types ¶
type InMemoryDocument ¶
type InMemoryDocument struct { Text string CheckResult analysis.CheckResult }
type LsObjectStream ¶ added in v0.0.16
type LsObjectStream struct {
// contains filtered or unexported fields
}
func NewLsObjectStream ¶ added in v0.0.16
func NewLsObjectStream(in io.ReadCloser, out io.WriteCloser) LsObjectStream
func (*LsObjectStream) Close ¶ added in v0.0.16
func (s *LsObjectStream) Close() error
func (*LsObjectStream) ReadMessage ¶ added in v0.0.16
func (s *LsObjectStream) ReadMessage() (jsonrpc2.Message, error)
func (*LsObjectStream) WriteMessage ¶ added in v0.0.16
func (s *LsObjectStream) WriteMessage(obj jsonrpc2.Message) error
Click to show internal directories.
Click to hide internal directories.