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

Function sequenceNode

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

Source from the content-addressed store, hash-verified

357}
358
359func sequenceNode(depth int) string {
360 var items []string
361 for i := 0; i < oneOf(list[int]{
362 {2, 50},
363 {3, 25},
364 }); i++ {
365 items = append(items, node(depth-1))
366 }
367 if maybe() {
368 return strings.Join(items, "; ")
369 }
370 return fmt.Sprintf("(%v)", strings.Join(items, ", "))
371}
372
373func variableNode(depth int) string {
374 // Generate 1-3 variable declarations with diverse names and then make sure

Callers

nothing calls this directly

Calls 4

oneOfFunction · 0.85
nodeFunction · 0.85
maybeFunction · 0.85
SprintfMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…