hadashiA / VContainer

The extra fast, minimum code size, GC-free DI (Dependency Injection) library running on Unity Game Engine.
https://vcontainer.hadashikick.jp
MIT License
1.92k stars 167 forks source link

Improve source generator target type #668

Closed hadashiA closed 2 months ago

hadashiA commented 4 months ago

Currently, SourceGenerator targets most types of VContainer-linked aseembly, but the scope is too broad and wasteful.

Perhaps it should only target types marked with builder.Register<> etc. If this change results in more false negatives, it would not matter much.