1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 09:46:02 +02:00

Check the grand Children also

This commit is contained in:
Alain Magloire 2003-02-12 21:17:42 +00:00
parent c7097698e8
commit a323aa42f0

View file

@ -53,6 +53,12 @@ public class Variable extends CObject implements ICDIVariable {
Variable variable = (Variable)children[i];
if (name.equals(variable.getMIVar().getVarName())) {
return variable;
} else {
// Look also in the grandchildren.
Variable grandChild = variable.getChild(name);
if (grandChild != null) {
return grandChild;
}
}
}
return null;