class RubyLsp::Document::Scanner

@abstract
See microsoft.github.io/language-server-protocol/specification/#positionEncodingKind for more information
index depends on the encoding negotiated with the editor, so we have different subclasses for each encoding.
string index that we can use to find the right place in the document source. The logic for finding the correct
Parent class for all position scanners. Scanners are used to translate a position given by the editor into a

def find_char_position(position)

Other tags:
    Abstract: -
def find_char_position(position)
  raise AbstractMethodInvokedError
end

def initialize

: -> void
def initialize
  @current_line = 0 #: Integer
  @pos = 0 #: Integer
end