All assignments to names go through this function.
(self, node, store_as_param=False, **kwargs)
| 207 | self.symbols = symbols |
| 208 | |
| 209 | def visit_Name(self, node, store_as_param=False, **kwargs): |
| 210 | """All assignments to names go through this function.""" |
| 211 | if store_as_param or node.ctx == 'param': |
| 212 | self.symbols.declare_parameter(node.name) |
| 213 | elif node.ctx == 'store': |
| 214 | self.symbols.store(node.name) |
| 215 | elif node.ctx == 'load': |
| 216 | self.symbols.load(node.name) |
| 217 | |
| 218 | def visit_NSRef(self, node, **kwargs): |
| 219 | self.symbols.load(node.name) |
nothing calls this directly
no test coverage detected