We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 245e627 commit 631c531Copy full SHA for 631c531
1 file changed
libs/metadata_generators/ios_metadata_generator.py
@@ -18,8 +18,12 @@ def extract(cursor):
18
elif cursor.kind == clang.cindex.CursorKind.OBJC_PROPERTY_DECL:
19
data["Type"] = "Property"
20
else:
21
- return None
22
- children = [extract(c) for c in cursor.get_children()]
+ data["Type"] = "Other" # Add this line
+ 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 = []
27
children = [c for c in children if c is not None]
28
if children:
29
data["Children"] = children
0 commit comments