diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2014-12-01 10:10:33 -0500 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2014-12-27 02:43:13 +0530 |
commit | 21607f066ca07a68a6fe84acad373de5da45523f (patch) | |
tree | 57781640172e2f07deaf0023f1e12727bb9ab55f /components/plugins/jstraceable.rs | |
parent | dd8360fb10a16f2124addfb276400615fe78a7ee (diff) | |
download | servo-21607f066ca07a68a6fe84acad373de5da45523f.tar.gz servo-21607f066ca07a68a6fe84acad373de5da45523f.zip |
Add internal plugin for creating Reflectable implementations
Diffstat (limited to 'components/plugins/jstraceable.rs')
-rw-r--r-- | components/plugins/jstraceable.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/components/plugins/jstraceable.rs b/components/plugins/jstraceable.rs index 158ec60f37f..a093ae9128a 100644 --- a/components/plugins/jstraceable.rs +++ b/components/plugins/jstraceable.rs @@ -17,6 +17,9 @@ pub fn expand_dom_struct(_: &mut ExtCtxt, _: Span, _: &MetaItem, item: P<Item>) item2.attrs.push(attr::mk_attr_outer(attr::mk_attr_id(), attr::mk_word_item(InternedString::new("must_root")))); item2.attrs.push(attr::mk_attr_outer(attr::mk_attr_id(), attr::mk_word_item(InternedString::new("privatize")))); item2.attrs.push(attr::mk_attr_outer(attr::mk_attr_id(), attr::mk_word_item(InternedString::new("jstraceable")))); + + // The following attribute is only for internal usage + item2.attrs.push(attr::mk_attr_outer(attr::mk_attr_id(), attr::mk_word_item(InternedString::new("_generate_reflector")))); P(item2) } |