| Summary: | [outline] objects in functions not shown in outline view | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [WebTools] JSDT | Reporter: | Philippe Marschall <philippe.marschall> | ||||||||||
| Component: | General | Assignee: | Project Inbox <jsdt.javascript-inbox> | ||||||||||
| Status: | NEW --- | QA Contact: | Victor Rubezhny <vrubezhny> | ||||||||||
| Severity: | enhancement | ||||||||||||
| Priority: | P3 | CC: | dittofluid, frank.wagner.13, redsandro, thatnitind, vrubezhny | ||||||||||
| Version: | 3.3 | Flags: | thatnitind:
review?
(vrubezhny) |
||||||||||
| Target Milestone: | Future | ||||||||||||
| Hardware: | All | ||||||||||||
| OS: | All | ||||||||||||
| Whiteboard: | |||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Philippe Marschall
Created attachment 189892 [details]
file to reproduce
The following file demonstrates the issue.
The object 'outer' is shown in the outline view but the object 'nested' is not shown in the outline view.
Created attachment 189893 [details]
screenshot of the issue
A screenshot showing how objects on the top level like 'outer' are shown in the outline view but objects in functions like 'nested' are not shown in the outline view.
Created attachment 214352 [details]
Proposed implementation of the enhancement.
Here is a little patch that allows to have nested object members show up in the outline.
I could not find where to add a test case to cover this new feature. Who can help find?
Created attachment 214353 [details]
Screenshot of proposed implemenation
Here is how it looks with my patch.
Does it work for Object Literal definitions?
They are also completely ignored by the outliner.
objLiteral = {
foo: function() {
//
},
bar: function(baz) {
//
}
};
|