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

These sets are now equal
This commit is contained in:
metagn
2023-05-11 21:50:01 +03:00
committed by GitHub
parent ebbad9e960
commit 9810b8cf7f

View File

@@ -1210,8 +1210,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,