Merge pull request #25927 from yeatse:fix-swift-name

Resolve Swift method name conflicts by adding missing namespace
pull/25898/head
Alexander Smorkalov 4 months ago committed by GitHub
commit 0020831414
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      modules/objc/generator/gen_objc.py

@ -481,6 +481,7 @@ class FuncInfo(GeneralInfo):
self.objc_name = "getelem"
if self.namespace in namespaces_dict:
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]:
if m.startswith("="):
self.objc_name = m[1:]

Loading…
Cancel
Save