Pinging @josevalim because of an old discussion (here: Access to some information not available in mix xref) regarding opening up parts of the Mix.Xref for external use. Currently, Guaxinim requires access to the runtime_dispatches
and compile_dispatches
to find the function calls in the source. I assume similar projects might be interested in this information too.
Making these fields accessible (properly encapsulated, of course) doesn’t seem o constrain Mix.Xref a lot.
Also, some parts of Guaxinim could be included in Mix.Xref. Currently, Mix.Xref doesn’t find intra-module function calls, which is very easy to do with access to the BEAM debug chunks.