just set CallNodes = nnkCallKinds, follows up #21829 (#21833)

These sets are now equal

(cherry picked from commit 9810b8cf7f)
This commit is contained in:
metagn
2023-05-11 21:50:01 +03:00
committed by narimiran
parent fcaacbf374
commit 6fbff263e6

View File

@@ -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,