class documentation

class VerifyLiterals(Visitor): (source)

View In Hierarchy

Visitor for verifying that Literal[object] contains an enum. Other valid Literal types are checked by the parser, e.g. to make sure no `float` values are used in Literals. Checking that an object in a Literal is an enum member is more complex, so it gets its own visitor. Because this visitor walks up the class hierarchy, it must be run after ClassType pointers are filled in.

Method EnterLiteral Undocumented

Inherited from Visitor:

Method __init__ Undocumented
Method Enter Undocumented
Method Leave Undocumented
Method Visit Undocumented
Class Variable old_node Undocumented
Class Variable unchecked_node_names Undocumented
Class Variable visits_all_node_types Undocumented
Instance Variable enter_functions Undocumented
Instance Variable leave_functions Undocumented
Instance Variable visit_class_names Undocumented
Instance Variable visit_functions Undocumented
Class Variable _visitor_functions_cache Undocumented
def EnterLiteral(self, node): (source)

Undocumented