Offset mapping bug fix. Definitely getting better.

This commit is contained in:
Manindra Moharana
2013-06-23 12:02:00 +05:30
parent 54e08667b4
commit fed19cf712
3 changed files with 18 additions and 17 deletions

View File

@@ -1010,8 +1010,9 @@ public class ASTGenerator {
System.out.println("+> " + lineNode);
ASTNode decl = null;
if (lineNode != null) {
System.out.println("FLON2: " + lineNumber + " LN O "
+ lineNode.getStartPosition());
ASTNodeWrapper lineNodeWrap = new ASTNodeWrapper(lineNode);
System.out.println("FLON2: " + lineNumber + " LN spos "
+ lineNode.getStartPosition() + " off " + offset);
ASTNode simpName = pinpointOnLine(lineNode, offset,
lineNode.getStartPosition(), name);
System.out.println("+++> " + simpName);
@@ -1128,10 +1129,8 @@ public class ASTGenerator {
int pdeoffsets[] = awrap.getPDECodeOffsets(errorCheckerService);
int javaoffsets[] = awrap.getJavaCodeOffsets(errorCheckerService);
ErrorCheckerService.scrollToErrorLine(editor, pdeoffsets[0],
pdeoffsets[1],
javaoffsets[2]
- javaoffsets[1],
javaoffsets[3]);
pdeoffsets[1],javaoffsets[1],
javaoffsets[2]);
}
}
};