def end_of_function_def(editor, start_line):
    """ Find where a function ends, beginning with `start_line` and working forward """
    for i in range(start_line, len(editor.lines)):
        if editor.lines[i].endswith('):'):
            return i
    return None
