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:
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user