From 1575a175b511eadbae03fc760b0cd20edde6ae4e Mon Sep 17 00:00:00 2001 From: aclement Date: Fri, 10 Dec 2004 15:40:59 +0000 Subject: Support for 'offset' in source locations - enabling AJDT improvements. Not perfect - really the whole ISourceLocation thing needs sorting out ... --- asm/src/org/aspectj/asm/internal/ProgramElement.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'asm') 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(); } -- cgit v1.2.3