Lines Matching full:lines
26 lines: (list of tuples of integers) A list of tuples of lines, [start, end],
27 that we want to format. The lines are 1-based indexed. It can be used by
56 lines=None, argument
88 lines=lines,
92 lines = reformatted_source.rstrip('\n').split('\n')
93 reformatted_source = newline.join(line for line in lines) + newline
106 lines=None, argument
139 _MarkLinesToFormat(uwlines, lines)
193 lines = fd.readlines()
195 line_ending = file_resources.LineEnding(lines)
196 source = '\n'.join(line.rstrip('\r\n') for line in lines) + '\n'
208 def _MarkLinesToFormat(uwlines, lines): argument
210 if lines:
215 lines = sorted(lines)
216 line_ranges = [lines[0]] if len(lines[0]) else []
218 while index < len(lines):
220 if lines[index][0] <= current[1]:
222 line_ranges[-1] = (current[0], max(lines[index][1], current[1]))
224 line_ranges.append(lines[index])
227 # Mark lines to format as not being disabled.
243 # Now go through the lines and disable any lines explicitly marked as