Files
opentf/internal/command/views/json
Martin Atkins 5d03530483 command/views/json: Refactor NewDiagnostic into multiple functions
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>
2025-02-12 11:40:41 -08:00
..
2024-02-08 09:48:59 +00:00
2024-02-21 10:31:44 +02:00
2024-02-08 09:48:59 +00:00
2024-02-08 09:48:59 +00:00
2024-02-08 09:48:59 +00:00
2024-02-08 09:48:59 +00:00