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 253155

Summary: Mark coccurrences doesn't mark for properties of anonymous object returned from a function
Product: javascript Reporter: Petr Pisl <ppisl>
Component: EditorAssignee: Petr Pisl <ppisl>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Petr Pisl 2015-06-24 11:38:58 UTC
Have a code: 
var test = {};

/**
 * @private
 * 
 */
test.prototype.getTest = function() {
    return {property1 : {aaa: 0, abb: "ahoj"},
            method2 : function () {}};
};

test.prototype.run = function() {
    var foo = this.getTest().property1.aaa;
};


On the line "var foo = this.getTest().property1.aaa;" the mark occurrences doesn't work for property1 and aaa identifier.