Merge "Automatically inherit common properties."

This commit is contained in:
Steven Moreland
2019-07-31 15:47:51 +00:00
committed by Gerrit Code Review

View File

@@ -243,7 +243,8 @@ func (t *topDownMutatorContext) Rename(name string) {
} }
func (t *topDownMutatorContext) CreateModule(factory blueprint.ModuleFactory, props ...interface{}) { func (t *topDownMutatorContext) CreateModule(factory blueprint.ModuleFactory, props ...interface{}) {
t.bp.CreateModule(factory, props...) common := []interface{}{&t.Module().base().commonProperties}
t.bp.CreateModule(factory, append(common, props...)...)
} }
func (b *bottomUpMutatorContext) MutatorName() string { func (b *bottomUpMutatorContext) MutatorName() string {