This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 233289 - Navigation in with doesn't work, if the declaration is in different file
Summary: Navigation in with doesn't work, if the declaration is in different file
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 7.4
Hardware: PC Linux
: P4 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks: 232144
  Show dependency tree
 
Reported: 2013-07-24 08:06 UTC by Petr Pisl
Modified: 2013-08-13 12:46 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Pisl 2013-07-24 08:06:22 UTC
Have a two sources:

file1:
------------------------------
/**
 * @constructor
 * @returns {Man}
 */
function Man (fName, sName) {
    var firstName = fName;
    var secondName = sName;
    
    this.getFirstName = function () {
        return firstName;
    }
    
    this.getSecondName = function () {
        return secondName;
    }
    
    
}
-------------------------------
file2:
-------------------------------

var roman = new Man("Roman", "Php");

console.log();  
with(roman) {
   console.log(getFirstName()); 
}

-------------------------------

The Goto declaration doesn't work when you invoke ctrl+click action over the getFirstName() function in second file.
Comment 1 Petr Pisl 2013-07-24 08:08:03 UTC
This case is fixed at web-main in javascript-with branch
Comment 2 Petr Pisl 2013-08-13 12:46:34 UTC
Added to the web-main in the change: http://hg.netbeans.org/web-main/rev/5cbdcccf7a98