diff options
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) } |