www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - json output and Visual D

reply Walter Bright <newshound1 digitalmars.com> writes:
This is for Rainer Schuetze:

Can you describe what dmd's json output does for Visual D? I'm very curious.
Apr 26 2010
parent reply Rainer Schuetze <r.sagitario gmx.de> writes:
Currently, it allows jumping to the definition of the identifier at the 
cursor position. (it just jumps to the first definition found without 
allowing disambiguation by the user - but this is rather high on my todo 
list). It also does not look at the scope to filter the possible 
candidates yet.

Another thing, that is even more useful when using it on the runtime 
library, is the "method-tooltip" (usually shown after the opening 
parenthesis), that allows you to scroll through available methods 
showing the prototype and highlighting the current argument. Also high 
on my todo list.

Other things that can be implemented with the json output:
- word-completion (not so easy without local variable type info, but I'd 
say it needs to be rather sloppy anyway)
- find symbol definition by text pattern

More ideas welcome!

Walter Bright wrote:
 This is for Rainer Schuetze:
 
 Can you describe what dmd's json output does for Visual D? I'm very 
 curious.

Apr 26 2010
parent Walter Bright <newshound1 digitalmars.com> writes:
Rainer Schuetze wrote:
 More ideas welcome!

The speller that comes with the dmd source should be useful.
Apr 26 2010