MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / parse_member

Method parse_member

ghidra_scripts/gimport/extract_info.py:182–192  ·  view source on GitHub ↗
(self, die: DIEV1)

Source from the content-addressed store, hash-verified

180 return None
181
182 def parse_member(self, die: DIEV1) -> GMember:
183 new_type = GMember(get_die_name(die))
184 new_type.type = self.parse_type_from_die(die)
185 if DW_AT.location in die.attributes:
186 new_type.location.parse(die.attributes[DW_AT.location].value, 0)
187 if DW_AT.bit_offset in die.attributes:
188 new_type.bit_offset = die.attributes[DW_AT.bit_offset].value
189 if DW_AT.bit_size in die.attributes:
190 new_type.bit_size = die.attributes[DW_AT.bit_size].value
191
192 return new_type
193
194 def prepass_create_struct_type(self, die: DIEV1) -> GStructType:
195 # Must be filled in later

Callers 1

Calls 4

parse_type_from_dieMethod · 0.95
GMemberClass · 0.85
get_die_nameFunction · 0.85
parseMethod · 0.45

Tested by

no test coverage detected