Initial context for typed map is optional.

This commit is contained in:
back2dos
2013-09-30 17:06:03 +02:00
parent fe51e127f2
commit da0ca74ad3

View File

@@ -205,7 +205,7 @@ class Exprs {
}
//TODO: this whole thing needs an overhaul
static public function typedMap(source:Expr, f:Expr->Array<VarDecl>->Expr, ctx:Array<VarDecl>, ?pos:Position):Expr {
static public function typedMap(source:Expr, f:Expr->Array<VarDecl>->Expr, ?ctx:Array<VarDecl>, ?pos:Position):Expr {
if (ctx == null) ctx = [];
function rec(e, ?inner)