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 223111 - Weird anonymous functions as methods in CC
Summary: Weird anonymous functions as methods in CC
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-01 21:50 UTC by c69
Modified: 2015-08-05 01:20 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
cc dropdown screenshot (68.69 KB, image/png)
2012-12-01 21:50 UTC, c69
Details

Note You need to log in before you can comment on or make changes to this bug.
Description c69 2012-12-01 21:50:24 UTC
Created attachment 128698 [details]
cc dropdown screenshot

Not sure what you have to do to properly reproduce this, but .. if in my project  you type the:

var x = {
aProperty: 1
}.|

you will see lots of different unrelated stuff, including things like  _L143() - anonymous functions, i presume.

What i expected to see, though, is:
aProperty

But its not among the hundreds of suggestions.
Comment 1 Petr Pisl 2012-12-03 16:32:09 UTC
You are right, the names like _L143 are internal names of anonymous functions. We used for finding scopes etc. 

The problem is in recognizing context in this case.
Comment 2 Petr Pisl 2013-08-21 21:38:37 UTC
The anonymous function shouldn't be in cc items anymore. But the property of the object are not offered.
Comment 3 Petr Pisl 2015-08-04 13:53:06 UTC
The property are now offered. Should work correctly now. Adding test for the cc.
Comment 4 Quality Engineering 2015-08-05 01:20:18 UTC
Integrated into 'main-silver', will be available in build *201508050002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/46425d023aeb
User: Petr Pisl <ppisl@netbeans.org>
Log: #223111 - Weird anonymous functions as methods in CC