mirror of
https://github.com/servo/servo.git
synced 2025-08-02 04:00:32 +01:00
Generate the TypeId enums in codegen
This commit is contained in:
parent
55769b2fbf
commit
aab2c40389
107 changed files with 678 additions and 774 deletions
|
@ -318,6 +318,14 @@ class Descriptor(DescriptorProvider):
|
|||
maybeAppendInfallibleToAttrs(attrs, throws)
|
||||
return attrs
|
||||
|
||||
def getParentName(self):
|
||||
assert self.interface.parent is not None
|
||||
return self.interface.parent.identifier.name
|
||||
|
||||
def hasDescendants(self):
|
||||
return (self.interface.getUserData("hasConcreteDescendant", False) or
|
||||
self.interface.getUserData("hasProxyDescendant", False))
|
||||
|
||||
def isGlobal(self):
|
||||
"""
|
||||
Returns true if this is the primary interface for a global object
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue