visit TypeLoc in both collector and rewriter