refs

package
v0.29.2 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefinedInModule

func DefinedInModule(module *ast.Module, builtins map[string]*ast.Builtin) map[string]types.Ref

DefinedInModule returns a map of refs and details about them to be used in completions that were found in the given module.

func UsedInModule

func UsedInModule(ctx context.Context, module *ast.Module) ([]string, error)

UsedInModule returns a list of ref names suitable for completion that are used in the module's code. See the rego above for more details on what's included and excluded. This function is run when the parse completes for a module.

Types

This section is empty.

Jump to

Keyboard shortcuts

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