Type check a name expression. It can be of any kind: local, member or global.
(self, e: NameExpr)
| 342 | self.expr_cache.clear() |
| 343 | |
| 344 | def visit_name_expr(self, e: NameExpr) -> Type: |
| 345 | """Type check a name expression. |
| 346 | |
| 347 | It can be of any kind: local, member or global. |
| 348 | """ |
| 349 | result = self.analyze_ref_expr(e) |
| 350 | narrowed = self.narrow_type_from_binder(e, result) |
| 351 | self.chk.check_deprecated(e.node, e) |
| 352 | return narrowed |
| 353 | |
| 354 | def analyze_ref_expr(self, e: RefExpr, lvalue: bool = False) -> Type: |
| 355 | result: Type | None = None |
nothing calls this directly
no test coverage detected