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 258643 - Support constants
Summary: Support constants
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks: 242387
  Show dependency tree
 
Reported: 2016-04-04 10:57 UTC by Petr Pisl
Modified: 2016-04-04 11:29 UTC (History)
0 users

See Also:
Issue Type: TASK
Exception Reporter:


Attachments
Constants (85.81 KB, image/png)
2016-04-04 11:00 UTC, Petr Pisl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Pisl 2016-04-04 10:57:04 UTC
ECMA Script 6 introduce keyword constant. NetBeans should treat constants navigator and code completion in different way as variables.
Comment 1 Petr Pisl 2016-04-04 11:00:15 UTC
Created attachment 159114 [details]
Constants

Constants have now "constant" icon in navigator and code completion item. In the editor the constant is treated as variable. So all features like mark occurrences, go to navigation, code completion, etc works as for a variable.
Comment 2 Petr Pisl 2016-04-04 11:03:07 UTC
I have also added support of @constant tag in JsDoc.
Comment 3 Petr Pisl 2016-04-04 11:29:41 UTC
Implemented in ecma6-truffel branch.