mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-03 19:52:36 +00:00
These sets are now equal
(cherry picked from commit 9810b8cf7f)
This commit is contained in:
@@ -1176,8 +1176,7 @@ const
|
||||
nnkIteratorDef, nnkTemplateDef, nnkConverterDef, nnkMacroDef}
|
||||
AtomicNodes* = {nnkNone..nnkNilLit}
|
||||
# see matching set nnkCallKinds above
|
||||
CallNodes* = {nnkCall, nnkInfix, nnkPrefix, nnkPostfix, nnkCommand,
|
||||
nnkCallStrLit, nnkHiddenCallConv}
|
||||
CallNodes* = nnkCallKinds
|
||||
|
||||
proc expectKind*(n: NimNode; k: set[NimNodeKind]) =
|
||||
## Checks that `n` is of kind `k`. If this is not the case,
|
||||
|
||||
Reference in New Issue
Block a user