Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 258643 - Support constants
Support constants
Product: javascript
Classification: Unclassified
Component: Editor
PC Linux
: P3 (vote)
: 8.2
Assigned To: Petr Pisl
Depends on:
Blocks: 242387
  Show dependency treegraph
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

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

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 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.

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo