diff options
| author | Martin Atkins <mart@degeneration.co.uk> | 2024-05-08 17:52:51 -0700 |
|---|---|---|
| committer | Martin Atkins <mart@degeneration.co.uk> | 2024-05-09 11:32:15 -0700 |
| commit | 9a64c17c75059d9c8f5d94f2265c00026ac48781 (patch) | |
| tree | 9d67ba69c4ea52eeeb7a0288df657b9a2cf3af4f /traversal_for_expr.go | |
| parent | bc757658ca11c5d6d17f328d5672ac447c3efcff (diff) | |
dynblock: Preserve marks from for_each expression into result
Previously if the for_each expression was marked then expansion would
fail because marked expressions are never directly iterable.
Now instead we'll allow marked for_each and preserve the marks into the
values produced by the resulting block as much as we can. This runs into
the classic problem that HCL blocks are not values themselves and so
cannot carry marks directly, but we can at least make sure that the values
of any leaf arguments end up marked.
Diffstat (limited to 'traversal_for_expr.go')
0 files changed, 0 insertions, 0 deletions
