Link [Abstract] to the existing concrete descriptor field

This makes codegen not emit anything strictly related to the interface which
are never used in the case of abstract interfaces, such as the Wrap method
or the DOMJSClass.
This commit is contained in:
Anthony Ramine 2015-12-16 00:40:37 +01:00
parent 05e456d0d2
commit 372da02a42
2 changed files with 3 additions and 2 deletions

View file

@ -4986,7 +4986,8 @@ class CGDescriptor(CGThing):
cgThings.append(CGWrapMethod(descriptor))
if not descriptor.interface.isCallback():
cgThings.append(CGIDLInterface(descriptor))
if descriptor.concrete or descriptor.hasDescendants():
cgThings.append(CGIDLInterface(descriptor))
cgThings.append(CGInterfaceTrait(descriptor))
if descriptor.weakReferenceable:
cgThings.append(CGWeakReferenceableTrait(descriptor))