diff options
author | metagn <metagngn@gmail.com> | 2023-05-11 21:50:01 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-11 20:50:01 +0200 |
commit | 9810b8cf7ff85a306699d8393ce516501d938e05 (patch) | |
tree | 59f94ad11f6258d0e9834095fe6faec1ad2d9f12 /lib/core | |
parent | ebbad9e9604d778c32838c981c8748f3675d2659 (diff) | |
download | Nim-9810b8cf7ff85a306699d8393ce516501d938e05.tar.gz |
just set CallNodes = nnkCallKinds, follows up #21829 (#21833)
These sets are now equal
Diffstat (limited to 'lib/core')
-rw-r--r-- | lib/core/macros.nim | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/core/macros.nim b/lib/core/macros.nim index 2196a42be..3286d7861 100644 --- a/lib/core/macros.nim +++ b/lib/core/macros.nim @@ -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, |