- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for walkExpr (0.09 sec)
-
src/cmd/compile/internal/walk/stmt.go
} var init ir.Nodes call := n.Call.(*ir.CallExpr) call.Fun = walkExpr(call.Fun, &init) if len(init) > 0 { init.Append(n) return ir.NewBlockStmt(n.Pos(), init) } return n } // walkIf walks an OIF node. func walkIf(n *ir.IfStmt) ir.Node { n.Cond = walkExpr(n.Cond, n.PtrInit()) walkStmtList(n.Body) walkStmtList(n.Else) return n
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 06 15:42:30 UTC 2023 - 4.7K bytes - Viewed (0) -
src/cmd/compile/internal/walk/closure.go
if x := clo.Prealloc; x != nil { if !types.Identical(typ, x.Type()) { panic("closure type does not match order's assigned type") } addr.Prealloc = x clo.Prealloc = nil } return walkExpr(cfn, init) } // closureArgs returns a slice of expressions that can be used to // initialize the given closure's free variables. These correspond // one-to-one with the variables in clo.Func.ClosureVars, and will be
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 20 15:56:08 UTC 2023 - 6.5K bytes - Viewed (0)