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

Function Children

internal/parser/context.go:350–356  ·  view source on GitHub ↗

Children returns all children of a node. It supports ASTs before and after desugaring.

(node ast.Node)

Source from the content-addressed store, hash-verified

348
349// Children returns all children of a node. It supports ASTs before and after desugaring.
350func Children(node ast.Node) []ast.Node {
351 var result []ast.Node
352 result = append(result, DirectChildren(node)...)
353 result = append(result, thunkChildren(node)...)
354 result = append(result, specialChildren(node)...)
355 return result
356}
357
358func functionContext(funcName string) *string {
359 r := "function <" + funcName + ">"

Callers 8

findDependenciesMethod · 0.92
testChildrenFunction · 0.92
ChildrenFunction · 0.92
getImportsFunction · 0.92
checkSubexprFunction · 0.92
prepareTPWithPlaceholderFunction · 0.92
findVariablesFunction · 0.92
TraverseFunction · 0.92

Calls 3

DirectChildrenFunction · 0.85
thunkChildrenFunction · 0.85
specialChildrenFunction · 0.85

Tested by 1

testChildrenFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…