DefStack? find(String ident) { if (!hasDef()) { return null; } if (def.ident == ident) { return this; } if (!hasParent()) { return null; } return parent.find(ident); }