Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [wtp-dev] JSDT inference: type of "this"

On Apr 7, 2008, at 2:39 PM, Matthias Kempka wrote:
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.

Interestingly: As long as I'm in the constructor, everything works fine. The only difference in adding a constructor to a type vs adding a method to a type is a different value of the "isConstructor" parameter when calling


Best Regards,
Dipl.-Inform. Matthias Kempka
Innoopract Informationssysteme GmbH
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

Back to the top