UndeclaredNameVisitor Class

Inheritance diagram of UndeclaredNameVisitor

class UndeclaredNameVisitor(names)

A visitor that checks if a name is accessed without being declared. This is different from the frame visitor as it will not stop at closure frames.

Methods

__init__(names)
generic_visit(node, *args, **kwargs) Called if no explicit visitor function exists for a node.
get_visitor(node) Return the visitor function for this node or None if no visitor
visit(node, *args, **kwargs) Visit a node.
visit_Block(node) Stop visiting a blocks.
visit_Name(node)

Descriptions

class UndeclaredNameVisitor

Method details

__init__(names)
visit_Block(node)

Stop visiting a blocks.

visit_Name(node)

Inherited member details

generic_visit(node, *args, **kwargs)

Called if no explicit visitor function exists for a node.

get_visitor(node)

Return the visitor function for this node or None if no visitor exists for this node. In that case the generic visit function is used instead.

visit(node, *args, **kwargs)

Visit a node.

Table Of Contents

Previous topic

Identifiers Class

Next topic

CompilerExit