Details
-
Type:
New Feature
-
Status:
Open
-
Priority:
Critical
-
Resolution: Unresolved
-
Affects Version/s: X10 2.1.2
-
Fix Version/s: X10 2.3.2
-
Component/s: X10 Compiler: Front-end
-
Labels:None
-
Number of attachments :
Description
When there is a big syntactic problem with a file, the compiler gives us back a synthetic AST that has minimal information. It would be helpful if this AST contained a package declaration as well, because the absence of it causes X10DT's package declaration check to fail. This is bad because the editor shows package declaration errors even when it is correct, when there are bad syntactic problems. When the user fixes the syntax problems, the package declaration error goes away on its own. So this looks very bad for the editor. If we get back a synthetic AST that has the package declaration then we would not have this problem.
Issue Links
- depends upon
-
XTENLANG-1625
Better parser recovery techniques
-
- is depended upon by
-
XTENLANG-2971
Umbrella language/front-end JIRA for X10 2.3.1
-
Currently, if parsing fails completely, we have no way of knowing which package to add there. This will be covered by the prostheses work done by Philippe (XTENLANG-1625).