lib/spoom/deadcode/location.rb in spoom-1.2.4 vs lib/spoom/deadcode/location.rb in spoom-1.3.0

- old
+ new

@@ -28,11 +28,11 @@ raise LocationError, "Invalid location string: #{location_string}" unless end_line && end_column new(file, start_line.to_i, start_column.to_i, end_line.to_i, end_column.to_i) end - sig { params(file: String, location: SyntaxTree::Location).returns(Location) } - def from_syntax_tree(file, location) + sig { params(file: String, location: Prism::Location).returns(Location) } + def from_prism(file, location) new(file, location.start_line, location.start_column, location.end_line, location.end_column) end end sig { returns(String) }