MoveStatement.Name()
makes the graph printable for debugging
This commit is contained in:
parent
789317dc05
commit
08edb02270
|
@ -50,3 +50,8 @@ func (s *MoveStatement) ObjectKind() addrs.MoveEndpointKind {
|
||||||
// match it.
|
// match it.
|
||||||
return s.From.ObjectKind()
|
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)
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue