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

Method get_element

mypyc/irbuild/ll_builder.py:325–326  ·  view source on GitHub ↗
(self, reg: Value, field: str)

Source from the content-addressed store, hash-verified

323 self.add(SetMem(value_type, ptr, value, line=-1))
324
325 def get_element(self, reg: Value, field: str) -> Value:
326 return self.add(GetElement(reg, field))
327
328 def load_address(self, name: str, rtype: RType, line: int = -1) -> Value:
329 return self.add(LoadAddress(rtype, name, line))

Callers 2

vec_len_nativeFunction · 0.80
vec_itemsFunction · 0.80

Calls 2

addMethod · 0.95
GetElementClass · 0.90

Tested by

no test coverage detected