// Check if local variables are declared.
for (Varinfo varinfo : localVars) {
boolean found = false;
for (Iterator<Def> j = defList.iterator(); j.hasNext();) {
Def def = j.next();
String name = def.getVarName();
if (varinfo.var.equals(name)) {
found = true;
break;
}
}