split typed ast from Writer