docs: public static Scope splitScope(Scope scope) {
          Scope result = new Scope(scope.getType());
          result.symbolTable = scope.symbolTable;
          scope.symbolTable = null;
          result.parent = scope.parent;
          result.setParentScope(scope.getParentScope());
          result.setParentScope(result);
          scope.parent = result;
          result.top = scope.top;
          return result;
      }