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

Bug 473790

Summary: @callback on function assignment expression does not suppress missing param warnings
Product: [ECD] Orion Reporter: Michael Rennie <Michael_Rennie>
Component: JS ToolsAssignee: Michael Rennie <Michael_Rennie>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: Carolyn_MacLeod
Version: 10.0   
Target Milestone: 10.0   
Hardware: All   
OS: All   
Whiteboard:

Description Michael Rennie CLA 2015-07-28 17:41:05 EDT
Consider the following case:

/**
 * @param {Element} parent the parent dom where the commit info is rendered
 * @param {Object} commitInfo the commit info
 */
NavigatorRenderer.prototype.getCommitRenderer = function(parent, commitInfo) {
  return null;
};

if you add @callback to the existing doc node the unused param warnings don't go away. Even more annoying is that if you use the quickfix it adds '/* @callback */' in front of the function keyword, rather than in the existing doc block.