- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for isChanLenCap (0.29 sec)
-
src/cmd/compile/internal/walk/builtin.go
(n.(*ir.UnaryExpr).X.Op() == ir.OBYTES2STR || n.(*ir.UnaryExpr).X.Op() == ir.OBYTES2STRTMP) } // isChanLenCap reports whether n is of the form len(c) or cap(c) for a channel c. // Note that this does not check for -n or instrumenting because this // is a correctness rewrite, not an optimization. func isChanLenCap(n ir.Node) bool { return (n.Op() == ir.OLEN || n.Op() == ir.OCAP) && n.(*ir.UnaryExpr).X.Type().IsChan()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 08 22:35:22 UTC 2024 - 31.2K bytes - Viewed (0)