Lines Matching refs:b
153 func (b *OverridableModuleBase) setOverridableProperties(prop []interface{}) {
154 b.overridableProperties = prop
157 func (b *OverridableModuleBase) addOverride(o OverrideModule) {
158 b.overridesLock.Lock()
159 b.overrides = append(b.overrides, o)
160 b.overridesLock.Unlock()
164 func (b *OverridableModuleBase) getOverrides() []OverrideModule {
165 b.overridesLock.Lock()
166 sort.Slice(b.overrides, func(i, j int) bool {
167 return b.overrides[i].Name() < b.overrides[j].Name()
169 b.overridesLock.Unlock()
170 return b.overrides
173 func (b *OverridableModuleBase) setOverridesProperty(overridesProperty *[]string) {
174 b.overridesProperty = overridesProperty
178 func (b *OverridableModuleBase) override(ctx BaseModuleContext, o OverrideModule) {
179 for _, p := range b.overridableProperties {
195 if b.overridesProperty != nil {
196 *b.overridesProperty = append(*b.overridesProperty, ctx.ModuleName())
198 b.overridableModuleProperties.OverriddenBy = o.Name()
205 func (b *OverridableModuleBase) GetOverriddenBy() string {
206 return b.overridableModuleProperties.OverriddenBy
209 func (b *OverridableModuleBase) OverridablePropertiesDepsMutator(ctx BottomUpMutatorContext) {
268 if b, ok := ctx.Module().(OverridableModule); ok {
269 overrides := b.getOverrides()
301 if b, ok := ctx.Module().(OverridableModule); ok {
302 b.OverridablePropertiesDepsMutator(ctx)
307 if b, ok := ctx.Module().(OverridableModule); ok {
308 if o := b.GetOverriddenBy(); o != "" {