Home | History | Annotate | Download | only in scripts

Lines Matching defs:Cursor

87 class Cursor:
120 return Cursor(self.line, self.column + offset)
123 return Cursor(self.line, self.column - offset)
128 return Cursor(self.line, self.column)
131 # Special cursor to indicate the end-of-file.
133 """Returns the special cursor to denote the end-of-file."""
134 return Cursor(-1, -1)
186 def FindFirst(lines, token_table, cursor):
189 start = cursor.Clone()
190 cur_line_number = cursor.line
200 found_start = Cursor(cur_line_number, start_column)
212 end = Cursor(len(lines) - 1, len(lines[-1]))
339 pos = Cursor(exp_token.end.line + 1, 0)
359 new_pos = Cursor(pos.line + 1, 0)
386 for token in TokenizeLines(lines, Cursor(0, 0)):