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

Bug 506987

Summary: JavaScript outline does not show class methods correctly (improper handling of MethodDefinition nodes)
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: unspecified   
Target Milestone: 13.0   
Hardware: PC   
OS: Mac OS X   
Whiteboard:

Description Michael Rennie CLA 2016-11-03 11:19:50 EDT
Consider the following snippet:

export default class MyClass {
	constructor() {
	}
	func() {
		return function out() {
			
		};
	}
	func2() {
		return {};
	}
}

If you open the Source outline, you will see a function entry under 'constructor', 'fund' and 'func2'. This is not correct since those entries are themselves the function s (MethodDefinition nodes to be precise).