Documentation

Overview

Package commandmeta provides metadata about LSP commands, by analyzing the command.Interface type.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	MethodName string
	Name       string
	// TODO(rFindley): I think Title can actually be eliminated. In all cases
	// where we use it, there is probably a more appropriate contextual title.
	Title  string
	Doc    string
	Args   []*Field
	Result types.Type
}

func Load

func Load() (*packages.Package, []*Command, error)

func (*Command) ID

func (c *Command) ID() string

type Field

type Field struct {
	Name    string
	Doc     string
	JSONTag string
	Type    types.Type
	// In some circumstances, we may want to recursively load additional field
	// descriptors for fields of struct types, documenting their internals.
	Fields []*Field
}

Source Files