Use tink_macro for printing generated haxe

This commit is contained in:
2020-11-27 19:07:19 -07:00
parent 66a7f0c780
commit 7f5d352b37
3 changed files with 6 additions and 3 deletions

View File

@@ -12,6 +12,7 @@ import kiss.Types;
import kiss.CompileError;
using kiss.Reader;
using tink.MacroApi;
typedef KissState = {
className:String,
@@ -54,7 +55,7 @@ class Kiss {
switch (nextExp) {
case Some(nextExp):
#if test
trace(nextExp.def.toString());
Sys.println(nextExp.def.toString());
#end
var field = readerExpToField(nextExp, k);
if (field != null)
@@ -130,7 +131,7 @@ class Kiss {
throw CompileError.fromExp(exp, 'conversion not implemented');
};
#if test
trace(expr.expr);
Sys.println(expr.toString());
#end
return expr;
}