aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/codegen/parser/module.patch
blob: 977947b4c636b23cb7d6789075b2c7d8313320fa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
--- WebIDL.py
+++ WebIDL.py
@@ -3398,6 +3398,9 @@ class IDLCallbackType(IDLType, IDLObjectWithScope):
         self._treatNonCallableAsNull = False
         self._treatNonObjectAsNull = False
 
+    def module(self):
+        return self.location.filename().split('/')[-1].split('.webidl')[0] + 'Binding'
+
     def isCallback(self):
         return True