| Summary: | Integrate an esprima-based outliner | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Mark Macdonald <mamacdon> |
| Component: | JS Tools | Assignee: | Mark Macdonald <mamacdon> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | aclement, andrew.eisenberg, curtis.windatt.public, davidleonigit-eclipse, john.arthorne, Michael_Rennie, simon_kaegi |
| Version: | 0.4 | Keywords: | helpwanted |
| Target Milestone: | 5.0 M1 | ||
| Hardware: | PC | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Mark Macdonald
The CQ for Esprima has been approved, so we can do this now. In addition to the plugin I mentioned above, there's also 2 other JS outline providers that currently use uglify-js as their parsing library, but could be retrofitted to use esprima instead: - 'Nonymous' https://github.com/johnjbarton/outliner/ - 'outliner' https://github.com/mamacdon/outliner The 'outliner' shows a pretty straightforward tree of functions. The 'Nonymous' outliner packs in a lot more info, but displays things in using a rather esoteric syntax. yes, the local vars in mine are clutter - it was a bit of a learning experiment. The nonymous one is good - but I do feel we ought to agree on whether that kind of format for function names is acceptable to all. Coming up with good names for anonymous function uses is tricky but seems important - and I haven't seen any other approaches than the one suggested in the paper upon which nonymous was based. Hi Mark -- please target. This was really Andy and Andrew working on it. I believe it is waiting on CQ 6526 for Esprima 0.9.9, so I suspect this won't make it for 0.5. Closing this as a dupe of bug 422080, since we will be using esprima / estraverse to improve that outline *** This bug has been marked as a duplicate of bug 422080 *** |