resolve

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package resolve turns the store's unresolved_refs table into edges.

Resolve reads all unresolved references, attempts to locate a matching node for each one, inserts the resulting edges, then clears the table.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stats

type Stats struct {
	Resolved   int
	Unresolved int
}

Stats reports how many references were resolved vs. left unresolved.

func Resolve

func Resolve(s *store.Store, projectRoot string) (Stats, error)

Resolve processes all unresolved_refs in s, inserts edges for every ref that can be matched to a node, and then clears the table. projectRoot is used to read go.mod (if present) for cross-package Go module resolution.

Jump to

Keyboard shortcuts

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