From 21607f066ca07a68a6fe84acad373de5da45523f Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Mon, 1 Dec 2014 10:10:33 -0500 Subject: Add internal plugin for creating Reflectable implementations --- components/plugins/jstraceable.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'components/plugins/jstraceable.rs') 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) 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) } -- cgit v1.2.3