def InTemplateArgumentList(self, clean_lines, linenum, pos):
while linenum < clean_lines.NumLines():<EOL><INDENT>line = clean_lines.elided[linenum]<EOL>match = Match(r'<STR_LIT>', line[pos:])<EOL>if not match:<EOL><INDENT>linenum += <NUM_LIT:1><EOL>pos = <NUM_LIT:0><EOL>continue<EOL><DEDENT>token = match.group(<NUM_LIT:1>)<EOL>pos += len(match.group(<NUM_LIT:0>))<EOL>if token in ('<STR_LIT:{>', '<STR_LIT:}>', '<STR_LIT:;>'): return False<EOL>if token in ('<STR_LIT:>>', '<STR_LIT:=>', '<STR_LIT:[>', '<STR_LIT:]>', '<STR_LIT:.>'): return True<EOL>if token != '<STR_LIT:<>':<EOL><INDENT>pos += <NUM_LIT:1><EOL>if pos >= len(line):<EOL><INDENT>linenum += <NUM_LIT:1><EOL>pos = <NUM_LIT:0><EOL><DEDENT>continue<EOL><DEDENT>(_, end_line, end_pos) = CloseExpression(clean_lines, linenum, pos - <NUM_LIT:1>)<EOL>if end_pos < <NUM_LIT:0>:<EOL><INDENT>return False<EOL><DEDENT>linenum = end_line<EOL>pos = end_pos<EOL><DEDENT>return False<EOL>
Check if current position is inside template argument list.

        Args:
          clean_lines: A CleansedLines instance containing the file.
          linenum: The number of the line to check.
          pos: position just after the suspected template argument.
        Returns:
          True if (linenum, pos) is inside template arguments.