find method

DefStack? find(
  1. String ident
)

Implementation

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