MCPcopy Create free account
hub / github.com/python/mypy / lookup

Method lookup

mypyc/irbuild/builder.py:1436–1437  ·  view source on GitHub ↗
(self, symbol: SymbolNode)

Source from the content-addressed store, hash-verified

1434 return reg
1435
1436 def lookup(self, symbol: SymbolNode) -> SymbolTarget:
1437 return self.symtables[-1][symbol]
1438
1439 def add_local(self, symbol: SymbolNode, typ: RType, is_arg: bool = False) -> Register:
1440 """Add register that represents a symbol to the symbol table.

Callers 4

get_assignment_targetMethod · 0.95
add_var_to_env_classMethod · 0.95
get_func_targetFunction · 0.45
gen_arg_defaultsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected