rescript-association / reanalyze

Experimental analyses for ReScript and OCaml: globally dead values/types, exception analysis, and termination analysis.
MIT License
277 stars 20 forks source link

Fix issue where a dead inner module would be reported as a unnamed to… #168

Closed cristianoc closed 2 years ago

cristianoc commented 2 years ago

…plevel module as dead.

Added example that was triggering the issue. The issue arises when resolving the module path of an exception, which should be treated just like values, not types (records and variants) which have longer path.