def fromComment(cmt): DocBlock(parse_docblock(cmt))
def _iter_docs(self): for doc in self._docs: if re.match("///", doc): yield parse_docblock(doc) elif doc.startswith("/**") and doc.endswith("*/"): yield parse_docblock(doc)