// The result of walkStmt MUST be assigned back to n, e.g. // // n.Left = walkStmt(n.Left) func walkStmt(n ir.Node) ir.Node { … } func walkStmtList(s []ir.Node) { … } // walkFor walks an OFOR node. func walkFor(n *ir.ForStmt) ir.Node { … } // validGoDeferCall reports whether call is a valid call to appear in // a go or defer statement; that is, whether it's a regular function // call without arguments or results. func validGoDeferCall(call ir.Node) bool { … } // walkGoDefer walks an OGO or ODEFER node. func walkGoDefer(n *ir.GoDeferStmt) ir.Node { … } // walkIf walks an OIF node. func walkIf(n *ir.IfStmt) ir.Node { … }