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

Resolve Swift method name conflicts by adding missing namespace
This commit is contained in:
Alexander Smorkalov 2024-07-18 11:17:49 +03:00 committed by GitHub
commit 0020831414
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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:]