lang: interfaces: Partially change Graph signature

This makes some of the Graph sig changes to prepare the code for proper
functions. The remaining bits will happen later.

Co-authored-by: Samuel Gélineau <gelisam@gmail.com>
This commit is contained in:
James Shubin
2023-08-11 13:38:27 -04:00
parent b27b809ea9
commit f1d6f70cd2

View File

@@ -120,11 +120,9 @@ type Expr interface {
// returns the collection to the caller. // returns the collection to the caller.
Unify() ([]Invariant, error) Unify() ([]Invariant, error)
// Graph returns the reactive function graph expressed by this node. // Graph returns the reactive function graph expressed by this node. It
Graph() (*pgraph.Graph, error) // also returns the function for this node.
Graph() (*pgraph.Graph, Func, error)
// Func returns a function that represents this reactively.
Func() (Func, error)
// SetValue stores the result of the last computation of this expression // SetValue stores the result of the last computation of this expression
// node. // node.