OpenQuizz
Une application de gestion des contenus pédagogiques
UndeclaredNameVisitor Class Reference
Inheritance diagram for UndeclaredNameVisitor:
Collaboration diagram for UndeclaredNameVisitor:

Public Member Functions

def __init__ (self, names)
 
def visit_Name (self, node)
 
def visit_Block (self, node)
 
- Public Member Functions inherited from NodeVisitor
def get_visitor (self, node)
 
def visit (self, node, *args, **kwargs)
 
def generic_visit (self, node, *args, **kwargs)
 

Data Fields

 names
 
 undeclared
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  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.

Member Function Documentation

◆ visit_Block()

def visit_Block (   self,
  node 
)
Stop visiting a blocks.

◆ visit_Name()

def visit_Name (   self,
  node 
)

Field Documentation

◆ names

names

◆ undeclared

undeclared

The documentation for this class was generated from the following file: