aBothe / Mono-D

D Add-In for MonoDevelop
http://wiki.dlang.org/Mono-D
Other
113 stars 26 forks source link

Parse local imports #557

Open etcimon opened 9 years ago

etcimon commented 9 years ago

It would be nice to be able to use auto-completion with local imports.

e.g.


void main()
{
    import std.container.array;

    Array!string arr; 
    arr. // doesn't show completion information
}
etcimon commented 9 years ago

On second check, the issue seems to be unrelated to local imports because they work on some types.

aBothe commented 9 years ago

It would've surprised me if local imports weren't handled. Why not use a simple string[] instead of Java-like ArrayList :smiley:

etcimon commented 9 years ago

It would've surprised me if local imports weren't handled. Why not use a simple string[] instead of Java-like ArrayList :smiley:

For a library that must be written @nogc =)

I think the main issue here is the lack of syntax highlighting on local imports. I still don't know this won't resolve to the Array type though..