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:
@@ -90,6 +90,10 @@ type SingletonContext interface {
|
||||
|
||||
// OtherModulePropertyErrorf reports an error on the line number of the given property of the given module
|
||||
OtherModulePropertyErrorf(module Module, property string, format string, args ...interface{})
|
||||
|
||||
// HasMutatorFinished returns true if the given mutator has finished running.
|
||||
// It will panic if given an invalid mutator name.
|
||||
HasMutatorFinished(mutatorName string) bool
|
||||
}
|
||||
|
||||
type singletonAdaptor struct {
|
||||
@@ -286,3 +290,7 @@ func (s *singletonContextAdaptor) otherModuleProvider(module blueprint.Module, p
|
||||
func (s *singletonContextAdaptor) OtherModulePropertyErrorf(module Module, property string, format string, args ...interface{}) {
|
||||
s.blueprintSingletonContext().OtherModulePropertyErrorf(module, property, format, args...)
|
||||
}
|
||||
|
||||
func (s *singletonContextAdaptor) HasMutatorFinished(mutatorName string) bool {
|
||||
return s.blueprintSingletonContext().HasMutatorFinished(mutatorName)
|
||||
}
|
||||
|
Reference in New Issue
Block a user