Nim/tests/macros
Adam Strzelecki 1d47617d1b Macros: Introduce getType(t: typedesc): NimNode
Since typedesc are exception in macros and they are not implicitly converted to
NimNode on macro call, we need some means to perform such conversion on demand.

Fortunately it is as simple as declaring new magic "NGetType" proc with
typedesc parameter.

NOTE: Keeping actual macro exceptional behavior for typedesc is important,
since it allows passing typedesc macro parameter to other procs or macros
expecting type parameter. If typedesc parameter was implicitly converted, then
we would lost this ability.
2015-05-17 15:28:41 +02:00
..
macro_bug.nim added tests from issue #497 2015-02-01 04:37:34 -06:00
tbindsym.nim fixes #1319 2014-06-30 22:24:08 +02:00
tbugs.nim Rename PNimrodNode to NimNode 2015-03-17 17:50:32 +01:00
tclosuremacro.nim implemented 'koch pdf' 2014-12-19 13:44:56 +01:00
tdebugstmt.nim further adaptations 2014-08-29 09:12:12 +02:00
tdumpast.nim Rename PNimrodNode to NimNode 2015-03-17 17:50:32 +01:00
tdumpast2.nim Rename PNimrodNode to NimNode 2015-03-17 17:50:32 +01:00
tdumptree.nim Enable disabled test 2014-05-26 13:50:08 -04:00
texprcolonexpr.nim Fixes #1093. 2014-04-20 21:55:45 +01:00
tgensym.nim Rename PNimrodNode to NimNode 2015-03-17 17:50:32 +01:00
tgentemplates.nim Rename PNimrodNode to NimNode 2015-03-17 17:50:32 +01:00
tgettype.nim Macros: Introduce getType(t: typedesc): NimNode 2015-05-17 15:28:41 +02:00
tidgen.nim new tester; all tests categorized 2014-01-13 02:10:03 +01:00
tlexerex.nim parse 'of' branches for macros properly 2015-04-19 14:25:16 +02:00
tmacro1.nim Rename PNimrodNode to NimNode 2015-03-17 17:50:32 +01:00
tmacro2.nim better tester 2014-01-17 08:47:51 +01:00
tmacro3.nim Rename PNimrodNode to NimNode 2015-03-17 17:50:32 +01:00
tmacro4.nim Rename PNimrodNode to NimNode 2015-03-17 17:50:32 +01:00
tmacro5.nim Rename PNimrodNode to NimNode 2015-03-17 17:50:32 +01:00
tmacro_in_template.nim fixes #1944 2015-01-18 14:44:16 +01:00
tmacroaspragma.nim better tester 2014-01-17 08:47:51 +01:00
tmacrogenerics.nim macro tests almost green 2014-02-03 17:35:03 +01:00
tmacros1.nim Rename PNimrodNode to NimNode 2015-03-17 17:50:32 +01:00
tmacrostmt.nim better tester 2014-01-17 08:47:51 +01:00
tmacrotypes.nim tester reports ignored tests and supports 'nimout'; fixes #2211 2015-02-25 12:59:32 +01:00
tmemit.nim fixes tmemit regression 2014-03-26 22:56:56 +01:00
tnimnode_for_runtime.nim Rename PNimrodNode to NimNode 2015-03-17 17:50:32 +01:00
tprintf.nim better tester 2014-01-17 08:47:51 +01:00
tquotewords.nim better tester 2014-01-17 08:47:51 +01:00
trecmacro.nim better tester 2014-01-17 08:47:51 +01:00
treturnsempty.nim fixes #2372 2015-04-25 23:16:57 +02:00
tsame_name_497.nim tester reports ignored tests and supports 'nimout'; fixes #2211 2015-02-25 12:59:32 +01:00
tstringinterp.nim Rename PNimrodNode to NimNode 2015-03-17 17:50:32 +01:00
ttryparseexpr.nim minor lexer cleanups; fixes #2504 2015-04-10 14:03:48 +02:00
tvarnimnode.nim Rename PNimrodNode to NimNode 2015-03-17 17:50:32 +01:00
tvtable.nim fixes #1120 2014-12-25 17:22:41 +01:00
typesapi.nim tester reports ignored tests and supports 'nimout'; fixes #2211 2015-02-25 12:59:32 +01:00
typesapi2.nim fixes #2505, fixes #1853, fixes #2522 2015-04-20 21:25:49 +02:00