# File typeprof-0.21.1/lib/typeprof/code-range.rb, line 63 def self.from_lsp(lsp_range) CodeRange.new(CodeLocation.from_lsp(lsp[:start]), CodeLocation.from_lsp(lsp[:end])) end
# File typeprof-0.21.1/lib/typeprof/code-range.rb, line 82 def contain?(other) @first <= other.first && other.last <= @last end
# File typeprof-0.21.1/lib/typeprof/code-range.rb, line 78 def contain_loc?(loc) @first <= loc && loc < @last end
# File typeprof-0.21.1/lib/typeprof/code-range.rb, line 56 def inspect "%p-%p" % [@first, @last] end