diff options
author | Jaewoong Jung <jungjw@google.com> | 2019-02-06 16:20:17 -0800 |
---|---|---|
committer | Jaewoong Jung <jungjw@google.com> | 2019-02-08 15:48:27 -0800 |
commit | 781f6b2896e75d968694503884f1bff80d3e025c (patch) | |
tree | bd0ff2ff5044059f8b1e8234b9877dea8ebb68da /context.go | |
parent | 3eeabc79913c816643498135a9e5003209f27fbe (diff) | |
download | android_build_blueprint-781f6b2896e75d968694503884f1bff80d3e025c.tar.gz android_build_blueprint-781f6b2896e75d968694503884f1bff80d3e025c.tar.bz2 android_build_blueprint-781f6b2896e75d968694503884f1bff80d3e025c.zip |
bpdoc improvements
1. Extract module type documentation.
2. Support primary builder customization of factory function to use for
documentation for each module type.
3. Change the ModuleType list order so that they are grouped by package.
This is basically minor refactoring + readability improvement done on
top of https://github.com/google/blueprint/pull/232.
Change-Id: If7413e5ac23486b85f18d02fb3ba288a38730c32
Diffstat (limited to 'context.go')
-rw-r--r-- | context.go | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -2829,6 +2829,14 @@ func (c *Context) ModuleTypePropertyStructs() map[string][]interface{} { return ret } +func (c *Context) ModuleTypeFactories() map[string]ModuleFactory { + ret := make(map[string]ModuleFactory) + for k, v := range c.moduleFactories { + ret[k] = v + } + return ret +} + func (c *Context) ModuleName(logicModule Module) string { module := c.moduleInfo[logicModule] return module.Name() |