server

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2021 License: AGPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ASTRangeToProtocolRange

func ASTRangeToProtocolRange(lr ast.LocationRange) protocol.Range

ASTRangeToProtocolRange translates a ast.LocationRange to a protocol.Range. The former is one indexed and the latter is zero indexed.

func Definition

func Definition(node ast.Node, params *protocol.DefinitionParams, vm *jsonnet.VM) (*protocol.DefinitionLink, error)

func NewProtocolRange

func NewProtocolRange(startLine, startCharacter, endLine, endCharacter int) protocol.Range

func NewServer

func NewServer(name, version string, client protocol.ClientCloser) *server

New returns a new language server.

Types

type NodeStack

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

func NewNodeStack

func NewNodeStack(from ast.Node) *NodeStack

func (*NodeStack) IsEmpty

func (s *NodeStack) IsEmpty() bool

func (*NodeStack) Pop

func (s *NodeStack) Pop() (*NodeStack, ast.Node)

func (*NodeStack) Push

func (s *NodeStack) Push(n ast.Node) *NodeStack

Jump to

Keyboard shortcuts

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