langserver

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Capability

type Capability int
const (
	SemanticHighlightingCapability Capability
)

type LangServer

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

func NewServer

func NewServer(ctx context.Context, cln *client.Client) (*LangServer, error)

func (*LangServer) Listen

func (ls *LangServer) Listen(r io.Reader, w io.WriteCloser) error

type Scope

type Scope uint16
const (
	String Scope = iota
	Constant
	Numeric
	Variable
	Parameter
	Keyword
	Modifier
	Type
	Function
	Module
	Comment
)

func (Scope) String

func (s Scope) String() string

type TextDocument

type TextDocument struct {
	Identifier lsp.VersionedTextDocumentIdentifier
	Module     *ast.Module
	Err        error
}

func NewTextDocument

func NewTextDocument(ctx context.Context, uri lsp.DocumentURI, r io.Reader, dir ast.Directory) TextDocument

Jump to

Keyboard shortcuts

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