Commit Graph

26 Commits

Author SHA1 Message Date
Jacek Sieka 8a405309c6
enable styleCheck:usages (#93) 2021-12-02 16:24:02 +01:00
cheatfate a587b7a8eb Fix generic sandwich problem. 2021-11-09 20:15:15 +02:00
Gabben 04f8150a08
Fix #62 (#75)
* Fix #62

- Supports more than one pragma parameter (return tuple)
- Returns nil if there are zero parameters in the pragma (like std)
2021-02-10 15:10:08 +02:00
Zahary Karadjov 61e0f82858
More descriptive naming 2020-07-08 00:32:28 +03:00
Zahary Karadjov a99dafab42
Handle another corner case in recordFields 2020-05-27 11:30:56 +03:00
Zahary Karadjov 4ffd3e1f59
Support type hierarchies in recordFields 2020-05-26 18:56:41 +03:00
Zahary Karadjov cf837b3fb6
Fix a build problem when compiling NBC with json:trace logging 2020-05-25 20:32:29 +03:00
Zahary Karadjov a333eb080f
Add options to storeMacroResults that improve the results in NBC 2020-05-24 00:49:12 +03:00
Zahary Karadjov 9a2a542b9f
Add dumpMacroResults 2020-05-23 20:18:20 +03:00
Zahary Karadjov f003557674
typedParams will now handle parameters with pragmas 2020-05-23 20:12:56 +03:00
Zahary Karadjov a695d9e7bd
Add shims/macros.getCustomPragmaFixed 2020-05-20 13:42:29 +03:00
Zahary Karadjov 3e1fa974a4
Use a simpler recursion in recordFields as it's no longer an iterator 2020-04-09 20:39:02 +03:00
Zahary Karadjov 989c33a82b
Take advantage of fixes in Nim 1.2 2020-03-25 17:52:09 +02:00
Zahary Karadjov 1c4293b3e7
A new fix for newLit
Upstream fix submitted here:
https://github.com/nim-lang/Nim/pull/12542
2019-10-28 14:30:49 +02:00
Zahary Karadjov 2c9ca5dabb recordFields returns more accurate information in nested case objects 2019-10-23 09:36:16 +09:00
Zahary Karadjov 4f685ab7ec
Another useful form of isTuple 2019-08-14 17:29:14 +02:00
Zahary Karadjov 343c2073cc
recordFields have become too heavy-weight to remain an iterator 2019-08-12 17:49:39 +03:00
Alexander Ivanov 06290de0f9
Implement unnamed tuple support 2019-08-08 22:51:25 +03:00
Zahary Karadjov a3df04d701
Add more init procs for tables and macros.genExpr 2019-08-02 15:26:08 +03:00
Zahary Karadjov 2ca2f25af6
hasCustomPragmaFixed supports types with quoted field names 2019-07-31 02:43:35 +03:00
Zahary Karadjov 30e084f76f
Add macros.inspectType 2019-07-31 02:20:49 +03:00
Zahary Karadjov f782f0378f
Add macros.genCode 2019-07-31 02:13:03 +03:00
Zahary Karadjov 4f4f138fb4
More capable alternative of unpackVarargs 2019-07-31 02:13:02 +03:00
Zahary Karadjov 5b6881588c
Alternative API for reading custom pragmas; The Nim one is too broken in 0.19.6 2019-07-31 02:13:02 +03:00
Jacek Sieka 89107ae03d
fix shims imports 2019-07-07 11:38:00 +02:00
Jacek Sieka 0a8e95408f
std_shims->stew 2019-07-06 19:12:24 +02:00