mirror of
https://github.com/servo/servo.git
synced 2025-06-08 16:43:28 +00:00
Remove support for external interfaces.
This commit is contained in:
parent
278f47ad46
commit
4b65f47315
1 changed files with 2 additions and 38 deletions
|
@ -443,44 +443,8 @@ class IDLIdentifierPlaceholder(IDLObjectWithIdentifier):
|
||||||
|
|
||||||
class IDLExternalInterface(IDLObjectWithIdentifier):
|
class IDLExternalInterface(IDLObjectWithIdentifier):
|
||||||
def __init__(self, location, parentScope, identifier):
|
def __init__(self, location, parentScope, identifier):
|
||||||
assert isinstance(identifier, IDLUnresolvedIdentifier)
|
raise WebIDLError("Servo does not support external interfaces.",
|
||||||
assert isinstance(parentScope, IDLScope)
|
[self.location])
|
||||||
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()
|
|
||||||
|
|
||||||
class IDLInterface(IDLObjectWithScope):
|
class IDLInterface(IDLObjectWithScope):
|
||||||
def __init__(self, location, parentScope, name, parent, members,
|
def __init__(self, location, parentScope, name, parent, members,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue