Lines Matching refs:pos
1592 def CloseExpression(clean_lines, linenum, pos): argument
1616 if (line[pos] not in '({[<') or Match(r'<[<=]', line[pos:]):
1620 (end_pos, stack) = FindEndOfExpressionInLine(line, pos, [])
1713 def ReverseCloseExpression(clean_lines, linenum, pos): argument
1731 if line[pos] not in ')}]>':
1735 (start_pos, stack) = FindStartOfExpressionInLine(line, pos, [])
2468 def InTemplateArgumentList(self, clean_lines, linenum, pos): argument
2481 match = Match(r'^[^{};=\[\]\.<>]*(.)', line[pos:])
2484 pos = 0
2487 pos += len(match.group(0))
2504 pos += 1
2505 if pos >= len(line):
2507 pos = 0
2512 (_, end_line, end_pos) = CloseExpression(clean_lines, linenum, pos - 1)
2517 pos = end_pos
3772 pos = line.find('else if')
3773 pos = line.find('(', pos)
3774 if pos > 0:
3775 (endline, _, endpos) = CloseExpression(clean_lines, linenum, pos)
3808 pos = if_match.end() - 1
3809 (endline, endlinenum, endpos) = CloseExpression(clean_lines, linenum, pos)