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

Function methodNode

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

Source from the content-addressed store, hash-verified

232}
233
234func methodNode(depth int) string {
235 dot := "."
236 if maybe() {
237 dot = "?."
238 }
239 method := random(dict)
240 if maybe() {
241 return fmt.Sprintf("%v%v%v", node(depth-1), dot, method)
242 }
243 return fmt.Sprintf("%v%v[%v]", node(depth-1), dot, method)
244}
245
246func funcNode(_ int) string {
247 return random(dict)

Callers

nothing calls this directly

Calls 4

maybeFunction · 0.85
randomFunction · 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…