Minor simplification in constructor generation.
This commit is contained in:
@@ -96,9 +96,7 @@ class Constructor {
|
|||||||
case Success(member): member.addMeta(':isVar');
|
case Success(member): member.addMeta(':isVar');
|
||||||
default:
|
default:
|
||||||
}
|
}
|
||||||
|
addStatement(macro @:pos(pos) (cast this).$name = if (true) $e else this.$name, options.prepend);
|
||||||
addStatement(macro @:pos(pos) if (false) { var $tmp = this.$name; $i{tmp} = $e; }, true);
|
|
||||||
addStatement(macro @:pos(pos) (cast this).$name = $e, options.prepend);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
addStatement(macro @:pos(pos) this.$name = $e, options.prepend);
|
addStatement(macro @:pos(pos) this.$name = $e, options.prepend);
|
||||||
|
|||||||
Reference in New Issue
Block a user