diff options
author | Ms2ger <ms2ger@gmail.com> | 2015-03-13 16:48:48 +0100 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2015-03-13 21:27:58 +0100 |
commit | 4157a2b02bcff44ccb476c1b3b52e4f74e650bf4 (patch) | |
tree | 4618c6c51144f8c19f9d8b89bf9d1689c7b42ee4 /components/script/dom/bindings/codegen/parser/module.patch | |
parent | 2382d71242b1f9fe6385b64436f3b18f8f0939bb (diff) | |
download | servo-4157a2b02bcff44ccb476c1b3b52e4f74e650bf4.tar.gz servo-4157a2b02bcff44ccb476c1b3b52e4f74e650bf4.zip |
Update the WebIDL parser.
Diffstat (limited to 'components/script/dom/bindings/codegen/parser/module.patch')
-rw-r--r-- | components/script/dom/bindings/codegen/parser/module.patch | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/components/script/dom/bindings/codegen/parser/module.patch b/components/script/dom/bindings/codegen/parser/module.patch index f2ed1aff944..aaec7c61b7e 100644 --- a/components/script/dom/bindings/codegen/parser/module.patch +++ b/components/script/dom/bindings/codegen/parser/module.patch @@ -1,15 +1,16 @@ --- WebIDL.py +++ WebIDL.py -@@ -1422,6 +1422,9 @@ class IDLDictionary(IDLObjectWithScope): +@@ -1506,6 +1506,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): + +@@ -3574,6 +3577,9 @@ class IDLCallbackType(IDLType, IDLObjectWithScope): self._treatNonCallableAsNull = False self._treatNonObjectAsNull = False |