<s> class MetaData : <EOL> """<STR_LIT>""" <EOL> __slots__ = [ "<STR_LIT:name>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ] <EOL> def __init__ ( self , tree ) : <EOL> self . name = None <EOL> self . requires = set ( ) <EOL> self . optionals = set ( ) <EOL> self . breaks = set ( ) <EOL> self . assets = set ( ) <EOL> self . __inspect ( tree ) <EOL> def __inspect ( self , node ) : <EOL> """<STR_LIT>""" <EOL> comments = getattr ( node , "<STR_LIT>" , None ) <EOL> if comments : <EOL> for comment in comments : <EOL> commentTags = comment . getTags ( ) <EOL> if commentTags : <EOL> if "<STR_LIT:name>" in commentTags : <EOL> self . name = list ( commentTags [ "<STR_LIT:name>" ] ) [ <NUM_LIT:0> ] <EOL> if "<STR_LIT>" in commentTags : <EOL> self . requires . update ( commentTags [ "<STR_LIT>" ] ) <EOL> if "<STR_LIT>" in commentTags : <EOL> self . requires . update ( commentTags [ "<STR_LIT>" ] ) <EOL> self . breaks . update ( commentTags [ "<STR_LIT>" ] ) <EOL> if "<STR_LIT>" in commentTags : <EOL> self . optionals . update ( commentTags [ "<STR_LIT>" ] ) <EOL> if "<STR_LIT>" in commentTags : <EOL> self . breaks . update ( commentTags [ "<STR_LIT>" ] ) <EOL> if "<STR_LIT>" in commentTags : <EOL> self . assets . update ( commentTags [ "<STR_LIT>" ] ) <EOL> for child in node : <EOL> if child is not None : <EOL> self . __inspect ( child ) </s>
