MCPcopy Index your code
hub / github.com/python/mypy / add_function_to_symbol_table

Method add_function_to_symbol_table

mypy/semanal.py:1650–1655  ·  view source on GitHub ↗
(self, func: FuncDef | OverloadedFuncDef)

Source from the content-addressed store, hash-verified

1648 return True
1649
1650 def add_function_to_symbol_table(self, func: FuncDef | OverloadedFuncDef) -> None:
1651 if self.is_class_scope():
1652 assert self.type is not None
1653 func.info = self.type
1654 func._fullname = self.qualified_name(func.name)
1655 self.add_symbol(func.name, func, func)
1656
1657 def analyze_arg_initializers(self, defn: FuncItem) -> None:
1658 fullname = self.function_fullname(defn.fullname)

Callers 2

visit_func_defMethod · 0.95

Calls 3

is_class_scopeMethod · 0.95
qualified_nameMethod · 0.95
add_symbolMethod · 0.95

Tested by

no test coverage detected