populate a holder after parsing the whole program text

otherwise we can miss methods declared after it