evalUnquotes for HaxeMeta

This commit is contained in:
2023-07-17 12:47:23 -06:00
parent b323488313
commit 66619eb5c6
2 changed files with 8 additions and 1 deletions

View File

@@ -25,10 +25,15 @@ typedef Continuation = () -> Void;
typedef AsyncCommand = (AsyncEmbeddedScript, Continuation) -> Void;
class ObjectInterp<T> extends Interp {
var obj:T;
var obj:T;
var fields:Map<String,Bool> = [];
public function new(obj:T) {
this.obj = obj;
for (field in Type.getInstanceFields(Type.getClass(obj))) {
fields[field] = true;
}
super();
}

View File

@@ -686,6 +686,8 @@ class Helpers {
compileTimeValueToReaderExp(unquoteValue, exp).def;
case MetaExp(meta, innerExp):
MetaExp(meta, recurse(innerExp));
case HaxeMeta(name, params, innerExp):
HaxeMeta(name, params, recurse(innerExp));
default:
throw KissError.fromExp(exp, 'unquote evaluation not implemented');
};