End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
ErrorHighlight::Spotter#spot_call_for_args
spot_call_for_args
lib/error_highlight/base.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/error_highlight/base.rb, line 244
def spot_call_for_args
_nd_recv, _mid, nd_args = @node.children
if nd_args && nd_args.first_lineno == nd_args.last_lineno
fetch_line(nd_args.first_lineno)
@beg_column = nd_args.first_column
@end_column = nd_args.last_column
end
# TODO: support @arg
end
Example:
x.foo(42)
^^
x[42]
^^
x += 1
^
See also
#spot_attrasgn_for_name
#spot_call_for_name
#spot_attrasgn_for_args
#spot_colon2
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.1