public function getMap()
public function getMap()
Get the raw adjustment map.
Return
wild |
public function getNearestMap()
public function getNearestMap()
Return
wild |
public function getFinalOffset()
public function getFinalOffset()
Return
wild |
public function addMapToChain($map)
public function addMapToChain($map)
Add a map to the end of the chain.
When a line is mapped with mapLine(), it is mapped through all maps in the chain.
Parameters
DifferentialLineAdjustmentMap | $map |
Return
wild |
public function mapLine($line, $is_end)
public function mapLine($line, $is_end)
Map a line across a change, or a series of changes.
Parameters
int | $line | Line to map |
bool | $is_end | True to map it as the end of a range. |
Return
wild | Spooky magic. |
private function buildNearestMap()
private function buildNearestMap()
Build a derived map which maps deleted lines to the nearest valid line.
This computes a "nearest line" map and a final-line offset. These derived maps allow us to map deleted code to the previous (or next) line which actually exists.
Return
wild |
public static function newFromHunks($hunks)
public static function newFromHunks($hunks)
Parameters
array | $hunks |
Return
wild |
public static function newFromMap($map)
public static function newFromMap($map)
Parameters
array | $map |
Return
wild |
public static function newInverseMap($map)
public static function newInverseMap($map)
Parameters
DifferentialLineAdjustmentMap | $map |
Return
wild |
private static function reduceMapRanges($map)
private static function reduceMapRanges($map)
Parameters
array | $map |
Return
wild |
public static function loadMaps($maps)
public static function loadMaps($maps)
Parameters
array | $maps |
Return
wild |
private static function buildMaps($maps)
private static function buildMaps($maps)
Parameters
array | $maps |
Return
wild |
private static function getCacheKey($u, $v)
private static function getCacheKey($u, $v)
Parameters
$u | ||
$v |
Return
wild |