def __find_args_separator(self, decl_string, start_pos):
bracket_depth = <NUM_LIT:0><EOL>for index, ch in enumerate(decl_string[start_pos:]):<EOL><INDENT>if ch not in (self.__begin, self.__end, self.__separator):<EOL><INDENT>continue  <EOL><DEDENT>elif self.__separator == ch:<EOL><INDENT>if not bracket_depth:<EOL><INDENT>return index + start_pos<EOL><DEDENT><DEDENT>elif self.__begin == ch:<EOL><INDENT>bracket_depth += <NUM_LIT:1><EOL><DEDENT>elif not bracket_depth:<EOL><INDENT>return index + start_pos<EOL><DEDENT>else:<EOL><INDENT>bracket_depth -= <NUM_LIT:1><EOL><DEDENT><DEDENT>return -<NUM_LIT:1><EOL>
implementation details