End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
ErrorHighlight::Spotter#spot_fcall_for_args
spot_fcall_for_args
lib/error_highlight/base.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/error_highlight/base.rb, line 302
def spot_fcall_for_args
_mid, nd_args = @node.children
if nd_args && nd_args.first_lineno == nd_args.last_lineno
# binary operator
fetch_line(nd_args.first_lineno)
@beg_column = nd_args.first_column
@end_column = nd_args.last_column
end
end
Example:
foo(42)
^^
foo 42
^^
See also
#spot_colon2
#spot_fcall_for_name
#spot_call_for_name
#spot_op_asgn1_for_args
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2