Home | History | Annotate | Download | only in tools

Lines Matching refs:line

27     def Append(self, line):
29 if line[0] != " ":
31 self.lines.append(line[1:])
50 def Append(self, line):
51 """Adds a line to the DiffHunk and its DiffLines children."""
52 if line[0] == "-":
53 self.left.Append(line)
54 elif line[0] == "+":
55 self.right.Append(line)
56 elif line[0] == " ":
57 self.left.Append(line)
58 self.right.Append(line)
59 elif line[0] == "\\":
63 assert False, ("Unrecognized character at start of diff line "
64 "%r" % line[0])
65 self.lines.append(line)
83 line = stream.readline()
84 if not line:
89 diff_file = file_regex.match(line)
91 if line.startswith("---"):
92 a_line = line
95 if line.startswith("+++"):
96 b_line = line
101 diffrange = range_regex.match(line)
117 header = [a_line, b_line, line]
120 # Add the current line to the hunk
121 hunk.Append(line)