mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-26 17:01:04 -06:00
069f379e75
This commit refactors NodeApplyableOutput and NodeDestroyableOutput into the new Execute() pattern, collapsing the functions in eval_output.go into one place. I also reverted a recent decision to have Execute take a _pointer_ to a walkOperation: I was thinking of interfaces, not constant bytes, so all it did was cause problems. And finally I removed eval_lang.go, which was unused.
10 lines
380 B
Go
10 lines
380 B
Go
package terraform
|
|
|
|
// GraphNodeExecutable is the interface that graph nodes must implement to
|
|
// enable execution. This is an alternative to GraphNodeEvalable, which is in
|
|
// the process of being removed. A given graph node should _not_ implement both
|
|
// GraphNodeExecutable and GraphNodeEvalable.
|
|
type GraphNodeExecutable interface {
|
|
Execute(EvalContext, walkOperation) error
|
|
}
|