def __extract_tags(self):
tags = list()<EOL>current = None<EOL>for line in self._comment:<EOL><INDENT>parts = re.match(r'<STR_LIT>', line)<EOL>if parts:<EOL><INDENT>current = (parts.group(<NUM_LIT:1>), list())<EOL>tags.append(current)<EOL><DEDENT>if current:<EOL><INDENT>if line == '<STR_LIT>':<EOL><INDENT>current = None<EOL><DEDENT>else:<EOL><INDENT>current[<NUM_LIT:1>].append(line)<EOL><DEDENT><DEDENT><DEDENT>for tag in tags:<EOL><INDENT>self._tags.append((tag[<NUM_LIT:0>], os.linesep.join(tag[<NUM_LIT:1>])))<EOL><DEDENT>
Extract tags from the DocBlock.