DoclerLabs / hexMachina

Releases, issues, documentation, website of hexMachina, framework written in Haxe
http://hexmachina.org
MIT License
44 stars 8 forks source link

@AfterMapping scope problem #239

Closed aliokan closed 7 years ago

aliokan commented 7 years ago
@AfterMapping
var i:Int = 3;
i += 5;

generate :

{
    @:mergeBlock {
        var injectInto = this.__map([mapping], Type.resolveClass("hex.di.mock.owner.DependencyOwnerChildWithAfterMappingCapturated"));
    };
    @:mergeBlock {
        injectInto = this.__map(mappings, Type.resolveClass("hex.di.mock.owner.DependencyOwnerChildWithAfterMappingCapturated"), __injectInto__);
    };
    @:mergeBlock {
        this.__injectInto(__injectInto__);
    };
    var i:Int = 3;
};
i += 5;

var i is not available outside the bloc Unknown identifier : i