completion

package
v0.2.0-rc9 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

Package completion provides facilities for auto-complete and hover information.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Completer

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

Completer provides completion and hover information.

func New

New creates a Completer.

func (*Completer) CompletionAt

func (c *Completer) CompletionAt(filename string, pos hcl.Pos) (ret lang.Candidates, _ error)

CompletionAt returns completion candidates for a given position in a file.

func (*Completer) HoverAt

func (c *Completer) HoverAt(filename string, pos hcl.Pos) (*lang.HoverData, error)

HoverAt returns hover data for a given position in a file.

func (*Completer) SignatureAtPos

func (c *Completer) SignatureAtPos(filename string, pos hcl.Pos) (*lang.FunctionSignature, error)

SignatureAtPos returns a function signature for the given pos if pos is inside a FunctionCallExpr

Jump to

Keyboard shortcuts

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