tools: golang.org/x/tools/go/analysis/passes/buildssa Index | Files

package buildssa

import "golang.org/x/tools/go/analysis/passes/buildssa"

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.

THIS INTERFACE IS EXPERIMENTAL AND MAY BE SUBJECT TO INCOMPATIBLE CHANGE.

Index

Package Files

buildssa.go

Variables

var Analyzer = &analysis.Analyzer{
    Name:       "buildssa",
    Doc:        "build SSA-form IR for later passes",
    Run:        run,
    ResultType: reflect.TypeOf(new(SSA)),
}

type SSA Uses

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

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

Package buildssa imports 5 packages (graph) and is imported by 11 packages. Updated 2019-07-16. Refresh now. Tools for package owners.