lang: Rename the vertex names
Make it a bit more obvious what the generated nodes are for.
This commit is contained in:
@@ -314,7 +314,7 @@ func (obj *FilterFunc) replaceSubGraph(subgraphInput interfaces.Func) error {
|
||||
// "filterCombineList0" -> "outputListFunc"
|
||||
// "filterCombineList1" -> "outputListFunc"
|
||||
// "filterCombineList2" -> "outputListFunc"
|
||||
// "outputListFunc" -> "subgraphOutput"
|
||||
// "outputListFunc" -> "filterSubgraphOutput"
|
||||
// }
|
||||
const channelBasedSinkFuncArgNameEdgeName = structs.ChannelBasedSinkFuncArgName // XXX: not sure if the specific name matters.
|
||||
|
||||
@@ -333,7 +333,7 @@ func (obj *FilterFunc) replaceSubGraph(subgraphInput interfaces.Func) error {
|
||||
// create the new subgraph
|
||||
obj.outputChan = make(chan types.Value)
|
||||
subgraphOutput := &structs.ChannelBasedSinkFunc{
|
||||
Name: "subgraphOutput",
|
||||
Name: "filterSubgraphOutput",
|
||||
Target: obj,
|
||||
EdgeName: channelBasedSinkFuncArgNameEdgeName,
|
||||
Chan: obj.outputChan,
|
||||
|
||||
@@ -363,7 +363,7 @@ func (obj *MapFunc) replaceSubGraph(subgraphInput interfaces.Func) error {
|
||||
// "outputElem1" -> "outputListFunc"
|
||||
// "outputElem2" -> "outputListFunc"
|
||||
//
|
||||
// "outputListFunc" -> "subgraphOutput"
|
||||
// "outputListFunc" -> "mapSubgraphOutput"
|
||||
// }
|
||||
|
||||
const channelBasedSinkFuncArgNameEdgeName = structs.ChannelBasedSinkFuncArgName // XXX: not sure if the specific name matters.
|
||||
@@ -377,7 +377,7 @@ func (obj *MapFunc) replaceSubGraph(subgraphInput interfaces.Func) error {
|
||||
|
||||
obj.outputChan = make(chan types.Value)
|
||||
subgraphOutput := &structs.ChannelBasedSinkFunc{
|
||||
Name: "subgraphOutput",
|
||||
Name: "mapSubgraphOutput",
|
||||
Target: obj,
|
||||
EdgeName: channelBasedSinkFuncArgNameEdgeName,
|
||||
Chan: obj.outputChan,
|
||||
|
||||
@@ -212,7 +212,7 @@ func (obj *CallFunc) replaceSubGraph(newFuncValue *full.FuncValue) error {
|
||||
// ArgVertices[1] -> ...
|
||||
// ArgVertices[2] -> ...
|
||||
//
|
||||
// outputFunc -> "subgraphOutput"
|
||||
// outputFunc -> "callSubgraphOutput"
|
||||
// }
|
||||
|
||||
// delete the old subgraph
|
||||
@@ -233,7 +233,7 @@ func (obj *CallFunc) replaceSubGraph(newFuncValue *full.FuncValue) error {
|
||||
obj.outputChan = make(chan types.Value)
|
||||
edgeName := ChannelBasedSinkFuncArgName
|
||||
subgraphOutput := &ChannelBasedSinkFunc{
|
||||
Name: "subgraphOutput",
|
||||
Name: "callSubgraphOutput",
|
||||
Target: obj,
|
||||
EdgeName: edgeName,
|
||||
Chan: obj.outputChan,
|
||||
|
||||
Reference in New Issue
Block a user