This "this" should have the same type as the current context in the 
InferEngine.  You can set the current context by doing 
"currentContext.currentType= ??". 
If we see a "this.something" in a function, we assume there is somekind of 
object involved, and if we dont know the type, we create an anonymous 
type.

Phil Berkland
IBM Software Group Emerging Technologies



Matthias Kempka <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED]
04/07/2008 07:39 AM
Please respond to
"General discussion of project-wide or architectural issues." 
<[email protected]>


To
WTP general discussion <[email protected]>
cc

Subject
[wtp-dev] JSDT inference: type of "this"






Hi Phil and Brad,

While developing the inferrence support for Qooxdoo, I came across 
problems with the keyword "this".
During the call of InferenceSupport.visit(IThisReference) I know 
exactly the type that the thisReference should have, but I can't 
assign it. Instead the thisReference has some anonymous type that does 
contain some of the type informations of the qooxdoo class but not all 
of it. Specifically qooxdoo features like properties and hierarchy 
information is lost.

So my question is: How does the anonymous type gather the type 
information? It seems that it is not totally ignorant of the 
information as methods and members are there.
Is there a way of setting the type of "this" or declaring that the 
anonymous type of this is actually the one of the class that I know 
about?

Best Regards,
Matthias Kempka

-- 
Dipl.-Inform. Matthias Kempka
Innoopract Informationssysteme GmbH
[EMAIL PROTECTED]
Tel:  0721 - 66 47 33 - 0
Fax: 0721 - 66 47 33 29
========================= Legal Disclaimer =====================
According to Section 80 of the German Corporation Act
Innoopract Informationssysteme GmbH must indicate the following 
information:
Address: Stephanienstrasse 20, 76133 Karlsruhe Germany
General Manager: Jochen Krause, Eric von der Heyden
Registered Office: Karlsruhe, Commercial Register Karlsruhe HRB 7883
============================================================





_______________________________________________
wtp-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/wtp-dev

_______________________________________________
wtp-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/wtp-dev

Reply via email to