-
Sub-task
-
Resolution: Unresolved
-
P4
-
None
It would be better if the tree more closely modeled the source text (up until TransTypes and Lower). This will mean adding more tree nodes. The desugaring done today should effectively be done while creating the internal semantic data structures.
A nice goal/test would be to be able to take a source file, run it through parse() and analyze(), write out the tree, and get the same sequence of tokens found in the original file (i.e. ignoring changes in whitespace and comments.)
- relates to
-
JDK-8268850 Detect inferred local variable types in AST
- Open
-
JDK-7077364 (javac) Starting positions of ClassTree for enum constants
- Open
-
JDK-8214902 Pretty-printing marker annotations add unnecessary parenthesis
- Resolved
-
JDK-8044555 The Tree API gives no access to non-Javadoc comments
- Open
-
JDK-8044853 Attr synthesizes nullcheck tree nodes
- Resolved
-
JDK-8076281 Investigate compiler Tree API client's expectations for inferred elided types.
- Open
-
JDK-8035787 SourcePositions are wrong for Strings concatenated with '+' operator
- Resolved
-
JDK-8031725 No way to detect synthetic com.sun.source.tree.Tree's
- Closed
- links to