 
         i++
 
-    folds
+    {folds, startBufferRow, endBufferRow}
 
   emptyLineIndentationForBufferRow: (bufferRow) ->
     return 0 if @buffer.lineForRow(bufferRow).length > 0

    screenLines

  # Given a buffer row range, compute an index of all folds that appear on
  # screen lines containing this range. Returns a folds object mapping startRow
  # to startColumn to endPosition. This object will be referenced when updating
  # the patch to skip folded regions of the buffer.
  computeFoldsInBufferRowRange: (startBufferRow, endBufferRow) ->
    folds = {}
    foldMarkers = @foldsMarkerLayer.findMarkers(intersectsRowRange: [startBufferRow, endBufferRow - 1])
    if foldMarkers.length > 0
      # Index fold end positions by their start row and start column.
      i = 0
      while i < foldMarkers.length

    {startScreenRow, endScreenRow, startBufferRow, endBufferRow}

  buildSpatialTokenLines: (startBufferRow, endBufferRow) ->
    {startBufferRow, endBufferRow, folds} = @computeFoldsInBufferRowRange(startBufferRow, endBufferRow)

    screenLines = []
    bufferRow = startBufferRow
