lojix/logic/src/main/com/thesett/aima/logic/fol/compiler/SymbolKeyTraverser.java
public void visit(Variable variable)
    {
        if (isEnteringContext())
        {
            SymbolKey key = currentSymbolTable.getSymbolKey(variable.getId());
            variable.setSymbolKey(key);

            /*log.fine(variable.toString(interner, true, false) + " assigned " + key);*/
        }
        else if (isLeavingContext())
        {
            variable.setTermTraverser(null);
        }

        if (delegate != null)
        {
            delegate.visit(variable);
        }
    }
public void visit(Variable variable)
    {
        if (isEnteringContext())
        {
            SymbolKey key = currentSymbolTable.getSymbolKey(variable.getId());
            variable.setSymbolKey(key);

            /*log.fine(variable.toString(interner, true, false) + " assigned " + key);*/
        }
        else if (isLeavingContext())
        {
            variable.setTermTraverser(null);
        }

        if (delegate != null)
        {
            delegate.visit(variable);
        }
    }
{@inheritDoc}

<p/>Assigns symbol keys to variables, based on the variables id.