ssa

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2025 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Overview

Package ssa implements SSA-based precision analysis for method usage.

Package ssa provides SSA-based reachability analysis for Go programs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Analyzer

type Analyzer struct {
	// contains filtered or unexported fields
}

Analyzer performs precise method usage analysis using SSA and call graphs.

func NewAnalyzer

func NewAnalyzer(pkgs []*packages.Package, strict bool) (*Analyzer, error)

NewAnalyzer creates a new SSA analyzer for the given packages.

func (*Analyzer) AnalyzeFuncs

func (sa *Analyzer) AnalyzeFuncs(funcs map[types.Object]*analysis.FuncInfo) error

AnalyzeFuncs performs SSA-based analysis to mark reachable functions as used.

type Set

type Set[T comparable] map[T]struct{}

Jump to

Keyboard shortcuts

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