[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/differential/parser/ -> DifferentialHunkParser.php (summary)

(no description)

File Size: 670 lines (19 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 30 functions

  getHunkStartLines()
  setVisibleLinesMask()
  getVisibleLinesMask()
  setIntraLineDiffs()
  getIntraLineDiffs()
  setNewLines()
  getNewLines()
  setOldLines()
  getOldLines()
  getOldLineTypeMap()
  setOldLineTypeMap()
  getNewLineTypeMap()
  setNewLineTypeMap()
  setWhitespaceMode()
  getWhitespaceMode()
  getIsDeleted()
  getHasTextChanges()
  getHasAnyChanges()
  getHasChanges()
  reparseHunksForSpecialAttributes()
  updateChangeTypesForWhitespaceMode()
  generateIntraLineDiffs()
  generateVisibileLinesMask()
  getOldCorpus()
  getNewCorpus()
  getCorpus()
  parseHunksForLineData()
  parseHunksForHighlightMasks()
  makeContextDiff()
  computeOffsets()

Functions
Functions that are not part of a class:

getHunkStartLines(array $hunks)   X-Ref
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.

return: dict<int, bool>  Map of lines where hunks start, other than line 1.

setVisibleLinesMask($mask)   X-Ref
No description

getVisibleLinesMask()   X-Ref
No description

setIntraLineDiffs($intra_line_diffs)   X-Ref
No description

getIntraLineDiffs()   X-Ref
No description

setNewLines($new_lines)   X-Ref
No description

getNewLines()   X-Ref
No description

setOldLines($old_lines)   X-Ref
No description

getOldLines()   X-Ref
No description

getOldLineTypeMap()   X-Ref
No description

setOldLineTypeMap(array $map)   X-Ref
No description

getNewLineTypeMap()   X-Ref
No description

setNewLineTypeMap(array $map)   X-Ref
No description

setWhitespaceMode($white_space_mode)   X-Ref
No description

getWhitespaceMode()   X-Ref
No description

getIsDeleted()   X-Ref
No description

getHasTextChanges()   X-Ref
Returns true if the hunks change any text, not just whitespace.


getHasAnyChanges()   X-Ref
Returns true if the hunks change anything, including whitespace.


getHasChanges($filter)   X-Ref
No description

reparseHunksForSpecialAttributes()   X-Ref
This function takes advantage of the parsing work done in
@{method: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.

NOTE: this function must be called after
@{method:parseHunksForLineData}.

updateChangeTypesForWhitespaceMode()   X-Ref
No description

generateIntraLineDiffs()   X-Ref
No description

generateVisibileLinesMask()   X-Ref
No description

getOldCorpus()   X-Ref
No description

getNewCorpus()   X-Ref
No description

getCorpus(array $lines)   X-Ref
No description

parseHunksForLineData(array $hunks)   X-Ref
No description

parseHunksForHighlightMasks(array $changeset_hunks,array $old_hunks,array $new_hunks)   X-Ref
No description

makeContextDiff(array $hunks,$is_new,$line_number,$line_length,$add_context)   X-Ref
No description

computeOffsets(array $hunks)   X-Ref
No description



Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1