Sha256: 20b77cde8366378762a5ec359d77c497b00e545f2bfe3015eb6260b1806228c8
Contents?: true
Size: 458 Bytes
Versions: 1
Compression:
Stored size: 458 Bytes
Contents
# frozen_string_literal: true module RubyLsp module Requests module Support class SelectionRange < LanguageServer::Protocol::Interface::SelectionRange def cover?(position) line_range = (range.start.line..range.end.line) character_range = (range.start.character..range.end.character) line_range.cover?(position[:line]) && character_range.cover?(position[:character]) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-lsp-0.0.3 | lib/ruby_lsp/requests/support/selection_range.rb |