Print the JSON encoding of a vl-vardecl-p to ps.
(vl-jp-vardecl x &key (ps 'ps)) → ps
Function:
(defun vl-jp-vardecl-fn (x ps) (declare (xargs :stobjs (ps))) (declare (xargs :guard (vl-vardecl-p x))) (let ((__function__ 'vl-jp-vardecl)) (declare (ignorable __function__)) (vl-ps-seq (vl-print "{\"tag\": ") (jp-sym ':vl-vardecl) (vl-print ", ") (vl-print-str "\"name\": ") (jp-str (vl-vardecl->name x)) (vl-println? ", ") (vl-print-str "\"loc\": ") (vl-jp-location (vl-vardecl->loc x)) (vl-println? ", ") (vl-print-str "\"type\": ") (vl-jp-datatype (vl-vardecl->type x)) (vl-println? ", ") (vl-print-str "\"nettype\": ") (vl-jp-maybe-nettypename (vl-vardecl->nettype x)) (vl-println? ", ") (vl-print-str "\"atts\": ") (vl-jp-atts (vl-vardecl->atts x)) (vl-println? ", ") (vl-print-str "\"initval\": ") (vl-jp-maybe-rhs (vl-vardecl->initval x)) (vl-println? ", ") (vl-print-str "\"constp\": ") (jp-bool (vl-vardecl->constp x)) (vl-println? ", ") (vl-print-str "\"constval\": ") (vl-jp-maybe-4vec (vl-vardecl->constval x)) (vl-println? ", ") (vl-print-str "\"varp\": ") (jp-bool (vl-vardecl->varp x)) (vl-println? ", ") (vl-print-str "\"lifetime\": ") (vl-jp-lifetime (vl-vardecl->lifetime x)) (vl-println? ", ") (vl-print-str "\"vectoredp\": ") (jp-bool (vl-vardecl->vectoredp x)) (vl-println? ", ") (vl-print-str "\"scalaredp\": ") (jp-bool (vl-vardecl->scalaredp x)) (vl-println? ", ") (vl-print-str "\"delay\": ") (vl-jp-maybe-gatedelay (vl-vardecl->delay x)) (vl-println? ", ") (vl-print-str "\"cstrength\": ") (vl-jp-maybe-cstrength (vl-vardecl->cstrength x)) (vl-println? "}"))))