resolver

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseSearchPaths added in v1.7.3

func ParseSearchPaths(raw string) []string

ParseSearchPaths splits a path-list string on os.PathListSeparator, dropping empty entries. Returns nil for empty input.

func PathsFromInputs added in v1.7.3

func PathsFromInputs(explicit, fallback string, explicitSet bool) []string

PathsFromInputs returns the namespace search path from explicit and fallback inputs. When explicitSet is true the explicit value wins even if empty. Otherwise the fallback is used.

Types

type NSResolver

type NSResolver struct {

	// LoadedChunks captures the compiled bytecode for each user-loaded namespace.
	// Used by the compiler to serialize all namespaces into a bundle.
	LoadedChunks map[string]*vm.CodeChunk
	// LoadOrder preserves the order in which namespaces were loaded (dependency order).
	LoadOrder []string
	// contains filtered or unexported fields
}

func NewNSResolver

func NewNSResolver(ctx *compiler.Context, path []string) *NSResolver

func (*NSResolver) Load

func (r *NSResolver) Load(name string) *vm.Namespace

func (*NSResolver) SetPath

func (r *NSResolver) SetPath(path []string)

Jump to

Keyboard shortcuts

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