parameters: (self, lines, start_position, end_position)
docstring: Create a SingleLineView instance.
  
          Args:
            lines: a list of multiple lines to combine into a single line.
            start_position: offset within lines of where to start the single line.
            end_position: just after where to end (like a slice operation).
docstring_summary: Create a SingleLineView instance.
docstring_tokens: Create a SingleLineView instance .
function: def __init__(self, lines, start_position, end_position):
          """Create a SingleLineView instance.
  
          Args:
            lines: a list of multiple lines to combine into a single line.
            start_position: offset within lines of where to start the single line.
            end_position: just after where to end (like a slice operation).
          """
          # Get the rows of interest.
          trimmed_lines = lines[start_position.row:end_position.row + 1]
  
          # Remove the columns on the last line that aren't included.
          trimmed_lines[-1] = trimmed_lines[-1][:end_position.column]
  
          # Remove the columns on the first line that aren't included.
          trimmed_lines[0] = trimmed_lines[0][start_position.column:]
  
          # Create a single line with all of the parameters.
          self.single_line = ' '.join(trimmed_lines)
  
          # Keep the row lengths, so we can calculate the original row number
          # given a column in the single line (adding 1 due to the space added
          # during the join).
          self._row_lengths = [len(line) + 1 for line in trimmed_lines]
          self._starting_row = start_position.row
function_tokens: def __init__ ( self , lines , start_position , end_position ) : # Get the rows of interest. trimmed_lines = lines [ start_position . row : end_position . row + 1 ] # Remove the columns on the last line that aren't included. trimmed_lines [ - 1 ] = trimmed_lines [ - 1 ] [ : end_position . column ] # Remove the columns on the first line that aren't included. trimmed_lines [ 0 ] = trimmed_lines [ 0 ] [ start_position . column : ] # Create a single line with all of the parameters. self . single_line = ' ' . join ( trimmed_lines ) # Keep the row lengths, so we can calculate the original row number # given a column in the single line (adding 1 due to the space added # during the join). self . _row_lengths = [ len ( line ) + 1 for line in trimmed_lines ] self . _starting_row = start_position . row