diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-11-05 16:27:27 +0100 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-11-06 14:37:16 +0100 |
commit | ee8a8d511fb5c8d0cbad8a5979759ce853e8d767 (patch) | |
tree | d9061a648fba7cffe3d6dd6b39f4543afd669d40 /CC | |
parent | 9e7f2b68357dc1fbd073244e5a242a8317c8207d (diff) | |
download | rules-cc-ee8a8d511fb5c8d0cbad8a5979759ce853e8d767.tar.gz |
Use quote and quasi-quote to simplify some expressions
Diffstat (limited to 'CC')
-rw-r--r-- | CC/test/EXPRESSIONS | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/CC/test/EXPRESSIONS b/CC/test/EXPRESSIONS index b42401b..18028f8 100644 --- a/CC/test/EXPRESSIONS +++ b/CC/test/EXPRESSIONS @@ -348,19 +348,16 @@ } ] , [ "artifacts" - , { "type": "map_union" + , { "type": "`" , "$1": - [ { "type": "singleton_map" - , "key": "pwd" - , "value": {"type": "BLOB", "data": "/summary"} - } - , {"type": "var", "name": "summary"} - , { "type": "singleton_map" - , "key": "work" - , "value": + { "pwd": + {"type": ",", "$1": {"type": "BLOB", "data": "/summary"}} + , "work": + { "type": "," + , "$1": {"type": "TREE", "$1": {"type": "var", "name": "attempts"}} } - ] + } } ] , [ "runfiles" |