Function: treemacs-dom-node->add-child!--inliner

treemacs-dom-node->add-child!--inliner is a function defined in treemacs-dom.el.

Signature

(treemacs-dom-node->add-child!--inliner INLINE--FORM SELF CHILD)

Source Code

;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-dom.el
;; Closure converted to defun by helpful.
(defun treemacs-dom-node->add-child!--inliner
    (inline--form self child)
  (ignore inline--form)
  (catch 'inline--just-use
    (let*
	((exp self)
	 (self
	  (if
	      (macroexp-copyable-p exp)
	      exp
	    (make-symbol "self")))
	 (body
	  (let*
	      ((exp child)
	       (child
		(if
		    (macroexp-copyable-p exp)
		    exp
		  (make-symbol "child")))
	       (body
		(list 'setf
		      (list 'treemacs-dom-node->children self)
		      (list 'cons child
			    (list 'treemacs-dom-node->children self)))))
	    (if
		(eq child exp)
		body
	      (macroexp-let*
	       (list
		(list child exp))
	       body)))))
      (if
	  (eq self exp)
	  body
	(macroexp-let*
	 (list
	  (list self exp))
	 body)))))