internal

package
v2.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 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