def find_objects(self, linespec):
<EOL>res = []<EOL>self._build_indent_based_list()<EOL>for item, index in self._find_starts(linespec):<EOL><INDENT>parent = LineItem(item[<NUM_LIT:1>])<EOL>next_ident_level = self._find_next_indent_level(index)<EOL>if next_ident_level:<EOL><INDENT>for item in self._indent_list[(index + <NUM_LIT:1>):]:<EOL><INDENT>if item[<NUM_LIT:0>] == next_ident_level:<EOL><INDENT>parent.add_children(LineItem(item[<NUM_LIT:1>]))<EOL><DEDENT>elif item[<NUM_LIT:0>] > next_ident_level:  <EOL><INDENT>continue<EOL><DEDENT>else:  <EOL><INDENT>break<EOL><DEDENT><DEDENT><DEDENT>res.append(parent)<EOL><DEDENT>return res<EOL>
Find lines that match the linespec regex.

        :param linespec: regular expression of line to match
        :return: list of LineItem objects