MCPcopy Create free account
hub / github.com/apache/mesos / __init__

Method __init__

support/cpplint.py:1440–1450  ·  view source on GitHub ↗
(self, lines)

Source from the content-addressed store, hash-verified

1438 """
1439
1440 def __init__(self, lines):
1441 self.elided = []
1442 self.lines = []
1443 self.raw_lines = lines
1444 self.num_lines = len(lines)
1445 self.lines_without_raw_strings = CleanseRawStrings(lines)
1446 for linenum in range(len(self.lines_without_raw_strings)):
1447 self.lines.append(CleanseComments(
1448 self.lines_without_raw_strings[linenum]))
1449 elided = self._CollapseStrings(self.lines_without_raw_strings[linenum])
1450 self.elided.append(CleanseComments(elided))
1451
1452 def NumLines(self):
1453 """Returns the number of lines represented."""

Callers

nothing calls this directly

Calls 4

_CollapseStringsMethod · 0.95
CleanseRawStringsFunction · 0.85
CleanseCommentsFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected