instance method
ErrorHighlight::Spotter#spot_opcall_for_args
spot_opcall_for_args
lib/error_highlight/base.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/error_highlight/base.rb, line 475
def spot_opcall_for_args
_nd_recv, _op, nd_arg = @node.children
if nd_arg && nd_arg.first_lineno == nd_arg.last_lineno
# binary operator
fetch_line(nd_arg.first_lineno)
@beg_column = nd_arg.first_column
@end_column = nd_arg.last_column
end
end
Example:
x + 1
^
See also
#spot_op_asgn2_for_name
#spot_opcall_for_name
#spot_op_asgn2_for_args
#spot_op_cdecl
also in
4.1 · 3.4 · 3.3 · 3.2 · 3.1