Changeset View
Changeset View
Standalone View
Standalone View
src/parser/diff/ArcanistDiffHunk.php
| Show First 20 Lines • Show All 77 Lines • ▼ Show 20 Lines | public function getChangedLines($type) { | ||||
| switch ($type) { | switch ($type) { | ||||
| case 'new': | case 'new': | ||||
| return $new_map; | return $new_map; | ||||
| case 'old': | case 'old': | ||||
| return $old_map; | return $old_map; | ||||
| case 'cover': | case 'cover': | ||||
| return $cover_map; | return $cover_map; | ||||
| default: | default: | ||||
| throw new Exception("Unknown line change type '{$type}'."); | throw new Exception(pht("Unknown line change type '%s'.", $type)); | ||||
| } | } | ||||
| } | } | ||||
| public function setOldOffset($old_offset) { | public function setOldOffset($old_offset) { | ||||
| $this->oldOffset = $old_offset; | $this->oldOffset = $old_offset; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 77 Lines • Show Last 20 Lines | |||||