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

Bug 433866

Summary: Program AST node range is wrong after recovery
Product: [ECD] Orion Reporter: Michael Rennie <Michael_Rennie>
Component: JS ToolsAssignee: Michael Rennie <Michael_Rennie>
Status: RESOLVED FIXED QA Contact:
Severity: critical    
Priority: P3 CC: mamacdon
Version: unspecified   
Target Milestone: 6.0 M2   
Hardware: All   
OS: All   
Whiteboard:

Description Michael Rennie CLA 2014-04-30 11:48:43 EDT
Consider the following snippet:

function f() {
	return {
	};
}

var f = {
	one
};

If you visit the AST, you will notice that the range for the Program node is [37, 56] when it should be [0, 56]