Function: majutsu-template--node->identifier
majutsu-template--node->identifier is a natively compiled function
defined in majutsu-template.el.
Signature
(majutsu-template--node->identifier NODE &optional CONTEXT)
Documentation
Extract identifier-like string from NODE.
CONTEXT is used in error messages.
Source Code
;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-template.el
(defun majutsu-template--node->identifier (node &optional context)
"Extract identifier-like string from NODE.
CONTEXT is used in error messages."
(if (majutsu-template-node-p node)
(pcase (majutsu-template-node-kind node)
(:raw (majutsu-template-node-value node))
(:literal (majutsu-template-node-value node))
(_ (user-error "majutsu-template: expected identifier%s, got %S"
(if context (format " for %s" context) "")
node)))
(majutsu-template--node->identifier (majutsu-template--rewrite node) context)))