MCPcopy
hub / github.com/google/go-jsonnet / leftRecursiveDeep

Function leftRecursiveDeep

internal/formatter/jsonnetfmt.go:116–124  ·  view source on GitHub ↗

leftRecursiveDeep is the transitive closure of leftRecursive. It only returns nil when called with nil.

(expr ast.Node)

Source from the content-addressed store, hash-verified

114// leftRecursiveDeep is the transitive closure of leftRecursive.
115// It only returns nil when called with nil.
116func leftRecursiveDeep(expr ast.Node) ast.Node {
117 last := expr
118 left := leftRecursive(expr)
119 for left != nil {
120 last = left
121 left = leftRecursive(last)
122 }
123 return last
124}
125
126func openFodder(node ast.Node) *ast.Fodder {
127 return leftRecursiveDeep(node).OpenFodder()

Callers 2

VisitMethod · 0.85
openFodderFunction · 0.85

Calls 1

leftRecursiveFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…