package xrefs
import "cuelang.org/go/internal/golangorgx/gopls/cache/xrefs"
Package xrefs defines the serializable index of cross-package references that is computed during type checking.
See ../references.go for the 'references' query.
Index ¶
- func Index(files []*parsego.File, pkg *types.Package, info *types.Info) []byte
- func Lookup(mp *metadata.Package, data []byte, targets map[metadata.PackagePath]map[objectpath.Path]struct{}) (locs []protocol.Location)
Functions ¶
func Index ¶
Index constructs a serializable index of outbound cross-references for the specified type-checked package.
func Lookup ¶
func Lookup(mp *metadata.Package, data []byte, targets map[metadata.PackagePath]map[objectpath.Path]struct{}) (locs []protocol.Location)
Lookup searches a serialized index produced by an indexPackage operation on m, and returns the locations of all references from m to any object in the target set. Each object is denoted by a pair of (package path, object path).
Source Files ¶
xrefs.go
- Version
- v0.12.0 (latest)
- Published
- Jan 30, 2025
- Platform
- linux/amd64
- Imports
- 10 packages
- Last checked
- 8 hours ago –
Tools for package owners.