[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [Dltk-dev] Getting type information?
|
Hi Clemens,
This task is performed by SelectionEngines, and they are called via
codeSelect(int offset, int length) method in ISourceModule.
Regards,
Alex
----- Original Message -----
From: "Clemens Anhuth" <clemens@xxxxxxxxxxxxx>
To: "DLTK Developer Discussions" <dltk-dev@xxxxxxxxxxx>
Sent: Monday, May 4, 2009 6:14:25 PM GMT +06:00 Almaty, Novosibirsk
Subject: [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
_______________________________________________
dltk-dev mailing list
dltk-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dltk-dev