Function: ruby-ts--same-line-params-p
ruby-ts--same-line-params-p is a byte-compiled function defined in
ruby-ts-mode.el.gz.
Signature
(ruby-ts--same-line-params-p N PARENT &rest _)
Documentation
Return non-nil when first parameter is on the same line as the method.
PARENT will be method_parameters. NODE can be the close paren.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/ruby-ts-mode.el.gz
(defun ruby-ts--same-line-params-p (_n parent &rest _)
"Return non-nil when first parameter is on the same line as the method.
PARENT will be method_parameters. NODE can be the close paren."
(let* ((method (treesit-node-parent parent))
(first-param (ruby-ts--first-non-comment-child parent)))
(= (ruby-ts--lineno method) (ruby-ts--lineno first-param))))