Lines Matching refs:lg
21 Context(lg *LicenseGraph, path TargetEdgePath, edge *TargetEdge) interface{}
28 func (ctx NoEdgeContext) Context(lg *LicenseGraph, path TargetEdgePath, edge *TargetEdge) interface…
39 func (ctx ApplicableConditionsContext) Context(lg *LicenseGraph, path TargetEdgePath, edge *TargetE…
44 return conditionsAttachingAcrossEdge(lg, edge, universe)
50 type VisitNode func(lg *LicenseGraph, target *TargetNode, path TargetEdgePath) bool
54 func WalkTopDown(ctx EdgeContextProvider, lg *LicenseGraph, visit VisitNode) {
59 visitChildren := visit(lg, fnode, *path)
68 edgeContext = ctx.Context(lg, *path, edge)
76 for _, r := range lg.rootFiles {
78 walk(lg.targets[r])
84 func WalkTopDownBreadthFirst(ctx EdgeContextProvider, lg *LicenseGraph, visit VisitNode) {
95 edgeContext = ctx.Context(lg, *path, edge)
98 if visit(lg, edge.dependency, *path){
109 edgeContext = ctx.Context(lg, *path, edge)
118 rootsToWalk := make([]*TargetNode, 0, len(lg.rootFiles))
119 for _, r := range lg.rootFiles {
120 if visit(lg, lg.targets[r], *path){
121 rootsToWalk = append(rootsToWalk, lg.targets[r])
139 func WalkResolutionsForCondition(lg *LicenseGraph, conditions LicenseConditionSet) ResolutionSet {
140 shipped := ShippedNodes(lg)
150 …WalkTopDown(ApplicableConditionsContext{conditions}, lg, func(lg *LicenseGraph, tn *TargetNode, pa…
249 func WalkActionsForCondition(lg *LicenseGraph, conditions LicenseConditionSet) ActionSet {
255 for tn := range ShippedNodes(lg) {