Change bpdoc to separate entries with the same type
Presently, entries in the Soong reference docs that share the same type are condensed into a single entry. This is very unintuitive, so this change removes that functionality. Fixes: 204441523 Test: bpdoc_test.go Test: build and compare Soong docs Change-Id: Ic03891a8a7a29b5f7ee58c01b2fa05a0c27e0a2b
This commit is contained in:
parent
0e306e7a89
commit
d14f342fa6
1 changed files with 0 additions and 26 deletions
|
@ -81,7 +81,6 @@ func AllPackages(pkgFiles map[string][]string, moduleTypeNameFactories map[strin
|
|||
removeEmptyPropertyStructs(mtInfo)
|
||||
collapseDuplicatePropertyStructs(mtInfo)
|
||||
collapseNestedPropertyStructs(mtInfo)
|
||||
combineDuplicateProperties(mtInfo)
|
||||
|
||||
// Add the ModuleInfo to the corresponding Package map/slice entries.
|
||||
pkg := pkgMap[mtInfo.PkgPath]
|
||||
|
@ -336,28 +335,3 @@ func collapseNestedProperties(p *[]Property) {
|
|||
}
|
||||
*p = n
|
||||
}
|
||||
|
||||
func combineDuplicateProperties(mt *ModuleType) {
|
||||
for _, ps := range mt.PropertyStructs {
|
||||
combineDuplicateSubProperties(&ps.Properties)
|
||||
}
|
||||
}
|
||||
|
||||
func combineDuplicateSubProperties(p *[]Property) {
|
||||
var n []Property
|
||||
propertyLoop:
|
||||
for _, child := range *p {
|
||||
if len(child.Properties) > 0 {
|
||||
combineDuplicateSubProperties(&child.Properties)
|
||||
for i := range n {
|
||||
s := &n[i]
|
||||
if s.SameSubProperties(child) {
|
||||
s.OtherNames = append(s.OtherNames, child.Name)
|
||||
continue propertyLoop
|
||||
}
|
||||
}
|
||||
}
|
||||
n = append(n, child)
|
||||
}
|
||||
*p = n
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue