Lines Matching refs:d
130 func (d *DepSet) walk(visit func(Paths)) {
133 var dfs func(d *DepSet)
134 dfs = func(d *DepSet) {
135 visited[d] = true
136 if d.preorder {
137 visit(d.direct)
139 for _, dep := range d.transitive {
145 if !d.preorder {
146 visit(d.direct)
150 dfs(d)
159 func (d *DepSet) ToList() Paths {
161 d.walk(func(paths Paths) {
165 if d.reverse {
173 func (d *DepSet) ToSortedList() Paths {
174 list := d.ToList()