Lines Matching refs:o

76 func (o *OverrideModuleBase) setModuleDir(d string) {
77 o.moduleDir = d
80 func (o *OverrideModuleBase) ModuleDir() string {
81 return o.moduleDir
84 func (o *OverrideModuleBase) getOverridingProperties() []interface{} {
85 return o.overridingProperties
88 func (o *OverrideModuleBase) setOverridingProperties(properties []interface{}) {
89 o.overridingProperties = properties
92 func (o *OverrideModuleBase) getOverrideModuleProperties() *OverrideModuleProperties {
93 return &o.moduleProperties
96 func (o *OverrideModuleBase) GetOverriddenModuleName() string {
97 return proptools.String(o.moduleProperties.Base)
100 func (o *OverrideModuleBase) setOverriddenByPrebuilt(prebuilt Module) {
101 o.overriddenByPrebuilt = prebuilt
104 func (o *OverrideModuleBase) getOverriddenByPrebuilt() Module {
105 return o.overriddenByPrebuilt
121 addOverride(o OverrideModule)
124 override(ctx BaseModuleContext, bm OverridableModule, o OverrideModule)
166 func (o *OverridableModuleBase) moduleBase() *OverridableModuleBase {
167 return o
174 func (b *OverridableModuleBase) addOverride(o OverrideModule) {
176 b.overrides = append(b.overrides, o)
195 func (b *OverridableModuleBase) override(ctx BaseModuleContext, bm OverridableModule, o OverrideMod…
197 for _, op := range o.getOverridingProperties() {
215 b.overridableModuleProperties.OverriddenBy = o.Name()
216 b.overridableModuleProperties.OverriddenByModuleDir = o.ModuleDir()
275 if o, ok := baseModule.(OverridableModule); ok {
278 o.addOverride(overrideModule)
296 for i, o := range overrides {
297 variants[i+1] = o.(Module).Name()
300 } else if o, ok := ctx.Module().(OverrideModule); ok {
304 return []string{o.Name()}
311 if o, ok := ctx.Module().(OverrideModule); ok {
313 return o.Name()
324 } else if o, ok := ctx.Module().(OverrideModule); ok {
326 return o.Name()
333 if o, ok := ctx.Module().(OverrideModule); ok {
339 b.override(ctx, b, o)
373 if o := b.GetOverriddenBy(); o != "" {
377 ctx.ReplaceDependencies(o)