platform_build_blueprint/bootstrap
Spandan Das 1109cd96b7 bpdocs for struct types created using reflection
struct types defined using reflection have empty PkgPaths(), due to
which they were not added to the generated bpdocs. This CL allows
us to generate bpdocs for such struct types.

For each field in the struct, the algorithm checks the following and
creates a PropertyStruct object accordingly
1. If field is a primitive type (Base condition)
2. If field is another exported struct (Base condition)
3. If field is another struct created using reflection (Recurse)

Test: m soong_docs
Test: java_sdk_library_import before
https://ci.android.com/builds/submitted/7710820/linux/latest/view/java.html#java_sdk_library_import
and after
https://spandandas.users.x20web.corp.google.com/docs/java.html#java_sdk_library_import
Bug: 172797653

Change-Id: I0349e405fd290d427fa0b38a109b4212aace50c6
2021-09-20 22:33:05 +00:00
..
bpdoc bpdocs for struct types created using reflection 2021-09-20 22:33:05 +00:00
bpglob Speed up globs with sharding 2021-04-15 11:04:11 -07:00
bootstrap.go Remove UseValidationsForGoTests. 2021-09-08 15:32:52 +02:00
command.go Remove PrimaryBuilderExtraFlags and cull Args. 2021-09-08 09:35:56 +02:00
config.go Remove UseValidationsForGoTests. 2021-09-08 15:32:52 +02:00
glob.go Simplify bootstrapping: 2021-09-01 11:55:00 +02:00
writedocs.go Prefix file names with ctx.SrcDir() in docgen. 2021-09-08 09:34:56 +02:00