Summary: | DOM/AST: wrong Length in cascading if/then/else | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Dirk Baeumer <dirk_baeumer> |
Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 2.0 | ||
Target Milestone: | 2.0 M6 | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: |
Description
Dirk Baeumer
2002-05-11 07:38:33 EDT
This is a result of inconsistent positions returned by the compiler's ast nodes. When I wanted to fix the compiler's ast nodes, it was the right way to fix this problem. You refused to do so, because you relied on these old positions. Is it still the case? Fixing the positions inside the AST converter is really ugly and I really would like to do it inside the parser. Since we converted everything to the new AST we should be fine if you start changing positions in the old AST. I changed only the positions for the ifStatement. The update in the Parser is clean whereas code in the ASTConverter looks more like a hack. Fixed and released in HEAD. |