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

Bug 440928

Summary: Labeled statements are not scoped when finding occurrences
Product: [ECD] Orion Reporter: Curtis Windatt <curtis.windatt.public>
Component: JS ToolsAssignee: Curtis Windatt <curtis.windatt.public>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 6.0   
Target Milestone: 7.0   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on: 436728    
Bug Blocks:    

Description Curtis Windatt CLA 2014-07-31 15:55:49 EDT
loop: while(true){
break loop;
}

loop: while(true){
break loop;
}

We don't create a scope when a labeled statement is found, so if the same identifier is used elsewhere it will be marked.

I will also add a test checking that scopes are handled correctly when they are nested.