class documentation

class UndeclaredNameVisitor(NodeVisitor): (source)

View In Hierarchy

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.

Method __init__ Undocumented
Method visit_Block Stop visiting a blocks.
Method visit_Name Undocumented
Instance Variable names Undocumented
Instance Variable undeclared Undocumented

Inherited from NodeVisitor:

Method generic_visit Called if no explicit visitor function exists for a node.
Method get_visitor 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.
Method visit Visit a node.
def __init__(self, names): (source)

Undocumented

Parameters
names:t.Iterable[str]Undocumented
def visit_Block(self, node): (source)

Stop visiting a blocks.

Parameters
node:nodes.BlockUndocumented
def visit_Name(self, node): (source)

Undocumented

Parameters
node:nodes.NameUndocumented
names = (source)

Undocumented

undeclared: t.Set[str] = (source)

Undocumented