Support for haxe 4 EIn change to EBinop(OpIn)

This commit is contained in:
Valentin Lemière
2017-08-18 15:13:28 +02:00
parent 15d75965ad
commit 9ceadeb88f

View File

@@ -241,7 +241,7 @@ class Exprs {
}
static public inline function iterate(target:Expr, body:Expr, ?loopVar:String = 'i', ?pos:Position)
return EFor(EIn(loopVar.resolve(pos), target).at(pos), body).at(pos);
return EFor(#if (haxe_ver < 4) EIn( #else EBinop(OpIn, #end loopVar.resolve(pos), target).at(pos), body).at(pos);
static public function toFields(object:Dynamic<Expr>, ?pos:Position)
return EObjectDecl([for (field in Reflect.fields(object))