fix: resolve Swift method name conflicts by adding missing namespace

pull/25927/head
Yang Chao 4 months ago
parent 53a5b85d9f
commit bcce38c05a
No known key found for this signature in database
GPG Key ID: 9AC76616DD434ADC
  1. 1
      modules/objc/generator/gen_objc.py

@ -481,6 +481,7 @@ class FuncInfo(GeneralInfo):
self.objc_name = "getelem" self.objc_name = "getelem"
if self.namespace in namespaces_dict: if self.namespace in namespaces_dict:
self.objc_name = '%s_%s' % (namespaces_dict[self.namespace], self.objc_name) self.objc_name = '%s_%s' % (namespaces_dict[self.namespace], self.objc_name)
self.swift_name = '%s_%s' % (namespaces_dict[self.namespace], self.swift_name)
for m in decl[2]: for m in decl[2]:
if m.startswith("="): if m.startswith("="):
self.objc_name = m[1:] self.objc_name = m[1:]

Loading…
Cancel
Save