MCPcopy Index your code
hub / github.com/expr-lang/expr / callNode

Function callNode

test/gen/gen.go:250–269  ·  view source on GitHub ↗
(depth int)

Source from the content-addressed store, hash-verified

248}
249
250func callNode(depth int) string {
251 var args []string
252 for i := 0; i < oneOf(list[int]{
253 {0, 100},
254 {1, 100},
255 {2, 50},
256 {3, 25},
257 {4, 10},
258 {5, 5},
259 }); i++ {
260 args = append(args, node(depth-1))
261 }
262
263 fn := oneOf(list[fn]{
264 {methodNode, 2},
265 {funcNode, 2},
266 })(depth - 1)
267
268 return fmt.Sprintf("%v(%v)", fn, strings.Join(args, ", "))
269}
270
271func pipeNode(depth int) string {
272 a := node(depth - 1)

Callers

nothing calls this directly

Calls 3

oneOfFunction · 0.85
nodeFunction · 0.85
SprintfMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…