aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/bindings/codegen/parser/WebIDL.py
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2014-03-03 19:46:26 +0100
committerMs2ger <ms2ger@gmail.com>2014-03-03 19:49:08 +0100
commit3530f1e107088c67089bc7a63d790ab12046f798 (patch)
tree1e62573920538f954126f047b091090e25efa14e /src/components/script/dom/bindings/codegen/parser/WebIDL.py
parentb8de1b3ca7208efdf7c8934e75197dac943533cb (diff)
downloadservo-3530f1e107088c67089bc7a63d790ab12046f798.tar.gz
servo-3530f1e107088c67089bc7a63d790ab12046f798.zip
Remove support for external (i.e. XPIDL) interfaces.
Diffstat (limited to 'src/components/script/dom/bindings/codegen/parser/WebIDL.py')
-rw-r--r--src/components/script/dom/bindings/codegen/parser/WebIDL.py37
1 files changed, 2 insertions, 35 deletions
diff --git a/src/components/script/dom/bindings/codegen/parser/WebIDL.py b/src/components/script/dom/bindings/codegen/parser/WebIDL.py
index 046b8130dff..cc8bec9d9ca 100644
--- a/src/components/script/dom/bindings/codegen/parser/WebIDL.py
+++ b/src/components/script/dom/bindings/codegen/parser/WebIDL.py
@@ -450,41 +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 _getDependentObjects(self):
- return set()
+ raise WebIDLError("Servo does not support external interfaces.",
+ [self.location])
class IDLInterface(IDLObjectWithScope):
def __init__(self, location, parentScope, name, parent, members,