internal

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildSSA

func BuildSSA(pkg *packages.Package, mode ssa.BuilderMode) (*ssa.Program, []*ssa.Function, error)

copy from golang.org/x/tools/analysis/passes/buildssa

Types

type Analyzer

type Analyzer struct {
	Name           string
	Doc            string
	Flags          *flag.FlagSet
	Config         *packages.Config
	SSABuilderMode ssa.BuilderMode
	Run            func(pass *Pass) error
}

type Pass

type Pass struct {
	*packages.Package
	SSA      *ssa.Program
	SrcFuncs []*ssa.Function
	Stdin    io.Reader
	Stdout   io.Writer
	Stderr   io.Writer
}

Jump to

Keyboard shortcuts

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