Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [wtp-dev] [JSDT] any way to copy one type to another?

Hi Jacek,

I don't think that works right now.

Can you explain what you mean by having JSDT understand them as the exact same thing just so I'm clear? What is the use case?

Chris



Inactive hide details for Jacek Pospychała ---06/17/2010 09:35:29 AM---hi,Jacek Pospychała ---06/17/2010 09:35:29 AM---hi,

          Jacek Pospychała <jacek.p@xxxxxxxx>
          Sent by: wtp-dev-bounces@xxxxxxxxxxx

          06/17/2010 09:34 AM

          Please respond to
          "General discussion of project-wide or architectural issues." <wtp-dev@xxxxxxxxxxx>

To

"wtp-dev@xxxxxxxxxxx" <wtp-dev@xxxxxxxxxxx>

cc


Subject

[wtp-dev] [JSDT] any way to copy one type to another?

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

GIF image

GIF image

GIF image


Back to the top