# File typeprof-0.21.2/lib/typeprof/code-range.rb, line 63defself.from_lsp(lsp_range)
CodeRange.new(CodeLocation.from_lsp(lsp[:start]), CodeLocation.from_lsp(lsp[:end]))
end
from_rbs(rbs_loc)click to toggle source
# File typeprof-0.21.2/lib/typeprof/code-range.rb, line 67defself.from_rbs(rbs_loc)
CodeRange.new(
CodeLocation.new(rbs_loc.start_line, rbs_loc.start_column),
CodeLocation.new(rbs_loc.end_line, rbs_loc.end_column),
)
end