mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
Don't generate useless InheritTypes interfaces
Interfaces with no descendant need neither a Base trait nor upcast functions, and interfaces with no ancestors neither a Derived trait nor downcast functions.
This commit is contained in:
parent
a7208869f2
commit
e24b8ab644
2 changed files with 78 additions and 51 deletions
|
@ -227,9 +227,9 @@ class Descriptor(DescriptorProvider):
|
|||
|
||||
if self.proxy:
|
||||
iface = self.interface
|
||||
while iface:
|
||||
iface.setUserData('hasProxyDescendant', True)
|
||||
while iface.parent:
|
||||
iface = iface.parent
|
||||
iface.setUserData('hasProxyDescendant', True)
|
||||
|
||||
self.name = interface.identifier.name
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue