buildir

package
v0.0.1-2020.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package buildir defines an Analyzer that constructs the IR 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

Constants

This section is empty.

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name:       "buildir",
	Doc:        "build IR for later passes",
	Run:        run,
	ResultType: reflect.TypeOf(new(IR)),
	FactTypes:  []analysis.Fact{new(willExit), new(willUnwind)},
}

Functions

This section is empty.

Types

type IR

type IR struct {
	Pkg      *ir.Package
	SrcFuncs []*ir.Function
}

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

Jump to

Keyboard shortcuts

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