callgraph

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package callgraph represents function call graph.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FuncVisitor

type FuncVisitor interface {
	Visit(f *ssa.Function)
}

FuncVisitor is an interface for analysing callgraph with a 'visit' function.

type Node

type Node struct {
	Func     *ssa.Function
	Children []*Node
}

func Build

func Build(main *ssa.Function) *Node

func (*Node) Traverse

func (node *Node) Traverse(v FuncVisitor)

Traverse callgraph in depth-first order.

Jump to

Keyboard shortcuts

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