From c6e36f8df07b58b84e818db6fbac0c43a5426c6d Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Fri, 4 Dec 2015 08:54:09 -0500 Subject: [PATCH] nitcc_rt: make the depth visitor lazy Signed-off-by: Jean Privat --- lib/nitcc_runtime.nit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nitcc_runtime.nit b/lib/nitcc_runtime.nit index d74e246..a85b22b 100644 --- a/lib/nitcc_runtime.nit +++ b/lib/nitcc_runtime.nit @@ -343,7 +343,7 @@ abstract class Node fun children: SequenceRead[nullable Node] is abstract # A point of view of a depth-first visit of all non-null children - var depth: Collection[Node] = new DephCollection(self) + var depth: Collection[Node] = new DephCollection(self) is lazy # Visit all the children of the node with the visitor `v` protected fun visit_children(v: Visitor) -- 1.7.9.5