From 5e9e1949f4c08ce09665b92aadf7ec7e518aab6a Mon Sep 17 00:00:00 2001 From: Michael Staib Date: Thu, 23 Feb 2017 19:06:31 +0000 Subject: Add the LABEL_KEYED_STRING_DICT type for attributes. This enables both native and Skylark rules to declare attributes which have labels/Targets as keys, and have string values. -- PiperOrigin-RevId: 148365033 MOS_MIGRATED_REVID=148365033 --- .../google/devtools/build/lib/query2/output/ProtoOutputFormatter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main/java/com/google/devtools/build/lib/query2/output') diff --git a/src/main/java/com/google/devtools/build/lib/query2/output/ProtoOutputFormatter.java b/src/main/java/com/google/devtools/build/lib/query2/output/ProtoOutputFormatter.java index 317888d073..66e1182c74 100644 --- a/src/main/java/com/google/devtools/build/lib/query2/output/ProtoOutputFormatter.java +++ b/src/main/java/com/google/devtools/build/lib/query2/output/ProtoOutputFormatter.java @@ -432,7 +432,8 @@ public class ProtoOutputFormatter extends AbstractUnorderedFormatter { if (attrType == Type.STRING_DICT || attrType == Type.STRING_DICT_UNARY || attrType == Type.STRING_LIST_DICT - || attrType == BuildType.LABEL_DICT_UNARY) { + || attrType == BuildType.LABEL_DICT_UNARY + || attrType == BuildType.LABEL_KEYED_STRING_DICT) { Map mergedDict = new HashMap<>(); for (Object possibleValue : possibleValues) { Map stringDict = (Map) possibleValue; -- cgit v1.2.3