| Summary: | support capture of Comments in the EDT model | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Aaron Allsbrook <aallsbrook> |
| Component: | EDT | Assignee: | Project Inbox <edt.compiler-inbox> |
| Status: | NEW --- | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | jspadea, lasher, margolis, pharmon, svihovec |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Aaron Allsbrook
changing the severity from Normal to Enhancement to show that this is a function request (RFE), not a bug. This will ensure that it gets considered in our iteration planning. The lexer currently has two flags that can be enabled to capture comments: returnLineComments returnBlockComments The comments will then be stored in org.eclipse.edt.compiler.core.ast.File. What might be a worthwhile approach to this enhancement would be to add another flag to the lexer that, when set, it will weave in all the comments into the AST tree after parsing, based on their offsets, instead of just adding them all to a list in File which doesn't really tell you which nodes the comments were for. |