Return the toplevel *SymbolTable* for the source code. *filename* is the name of the file with the code and *compile_type* is the *compile()* mode argument.
(code, filename, compile_type, *, module=None)
| 18 | __all__ = ["symtable", "SymbolTableType", "SymbolTable", "Class", "Function", "Symbol"] |
| 19 | |
| 20 | def symtable(code, filename, compile_type, *, module=None): |
| 21 | """ Return the toplevel *SymbolTable* for the source code. |
| 22 | |
| 23 | *filename* is the name of the file with the code |
| 24 | and *compile_type* is the *compile()* mode argument. |
| 25 | """ |
| 26 | top = _symtable.symtable(code, filename, compile_type, module=module) |
| 27 | return _newSymbolTable(top, filename) |
| 28 | |
| 29 | class SymbolTableFactory: |
| 30 | def __init__(self): |
no outgoing calls
no test coverage detected
searching dependent graphs…