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

Function sliceNode

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

Source from the content-addressed store, hash-verified

339}
340
341func sliceNode(depth int) string {
342 return oneOf(list[string]{
343 {fmt.Sprintf("%v[%v:%v]", node(depth-1), node(depth-1), node(depth-1)), 100},
344 {fmt.Sprintf("%v[%v:]", node(depth-1), node(depth-1)), 100},
345 {fmt.Sprintf("%v[:%v]", node(depth-1), node(depth-1)), 100},
346 {fmt.Sprintf("%v[:]", node(depth-1)), 1},
347 })
348}
349
350func conditionalNode(depth int) string {
351 return oneOf(list[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…