- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for NewNilExpr (0.14 sec)
-
src/cmd/compile/internal/typecheck/func.go
"go/token" ) // MakeDotArgs package all the arguments that match a ... T parameter into a []T. func MakeDotArgs(pos src.XPos, typ *types.Type, args []ir.Node) ir.Node { if len(args) == 0 { return ir.NewNilExpr(pos, typ) } args = append([]ir.Node(nil), args...) lit := ir.NewCompLitExpr(pos, ir.OCOMPLIT, typ, args) lit.SetImplicit(true) n := Expr(lit) if n.Type() == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 06 15:23:18 UTC 2024 - 21.1K bytes - Viewed (0)