Flutter Engine
The Flutter Engine
|
Public Member Functions | |
def | __init__ (self) |
def | FindCopyrightBlock (self, comment_blocks) |
def | GetCopyrightBlockAttributes (self, comment_block) |
Base class for all language-specific parsers.
Definition at line 22 of file fileparser.py.
def fileparser.Parser.__init__ | ( | self | ) |
Reimplemented in fileparser.CParser.
Definition at line 26 of file fileparser.py.
def fileparser.Parser.FindCopyrightBlock | ( | self, | |
comment_blocks | |||
) |
Given a list of comment block strings, return the one that seems like the most likely copyright block. Returns None if comment_blocks was empty, or if we couldn't find a comment block that contains copyright info.
Definition at line 31 of file fileparser.py.
def fileparser.Parser.GetCopyrightBlockAttributes | ( | self, | |
comment_block | |||
) |
Given a comment block, return a tuple of attributes: (year, holder). If comment_block is None, or none of the attributes are found, this will return (None, None).
Definition at line 43 of file fileparser.py.