decoder

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2021 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LanguageId added in v0.24.0

func LanguageId(ctx context.Context) (ilsp.LanguageID, bool)

func NewDecoder added in v0.24.0

func NewDecoder(ctx context.Context, pathReader decoder.PathReader) *decoder.Decoder

func WithLanguageId added in v0.24.0

func WithLanguageId(ctx context.Context, langId ilsp.LanguageID) context.Context

Types

type ModuleReader added in v0.24.0

type ModuleReader interface {
	ModuleByPath(modPath string) (*state.Module, error)
	List() ([]*state.Module, error)
	ModuleCalls(modPath string) ([]tfmod.ModuleCall, error)
	ModuleMeta(modPath string) (*tfmod.Meta, error)
}

type PathReader added in v0.24.0

type PathReader struct {
	ModuleReader ModuleReader
	SchemaReader state.SchemaReader
}

func (*PathReader) PathContext added in v0.24.0

func (mr *PathReader) PathContext(path lang.Path) (*decoder.PathContext, error)

func (*PathReader) Paths added in v0.24.0

func (mr *PathReader) Paths(ctx context.Context) []lang.Path

Jump to

Keyboard shortcuts

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