Sha256: 65e80e7f8d33602cfba127af4dd289c1414d5ff6ab44fb33c0f55cc715f6b49a
Contents?: true
Size: 472 Bytes
Versions: 1
Compression:
Stored size: 472 Bytes
Contents
# typed: true # 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.4 | lib/ruby_lsp/requests/support/selection_range.rb |