Function: sqlind-maybe-if-statement
sqlind-maybe-if-statement is a natively compiled function defined in
sql-indent.el.
Signature
(sqlind-maybe-if-statement)
Documentation
If (point) is on an IF statement, report its syntax.
Source Code
;; Defined in /nix/store/jxjf2h9nnkdqnn1w1mr0ag8bqng2rlrs-emacs-packages-deps/share/emacs/site-lisp/elpa/sql-indent-1.7/sql-indent.el
(defun sqlind-maybe-if-statement ()
"If (point) is on an IF statement, report its syntax."
(when (sqlind-good-if-candidate)
(cond ((null sqlind-end-stmt-stack)
(throw 'finished (list 'in-block 'if "")))
(t
(cl-destructuring-bind (pos kind _label)
(pop sqlind-end-stmt-stack)
(unless (eq kind 'if)
(throw 'finshed
(list 'syntax-error
"bad closing for if block" (point) pos))))))))