You need to get codetool to rescan the unit. I am not an expert, but probably something like...
Edit at the start of the unit (unitname, or first unit in uses) and leave it changed (incorrect), then invoke "go to declaration" on the word you just edited. After that undo the change, and do "go to declaration" again.