code: private void pushScope(Node node) {
      checkNotNull(curNode);
      checkNotNull(node);
      scopeRoots.add(node);
      recordScopeRoot(node);
      if (scopeCallback != null) {
        scopeCallback.enterScope(this);
      }
    }
docs: Creates a new scope (e.g. when entering a function).