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

Function arrayNode

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

Source from the content-addressed store, hash-verified

315}
316
317func arrayNode(depth int) string {
318 var items []string
319 for i := 0; i < oneOf(list[int]{
320 {1, 100},
321 {2, 50},
322 {3, 25},
323 }); i++ {
324 items = append(items, node(depth-1))
325 }
326 return fmt.Sprintf("[%v]", strings.Join(items, ", "))
327}
328
329func mapNode(depth int) string {
330 var items []string

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…