webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
Public Member Functions | |
def | __init__ (self, lines) |
def | num_lines (self) |
Static Public Member Functions | |
def | collapse_strings (elided) |
Public Attributes | |
elided | |
lines | |
raw_lines | |
Holds 3 copies of all lines with different preprocessing applied to them. 1) elided member contains lines without strings and comments, 2) lines member contains lines without comments, and 3) raw member contains all the lines without processing. All these three members are of <type 'list'>, and of the same length.
def webkitpy.style.checkers.cpp.CleansedLines.__init__ | ( | self, | |
lines | |||
) |
|
static |
Collapses strings and chars on a line to simple "" or '' blocks. We nix strings first so we're not fooled by text like '"http://"' Args: elided: The line being processed. Returns: The line with collapsed strings.
def webkitpy.style.checkers.cpp.CleansedLines.num_lines | ( | self | ) |
Returns the number of lines represented.
webkitpy.style.checkers.cpp.CleansedLines.elided |
webkitpy.style.checkers.cpp.CleansedLines.lines |
webkitpy.style.checkers.cpp.CleansedLines.raw_lines |