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 262328

Summary: Hint about ES6 in ES5 on actual line
Product: javascript Reporter: Vladimir Riha <vriha>
Component: EditorAssignee: Milutin Kristofic <mkristofic>
Status: NEW ---    
Severity: normal CC: phejl
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Vladimir Riha 2016-06-03 11:09:13 UTC
I have following code in ES5 project:

=== CODE START ===
define([
    "event/RequestModel"
], function (RequestModel) {


    function SearchModel() {
        this.id = null;
        this.data = null;
        this.map = {};
    }


    SearchModel.prototype.getEventById = function (id) {
        let event = null;
        if (this.map.hasOwnProperty(id)) {
            event = this.map[id];
        } else {
            event = this.findEventById(id);
            this.map[id] = event;
        }

        return event;
    };




});
=== CODE END ===



and the hint is displayed on the last line but I think much better would be to display the hint at each line of code that has ES6 syntax



Thank you


Product Version: NetBeans IDE Dev (Build javascript2-frameworks-1959-on-20160602)
Java: 1.8.0_45; Java HotSpot(TM) 64-Bit Server VM 25.45-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_45-b14
System: Linux version 3.16.0-30-generic running on amd64; UTF-8; en_US (nb)