nitcc_runtime :: DephIterator :: _stack
nitcc_runtime :: DephIterator :: stack
nitcc_runtime :: DephIterator :: stack=
nitcc_runtime $ DephIterator :: SELF
Type of this instance, automatically specialized in every classnitcc_runtime :: DephIterator :: _stack
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
core :: Object :: defaultinit
core :: Iterator :: defaultinit
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
core :: Object :: native_class_name
The class name of the object in CString format.Iterator
whose elements are sorted by the function
core :: Object :: output_class_name
Display class name on stdout (debug only).nitcc_runtime :: DephIterator :: stack
nitcc_runtime :: DephIterator :: stack=
private class DephIterator
super Iterator[Node]
var stack = new Array[Iterator[nullable Node]]
init(i: Iterator[nullable Node]) is old_style_init do
stack.push i
end
redef fun is_ok do return not stack.is_empty
redef fun item do return stack.last.item.as(not null)
redef fun next
do
var i = stack.last
stack.push i.item.children.iterator
i.next
while is_ok do
if not stack.last.is_ok then
stack.pop
continue
end
if stack.last.item == null then
stack.last.next
continue
end
return
end
end
end
lib/nitcc_runtime/nitcc_runtime.nit:438,1--466,3