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

Summary: Support constants
Product: javascript Reporter: Petr Pisl <ppisl>
Component: EditorAssignee: Petr Pisl <ppisl>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Linux   
Issue Type: TASK Exception Reporter:
Bug Depends on:    
Bug Blocks: 242387    
Attachments: Constants

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.