diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2022-04-27 12:52:07 +0200 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2022-04-28 14:36:06 +0200 |
commit | 124d53937a088813a95317fcd535acc0cf69024a (patch) | |
tree | da0791ff614c444f21e27cc272d06c525c7dc311 /CC/proto/EXPRESSIONS | |
parent | d2fa5912a44a30602e6a4b14cdb99402a4e72a42 (diff) | |
download | rules-cc-124d53937a088813a95317fcd535acc0cf69024a.tar.gz |
rules: Consistently use new provider expressions
Diffstat (limited to 'CC/proto/EXPRESSIONS')
-rw-r--r-- | CC/proto/EXPRESSIONS | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/CC/proto/EXPRESSIONS b/CC/proto/EXPRESSIONS index 4b08a2c..cb7d8a2 100644 --- a/CC/proto/EXPRESSIONS +++ b/CC/proto/EXPRESSIONS @@ -1,16 +1,15 @@ { "protoc-deps": - { "expression": + { "imports": {"provider_list": ["./", "../..", "field_provider_list"]} + , "expression": { "type": "disjoint_map_union" , "$1": - { "type": "foreach" - , "var": "dep" - , "range": {"type": "FIELD", "name": "deps"} - , "body": - { "type": "DEP_PROVIDES" - , "dep": {"type": "var", "name": "dep"} - , "provider": "protoc-deps" - , "default": {"type": "empty_map"} - } + { "type": "let*" + , "bindings": + [ ["fieldname", "deps"] + , ["provider", "protoc-deps"] + , ["default", {"type": "empty_map"}] + ] + , "body": {"type": "CALL_EXPRESSION", "name": "provider_list"} } } } |