Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 461446

Summary: [hover] Some hovers showing default value when comments are available
Product: [ECD] Orion Reporter: Michael Rennie <Michael_Rennie>
Component: JS ToolsAssignee: Michael Rennie <Michael_Rennie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 8.0   
Target Milestone: 9.0   
Hardware: All   
OS: All   
Whiteboard:

Description Michael Rennie CLA 2015-03-04 16:49:29 EST
Looks like some more fallout from https://github.com/jquery/esprima/issues/1071.

Consider the following snippet:

/* eslint-disable */
var test = 'broken';
/**
 * @description This is a function that does nothing but takes three parameters
 * @private
 * @constructor 
 */ 
function f1(one, two, three) {
     var v = 10;
}
var o = {
    /**
     * @returns {} Returns nothing
     */
    one: function(one) {
        /**
         * @description NOT THE SAME ONE
         * @returns {Void} nothing is returned from this shadow
         */
        function f1() {
            var v = 10;
        }
        f1(); 
    }
}
f1();

Hovering over the function expression 'one' and the inner function decl do not produce hovers with the attached doc in them.