Package pyraf :: Module cl2py :: Class VarList
[hide private]
[frames] | no frames]

Class VarList

source code

generic.GenericASTTraversal --+
                              |
               ErrorTracker --+
                              |
                             VarList

Scan tree and get info on procedure, parameters, and local variables

Instance Methods [hide private]
 
__init__(self, ast, mode="proc", local_vars_list=None, local_vars_dict=None, parlist=None) source code
 
has_key(self, name)
Check both local and procedure dictionaries for this name
source code
 
get(self, name)
Return entry from local or procedure dictionary (None if none)
source code
 
setProcName(self, proc_name, node=None)
Set procedure name
source code
 
getProcName(self)
Get procedure name, undoing translations
source code
 
addSpecial(self, name, type, value) source code
 
addSpecialArgs(self)
Add mode, $nargs, other special parameters to all tasks
source code
 
checkLocalConflict(self)
Check for local variables that conflict with parameters
source code
 
list(self)
List variables
source code
 
getParList(self)
Return procedure arguments as IrafParList
source code
 
n_proc_stmt(self, node) source code
 
n_param_declaration_block(self, node) source code
 
getFromInputList(self, param) source code
 
n_statement_block(self, node) source code

Inherited from generic.GenericASTTraversal: collectRules, default, postorder, preorder, prune

Inherited from ErrorTracker: error, errorappend, getlineno, printerrors, warning

Inherited from ErrorTracker (private): _error_init

Method Details [hide private]

__init__(self, ast, mode="proc", local_vars_list=None, local_vars_dict=None, parlist=None)
(Constructor)

source code 
Overrides: generic.GenericASTTraversal.__init__