webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Public Attributes | List of all members
webkitpy.style.checkers.cpp.SingleLineView Class Reference
Inheritance diagram for webkitpy.style.checkers.cpp.SingleLineView:

Public Member Functions

def __init__ (self, lines, start_position, end_position)
 
def convert_column_to_row (self, single_line_column_number)
 

Public Attributes

 single_line
 

Detailed Description

Converts multiple lines into a single line (with line breaks replaced by a
   space) to allow for easier searching.

Constructor & Destructor Documentation

◆ __init__()

def webkitpy.style.checkers.cpp.SingleLineView.__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).

Member Function Documentation

◆ convert_column_to_row()

def webkitpy.style.checkers.cpp.SingleLineView.convert_column_to_row (   self,
  single_line_column_number 
)
Convert the column number from the single line into the original
line number.

Special cases:
* Columns in the added spaces are considered part of the previous line.
* Columns beyond the end of the line are consider part the last line
in the view.

Member Data Documentation

◆ single_line

webkitpy.style.checkers.cpp.SingleLineView.single_line

The documentation for this class was generated from the following file: