Skip to content

Commit 3213d4a

Browse files
committed
Update to 0.0.14 step 5
1 parent 48bf688 commit 3213d4a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/generators/trait_generator.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ def generate_trait(self, struct_name, struct_details):
2222

2323
# swift_struct_name = struct_name[3:] + 'Trait'
2424
swift_struct_name = struct_name[3:]
25+
if swift_struct_name == 'Type':
26+
swift_struct_name = 'BindingsType'
2527

2628
native_callback_template_regex = re.compile("(\/\* NATIVE_CALLBACKS_START \*\/\n)(.*)(\n[\t ]*\/\* NATIVE_CALLBACKS_END \*\/)", flags=re.MULTILINE | re.DOTALL)
2729
native_callback_template = native_callback_template_regex.search(self.template).group(2)

0 commit comments

Comments
 (0)