Function: combobulate-css-pretty-print-node-name

combobulate-css-pretty-print-node-name is a natively compiled function defined in combobulate-css.el.

Signature

(combobulate-css-pretty-print-node-name NODE DEFAULT-NAME)

Documentation

Pretty printer for JS and JSX nodes

Source Code

;; Defined in /nix/store/b5fvrwzi3zvkabyzx0in6gw1cj963z46-emacs-packages-deps/share/emacs/site-lisp/combobulate-css.el
(defun combobulate-css-pretty-print-node-name (node default-name)
  "Pretty printer for JS and JSX nodes"
  (pcase (combobulate-node-type node)
    ("declaration" (thread-first node
                                 (combobulate-node-child 0)
                                 (combobulate-node-text)))
    ("rule_set" (thread-first node
                              (combobulate-node-child 0)
                              (combobulate-node-text)))
    ("property_name" (thread-first node
                                   (combobulate-node-parent)
                                   (combobulate-node-child 1)
                                   (combobulate-node-text)))
    (_ default-name)))