xrefs

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package xrefs defines the serializable index of cross-package references that is computed during type checking.

See ../references.go for the 'references' query.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Index

func Index(files []*source.ParsedGoFile, pkg *types.Package, info *types.Info) []byte

Index constructs a serializable index of outbound cross-references for the specified type-checked package.

func Lookup

func Lookup(m *source.Metadata, data []byte, targets map[source.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).

Types

This section is empty.

Jump to

Keyboard shortcuts

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