Skip to content

Commit 40ce69d

Browse files
committed
feat(analysis): add analysis for some built-in "progn" forms
1 parent 40b3e83 commit 40ce69d

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

elsa-extension-builtin.el

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,5 +267,12 @@ empty, because it has no value."
267267
(defun elsa--analyse:eval-when-compile (form scope state)
268268
(elsa--analyse:progn form scope state))
269269

270+
(defun elsa--analyse:eval-and-compile (form scope state)
271+
(elsa--analyse:progn form scope state))
272+
273+
(defun elsa--analyse:with-suppressed-warnings (form scope state)
274+
(let ((body (elsa-nthcdr 2 form)))
275+
(elsa--analyse-body body scope state)))
276+
270277
(provide 'elsa-extension-builtin)
271278
;;; elsa-extension-builtin.el ends here

elsa-extension-cl.el

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,5 +219,9 @@ keyword-sexp pairs."
219219
:type (elsa--make-type `(function (&rest mixed) (struct ,name)))
220220
:arglist (list '&rest 'args)))))))
221221

222+
(defun elsa--analyse:cl-eval-when (form scope state)
223+
(let ((body (elsa-nthcdr 2 form)))
224+
(elsa--analyse-body body scope state)))
225+
222226
(provide 'elsa-extension-cl)
223227
;;; elsa-extension-cl.el ends here

0 commit comments

Comments
 (0)