Function: majutsu-template--node-with-type
majutsu-template--node-with-type is a natively compiled function
defined in majutsu-template.el.
Signature
(majutsu-template--node-with-type NODE TYPE)
Documentation
Return NODE annotated with TYPE, preserving all other fields.
Source Code
;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-template.el
(defun majutsu-template--node-with-type (node type)
"Return NODE annotated with TYPE, preserving all other fields."
(setq type (majutsu-template--type-ref-normalize type))
(if (not (majutsu-template-node-p node))
(majutsu-template--rewrite node)
(majutsu-template-node-create
:kind (majutsu-template-node-kind node)
:type type
:value (majutsu-template-node-value node)
:args (majutsu-template-node-args node)
:props (majutsu-template-node-props node))))