diff --git a/components/script_bindings/codegen/codegen.py b/components/script_bindings/codegen/codegen.py index 92ac3780e55..e94da1a2f47 100644 --- a/components/script_bindings/codegen/codegen.py +++ b/components/script_bindings/codegen/codegen.py @@ -3045,7 +3045,7 @@ class CGAbstractMethod(CGThing): extra_decorators: list[str] = []) -> None: CGThing.__init__(self) self.descriptor = descriptor - self.name = name + self.name = CGDictionary.makeMemberName(name) self.returnType = returnType self.args = args self.alwaysInline = alwaysInline @@ -4805,7 +4805,7 @@ class CGMemberJITInfo(CGThing): ), } """, - opValue=f"Some({opName}::)", + opValue=f"Some({CGDictionary.makeMemberName(opName)}::)", name=self.descriptor.name, depth=str(self.descriptor.interface.inheritanceDepth()), opType=opType, @@ -5137,7 +5137,7 @@ class CGStaticMethodJitinfo(CGGeneric): pub(crate) fn init_{method.identifier.name}_methodinfo() {{ {method.identifier.name}_methodinfo.set(JSJitInfo {{ __bindgen_anon_1: JSJitInfo__bindgen_ty_1 {{ - staticMethod: Some({method.identifier.name}::) + staticMethod: Some({CGDictionary.makeMemberName(method.identifier.name)}::) }}, __bindgen_anon_2: JSJitInfo__bindgen_ty_2 {{ protoID: PrototypeList::ID::Last as u16,