Skip to content

Commit 631c531

Browse files
committed
Update metadata generator
1 parent 245e627 commit 631c531

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

libs/metadata_generators/ios_metadata_generator.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,12 @@ def extract(cursor):
1818
elif cursor.kind == clang.cindex.CursorKind.OBJC_PROPERTY_DECL:
1919
data["Type"] = "Property"
2020
else:
21-
return None
22-
children = [extract(c) for c in cursor.get_children()]
21+
data["Type"] = "Other" # Add this line
22+
try:
23+
children = [extract(c) for c in cursor.get_children()]
24+
except ValueError as e:
25+
print(f"Encountered error with cursor {cursor.spelling}: {e}")
26+
children = []
2327
children = [c for c in children if c is not None]
2428
if children:
2529
data["Children"] = children

0 commit comments

Comments
 (0)