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 - Functions in arrays are not detected / shown in Code Navigator
Summary: Functions in arrays are not detected / shown in Code Navigator
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: AngularJS (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
Depends on:
Reported: 2013-08-31 11:29 UTC by digitman222
Modified: 2015-09-09 11:41 UTC (History)
1 user (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description digitman222 2013-08-31 11:29:12 UTC
If you do the following:

MyApp.service('foo', ['dep1', 'dep2', function(dep1, dep2)
  { = {}; = 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.