| Summary: | Wrong declaration marked in occurrences | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Michael Rennie <Michael_Rennie> |
| Component: | JS Tools | Assignee: | Michael Rennie <Michael_Rennie> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | P3 | CC: | mamacdon |
| Version: | unspecified | ||
| Target Milestone: | 5.0 M2 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
Pushed fix + tests to: https://git.eclipse.org/r/20196 (In reply to Michael Rennie from comment #1) > Pushed fix + tests to: https://git.eclipse.org/r/20196 I pushed an update that adds a few finder tests |
Consider the following snippet: function myfunc(p1) { function myinner(p1) { var foo = p1; //carat on p1 } }; place carat where indicated. Notice the p1 from myfunc is marked (WRONG). We need to make sure we are only marking the smallest enclosing scope for an occurrence.