mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-04-11 15:00:46 -04:00
This function was previously quite long and complex, so this commit splits it into a number of smaller functions. The previous code structure was made more awkward by having to work around all being together in one function -- particularly the part iterating over the values used in an expression -- and so the new layout is quite different and thus the diff is hard to read. However, there are intentionally no test changes in this commit to help us be confident that this has not regressed anything, and the existing unit tests for this component seem quite comprehensive. Signed-off-by: Martin Atkins <mart@degeneration.co.uk>