Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[Dltk-dev] Getting type information?

Hello everyone.

Does DLTK offer a standard mechanism to ask for the type of, for example, a variable? Code example:

###
1: var x = "";
2: function getX() {
3:   return x;
4: }
5:
6: var y = getX();
7: y.
###

Or:

###
1: var x = "";
2: var y = x;
3: y.
###

I would like to be able to ask DLTK for the type of y in line 7 of the first example, or in line 3 of the second example, and get "String" or so as a reply.

I suspect that at the moment the DLTK API does not provide access to this information in the engines. Is that correct?



Later, I would need to declare APIs and have the respective DLTK engines use these "other" API declarations in their parsers. That way I could make the Adobe InDesign API known to the DLTK JavaScript IDE. Has this been considered yet?



With best regards

Clemens Anhuth


--
www.froglogic.com - Squish - Multi-Platform GUI Testing



Back to the top