code: public void enterIfAbsent(Symbol sym) {
              Assert.check(shared == 0);
              Entry e = lookup(sym.name);
              while (e.scope == this && e.sym.kind != sym.kind) e = e.next();
              if (e.scope != this) enter(sym);
          }
docs: Enter symbol sym in this scope if not already there.