chautil

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package chautil provides helper functions related to class hierarchy analysis (CHA) for use in x/tools.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LazyCallees

func LazyCallees(fns map[*ssa.Function]bool) func(site ssa.CallInstruction) []*ssa.Function

LazyCallees returns a function that maps a call site (in a function in fns) to its callees within fns. The set of callees is computed using the CHA algorithm, i.e., on the entire implements relation between interfaces and concrete types in fns. Please see golang.org/x/tools/go/callgraph/cha for more information.

The resulting function is not concurrency safe.

Types

This section is empty.

Jump to

Keyboard shortcuts

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