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

Method load_struct_field

mypyc/irbuild/ll_builder.py:341–345  ·  view source on GitHub ↗
(
        self, ptr: Value, struct: RStruct, field: str, *, borrow: bool = False
    )

Source from the content-addressed store, hash-verified

339 return None
340
341 def load_struct_field(
342 self, ptr: Value, struct: RStruct, field: str, *, borrow: bool = False
343 ) -> Value:
344 address = self.add(GetElementPtr(ptr, struct, field))
345 return self.load_mem(address, struct.field_type(field), borrow=borrow)
346
347 def set_struct_field(
348 self, ptr: Value, struct: RStruct, field: str, value: Value, line: int

Callers

nothing calls this directly

Calls 4

addMethod · 0.95
load_memMethod · 0.95
GetElementPtrClass · 0.90
field_typeMethod · 0.45

Tested by

no test coverage detected