summaryrefslogtreecommitdiff
path: root/python/testing.go
diff options
context:
space:
mode:
author Cole Faust <colefaust@google.com> 2022-01-31 15:48:29 -0800
committer Cole Faust <colefaust@google.com> 2022-02-02 14:59:59 -0800
commitdd569aea070f6068090c0ed4abe5863f41544e13 (patch)
tree616e6d16780c226536d8f36fb016ccc658b9e852 /python/testing.go
parent7940c6a5b5d0be18da17e515a1cdceb84b3be3c7 (diff)
Return starlarkNodes from the functions that parse them
Currently, mk2rbc is structured around having a global "receiver" object that accepts all starlarkNodes. As soon as they are parsed they are added to the receiver. Returning the parsed nodes to the calling function is more flexible, as it allows the calling function to restructure them as necessary. This is the first step to supporting complicated statements involving $(eval), such as `$(foreach v,$(MY_LIST),$(eval MY_LIST_2 += $(v)))` Test: go test Change-Id: Ia194123cf090d2b9559a25b975ccbc5749357cc0
Diffstat (limited to 'python/testing.go')
0 files changed, 0 insertions, 0 deletions