feat: type_fields in diff and tracker, joined with emulator property reads
The tracker lists each scope's original properties (constructor chain, or class fields up the chain for Piklib 6.1 and singletons such as SCENE) and where the emulator reads them: a CNVParser.createVariable case arm, an attribute read in the type's class or Variable.java, or other code. The switch-arm parser is shared with the @ statements. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
9d5a600d6b
commit
aee8f17417
@@ -157,6 +157,10 @@ def render_text(diff: dict[str, Any], only: set[str] | None = None) -> str:
|
||||
if want("fields") and not _is_empty(diff["fields"]):
|
||||
_section_owned(out, "FIELDS", diff["fields"], _fmt_field,
|
||||
lambda f: f["owner"], lambda f: f["name"])
|
||||
if want("fields") and not _is_empty(diff.get("type_fields", _EMPTY)):
|
||||
_section_owned(out, "TYPE FIELDS", diff["type_fields"],
|
||||
lambda f: "{0}: {1}".format(f["name"], "/".join(f.get("value_types", []))),
|
||||
lambda f: f["type"], lambda f: f["name"])
|
||||
if want("layout") and not _is_empty(diff["struct_layout"]):
|
||||
_section_owned(out, "STRUCT LAYOUT", diff["struct_layout"], _fmt_layout,
|
||||
lambda x: x["owner"], lambda x: "@{0:#x}".format(x["offset"]))
|
||||
|
||||
Reference in New Issue
Block a user