terraform/internal/refactoring
Martin Atkins 83f0376673 refactoring: ApplyMoves new return type
When we originally stubbed ApplyMoves we didn't know yet how exactly we'd
be using the result, so we made it a double-indexed map allowing looking
up moves in both directions.

However, in practice we only actually need to look up old addresses by new
addresses, and so this commit first removes the double indexing so that
each move is only represented by one element in the map.

We also need to describe situations where a move was blocked, because in
a future commit we'll generate some warnings in those cases. Therefore
ApplyMoves now returns a MoveResults object which contains both a map of
changes and a map of blocks. The map of blocks isn't used yet as of this
commit, but we'll use it in a later commit to produce warnings within
the "terraform" package.
2021-09-22 09:01:10 -07:00
..
testdata refactoring: ImpliedMoveStatements function 2021-09-20 09:06:22 -07:00
move_execute.go refactoring: ApplyMoves new return type 2021-09-22 09:01:10 -07:00
move_execute_test.go refactoring: ApplyMoves new return type 2021-09-22 09:01:10 -07:00
move_statement.go refactoring: ImpliedMoveStatements function 2021-09-20 09:06:22 -07:00
move_statement_test.go refactoring: ImpliedMoveStatements function 2021-09-20 09:06:22 -07:00
move_validate.go refactoring: First round of ValidateMoves rules 2021-07-29 12:29:36 -07:00
move_validate_test.go refactoring: ApplyMoves new return type 2021-09-22 09:01:10 -07:00