mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
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:
parent
05e456d0d2
commit
372da02a42
2 changed files with 3 additions and 2 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue