From 60ed5fdfe25d0842d9138b7ec8928d76c56763ca Mon Sep 17 00:00:00 2001 From: Nicolas Cannasse Date: Thu, 10 Aug 2017 16:04:55 +0200 Subject: [PATCH] added missing EMeta --- hscript/Printer.hx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/hscript/Printer.hx b/hscript/Printer.hx index 4ed7bf8..26e7443 100644 --- a/hscript/Printer.hx +++ b/hscript/Printer.hx @@ -258,6 +258,20 @@ class Printer { add(";\n"); } add("}"); + case EMeta(name, args, e): + add("@"); + add(name); + if( args != null && args.length > 0 ) { + add("("); + var first = true; + for( a in args ) { + if( first ) first = false else add(", "); + expr(e); + } + add(")"); + } + add(" "); + expr(e); } }