webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
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 | |
Converts multiple lines into a single line (with line breaks replaced by a space) to allow for easier searching.
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).
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.
webkitpy.style.checkers.cpp.SingleLineView.single_line |