buildssa

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: BSD-3-Clause Imports: 5 Imported by: 278

Documentation

Overview

Package buildssa defines an Analyzer that constructs the SSA representation of an error-free package and returns the set of all functions within it. It does not report any diagnostics itself but may be used as an input to other analyzers.

Index

Constants

This section is empty.

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name:       "buildssa",
	Doc:        "build SSA-form IR for later passes",
	URL:        "https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/buildssa",
	Run:        run,
	ResultType: reflect.TypeOf(new(SSA)),
}

Functions

This section is empty.

Types

type SSA

type SSA struct {
	Pkg      *ssa.Package
	SrcFuncs []*ssa.Function
}

SSA provides SSA-form intermediate representation for all the source functions in the current package.

Jump to

Keyboard shortcuts

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