Fork me on GitHub

src/arraymancer/private/ast_utils

  Source Edit

Procs

proc hasType(x: NimNode; t: static[string]): bool {.compileTime.}
Compile-time type checking   Source Edit
proc isAllInt(slice_args: NimNode): bool {.compileTime, ...raises: [], tags: [],
    forbids: [].}
Compile-time type checking   Source Edit
proc isBool(x: NimNode): bool {.compileTime, ...raises: [], tags: [], forbids: [].}
Compile-time type checking   Source Edit
proc isInt(x: NimNode): bool {.compileTime, ...raises: [], tags: [], forbids: [].}
Compile-time type checking   Source Edit
proc isOpenArray(x: NimNode): bool {.compileTime, ...raises: [], tags: [],
                                     forbids: [].}
Compile-time type checking   Source Edit
proc pop(tree: var NimNode): NimNode {.compileTime, ...raises: [], tags: [],
                                       forbids: [].}
varargsuntyped consumes all arguments so the actual value should be popped https://github.com/nim-lang/Nim/issues/5855   Source Edit
proc replaceNodes(ast: NimNode; replacements: NimNode; to_replace: NimNode): NimNode {.
    ...raises: [], tags: [], forbids: [].}
  Source Edit
proc replaceSymsByIdents(ast: NimNode): NimNode {....raises: [], tags: [],
    forbids: [].}
  Source Edit

Macros

macro getSubType(TT: typedesc): untyped
  Source Edit
Arraymancer Technical reference Tutorial Spellbook (How-To's) Under the hood