Function: js-syntactic-context
js-syntactic-context is an interactive and byte-compiled function
defined in js.el.gz.
Signature
(js-syntactic-context)
Documentation
Return the JavaScript syntactic context at point.
When called interactively, also display a message with that context.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/js.el.gz
(defun js-syntactic-context ()
"Return the JavaScript syntactic context at point.
When called interactively, also display a message with that
context."
(interactive)
(let* ((syntactic-context (js--syntactic-context-from-pstate
(js--parse-state-at-point))))
(when (called-interactively-p 'interactive)
(message "Syntactic context: %s" syntactic-context))
syntactic-context))