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 - Hint about ES6 in ES5 on actual line
Summary: Hint about ES6 in ES5 on actual line
Status: NEW
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-03 11:09 UTC by Vladimir Riha
Modified: 2016-07-18 11:12 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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)