class RubyLsp::ResponseBuilders::SemanticHighlighting

def last_token_matches?(location)

: (Prism::Location location) -> bool
def last_token_matches?(location)
  token = @stack.last
  return false unless token
  token.start_line == location.start_line &&
    token.start_code_unit_column == location.cached_start_code_units_column(@code_units_cache)
end