code: private Scope switchScope(Scope scope) {
      Scope prev = currentScope;
      currentScope = scope;
      return prev;
    }
docs: Switch to a completely new scope stack
  
  @param scope Top of scope stack to switch to
  @return Top of previous scope stack