diff options
author | aclement <aclement> | 2004-12-10 15:40:59 +0000 |
---|---|---|
committer | aclement <aclement> | 2004-12-10 15:40:59 +0000 |
commit | 1575a175b511eadbae03fc760b0cd20edde6ae4e (patch) | |
tree | a135e948e9e293df3849b9ab45582125a3dd1590 /asm | |
parent | 379eb69126a1d904c2f4a6a63a97c138a7712791 (diff) | |
download | aspectj-1575a175b511eadbae03fc760b0cd20edde6ae4e.tar.gz aspectj-1575a175b511eadbae03fc760b0cd20edde6ae4e.zip |
Support for 'offset' in source locations - enabling AJDT improvements. Not perfect - really the whole ISourceLocation thing needs sorting out ...
Diffstat (limited to 'asm')
-rw-r--r-- | asm/src/org/aspectj/asm/internal/ProgramElement.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/asm/src/org/aspectj/asm/internal/ProgramElement.java b/asm/src/org/aspectj/asm/internal/ProgramElement.java index 3965c21d0..6bfe85115 100644 --- a/asm/src/org/aspectj/asm/internal/ProgramElement.java +++ b/asm/src/org/aspectj/asm/internal/ProgramElement.java @@ -447,13 +447,15 @@ public class ProgramElement implements IProgramElement { return label; } - public static String createHandleIdentifier(File sourceFile, int line,int column) { + public static String createHandleIdentifier(File sourceFile, int line,int column,int offset) { StringBuffer sb = new StringBuffer(); sb.append(AsmManager.getDefault().getCanonicalFilePath(sourceFile)); sb.append(ID_DELIM); sb.append(line); sb.append(ID_DELIM); sb.append(column); + sb.append(ID_DELIM); + sb.append(offset); return sb.toString(); } @@ -475,6 +477,8 @@ public class ProgramElement implements IProgramElement { sb.append(sourceLocation.getLine()); sb.append(ID_DELIM); sb.append(sourceLocation.getColumn()); + sb.append(ID_DELIM); + sb.append(sourceLocation.getOffset()); return sb.toString(); } |