All assignments to names go through this function.
(
self, node: nodes.Name, store_as_param: bool = False, **kwargs: t.Any
)
| 236 | self.symbols = symbols |
| 237 | |
| 238 | def visit_Name( |
| 239 | self, node: nodes.Name, store_as_param: bool = False, **kwargs: t.Any |
| 240 | ) -> None: |
| 241 | """All assignments to names go through this function.""" |
| 242 | if store_as_param or node.ctx == "param": |
| 243 | self.symbols.declare_parameter(node.name) |
| 244 | elif node.ctx == "store": |
| 245 | self.symbols.store(node.name) |
| 246 | elif node.ctx == "load": |
| 247 | self.symbols.load(node.name) |
| 248 | |
| 249 | def visit_NSRef(self, node: nodes.NSRef, **kwargs: t.Any) -> None: |
| 250 | self.symbols.load(node.name) |
nothing calls this directly
no test coverage detected