code: private int getLexicalScopeDepth(SymbolScope scope) {
      if (scope.isLexicalScope() || scope.isDocScope()) {
        return scope.getScopeDepth();
      } else {
        checkState(scope.isPropertyScope());
        Symbol sym = scope.getSymbolForScope();
        checkNotNull(sym);
        return getLexicalScopeDepth(getScope(sym)) + 1;
      }
    }
docs: For a lexical scope, just returns the normal scope depth.
  
  <p>For a property scope, returns the number of scopes we have to search to find the nearest
  lexical scope, plus that lexical scope's depth.
  
  <p>For a doc info scope, returns 0.