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 /proto | |
parent | d2fa5912a44a30602e6a4b14cdb99402a4e72a42 (diff) | |
download | rules-cc-124d53937a088813a95317fcd535acc0cf69024a.tar.gz |
rules: Consistently use new provider expressions
Diffstat (limited to 'proto')
-rw-r--r-- | proto/RULES | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/proto/RULES b/proto/RULES index 5d1b853..9c7c1a2 100644 --- a/proto/RULES +++ b/proto/RULES @@ -29,7 +29,10 @@ , "\"service library\"." ] } - , "imports": {"artifacts_list": ["./", "..", "field_artifacts_list"]} + , "imports": + { "artifacts_list": ["./", "..", "field_artifacts_list"] + , "list_provider": ["./", "..", "field_list_provider"] + } , "expression": { "type": "let*" , "bindings": @@ -68,17 +71,9 @@ ] ] , [ "deps" - , { "type": "++" - , "$1": - { "type": "foreach" - , "var": "x" - , "range": {"type": "FIELD", "name": "deps"} - , "body": - { "type": "DEP_PROVIDES" - , "dep": {"type": "var", "name": "x"} - , "provider": "proto" - } - } + , { "type": "let*" + , "bindings": [["fieldname", "deps"], ["provider", "proto"]] + , "body": {"type": "CALL_EXPRESSION", "name": "list_provider"} } ] , [ "node" |