Index import dependencies for local scope scheduling
This commit is contained in:
@@ -53,11 +53,11 @@ type importTraversal struct {
|
||||
importGraph importInclusionGraph
|
||||
}
|
||||
|
||||
func (s *importTraversal) scheduleAcquisitionScopes(scope *acquisitionScope) {
|
||||
*scope = scheduleAcquisitionScope(*scope, s.importGraph)
|
||||
func scheduleAcquisitionScopes(scope *acquisitionScope, dependencies importDependencyIndex) {
|
||||
*scope = scheduleAcquisitionScope(*scope, dependencies)
|
||||
for index := range scope.contributions {
|
||||
if pending := scope.contributions[index].pendingItem; pending != nil {
|
||||
s.scheduleAcquisitionScopes(pending)
|
||||
scheduleAcquisitionScopes(pending, dependencies)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user