Home | History | Annotate | Download | only in cfg

Lines Matching defs:Return

32 // The CFG does contain Return statements; even implicit returns are
57 // The entry point is Blocks[0]; there may be multiple return blocks.
65 // A block may have 0-2 successors: zero for a return block or a block
74 unreachable bool // is block of stmts following return/panic/for{}
82 // call may return. For example, calls to panic, os.Exit, and log.Fatal
83 // do not return, so the builder can remove infeasible graph edges
95 // Make implicit return explicit.
98 Return: body.End() - 1,
102 return b.cfg
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) {
114 return
134 return buf.String()
141 return string(bytes.Replace(buf.Bytes(), []byte("\n"), []byte("\n\t"), -1))