Add SingletonContext::VisitDirectDepths[If] to Android proxy.

Adds the VisitDirectDepths[If] function from blueprint to the Android
SingletonContext proxy.

Bug: N/A
Test: N/A
Change-Id: I4037364ef11b545abc9a383db7e1e818854db68f
This commit is contained in:
Mitch Phillips 2019-10-16 15:00:12 -07:00
parent 5ffade1efb
commit 3a7a31b0c1
1 changed files with 12 additions and 0 deletions

View File

@ -52,6 +52,10 @@ type SingletonContext interface {
VisitAllModulesBlueprint(visit func(blueprint.Module))
VisitAllModules(visit func(Module))
VisitAllModulesIf(pred func(Module) bool, visit func(Module))
VisitDirectDeps(module Module, visit func(Module))
VisitDirectDepsIf(module Module, pred func(Module) bool, visit func(Module))
// Deprecated: use WalkDeps instead to support multiple dependency tags on the same module
VisitDepsDepthFirst(module Module, visit func(Module))
// Deprecated: use WalkDeps instead to support multiple dependency tags on the same module
@ -187,6 +191,14 @@ func (s *singletonContextAdaptor) VisitAllModulesIf(pred func(Module) bool, visi
s.SingletonContext.VisitAllModulesIf(predAdaptor(pred), visitAdaptor(visit))
}
func (s *singletonContextAdaptor) VisitDirectDeps(module Module, visit func(Module)) {
s.SingletonContext.VisitDirectDeps(module, visitAdaptor(visit))
}
func (s *singletonContextAdaptor) VisitDirectDepsIf(module Module, pred func(Module) bool, visit func(Module)) {
s.SingletonContext.VisitDirectDepsIf(module, predAdaptor(pred), visitAdaptor(visit))
}
func (s *singletonContextAdaptor) VisitDepsDepthFirst(module Module, visit func(Module)) {
s.SingletonContext.VisitDepsDepthFirst(module, visitAdaptor(visit))
}