``getTypeLocations`` should be renamed to something like ``getSyntaxConstructCategoryLocations`` or ``getCategoryLocations`` to reflect its new purpose :).