Function: ruby-ts--same-line-hash-array-p
ruby-ts--same-line-hash-array-p is a byte-compiled function defined in
ruby-ts-mode.el.gz.
Signature
(ruby-ts--same-line-hash-array-p N PARENT &rest _)
Documentation
Return non-nil if first element and open brace are on the same line.
NODE is the element or closing brace or bracket. PARENT is the array or hash.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/ruby-ts-mode.el.gz
(defun ruby-ts--same-line-hash-array-p (_n parent &rest _)
"Return non-nil if first element and open brace are on the same line.
NODE is the element or closing brace or bracket. PARENT is the
array or hash."
(let* ((open-brace (treesit-node-child parent 0 nil))
(first-child (ruby-ts--first-non-comment-child parent)))
(= (ruby-ts--lineno open-brace) (ruby-ts--lineno first-child))))