Add HasMutatorFinished
To enforce that selects are only evaluated after a certain point in a followup cl. Bug: 323382414 Test: m nothing --no-skip-soong-tests Change-Id: Ib215fedb904aa2e5f4d65cfd26a23f527eb4983e
This commit is contained in:
@@ -220,6 +220,10 @@ type BaseModuleContext interface {
|
||||
// EvaluateConfiguration makes ModuleContext a valid proptools.ConfigurableEvaluator, so this context
|
||||
// can be used to evaluate the final value of Configurable properties.
|
||||
EvaluateConfiguration(condition proptools.ConfigurableCondition, property string) proptools.ConfigurableValue
|
||||
|
||||
// HasMutatorFinished returns true if the given mutator has finished running.
|
||||
// It will panic if given an invalid mutator name.
|
||||
HasMutatorFinished(mutatorName string) bool
|
||||
}
|
||||
|
||||
type baseModuleContext struct {
|
||||
@@ -270,6 +274,10 @@ func (b *baseModuleContext) setProvider(provider blueprint.AnyProviderKey, value
|
||||
b.bp.SetProvider(provider, value)
|
||||
}
|
||||
|
||||
func (b *baseModuleContext) HasMutatorFinished(mutatorName string) bool {
|
||||
return b.bp.HasMutatorFinished(mutatorName)
|
||||
}
|
||||
|
||||
func (b *baseModuleContext) GetDirectDepWithTag(name string, tag blueprint.DependencyTag) blueprint.Module {
|
||||
return b.bp.GetDirectDepWithTag(name, tag)
|
||||
}
|
||||
|
Reference in New Issue
Block a user