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.
Summary: | Optional 'unused' hint for 'var fn = function FuncName() { ... }' | ||
---|---|---|---|
Product: | javascript | Reporter: | NukemBy |
Component: | Editor | Assignee: | Petr Pisl <ppisl> |
Status: | NEW --- | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 8.1 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | ENHANCEMENT | Exception Reporter: | |
Bug Depends on: | 238685, 252019, 252028 | ||
Bug Blocks: | |||
Attachments: | Unused-hint-for-functions.png |
Description
NukemBy
2015-04-23 12:10:59 UTC
Reproducible Product Version: NetBeans IDE Dev (Build 201504170001) Java: 1.8.0_40; Java HotSpot(TM) Client VM 25.40-b25 Runtime: Java(TM) SE Runtime Environment 1.8.0_40-b25 System: Linux version 3.13.0-35-generic running on i386; UTF-8; en_US (nb) I have played with this. The first problem here is that the parser doesn't mark these anonymous functions as anonymous. I know how to fix it if the anonymous function is used in var definition. I need to find out a solution for the object literal case. But this is just start. Then I have to change the way how such functions are handled so far. Like anonymous functions are not displayed in navigator, are not colored in semantic analyzer etc. I will create separate issue for different cases that has to be handled. |