(self, defn: OverloadedFuncDef)
| 1266 | ) |
| 1267 | |
| 1268 | def visit_overloaded_func_def(self, defn: OverloadedFuncDef) -> None: |
| 1269 | self.statement = defn |
| 1270 | self.add_function_to_symbol_table(defn) |
| 1271 | |
| 1272 | if not self.recurse_into_functions and not defn.def_or_infer_vars: |
| 1273 | return |
| 1274 | |
| 1275 | # NB: Since _visit_overloaded_func_def will call accept on the |
| 1276 | # underlying FuncDefs, the function might get entered twice. |
| 1277 | # This is fine, though, because only the outermost function is |
| 1278 | # used to compute targets. |
| 1279 | with self.scope.function_scope(defn), self.set_recurse_into_functions(): |
| 1280 | self.analyze_overloaded_func_def(defn) |
| 1281 | |
| 1282 | @contextmanager |
| 1283 | def overload_item_set(self, item: int | None) -> Iterator[None]: |
nothing calls this directly
no test coverage detected