mirror of
https://github.com/processing/processing4.git
synced 2026-02-13 02:20:45 +01:00
Ctrl+Click with offset handling. Also moved stuff around.
This commit is contained in:
@@ -1011,9 +1011,16 @@ public class ASTGenerator {
|
||||
ASTNode decl = null;
|
||||
if (lineNode != null) {
|
||||
ASTNodeWrapper lineNodeWrap = new ASTNodeWrapper(lineNode);
|
||||
int ret[][] = lineNodeWrap.getOffsetMapping(errorCheckerService);
|
||||
int javaCodeMap[] = ret[0];
|
||||
int altOff = 0;
|
||||
for (; altOff < javaCodeMap.length; altOff++) {
|
||||
if(javaCodeMap[altOff] == offset)
|
||||
break;
|
||||
}
|
||||
System.out.println("FLON2: " + lineNumber + " LN spos "
|
||||
+ lineNode.getStartPosition() + " off " + offset);
|
||||
ASTNode simpName = pinpointOnLine(lineNode, offset,
|
||||
+ lineNode.getStartPosition() + " off " + offset + " alt off" + altOff);
|
||||
ASTNode simpName = pinpointOnLine(lineNode, altOff,
|
||||
lineNode.getStartPosition(), name);
|
||||
System.out.println("+++> " + simpName);
|
||||
if (simpName instanceof SimpleName) {
|
||||
|
||||
Reference in New Issue
Block a user