From 27d3f889b58dee23424e882a63efc057bae023ee Mon Sep 17 00:00:00 2001 From: Nicolas Cannasse Date: Thu, 20 Jul 2017 11:39:02 +0200 Subject: [PATCH] fixed missing meta in TAnonymous --- hscript/Macro.hx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hscript/Macro.hx b/hscript/Macro.hx index e09c2f3..2b191d0 100644 --- a/hscript/Macro.hx +++ b/hscript/Macro.hx @@ -129,8 +129,10 @@ class Macro { TFunction(map(args,convertType), convertType(ret)); case CTAnon(fields): var tf = []; - for( f in fields ) - tf.push( { name : f.name, meta : [], doc : null, access : [], kind : FVar(convertType(f.t),null), pos : p } ); + for( f in fields ) { + var meta = f.meta == null ? [] : [for( m in f.meta ) { name : m.name, params : m.params == null ? [] : [for( e in m.params ) convert(e)], pos : p }]; + tf.push( { name : f.name, meta : meta, doc : null, access : [], kind : FVar(convertType(f.t), null), pos : p } ); + } TAnonymous(tf); }; }