summary refs log tree commit diff stats
path: root/compiler/ast.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-04-13 17:06:46 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-04-13 17:45:58 +0200
commit47335aab4148b2cd5b28cd3012d6d6e0a0c82db7 (patch)
tree33c87e807f22b59d61dbe2aa0f42430c0d0399d3 /compiler/ast.nim
parentab426faa226f7041c60e671ad2a3ba79b46ee1c0 (diff)
downloadNim-47335aab4148b2cd5b28cd3012d6d6e0a0c82db7.tar.gz
introduce nkTupleConstr AST node for unary tuple construction; breaking change
Diffstat (limited to 'compiler/ast.nim')
-rw-r--r--compiler/ast.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/ast.nim b/compiler/ast.nim
index aa7250513..da7e828f2 100644
--- a/compiler/ast.nim
+++ b/compiler/ast.nim
@@ -221,7 +221,8 @@ type
     nkGotoState,          # used for the state machine (for iterators)
     nkState,              # give a label to a code section (for iterators)
     nkBreakState,         # special break statement for easier code generation
-    nkFuncDef             # a func
+    nkFuncDef,            # a func
+    nkTupleConstr         # a tuple constructor
 
   TNodeKinds* = set[TNodeKind]