Generate imaging and rendering API shims

This commit is contained in:
2026-08-08 12:03:16 +02:00
parent 0a2e7dd057
commit 8ca986dbd3
21 changed files with 1345 additions and 147 deletions

View File

@@ -826,7 +826,14 @@ def coverage_report(catalog: dict, type_rows: list[dict[str, str]], member_rows:
def generate() -> dict[Path, str]:
catalog = json.loads(CATALOG.read_text())
type_rows, resolved = build_type_rows(catalog)
interfaces = {type_parts(item["signature"])[0] for assembly in catalog["assemblies"] for item in assembly["types"] if item["kind"] == "interface"}
interfaces = {
*{type_parts(item["signature"])[0] for assembly in catalog["assemblies"] for item in assembly["types"] if item["kind"] == "interface"},
*{
type_parts(item["signature"])[0]
for item in catalog["external_types"]
if item["kind"] == "interface" and not item["assembly"]["name"].startswith("System")
},
}
mapper = Mapper(resolved, interfaces)
member_rows = build_member_rows(catalog, mapper)
validate(catalog, type_rows, member_rows, mapper)