Import Module Intellisense

Hi,

Thanks to codemirror team. I have implemented AutoComplete successfully but now im trying to implement intellisense on import module. If we press “.” i need to show all the related functions to that file. Please find the below example. Please help me on this.
For eg:
import statement1
statement.greeting();

The Tern integration can do something like this for JavaScript (you didn’t mention which language you’re using), but it’s not trivial to set up—you have to give the analyzer access to the content of the imported modules somehow.