From 797563bec4974ad90cbc8a1b7b02b5a24f20c981 Mon Sep 17 00:00:00 2001 From: Sasha Smundak Date: Thu, 14 Feb 2019 10:58:48 -0800 Subject: [PATCH] Export CollapseDuplicateProperties, Soong writedocs uses it --- bootstrap/bpdoc/bpdoc.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bootstrap/bpdoc/bpdoc.go b/bootstrap/bpdoc/bpdoc.go index 7d15e80..ffb2cc0 100644 --- a/bootstrap/bpdoc/bpdoc.go +++ b/bootstrap/bpdoc/bpdoc.go @@ -228,7 +228,7 @@ propertyStructLoop: for _, from := range mt.PropertyStructs { for _, to := range collapsed { if from.Name == to.Name { - collapseDuplicateProperties(&to.Properties, &from.Properties) + CollapseDuplicateProperties(&to.Properties, &from.Properties) continue propertyStructLoop } } @@ -237,13 +237,13 @@ propertyStructLoop: mt.PropertyStructs = collapsed } -func collapseDuplicateProperties(to, from *[]Property) { +func CollapseDuplicateProperties(to, from *[]Property) { propertyLoop: for _, f := range *from { for i := range *to { t := &(*to)[i] if f.Name == t.Name { - collapseDuplicateProperties(&t.Properties, &f.Properties) + CollapseDuplicateProperties(&t.Properties, &f.Properties) continue propertyLoop } }