Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit da7f362a authored by Spandan Das's avatar Spandan Das
Browse files

Update documentation for VisitDirectDeps

Calling this function for dependencies that are not android.Module
results in a hard error rather than a soft skip. Update the doc to
reflect this

Bug: 195369546
Test: TH
Change-Id: I18a0938c6536cf20f239cf98c601722aaecd51e6
parent ae863386
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -233,8 +233,8 @@ type BaseModuleContext interface {

	// VisitDirectDeps calls visit for each direct dependency.  If there are multiple
	// direct dependencies on the same module visit will be called multiple times on that module
	// and OtherModuleDependencyTag will return a different tag for each.  It skips any
	// dependencies that are not an android.Module.
	// and OtherModuleDependencyTag will return a different tag for each.  It raises an error if any of the
	// dependencies are not an android.Module.
	//
	// The Module passed to the visit function should not be retained outside of the visit
	// function, it may be invalidated by future mutators.