aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/codegen/Configuration.py
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2015-09-27 13:37:57 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2015-10-14 18:45:35 +0200
commitaab2c40389c71c4b0db3ffa75bdec99cd440b8af (patch)
treebfb10ce6c6c81cbc33b2ca34b8c8447d943ffd6a /components/script/dom/bindings/codegen/Configuration.py
parent55769b2fbf24ed84ee0f8ea5fe856e5fd29d8e60 (diff)
downloadservo-aab2c40389c71c4b0db3ffa75bdec99cd440b8af.tar.gz
servo-aab2c40389c71c4b0db3ffa75bdec99cd440b8af.zip
Generate the TypeId enums in codegen
Diffstat (limited to 'components/script/dom/bindings/codegen/Configuration.py')
-rw-r--r--components/script/dom/bindings/codegen/Configuration.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/components/script/dom/bindings/codegen/Configuration.py b/components/script/dom/bindings/codegen/Configuration.py
index a8179c5be95..4275d8da24c 100644
--- a/components/script/dom/bindings/codegen/Configuration.py
+++ b/components/script/dom/bindings/codegen/Configuration.py
@@ -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