| RE: [wtp-dev] [JSDT] any way to copy one type to another? |
|
I'd like to have both Type1 and Type2 display the same in Outline and visible in content assist. Real world example could be jQuery, e.g.:
jQuery = function() { } jQuery.prototype.extend = function() {}; $ = jQuery; So now jQuery has correct outline and content assist, whereas $ doesn't. From: wtp-dev-bounces@xxxxxxxxxxx [wtp-dev-bounces@xxxxxxxxxxx] on behalf of Christopher Jaun [cmjaun@xxxxxxxxxx]
Sent: 17 June 2010 15:50 To: General discussion of project-wide or architectural issues. Subject: Re: [wtp-dev] [JSDT] any way to copy one type to another? Hi Jacek,
hi, let's assume I have Type1 and Type2 which are the same: /** * @constructor */ Type1 = function() { } /** * @memberOf Type1 */ Type1.prototype.coolDynFunc = function() { } /** * @magic */ Type2 = Type1; is there a way to make JSDT understand this assignment and show Type1 and Type2 as two exactly the same types? thanks! Jacek _______________________________________________ wtp-dev mailing list wtp-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/wtp-dev |