MCPcopy
hub / github.com/oraios/serena / deleted_lines

Method deleted_lines

test/serena/test_symbol_editing.py:127–134  ·  view source on GitHub ↗

Get all deleted lines with their line numbers (0-based) in the original file.

(self)

Source from the content-addressed store, hash-verified

125
126 @property
127 def deleted_lines(self) -> list[tuple[int, str]]:
128 """Get all deleted lines with their line numbers (0-based) in the original file."""
129 result = []
130 for change in self._line_changes:
131 if change.operation in ("delete", "replace"):
132 for i, line in enumerate(change.original_lines):
133 result.append((change.original_start + i, line))
134 return result
135
136 @property
137 def modified_line_numbers(self) -> list[int]:

Callers

nothing calls this directly

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected