Pretty-print a class initializer.
(print-jcinitializer initializer indent-level) → lines
Function:
(defun print-jcinitializer (initializer indent-level) (declare (xargs :guard (and (jcinitializerp initializer) (natp indent-level)))) (let ((__function__ 'print-jcinitializer)) (declare (ignorable __function__)) (append (list (print-jline (if (jcinitializer->static? initializer) "static {" "{") indent-level)) (print-jblock (jcinitializer->code initializer) (1+ indent-level)) (list (print-jline "}" indent-level)))))
Theorem:
(defthm msg-listp-of-print-jcinitializer (b* ((lines (print-jcinitializer initializer indent-level))) (msg-listp lines)) :rule-classes :rewrite)