public function __get($name)Inherited
$name |
wild |
public function __set($name, $value)Inherited
$name | ||
$value |
wild |
public function current()Inherited
wild |
public function key()Inherited
wild |
public function next()Inherited
wild |
public function rewind()Inherited
wild |
public function valid()Inherited
wild |
private function throwOnAttemptedIteration()Inherited
wild |
public function getPhobjectClassConstant($key, $byte_limit)Inherited
Read the value of a class constant.
This is the same as just typing self::CONSTANTNAME, but throws a more useful message if the constant is not defined and allows the constant to be limited to a maximum length.
string | $key | Name of the constant. |
int|null | $byte_limit | Maximum number of bytes permitted in the value. |
string | Value of the constant. |
public function getMap()
Get the raw adjustment map.
wild |
public function getNearestMap()
wild |
public function getFinalOffset()
wild |
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.
DifferentialLineAdjustmentMap | $map |
wild |
public function mapLine($line, $is_end)
Map a line across a change, or a series of changes.
int | $line | Line to map |
bool | $is_end | True to map it as the end of a range. |
wild | Spooky magic. |
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.
wild |
public static function newFromHunks($hunks)
array | $hunks |
wild |
public static function newFromMap($map)
array | $map |
wild |
public static function newInverseMap($map)
DifferentialLineAdjustmentMap | $map |
wild |
private static function reduceMapRanges($map)
array | $map |
wild |
public static function loadMaps($maps)
array | $maps |
wild |
private static function buildMaps($maps)
array | $maps |
wild |
private static function getCacheKey($u, $v)
$u | ||
$v |
wild |