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

Bug 438402

Summary: Occurrences are not marked for ThrowStatements
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: 6.0   
Target Milestone: 7.0   
Hardware: PC   
OS: Mac OS X   
Whiteboard:
Attachments:
Description Flags
fix none

Description Michael Rennie CLA 2014-06-27 10:03:31 EDT
Consider the following snippet:

var e = 'don\'t do it man';
switch(a) {
    case 1: {
        throw e;
        foo;
    } 
}

1. select 'e' in the var decl
2. notice 'e' in 'throw e;' is not marked
Comment 1 Michael Rennie CLA 2014-07-02 12:08:01 EDT
Created attachment 244740 [details]
fix

Adds support for marking occurrences in throw statements.