Refactor #[jstraceable] to #[derive(JSTraceable)]

fixes #6524
This commit is contained in:
David Winslow 2015-07-01 16:31:07 -04:00
parent e958d92be6
commit 4cf46bff2d
51 changed files with 97 additions and 137 deletions

View file

@ -3189,8 +3189,7 @@ class CGEnum(CGThing):
decl = """\
#[repr(usize)]
#[derive(PartialEq, Copy, Clone)]
#[jstraceable]
#[derive(JSTraceable, PartialEq, Copy, Clone)]
pub enum %s {
%s
}
@ -5181,7 +5180,7 @@ class CGCallback(CGClass):
bases=[ClassBase(baseName)],
constructors=self.getConstructors(),
methods=realMethods+getters+setters,
decorators="#[derive(PartialEq)]#[jstraceable]")
decorators="#[derive(JSTraceable, PartialEq)]")
def getConstructors(self):
return [ClassConstructor(