instance method
Prism::Location#start_character_offset
start_character_offset
lib/prism/parse_result.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/prism/parse_result.rb, line 369
def start_character_offset
source.character_offset(start_offset)
end
The character offset from the beginning of the source where this location starts.
See also
#start_character_column
#start_code_units_column
#source_lines
#start_code_units_offset
also in
3.4 · 3.3