summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-12-19 11:11:33 +0100
committerAndreas Rumpf <rumpf_a@web.de>2018-12-19 11:11:33 +0100
commit3300c8a500d0b730507180746278ecbd2a1ac1d0 (patch)
treeaec63bfafa9692b58dd1477d20050835d322dafc /lib
parent8e90ed06188ca27932028703b7f31640cdbfa99a (diff)
downloadNim-3300c8a500d0b730507180746278ecbd2a1ac1d0.tar.gz
much simpler implementation of constant tuple declarations
Diffstat (limited to 'lib')
-rw-r--r--lib/core/macros.nim7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/core/macros.nim b/lib/core/macros.nim
index 7f0bda080..291858bed 100644
--- a/lib/core/macros.nim
+++ b/lib/core/macros.nim
@@ -81,8 +81,7 @@ type
     nnkState,
     nnkBreakState,
     nnkFuncDef,
-    nnkTupleConstr,
-    nnkConstTuple
+    nnkTupleConstr
 
   NimNodeKinds* = set[NimNodeKind]
   NimTypeKind* = enum  # some types are no longer used, see ast.nim
@@ -278,9 +277,9 @@ when defined(nimHasSymOwnerInMacro):
 when defined(nimHasInstantiationOfInMacro):
   proc isInstantiationOf*(instanceProcSym, genProcSym: NimNode): bool {.magic: "SymIsInstantiationOf", noSideEffect.}
     ## check if proc symbol is instance of the generic proc symbol
-    ## useful to check proc symbols against generic symbols 
+    ## useful to check proc symbols against generic symbols
     ## returned by `bindSym`
- 
+
 proc getType*(n: NimNode): NimNode {.magic: "NGetType", noSideEffect.}
   ## with 'getType' you can access the node's `type`:idx:. A Nim type is
   ## mapped to a Nim AST too, so it's slightly confusing but it means the same