evalUnquotes for HaxeMeta
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
@@ -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');
|
||||
};
|
||||
|
Reference in New Issue
Block a user