mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Use CGIndenter for CGGetPerInterfaceObject.definition_body.
This commit is contained in:
parent
44a609d563
commit
b717fbe868
1 changed files with 25 additions and 25 deletions
|
@ -1969,12 +1969,12 @@ class CGGetProtoObjectMethod(CGGetPerInterfaceObject):
|
||||||
CGGetPerInterfaceObject.__init__(self, descriptor, "GetProtoObject",
|
CGGetPerInterfaceObject.__init__(self, descriptor, "GetProtoObject",
|
||||||
"PrototypeList::", pub=True)
|
"PrototypeList::", pub=True)
|
||||||
def definition_body(self):
|
def definition_body(self):
|
||||||
return CGList([
|
return CGIndenter(CGList([
|
||||||
CGGeneric("""
|
CGGeneric("""
|
||||||
/* Get the interface prototype object for this class. This will create the
|
/* Get the interface prototype object for this class. This will create the
|
||||||
object as needed. */"""),
|
object as needed. */"""),
|
||||||
CGGetPerInterfaceObject.definition_body(self),
|
CGGetPerInterfaceObject.definition_body(self),
|
||||||
])
|
]))
|
||||||
|
|
||||||
class CGGetConstructorObjectMethod(CGGetPerInterfaceObject):
|
class CGGetConstructorObjectMethod(CGGetPerInterfaceObject):
|
||||||
"""
|
"""
|
||||||
|
@ -1984,12 +1984,12 @@ class CGGetConstructorObjectMethod(CGGetPerInterfaceObject):
|
||||||
CGGetPerInterfaceObject.__init__(self, descriptor, "GetConstructorObject",
|
CGGetPerInterfaceObject.__init__(self, descriptor, "GetConstructorObject",
|
||||||
"constructors::")
|
"constructors::")
|
||||||
def definition_body(self):
|
def definition_body(self):
|
||||||
return CGList([
|
return CGIndenter(CGList([
|
||||||
CGGeneric("""
|
CGGeneric("""
|
||||||
/* Get the interface object for this class. This will create the object as
|
/* Get the interface object for this class. This will create the object as
|
||||||
needed. */"""),
|
needed. */"""),
|
||||||
CGGetPerInterfaceObject.definition_body(self),
|
CGGetPerInterfaceObject.definition_body(self),
|
||||||
])
|
]))
|
||||||
|
|
||||||
class CGDefineDOMInterfaceMethod(CGAbstractMethod):
|
class CGDefineDOMInterfaceMethod(CGAbstractMethod):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue