lang: Name the expr call graph differently

It was wrongly named func instead of call, although this doesn't
actually matter in terms of code execution.
This commit is contained in:
James Shubin
2019-05-22 14:07:25 -04:00
parent e2289dc2a0
commit 99d3ef42e9

View File

@@ -5400,7 +5400,7 @@ func (obj *ExprCall) Unify() ([]interfaces.Invariant, error) {
// children might. This returns a graph with a single vertex (itself) in it, and // children might. This returns a graph with a single vertex (itself) in it, and
// the edges from all of the child graphs to this. // the edges from all of the child graphs to this.
func (obj *ExprCall) Graph() (*pgraph.Graph, error) { func (obj *ExprCall) Graph() (*pgraph.Graph, error) {
graph, err := pgraph.NewGraph("func") graph, err := pgraph.NewGraph("call")
if err != nil { if err != nil {
return nil, errwrap.Wrapf(err, "could not create graph") return nil, errwrap.Wrapf(err, "could not create graph")
} }