Function: combobulate-go-pretty-print-node-name
combobulate-go-pretty-print-node-name is a natively compiled function
defined in combobulate-go.el.
Signature
(combobulate-go-pretty-print-node-name NODE DEFAULT-NAME)
Documentation
Pretty printer for Go nodes
Source Code
;; Defined in /nix/store/b5fvrwzi3zvkabyzx0in6gw1cj963z46-emacs-packages-deps/share/emacs/site-lisp/combobulate-go.el
(defun combobulate-go-pretty-print-node-name (node default-name)
"Pretty printer for Go nodes"
(combobulate-string-truncate
(replace-regexp-in-string
(rx (| (>= 2 " ") "\n")) ""
(pcase (combobulate-node-type node)
("function_declaration"
(concat "func "
(combobulate-node-text (combobulate-node-child-by-field node "name"))))
("type_declaration"
(concat "type "
(thread-first node
(combobulate-node-child 0)
(combobulate-node-child-by-field "name")
(combobulate-node-text))))
("identifier" (combobulate-node-text node))
(_ default-name)))
40))