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

Function convert_symbol_table_node

mypy/exportjson.py:119–133  ·  view source on GitHub ↗
(self: SymbolTableNode, cfg: Config)

Source from the content-addressed store, hash-verified

117
118
119def convert_symbol_table_node(self: SymbolTableNode, cfg: Config) -> Json:
120 data: dict[str, Any] = {".class": "SymbolTableNode", "kind": node_kinds[self.kind]}
121 if self.module_hidden:
122 data["module_hidden"] = True
123 if not self.module_public:
124 data["module_public"] = False
125 if self.implicit:
126 data["implicit"] = True
127 if self.plugin_generated:
128 data["plugin_generated"] = True
129 if self.cross_ref:
130 data["cross_ref"] = self.cross_ref
131 elif self.node is not None:
132 data["node"] = convert_symbol_node(self.node, cfg)
133 return data
134
135
136def convert_symbol_node(self: SymbolNode, cfg: Config) -> Json:

Callers 1

convert_symbol_tableFunction · 0.85

Calls 1

convert_symbol_nodeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…