Function: js-jsx--expr-indentation
js-jsx--expr-indentation is a byte-compiled function defined in
js.el.gz.
Signature
(js-jsx--expr-indentation PARSE-STATUS POS COL)
Documentation
Indent using PARSE-STATUS; relative to POS, use base COL.
To indent a JSXExpressionContainer’s expression, calculate the JS indentation, using JSX indentation as the base column when indenting relative to the beginning line of the JSXExpressionContainer’s JSXAttribute (if any).
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/js.el.gz
(defun js-jsx--expr-indentation (parse-status pos col)
"Indent using PARSE-STATUS; relative to POS, use base COL.
To indent a JSXExpressionContainer’s expression, calculate the JS
indentation, using JSX indentation as the base column when
indenting relative to the beginning line of the
JSXExpressionContainer’s JSXAttribute (if any)."
(let* ((js-jsx--indent-col col)
(js-jsx--indent-attribute-line
(if pos (line-number-at-pos pos))))
(js--proper-indentation parse-status)))