If we could use Module.const_source_location to resolve constants,
we'd have a first step towards analyzing code that is not zeitwerk-loaded (yay gems!)
we wouldn't have to know about custom inflections to resolve constants
Sadly, as this PR demonstrates, Module.const_source_location returns the first definition (according to load order) of a constant only, and that isn't always the correct one.
If we could use
Module.const_source_location
to resolve constants,Sadly, as this PR demonstrates,
Module.const_source_location
returns the first definition (according to load order) of a constant only, and that isn't always the correct one.