mirror of
https://github.com/servo/servo.git
synced 2025-06-11 10:00:18 +00:00
Include modules with only callbacks in BindingDeclarations.
This commit also includes improvements to the 'use' order in some of the touched files.
This commit is contained in:
parent
facc15f5fd
commit
33e64c95d3
9 changed files with 38 additions and 37 deletions
|
@ -5202,8 +5202,9 @@ class GlobalGenRoots():
|
|||
@staticmethod
|
||||
def BindingDeclarations(config):
|
||||
|
||||
descriptors = [d.name for d in config.getDescriptors(register=True)]
|
||||
curr = CGList([CGGeneric("pub mod %sBinding;\n" % name) for name in descriptors])
|
||||
descriptors = (set(d.name + "Binding" for d in config.getDescriptors(register=True)) |
|
||||
set(d.unroll().module() for d in config.callbacks))
|
||||
curr = CGList([CGGeneric("pub mod %s;\n" % name) for name in sorted(descriptors)])
|
||||
curr = CGWrapper(curr, pre=AUTOGENERATED_WARNING_COMMENT)
|
||||
return curr
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue