diff options
author | Keegan McAllister <kmcallister@mozilla.com> | 2014-11-03 17:21:18 -0800 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2014-11-13 12:53:54 -0500 |
commit | 642a3592c7ea1b82e3a3a660370b9871aa5b5e96 (patch) | |
tree | cc8ad346f90ceae09fe30d2a14a22d47b7c1e387 /components/script/dom/bindings/codegen/parser/module.patch | |
parent | 89a27dd11a5767423535ec0610e2cb560c2bb3a3 (diff) | |
download | servo-642a3592c7ea1b82e3a3a660370b9871aa5b5e96.tar.gz servo-642a3592c7ea1b82e3a3a660370b9871aa5b5e96.zip |
Fix interfaces test
Diffstat (limited to 'components/script/dom/bindings/codegen/parser/module.patch')
-rw-r--r-- | components/script/dom/bindings/codegen/parser/module.patch | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/components/script/dom/bindings/codegen/parser/module.patch b/components/script/dom/bindings/codegen/parser/module.patch index 977947b4c63..f2ed1aff944 100644 --- a/components/script/dom/bindings/codegen/parser/module.patch +++ b/components/script/dom/bindings/codegen/parser/module.patch @@ -1,5 +1,14 @@ --- WebIDL.py +++ WebIDL.py +@@ -1422,6 +1422,9 @@ class IDLDictionary(IDLObjectWithScope): + self.identifier.name, + [member.location] + locations) + ++ def module(self): ++ return self.location.filename().split('/')[-1].split('.webidl')[0] + 'Binding' ++ + def addExtendedAttributes(self, attrs): + assert len(attrs) == 0 @@ -3398,6 +3398,9 @@ class IDLCallbackType(IDLType, IDLObjectWithScope): self._treatNonCallableAsNull = False self._treatNonObjectAsNull = False |