diff --git a/lang/interfaces/ast.go b/lang/interfaces/ast.go index 99bfb3ab..7de5ae00 100644 --- a/lang/interfaces/ast.go +++ b/lang/interfaces/ast.go @@ -86,7 +86,9 @@ type Stmt interface { TypeCheck() ([]*UnificationInvariant, error) // Graph returns the reactive function graph expressed by this node. It - // takes in the environment of any functions in scope. + // takes in the environment of any functions in scope. Intended to be + // called only once, creates and returns the graph and also stores it to + // be used in .Output if needed. Graph(env *Env) (*pgraph.Graph, error) // Output returns the output that this "program" produces. This output