mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Prevent doing use self::FooBinding::{}
This commit is contained in:
parent
bd05aa2c3c
commit
b745866a4d
1 changed files with 7 additions and 3 deletions
|
@ -5768,10 +5768,14 @@ class CGDescriptor(CGThing):
|
||||||
cgThings = CGWrapper(CGNamespace(toBindingNamespace(descriptor.name),
|
cgThings = CGWrapper(CGNamespace(toBindingNamespace(descriptor.name),
|
||||||
cgThings, public=True),
|
cgThings, public=True),
|
||||||
post='\n')
|
post='\n')
|
||||||
|
|
||||||
|
if reexports:
|
||||||
reexports = ', '.join(map(lambda name: reexportedName(name), reexports))
|
reexports = ', '.join(map(lambda name: reexportedName(name), reexports))
|
||||||
self.cgRoot = CGList([CGGeneric('pub use self::%s::{%s};' % (toBindingNamespace(descriptor.name), reexports)),
|
cgThings = CGList([CGGeneric('pub use self::%s::{%s};' % (toBindingNamespace(descriptor.name), reexports)),
|
||||||
cgThings], '\n')
|
cgThings], '\n')
|
||||||
|
|
||||||
|
self.cgRoot = cgThings
|
||||||
|
|
||||||
def define(self):
|
def define(self):
|
||||||
return self.cgRoot.define()
|
return self.cgRoot.define()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue