diff options
author | Ms2ger <ms2ger@gmail.com> | 2014-08-19 11:00:16 +0200 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2014-08-19 11:00:16 +0200 |
commit | eb6eee513f44ef10aaf0085054096c192153912a (patch) | |
tree | 09e0393bcbd97ce1ed41f40f3c01ec95e0a45db5 /src/components/script/dom/bindings/codegen/parser/external.patch | |
parent | 3f17a495640cb7f859401ea20267d52122f3f519 (diff) | |
download | servo-eb6eee513f44ef10aaf0085054096c192153912a.tar.gz servo-eb6eee513f44ef10aaf0085054096c192153912a.zip |
Add a script to update the WebIDL parser.
Diffstat (limited to 'src/components/script/dom/bindings/codegen/parser/external.patch')
-rw-r--r-- | src/components/script/dom/bindings/codegen/parser/external.patch | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/src/components/script/dom/bindings/codegen/parser/external.patch b/src/components/script/dom/bindings/codegen/parser/external.patch new file mode 100644 index 00000000000..9464511a9d0 --- /dev/null +++ b/src/components/script/dom/bindings/codegen/parser/external.patch @@ -0,0 +1,49 @@ +--- WebIDL.py ++++ WebIDL.py +@@ -450,44 +450,8 @@ class IDLIdentifierPlaceholder(IDLObjectWithIdentifier): + + class IDLExternalInterface(IDLObjectWithIdentifier): + def __init__(self, location, parentScope, identifier): +- assert isinstance(identifier, IDLUnresolvedIdentifier) +- assert isinstance(parentScope, IDLScope) +- self.parent = None +- IDLObjectWithIdentifier.__init__(self, location, parentScope, identifier) +- IDLObjectWithIdentifier.resolve(self, parentScope) +- +- def finish(self, scope): +- pass +- +- def validate(self): +- pass +- +- def isExternal(self): +- return True +- +- def isInterface(self): +- return True +- +- def isConsequential(self): +- return False +- +- def addExtendedAttributes(self, attrs): +- assert len(attrs) == 0 +- +- def resolve(self, parentScope): +- pass +- +- def getJSImplementation(self): +- return None +- +- def isJSImplemented(self): +- return False +- +- def getNavigatorProperty(self): +- return None +- +- def _getDependentObjects(self): +- return set() ++ raise WebIDLError("Servo does not support external interfaces.", ++ [self.location]) + + class IDLPartialInterface(IDLObject): + def __init__(self, location, name, members, nonPartialInterface): |