Function: combobulate-python-pretty-print-node-name
combobulate-python-pretty-print-node-name is a natively compiled
function defined in combobulate-python.el.
Signature
(combobulate-python-pretty-print-node-name NODE DEFAULT-NAME)
Documentation
Pretty printer for Python nodes
Source Code
;; Defined in /nix/store/b5fvrwzi3zvkabyzx0in6gw1cj963z46-emacs-packages-deps/share/emacs/site-lisp/combobulate-python.el
(defun combobulate-python-pretty-print-node-name (node default-name)
"Pretty printer for Python nodes"
(combobulate-string-truncate
(replace-regexp-in-string
(rx (| (>= 2 " ") "\n")) ""
(pcase (combobulate-node-type node)
("function_definition" (concat "def " (combobulate-python--get-definition node)))
("class_definition" (concat "class " (combobulate-python--get-definition node)))
(_ default-name)))
40))