MCPcopy Index your code
hub / github.com/dgraph-io/dgraph / flatten

Function flatten

dql/parser.go:754–761  ·  view source on GitHub ↗
(vl []*Vars)

Source from the content-addressed store, hash-verified

752}
753
754func flatten(vl []*Vars) (needs []string, defines []string) {
755 needs, defines = make([]string, 0, 10), make([]string, 0, 10)
756 for _, it := range vl {
757 needs = append(needs, it.Needs...)
758 defines = append(defines, it.Defines...)
759 }
760 return
761}
762
763func checkDependency(vl []*Vars) error {
764 needs, defines := flatten(vl)

Callers 1

checkDependencyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected