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 getHunkStartLines($hunks)
Get a map of lines on which hunks start, other than line 1. This datastructure is used to determine when to render "Context not available." in diffs with multiple hunks.
array | $hunks |
dict<int, bool> | Map of lines where hunks start, other than line 1. |
private function setVisibleLinesMask($mask)
$mask |
wild |
public function getVisibleLinesMask()
wild |
private function setIntraLineDiffs($intra_line_diffs)
$intra_line_diffs |
wild |
public function getIntraLineDiffs()
wild |
private function setNewLines($new_lines)
$new_lines |
wild |
public function getNewLines()
wild |
private function setOldLines($old_lines)
$old_lines |
wild |
public function getOldLines()
wild |
public function getOldLineTypeMap()
wild |
public function setOldLineTypeMap($map)
array | $map |
wild |
public function getNewLineTypeMap()
wild |
public function setNewLineTypeMap($map)
array | $map |
wild |
public function setDepthOnlyLines($map)
array | $map |
wild |
public function getDepthOnlyLines()
wild |
public function setNormalized($normalized)
$normalized |
wild |
public function getNormalized()
wild |
public function getIsDeleted()
wild |
public function getHasAnyChanges()
Returns true if the hunks change anything, including whitespace.
wild |
private function getHasChanges($filter)
$filter |
wild |
public function reparseHunksForSpecialAttributes()
This function takes advantage of the parsing work done in parseHunksForLineData() and continues the struggle to hammer this data into something we can display to a user.
In particular, this function re-parses the hunks to make them equivalent in length for easy rendering, adding null as necessary to pad the length.
Anyhoo, this function is not particularly well-named but I try.
wild |
public function generateIntraLineDiffs()
wild |
public function generateVisibleBlocksMask($lines_context)
$lines_context |
wild |
public function generateVisibleLinesMask($lines_context)
$lines_context |
wild |
public function getOldCorpus()
wild |
public function getNewCorpus()
wild |
private function getCorpus($lines)
array | $lines |
wild |
public function parseHunksForLineData($hunks)
array | $hunks |
wild |
public function parseHunksForHighlightMasks($changeset_hunks, $old_hunks, $new_hunks)
array | $changeset_hunks | |
array | $old_hunks | |
array | $new_hunks |
wild |
public function makeContextDiff($hunks, $is_new, $line_number, $line_length, $add_context)
array | $hunks | |
$is_new | ||
$line_number | ||
$line_length | ||
$add_context |
wild |
private function computeOffsets($hunks)
array | $hunks |
wild |
private function getIndentDepth($text, $tab_width)
$text | ||
$tab_width |
wild |
private function getCharacterCountForVisualWhitespace($text, $depth, $tab_width)
$text | ||
$depth | ||
$tab_width |
wild |
private function updateChangeTypesForNormalization()
wild |