block

package
v0.0.0-...-5f7cd32 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2016 License: BSD-3-Clause Imports: 4 Imported by: 0

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

Jump to

Keyboard shortcuts

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