Const tuple unpacking (#9964)
* tuple unpacking is now supported for consts * Move nkConstTuple to the end of TNodeKind * Add nnkConstTuple in macros.nim * Fix Formatting
This commit is contained in:
parent
3f917c8d91
commit
8e90ed0618
4 changed files with 77 additions and 31 deletions
|
|
@ -222,7 +222,8 @@ type
|
|||
nkState, # give a label to a code section (for iterators)
|
||||
nkBreakState, # special break statement for easier code generation
|
||||
nkFuncDef, # a func
|
||||
nkTupleConstr # a tuple constructor
|
||||
nkTupleConstr, # a tuple constructor
|
||||
nkConstTuple # a ``const (a, b) = expr`` construct
|
||||
|
||||
TNodeKinds* = set[TNodeKind]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue