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