ssainspect

package module
v0.0.0-...-825d650 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: MIT Imports: 5 Imported by: 0

README

ssainspect

pkg.go.dev

This project is EXPERIMENTAL status. Do NOT use it for your production.

Author

Appify Technologies, Inc.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name: "ssainspect",
	Doc:  "make ssainspect.Inspector",
	Run:  runAnalyzer,
	Requires: []*analysis.Analyzer{
		buildssa.Analyzer,
	},
	ResultType: reflect.TypeOf((*Inspector)(nil)),
}

Functions

This section is empty.

Types

type Cursor

type Cursor struct {
	Func       *ssa.Function
	Block      *ssa.BasicBlock
	Instr      ssa.Instruction
	InstrIndex int
}

func (*Cursor) FirstInstr

func (c *Cursor) FirstInstr() bool

func (*Cursor) InCycle

func (c *Cursor) InCycle() bool

type Inspector

type Inspector struct {
	// contains filtered or unexported fields
}

func New

func New(funcs []*ssa.Function) *Inspector

func (*Inspector) Cursor

func (in *Inspector) Cursor() *Cursor

func (*Inspector) Next

func (in *Inspector) Next() bool

Jump to

Keyboard shortcuts

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