Check name collisions while parsing module