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 235345

Summary: Functions in arrays are not detected / shown in Code Navigator
Product: web Reporter: digitman222
Component: AngularJSAssignee: Petr Pisl <ppisl>
Status: NEW ---    
Severity: normal CC: ppisl
Priority: P3    
Version: 7.4   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:

Description digitman222 2013-08-31 11:29:12 UTC
If you do the following:

MyApp.service('foo', ['dep1', 'dep2', function(dep1, dep2)
  {
    this.foo = {};
    this.bar = function() {}
  }
]);

Then the function which you have specified as the 3rd element in the array is not recognized or shown in the code navigator.

This syntax of including functions in arrays is used extensively by newer libraries such as angularJS. It would be great if functions included in arrays are also detected and shown in code navigator.
Comment 1 Petr Pisl 2014-02-04 10:47:16 UTC
I agree. But I think this is framework specific, in this case Angular. We need know what means the parameters and what are the items of the array. Every framework it can treat this in different case.