From 86771326fe280c4e724a85fb6e440c14bf8755a6 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Wed, 1 May 2024 14:19:51 -0700 Subject: [PATCH] Update docs for ReplaceDependencies[If] Update docs for ReplaceDependencies[If] to match changes in blueprint. Bug: 319288033 Flag: NONE Test: all soong tests pass Change-Id: I7c79d3ac8dd80946760eb89b6577dc9965cb1541 --- android/mutator.go | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/android/mutator.go b/android/mutator.go index 75ba65048..46ae5b255 100644 --- a/android/mutator.go +++ b/android/mutator.go @@ -293,15 +293,14 @@ type BottomUpMutatorContext interface { // WalkDeps, etc. AddInterVariantDependency(tag blueprint.DependencyTag, from, to blueprint.Module) - // ReplaceDependencies replaces all dependencies on the identical variant of the module with the - // specified name with the current variant of this module. Replacements don't take effect until - // after the mutator pass is finished. + // ReplaceDependencies finds all the variants of the module with the specified name, then + // replaces all dependencies onto those variants with the current variant of this module. + // Replacements don't take effect until after the mutator pass is finished. ReplaceDependencies(string) - // ReplaceDependencies replaces all dependencies on the identical variant of the module with the - // specified name with the current variant of this module as long as the supplied predicate returns - // true. - // + // ReplaceDependenciesIf finds all the variants of the module with the specified name, then + // replaces all dependencies onto those variants with the current variant of this module + // as long as the supplied predicate returns true. // Replacements don't take effect until after the mutator pass is finished. ReplaceDependenciesIf(string, blueprint.ReplaceDependencyPredicate)