Use Foo_Binding instead of FooBinding for namespace modules (#30447)

* Update Codegen.py to emit Foo_Binding instead of FooBinding

* s/FooBinding/Foo_Binding/g
This commit is contained in:
Samson 2023-09-30 02:52:04 +02:00 committed by GitHub
parent 67f2f98a93
commit ebd41d4101
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
63 changed files with 102 additions and 86 deletions

View file

@ -232,7 +232,7 @@ class Descriptor(DescriptorProvider):
self.register = desc.get('register', True)
self.path = desc.get('path', pathDefault)
self.inRealmMethods = [name for name in desc.get('inRealms', [])]
self.bindingPath = 'crate::dom::bindings::codegen::Bindings::%s' % ('::'.join([ifaceName + 'Binding'] * 2))
self.bindingPath = f"crate::dom::bindings::codegen::Bindings::{ifaceName}Binding::{ifaceName}_Binding"
self.outerObjectHook = desc.get('outerObjectHook', 'None')
self.proxy = False
self.weakReferenceable = desc.get('weakReferenceable', False)