asyncIters/private/utils

  Source

Utility functions for working with Nim AST.

Procs

func copyLineInfoTo(info, arg: NimNode): NimNode {....raises: [], tags: [],
    forbids: [].}
  Source
func morphInto(prototype: NimNode; kind: NimNodeKind; indices: Slice[int]): NimNode {.
    ...raises: [], tags: [], forbids: [].}
Create a new node of type kind and add prototype[indices] as its children.   Source
func morphInto(prototype: NimNode; kind: NimNodeKind; start = 0): NimNode {.
    ...raises: [], tags: [], forbids: [].}
Create a new node of type kind and add prototype[start ..^ 1] as its children.   Source