Merge pull request #16 from ibilon/haxe4

Support for haxe 4 EIn change to EBinop(OpIn)
This commit is contained in:
Juraj Kirchheim
2017-08-18 16:00:37 +02:00
committed by GitHub

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 macro @:pos(pos.sanitize()) for ($i{loopVar} in $target) $body;
static public function toFields(object:Dynamic<Expr>, ?pos:Position)
return EObjectDecl([for (field in Reflect.fields(object))