Lines Matching refs:pos_
25 self.pos_ = 0
44 column = self.pos_ - self.line_start_ + 1
46 start = self.pos_
55 self.pos_ += 1
57 self.line_start_ = self.pos_
60 self.pos_ += (2 if next_char == "\n" else 1)
62 self.line_start_ = self.pos_
65 self.pos_ += 1
67 if self.pos_ < self.text_length_ and self.text_[self.pos_] == '"':
68 self.pos_ += 1
69 return (Lexer.STRING, text[start + 1:self.pos_ - 1], location)
74 self.pos_ += 1
76 token = text[start:self.pos_]
80 return (Lexer.NUMBER, int(text[start:self.pos_], 10), location)
82 self.pos_ += 1
84 return (Lexer.NUMBER, int(text[start:self.pos_], 10), location)
89 p = self.pos_
92 self.pos_ = p
95 p = self.pos_
98 self.pos_ = p