As in all insects with a complete metamorphosis, the ant has attained its full size when it leaves the pupa stage.
(the ant; has attained; its full size; T:when it leaves the pupa stage) (it; leaves; the pupa stage)
the ant it
has attained leaves
its full size T:when it leaves the pupa stage
the pupa stage