macros.treeRepr + friends: collapse SymChoice (#18072)

* macros.treeRepr + friends: collapse SymChoice

* make repr+friends work with invalid symchoice nodes

* address comment
This commit is contained in:
Timothee Cour
2021-06-04 21:58:26 -07:00
committed by GitHub
parent a2b6081256
commit 3cc547f2df
4 changed files with 151 additions and 43 deletions

View File

@@ -1,3 +1,9 @@
#[
xxx macros tests need to be reorganized to makes sure each API is tested once
See also:
tests/macros/tdumpast.nim for treeRepr + friends
]#
import std/macros
block: # hasArgOfName