|
|
|
@ -177,11 +177,7 @@ func FunctionFromGraph(g *gg.Graph, scope Scope) (Function, error) { |
|
|
|
|
|
|
|
|
|
if edgeVal.Graph != nil { |
|
|
|
|
|
|
|
|
|
opFromGraph, err := FunctionFromGraph( |
|
|
|
|
edgeVal.Graph, |
|
|
|
|
scope.NewScope(), |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
opFromGraph, err := FunctionFromGraph(edgeVal.Graph, scope) |
|
|
|
|
if err != nil { |
|
|
|
|
return nil, fmt.Errorf("compiling graph to operation: %w", err) |
|
|
|
|
} |
|
|
|
@ -198,7 +194,7 @@ func FunctionFromGraph(g *gg.Graph, scope Scope) (Function, error) { |
|
|
|
|
})), nil |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// the edgeVal is not an Function at compile time, and so
|
|
|
|
|
// the edgeVal is not a Function at compile time, and so
|
|
|
|
|
// it must become one at runtime. We must resolve edgeVal to an
|
|
|
|
|
// edgeFn as well (edgeEdgeFn), and then at runtime that is
|
|
|
|
|
// given the inArg and (hopefully) the resultant Function is
|
|
|
|
@ -217,8 +213,7 @@ func FunctionFromGraph(g *gg.Graph, scope Scope) (Function, error) { |
|
|
|
|
if runtimeEdgeVal.Graph != nil { |
|
|
|
|
|
|
|
|
|
runtimeFn, err := FunctionFromGraph( |
|
|
|
|
runtimeEdgeVal.Graph, |
|
|
|
|
scope.NewScope(), |
|
|
|
|
runtimeEdgeVal.Graph, scope, |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
if err != nil { |
|
|
|
|