square / Cleanse

Lightweight Swift Dependency Injection Framework
Other
1.78k stars 90 forks source link

Fix Assisted Factory binding location. #166

Closed sebastianv1 closed 3 years ago

sebastianv1 commented 3 years ago

The source location for assisted factory bindings was being set at the file, line, and function within the AssistedInjectionArities.swift file, which makes the debug information incorrect for errors such as MissingProvider. This change should correctly place the source location info at the site of the binding for assisted factories.