Home | History | Annotate | Download | only in cfg

Lines Matching defs:Block

59 	Blocks []*Block // block[0] is entry; order otherwise undefined
62 // A Block represents a basic block: a list of statements and
65 // A block may have 0-2 successors: zero for a return block or a block
67 // normal (jump) block; and two for a conditional (if) block.
68 type Block struct {
70 Succs []*Block // successor nodes in the graph
74 unreachable bool // is block of stmts following return/panic/for{}
75 succs2 [2]*Block // underlying array for Succs
105 func (b *Block) String() string {
106 return fmt.Sprintf("block %d (%s)", b.index, b.comment)
109 // Return returns the return statement at the end of this block if present, nil otherwise.
110 func (b *Block) Return() (ret *ast.ReturnStmt) {