# File lib/ruby_parser_extras.rb, line 72 def lineno string[0...charpos].count("\n") + 1 - extra_lines_added end