Home | History | Annotate | Download | only in types

Lines Matching defs:dependency

18 	// Compute the object dependency graph and initialize
26 fmt.Println("Object dependency graph:")
28 // only print objects that may appear in the dependency graph
29 if obj, _ := obj.(dependency); obj != nil {
42 fmt.Println("Transposed object dependency graph (functions eliminated):")
78 // the cycle will be broken (dependency count will be reduced
89 // reduce dependency count of all dependent nodes
165 // Object dependency graph
167 // A dependency is an object that may be a dependency in an initialization
171 type dependency interface {
176 // A graphNode represents a node in the object dependency graph.
181 obj dependency // object represented by this node
196 // dependencyGraph computes the object dependency graph from the given objMap,
200 // M is the dependency (Object) -> graphNode mapping
201 M := make(map[dependency]*graphNode)
203 // only consider nodes that may be an initialization dependency
204 if obj, _ := obj.(dependency); obj != nil {
213 // for each dependency obj -> d (= deps[i]), create graph edges n->s and s->n
215 // only consider nodes that may be an initialization dependency
216 if d, _ := d.(dependency); d != nil {
226 // which are permitted. Yet such cycles may incorrectly inflate the dependency