protected IRegion findDeclaration(SourceFile sourceFile, String subName)
{
for (Iterator i = sourceFile.getSubs(); i.hasNext();)
{
Subroutine sub = (Subroutine) i.next();
if (sub.getName().equals(subName))
return new Region(sub.getOffset(), sub.getLength());
}
return null;
}