This file implements the type analysis pass for the structures and enum inductives pass. It figures out which types and matches that occur either directly or transitively (e.g. through being contained in a structure) qualify for further treatment by the structures or enum pass.