Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	Depth  int
	ID     int
	Parent *Block
	Child  []*Block
	Root   ast.Node
}

type Graph

type Graph struct {
	Start    *Block
	Map      map[ast.Node]*Block
	Label    map[string]*ast.LabeledStmt
	Goto     map[string][]*ast.BranchStmt
	Break    map[string][]*ast.BranchStmt
	Continue map[string][]*ast.BranchStmt
	FileSet  *token.FileSet
}

func Build

func Build(fset *token.FileSet, x ast.Node) *Graph

func (*Graph) Dump

func (g *Graph) Dump() []byte

Source Files