| Hi Arián, 
 I used JSDT infer engine to report EXTJS classes in extjs-eclipse plugin [1]. 
 Real implementation is in InferEngine class [2]. You are able to register classes (InferTypes) and override variable type and method/functions return types.  There is one huge limitation : you cannot register methods and variables without AST.  [1] - https://github.com/zulus/extjs-eclipse
  -- Dawid Pakuła
 +48 795 996 064
On 11 September 2015 at 20:46:44, Victor V. Rubezhny (vrubezhny@xxxxxxxxxx) wrote: 
Hi Arián, 
Unfortunately, I don't know if there is a document on JSDT
Inference, other than _javascript_ Development Guide > Reference
> org.eclipse.wst.jsdt.core.inferrenceSupport  .
 
There are several projects that provide their own custom Inference
Engines, for example: https://github.com/zulus/extjs-eclipse 
- so you can use it as an example.
 
Best Regards, 
Victor Rubezhny, 
JSDT
 
On 09/11/2015 07:45 PM, Arián Fornaris Fernández wrote:
Hello,
I am developing Phaser Editor (http://phasereditor.boniatillo.com), an
editor for the game engine http://phaser.io .
I am interested in the JSDT type inference, there is any document I
can read to understand how it works? A technical overview or something
like that? Right now JSDT is working very well with the Phaser API,
but yet there are things I would like to get much better.
What I did is to generate a _javascript_ API file and I added it to the
classpath container, but yet this is not perfect, it requires some
tweaks to express certain type relations (like namespaces).
What I would like to do is to provide an extension point to generate
the _javascript_ model in the fly, dynamically, and pass it to the type
inference, without the need to parse a JS API file. The other thing I
would like to do is to improve the jsdoc type annotations, I think it
is a good way to declare static types in JSDT.
Thanks very much for JSDT, it is really awsome.
Arian Fornaris
_______________________________________________
wtp-dev mailing list
wtp-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/wtp-dev
 
_______________________________________________
 wtp-dev mailing list
 wtp-dev@xxxxxxxxxxx
 To change your delivery options, retrieve your password, or unsubscribe from this list, visit
 https://dev.eclipse.org/mailman/listinfo/wtp-dev
 |