Documentation
¶
Index ¶
- func ASTRangeToProtocolRange(lr ast.LocationRange) protocol.Range
- func Definition(node ast.Node, params *protocol.DefinitionParams, vm *jsonnet.VM) (*protocol.DefinitionLink, error)
- func NewProtocolRange(startLine, startCharacter, endLine, endCharacter int) protocol.Range
- func NewServer(name, version string, client protocol.ClientCloser) *server
- type NodeStack
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 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 ¶
Click to show internal directories.
Click to hide internal directories.