MCPcopy Create free account
hub / github.com/dgraph-io/dgraph / extractVarNodes

Method extractVarNodes

query/query.go:1127–1137  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1125}
1126
1127func (mt *mathTree) extractVarNodes() []*mathTree {
1128 var nodeList []*mathTree
1129 for _, ch := range mt.Child {
1130 nodeList = append(nodeList, ch.extractVarNodes()...)
1131 }
1132 if mt.Var != "" {
1133 nodeList = append(nodeList, mt)
1134 return nodeList
1135 }
1136 return nodeList
1137}
1138
1139const numThreadsVariablePropogation = 4
1140

Callers 1

transformVarsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected