aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/java/com/google/devtools/build/lib/skylark
diff options
context:
space:
mode:
authorGravatar David Chen <dzc@google.com>2016-07-05 09:05:22 +0000
committerGravatar Klaus Aehlig <aehlig@google.com>2016-07-05 10:27:45 +0000
commitc3112c2dea86cc64c6f68f4b7c9c620e014e620e (patch)
tree8330a2069ff1636a022c43a46f8216a3eeb3ce8f /src/test/java/com/google/devtools/build/lib/skylark
parente8d9c4cb9b7ce0a41cde67622997a86be876ede9 (diff)
Display all allowed types for SkylarkSignature Params that allow multiple
types. Fixes #921 Certain parameters, such as the `executable` and `command` parameters of ctx.action, allow multiple types. However, the allowed types are not enumerated in the SkylarkSignature annotation, causing the generated Skylark Library document to not display any type information for those params. This change adds a new field, `allowedTypes`, to `SkylarkSignature` that is a list of `ParamType` objects. If the param can accept multiple types, then `type` is set to `Object.class`, and `allowedTypes` is set to the list of types that can be accepted. -- MOS_MIGRATED_REVID=126617047
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/skylark')
0 files changed, 0 insertions, 0 deletions