vmware-archive / scripted

The Scripted code editor
Eclipse Public License 1.0
1.56k stars 166 forks source link

Content assist does not work it returned type is defined further down the script #303

Open nknapp opened 10 years ago

nknapp commented 10 years ago

Consider the following code snippet:

var MyObj1 = function() { };
MyObj1.prototype.myFunction1 = function() { };

/**
 * @return {MyObj1}
 **/
function obj1() {
    return 
}

 /**
 * @return {MyObj2}
 **/
function obj2() {
    return 
}

var MyObj2 = function() { };
MyObj2.prototype.myFunction2 = function() { };

Below this code, I enter obj1(). and hit Ctrl+Space and Content-Assist to complete the statement with myFunction1(), which is correct.

When I enter obj2(). and hit Ctrl+Space, Content-Assist does not suggest myFunction2(), which it should do.