mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Use snake case for the members of NativeProperties.
Note that the codegen uses the names of the Python fields to initialize the Rust struct.
This commit is contained in:
parent
b4b59df5e4
commit
23813577d1
2 changed files with 15 additions and 11 deletions
|
@ -1905,10 +1905,10 @@ class CGAbstractExternMethod(CGAbstractMethod):
|
|||
|
||||
class PropertyArrays():
|
||||
def __init__(self, descriptor):
|
||||
self.staticMethods = MethodDefiner(descriptor, "StaticMethods",
|
||||
static=True)
|
||||
self.staticAttrs = AttrDefiner(descriptor, "StaticAttributes",
|
||||
static=True)
|
||||
self.static_methods = MethodDefiner(descriptor, "StaticMethods",
|
||||
static=True)
|
||||
self.static_attrs = AttrDefiner(descriptor, "StaticAttributes",
|
||||
static=True)
|
||||
self.methods = MethodDefiner(descriptor, "Methods", static=False)
|
||||
self.attrs = AttrDefiner(descriptor, "Attributes", static=False)
|
||||
self.consts = ConstDefiner(descriptor, "Constants")
|
||||
|
@ -1916,7 +1916,7 @@ class PropertyArrays():
|
|||
|
||||
@staticmethod
|
||||
def arrayNames():
|
||||
return [ "staticMethods", "staticAttrs", "methods", "attrs", "consts" ]
|
||||
return ["static_methods", "static_attrs", "methods", "attrs", "consts"]
|
||||
|
||||
def variableNames(self):
|
||||
names = {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue