Types
NimNodeStep = SliceStep[NimNodeIndex]
- Source Edit
PreOrderStep = object stack: SeqStack[NimNode] current: Optional[NimNode]
- Since 0.3.0. Source Edit
Funcs
func indexes(n: NimNode): Stream[NimNodeStep, NimNodeIndex] {...}{.raises: [], tags: [].}
- Source Edit
func indexesReverse(n: NimNode): Stream[NimNodeStep, NimNodeIndex] {...}{. raises: [Exception], tags: [RootEffect].}
- Since 0.3.0. Source Edit
func children(n: NimNode): Stream[NimNodeStep, NimNode] {...}{.raises: [Exception], tags: [RootEffect].}
- Source Edit
func childrenReverse(n: NimNode): Stream[NimNodeStep, NimNode] {...}{.raises: [Exception], tags: [RootEffect].}
- Since 0.3.0. Source Edit
func pairs(n: NimNode): Stream[NimNodeStep, tuple[index: NimNodeIndex, node: NimNode]] {...}{. raises: [Exception], tags: [RootEffect].}
- Source Edit
func preOrderStep(stack: SeqStack[NimNode]; current: Optional[NimNode]): PreOrderStep {...}{. raises: [], tags: [].}
- Since 0.3.0. Source Edit
func initPreOrder(root: NimNode): PreOrderStep {...}{.raises: [], tags: [].}
- Since 0.3.0. Source Edit
func hasMore(self: PreOrderStep): bool {...}{.raises: [], tags: [].}
- Since 0.3.0. Source Edit
func generate(self: PreOrderStep): NimNode {...}{.raises: [Exception, UnboxError], tags: [RootEffect].}
- Since 0.3.0. Source Edit
func next(self: PreOrderStep): PreOrderStep {...}{.raises: [Exception, UnboxError], tags: [RootEffect].}
- Since 0.3.0. Source Edit
func traversePreOrder(root: NimNode): Stream[PreOrderStep, NimNode] {...}{. raises: [Exception, UnboxError], tags: [RootEffect].}
-
Traverse the tree starting at root in pre-order.
Since 0.3.0.
Source Edit
Exports
-
../utils/nimnodes, secondChild, NimNodeIndex, high, low, firstChild, onClose, Loop, condition, run, asReader, stepper, takeWhile, generator, merge, ../stream/loop, breakIf, all, singleItemStream, scope, startingAt, emptyLoop, mapSteps, condition, reduceIfNotEmpty, generator, skip, Condition, Generator, stepType, sum, run, runOnce, mapSteps, emptyLoopScope, initializer, LoopScope, count, peek, asReader, dropWhile, infinite, zip, Stream, OnCloseEvent, itemType, runOnce, generator, run, merge, generating, scope, stepType, stepType, itemType, Initializer, findFirst, limit, map, map, loop, onCloseEvent, stepType, looped, Stepper, findFirst, count, stepper, emptyStream, none, reduce, mapSteps, ../stream/loop/loopscope, asReader, itemType, any, loop, infiniteLoop, filter, mapSteps, initialStep, stepType, mapSteps, ../stream, condition, stepper, onCloseEvent, dropWhile, merge, generator, stepType, startingAt, stepper, itemType, mapSteps, infiniteLoop, run, condition, generator, forEach, looped