MoveStatement.Name()

makes the graph printable for debugging
This commit is contained in:
James Bardin 2021-08-05 15:54:36 -04:00
parent 789317dc05
commit 08edb02270
1 changed files with 5 additions and 0 deletions

View File

@ -50,3 +50,8 @@ func (s *MoveStatement) ObjectKind() addrs.MoveEndpointKind {
// match it.
return s.From.ObjectKind()
}
// Name is used internally for displaying the statement graph
func (s *MoveStatement) Name() string {
return fmt.Sprintf("%s->%s", s.From, s.To)
}